id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
35,700
Azure/azure-sdk-for-java
containerregistry/resource-manager/v2017_06_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2017_06_01_preview/implementation/ReplicationsInner.java
ReplicationsInner.beginDelete
public void beginDelete(String resourceGroupName, String registryName, String replicationName) { beginDeleteWithServiceResponseAsync(resourceGroupName, registryName, replicationName).toBlocking().single().body(); }
java
public void beginDelete(String resourceGroupName, String registryName, String replicationName) { beginDeleteWithServiceResponseAsync(resourceGroupName, registryName, replicationName).toBlocking().single().body(); }
[ "public", "void", "beginDelete", "(", "String", "resourceGroupName", ",", "String", "registryName", ",", "String", "replicationName", ")", "{", "beginDeleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "registryName", ",", "replicationName", ")", ".", "toBlo...
Deletes a replication from a container registry. @param resourceGroupName The name of the resource group to which the container registry belongs. @param registryName The name of the container registry. @param replicationName The name of the replication. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Deletes", "a", "replication", "from", "a", "container", "registry", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/containerregistry/resource-manager/v2017_06_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2017_06_01_preview/implementation/ReplicationsInner.java#L469-L471
35,701
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/SwaggerInterfaceParser.java
SwaggerInterfaceParser.methodParser
public SwaggerMethodParser methodParser(Method swaggerMethod) { SwaggerMethodParser result = methodParsers.get(swaggerMethod); if (result == null) { result = new SwaggerMethodParser(swaggerMethod, serializer, host()); methodParsers.put(swaggerMethod, result); } return result; }
java
public SwaggerMethodParser methodParser(Method swaggerMethod) { SwaggerMethodParser result = methodParsers.get(swaggerMethod); if (result == null) { result = new SwaggerMethodParser(swaggerMethod, serializer, host()); methodParsers.put(swaggerMethod, result); } return result; }
[ "public", "SwaggerMethodParser", "methodParser", "(", "Method", "swaggerMethod", ")", "{", "SwaggerMethodParser", "result", "=", "methodParsers", ".", "get", "(", "swaggerMethod", ")", ";", "if", "(", "result", "==", "null", ")", "{", "result", "=", "new", "Sw...
Get the method parser that is associated with the provided swaggerMethod. The method parser can be used to get details about the Swagger REST API call. @param swaggerMethod the method to generate a parser for @return the SwaggerMethodParser associated with the provided swaggerMethod
[ "Get", "the", "method", "parser", "that", "is", "associated", "with", "the", "provided", "swaggerMethod", ".", "The", "method", "parser", "can", "be", "used", "to", "get", "details", "about", "the", "Swagger", "REST", "API", "call", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/SwaggerInterfaceParser.java#L62-L69
35,702
Azure/azure-sdk-for-java
automation/resource-manager/v2015_10_31/src/main/java/com/microsoft/azure/management/automation/v2015_10_31/implementation/AgentRegistrationInformationsInner.java
AgentRegistrationInformationsInner.getAsync
public Observable<AgentRegistrationInner> getAsync(String resourceGroupName, String automationAccountName) { return getWithServiceResponseAsync(resourceGroupName, automationAccountName).map(new Func1<ServiceResponse<AgentRegistrationInner>, AgentRegistrationInner>() { @Override public AgentRegistrationInner call(ServiceResponse<AgentRegistrationInner> response) { return response.body(); } }); }
java
public Observable<AgentRegistrationInner> getAsync(String resourceGroupName, String automationAccountName) { return getWithServiceResponseAsync(resourceGroupName, automationAccountName).map(new Func1<ServiceResponse<AgentRegistrationInner>, AgentRegistrationInner>() { @Override public AgentRegistrationInner call(ServiceResponse<AgentRegistrationInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "AgentRegistrationInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "automationAccountName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "automationAccountName", ")", ".", "map", ...
Retrieve the automation agent registration information. @param resourceGroupName Name of an Azure Resource group. @param automationAccountName The name of the automation account. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the AgentRegistrationInner object
[ "Retrieve", "the", "automation", "agent", "registration", "information", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/automation/resource-manager/v2015_10_31/src/main/java/com/microsoft/azure/management/automation/v2015_10_31/implementation/AgentRegistrationInformationsInner.java#L103-L110
35,703
Azure/azure-sdk-for-java
compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachinesInner.java
VirtualMachinesInner.beginRedeployAsync
public Observable<OperationStatusResponseInner> beginRedeployAsync(String resourceGroupName, String vmName) { return beginRedeployWithServiceResponseAsync(resourceGroupName, vmName).map(new Func1<ServiceResponse<OperationStatusResponseInner>, OperationStatusResponseInner>() { @Override public OperationStatusResponseInner call(ServiceResponse<OperationStatusResponseInner> response) { return response.body(); } }); }
java
public Observable<OperationStatusResponseInner> beginRedeployAsync(String resourceGroupName, String vmName) { return beginRedeployWithServiceResponseAsync(resourceGroupName, vmName).map(new Func1<ServiceResponse<OperationStatusResponseInner>, OperationStatusResponseInner>() { @Override public OperationStatusResponseInner call(ServiceResponse<OperationStatusResponseInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "OperationStatusResponseInner", ">", "beginRedeployAsync", "(", "String", "resourceGroupName", ",", "String", "vmName", ")", "{", "return", "beginRedeployWithServiceResponseAsync", "(", "resourceGroupName", ",", "vmName", ")", ".", "map", "(...
The operation to redeploy a virtual machine. @param resourceGroupName The name of the resource group. @param vmName The name of the virtual machine. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the OperationStatusResponseInner object
[ "The", "operation", "to", "redeploy", "a", "virtual", "machine", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachinesInner.java#L2407-L2414
35,704
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/PercentEscaper.java
PercentEscaper.escape
public String escape(String original) { StringBuilder output = new StringBuilder(); for (int i = 0; i != utf16ToAscii(original).length(); i++) { char c = original.charAt(i); if (c == ' ') { output.append(usePlusForSpace ? "+" : HEX[' ']); } else if (c >= 'a' && c <= 'z') { output.append(c); } else if (c >= 'A' && c <= 'Z') { output.append(c); } else if (c >= '0' && c <= '9') { output.append(c); } else if (safeChars.contains(c)) { output.append(c); } else { output.append(HEX[c]); } } return output.toString(); }
java
public String escape(String original) { StringBuilder output = new StringBuilder(); for (int i = 0; i != utf16ToAscii(original).length(); i++) { char c = original.charAt(i); if (c == ' ') { output.append(usePlusForSpace ? "+" : HEX[' ']); } else if (c >= 'a' && c <= 'z') { output.append(c); } else if (c >= 'A' && c <= 'Z') { output.append(c); } else if (c >= '0' && c <= '9') { output.append(c); } else if (safeChars.contains(c)) { output.append(c); } else { output.append(HEX[c]); } } return output.toString(); }
[ "public", "String", "escape", "(", "String", "original", ")", "{", "StringBuilder", "output", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "!=", "utf16ToAscii", "(", "original", ")", ".", "length", "(", ")", ...
Escapes a string with the current settings on the escaper. @param original the origin string to escape @return the escaped string
[ "Escapes", "a", "string", "with", "the", "current", "settings", "on", "the", "escaper", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/PercentEscaper.java#L78-L97
35,705
Azure/azure-sdk-for-java
network/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/network/v2018_07_01/implementation/NetworkInterfacesInner.java
NetworkInterfacesInner.delete
public void delete(String resourceGroupName, String networkInterfaceName) { deleteWithServiceResponseAsync(resourceGroupName, networkInterfaceName).toBlocking().last().body(); }
java
public void delete(String resourceGroupName, String networkInterfaceName) { deleteWithServiceResponseAsync(resourceGroupName, networkInterfaceName).toBlocking().last().body(); }
[ "public", "void", "delete", "(", "String", "resourceGroupName", ",", "String", "networkInterfaceName", ")", "{", "deleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "networkInterfaceName", ")", ".", "toBlocking", "(", ")", ".", "last", "(", ")", ".", ...
Deletes the specified network interface. @param resourceGroupName The name of the resource group. @param networkInterfaceName The name of the network interface. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Deletes", "the", "specified", "network", "interface", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/network/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/network/v2018_07_01/implementation/NetworkInterfacesInner.java#L174-L176
35,706
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/http/UrlBuilder.java
UrlBuilder.withHost
public UrlBuilder withHost(String host) { if (host == null || host.isEmpty()) { this.host = null; } else { with(host, UrlTokenizerState.SCHEME_OR_HOST); } return this; }
java
public UrlBuilder withHost(String host) { if (host == null || host.isEmpty()) { this.host = null; } else { with(host, UrlTokenizerState.SCHEME_OR_HOST); } return this; }
[ "public", "UrlBuilder", "withHost", "(", "String", "host", ")", "{", "if", "(", "host", "==", "null", "||", "host", ".", "isEmpty", "(", ")", ")", "{", "this", ".", "host", "=", "null", ";", "}", "else", "{", "with", "(", "host", ",", "UrlTokenizer...
Set the host that will be used to build the final URL. @param host The host that will be used to build the final URL. @return This UrlBuilder so that multiple setters can be chained together.
[ "Set", "the", "host", "that", "will", "be", "used", "to", "build", "the", "final", "URL", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/http/UrlBuilder.java#L50-L57
35,707
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/http/UrlBuilder.java
UrlBuilder.withPort
public UrlBuilder withPort(String port) { if (port == null || port.isEmpty()) { this.port = null; } else { with(port, UrlTokenizerState.PORT); } return this; }
java
public UrlBuilder withPort(String port) { if (port == null || port.isEmpty()) { this.port = null; } else { with(port, UrlTokenizerState.PORT); } return this; }
[ "public", "UrlBuilder", "withPort", "(", "String", "port", ")", "{", "if", "(", "port", "==", "null", "||", "port", ".", "isEmpty", "(", ")", ")", "{", "this", ".", "port", "=", "null", ";", "}", "else", "{", "with", "(", "port", ",", "UrlTokenizer...
Set the port that will be used to build the final URL. @param port The port that will be used to build the final URL. @return This UrlBuilder so that multiple setters can be chained together.
[ "Set", "the", "port", "that", "will", "be", "used", "to", "build", "the", "final", "URL", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/http/UrlBuilder.java#L72-L79
35,708
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/http/UrlBuilder.java
UrlBuilder.withPath
public UrlBuilder withPath(String path) { if (path == null || path.isEmpty()) { this.path = null; } else { with(path, UrlTokenizerState.PATH); } return this; }
java
public UrlBuilder withPath(String path) { if (path == null || path.isEmpty()) { this.path = null; } else { with(path, UrlTokenizerState.PATH); } return this; }
[ "public", "UrlBuilder", "withPath", "(", "String", "path", ")", "{", "if", "(", "path", "==", "null", "||", "path", ".", "isEmpty", "(", ")", ")", "{", "this", ".", "path", "=", "null", ";", "}", "else", "{", "with", "(", "path", ",", "UrlTokenizer...
Set the path that will be used to build the final URL. @param path The path that will be used to build the final URL. @return This UrlBuilder so that multiple setters can be chained together.
[ "Set", "the", "path", "that", "will", "be", "used", "to", "build", "the", "final", "URL", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/http/UrlBuilder.java#L103-L110
35,709
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/http/UrlBuilder.java
UrlBuilder.setQueryParameter
public UrlBuilder setQueryParameter(String queryParameterName, String queryParameterEncodedValue) { query.put(queryParameterName, queryParameterEncodedValue); return this; }
java
public UrlBuilder setQueryParameter(String queryParameterName, String queryParameterEncodedValue) { query.put(queryParameterName, queryParameterEncodedValue); return this; }
[ "public", "UrlBuilder", "setQueryParameter", "(", "String", "queryParameterName", ",", "String", "queryParameterEncodedValue", ")", "{", "query", ".", "put", "(", "queryParameterName", ",", "queryParameterEncodedValue", ")", ";", "return", "this", ";", "}" ]
Set the provided query parameter name and encoded value to query string for the final URL. @param queryParameterName The name of the query parameter. @param queryParameterEncodedValue The encoded value of the query parameter. @return The provided query parameter name and encoded value to query string for the final URL.
[ "Set", "the", "provided", "query", "parameter", "name", "and", "encoded", "value", "to", "query", "string", "for", "the", "final", "URL", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/http/UrlBuilder.java#L127-L130
35,710
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/http/UrlBuilder.java
UrlBuilder.withQuery
public UrlBuilder withQuery(String query) { if (query == null || query.isEmpty()) { this.query.clear(); } else { with(query, UrlTokenizerState.QUERY); } return this; }
java
public UrlBuilder withQuery(String query) { if (query == null || query.isEmpty()) { this.query.clear(); } else { with(query, UrlTokenizerState.QUERY); } return this; }
[ "public", "UrlBuilder", "withQuery", "(", "String", "query", ")", "{", "if", "(", "query", "==", "null", "||", "query", ".", "isEmpty", "(", ")", ")", "{", "this", ".", "query", ".", "clear", "(", ")", ";", "}", "else", "{", "with", "(", "query", ...
Set the query that will be used to build the final URL. @param query The query that will be used to build the final URL. @return This UrlBuilder so that multiple setters can be chained together.
[ "Set", "the", "query", "that", "will", "be", "used", "to", "build", "the", "final", "URL", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/http/UrlBuilder.java#L137-L144
35,711
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/http/UrlBuilder.java
UrlBuilder.parse
public static UrlBuilder parse(String url) { final UrlBuilder result = new UrlBuilder(); result.with(url, UrlTokenizerState.SCHEME_OR_HOST); return result; }
java
public static UrlBuilder parse(String url) { final UrlBuilder result = new UrlBuilder(); result.with(url, UrlTokenizerState.SCHEME_OR_HOST); return result; }
[ "public", "static", "UrlBuilder", "parse", "(", "String", "url", ")", "{", "final", "UrlBuilder", "result", "=", "new", "UrlBuilder", "(", ")", ";", "result", ".", "with", "(", "url", ",", "UrlTokenizerState", ".", "SCHEME_OR_HOST", ")", ";", "return", "re...
Parse a UrlBuilder from the provided URL string. @param url The string to parse. @return The UrlBuilder that was parsed from the string.
[ "Parse", "a", "UrlBuilder", "from", "the", "provided", "URL", "string", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/http/UrlBuilder.java#L272-L276
35,712
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/http/UrlBuilder.java
UrlBuilder.parse
public static UrlBuilder parse(URL url) { final UrlBuilder result = new UrlBuilder(); if (url != null) { final String protocol = url.getProtocol(); if (protocol != null && !protocol.isEmpty()) { result.withScheme(protocol); } final String host = url.getHost(); if (host != null && !host.isEmpty()) { result.withHost(host); } final int port = url.getPort(); if (port != -1) { result.withPort(port); } final String path = url.getPath(); if (path != null && !path.isEmpty()) { result.withPath(path); } final String query = url.getQuery(); if (query != null && !query.isEmpty()) { result.withQuery(query); } } return result; }
java
public static UrlBuilder parse(URL url) { final UrlBuilder result = new UrlBuilder(); if (url != null) { final String protocol = url.getProtocol(); if (protocol != null && !protocol.isEmpty()) { result.withScheme(protocol); } final String host = url.getHost(); if (host != null && !host.isEmpty()) { result.withHost(host); } final int port = url.getPort(); if (port != -1) { result.withPort(port); } final String path = url.getPath(); if (path != null && !path.isEmpty()) { result.withPath(path); } final String query = url.getQuery(); if (query != null && !query.isEmpty()) { result.withQuery(query); } } return result; }
[ "public", "static", "UrlBuilder", "parse", "(", "URL", "url", ")", "{", "final", "UrlBuilder", "result", "=", "new", "UrlBuilder", "(", ")", ";", "if", "(", "url", "!=", "null", ")", "{", "final", "String", "protocol", "=", "url", ".", "getProtocol", "...
Parse a UrlBuilder from the provided URL object. @param url The URL object to parse. @return The UrlBuilder that was parsed from the URL object.
[ "Parse", "a", "UrlBuilder", "from", "the", "provided", "URL", "object", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/http/UrlBuilder.java#L283-L314
35,713
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/authentication/KeyVaultCredentials.java
KeyVaultCredentials.buildEmptyRequest
private Request buildEmptyRequest(Request request) { RequestBody body = RequestBody.create(MediaType.parse("application/json"), "{}"); if (request.method().equalsIgnoreCase("get")) { return request; } else { return request.newBuilder().method(request.method(), body).build(); } }
java
private Request buildEmptyRequest(Request request) { RequestBody body = RequestBody.create(MediaType.parse("application/json"), "{}"); if (request.method().equalsIgnoreCase("get")) { return request; } else { return request.newBuilder().method(request.method(), body).build(); } }
[ "private", "Request", "buildEmptyRequest", "(", "Request", "request", ")", "{", "RequestBody", "body", "=", "RequestBody", ".", "create", "(", "MediaType", ".", "parse", "(", "\"application/json\"", ")", ",", "\"{}\"", ")", ";", "if", "(", "request", ".", "m...
Removes request body used for EKV authorization. @param request unprotected request without auth token. @return request with removed body.
[ "Removes", "request", "body", "used", "for", "EKV", "authorization", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/authentication/KeyVaultCredentials.java#L168-L175
35,714
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/authentication/KeyVaultCredentials.java
KeyVaultCredentials.supportsMessageProtection
private Boolean supportsMessageProtection(String url, Map<String, String> challengeMap) { if (!"true".equals(challengeMap.get("supportspop"))) { return false; } // Message protection is enabled only for subset of keys operations. if (!url.toLowerCase().contains("/keys/")) { return false; } String[] tokens = url.split("\\?")[0].split("/"); return supportedMethods.contains(tokens[tokens.length - 1]); }
java
private Boolean supportsMessageProtection(String url, Map<String, String> challengeMap) { if (!"true".equals(challengeMap.get("supportspop"))) { return false; } // Message protection is enabled only for subset of keys operations. if (!url.toLowerCase().contains("/keys/")) { return false; } String[] tokens = url.split("\\?")[0].split("/"); return supportedMethods.contains(tokens[tokens.length - 1]); }
[ "private", "Boolean", "supportsMessageProtection", "(", "String", "url", ",", "Map", "<", "String", ",", "String", ">", "challengeMap", ")", "{", "if", "(", "!", "\"true\"", ".", "equals", "(", "challengeMap", ".", "get", "(", "\"supportspop\"", ")", ")", ...
Checks if resource supports message protection. @param url resource url. @param challengeMap the challenge map. @return true if message protection is supported.
[ "Checks", "if", "resource", "supports", "message", "protection", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/authentication/KeyVaultCredentials.java#L186-L199
35,715
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/authentication/KeyVaultCredentials.java
KeyVaultCredentials.getAuthenticationCredentials
private AuthenticationResult getAuthenticationCredentials(Boolean supportsPop, Map<String, String> challengeMap) { String authorization = challengeMap.get("authorization"); if (authorization == null) { authorization = challengeMap.get("authorization_uri"); } String resource = challengeMap.get("resource"); String scope = challengeMap.get("scope"); String schema = supportsPop ? "pop" : "bearer"; return doAuthenticate(authorization, resource, scope, schema); }
java
private AuthenticationResult getAuthenticationCredentials(Boolean supportsPop, Map<String, String> challengeMap) { String authorization = challengeMap.get("authorization"); if (authorization == null) { authorization = challengeMap.get("authorization_uri"); } String resource = challengeMap.get("resource"); String scope = challengeMap.get("scope"); String schema = supportsPop ? "pop" : "bearer"; return doAuthenticate(authorization, resource, scope, schema); }
[ "private", "AuthenticationResult", "getAuthenticationCredentials", "(", "Boolean", "supportsPop", ",", "Map", "<", "String", ",", "String", ">", "challengeMap", ")", "{", "String", "authorization", "=", "challengeMap", ".", "get", "(", "\"authorization\"", ")", ";",...
Extracts the authentication challenges from the challenge map and calls the authentication callback to get the bearer token and return it. @param supportsPop is resource supports pop authentication. @param challengeMap the challenge map. @return AuthenticationResult with bearer token and PoP key.
[ "Extracts", "the", "authentication", "challenges", "from", "the", "challenge", "map", "and", "calls", "the", "authentication", "callback", "to", "get", "the", "bearer", "token", "and", "return", "it", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/authentication/KeyVaultCredentials.java#L211-L222
35,716
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/authentication/KeyVaultCredentials.java
KeyVaultCredentials.extractChallenge
private static Map<String, String> extractChallenge(String authenticateHeader, String authChallengePrefix) { if (!isValidChallenge(authenticateHeader, authChallengePrefix)) { return null; } authenticateHeader = authenticateHeader.toLowerCase().replace(authChallengePrefix.toLowerCase(), ""); String[] challenges = authenticateHeader.split(", "); Map<String, String> challengeMap = new HashMap<String, String>(); for (String pair : challenges) { String[] keyValue = pair.split("="); challengeMap.put(keyValue[0].replaceAll("\"", ""), keyValue[1].replaceAll("\"", "")); } return challengeMap; }
java
private static Map<String, String> extractChallenge(String authenticateHeader, String authChallengePrefix) { if (!isValidChallenge(authenticateHeader, authChallengePrefix)) { return null; } authenticateHeader = authenticateHeader.toLowerCase().replace(authChallengePrefix.toLowerCase(), ""); String[] challenges = authenticateHeader.split(", "); Map<String, String> challengeMap = new HashMap<String, String>(); for (String pair : challenges) { String[] keyValue = pair.split("="); challengeMap.put(keyValue[0].replaceAll("\"", ""), keyValue[1].replaceAll("\"", "")); } return challengeMap; }
[ "private", "static", "Map", "<", "String", ",", "String", ">", "extractChallenge", "(", "String", "authenticateHeader", ",", "String", "authChallengePrefix", ")", "{", "if", "(", "!", "isValidChallenge", "(", "authenticateHeader", ",", "authChallengePrefix", ")", ...
Extracts the challenge off the authentication header. @param authenticateHeader the authentication header containing all the challenges. @param authChallengePrefix the authentication challenge name. @return a challenge map.
[ "Extracts", "the", "challenge", "off", "the", "authentication", "header", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/authentication/KeyVaultCredentials.java#L233-L247
35,717
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/authentication/KeyVaultCredentials.java
KeyVaultCredentials.isValidChallenge
private static boolean isValidChallenge(String authenticateHeader, String authChallengePrefix) { if (authenticateHeader != null && !authenticateHeader.isEmpty() && authenticateHeader.toLowerCase().startsWith(authChallengePrefix.toLowerCase())) { return true; } return false; }
java
private static boolean isValidChallenge(String authenticateHeader, String authChallengePrefix) { if (authenticateHeader != null && !authenticateHeader.isEmpty() && authenticateHeader.toLowerCase().startsWith(authChallengePrefix.toLowerCase())) { return true; } return false; }
[ "private", "static", "boolean", "isValidChallenge", "(", "String", "authenticateHeader", ",", "String", "authChallengePrefix", ")", "{", "if", "(", "authenticateHeader", "!=", "null", "&&", "!", "authenticateHeader", ".", "isEmpty", "(", ")", "&&", "authenticateHead...
Verifies whether a challenge is bearer or not. @param authenticateHeader the authentication header containing all the challenges. @param authChallengePrefix the authentication challenge name. @return
[ "Verifies", "whether", "a", "challenge", "is", "bearer", "or", "not", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/authentication/KeyVaultCredentials.java#L258-L264
35,718
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/authentication/KeyVaultCredentials.java
KeyVaultCredentials.doAuthenticate
public AuthenticationResult doAuthenticate(String authorization, String resource, String scope, String schema) { return new AuthenticationResult(doAuthenticate(authorization, resource, scope), ""); }
java
public AuthenticationResult doAuthenticate(String authorization, String resource, String scope, String schema) { return new AuthenticationResult(doAuthenticate(authorization, resource, scope), ""); }
[ "public", "AuthenticationResult", "doAuthenticate", "(", "String", "authorization", ",", "String", "resource", ",", "String", "scope", ",", "String", "schema", ")", "{", "return", "new", "AuthenticationResult", "(", "doAuthenticate", "(", "authorization", ",", "reso...
Method to be implemented. @param authorization Identifier of the authority, a URL. @param resource Identifier of the target resource that is the recipient of the requested token, a URL. @param scope The scope of the authentication request. @param schema Authentication schema. Can be 'pop' or 'bearer'. @return AuthenticationResult with authorization token and PoP key. Answers a server challenge with a token header. <p> Implementations sends POST request to receive authentication token like in example below. ADAL currently doesn't support POP authentication. </p> <pre> public AuthenticationResult doAuthenticate(String authorization, String resource, String scope, String schema) { JsonWebKey clientJwk = GenerateJsonWebKey(); JsonWebKey clientPublicJwk = GetJwkWithPublicKeyOnly(clientJwk); String token = GetAccessToken(authorization, resource, "pop".equals(schema), clientPublicJwk); return new AuthenticationResult(token, clientJwk.toString()); } private JsonWebKey GenerateJsonWebKey() { final KeyPairGenerator generator = KeyPairGenerator.getInstance("RSA"); generator.initialize(2048); KeyPair clientRsaKeyPair = generator.generateKeyPair(); JsonWebKey result = JsonWebKey.fromRSA(clientRsaKeyPair); result.withKid(UUID.randomUUID().toString()); return result; } public static JsonWebKey GetJwkWithPublicKeyOnly(JsonWebKey jwk) { KeyPair publicOnly = jwk.toRSA(false); JsonWebKey jsonkeyPublic = JsonWebKey.fromRSA(publicOnly); jsonkeyPublic.withKid(jwk.kid()); jsonkeyPublic.withKeyOps(Arrays.asList(JsonWebKeyOperation.ENCRYPT, JsonWebKeyOperation.WRAP_KEY, JsonWebKeyOperation.VERIFY)); return jsonkeyPublic; } private String GetAccessToken(String authorization, String resource, boolean supportspop, JsonWebKey jwkPublic) { CloseableHttpClient httpclient = HttpClients.createDefault(); HttpPost httppost = new HttpPost(authorization + "/oauth2/token"); // Request parameters and other properties. List&lt;NameValuePair&gt; params = new ArrayList&lt;NameValuePair&gt;(2); params.add(new BasicNameValuePair("resource", resource)); params.add(new BasicNameValuePair("response_type", "token")); params.add(new BasicNameValuePair("grant_type", "client_credentials")); params.add(new BasicNameValuePair("client_id", this.getApplicationId())); params.add(new BasicNameValuePair("client_secret", this.getApplicationSecret())); if (supportspop) { params.add(new BasicNameValuePair("pop_jwk", jwkPublic.toString())); } httppost.setEntity(new UrlEncodedFormEntity(params, "UTF-8")); HttpResponse response = httpclient.execute(httppost); HttpEntity entity = response.getEntity(); // Read the contents of an entity and return it as a String. String content = EntityUtils.toString(entity); ObjectMapper mapper = new ObjectMapper(); authreply reply = mapper.readValue(content, authreply.class); return reply.access_token; } </pre> <p> <b>Note: The client key must be securely stored. It's advised to use two client applications - one for development and other for production - managed by separate parties.</b> </p>
[ "Method", "to", "be", "implemented", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/authentication/KeyVaultCredentials.java#L416-L418
35,719
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/ODataAtomUnmarshaller.java
ODataAtomUnmarshaller.unmarshalFeed
@SuppressWarnings("rawtypes") public <T extends ODataEntity> ListResult<T> unmarshalFeed( InputStream stream, Class<T> contentType) throws JAXBException, ServiceException { validateNotNull(stream, "stream"); validateNotNull(contentType, "contentType"); List<T> entries = new ArrayList<T>(); FeedType feed = unmarshalFeed(stream); Class<?> marshallingContentType = getMarshallingContentType(contentType); for (Object feedChild : feed.getFeedChildren()) { EntryType entry = asEntry(feedChild); if (entry != null) { entries.add(contentFromEntry(contentType, marshallingContentType, entry)); } } return new ListResult<T>(entries); }
java
@SuppressWarnings("rawtypes") public <T extends ODataEntity> ListResult<T> unmarshalFeed( InputStream stream, Class<T> contentType) throws JAXBException, ServiceException { validateNotNull(stream, "stream"); validateNotNull(contentType, "contentType"); List<T> entries = new ArrayList<T>(); FeedType feed = unmarshalFeed(stream); Class<?> marshallingContentType = getMarshallingContentType(contentType); for (Object feedChild : feed.getFeedChildren()) { EntryType entry = asEntry(feedChild); if (entry != null) { entries.add(contentFromEntry(contentType, marshallingContentType, entry)); } } return new ListResult<T>(entries); }
[ "@", "SuppressWarnings", "(", "\"rawtypes\"", ")", "public", "<", "T", "extends", "ODataEntity", ">", "ListResult", "<", "T", ">", "unmarshalFeed", "(", "InputStream", "stream", ",", "Class", "<", "T", ">", "contentType", ")", "throws", "JAXBException", ",", ...
Given a stream that contains XML with an atom Feed element at the root, unmarshal it into Java objects with the given content type in the entries. @param <T> @param stream - stream containing the XML data @param contentType - Java type to unmarshal the entry contents into @return an instance of contentType that contains the unmarshalled data. @throws JAXBException @throws ServiceException
[ "Given", "a", "stream", "that", "contains", "XML", "with", "an", "atom", "Feed", "element", "at", "the", "root", "unmarshal", "it", "into", "Java", "objects", "with", "the", "given", "content", "type", "in", "the", "entries", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/ODataAtomUnmarshaller.java#L80-L99
35,720
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/ODataAtomUnmarshaller.java
ODataAtomUnmarshaller.unmarshalEntry
@SuppressWarnings("rawtypes") public <T extends ODataEntity> T unmarshalEntry(InputStream stream, Class<T> contentType) throws JAXBException, ServiceException { validateNotNull(stream, "stream"); validateNotNull(contentType, "contentType"); Class<?> marshallingContentType = getMarshallingContentType(contentType); EntryType entry = unmarshalEntry(stream); return contentFromEntry(contentType, marshallingContentType, entry); }
java
@SuppressWarnings("rawtypes") public <T extends ODataEntity> T unmarshalEntry(InputStream stream, Class<T> contentType) throws JAXBException, ServiceException { validateNotNull(stream, "stream"); validateNotNull(contentType, "contentType"); Class<?> marshallingContentType = getMarshallingContentType(contentType); EntryType entry = unmarshalEntry(stream); return contentFromEntry(contentType, marshallingContentType, entry); }
[ "@", "SuppressWarnings", "(", "\"rawtypes\"", ")", "public", "<", "T", "extends", "ODataEntity", ">", "T", "unmarshalEntry", "(", "InputStream", "stream", ",", "Class", "<", "T", ">", "contentType", ")", "throws", "JAXBException", ",", "ServiceException", "{", ...
Given a stream containing XML with an Atom entry element at the root, unmarshal it into an instance of contentType @param stream - stream containing XML data @param contentType - type of object to return @return An instance of contentType @throws JAXBException @throws ServiceException
[ "Given", "a", "stream", "containing", "XML", "with", "an", "Atom", "entry", "element", "at", "the", "root", "unmarshal", "it", "into", "an", "instance", "of", "contentType" ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/ODataAtomUnmarshaller.java#L113-L123
35,721
Azure/azure-sdk-for-java
containerregistry/resource-manager/v2017_03_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_03_01/implementation/RegistriesInner.java
RegistriesInner.checkNameAvailabilityAsync
public Observable<RegistryNameStatusInner> checkNameAvailabilityAsync(String name) { return checkNameAvailabilityWithServiceResponseAsync(name).map(new Func1<ServiceResponse<RegistryNameStatusInner>, RegistryNameStatusInner>() { @Override public RegistryNameStatusInner call(ServiceResponse<RegistryNameStatusInner> response) { return response.body(); } }); }
java
public Observable<RegistryNameStatusInner> checkNameAvailabilityAsync(String name) { return checkNameAvailabilityWithServiceResponseAsync(name).map(new Func1<ServiceResponse<RegistryNameStatusInner>, RegistryNameStatusInner>() { @Override public RegistryNameStatusInner call(ServiceResponse<RegistryNameStatusInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "RegistryNameStatusInner", ">", "checkNameAvailabilityAsync", "(", "String", "name", ")", "{", "return", "checkNameAvailabilityWithServiceResponseAsync", "(", "name", ")", ".", "map", "(", "new", "Func1", "<", "ServiceResponse", "<", "Regi...
Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. @param name The name of the container registry. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the RegistryNameStatusInner object
[ "Checks", "whether", "the", "container", "registry", "name", "is", "available", "for", "use", ".", "The", "name", "must", "contain", "only", "alphanumeric", "characters", "be", "globally", "unique", "and", "between", "5", "and", "50", "characters", "in", "leng...
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/containerregistry/resource-manager/v2017_03_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_03_01/implementation/RegistriesInner.java#L156-L163
35,722
Azure/azure-sdk-for-java
containerregistry/resource-manager/v2017_03_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_03_01/implementation/RegistriesInner.java
RegistriesInner.delete
public void delete(String resourceGroupName, String registryName) { deleteWithServiceResponseAsync(resourceGroupName, registryName).toBlocking().single().body(); }
java
public void delete(String resourceGroupName, String registryName) { deleteWithServiceResponseAsync(resourceGroupName, registryName).toBlocking().single().body(); }
[ "public", "void", "delete", "(", "String", "resourceGroupName", ",", "String", "registryName", ")", "{", "deleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "registryName", ")", ".", "toBlocking", "(", ")", ".", "single", "(", ")", ".", "body", "(",...
Deletes a container registry. @param resourceGroupName The name of the resource group to which the container registry belongs. @param registryName The name of the container registry. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Deletes", "a", "container", "registry", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/containerregistry/resource-manager/v2017_03_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_03_01/implementation/RegistriesInner.java#L472-L474
35,723
Azure/azure-sdk-for-java
mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/DatabasesInner.java
DatabasesInner.listByServerAsync
public Observable<List<DatabaseInner>> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<DatabaseInner>>, List<DatabaseInner>>() { @Override public List<DatabaseInner> call(ServiceResponse<List<DatabaseInner>> response) { return response.body(); } }); }
java
public Observable<List<DatabaseInner>> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<DatabaseInner>>, List<DatabaseInner>>() { @Override public List<DatabaseInner> call(ServiceResponse<List<DatabaseInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "List", "<", "DatabaseInner", ">", ">", "listByServerAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ")", "{", "return", "listByServerWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ")", "."...
List all the databases in a given server. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param serverName The name of the server. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the List&lt;DatabaseInner&gt; object
[ "List", "all", "the", "databases", "in", "a", "given", "server", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/DatabasesInner.java#L569-L576
35,724
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/JWEHeader.java
JWEHeader.deserialize
public static JWEHeader deserialize(String json) throws IOException { ObjectMapper mapper = new ObjectMapper(); return mapper.readValue(json, JWEHeader.class); }
java
public static JWEHeader deserialize(String json) throws IOException { ObjectMapper mapper = new ObjectMapper(); return mapper.readValue(json, JWEHeader.class); }
[ "public", "static", "JWEHeader", "deserialize", "(", "String", "json", ")", "throws", "IOException", "{", "ObjectMapper", "mapper", "=", "new", "ObjectMapper", "(", ")", ";", "return", "mapper", ".", "readValue", "(", "json", ",", "JWEHeader", ".", "class", ...
Construct JWEHeader from json string. @param json json string. @return Constructed JWEHeader
[ "Construct", "JWEHeader", "from", "json", "string", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/JWEHeader.java#L90-L93
35,725
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/JWEHeader.java
JWEHeader.fromBase64String
public static JWEHeader fromBase64String(String base64) throws IOException { String json = MessageSecurityHelper.base64UrltoString(base64); return deserialize(json); }
java
public static JWEHeader fromBase64String(String base64) throws IOException { String json = MessageSecurityHelper.base64UrltoString(base64); return deserialize(json); }
[ "public", "static", "JWEHeader", "fromBase64String", "(", "String", "base64", ")", "throws", "IOException", "{", "String", "json", "=", "MessageSecurityHelper", ".", "base64UrltoString", "(", "base64", ")", ";", "return", "deserialize", "(", "json", ")", ";", "}...
Construct JWEHeader from base64url string. @param base64 base64 url string. @return Constructed JWEHeader
[ "Construct", "JWEHeader", "from", "base64url", "string", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/JWEHeader.java#L103-L106
35,726
Azure/azure-sdk-for-java
cognitiveservices/resource-manager/v2017_04_18/src/main/java/com/microsoft/azure/management/cognitiveservices/v2017_04_18/implementation/AccountsInner.java
AccountsInner.getByResourceGroupAsync
public Observable<CognitiveServicesAccountInner> getByResourceGroupAsync(String resourceGroupName, String accountName) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, accountName).map(new Func1<ServiceResponse<CognitiveServicesAccountInner>, CognitiveServicesAccountInner>() { @Override public CognitiveServicesAccountInner call(ServiceResponse<CognitiveServicesAccountInner> response) { return response.body(); } }); }
java
public Observable<CognitiveServicesAccountInner> getByResourceGroupAsync(String resourceGroupName, String accountName) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, accountName).map(new Func1<ServiceResponse<CognitiveServicesAccountInner>, CognitiveServicesAccountInner>() { @Override public CognitiveServicesAccountInner call(ServiceResponse<CognitiveServicesAccountInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "CognitiveServicesAccountInner", ">", "getByResourceGroupAsync", "(", "String", "resourceGroupName", ",", "String", "accountName", ")", "{", "return", "getByResourceGroupWithServiceResponseAsync", "(", "resourceGroupName", ",", "accountName", ")",...
Returns a Cognitive Services account specified by the parameters. @param resourceGroupName The name of the resource group within the user's subscription. @param accountName The name of Cognitive Services account. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the CognitiveServicesAccountInner object
[ "Returns", "a", "Cognitive", "Services", "account", "specified", "by", "the", "parameters", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/cognitiveservices/resource-manager/v2017_04_18/src/main/java/com/microsoft/azure/management/cognitiveservices/v2017_04_18/implementation/AccountsInner.java#L524-L531
35,727
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/http/HttpHeaders.java
HttpHeaders.value
public String value(String name) { final HttpHeader header = getHeader(name); return header == null ? null : header.value(); }
java
public String value(String name) { final HttpHeader header = getHeader(name); return header == null ? null : header.value(); }
[ "public", "String", "value", "(", "String", "name", ")", "{", "final", "HttpHeader", "header", "=", "getHeader", "(", "name", ")", ";", "return", "header", "==", "null", "?", "null", ":", "header", ".", "value", "(", ")", ";", "}" ]
Get the header value for the provided header name. Null will be returned if the header name isn't found. @param name the name of the header to look for @return The String value of the header, or null if the header isn't found
[ "Get", "the", "header", "value", "for", "the", "provided", "header", "name", ".", "Null", "will", "be", "returned", "if", "the", "header", "name", "isn", "t", "found", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/http/HttpHeaders.java#L89-L92
35,728
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/http/HttpHeaders.java
HttpHeaders.values
public String[] values(String name) { final HttpHeader header = getHeader(name); return header == null ? null : header.values(); }
java
public String[] values(String name) { final HttpHeader header = getHeader(name); return header == null ? null : header.values(); }
[ "public", "String", "[", "]", "values", "(", "String", "name", ")", "{", "final", "HttpHeader", "header", "=", "getHeader", "(", "name", ")", ";", "return", "header", "==", "null", "?", "null", ":", "header", ".", "values", "(", ")", ";", "}" ]
Get the header values for the provided header name. Null will be returned if the header name isn't found. @param name the name of the header to look for @return the values of the header, or null if the header isn't found
[ "Get", "the", "header", "values", "for", "the", "provided", "header", "name", ".", "Null", "will", "be", "returned", "if", "the", "header", "name", "isn", "t", "found", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/http/HttpHeaders.java#L101-L104
35,729
Azure/azure-sdk-for-java
recoveryservices.backup/resource-manager/v2017_07_01/src/main/java/com/microsoft/azure/management/recoveryservices/backup/v2017_07_01/implementation/BackupResourceVaultConfigsInner.java
BackupResourceVaultConfigsInner.getAsync
public Observable<BackupResourceVaultConfigResourceInner> getAsync(String vaultName, String resourceGroupName) { return getWithServiceResponseAsync(vaultName, resourceGroupName).map(new Func1<ServiceResponse<BackupResourceVaultConfigResourceInner>, BackupResourceVaultConfigResourceInner>() { @Override public BackupResourceVaultConfigResourceInner call(ServiceResponse<BackupResourceVaultConfigResourceInner> response) { return response.body(); } }); }
java
public Observable<BackupResourceVaultConfigResourceInner> getAsync(String vaultName, String resourceGroupName) { return getWithServiceResponseAsync(vaultName, resourceGroupName).map(new Func1<ServiceResponse<BackupResourceVaultConfigResourceInner>, BackupResourceVaultConfigResourceInner>() { @Override public BackupResourceVaultConfigResourceInner call(ServiceResponse<BackupResourceVaultConfigResourceInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "BackupResourceVaultConfigResourceInner", ">", "getAsync", "(", "String", "vaultName", ",", "String", "resourceGroupName", ")", "{", "return", "getWithServiceResponseAsync", "(", "vaultName", ",", "resourceGroupName", ")", ".", "map", "(", ...
Fetches resource vault config. @param vaultName The name of the recovery services vault. @param resourceGroupName The name of the resource group where the recovery services vault is present. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the BackupResourceVaultConfigResourceInner object
[ "Fetches", "resource", "vault", "config", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/recoveryservices.backup/resource-manager/v2017_07_01/src/main/java/com/microsoft/azure/management/recoveryservices/backup/v2017_07_01/implementation/BackupResourceVaultConfigsInner.java#L102-L109
35,730
Azure/azure-sdk-for-java
eventgrid/data-plane/src/main/java/com/microsoft/azure/eventgrid/customization/SystemEventTypeMappings.java
SystemEventTypeMappings.containsMappingFor
@Beta public static boolean containsMappingFor(final String eventType) { if (eventType == null || eventType.isEmpty()) { return false; } else { return systemEventMappings.containsKey(canonicalizeEventType(eventType)); } }
java
@Beta public static boolean containsMappingFor(final String eventType) { if (eventType == null || eventType.isEmpty()) { return false; } else { return systemEventMappings.containsKey(canonicalizeEventType(eventType)); } }
[ "@", "Beta", "public", "static", "boolean", "containsMappingFor", "(", "final", "String", "eventType", ")", "{", "if", "(", "eventType", "==", "null", "||", "eventType", ".", "isEmpty", "(", ")", ")", "{", "return", "false", ";", "}", "else", "{", "retur...
Checks if a mapping exists for the given type. @param eventType the event type. @return true if mapping exists, false otherwise.
[ "Checks", "if", "a", "mapping", "exists", "for", "the", "given", "type", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/eventgrid/data-plane/src/main/java/com/microsoft/azure/eventgrid/customization/SystemEventTypeMappings.java#L96-L103
35,731
Azure/azure-sdk-for-java
eventgrid/data-plane/src/main/java/com/microsoft/azure/eventgrid/customization/SystemEventTypeMappings.java
SystemEventTypeMappings.getMapping
@Beta public static Type getMapping(final String eventType) { if (!containsMappingFor(eventType)) { return null; } else { return systemEventMappings.get(canonicalizeEventType(eventType)); } }
java
@Beta public static Type getMapping(final String eventType) { if (!containsMappingFor(eventType)) { return null; } else { return systemEventMappings.get(canonicalizeEventType(eventType)); } }
[ "@", "Beta", "public", "static", "Type", "getMapping", "(", "final", "String", "eventType", ")", "{", "if", "(", "!", "containsMappingFor", "(", "eventType", ")", ")", "{", "return", "null", ";", "}", "else", "{", "return", "systemEventMappings", ".", "get...
Get Java model type for the given event type. @param eventType the event type. @return the Java model type if mapping exists, null otherwise.
[ "Get", "Java", "model", "type", "for", "the", "given", "event", "type", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/eventgrid/data-plane/src/main/java/com/microsoft/azure/eventgrid/customization/SystemEventTypeMappings.java#L111-L118
35,732
Azure/azure-sdk-for-java
mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ConfigurationsInner.java
ConfigurationsInner.listByServerAsync
public Observable<List<ConfigurationInner>> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<ConfigurationInner>>, List<ConfigurationInner>>() { @Override public List<ConfigurationInner> call(ServiceResponse<List<ConfigurationInner>> response) { return response.body(); } }); }
java
public Observable<List<ConfigurationInner>> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<ConfigurationInner>>, List<ConfigurationInner>>() { @Override public List<ConfigurationInner> call(ServiceResponse<List<ConfigurationInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "List", "<", "ConfigurationInner", ">", ">", "listByServerAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ")", "{", "return", "listByServerWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ")", ...
List all the configurations in a given server. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param serverName The name of the server. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the List&lt;ConfigurationInner&gt; object
[ "List", "all", "the", "configurations", "in", "a", "given", "server", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ConfigurationsInner.java#L390-L397
35,733
Azure/azure-sdk-for-java
hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ScriptActionsInner.java
ScriptActionsInner.delete
public void delete(String resourceGroupName, String clusterName, String scriptName) { deleteWithServiceResponseAsync(resourceGroupName, clusterName, scriptName).toBlocking().single().body(); }
java
public void delete(String resourceGroupName, String clusterName, String scriptName) { deleteWithServiceResponseAsync(resourceGroupName, clusterName, scriptName).toBlocking().single().body(); }
[ "public", "void", "delete", "(", "String", "resourceGroupName", ",", "String", "clusterName", ",", "String", "scriptName", ")", "{", "deleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "clusterName", ",", "scriptName", ")", ".", "toBlocking", "(", ")", ...
Deletes a specified persisted script action of the cluster. @param resourceGroupName The name of the resource group. @param clusterName The name of the cluster. @param scriptName The name of the script. @throws IllegalArgumentException thrown if parameters fail the validation @throws ErrorResponseException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Deletes", "a", "specified", "persisted", "script", "action", "of", "the", "cluster", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ScriptActionsInner.java#L89-L91
35,734
Azure/azure-sdk-for-java
notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubsInner.java
NotificationHubsInner.delete
public void delete(String resourceGroupName, String namespaceName, String notificationHubName) { deleteWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).toBlocking().single().body(); }
java
public void delete(String resourceGroupName, String namespaceName, String notificationHubName) { deleteWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).toBlocking().single().body(); }
[ "public", "void", "delete", "(", "String", "resourceGroupName", ",", "String", "namespaceName", ",", "String", "notificationHubName", ")", "{", "deleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "namespaceName", ",", "notificationHubName", ")", ".", "toBlo...
Deletes a notification hub associated with a namespace. @param resourceGroupName The name of the resource group. @param namespaceName The namespace name. @param notificationHubName The notification hub name. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Deletes", "a", "notification", "hub", "associated", "with", "a", "namespace", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/notificationhubs/resource-manager/v2017_04_01/src/main/java/com/microsoft/azure/management/notificationhubs/v2017_04_01/implementation/NotificationHubsInner.java#L529-L531
35,735
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/models/KeyRestoreParameters.java
KeyRestoreParameters.withKeyBundleBackup
public KeyRestoreParameters withKeyBundleBackup(byte[] keyBundleBackup) { if (keyBundleBackup == null) { this.keyBundleBackup = null; } else { this.keyBundleBackup = Base64Url.encode(keyBundleBackup); } return this; }
java
public KeyRestoreParameters withKeyBundleBackup(byte[] keyBundleBackup) { if (keyBundleBackup == null) { this.keyBundleBackup = null; } else { this.keyBundleBackup = Base64Url.encode(keyBundleBackup); } return this; }
[ "public", "KeyRestoreParameters", "withKeyBundleBackup", "(", "byte", "[", "]", "keyBundleBackup", ")", "{", "if", "(", "keyBundleBackup", "==", "null", ")", "{", "this", ".", "keyBundleBackup", "=", "null", ";", "}", "else", "{", "this", ".", "keyBundleBackup...
Set the keyBundleBackup value. @param keyBundleBackup the keyBundleBackup value to set @return the KeyRestoreParameters object itself.
[ "Set", "the", "keyBundleBackup", "value", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/models/KeyRestoreParameters.java#L38-L45
35,736
Azure/azure-sdk-for-java
network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/ConnectionMonitorsInner.java
ConnectionMonitorsInner.delete
public void delete(String resourceGroupName, String networkWatcherName, String connectionMonitorName) { deleteWithServiceResponseAsync(resourceGroupName, networkWatcherName, connectionMonitorName).toBlocking().last().body(); }
java
public void delete(String resourceGroupName, String networkWatcherName, String connectionMonitorName) { deleteWithServiceResponseAsync(resourceGroupName, networkWatcherName, connectionMonitorName).toBlocking().last().body(); }
[ "public", "void", "delete", "(", "String", "resourceGroupName", ",", "String", "networkWatcherName", ",", "String", "connectionMonitorName", ")", "{", "deleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "networkWatcherName", ",", "connectionMonitorName", ")", ...
Deletes the specified connection monitor. @param resourceGroupName The name of the resource group containing Network Watcher. @param networkWatcherName The name of the Network Watcher resource. @param connectionMonitorName The name of the connection monitor. @throws IllegalArgumentException thrown if parameters fail the validation @throws ErrorResponseException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Deletes", "the", "specified", "connection", "monitor", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/ConnectionMonitorsInner.java#L393-L395
35,737
Azure/azure-sdk-for-java
logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/PartnersInner.java
PartnersInner.listByIntegrationAccountsNextAsync
public Observable<Page<IntegrationAccountPartnerInner>> listByIntegrationAccountsNextAsync(final String nextPageLink) { return listByIntegrationAccountsNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<IntegrationAccountPartnerInner>>, Page<IntegrationAccountPartnerInner>>() { @Override public Page<IntegrationAccountPartnerInner> call(ServiceResponse<Page<IntegrationAccountPartnerInner>> response) { return response.body(); } }); }
java
public Observable<Page<IntegrationAccountPartnerInner>> listByIntegrationAccountsNextAsync(final String nextPageLink) { return listByIntegrationAccountsNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<IntegrationAccountPartnerInner>>, Page<IntegrationAccountPartnerInner>>() { @Override public Page<IntegrationAccountPartnerInner> call(ServiceResponse<Page<IntegrationAccountPartnerInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "Page", "<", "IntegrationAccountPartnerInner", ">", ">", "listByIntegrationAccountsNextAsync", "(", "final", "String", "nextPageLink", ")", "{", "return", "listByIntegrationAccountsNextWithServiceResponseAsync", "(", "nextPageLink", ")", ".", "m...
Gets a list of integration account partners. @param nextPageLink The NextLink from the previous successful call to List operation. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the PagedList&lt;IntegrationAccountPartnerInner&gt; object
[ "Gets", "a", "list", "of", "integration", "account", "partners", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/PartnersInner.java#L779-L787
35,738
Azure/azure-sdk-for-java
sql/resource-manager/v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/JobsInner.java
JobsInner.listByAgentNextAsync
public Observable<Page<JobInner>> listByAgentNextAsync(final String nextPageLink) { return listByAgentNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<JobInner>>, Page<JobInner>>() { @Override public Page<JobInner> call(ServiceResponse<Page<JobInner>> response) { return response.body(); } }); }
java
public Observable<Page<JobInner>> listByAgentNextAsync(final String nextPageLink) { return listByAgentNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<JobInner>>, Page<JobInner>>() { @Override public Page<JobInner> call(ServiceResponse<Page<JobInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "Page", "<", "JobInner", ">", ">", "listByAgentNextAsync", "(", "final", "String", "nextPageLink", ")", "{", "return", "listByAgentNextWithServiceResponseAsync", "(", "nextPageLink", ")", ".", "map", "(", "new", "Func1", "<", "ServiceR...
Gets a list of jobs. @param nextPageLink The NextLink from the previous successful call to List operation. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the PagedList&lt;JobInner&gt; object
[ "Gets", "a", "list", "of", "jobs", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/JobsInner.java#L573-L581
35,739
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/TransparentDataEncryptionsInner.java
TransparentDataEncryptionsInner.getAsync
public Observable<TransparentDataEncryptionInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<TransparentDataEncryptionInner>, TransparentDataEncryptionInner>() { @Override public TransparentDataEncryptionInner call(ServiceResponse<TransparentDataEncryptionInner> response) { return response.body(); } }); }
java
public Observable<TransparentDataEncryptionInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<TransparentDataEncryptionInner>, TransparentDataEncryptionInner>() { @Override public TransparentDataEncryptionInner call(ServiceResponse<TransparentDataEncryptionInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "TransparentDataEncryptionInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "databaseName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ...
Gets a database's transparent data encryption configuration. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param serverName The name of the server. @param databaseName The name of the database for which the transparent data encryption applies. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the TransparentDataEncryptionInner object
[ "Gets", "a", "database", "s", "transparent", "data", "encryption", "configuration", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/TransparentDataEncryptionsInner.java#L296-L303
35,740
Azure/azure-sdk-for-java
sql/resource-manager/v2015_05_01_preview/src/main/java/com/microsoft/azure/management/sql/v2015_05_01_preview/implementation/DatabaseAutomaticTuningsInner.java
DatabaseAutomaticTuningsInner.getAsync
public Observable<DatabaseAutomaticTuningInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<DatabaseAutomaticTuningInner>, DatabaseAutomaticTuningInner>() { @Override public DatabaseAutomaticTuningInner call(ServiceResponse<DatabaseAutomaticTuningInner> response) { return response.body(); } }); }
java
public Observable<DatabaseAutomaticTuningInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<DatabaseAutomaticTuningInner>, DatabaseAutomaticTuningInner>() { @Override public DatabaseAutomaticTuningInner call(ServiceResponse<DatabaseAutomaticTuningInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "DatabaseAutomaticTuningInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "databaseName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ...
Gets a database's automatic tuning. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param serverName The name of the server. @param databaseName The name of the database. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the DatabaseAutomaticTuningInner object
[ "Gets", "a", "database", "s", "automatic", "tuning", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2015_05_01_preview/src/main/java/com/microsoft/azure/management/sql/v2015_05_01_preview/implementation/DatabaseAutomaticTuningsInner.java#L105-L112
35,741
Azure/azure-sdk-for-java
network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/NetworkProfilesInner.java
NetworkProfilesInner.delete
public void delete(String resourceGroupName, String networkProfileName) { deleteWithServiceResponseAsync(resourceGroupName, networkProfileName).toBlocking().last().body(); }
java
public void delete(String resourceGroupName, String networkProfileName) { deleteWithServiceResponseAsync(resourceGroupName, networkProfileName).toBlocking().last().body(); }
[ "public", "void", "delete", "(", "String", "resourceGroupName", ",", "String", "networkProfileName", ")", "{", "deleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "networkProfileName", ")", ".", "toBlocking", "(", ")", ".", "last", "(", ")", ".", "bod...
Deletes the specified network profile. @param resourceGroupName The name of the resource group. @param networkProfileName The name of the NetworkProfile. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Deletes", "the", "specified", "network", "profile", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/NetworkProfilesInner.java#L113-L115
35,742
Azure/azure-sdk-for-java
eventgrid/resource-manager/v2018_05_01_preview/src/main/java/com/microsoft/azure/management/eventgrid/v2018_05_01_preview/implementation/EventSubscriptionsInner.java
EventSubscriptionsInner.listByResourceGroupAsync
public Observable<Page<EventSubscriptionInner>> listByResourceGroupAsync(String resourceGroupName) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1<ServiceResponse<List<EventSubscriptionInner>>, Page<EventSubscriptionInner>>() { @Override public Page<EventSubscriptionInner> call(ServiceResponse<List<EventSubscriptionInner>> response) { PageImpl<EventSubscriptionInner> page = new PageImpl<>(); page.setItems(response.body()); return page; } }); }
java
public Observable<Page<EventSubscriptionInner>> listByResourceGroupAsync(String resourceGroupName) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1<ServiceResponse<List<EventSubscriptionInner>>, Page<EventSubscriptionInner>>() { @Override public Page<EventSubscriptionInner> call(ServiceResponse<List<EventSubscriptionInner>> response) { PageImpl<EventSubscriptionInner> page = new PageImpl<>(); page.setItems(response.body()); return page; } }); }
[ "public", "Observable", "<", "Page", "<", "EventSubscriptionInner", ">", ">", "listByResourceGroupAsync", "(", "String", "resourceGroupName", ")", "{", "return", "listByResourceGroupWithServiceResponseAsync", "(", "resourceGroupName", ")", ".", "map", "(", "new", "Func1...
List all global event subscriptions under an Azure subscription and resource group. List all global event subscriptions under a specific Azure subscription and resource group. @param resourceGroupName The name of the resource group within the user's subscription. @return the observable to the List&lt;EventSubscriptionInner&gt; object
[ "List", "all", "global", "event", "subscriptions", "under", "an", "Azure", "subscription", "and", "resource", "group", ".", "List", "all", "global", "event", "subscriptions", "under", "a", "specific", "Azure", "subscription", "and", "resource", "group", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/eventgrid/resource-manager/v2018_05_01_preview/src/main/java/com/microsoft/azure/management/eventgrid/v2018_05_01_preview/implementation/EventSubscriptionsInner.java#L1024-L1033
35,743
Azure/azure-sdk-for-java
applicationinsights/resource-manager/v2015_05_01/src/main/java/com/microsoft/azure/management/applicationinsights/v2015_05_01/implementation/ComponentFeatureCapabilitiesInner.java
ComponentFeatureCapabilitiesInner.getAsync
public Observable<ApplicationInsightsComponentFeatureCapabilitiesInner> getAsync(String resourceGroupName, String resourceName) { return getWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<ApplicationInsightsComponentFeatureCapabilitiesInner>, ApplicationInsightsComponentFeatureCapabilitiesInner>() { @Override public ApplicationInsightsComponentFeatureCapabilitiesInner call(ServiceResponse<ApplicationInsightsComponentFeatureCapabilitiesInner> response) { return response.body(); } }); }
java
public Observable<ApplicationInsightsComponentFeatureCapabilitiesInner> getAsync(String resourceGroupName, String resourceName) { return getWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<ApplicationInsightsComponentFeatureCapabilitiesInner>, ApplicationInsightsComponentFeatureCapabilitiesInner>() { @Override public ApplicationInsightsComponentFeatureCapabilitiesInner call(ServiceResponse<ApplicationInsightsComponentFeatureCapabilitiesInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "ApplicationInsightsComponentFeatureCapabilitiesInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "resourceName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "resourceName", ")", "....
Returns feature capabilites of the application insights component. @param resourceGroupName The name of the resource group. @param resourceName The name of the Application Insights component resource. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the ApplicationInsightsComponentFeatureCapabilitiesInner object
[ "Returns", "feature", "capabilites", "of", "the", "application", "insights", "component", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/applicationinsights/resource-manager/v2015_05_01/src/main/java/com/microsoft/azure/management/applicationinsights/v2015_05_01/implementation/ComponentFeatureCapabilitiesInner.java#L95-L102
35,744
Azure/azure-sdk-for-java
network/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/network/v2017_10_01/implementation/VirtualNetworksInner.java
VirtualNetworksInner.delete
public void delete(String resourceGroupName, String virtualNetworkName) { deleteWithServiceResponseAsync(resourceGroupName, virtualNetworkName).toBlocking().last().body(); }
java
public void delete(String resourceGroupName, String virtualNetworkName) { deleteWithServiceResponseAsync(resourceGroupName, virtualNetworkName).toBlocking().last().body(); }
[ "public", "void", "delete", "(", "String", "resourceGroupName", ",", "String", "virtualNetworkName", ")", "{", "deleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "virtualNetworkName", ")", ".", "toBlocking", "(", ")", ".", "last", "(", ")", ".", "bod...
Deletes the specified virtual network. @param resourceGroupName The name of the resource group. @param virtualNetworkName The name of the virtual network. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Deletes", "the", "specified", "virtual", "network", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/network/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/network/v2017_10_01/implementation/VirtualNetworksInner.java#L137-L139
35,745
Azure/azure-sdk-for-java
devspaces/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/devspaces/v2018_06_01_preview/implementation/ControllersInner.java
ControllersInner.getByResourceGroupAsync
public Observable<ControllerInner> getByResourceGroupAsync(String resourceGroupName, String name) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, name).map(new Func1<ServiceResponse<ControllerInner>, ControllerInner>() { @Override public ControllerInner call(ServiceResponse<ControllerInner> response) { return response.body(); } }); }
java
public Observable<ControllerInner> getByResourceGroupAsync(String resourceGroupName, String name) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, name).map(new Func1<ServiceResponse<ControllerInner>, ControllerInner>() { @Override public ControllerInner call(ServiceResponse<ControllerInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "ControllerInner", ">", "getByResourceGroupAsync", "(", "String", "resourceGroupName", ",", "String", "name", ")", "{", "return", "getByResourceGroupWithServiceResponseAsync", "(", "resourceGroupName", ",", "name", ")", ".", "map", "(", "n...
Gets an Azure Dev Spaces Controller. Gets the properties for an Azure Dev Spaces Controller. @param resourceGroupName Resource group to which the resource belongs. @param name Name of the resource. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the ControllerInner object
[ "Gets", "an", "Azure", "Dev", "Spaces", "Controller", ".", "Gets", "the", "properties", "for", "an", "Azure", "Dev", "Spaces", "Controller", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/devspaces/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/devspaces/v2018_06_01_preview/implementation/ControllersInner.java#L155-L162
35,746
Azure/azure-sdk-for-java
mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/implementation/MediaservicesInner.java
MediaservicesInner.syncStorageKeysAsync
public Observable<Void> syncStorageKeysAsync(String resourceGroupName, String accountName) { return syncStorageKeysWithServiceResponseAsync(resourceGroupName, accountName).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); } }); }
java
public Observable<Void> syncStorageKeysAsync(String resourceGroupName, String accountName) { return syncStorageKeysWithServiceResponseAsync(resourceGroupName, accountName).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); } }); }
[ "public", "Observable", "<", "Void", ">", "syncStorageKeysAsync", "(", "String", "resourceGroupName", ",", "String", "accountName", ")", "{", "return", "syncStorageKeysWithServiceResponseAsync", "(", "resourceGroupName", ",", "accountName", ")", ".", "map", "(", "new"...
Synchronizes Storage Account Keys. Synchronizes storage account keys for a storage account associated with the Media Service account. @param resourceGroupName The name of the resource group within the Azure subscription. @param accountName The Media Services account name. @throws IllegalArgumentException thrown if parameters fail the validation @return the {@link ServiceResponse} object if successful.
[ "Synchronizes", "Storage", "Account", "Keys", ".", "Synchronizes", "storage", "account", "keys", "for", "a", "storage", "account", "associated", "with", "the", "Media", "Service", "account", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/implementation/MediaservicesInner.java#L644-L651
35,747
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/AssetFile.java
AssetFile.createFileInfos
public static EntityActionOperation createFileInfos(String assetId) { String encodedId; try { encodedId = URLEncoder.encode(assetId, "UTF-8"); } catch (UnsupportedEncodingException ex) { // This can never happen unless JVM is broken throw new RuntimeException(ex); } return new DefaultActionOperation("CreateFileInfos").addQueryParameter( "assetid", "'" + encodedId + "'"); }
java
public static EntityActionOperation createFileInfos(String assetId) { String encodedId; try { encodedId = URLEncoder.encode(assetId, "UTF-8"); } catch (UnsupportedEncodingException ex) { // This can never happen unless JVM is broken throw new RuntimeException(ex); } return new DefaultActionOperation("CreateFileInfos").addQueryParameter( "assetid", "'" + encodedId + "'"); }
[ "public", "static", "EntityActionOperation", "createFileInfos", "(", "String", "assetId", ")", "{", "String", "encodedId", ";", "try", "{", "encodedId", "=", "URLEncoder", ".", "encode", "(", "assetId", ",", "\"UTF-8\"", ")", ";", "}", "catch", "(", "Unsupport...
Call the CreateFileInfos action on the server for the given asset @param assetId asset to create file infos for @return The action operation object to pass to rest proxy. @throws UnsupportedEncodingException
[ "Call", "the", "CreateFileInfos", "action", "on", "the", "server", "for", "the", "given", "asset" ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/AssetFile.java#L176-L186
35,748
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/AssetFile.java
AssetFile.get
public static EntityGetOperation<AssetFileInfo> get(String assetFileId) { return new DefaultGetOperation<AssetFileInfo>(ENTITY_SET, assetFileId, AssetFileInfo.class); }
java
public static EntityGetOperation<AssetFileInfo> get(String assetFileId) { return new DefaultGetOperation<AssetFileInfo>(ENTITY_SET, assetFileId, AssetFileInfo.class); }
[ "public", "static", "EntityGetOperation", "<", "AssetFileInfo", ">", "get", "(", "String", "assetFileId", ")", "{", "return", "new", "DefaultGetOperation", "<", "AssetFileInfo", ">", "(", "ENTITY_SET", ",", "assetFileId", ",", "AssetFileInfo", ".", "class", ")", ...
Call the service to get a single asset file entity @param assetFileId id of file to get @return the get operation to pass to rest proxy
[ "Call", "the", "service", "to", "get", "a", "single", "asset", "file", "entity" ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/AssetFile.java#L195-L198
35,749
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/AssetFile.java
AssetFile.list
public static DefaultListOperation<AssetFileInfo> list( LinkInfo<AssetFileInfo> link) { return new DefaultListOperation<AssetFileInfo>(link.getHref(), new GenericType<ListResult<AssetFileInfo>>() { }); }
java
public static DefaultListOperation<AssetFileInfo> list( LinkInfo<AssetFileInfo> link) { return new DefaultListOperation<AssetFileInfo>(link.getHref(), new GenericType<ListResult<AssetFileInfo>>() { }); }
[ "public", "static", "DefaultListOperation", "<", "AssetFileInfo", ">", "list", "(", "LinkInfo", "<", "AssetFileInfo", ">", "link", ")", "{", "return", "new", "DefaultListOperation", "<", "AssetFileInfo", ">", "(", "link", ".", "getHref", "(", ")", ",", "new", ...
Create an operation that will list all the AssetFiles at the given link. @param link Link to request AssetFiles from. @return The list operation.
[ "Create", "an", "operation", "that", "will", "list", "all", "the", "AssetFiles", "at", "the", "given", "link", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/AssetFile.java#L218-L223
35,750
Azure/azure-sdk-for-java
labservices/resource-manager/v2018_10_15/src/main/java/com/microsoft/azure/management/labservices/v2018_10_15/implementation/LabsInner.java
LabsInner.beginDelete
public void beginDelete(String resourceGroupName, String labAccountName, String labName) { beginDeleteWithServiceResponseAsync(resourceGroupName, labAccountName, labName).toBlocking().single().body(); }
java
public void beginDelete(String resourceGroupName, String labAccountName, String labName) { beginDeleteWithServiceResponseAsync(resourceGroupName, labAccountName, labName).toBlocking().single().body(); }
[ "public", "void", "beginDelete", "(", "String", "resourceGroupName", ",", "String", "labAccountName", ",", "String", "labName", ")", "{", "beginDeleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "labAccountName", ",", "labName", ")", ".", "toBlocking", "(...
Delete lab. This operation can take a while to complete. @param resourceGroupName The name of the resource group. @param labAccountName The name of the lab Account. @param labName The name of the lab. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Delete", "lab", ".", "This", "operation", "can", "take", "a", "while", "to", "complete", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/labservices/resource-manager/v2018_10_15/src/main/java/com/microsoft/azure/management/labservices/v2018_10_15/implementation/LabsInner.java#L740-L742
35,751
Azure/azure-sdk-for-java
sql/resource-manager/v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseVulnerabilityAssessmentsInner.java
DatabaseVulnerabilityAssessmentsInner.getAsync
public Observable<DatabaseVulnerabilityAssessmentInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<DatabaseVulnerabilityAssessmentInner>, DatabaseVulnerabilityAssessmentInner>() { @Override public DatabaseVulnerabilityAssessmentInner call(ServiceResponse<DatabaseVulnerabilityAssessmentInner> response) { return response.body(); } }); }
java
public Observable<DatabaseVulnerabilityAssessmentInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<DatabaseVulnerabilityAssessmentInner>, DatabaseVulnerabilityAssessmentInner>() { @Override public DatabaseVulnerabilityAssessmentInner call(ServiceResponse<DatabaseVulnerabilityAssessmentInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "DatabaseVulnerabilityAssessmentInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "databaseName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverN...
Gets the database's vulnerability assessment. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param serverName The name of the server. @param databaseName The name of the database for which the vulnerability assessment is defined. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the DatabaseVulnerabilityAssessmentInner object
[ "Gets", "the", "database", "s", "vulnerability", "assessment", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseVulnerabilityAssessmentsInner.java#L124-L131
35,752
Azure/azure-sdk-for-java
sql/resource-manager/v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseVulnerabilityAssessmentsInner.java
DatabaseVulnerabilityAssessmentsInner.createOrUpdateAsync
public Observable<DatabaseVulnerabilityAssessmentInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseVulnerabilityAssessmentInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, databaseName, parameters).map(new Func1<ServiceResponse<DatabaseVulnerabilityAssessmentInner>, DatabaseVulnerabilityAssessmentInner>() { @Override public DatabaseVulnerabilityAssessmentInner call(ServiceResponse<DatabaseVulnerabilityAssessmentInner> response) { return response.body(); } }); }
java
public Observable<DatabaseVulnerabilityAssessmentInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseVulnerabilityAssessmentInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, databaseName, parameters).map(new Func1<ServiceResponse<DatabaseVulnerabilityAssessmentInner>, DatabaseVulnerabilityAssessmentInner>() { @Override public DatabaseVulnerabilityAssessmentInner call(ServiceResponse<DatabaseVulnerabilityAssessmentInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "DatabaseVulnerabilityAssessmentInner", ">", "createOrUpdateAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "databaseName", ",", "DatabaseVulnerabilityAssessmentInner", "parameters", ")", "{", "return", "c...
Creates or updates the database's vulnerability assessment. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param serverName The name of the server. @param databaseName The name of the database for which the vulnerability assessment is defined. @param parameters The requested resource. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the DatabaseVulnerabilityAssessmentInner object
[ "Creates", "or", "updates", "the", "database", "s", "vulnerability", "assessment", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseVulnerabilityAssessmentsInner.java#L221-L228
35,753
Azure/azure-sdk-for-java
sql/resource-manager/v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseVulnerabilityAssessmentsInner.java
DatabaseVulnerabilityAssessmentsInner.listByDatabaseNextAsync
public Observable<Page<DatabaseVulnerabilityAssessmentInner>> listByDatabaseNextAsync(final String nextPageLink) { return listByDatabaseNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<DatabaseVulnerabilityAssessmentInner>>, Page<DatabaseVulnerabilityAssessmentInner>>() { @Override public Page<DatabaseVulnerabilityAssessmentInner> call(ServiceResponse<Page<DatabaseVulnerabilityAssessmentInner>> response) { return response.body(); } }); }
java
public Observable<Page<DatabaseVulnerabilityAssessmentInner>> listByDatabaseNextAsync(final String nextPageLink) { return listByDatabaseNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<DatabaseVulnerabilityAssessmentInner>>, Page<DatabaseVulnerabilityAssessmentInner>>() { @Override public Page<DatabaseVulnerabilityAssessmentInner> call(ServiceResponse<Page<DatabaseVulnerabilityAssessmentInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "Page", "<", "DatabaseVulnerabilityAssessmentInner", ">", ">", "listByDatabaseNextAsync", "(", "final", "String", "nextPageLink", ")", "{", "return", "listByDatabaseNextWithServiceResponseAsync", "(", "nextPageLink", ")", ".", "map", "(", "n...
Lists the vulnerability assessment policies associated with a database. @param nextPageLink The NextLink from the previous successful call to List operation. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the PagedList&lt;DatabaseVulnerabilityAssessmentInner&gt; object
[ "Lists", "the", "vulnerability", "assessment", "policies", "associated", "with", "a", "database", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseVulnerabilityAssessmentsInner.java#L554-L562
35,754
Azure/azure-sdk-for-java
common/azure-common-mgmt/src/main/java/com/azure/common/mgmt/AzureAsyncOperationPollStrategy.java
AzureAsyncOperationPollStrategy.tryToCreate
static PollStrategy tryToCreate(RestProxy restProxy, SwaggerMethodParser methodParser, HttpRequest originalHttpRequest, HttpResponse httpResponse, long delayInMilliseconds) { String urlHeader = getHeader(httpResponse); URL azureAsyncOperationUrl = null; if (urlHeader != null) { try { azureAsyncOperationUrl = new URL(urlHeader); } catch (MalformedURLException ignored) { } } urlHeader = httpResponse.headerValue("Location"); URL locationUrl = null; if (urlHeader != null) { try { locationUrl = new URL(urlHeader); } catch (MalformedURLException ignored) { } } return azureAsyncOperationUrl != null ? new AzureAsyncOperationPollStrategy( new AzureAsyncOperationPollStrategyData(restProxy, methodParser, azureAsyncOperationUrl, originalHttpRequest.url(), locationUrl, originalHttpRequest.httpMethod(), delayInMilliseconds)) : null; }
java
static PollStrategy tryToCreate(RestProxy restProxy, SwaggerMethodParser methodParser, HttpRequest originalHttpRequest, HttpResponse httpResponse, long delayInMilliseconds) { String urlHeader = getHeader(httpResponse); URL azureAsyncOperationUrl = null; if (urlHeader != null) { try { azureAsyncOperationUrl = new URL(urlHeader); } catch (MalformedURLException ignored) { } } urlHeader = httpResponse.headerValue("Location"); URL locationUrl = null; if (urlHeader != null) { try { locationUrl = new URL(urlHeader); } catch (MalformedURLException ignored) { } } return azureAsyncOperationUrl != null ? new AzureAsyncOperationPollStrategy( new AzureAsyncOperationPollStrategyData(restProxy, methodParser, azureAsyncOperationUrl, originalHttpRequest.url(), locationUrl, originalHttpRequest.httpMethod(), delayInMilliseconds)) : null; }
[ "static", "PollStrategy", "tryToCreate", "(", "RestProxy", "restProxy", ",", "SwaggerMethodParser", "methodParser", ",", "HttpRequest", "originalHttpRequest", ",", "HttpResponse", "httpResponse", ",", "long", "delayInMilliseconds", ")", "{", "String", "urlHeader", "=", ...
Try to create a new AzureAsyncOperationPollStrategy object that will poll the provided operation resource URL. If the provided HttpResponse doesn't have an Azure-AsyncOperation header or if the header is empty, then null will be returned. @param restProxy The proxy object that is attempting to create a PollStrategy. @param methodParser The method parser that describes the service interface method that initiated the long running operation. @param originalHttpRequest The original HTTP request that initiated the long running operation. @param httpResponse The HTTP response that the required header values for this pollStrategy will be read from. @param delayInMilliseconds The delay (in milliseconds) that the resulting pollStrategy will use when polling.
[ "Try", "to", "create", "a", "new", "AzureAsyncOperationPollStrategy", "object", "that", "will", "poll", "the", "provided", "operation", "resource", "URL", ".", "If", "the", "provided", "HttpResponse", "doesn", "t", "have", "an", "Azure", "-", "AsyncOperation", "...
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common-mgmt/src/main/java/com/azure/common/mgmt/AzureAsyncOperationPollStrategy.java#L172-L195
35,755
Azure/azure-sdk-for-java
iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppsInner.java
AppsInner.getByResourceGroupAsync
public Observable<AppInner> getByResourceGroupAsync(String resourceGroupName, String resourceName) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<AppInner>, AppInner>() { @Override public AppInner call(ServiceResponse<AppInner> response) { return response.body(); } }); }
java
public Observable<AppInner> getByResourceGroupAsync(String resourceGroupName, String resourceName) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<AppInner>, AppInner>() { @Override public AppInner call(ServiceResponse<AppInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "AppInner", ">", "getByResourceGroupAsync", "(", "String", "resourceGroupName", ",", "String", "resourceName", ")", "{", "return", "getByResourceGroupWithServiceResponseAsync", "(", "resourceGroupName", ",", "resourceName", ")", ".", "map", ...
Get the metadata of an IoT Central application. @param resourceGroupName The name of the resource group that contains the IoT Central application. @param resourceName The ARM resource name of the IoT Central application. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the AppInner object
[ "Get", "the", "metadata", "of", "an", "IoT", "Central", "application", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppsInner.java#L156-L163
35,756
Azure/azure-sdk-for-java
iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppsInner.java
AppsInner.beginDelete
public void beginDelete(String resourceGroupName, String resourceName) { beginDeleteWithServiceResponseAsync(resourceGroupName, resourceName).toBlocking().single().body(); }
java
public void beginDelete(String resourceGroupName, String resourceName) { beginDeleteWithServiceResponseAsync(resourceGroupName, resourceName).toBlocking().single().body(); }
[ "public", "void", "beginDelete", "(", "String", "resourceGroupName", ",", "String", "resourceName", ")", "{", "beginDeleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "resourceName", ")", ".", "toBlocking", "(", ")", ".", "single", "(", ")", ".", "bod...
Delete an IoT Central application. @param resourceGroupName The name of the resource group that contains the IoT Central application. @param resourceName The ARM resource name of the IoT Central application. @throws IllegalArgumentException thrown if parameters fail the validation @throws ErrorDetailsException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Delete", "an", "IoT", "Central", "application", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppsInner.java#L629-L631
35,757
Azure/azure-sdk-for-java
network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/VpnGatewaysInner.java
VpnGatewaysInner.delete
public void delete(String resourceGroupName, String gatewayName) { deleteWithServiceResponseAsync(resourceGroupName, gatewayName).toBlocking().last().body(); }
java
public void delete(String resourceGroupName, String gatewayName) { deleteWithServiceResponseAsync(resourceGroupName, gatewayName).toBlocking().last().body(); }
[ "public", "void", "delete", "(", "String", "resourceGroupName", ",", "String", "gatewayName", ")", "{", "deleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "gatewayName", ")", ".", "toBlocking", "(", ")", ".", "last", "(", ")", ".", "body", "(", "...
Deletes a virtual wan vpn gateway. @param resourceGroupName The resource group name of the VpnGateway. @param gatewayName The name of the gateway. @throws IllegalArgumentException thrown if parameters fail the validation @throws ErrorException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Deletes", "a", "virtual", "wan", "vpn", "gateway", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/VpnGatewaysInner.java#L692-L694
35,758
Azure/azure-sdk-for-java
applicationconfig/client/src/main/java/com/azure/applicationconfig/models/SettingSelector.java
SettingSelector.acceptDatetime
public SettingSelector acceptDatetime(OffsetDateTime datetime) { this.acceptDatetime = DateTimeFormatter.RFC_1123_DATE_TIME.toFormat().format(datetime); return this; }
java
public SettingSelector acceptDatetime(OffsetDateTime datetime) { this.acceptDatetime = DateTimeFormatter.RFC_1123_DATE_TIME.toFormat().format(datetime); return this; }
[ "public", "SettingSelector", "acceptDatetime", "(", "OffsetDateTime", "datetime", ")", "{", "this", ".", "acceptDatetime", "=", "DateTimeFormatter", ".", "RFC_1123_DATE_TIME", ".", "toFormat", "(", ")", ".", "format", "(", "datetime", ")", ";", "return", "this", ...
If set, then configuration setting values will be retrieved as they existed at the provided datetime. Otherwise, the current values are returned. @param datetime The value of the configuration setting at that given {@link OffsetDateTime}. @return The updated SettingSelector object.
[ "If", "set", "then", "configuration", "setting", "values", "will", "be", "retrieved", "as", "they", "existed", "at", "the", "provided", "datetime", ".", "Otherwise", "the", "current", "values", "are", "returned", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/applicationconfig/client/src/main/java/com/azure/applicationconfig/models/SettingSelector.java#L149-L152
35,759
Azure/azure-sdk-for-java
batch/data-plane/src/main/java/com/microsoft/azure/batch/ApplicationOperations.java
ApplicationOperations.getApplication
public ApplicationSummary getApplication(String applicationId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { ApplicationGetOptions options = new ApplicationGetOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.applyRequestBehaviors(options); return this.parentBatchClient.protocolLayer().applications().get(applicationId, options); }
java
public ApplicationSummary getApplication(String applicationId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { ApplicationGetOptions options = new ApplicationGetOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.applyRequestBehaviors(options); return this.parentBatchClient.protocolLayer().applications().get(applicationId, options); }
[ "public", "ApplicationSummary", "getApplication", "(", "String", "applicationId", ",", "Iterable", "<", "BatchClientBehavior", ">", "additionalBehaviors", ")", "throws", "BatchErrorException", ",", "IOException", "{", "ApplicationGetOptions", "options", "=", "new", "Appli...
Gets information about the specified application. @param applicationId The ID of the application to get. @param additionalBehaviors A collection of {@link BatchClientBehavior} instances that are applied to the Batch service request. @return An {@link ApplicationSummary} containing information about the specified application. @throws BatchErrorException Exception thrown when an error response is received from the Batch service. @throws IOException Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.
[ "Gets", "information", "about", "the", "specified", "application", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/batch/data-plane/src/main/java/com/microsoft/azure/batch/ApplicationOperations.java#L101-L107
35,760
Azure/azure-sdk-for-java
resources/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/DeploymentsInner.java
DeploymentsInner.checkExistence
public boolean checkExistence(String resourceGroupName, String deploymentName) { return checkExistenceWithServiceResponseAsync(resourceGroupName, deploymentName).toBlocking().single().body(); }
java
public boolean checkExistence(String resourceGroupName, String deploymentName) { return checkExistenceWithServiceResponseAsync(resourceGroupName, deploymentName).toBlocking().single().body(); }
[ "public", "boolean", "checkExistence", "(", "String", "resourceGroupName", ",", "String", "deploymentName", ")", "{", "return", "checkExistenceWithServiceResponseAsync", "(", "resourceGroupName", ",", "deploymentName", ")", ".", "toBlocking", "(", ")", ".", "single", ...
Checks whether the deployment exists. @param resourceGroupName The name of the resource group with the deployment to check. The name is case insensitive. @param deploymentName The name of the deployment to check. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @return the boolean object if successful.
[ "Checks", "whether", "the", "deployment", "exists", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/resources/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/DeploymentsInner.java#L287-L289
35,761
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/ObjectIdentifier.java
ObjectIdentifier.verifyNonEmpty
protected static String verifyNonEmpty(String value, String argName) { if (value != null) { value = value.trim(); if (value.isEmpty()) { value = null; } } if (value == null) { throw new IllegalArgumentException(argName); } return value; }
java
protected static String verifyNonEmpty(String value, String argName) { if (value != null) { value = value.trim(); if (value.isEmpty()) { value = null; } } if (value == null) { throw new IllegalArgumentException(argName); } return value; }
[ "protected", "static", "String", "verifyNonEmpty", "(", "String", "value", ",", "String", "argName", ")", "{", "if", "(", "value", "!=", "null", ")", "{", "value", "=", "value", ".", "trim", "(", ")", ";", "if", "(", "value", ".", "isEmpty", "(", ")"...
Verifies a value is null or empty. Returns the value if non-empty and throws exception if empty. @param value the value to verify. @param argName the name of the value. @return Returns the value if non-empty.
[ "Verifies", "a", "value", "is", "null", "or", "empty", ".", "Returns", "the", "value", "if", "non", "-", "empty", "and", "throws", "exception", "if", "empty", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/ObjectIdentifier.java#L52-L63
35,762
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/ObjectIdentifier.java
ObjectIdentifier.getFullAuthority
protected String getFullAuthority(URI uri) { String authority = uri.getAuthority(); if (!authority.contains(":") && uri.getPort() > 0) { // Append port for complete authority authority = String.format("%s:%d", uri.getAuthority(), uri.getPort()); } return authority; }
java
protected String getFullAuthority(URI uri) { String authority = uri.getAuthority(); if (!authority.contains(":") && uri.getPort() > 0) { // Append port for complete authority authority = String.format("%s:%d", uri.getAuthority(), uri.getPort()); } return authority; }
[ "protected", "String", "getFullAuthority", "(", "URI", "uri", ")", "{", "String", "authority", "=", "uri", ".", "getAuthority", "(", ")", ";", "if", "(", "!", "authority", ".", "contains", "(", "\":\"", ")", "&&", "uri", ".", "getPort", "(", ")", ">", ...
Gets full authority for a URL by appending port to the url authority. @param uri the URL to get the full authority for. @return the full authority.
[ "Gets", "full", "authority", "for", "a", "URL", "by", "appending", "port", "to", "the", "url", "authority", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/ObjectIdentifier.java#L171-L178
35,763
Azure/azure-sdk-for-java
mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/implementation/LiveOutputsInner.java
LiveOutputsInner.beginDelete
public void beginDelete(String resourceGroupName, String accountName, String liveEventName, String liveOutputName) { beginDeleteWithServiceResponseAsync(resourceGroupName, accountName, liveEventName, liveOutputName).toBlocking().single().body(); }
java
public void beginDelete(String resourceGroupName, String accountName, String liveEventName, String liveOutputName) { beginDeleteWithServiceResponseAsync(resourceGroupName, accountName, liveEventName, liveOutputName).toBlocking().single().body(); }
[ "public", "void", "beginDelete", "(", "String", "resourceGroupName", ",", "String", "accountName", ",", "String", "liveEventName", ",", "String", "liveOutputName", ")", "{", "beginDeleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "accountName", ",", "liveE...
Delete Live Output. Deletes a Live Output. @param resourceGroupName The name of the resource group within the Azure subscription. @param accountName The Media Services account name. @param liveEventName The name of the Live Event. @param liveOutputName The name of the Live Output. @throws IllegalArgumentException thrown if parameters fail the validation @throws ApiErrorException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Delete", "Live", "Output", ".", "Deletes", "a", "Live", "Output", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/implementation/LiveOutputsInner.java#L641-L643
35,764
Azure/azure-sdk-for-java
sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/ElasticPoolOperationsInner.java
ElasticPoolOperationsInner.cancel
public void cancel(String resourceGroupName, String serverName, String elasticPoolName, UUID operationId) { cancelWithServiceResponseAsync(resourceGroupName, serverName, elasticPoolName, operationId).toBlocking().single().body(); }
java
public void cancel(String resourceGroupName, String serverName, String elasticPoolName, UUID operationId) { cancelWithServiceResponseAsync(resourceGroupName, serverName, elasticPoolName, operationId).toBlocking().single().body(); }
[ "public", "void", "cancel", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "elasticPoolName", ",", "UUID", "operationId", ")", "{", "cancelWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ",", "elasticPoolName", ...
Cancels the asynchronous operation on the elastic pool. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param serverName The name of the server. @param elasticPoolName the String value @param operationId The operation identifier. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Cancels", "the", "asynchronous", "operation", "on", "the", "elastic", "pool", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/ElasticPoolOperationsInner.java#L87-L89
35,765
Azure/azure-sdk-for-java
network/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/network/v2017_10_01/implementation/RouteTablesInner.java
RouteTablesInner.beginDelete
public void beginDelete(String resourceGroupName, String routeTableName) { beginDeleteWithServiceResponseAsync(resourceGroupName, routeTableName).toBlocking().single().body(); }
java
public void beginDelete(String resourceGroupName, String routeTableName) { beginDeleteWithServiceResponseAsync(resourceGroupName, routeTableName).toBlocking().single().body(); }
[ "public", "void", "beginDelete", "(", "String", "resourceGroupName", ",", "String", "routeTableName", ")", "{", "beginDeleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "routeTableName", ")", ".", "toBlocking", "(", ")", ".", "single", "(", ")", ".", ...
Deletes the specified route table. @param resourceGroupName The name of the resource group. @param routeTableName The name of the route table. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Deletes", "the", "specified", "route", "table", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/network/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/network/v2017_10_01/implementation/RouteTablesInner.java#L191-L193
35,766
Azure/azure-sdk-for-java
automation/resource-manager/v2015_10_31/src/main/java/com/microsoft/azure/management/automation/v2015_10_31/implementation/RunbooksInner.java
RunbooksInner.getContentAsync
public ServiceFuture<String> getContentAsync(String resourceGroupName, String automationAccountName, String runbookName, final ServiceCallback<String> serviceCallback) { return ServiceFuture.fromResponse(getContentWithServiceResponseAsync(resourceGroupName, automationAccountName, runbookName), serviceCallback); }
java
public ServiceFuture<String> getContentAsync(String resourceGroupName, String automationAccountName, String runbookName, final ServiceCallback<String> serviceCallback) { return ServiceFuture.fromResponse(getContentWithServiceResponseAsync(resourceGroupName, automationAccountName, runbookName), serviceCallback); }
[ "public", "ServiceFuture", "<", "String", ">", "getContentAsync", "(", "String", "resourceGroupName", ",", "String", "automationAccountName", ",", "String", "runbookName", ",", "final", "ServiceCallback", "<", "String", ">", "serviceCallback", ")", "{", "return", "S...
Retrieve the content of runbook identified by runbook name. @param resourceGroupName Name of an Azure Resource group. @param automationAccountName The name of the automation account. @param runbookName The runbook name. @param serviceCallback the async ServiceCallback to handle successful and failed responses. @throws IllegalArgumentException thrown if parameters fail the validation @return the {@link ServiceFuture} object
[ "Retrieve", "the", "content", "of", "runbook", "identified", "by", "runbook", "name", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/automation/resource-manager/v2015_10_31/src/main/java/com/microsoft/azure/management/automation/v2015_10_31/implementation/RunbooksInner.java#L123-L125
35,767
Azure/azure-sdk-for-java
automation/resource-manager/v2015_10_31/src/main/java/com/microsoft/azure/management/automation/v2015_10_31/implementation/RunbooksInner.java
RunbooksInner.getAsync
public Observable<RunbookInner> getAsync(String resourceGroupName, String automationAccountName, String runbookName) { return getWithServiceResponseAsync(resourceGroupName, automationAccountName, runbookName).map(new Func1<ServiceResponse<RunbookInner>, RunbookInner>() { @Override public RunbookInner call(ServiceResponse<RunbookInner> response) { return response.body(); } }); }
java
public Observable<RunbookInner> getAsync(String resourceGroupName, String automationAccountName, String runbookName) { return getWithServiceResponseAsync(resourceGroupName, automationAccountName, runbookName).map(new Func1<ServiceResponse<RunbookInner>, RunbookInner>() { @Override public RunbookInner call(ServiceResponse<RunbookInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "RunbookInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "automationAccountName", ",", "String", "runbookName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "automationAccountName...
Retrieve the runbook identified by runbook name. @param resourceGroupName Name of an Azure Resource group. @param automationAccountName The name of the automation account. @param runbookName The runbook name. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the RunbookInner object
[ "Retrieve", "the", "runbook", "identified", "by", "runbook", "name", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/automation/resource-manager/v2015_10_31/src/main/java/com/microsoft/azure/management/automation/v2015_10_31/implementation/RunbooksInner.java#L227-L234
35,768
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/http/ReactorNettyClient.java
ReactorNettyClient.bodySendDelegate
private static BiFunction<HttpClientRequest, NettyOutbound, Publisher<Void>> bodySendDelegate(final HttpRequest restRequest) { BiFunction<HttpClientRequest, NettyOutbound, Publisher<Void>> sendDelegate = (reactorNettyRequest, reactorNettyOutbound) -> { for (HttpHeader header : restRequest.headers()) { reactorNettyRequest.header(header.name(), header.value()); } if (restRequest.body() != null) { Flux<ByteBuf> nettyByteBufFlux = restRequest.body().map(Unpooled::wrappedBuffer); return reactorNettyOutbound.send(nettyByteBufFlux); } else { return reactorNettyOutbound; } }; return sendDelegate; }
java
private static BiFunction<HttpClientRequest, NettyOutbound, Publisher<Void>> bodySendDelegate(final HttpRequest restRequest) { BiFunction<HttpClientRequest, NettyOutbound, Publisher<Void>> sendDelegate = (reactorNettyRequest, reactorNettyOutbound) -> { for (HttpHeader header : restRequest.headers()) { reactorNettyRequest.header(header.name(), header.value()); } if (restRequest.body() != null) { Flux<ByteBuf> nettyByteBufFlux = restRequest.body().map(Unpooled::wrappedBuffer); return reactorNettyOutbound.send(nettyByteBufFlux); } else { return reactorNettyOutbound; } }; return sendDelegate; }
[ "private", "static", "BiFunction", "<", "HttpClientRequest", ",", "NettyOutbound", ",", "Publisher", "<", "Void", ">", ">", "bodySendDelegate", "(", "final", "HttpRequest", "restRequest", ")", "{", "BiFunction", "<", "HttpClientRequest", ",", "NettyOutbound", ",", ...
Delegate to send the request content. @param restRequest the Rest request contains the body to be sent @return a delegate upon invocation sets the request body in reactor-netty outbound object
[ "Delegate", "to", "send", "the", "request", "content", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/http/ReactorNettyClient.java#L77-L90
35,769
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/http/ReactorNettyClient.java
ReactorNettyClient.responseDelegate
private static BiFunction<HttpClientResponse, Connection, Publisher<HttpResponse>> responseDelegate(final HttpRequest restRequest) { return (reactorNettyResponse, reactorNettyConnection) -> Mono.just(new ReactorNettyHttpResponse(reactorNettyResponse, reactorNettyConnection).withRequest(restRequest)); }
java
private static BiFunction<HttpClientResponse, Connection, Publisher<HttpResponse>> responseDelegate(final HttpRequest restRequest) { return (reactorNettyResponse, reactorNettyConnection) -> Mono.just(new ReactorNettyHttpResponse(reactorNettyResponse, reactorNettyConnection).withRequest(restRequest)); }
[ "private", "static", "BiFunction", "<", "HttpClientResponse", ",", "Connection", ",", "Publisher", "<", "HttpResponse", ">", ">", "responseDelegate", "(", "final", "HttpRequest", "restRequest", ")", "{", "return", "(", "reactorNettyResponse", ",", "reactorNettyConnect...
Delegate to receive response. @param restRequest the Rest request whose response this delegate handles @return a delegate upon invocation setup Rest response object
[ "Delegate", "to", "receive", "response", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/http/ReactorNettyClient.java#L98-L101
35,770
Azure/azure-sdk-for-java
datalakeanalytics/resource-manager/v2015_10_01_preview/src/main/java/com/microsoft/azure/management/datalakeanalytics/v2015_10_01_preview/implementation/AccountsInner.java
AccountsInner.getByResourceGroupAsync
public Observable<DataLakeAnalyticsAccountInner> getByResourceGroupAsync(String resourceGroupName, String accountName) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, accountName).map(new Func1<ServiceResponse<DataLakeAnalyticsAccountInner>, DataLakeAnalyticsAccountInner>() { @Override public DataLakeAnalyticsAccountInner call(ServiceResponse<DataLakeAnalyticsAccountInner> response) { return response.body(); } }); }
java
public Observable<DataLakeAnalyticsAccountInner> getByResourceGroupAsync(String resourceGroupName, String accountName) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, accountName).map(new Func1<ServiceResponse<DataLakeAnalyticsAccountInner>, DataLakeAnalyticsAccountInner>() { @Override public DataLakeAnalyticsAccountInner call(ServiceResponse<DataLakeAnalyticsAccountInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "DataLakeAnalyticsAccountInner", ">", "getByResourceGroupAsync", "(", "String", "resourceGroupName", ",", "String", "accountName", ")", "{", "return", "getByResourceGroupWithServiceResponseAsync", "(", "resourceGroupName", ",", "accountName", ")",...
Gets details of the specified Data Lake Analytics account. @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. @param accountName The name of the Data Lake Analytics account to retrieve. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the DataLakeAnalyticsAccountInner object
[ "Gets", "details", "of", "the", "specified", "Data", "Lake", "Analytics", "account", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/datalakeanalytics/resource-manager/v2015_10_01_preview/src/main/java/com/microsoft/azure/management/datalakeanalytics/v2015_10_01_preview/implementation/AccountsInner.java#L2380-L2387
35,771
Azure/azure-sdk-for-java
eventhubs/data-plane/azure-eventhubs-eph/src/main/java/com/microsoft/azure/eventprocessorhost/LoggingUtils.java
LoggingUtils.unwrapException
static Throwable unwrapException(Throwable wrapped, StringBuilder outAction) { Throwable unwrapped = wrapped; while ((unwrapped instanceof ExecutionException) || (unwrapped instanceof CompletionException) || (unwrapped instanceof ExceptionWithAction)) { if ((unwrapped instanceof ExceptionWithAction) && (outAction != null)) { // Save the action string from an ExceptionWithAction, if desired. outAction.append(((ExceptionWithAction) unwrapped).getAction()); } if ((unwrapped.getCause() != null) && (unwrapped.getCause() instanceof Exception)) { unwrapped = unwrapped.getCause(); } else { break; } } return unwrapped; }
java
static Throwable unwrapException(Throwable wrapped, StringBuilder outAction) { Throwable unwrapped = wrapped; while ((unwrapped instanceof ExecutionException) || (unwrapped instanceof CompletionException) || (unwrapped instanceof ExceptionWithAction)) { if ((unwrapped instanceof ExceptionWithAction) && (outAction != null)) { // Save the action string from an ExceptionWithAction, if desired. outAction.append(((ExceptionWithAction) unwrapped).getAction()); } if ((unwrapped.getCause() != null) && (unwrapped.getCause() instanceof Exception)) { unwrapped = unwrapped.getCause(); } else { break; } } return unwrapped; }
[ "static", "Throwable", "unwrapException", "(", "Throwable", "wrapped", ",", "StringBuilder", "outAction", ")", "{", "Throwable", "unwrapped", "=", "wrapped", ";", "while", "(", "(", "unwrapped", "instanceof", "ExecutionException", ")", "||", "(", "unwrapped", "ins...
outAction can be null if you don't care about any action string
[ "outAction", "can", "be", "null", "if", "you", "don", "t", "care", "about", "any", "action", "string" ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/eventhubs/data-plane/azure-eventhubs-eph/src/main/java/com/microsoft/azure/eventprocessorhost/LoggingUtils.java#L24-L42
35,772
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/JWSHeader.java
JWSHeader.deserialize
public static JWSHeader deserialize(String json) throws IOException { ObjectMapper mapper = new ObjectMapper(); return mapper.readValue(json, JWSHeader.class); }
java
public static JWSHeader deserialize(String json) throws IOException { ObjectMapper mapper = new ObjectMapper(); return mapper.readValue(json, JWSHeader.class); }
[ "public", "static", "JWSHeader", "deserialize", "(", "String", "json", ")", "throws", "IOException", "{", "ObjectMapper", "mapper", "=", "new", "ObjectMapper", "(", ")", ";", "return", "mapper", ".", "readValue", "(", "json", ",", "JWSHeader", ".", "class", ...
Construct JWSHeader from json string. @param json json string. @return Constructed JWSHeader
[ "Construct", "JWSHeader", "from", "json", "string", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/JWSHeader.java#L102-L105
35,773
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/JWSHeader.java
JWSHeader.fromBase64String
public static JWSHeader fromBase64String(String base64) throws IOException { String json = MessageSecurityHelper.base64UrltoString(base64); ObjectMapper mapper = new ObjectMapper(); return mapper.readValue(json, JWSHeader.class); }
java
public static JWSHeader fromBase64String(String base64) throws IOException { String json = MessageSecurityHelper.base64UrltoString(base64); ObjectMapper mapper = new ObjectMapper(); return mapper.readValue(json, JWSHeader.class); }
[ "public", "static", "JWSHeader", "fromBase64String", "(", "String", "base64", ")", "throws", "IOException", "{", "String", "json", "=", "MessageSecurityHelper", ".", "base64UrltoString", "(", "base64", ")", ";", "ObjectMapper", "mapper", "=", "new", "ObjectMapper", ...
Construct JWSHeader from base64url string. @param base64 base64 url string. @return Constructed JWSHeader
[ "Construct", "JWSHeader", "from", "base64url", "string", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/JWSHeader.java#L115-L119
35,774
Azure/azure-sdk-for-java
automation/resource-manager/v2015_10_31/src/main/java/com/microsoft/azure/management/automation/v2015_10_31/implementation/JobsInner.java
JobsInner.listByAutomationAccountNextAsync
public Observable<Page<JobInner>> listByAutomationAccountNextAsync(final String nextPageLink) { return listByAutomationAccountNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<JobInner>>, Page<JobInner>>() { @Override public Page<JobInner> call(ServiceResponse<Page<JobInner>> response) { return response.body(); } }); }
java
public Observable<Page<JobInner>> listByAutomationAccountNextAsync(final String nextPageLink) { return listByAutomationAccountNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<JobInner>>, Page<JobInner>>() { @Override public Page<JobInner> call(ServiceResponse<Page<JobInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "Page", "<", "JobInner", ">", ">", "listByAutomationAccountNextAsync", "(", "final", "String", "nextPageLink", ")", "{", "return", "listByAutomationAccountNextWithServiceResponseAsync", "(", "nextPageLink", ")", ".", "map", "(", "new", "Fu...
Retrieve a list of jobs. @param nextPageLink The NextLink from the previous successful call to List operation. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the PagedList&lt;JobInner&gt; object
[ "Retrieve", "a", "list", "of", "jobs", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/automation/resource-manager/v2015_10_31/src/main/java/com/microsoft/azure/management/automation/v2015_10_31/implementation/JobsInner.java#L1038-L1046
35,775
Azure/azure-sdk-for-java
recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/VaultsInner.java
VaultsInner.listByResourceGroupNextAsync
public Observable<Page<VaultInner>> listByResourceGroupNextAsync(final String nextPageLink) { return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<VaultInner>>, Page<VaultInner>>() { @Override public Page<VaultInner> call(ServiceResponse<Page<VaultInner>> response) { return response.body(); } }); }
java
public Observable<Page<VaultInner>> listByResourceGroupNextAsync(final String nextPageLink) { return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<VaultInner>>, Page<VaultInner>>() { @Override public Page<VaultInner> call(ServiceResponse<Page<VaultInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "Page", "<", "VaultInner", ">", ">", "listByResourceGroupNextAsync", "(", "final", "String", "nextPageLink", ")", "{", "return", "listByResourceGroupNextWithServiceResponseAsync", "(", "nextPageLink", ")", ".", "map", "(", "new", "Func1", ...
Retrieve a list of Vaults. @param nextPageLink The NextLink from the previous successful call to List operation. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the PagedList&lt;VaultInner&gt; object
[ "Retrieve", "a", "list", "of", "Vaults", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/VaultsInner.java#L844-L852
35,776
Azure/azure-sdk-for-java
edgegateway/resource-manager/v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/implementation/BandwidthSchedulesInner.java
BandwidthSchedulesInner.getAsync
public Observable<BandwidthScheduleInner> getAsync(String deviceName, String name, String resourceGroupName) { return getWithServiceResponseAsync(deviceName, name, resourceGroupName).map(new Func1<ServiceResponse<BandwidthScheduleInner>, BandwidthScheduleInner>() { @Override public BandwidthScheduleInner call(ServiceResponse<BandwidthScheduleInner> response) { return response.body(); } }); }
java
public Observable<BandwidthScheduleInner> getAsync(String deviceName, String name, String resourceGroupName) { return getWithServiceResponseAsync(deviceName, name, resourceGroupName).map(new Func1<ServiceResponse<BandwidthScheduleInner>, BandwidthScheduleInner>() { @Override public BandwidthScheduleInner call(ServiceResponse<BandwidthScheduleInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "BandwidthScheduleInner", ">", "getAsync", "(", "String", "deviceName", ",", "String", "name", ",", "String", "resourceGroupName", ")", "{", "return", "getWithServiceResponseAsync", "(", "deviceName", ",", "name", ",", "resourceGroupName",...
Gets the properties of the specified bandwidth schedule. @param deviceName The device name. @param name The bandwidth schedule name. @param resourceGroupName The resource group name. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the BandwidthScheduleInner object
[ "Gets", "the", "properties", "of", "the", "specified", "bandwidth", "schedule", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/edgegateway/resource-manager/v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/implementation/BandwidthSchedulesInner.java#L255-L262
35,777
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/HttpMessageSecurity.java
HttpMessageSecurity.protectRequest
public Request protectRequest(Request request) throws IOException { try { Request result = request.newBuilder().header(AUTHENTICATE, BEARER_TOKEP_REFIX + clientSecurityToken) .build(); if (!supportsProtection()) { return result; } Buffer buffer = new Buffer(); request.body().writeTo(buffer); String currentbody = buffer.readUtf8(); if (currentbody == null || currentbody.length() == 0) { return result; } JsonWebKey clientPublicEncryptionKey = MessageSecurityHelper.getJwkWithPublicKeyOnly(clientEncryptionKey); String payload = currentbody.substring(0, currentbody.length() - 1) + ",\"rek\":{\"jwk\":" + clientPublicEncryptionKey.toString() + "}}"; JWEObject jweObject = protectPayload(payload); JWSHeader jwsHeader = new JWSHeader("RS256", clientSignatureKey.kid(), clientSecurityToken, getCurrentTimestamp(), "PoP", null); String jwsHeaderJsonb64 = MessageSecurityHelper.stringToBase64Url(jwsHeader.serialize()); String protectedPayload = MessageSecurityHelper.stringToBase64Url(jweObject.serialize()); byte[] data = (jwsHeaderJsonb64 + "." + protectedPayload).getBytes(MESSAGE_ENCODING); RsaKey clientSignatureRsaKey = new RsaKey(clientSignatureKey.kid(), clientSignatureKey.toRSA(true)); Pair<byte[], String> signature = clientSignatureRsaKey.signAsync(getSha256(data), "RS256").get(); JWSObject jwsObject = new JWSObject(jwsHeader, protectedPayload, MessageSecurityHelper.bytesToBase64Url(signature.getKey())); RequestBody body = RequestBody.create(MediaType.parse("application/jose+json"), jwsObject.serialize()); return result.newBuilder().method(request.method(), body).build(); } catch (ExecutionException e) { // unexpected; return null; } catch (InterruptedException e) { // unexpected; return null; } catch (NoSuchAlgorithmException e) { // unexpected; return null; } }
java
public Request protectRequest(Request request) throws IOException { try { Request result = request.newBuilder().header(AUTHENTICATE, BEARER_TOKEP_REFIX + clientSecurityToken) .build(); if (!supportsProtection()) { return result; } Buffer buffer = new Buffer(); request.body().writeTo(buffer); String currentbody = buffer.readUtf8(); if (currentbody == null || currentbody.length() == 0) { return result; } JsonWebKey clientPublicEncryptionKey = MessageSecurityHelper.getJwkWithPublicKeyOnly(clientEncryptionKey); String payload = currentbody.substring(0, currentbody.length() - 1) + ",\"rek\":{\"jwk\":" + clientPublicEncryptionKey.toString() + "}}"; JWEObject jweObject = protectPayload(payload); JWSHeader jwsHeader = new JWSHeader("RS256", clientSignatureKey.kid(), clientSecurityToken, getCurrentTimestamp(), "PoP", null); String jwsHeaderJsonb64 = MessageSecurityHelper.stringToBase64Url(jwsHeader.serialize()); String protectedPayload = MessageSecurityHelper.stringToBase64Url(jweObject.serialize()); byte[] data = (jwsHeaderJsonb64 + "." + protectedPayload).getBytes(MESSAGE_ENCODING); RsaKey clientSignatureRsaKey = new RsaKey(clientSignatureKey.kid(), clientSignatureKey.toRSA(true)); Pair<byte[], String> signature = clientSignatureRsaKey.signAsync(getSha256(data), "RS256").get(); JWSObject jwsObject = new JWSObject(jwsHeader, protectedPayload, MessageSecurityHelper.bytesToBase64Url(signature.getKey())); RequestBody body = RequestBody.create(MediaType.parse("application/jose+json"), jwsObject.serialize()); return result.newBuilder().method(request.method(), body).build(); } catch (ExecutionException e) { // unexpected; return null; } catch (InterruptedException e) { // unexpected; return null; } catch (NoSuchAlgorithmException e) { // unexpected; return null; } }
[ "public", "Request", "protectRequest", "(", "Request", "request", ")", "throws", "IOException", "{", "try", "{", "Request", "result", "=", "request", ".", "newBuilder", "(", ")", ".", "header", "(", "AUTHENTICATE", ",", "BEARER_TOKEP_REFIX", "+", "clientSecurity...
Protects existing request. Replaces its body with encrypted version. @param request existing request. @return new request with encrypted body if supported or existing request. @throws IOException throws IOException
[ "Protects", "existing", "request", ".", "Replaces", "its", "body", "with", "encrypted", "version", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/HttpMessageSecurity.java#L154-L204
35,778
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/HttpMessageSecurity.java
HttpMessageSecurity.unprotectResponse
public Response unprotectResponse(Response response) throws IOException { try { if (!supportsProtection() || !HttpHeaders.hasBody(response)) { return response; } if (!response.header("content-type").toLowerCase().contains("application/jose+json")) { return response; } JWSObject jwsObject = JWSObject.deserialize(response.body().string()); JWSHeader jwsHeader = jwsObject.jwsHeader(); if (!jwsHeader.kid().equals(serverSignatureKey.kid()) || !jwsHeader.alg().equals("RS256")) { throw new IOException("Invalid protected response"); } byte[] data = (jwsObject.originalProtected() + "." + jwsObject.payload()).getBytes(MESSAGE_ENCODING); byte[] signature = MessageSecurityHelper.base64UrltoByteArray(jwsObject.signature()); RsaKey serverSignatureRsaKey = new RsaKey(serverSignatureKey.kid(), serverSignatureKey.toRSA(false)); boolean signed = serverSignatureRsaKey.verifyAsync(getSha256(data), signature, "RS256").get(); if (!signed) { throw new IOException("Wrong signature."); } String decrypted = unprotectPayload(jwsObject.payload()); MediaType contentType = response.body().contentType(); ResponseBody body = ResponseBody.create(contentType, decrypted); return response.newBuilder().body(body).build(); } catch (ExecutionException e) { // unexpected; return null; } catch (InterruptedException e) { // unexpected; return null; } catch (NoSuchAlgorithmException e) { // unexpected; return null; } }
java
public Response unprotectResponse(Response response) throws IOException { try { if (!supportsProtection() || !HttpHeaders.hasBody(response)) { return response; } if (!response.header("content-type").toLowerCase().contains("application/jose+json")) { return response; } JWSObject jwsObject = JWSObject.deserialize(response.body().string()); JWSHeader jwsHeader = jwsObject.jwsHeader(); if (!jwsHeader.kid().equals(serverSignatureKey.kid()) || !jwsHeader.alg().equals("RS256")) { throw new IOException("Invalid protected response"); } byte[] data = (jwsObject.originalProtected() + "." + jwsObject.payload()).getBytes(MESSAGE_ENCODING); byte[] signature = MessageSecurityHelper.base64UrltoByteArray(jwsObject.signature()); RsaKey serverSignatureRsaKey = new RsaKey(serverSignatureKey.kid(), serverSignatureKey.toRSA(false)); boolean signed = serverSignatureRsaKey.verifyAsync(getSha256(data), signature, "RS256").get(); if (!signed) { throw new IOException("Wrong signature."); } String decrypted = unprotectPayload(jwsObject.payload()); MediaType contentType = response.body().contentType(); ResponseBody body = ResponseBody.create(contentType, decrypted); return response.newBuilder().body(body).build(); } catch (ExecutionException e) { // unexpected; return null; } catch (InterruptedException e) { // unexpected; return null; } catch (NoSuchAlgorithmException e) { // unexpected; return null; } }
[ "public", "Response", "unprotectResponse", "(", "Response", "response", ")", "throws", "IOException", "{", "try", "{", "if", "(", "!", "supportsProtection", "(", ")", "||", "!", "HttpHeaders", ".", "hasBody", "(", "response", ")", ")", "{", "return", "respon...
Unprotects response if needed. Replaces its body with unencrypted version. @param response server response. @return new response with unencrypted body if supported or existing response. @throws IOException throws IOException
[ "Unprotects", "response", "if", "needed", ".", "Replaces", "its", "body", "with", "unencrypted", "version", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/HttpMessageSecurity.java#L216-L257
35,779
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/HttpMessageSecurity.java
HttpMessageSecurity.protectPayload
private JWEObject protectPayload(String payload) throws IOException { try { JWEHeader jweHeader = new JWEHeader("RSA-OAEP", serverEncryptionKey.kid(), "A128CBC-HS256"); byte[] aesKeyBytes = generateAesKey(); SymmetricKey aesKey = new SymmetricKey(UUID.randomUUID().toString(), aesKeyBytes); byte[] iv = generateAesIv(); RsaKey serverEncryptionRsaKey = new RsaKey(serverEncryptionKey.kid(), serverEncryptionKey.toRSA(false)); Triple<byte[], byte[], String> encryptedKey = serverEncryptionRsaKey .encryptAsync(aesKeyBytes, null, null, "RSA-OAEP").get(); Triple<byte[], byte[], String> cipher = aesKey .encryptAsync(payload.getBytes(MESSAGE_ENCODING), iv, MessageSecurityHelper.stringToBase64Url(jweHeader.serialize()).getBytes(MESSAGE_ENCODING), "A128CBC-HS256") .get(); JWEObject jweObject = new JWEObject(jweHeader, MessageSecurityHelper.bytesToBase64Url((!testMode) ? encryptedKey.getLeft() : "key".getBytes(MESSAGE_ENCODING)), MessageSecurityHelper.bytesToBase64Url(iv), MessageSecurityHelper.bytesToBase64Url(cipher.getLeft()), MessageSecurityHelper.bytesToBase64Url(cipher.getMiddle())); return jweObject; } catch (ExecutionException e) { // unexpected; return null; } catch (InterruptedException e) { // unexpected; return null; } catch (NoSuchAlgorithmException e) { // unexpected; return null; } }
java
private JWEObject protectPayload(String payload) throws IOException { try { JWEHeader jweHeader = new JWEHeader("RSA-OAEP", serverEncryptionKey.kid(), "A128CBC-HS256"); byte[] aesKeyBytes = generateAesKey(); SymmetricKey aesKey = new SymmetricKey(UUID.randomUUID().toString(), aesKeyBytes); byte[] iv = generateAesIv(); RsaKey serverEncryptionRsaKey = new RsaKey(serverEncryptionKey.kid(), serverEncryptionKey.toRSA(false)); Triple<byte[], byte[], String> encryptedKey = serverEncryptionRsaKey .encryptAsync(aesKeyBytes, null, null, "RSA-OAEP").get(); Triple<byte[], byte[], String> cipher = aesKey .encryptAsync(payload.getBytes(MESSAGE_ENCODING), iv, MessageSecurityHelper.stringToBase64Url(jweHeader.serialize()).getBytes(MESSAGE_ENCODING), "A128CBC-HS256") .get(); JWEObject jweObject = new JWEObject(jweHeader, MessageSecurityHelper.bytesToBase64Url((!testMode) ? encryptedKey.getLeft() : "key".getBytes(MESSAGE_ENCODING)), MessageSecurityHelper.bytesToBase64Url(iv), MessageSecurityHelper.bytesToBase64Url(cipher.getLeft()), MessageSecurityHelper.bytesToBase64Url(cipher.getMiddle())); return jweObject; } catch (ExecutionException e) { // unexpected; return null; } catch (InterruptedException e) { // unexpected; return null; } catch (NoSuchAlgorithmException e) { // unexpected; return null; } }
[ "private", "JWEObject", "protectPayload", "(", "String", "payload", ")", "throws", "IOException", "{", "try", "{", "JWEHeader", "jweHeader", "=", "new", "JWEHeader", "(", "\"RSA-OAEP\"", ",", "serverEncryptionKey", ".", "kid", "(", ")", ",", "\"A128CBC-HS256\"", ...
Encrypt provided payload and return proper JWEObject. @param payload Content to be encrypted. Content will be encrypted with UTF-8 representation of contents as per https://tools.ietf.org/html/rfc7515. It can represent anything. @return JWEObject with encrypted payload. @throws IOException throws IOException
[ "Encrypt", "provided", "payload", "and", "return", "proper", "JWEObject", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/HttpMessageSecurity.java#L293-L329
35,780
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/HttpMessageSecurity.java
HttpMessageSecurity.unprotectPayload
private String unprotectPayload(String payload) throws IOException { try { JWEObject jweObject = JWEObject.deserialize(MessageSecurityHelper.base64UrltoString(payload)); JWEHeader jweHeader = jweObject.jweHeader(); if (!clientEncryptionKey.kid().equals(jweHeader.kid()) || !jweHeader.alg().equals("RSA-OAEP") || !jweHeader.enc().equals("A128CBC-HS256")) { throw new IOException("Invalid protected response"); } byte[] key = MessageSecurityHelper.base64UrltoByteArray(jweObject.encryptedKey()); RsaKey clientEncryptionRsaKey = new RsaKey(clientEncryptionKey.kid(), clientEncryptionKey.toRSA(true)); byte[] aesKeyBytes = clientEncryptionRsaKey.decryptAsync(key, null, null, null, "RSA-OAEP").get(); SymmetricKey aesKey = new SymmetricKey(UUID.randomUUID().toString(), aesKeyBytes); byte[] result = aesKey.decryptAsync(MessageSecurityHelper.base64UrltoByteArray(jweObject.cipherText()), MessageSecurityHelper.base64UrltoByteArray(jweObject.iv()), jweObject.originalProtected().getBytes(MESSAGE_ENCODING), MessageSecurityHelper.base64UrltoByteArray(jweObject.tag()), "A128CBC-HS256").get(); return new String(result, MESSAGE_ENCODING); } catch (ExecutionException e) { // unexpected; return null; } catch (InterruptedException e) { // unexpected; return null; } catch (NoSuchAlgorithmException e) { // unexpected; return null; } }
java
private String unprotectPayload(String payload) throws IOException { try { JWEObject jweObject = JWEObject.deserialize(MessageSecurityHelper.base64UrltoString(payload)); JWEHeader jweHeader = jweObject.jweHeader(); if (!clientEncryptionKey.kid().equals(jweHeader.kid()) || !jweHeader.alg().equals("RSA-OAEP") || !jweHeader.enc().equals("A128CBC-HS256")) { throw new IOException("Invalid protected response"); } byte[] key = MessageSecurityHelper.base64UrltoByteArray(jweObject.encryptedKey()); RsaKey clientEncryptionRsaKey = new RsaKey(clientEncryptionKey.kid(), clientEncryptionKey.toRSA(true)); byte[] aesKeyBytes = clientEncryptionRsaKey.decryptAsync(key, null, null, null, "RSA-OAEP").get(); SymmetricKey aesKey = new SymmetricKey(UUID.randomUUID().toString(), aesKeyBytes); byte[] result = aesKey.decryptAsync(MessageSecurityHelper.base64UrltoByteArray(jweObject.cipherText()), MessageSecurityHelper.base64UrltoByteArray(jweObject.iv()), jweObject.originalProtected().getBytes(MESSAGE_ENCODING), MessageSecurityHelper.base64UrltoByteArray(jweObject.tag()), "A128CBC-HS256").get(); return new String(result, MESSAGE_ENCODING); } catch (ExecutionException e) { // unexpected; return null; } catch (InterruptedException e) { // unexpected; return null; } catch (NoSuchAlgorithmException e) { // unexpected; return null; } }
[ "private", "String", "unprotectPayload", "(", "String", "payload", ")", "throws", "IOException", "{", "try", "{", "JWEObject", "jweObject", "=", "JWEObject", ".", "deserialize", "(", "MessageSecurityHelper", ".", "base64UrltoString", "(", "payload", ")", ")", ";",...
Unencrypt encrypted payload. @param payload base64url serialized JWEObject. @return Unencrypted message.
[ "Unencrypt", "encrypted", "payload", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/HttpMessageSecurity.java#L339-L371
35,781
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/HttpMessageSecurity.java
HttpMessageSecurity.getSha256
private byte[] getSha256(byte[] data) throws NoSuchAlgorithmException { MessageDigest digest = MessageDigest.getInstance("SHA-256"); return digest.digest(data); }
java
private byte[] getSha256(byte[] data) throws NoSuchAlgorithmException { MessageDigest digest = MessageDigest.getInstance("SHA-256"); return digest.digest(data); }
[ "private", "byte", "[", "]", "getSha256", "(", "byte", "[", "]", "data", ")", "throws", "NoSuchAlgorithmException", "{", "MessageDigest", "digest", "=", "MessageDigest", ".", "getInstance", "(", "\"SHA-256\"", ")", ";", "return", "digest", ".", "digest", "(", ...
Get SHA256 hash for byte array. @param data byte array. @return byte array with sha256 hash.
[ "Get", "SHA256", "hash", "for", "byte", "array", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/HttpMessageSecurity.java#L381-L384
35,782
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/HttpMessageSecurity.java
HttpMessageSecurity.generateAesKey
private byte[] generateAesKey() { byte[] bytes = new byte[32]; if (!testMode) { SecureRandom random = new SecureRandom(); random.nextBytes(bytes); } else { bytes = "TEST1234TEST1234TEST1234TEST1234".getBytes(MESSAGE_ENCODING); } return bytes; }
java
private byte[] generateAesKey() { byte[] bytes = new byte[32]; if (!testMode) { SecureRandom random = new SecureRandom(); random.nextBytes(bytes); } else { bytes = "TEST1234TEST1234TEST1234TEST1234".getBytes(MESSAGE_ENCODING); } return bytes; }
[ "private", "byte", "[", "]", "generateAesKey", "(", ")", "{", "byte", "[", "]", "bytes", "=", "new", "byte", "[", "32", "]", ";", "if", "(", "!", "testMode", ")", "{", "SecureRandom", "random", "=", "new", "SecureRandom", "(", ")", ";", "random", "...
Generates AES key. @return Random AES key or pre-defined value for test mode.
[ "Generates", "AES", "key", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/HttpMessageSecurity.java#L391-L400
35,783
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/HttpMessageSecurity.java
HttpMessageSecurity.generateAesIv
private byte[] generateAesIv() { byte[] bytes = new byte[16]; if (!testMode) { SecureRandom random = new SecureRandom(); random.nextBytes(bytes); } else { bytes = "TEST1234TEST1234".getBytes(MESSAGE_ENCODING); } return bytes; }
java
private byte[] generateAesIv() { byte[] bytes = new byte[16]; if (!testMode) { SecureRandom random = new SecureRandom(); random.nextBytes(bytes); } else { bytes = "TEST1234TEST1234".getBytes(MESSAGE_ENCODING); } return bytes; }
[ "private", "byte", "[", "]", "generateAesIv", "(", ")", "{", "byte", "[", "]", "bytes", "=", "new", "byte", "[", "16", "]", ";", "if", "(", "!", "testMode", ")", "{", "SecureRandom", "random", "=", "new", "SecureRandom", "(", ")", ";", "random", "....
Generates initialization vector for AES encryption. @return Random IV or pre-defined value for test mode.
[ "Generates", "initialization", "vector", "for", "AES", "encryption", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/HttpMessageSecurity.java#L407-L416
35,784
Azure/azure-sdk-for-java
recoveryservices.backup/resource-manager/v2017_07_01/src/main/java/com/microsoft/azure/management/recoveryservices/backup/v2017_07_01/implementation/RecoveryPointsInner.java
RecoveryPointsInner.listNextAsync
public Observable<Page<RecoveryPointResourceInner>> listNextAsync(final String nextPageLink) { return listNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<RecoveryPointResourceInner>>, Page<RecoveryPointResourceInner>>() { @Override public Page<RecoveryPointResourceInner> call(ServiceResponse<Page<RecoveryPointResourceInner>> response) { return response.body(); } }); }
java
public Observable<Page<RecoveryPointResourceInner>> listNextAsync(final String nextPageLink) { return listNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<RecoveryPointResourceInner>>, Page<RecoveryPointResourceInner>>() { @Override public Page<RecoveryPointResourceInner> call(ServiceResponse<Page<RecoveryPointResourceInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "Page", "<", "RecoveryPointResourceInner", ">", ">", "listNextAsync", "(", "final", "String", "nextPageLink", ")", "{", "return", "listNextWithServiceResponseAsync", "(", "nextPageLink", ")", ".", "map", "(", "new", "Func1", "<", "Serv...
Lists the backup copies for the backed up item. @param nextPageLink The NextLink from the previous successful call to List operation. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the PagedList&lt;RecoveryPointResourceInner&gt; object
[ "Lists", "the", "backup", "copies", "for", "the", "backed", "up", "item", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/recoveryservices.backup/resource-manager/v2017_07_01/src/main/java/com/microsoft/azure/management/recoveryservices/backup/v2017_07_01/implementation/RecoveryPointsInner.java#L522-L530
35,785
Azure/azure-sdk-for-java
recoveryservices.backup/resource-manager/v2017_07_01/src/main/java/com/microsoft/azure/management/recoveryservices/backup/v2017_07_01/implementation/BackupProtectedItemsInner.java
BackupProtectedItemsInner.listNextAsync
public Observable<Page<ProtectedItemResourceInner>> listNextAsync(final String nextPageLink) { return listNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<ProtectedItemResourceInner>>, Page<ProtectedItemResourceInner>>() { @Override public Page<ProtectedItemResourceInner> call(ServiceResponse<Page<ProtectedItemResourceInner>> response) { return response.body(); } }); }
java
public Observable<Page<ProtectedItemResourceInner>> listNextAsync(final String nextPageLink) { return listNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<ProtectedItemResourceInner>>, Page<ProtectedItemResourceInner>>() { @Override public Page<ProtectedItemResourceInner> call(ServiceResponse<Page<ProtectedItemResourceInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "Page", "<", "ProtectedItemResourceInner", ">", ">", "listNextAsync", "(", "final", "String", "nextPageLink", ")", "{", "return", "listNextWithServiceResponseAsync", "(", "nextPageLink", ")", ".", "map", "(", "new", "Func1", "<", "Serv...
Provides a pageable list of all items that are backed up within a vault. @param nextPageLink The NextLink from the previous successful call to List operation. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the PagedList&lt;ProtectedItemResourceInner&gt; object
[ "Provides", "a", "pageable", "list", "of", "all", "items", "that", "are", "backed", "up", "within", "a", "vault", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/recoveryservices.backup/resource-manager/v2017_07_01/src/main/java/com/microsoft/azure/management/recoveryservices/backup/v2017_07_01/implementation/BackupProtectedItemsInner.java#L363-L371
35,786
Azure/azure-sdk-for-java
mediaservices/resource-manager/v2015_10_01/src/main/java/com/microsoft/azure/management/mediaservices/v2015_10_01/implementation/MediaServicesInner.java
MediaServicesInner.checkNameAvailabilityAsync
public Observable<CheckNameAvailabilityOutputInner> checkNameAvailabilityAsync(String name) { return checkNameAvailabilityWithServiceResponseAsync(name).map(new Func1<ServiceResponse<CheckNameAvailabilityOutputInner>, CheckNameAvailabilityOutputInner>() { @Override public CheckNameAvailabilityOutputInner call(ServiceResponse<CheckNameAvailabilityOutputInner> response) { return response.body(); } }); }
java
public Observable<CheckNameAvailabilityOutputInner> checkNameAvailabilityAsync(String name) { return checkNameAvailabilityWithServiceResponseAsync(name).map(new Func1<ServiceResponse<CheckNameAvailabilityOutputInner>, CheckNameAvailabilityOutputInner>() { @Override public CheckNameAvailabilityOutputInner call(ServiceResponse<CheckNameAvailabilityOutputInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "CheckNameAvailabilityOutputInner", ">", "checkNameAvailabilityAsync", "(", "String", "name", ")", "{", "return", "checkNameAvailabilityWithServiceResponseAsync", "(", "name", ")", ".", "map", "(", "new", "Func1", "<", "ServiceResponse", "<"...
Checks whether the Media Service resource name is available. The name must be globally unique. @param name The name of the resource. A name must be globally unique. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the CheckNameAvailabilityOutputInner object
[ "Checks", "whether", "the", "Media", "Service", "resource", "name", "is", "available", ".", "The", "name", "must", "be", "globally", "unique", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/resource-manager/v2015_10_01/src/main/java/com/microsoft/azure/management/mediaservices/v2015_10_01/implementation/MediaServicesInner.java#L139-L146
35,787
Azure/azure-sdk-for-java
mediaservices/resource-manager/v2015_10_01/src/main/java/com/microsoft/azure/management/mediaservices/v2015_10_01/implementation/MediaServicesInner.java
MediaServicesInner.delete
public void delete(String resourceGroupName, String mediaServiceName) { deleteWithServiceResponseAsync(resourceGroupName, mediaServiceName).toBlocking().single().body(); }
java
public void delete(String resourceGroupName, String mediaServiceName) { deleteWithServiceResponseAsync(resourceGroupName, mediaServiceName).toBlocking().single().body(); }
[ "public", "void", "delete", "(", "String", "resourceGroupName", ",", "String", "mediaServiceName", ")", "{", "deleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "mediaServiceName", ")", ".", "toBlocking", "(", ")", ".", "single", "(", ")", ".", "body"...
Deletes a Media Service. @param resourceGroupName Name of the resource group within the Azure subscription. @param mediaServiceName Name of the Media Service. @throws IllegalArgumentException thrown if parameters fail the validation @throws ApiErrorException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Deletes", "a", "Media", "Service", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/resource-manager/v2015_10_01/src/main/java/com/microsoft/azure/management/mediaservices/v2015_10_01/implementation/MediaServicesInner.java#L465-L467
35,788
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/DatabaseConnectionPoliciesInner.java
DatabaseConnectionPoliciesInner.getAsync
public Observable<DatabaseConnectionPolicyInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<DatabaseConnectionPolicyInner>, DatabaseConnectionPolicyInner>() { @Override public DatabaseConnectionPolicyInner call(ServiceResponse<DatabaseConnectionPolicyInner> response) { return response.body(); } }); }
java
public Observable<DatabaseConnectionPolicyInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<DatabaseConnectionPolicyInner>, DatabaseConnectionPolicyInner>() { @Override public DatabaseConnectionPolicyInner call(ServiceResponse<DatabaseConnectionPolicyInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "DatabaseConnectionPolicyInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "databaseName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ...
Gets a database's connection policy, which is used with table auditing. Table auditing is deprecated, use blob auditing instead. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param serverName The name of the server. @param databaseName The name of the database for which the connection policy is defined. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the DatabaseConnectionPolicyInner object
[ "Gets", "a", "database", "s", "connection", "policy", "which", "is", "used", "with", "table", "auditing", ".", "Table", "auditing", "is", "deprecated", "use", "blob", "auditing", "instead", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/DatabaseConnectionPoliciesInner.java#L105-L112
35,789
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/DatabaseConnectionPoliciesInner.java
DatabaseConnectionPoliciesInner.createOrUpdateAsync
public Observable<DatabaseConnectionPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseConnectionPolicyInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, databaseName, parameters).map(new Func1<ServiceResponse<DatabaseConnectionPolicyInner>, DatabaseConnectionPolicyInner>() { @Override public DatabaseConnectionPolicyInner call(ServiceResponse<DatabaseConnectionPolicyInner> response) { return response.body(); } }); }
java
public Observable<DatabaseConnectionPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseConnectionPolicyInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, databaseName, parameters).map(new Func1<ServiceResponse<DatabaseConnectionPolicyInner>, DatabaseConnectionPolicyInner>() { @Override public DatabaseConnectionPolicyInner call(ServiceResponse<DatabaseConnectionPolicyInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "DatabaseConnectionPolicyInner", ">", "createOrUpdateAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "databaseName", ",", "DatabaseConnectionPolicyInner", "parameters", ")", "{", "return", "createOrUpdateW...
Creates or updates a database's connection policy, which is used with table auditing. Table auditing is deprecated, use blob auditing instead. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param serverName The name of the server. @param databaseName The name of the database for which the connection policy will be defined. @param parameters The database connection policy. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the DatabaseConnectionPolicyInner object
[ "Creates", "or", "updates", "a", "database", "s", "connection", "policy", "which", "is", "used", "with", "table", "auditing", ".", "Table", "auditing", "is", "deprecated", "use", "blob", "auditing", "instead", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/DatabaseConnectionPoliciesInner.java#L202-L209
35,790
Azure/azure-sdk-for-java
recoveryservices.backup/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/backup/v2016_06_01/implementation/ProtectedItemOperationResultsInner.java
ProtectedItemOperationResultsInner.getAsync
public Observable<ProtectedItemResourceInner> getAsync(String vaultName, String resourceGroupName, String fabricName, String containerName, String protectedItemName, String operationId) { return getWithServiceResponseAsync(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, operationId).map(new Func1<ServiceResponse<ProtectedItemResourceInner>, ProtectedItemResourceInner>() { @Override public ProtectedItemResourceInner call(ServiceResponse<ProtectedItemResourceInner> response) { return response.body(); } }); }
java
public Observable<ProtectedItemResourceInner> getAsync(String vaultName, String resourceGroupName, String fabricName, String containerName, String protectedItemName, String operationId) { return getWithServiceResponseAsync(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, operationId).map(new Func1<ServiceResponse<ProtectedItemResourceInner>, ProtectedItemResourceInner>() { @Override public ProtectedItemResourceInner call(ServiceResponse<ProtectedItemResourceInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "ProtectedItemResourceInner", ">", "getAsync", "(", "String", "vaultName", ",", "String", "resourceGroupName", ",", "String", "fabricName", ",", "String", "containerName", ",", "String", "protectedItemName", ",", "String", "operationId", "...
Gets the result of any operation on the backup item. @param vaultName The name of the Recovery Services vault. @param resourceGroupName The name of the resource group associated with the Recovery Services vault. @param fabricName The fabric name associated with the backup item. @param containerName The container name associated with the backup item. @param protectedItemName The name of backup item used in this GET operation. @param operationId The OperationID used in this GET operation. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the ProtectedItemResourceInner object
[ "Gets", "the", "result", "of", "any", "operation", "on", "the", "backup", "item", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/recoveryservices.backup/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/backup/v2016_06_01/implementation/ProtectedItemOperationResultsInner.java#L107-L114
35,791
Azure/azure-sdk-for-java
applicationinsights/resource-manager/v2015_05_01/src/main/java/com/microsoft/azure/management/applicationinsights/v2015_05_01/implementation/WorkbooksInner.java
WorkbooksInner.getAsync
public Observable<WorkbookInner> getAsync(String resourceGroupName, String resourceName) { return getWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<WorkbookInner>, WorkbookInner>() { @Override public WorkbookInner call(ServiceResponse<WorkbookInner> response) { return response.body(); } }); }
java
public Observable<WorkbookInner> getAsync(String resourceGroupName, String resourceName) { return getWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<WorkbookInner>, WorkbookInner>() { @Override public WorkbookInner call(ServiceResponse<WorkbookInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "WorkbookInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "resourceName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "resourceName", ")", ".", "map", "(", "new", "Func1", ...
Get a single workbook by its resourceName. @param resourceGroupName The name of the resource group. @param resourceName The name of the Application Insights component resource. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the WorkbookInner object
[ "Get", "a", "single", "workbook", "by", "its", "resourceName", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/applicationinsights/resource-manager/v2015_05_01/src/main/java/com/microsoft/azure/management/applicationinsights/v2015_05_01/implementation/WorkbooksInner.java#L308-L315
35,792
Azure/azure-sdk-for-java
common/azure-common-mgmt/src/main/java/com/azure/common/mgmt/LocationPollStrategy.java
LocationPollStrategy.tryToCreate
static PollStrategy tryToCreate(RestProxy restProxy, SwaggerMethodParser methodParser, HttpRequest originalHttpRequest, HttpResponse httpResponse, long delayInMilliseconds) { final String locationUrl = getHeader(httpResponse); URL pollUrl = null; if (locationUrl != null && !locationUrl.isEmpty()) { if (locationUrl.startsWith("/")) { try { final URL originalRequestUrl = originalHttpRequest.url(); pollUrl = new URL(originalRequestUrl, locationUrl); } catch (MalformedURLException ignored) { } } else { final String locationUrlLower = locationUrl.toLowerCase(Locale.ROOT); if (locationUrlLower.startsWith("http://") || locationUrlLower.startsWith("https://")) { try { pollUrl = new URL(locationUrl); } catch (MalformedURLException ignored) { } } } } return pollUrl == null ? null : new LocationPollStrategy( new LocationPollStrategyData(restProxy, methodParser, pollUrl, delayInMilliseconds)); }
java
static PollStrategy tryToCreate(RestProxy restProxy, SwaggerMethodParser methodParser, HttpRequest originalHttpRequest, HttpResponse httpResponse, long delayInMilliseconds) { final String locationUrl = getHeader(httpResponse); URL pollUrl = null; if (locationUrl != null && !locationUrl.isEmpty()) { if (locationUrl.startsWith("/")) { try { final URL originalRequestUrl = originalHttpRequest.url(); pollUrl = new URL(originalRequestUrl, locationUrl); } catch (MalformedURLException ignored) { } } else { final String locationUrlLower = locationUrl.toLowerCase(Locale.ROOT); if (locationUrlLower.startsWith("http://") || locationUrlLower.startsWith("https://")) { try { pollUrl = new URL(locationUrl); } catch (MalformedURLException ignored) { } } } } return pollUrl == null ? null : new LocationPollStrategy( new LocationPollStrategyData(restProxy, methodParser, pollUrl, delayInMilliseconds)); }
[ "static", "PollStrategy", "tryToCreate", "(", "RestProxy", "restProxy", ",", "SwaggerMethodParser", "methodParser", ",", "HttpRequest", "originalHttpRequest", ",", "HttpResponse", "httpResponse", ",", "long", "delayInMilliseconds", ")", "{", "final", "String", "locationUr...
Try to create a new LocationOperationPollStrategy object that will poll the provided location URL. If the provided HttpResponse doesn't have a Location header or the header is empty, then null will be returned. @param originalHttpRequest The original HTTP request. @param methodParser The method parser that describes the service interface method that initiated the long running operation. @param httpResponse The HTTP response that the required header values for this pollStrategy will be read from. @param delayInMilliseconds The delay (in milliseconds) that the resulting pollStrategy will use when polling.
[ "Try", "to", "create", "a", "new", "LocationOperationPollStrategy", "object", "that", "will", "poll", "the", "provided", "location", "URL", ".", "If", "the", "provided", "HttpResponse", "doesn", "t", "have", "a", "Location", "header", "or", "the", "header", "i...
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common-mgmt/src/main/java/com/azure/common/mgmt/LocationPollStrategy.java#L121-L147
35,793
Azure/azure-sdk-for-java
recoveryservices.backup/resource-manager/v2017_07_01/src/main/java/com/microsoft/azure/management/recoveryservices/backup/v2017_07_01/implementation/BackupResourceStorageConfigsInner.java
BackupResourceStorageConfigsInner.getAsync
public Observable<BackupResourceConfigResourceInner> getAsync(String vaultName, String resourceGroupName) { return getWithServiceResponseAsync(vaultName, resourceGroupName).map(new Func1<ServiceResponse<BackupResourceConfigResourceInner>, BackupResourceConfigResourceInner>() { @Override public BackupResourceConfigResourceInner call(ServiceResponse<BackupResourceConfigResourceInner> response) { return response.body(); } }); }
java
public Observable<BackupResourceConfigResourceInner> getAsync(String vaultName, String resourceGroupName) { return getWithServiceResponseAsync(vaultName, resourceGroupName).map(new Func1<ServiceResponse<BackupResourceConfigResourceInner>, BackupResourceConfigResourceInner>() { @Override public BackupResourceConfigResourceInner call(ServiceResponse<BackupResourceConfigResourceInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "BackupResourceConfigResourceInner", ">", "getAsync", "(", "String", "vaultName", ",", "String", "resourceGroupName", ")", "{", "return", "getWithServiceResponseAsync", "(", "vaultName", ",", "resourceGroupName", ")", ".", "map", "(", "new...
Fetches resource storage config. @param vaultName The name of the recovery services vault. @param resourceGroupName The name of the resource group where the recovery services vault is present. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the BackupResourceConfigResourceInner object
[ "Fetches", "resource", "storage", "config", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/recoveryservices.backup/resource-manager/v2017_07_01/src/main/java/com/microsoft/azure/management/recoveryservices/backup/v2017_07_01/implementation/BackupResourceStorageConfigsInner.java#L102-L109
35,794
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/Task.java
Task.list
public static DefaultListOperation<TaskInfo> list(LinkInfo<TaskInfo> link) { return new DefaultListOperation<TaskInfo>(link.getHref(), new GenericType<ListResult<TaskInfo>>() { }); }
java
public static DefaultListOperation<TaskInfo> list(LinkInfo<TaskInfo> link) { return new DefaultListOperation<TaskInfo>(link.getHref(), new GenericType<ListResult<TaskInfo>>() { }); }
[ "public", "static", "DefaultListOperation", "<", "TaskInfo", ">", "list", "(", "LinkInfo", "<", "TaskInfo", ">", "link", ")", "{", "return", "new", "DefaultListOperation", "<", "TaskInfo", ">", "(", "link", ".", "getHref", "(", ")", ",", "new", "GenericType"...
Create an operation that will list the tasks pointed to by the given link. @param link link to tasks @return the list operation.
[ "Create", "an", "operation", "that", "will", "list", "the", "tasks", "pointed", "to", "by", "the", "given", "link", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/Task.java#L72-L76
35,795
Azure/azure-sdk-for-java
hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClusterConfigurationsInner.java
ClusterConfigurationsInner.withConfigurations
public ClusterConfigurationsInner withConfigurations(Map<String, Map<String, String>> configurations) { this.configurations = configurations; return this; }
java
public ClusterConfigurationsInner withConfigurations(Map<String, Map<String, String>> configurations) { this.configurations = configurations; return this; }
[ "public", "ClusterConfigurationsInner", "withConfigurations", "(", "Map", "<", "String", ",", "Map", "<", "String", ",", "String", ">", ">", "configurations", ")", "{", "this", ".", "configurations", "=", "configurations", ";", "return", "this", ";", "}" ]
Set the configuration object for the specified configuration for the specified cluster. @param configurations the configurations value to set @return the ClusterConfigurationsInner object itself.
[ "Set", "the", "configuration", "object", "for", "the", "specified", "configuration", "for", "the", "specified", "cluster", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClusterConfigurationsInner.java#L40-L43
35,796
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/models/CertificateRestoreParameters.java
CertificateRestoreParameters.withCertificateBundleBackup
public CertificateRestoreParameters withCertificateBundleBackup(byte[] certificateBundleBackup) { if (certificateBundleBackup == null) { this.certificateBundleBackup = null; } else { this.certificateBundleBackup = Base64Url.encode(certificateBundleBackup); } return this; }
java
public CertificateRestoreParameters withCertificateBundleBackup(byte[] certificateBundleBackup) { if (certificateBundleBackup == null) { this.certificateBundleBackup = null; } else { this.certificateBundleBackup = Base64Url.encode(certificateBundleBackup); } return this; }
[ "public", "CertificateRestoreParameters", "withCertificateBundleBackup", "(", "byte", "[", "]", "certificateBundleBackup", ")", "{", "if", "(", "certificateBundleBackup", "==", "null", ")", "{", "this", ".", "certificateBundleBackup", "=", "null", ";", "}", "else", ...
Set the certificateBundleBackup value. @param certificateBundleBackup the certificateBundleBackup value to set @return the CertificateRestoreParameters object itself.
[ "Set", "the", "certificateBundleBackup", "value", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/models/CertificateRestoreParameters.java#L38-L45
35,797
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/GeoBackupPoliciesInner.java
GeoBackupPoliciesInner.getAsync
public Observable<GeoBackupPolicyInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<GeoBackupPolicyInner>, GeoBackupPolicyInner>() { @Override public GeoBackupPolicyInner call(ServiceResponse<GeoBackupPolicyInner> response) { return response.body(); } }); }
java
public Observable<GeoBackupPolicyInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<GeoBackupPolicyInner>, GeoBackupPolicyInner>() { @Override public GeoBackupPolicyInner call(ServiceResponse<GeoBackupPolicyInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "GeoBackupPolicyInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "databaseName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ",", "...
Gets a geo backup policy. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param serverName The name of the server. @param databaseName The name of the database. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the GeoBackupPolicyInner object
[ "Gets", "a", "geo", "backup", "policy", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/GeoBackupPoliciesInner.java#L214-L221
35,798
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/RecoverableDatabasesInner.java
RecoverableDatabasesInner.getAsync
public Observable<RecoverableDatabaseInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<RecoverableDatabaseInner>, RecoverableDatabaseInner>() { @Override public RecoverableDatabaseInner call(ServiceResponse<RecoverableDatabaseInner> response) { return response.body(); } }); }
java
public Observable<RecoverableDatabaseInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<RecoverableDatabaseInner>, RecoverableDatabaseInner>() { @Override public RecoverableDatabaseInner call(ServiceResponse<RecoverableDatabaseInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "RecoverableDatabaseInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "databaseName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ",",...
Gets a recoverable database, which is a resource representing a database's geo backup. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param serverName The name of the server. @param databaseName The name of the database @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the RecoverableDatabaseInner object
[ "Gets", "a", "recoverable", "database", "which", "is", "a", "resource", "representing", "a", "database", "s", "geo", "backup", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/RecoverableDatabasesInner.java#L103-L110
35,799
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/RecoverableDatabasesInner.java
RecoverableDatabasesInner.listByServerAsync
public Observable<List<RecoverableDatabaseInner>> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<RecoverableDatabaseInner>>, List<RecoverableDatabaseInner>>() { @Override public List<RecoverableDatabaseInner> call(ServiceResponse<List<RecoverableDatabaseInner>> response) { return response.body(); } }); }
java
public Observable<List<RecoverableDatabaseInner>> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<RecoverableDatabaseInner>>, List<RecoverableDatabaseInner>>() { @Override public List<RecoverableDatabaseInner> call(ServiceResponse<List<RecoverableDatabaseInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "List", "<", "RecoverableDatabaseInner", ">", ">", "listByServerAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ")", "{", "return", "listByServerWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ...
Gets a list of recoverable databases. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param serverName The name of the server. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the List&lt;RecoverableDatabaseInner&gt; object
[ "Gets", "a", "list", "of", "recoverable", "databases", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/RecoverableDatabasesInner.java#L193-L200