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
47,600
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/models/KeyVerifyParameters.java
KeyVerifyParameters.withSignature
public KeyVerifyParameters withSignature(byte[] signature) { if (signature == null) { this.signature = null; } else { this.signature = Base64Url.encode(signature); } return this; }
java
public KeyVerifyParameters withSignature(byte[] signature) { if (signature == null) { this.signature = null; } else { this.signature = Base64Url.encode(signature); } return this; }
[ "public", "KeyVerifyParameters", "withSignature", "(", "byte", "[", "]", "signature", ")", "{", "if", "(", "signature", "==", "null", ")", "{", "this", ".", "signature", "=", "null", ";", "}", "else", "{", "this", ".", "signature", "=", "Base64Url", ".",...
Set the signature value. @param signature the signature value to set @return the KeyVerifyParameters object itself.
[ "Set", "the", "signature", "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/KeyVerifyParameters.java#L101-L108
47,601
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/KeyVaultClientImpl.java
KeyVaultClientImpl.deleteSecretAsync
public Observable<SecretBundle> deleteSecretAsync(String vaultBaseUrl, String secretName) { return deleteSecretWithServiceResponseAsync(vaultBaseUrl, secretName).map(new Func1<ServiceResponse<SecretBundle>, SecretBundle>() { @Override public SecretBundle call(ServiceResponse<SecretBundle...
java
public Observable<SecretBundle> deleteSecretAsync(String vaultBaseUrl, String secretName) { return deleteSecretWithServiceResponseAsync(vaultBaseUrl, secretName).map(new Func1<ServiceResponse<SecretBundle>, SecretBundle>() { @Override public SecretBundle call(ServiceResponse<SecretBundle...
[ "public", "Observable", "<", "SecretBundle", ">", "deleteSecretAsync", "(", "String", "vaultBaseUrl", ",", "String", "secretName", ")", "{", "return", "deleteSecretWithServiceResponseAsync", "(", "vaultBaseUrl", ",", "secretName", ")", ".", "map", "(", "new", "Func1...
Deletes a secret from a specified key vault. @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net. @param secretName The name of the secret. @return the observable to the SecretBundle object
[ "Deletes", "a", "secret", "from", "a", "specified", "key", "vault", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/KeyVaultClientImpl.java#L2617-L2624
47,602
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/KeyVaultClientImpl.java
KeyVaultClientImpl.getCertificatesSinglePageAsync
public Observable<ServiceResponse<Page<CertificateItem>>> getCertificatesSinglePageAsync(final String vaultBaseUrl, final Integer maxresults) { if (vaultBaseUrl == null) { throw new IllegalArgumentException("Parameter vaultBaseUrl is required and cannot be null."); } if (this.apiVers...
java
public Observable<ServiceResponse<Page<CertificateItem>>> getCertificatesSinglePageAsync(final String vaultBaseUrl, final Integer maxresults) { if (vaultBaseUrl == null) { throw new IllegalArgumentException("Parameter vaultBaseUrl is required and cannot be null."); } if (this.apiVers...
[ "public", "Observable", "<", "ServiceResponse", "<", "Page", "<", "CertificateItem", ">", ">", ">", "getCertificatesSinglePageAsync", "(", "final", "String", "vaultBaseUrl", ",", "final", "Integer", "maxresults", ")", "{", "if", "(", "vaultBaseUrl", "==", "null", ...
List certificates in a specified key vault. @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net. @param maxresults Maximum number of results to return in a page. If not specified the service will return up to 25 results. @return the PagedList&lt;CertificateItem&gt; object wrapped in {@link ...
[ "List", "certificates", "in", "a", "specified", "key", "vault", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/KeyVaultClientImpl.java#L3558-L3578
47,603
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/KeyVaultClientImpl.java
KeyVaultClientImpl.deleteCertificateAsync
public Observable<CertificateBundle> deleteCertificateAsync(String vaultBaseUrl, String certificateName) { return deleteCertificateWithServiceResponseAsync(vaultBaseUrl, certificateName).map(new Func1<ServiceResponse<CertificateBundle>, CertificateBundle>() { @Override public Certificate...
java
public Observable<CertificateBundle> deleteCertificateAsync(String vaultBaseUrl, String certificateName) { return deleteCertificateWithServiceResponseAsync(vaultBaseUrl, certificateName).map(new Func1<ServiceResponse<CertificateBundle>, CertificateBundle>() { @Override public Certificate...
[ "public", "Observable", "<", "CertificateBundle", ">", "deleteCertificateAsync", "(", "String", "vaultBaseUrl", ",", "String", "certificateName", ")", "{", "return", "deleteCertificateWithServiceResponseAsync", "(", "vaultBaseUrl", ",", "certificateName", ")", ".", "map",...
Deletes a certificate from a specified key vault. @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net. @param certificateName The name of the certificate. @return the observable to the CertificateBundle object
[ "Deletes", "a", "certificate", "from", "a", "specified", "key", "vault", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/KeyVaultClientImpl.java#L3617-L3624
47,604
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/SwaggerMethodParser.java
SwaggerMethodParser.scheme
public String scheme(Object[] swaggerMethodArguments) { final String substitutedHost = applySubstitutions(rawHost, hostSubstitutions, swaggerMethodArguments, UrlEscapers.PATH_ESCAPER); final String[] substitutedHostParts = substitutedHost.split("://"); return substitutedHostParts.length < 1 ? nu...
java
public String scheme(Object[] swaggerMethodArguments) { final String substitutedHost = applySubstitutions(rawHost, hostSubstitutions, swaggerMethodArguments, UrlEscapers.PATH_ESCAPER); final String[] substitutedHostParts = substitutedHost.split("://"); return substitutedHostParts.length < 1 ? nu...
[ "public", "String", "scheme", "(", "Object", "[", "]", "swaggerMethodArguments", ")", "{", "final", "String", "substitutedHost", "=", "applySubstitutions", "(", "rawHost", ",", "hostSubstitutions", ",", "swaggerMethodArguments", ",", "UrlEscapers", ".", "PATH_ESCAPER"...
Get the scheme to use for HTTP requests for this Swagger method. @param swaggerMethodArguments the arguments to use for scheme/host substitutions. @return the final host to use for HTTP requests for this Swagger method.
[ "Get", "the", "scheme", "to", "use", "for", "HTTP", "requests", "for", "this", "Swagger", "method", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/SwaggerMethodParser.java#L221-L225
47,605
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/SwaggerMethodParser.java
SwaggerMethodParser.path
public String path(Object[] methodArguments) { return applySubstitutions(relativePath, pathSubstitutions, methodArguments, UrlEscapers.PATH_ESCAPER); }
java
public String path(Object[] methodArguments) { return applySubstitutions(relativePath, pathSubstitutions, methodArguments, UrlEscapers.PATH_ESCAPER); }
[ "public", "String", "path", "(", "Object", "[", "]", "methodArguments", ")", "{", "return", "applySubstitutions", "(", "relativePath", ",", "pathSubstitutions", ",", "methodArguments", ",", "UrlEscapers", ".", "PATH_ESCAPER", ")", ";", "}" ]
Get the path that will be used to complete the Swagger method's request. @param methodArguments the method arguments to use with the path substitutions @return the path value with its placeholders replaced by the matching substitutions
[ "Get", "the", "path", "that", "will", "be", "used", "to", "complete", "the", "Swagger", "method", "s", "request", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/SwaggerMethodParser.java#L245-L247
47,606
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/SwaggerMethodParser.java
SwaggerMethodParser.encodedQueryParameters
public Iterable<EncodedParameter> encodedQueryParameters(Object[] swaggerMethodArguments) { final List<EncodedParameter> result = new ArrayList<>(); if (querySubstitutions != null) { final PercentEscaper escaper = UrlEscapers.QUERY_ESCAPER; for (Substitution querySubstitution : ...
java
public Iterable<EncodedParameter> encodedQueryParameters(Object[] swaggerMethodArguments) { final List<EncodedParameter> result = new ArrayList<>(); if (querySubstitutions != null) { final PercentEscaper escaper = UrlEscapers.QUERY_ESCAPER; for (Substitution querySubstitution : ...
[ "public", "Iterable", "<", "EncodedParameter", ">", "encodedQueryParameters", "(", "Object", "[", "]", "swaggerMethodArguments", ")", "{", "final", "List", "<", "EncodedParameter", ">", "result", "=", "new", "ArrayList", "<>", "(", ")", ";", "if", "(", "queryS...
Get the encoded query parameters that have been added to this value based on the provided method arguments. @param swaggerMethodArguments the arguments that will be used to create the query parameters' values @return an Iterable with the encoded query parameters
[ "Get", "the", "encoded", "query", "parameters", "that", "have", "been", "added", "to", "this", "value", "based", "on", "the", "provided", "method", "arguments", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/SwaggerMethodParser.java#L257-L278
47,607
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/SwaggerMethodParser.java
SwaggerMethodParser.encodedFormParameters
public Iterable<EncodedParameter> encodedFormParameters(Object[] swaggerMethodArguments) { if (formSubstitutions == null) { return Collections.emptyList(); } final List<EncodedParameter> result = new ArrayList<>(); final PercentEscaper escaper = UrlEscapers.QUERY_ESCAPER; ...
java
public Iterable<EncodedParameter> encodedFormParameters(Object[] swaggerMethodArguments) { if (formSubstitutions == null) { return Collections.emptyList(); } final List<EncodedParameter> result = new ArrayList<>(); final PercentEscaper escaper = UrlEscapers.QUERY_ESCAPER; ...
[ "public", "Iterable", "<", "EncodedParameter", ">", "encodedFormParameters", "(", "Object", "[", "]", "swaggerMethodArguments", ")", "{", "if", "(", "formSubstitutions", "==", "null", ")", "{", "return", "Collections", ".", "emptyList", "(", ")", ";", "}", "fi...
Get the encoded form parameters that have been added to this value based on the provided method arguments. @param swaggerMethodArguments the arguments that will be used to create the form parameters' values @return an Iterable with the encoded form parameters
[ "Get", "the", "encoded", "form", "parameters", "that", "have", "been", "added", "to", "this", "value", "based", "on", "the", "provided", "method", "arguments", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/SwaggerMethodParser.java#L288-L310
47,608
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/SwaggerMethodParser.java
SwaggerMethodParser.headers
public Iterable<HttpHeader> headers(Object[] swaggerMethodArguments) { final HttpHeaders result = new HttpHeaders(headers); if (headerSubstitutions != null) { for (Substitution headerSubstitution : headerSubstitutions) { final int parameterIndex = headerSubstitution.methodPa...
java
public Iterable<HttpHeader> headers(Object[] swaggerMethodArguments) { final HttpHeaders result = new HttpHeaders(headers); if (headerSubstitutions != null) { for (Substitution headerSubstitution : headerSubstitutions) { final int parameterIndex = headerSubstitution.methodPa...
[ "public", "Iterable", "<", "HttpHeader", ">", "headers", "(", "Object", "[", "]", "swaggerMethodArguments", ")", "{", "final", "HttpHeaders", "result", "=", "new", "HttpHeaders", "(", "headers", ")", ";", "if", "(", "headerSubstitutions", "!=", "null", ")", ...
Get the headers that have been added to this value based on the provided method arguments. @param swaggerMethodArguments The arguments that will be used to create the headers' values. @return An Iterable with the headers.
[ "Get", "the", "headers", "that", "have", "been", "added", "to", "this", "value", "based", "on", "the", "provided", "method", "arguments", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/SwaggerMethodParser.java#L317-L342
47,609
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/SwaggerMethodParser.java
SwaggerMethodParser.isExpectedResponseStatusCode
public boolean isExpectedResponseStatusCode(int responseStatusCode, int[] additionalAllowedStatusCodes) { boolean result; if (expectedStatusCodes == null) { result = (responseStatusCode < 400); } else { result = contains(expectedStatusCodes, responseStatusCode) ...
java
public boolean isExpectedResponseStatusCode(int responseStatusCode, int[] additionalAllowedStatusCodes) { boolean result; if (expectedStatusCodes == null) { result = (responseStatusCode < 400); } else { result = contains(expectedStatusCodes, responseStatusCode) ...
[ "public", "boolean", "isExpectedResponseStatusCode", "(", "int", "responseStatusCode", ",", "int", "[", "]", "additionalAllowedStatusCodes", ")", "{", "boolean", "result", ";", "if", "(", "expectedStatusCodes", "==", "null", ")", "{", "result", "=", "(", "response...
Get whether or not the provided response status code is one of the expected status codes for this Swagger method. @param responseStatusCode the status code that was returned in the HTTP response @param additionalAllowedStatusCodes an additional set of allowed status codes that will be merged with the existing set of a...
[ "Get", "whether", "or", "not", "the", "provided", "response", "status", "code", "is", "one", "of", "the", "expected", "status", "codes", "for", "this", "Swagger", "method", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/SwaggerMethodParser.java#L370-L381
47,610
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/SwaggerMethodParser.java
SwaggerMethodParser.body
public Object body(Object[] swaggerMethodArguments) { Object result = null; if (bodyContentMethodParameterIndex != null && swaggerMethodArguments != null && 0 <= bodyContentMethodParameterIndex && bodyContentMethodParameterIndex < swaggerMethodArguments.l...
java
public Object body(Object[] swaggerMethodArguments) { Object result = null; if (bodyContentMethodParameterIndex != null && swaggerMethodArguments != null && 0 <= bodyContentMethodParameterIndex && bodyContentMethodParameterIndex < swaggerMethodArguments.l...
[ "public", "Object", "body", "(", "Object", "[", "]", "swaggerMethodArguments", ")", "{", "Object", "result", "=", "null", ";", "if", "(", "bodyContentMethodParameterIndex", "!=", "null", "&&", "swaggerMethodArguments", "!=", "null", "&&", "0", "<=", "bodyContent...
Get the object to be used as the value of the HTTP request. @param swaggerMethodArguments the method arguments to get the value object from @return the object that will be used as the body of the HTTP request
[ "Get", "the", "object", "to", "be", "used", "as", "the", "value", "of", "the", "HTTP", "request", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/SwaggerMethodParser.java#L422-L441
47,611
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/SwaggerMethodParser.java
SwaggerMethodParser.expectsResponseBody
public boolean expectsResponseBody() { boolean result = true; if (TypeUtil.isTypeOrSubTypeOf(returnType, Void.class)) { result = false; } else if (TypeUtil.isTypeOrSubTypeOf(returnType, Mono.class) || TypeUtil.isTypeOrSubTypeOf(returnType, Flux.class)) { final Parameteri...
java
public boolean expectsResponseBody() { boolean result = true; if (TypeUtil.isTypeOrSubTypeOf(returnType, Void.class)) { result = false; } else if (TypeUtil.isTypeOrSubTypeOf(returnType, Mono.class) || TypeUtil.isTypeOrSubTypeOf(returnType, Flux.class)) { final Parameteri...
[ "public", "boolean", "expectsResponseBody", "(", ")", "{", "boolean", "result", "=", "true", ";", "if", "(", "TypeUtil", ".", "isTypeOrSubTypeOf", "(", "returnType", ",", "Void", ".", "class", ")", ")", "{", "result", "=", "false", ";", "}", "else", "if"...
Checks whether or not the Swagger method expects the response to contain a body. @return true if Swagger method expects the response to contain a body, false otherwise
[ "Checks", "whether", "or", "not", "the", "Swagger", "method", "expects", "the", "response", "to", "contain", "a", "body", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/SwaggerMethodParser.java#L489-L507
47,612
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKeyAuthorizationPolicyOption.java
ContentKeyAuthorizationPolicyOption.create
public static EntityCreateOperation<ContentKeyAuthorizationPolicyOptionInfo> create(String name, int keyDeliveryType, String keyDeliveryConfiguration, List<ContentKeyAuthorizationPolicyRestriction> restrictions) { return new Creator(name, keyDeliveryType, keyDeliveryConfiguration, restri...
java
public static EntityCreateOperation<ContentKeyAuthorizationPolicyOptionInfo> create(String name, int keyDeliveryType, String keyDeliveryConfiguration, List<ContentKeyAuthorizationPolicyRestriction> restrictions) { return new Creator(name, keyDeliveryType, keyDeliveryConfiguration, restri...
[ "public", "static", "EntityCreateOperation", "<", "ContentKeyAuthorizationPolicyOptionInfo", ">", "create", "(", "String", "name", ",", "int", "keyDeliveryType", ",", "String", "keyDeliveryConfiguration", ",", "List", "<", "ContentKeyAuthorizationPolicyRestriction", ">", "r...
Creates an operation to create a new content key authorization options @param name Friendly name of the authorization policy @param keyDeliveryType Delivery method of the content key to the client @param keyDeliveryConfiguration Xml data, specific to the key delivery type that defines how the key is delivered to the c...
[ "Creates", "an", "operation", "to", "create", "a", "new", "content", "key", "authorization", "options" ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKeyAuthorizationPolicyOption.java#L60-L64
47,613
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKeyAuthorizationPolicyOption.java
ContentKeyAuthorizationPolicyOption.list
public static DefaultListOperation<ContentKeyAuthorizationPolicyOptionInfo> list( LinkInfo<ContentKeyAuthorizationPolicyOptionInfo> link) { return new DefaultListOperation<ContentKeyAuthorizationPolicyOptionInfo>(link.getHref(), new GenericType<ListResult<ContentKeyAuthorizationPolic...
java
public static DefaultListOperation<ContentKeyAuthorizationPolicyOptionInfo> list( LinkInfo<ContentKeyAuthorizationPolicyOptionInfo> link) { return new DefaultListOperation<ContentKeyAuthorizationPolicyOptionInfo>(link.getHref(), new GenericType<ListResult<ContentKeyAuthorizationPolic...
[ "public", "static", "DefaultListOperation", "<", "ContentKeyAuthorizationPolicyOptionInfo", ">", "list", "(", "LinkInfo", "<", "ContentKeyAuthorizationPolicyOptionInfo", ">", "link", ")", "{", "return", "new", "DefaultListOperation", "<", "ContentKeyAuthorizationPolicyOptionInf...
Create an operation that will list all the content keys authorization policy options at the given link. @param link Link to request content keys authorization policy options from. @return The list operation.
[ "Create", "an", "operation", "that", "will", "list", "all", "the", "content", "keys", "authorization", "policy", "options", "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/ContentKeyAuthorizationPolicyOption.java#L122-L127
47,614
Azure/azure-sdk-for-java
sql/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/sql/v2018_06_01_preview/implementation/ManagedInstanceVulnerabilityAssessmentsInner.java
ManagedInstanceVulnerabilityAssessmentsInner.getAsync
public Observable<ManagedInstanceVulnerabilityAssessmentInner> getAsync(String resourceGroupName, String managedInstanceName) { return getWithServiceResponseAsync(resourceGroupName, managedInstanceName).map(new Func1<ServiceResponse<ManagedInstanceVulnerabilityAssessmentInner>, ManagedInstanceVulnerabilityAsses...
java
public Observable<ManagedInstanceVulnerabilityAssessmentInner> getAsync(String resourceGroupName, String managedInstanceName) { return getWithServiceResponseAsync(resourceGroupName, managedInstanceName).map(new Func1<ServiceResponse<ManagedInstanceVulnerabilityAssessmentInner>, ManagedInstanceVulnerabilityAsses...
[ "public", "Observable", "<", "ManagedInstanceVulnerabilityAssessmentInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "managedInstanceName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "managedInstanceName", ")",...
Gets the managed instance'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 managedInstanceName The name of the managed instance for which the vulnerability assessment is de...
[ "Gets", "the", "managed", "instance", "s", "vulnerability", "assessment", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/sql/v2018_06_01_preview/implementation/ManagedInstanceVulnerabilityAssessmentsInner.java#L122-L129
47,615
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java
MediaBatchOperations.getMimeMultipart
public MimeMultipart getMimeMultipart() throws MessagingException, IOException, JAXBException { List<DataSource> bodyPartContents = createRequestBody(); return toMimeMultipart(bodyPartContents); }
java
public MimeMultipart getMimeMultipart() throws MessagingException, IOException, JAXBException { List<DataSource> bodyPartContents = createRequestBody(); return toMimeMultipart(bodyPartContents); }
[ "public", "MimeMultipart", "getMimeMultipart", "(", ")", "throws", "MessagingException", ",", "IOException", ",", "JAXBException", "{", "List", "<", "DataSource", ">", "bodyPartContents", "=", "createRequestBody", "(", ")", ";", "return", "toMimeMultipart", "(", "bo...
Gets the mime multipart. @return the mime multipart @throws MessagingException the messaging exception @throws IOException Signals that an I/O exception has occurred. @throws JAXBException the jAXB exception
[ "Gets", "the", "mime", "multipart", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java#L114-L119
47,616
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java
MediaBatchOperations.addJobPart
private int addJobPart(List<DataSource> bodyPartContents, URI jobURI, int contentId) throws JAXBException { int jobContentId = contentId; validateJobOperation(); for (EntityBatchOperation entityBatchOperation : entityBatchOperations) { DataSource bodyPartContent = null; ...
java
private int addJobPart(List<DataSource> bodyPartContents, URI jobURI, int contentId) throws JAXBException { int jobContentId = contentId; validateJobOperation(); for (EntityBatchOperation entityBatchOperation : entityBatchOperations) { DataSource bodyPartContent = null; ...
[ "private", "int", "addJobPart", "(", "List", "<", "DataSource", ">", "bodyPartContents", ",", "URI", "jobURI", ",", "int", "contentId", ")", "throws", "JAXBException", "{", "int", "jobContentId", "=", "contentId", ";", "validateJobOperation", "(", ")", ";", "f...
Adds the job part. @param bodyPartContents the body part contents @param contentId the content id @return the int @throws JAXBException the jAXB exception
[ "Adds", "the", "job", "part", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java#L147-L169
47,617
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java
MediaBatchOperations.addTaskPart
private void addTaskPart(List<DataSource> bodyPartContents, URI taskURI, int contentId) throws JAXBException { for (EntityBatchOperation entityBatchOperation : entityBatchOperations) { DataSource bodyPartContent = null; if (entityBatchOperation instanceof Task.CreateBatchOper...
java
private void addTaskPart(List<DataSource> bodyPartContents, URI taskURI, int contentId) throws JAXBException { for (EntityBatchOperation entityBatchOperation : entityBatchOperations) { DataSource bodyPartContent = null; if (entityBatchOperation instanceof Task.CreateBatchOper...
[ "private", "void", "addTaskPart", "(", "List", "<", "DataSource", ">", "bodyPartContents", ",", "URI", "taskURI", ",", "int", "contentId", ")", "throws", "JAXBException", "{", "for", "(", "EntityBatchOperation", "entityBatchOperation", ":", "entityBatchOperations", ...
Adds the task part. @param bodyPartContents the body part contents @param taskURI the task uri @param contentId the content id @throws JAXBException the jAXB exception
[ "Adds", "the", "task", "part", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java#L199-L215
47,618
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java
MediaBatchOperations.toMimeMultipart
private MimeMultipart toMimeMultipart(List<DataSource> bodyPartContents) throws MessagingException, IOException { String changeSetId = String.format("changeset_%s", UUID.randomUUID() .toString()); MimeMultipart changeSets = createChangeSets(bodyPartContents, c...
java
private MimeMultipart toMimeMultipart(List<DataSource> bodyPartContents) throws MessagingException, IOException { String changeSetId = String.format("changeset_%s", UUID.randomUUID() .toString()); MimeMultipart changeSets = createChangeSets(bodyPartContents, c...
[ "private", "MimeMultipart", "toMimeMultipart", "(", "List", "<", "DataSource", ">", "bodyPartContents", ")", "throws", "MessagingException", ",", "IOException", "{", "String", "changeSetId", "=", "String", ".", "format", "(", "\"changeset_%s\"", ",", "UUID", ".", ...
To mime multipart. @param bodyPartContents the body part contents @return the mime multipart @throws MessagingException the messaging exception @throws IOException Signals that an I/O exception has occurred.
[ "To", "mime", "multipart", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java#L228-L241
47,619
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java
MediaBatchOperations.createBatchCreateEntityPart
private DataSource createBatchCreateEntityPart(String verb, String entityName, EntryType entryType, URI uri, int contentId) throws JAXBException { ByteArrayOutputStream stream = new ByteArrayOutputStream(); this.oDataAtomMarshaller.marshalEntryType(entryType, stream); byt...
java
private DataSource createBatchCreateEntityPart(String verb, String entityName, EntryType entryType, URI uri, int contentId) throws JAXBException { ByteArrayOutputStream stream = new ByteArrayOutputStream(); this.oDataAtomMarshaller.marshalEntryType(entryType, stream); byt...
[ "private", "DataSource", "createBatchCreateEntityPart", "(", "String", "verb", ",", "String", "entityName", ",", "EntryType", "entryType", ",", "URI", "uri", ",", "int", "contentId", ")", "throws", "JAXBException", "{", "ByteArrayOutputStream", "stream", "=", "new",...
Creates the batch create entity part. @param entityName the entity name @param entity the entity @param uri the uri @param contentId the content id @return the data source @throws JAXBException the jAXB exception
[ "Creates", "the", "batch", "create", "entity", "part", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java#L287-L312
47,620
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java
MediaBatchOperations.parseBatchResult
public void parseBatchResult(ClientResponse response) throws IOException, ServiceException { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); InputStream inputStream = response.getEntityInputStream(); ReaderWriter.writeTo(inputStream, byteArrayOutputStream);...
java
public void parseBatchResult(ClientResponse response) throws IOException, ServiceException { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); InputStream inputStream = response.getEntityInputStream(); ReaderWriter.writeTo(inputStream, byteArrayOutputStream);...
[ "public", "void", "parseBatchResult", "(", "ClientResponse", "response", ")", "throws", "IOException", ",", "ServiceException", "{", "ByteArrayOutputStream", "byteArrayOutputStream", "=", "new", "ByteArrayOutputStream", "(", ")", ";", "InputStream", "inputStream", "=", ...
Parses the batch result. @param response the response @param mediaBatchOperations the media batch operations @throws IOException Signals that an I/O exception has occurred. @throws ServiceException the service exception
[ "Parses", "the", "batch", "result", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java#L326-L390
47,621
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java
MediaBatchOperations.parseHeaders
private InternetHeaders parseHeaders(DataSource ds) { try { return new InternetHeaders(ds.getInputStream()); } catch (MessagingException e) { throw new RuntimeException(e); } catch (IOException e) { throw new RuntimeException(e); } }
java
private InternetHeaders parseHeaders(DataSource ds) { try { return new InternetHeaders(ds.getInputStream()); } catch (MessagingException e) { throw new RuntimeException(e); } catch (IOException e) { throw new RuntimeException(e); } }
[ "private", "InternetHeaders", "parseHeaders", "(", "DataSource", "ds", ")", "{", "try", "{", "return", "new", "InternetHeaders", "(", "ds", ".", "getInputStream", "(", ")", ")", ";", "}", "catch", "(", "MessagingException", "e", ")", "{", "throw", "new", "...
Parses the headers. @param ds the ds @return the internet headers
[ "Parses", "the", "headers", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java#L399-L407
47,622
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java
MediaBatchOperations.parseEntity
private InputStream parseEntity(DataSource ds) { try { return ds.getInputStream(); } catch (IOException e) { throw new RuntimeException(e); } }
java
private InputStream parseEntity(DataSource ds) { try { return ds.getInputStream(); } catch (IOException e) { throw new RuntimeException(e); } }
[ "private", "InputStream", "parseEntity", "(", "DataSource", "ds", ")", "{", "try", "{", "return", "ds", ".", "getInputStream", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "throw", "new", "RuntimeException", "(", "e", ")", ";", "}", ...
Parses the entity. @param ds the ds @return the input stream
[ "Parses", "the", "entity", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java#L416-L422
47,623
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java
MediaBatchOperations.parseParts
private List<DataSource> parseParts(final InputStream entityInputStream, final String contentType) { try { return parsePartsCore(entityInputStream, contentType); } catch (IOException e) { throw new RuntimeException(e); } catch (MessagingException e) { ...
java
private List<DataSource> parseParts(final InputStream entityInputStream, final String contentType) { try { return parsePartsCore(entityInputStream, contentType); } catch (IOException e) { throw new RuntimeException(e); } catch (MessagingException e) { ...
[ "private", "List", "<", "DataSource", ">", "parseParts", "(", "final", "InputStream", "entityInputStream", ",", "final", "String", "contentType", ")", "{", "try", "{", "return", "parsePartsCore", "(", "entityInputStream", ",", "contentType", ")", ";", "}", "catc...
Parses the parts. @param entityInputStream the entity input stream @param contentType the content type @return the list
[ "Parses", "the", "parts", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java#L433-L442
47,624
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java
MediaBatchOperations.parsePartsCore
private List<DataSource> parsePartsCore(InputStream entityInputStream, String contentType) throws MessagingException, IOException { DataSource dataSource = new InputStreamDataSource(entityInputStream, contentType); MimeMultipart batch = new MimeMultipart(dataSource); ...
java
private List<DataSource> parsePartsCore(InputStream entityInputStream, String contentType) throws MessagingException, IOException { DataSource dataSource = new InputStreamDataSource(entityInputStream, contentType); MimeMultipart batch = new MimeMultipart(dataSource); ...
[ "private", "List", "<", "DataSource", ">", "parsePartsCore", "(", "InputStream", "entityInputStream", ",", "String", "contentType", ")", "throws", "MessagingException", ",", "IOException", "{", "DataSource", "dataSource", "=", "new", "InputStreamDataSource", "(", "ent...
Parses the parts core. @param entityInputStream the entity input stream @param contentType the content type @return the list @throws MessagingException the messaging exception @throws IOException Signals that an I/O exception has occurred.
[ "Parses", "the", "parts", "core", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java#L457-L475
47,625
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java
MediaBatchOperations.addHttpMethod
private void addHttpMethod(ByteArrayOutputStream outputStream, String verb, URI uri) { try { String method = String.format("%s %s HTTP/1.1\r\n", verb, uri); outputStream.write(method.getBytes("UTF-8")); } catch (UnsupportedEncodingException e) { throw new ...
java
private void addHttpMethod(ByteArrayOutputStream outputStream, String verb, URI uri) { try { String method = String.format("%s %s HTTP/1.1\r\n", verb, uri); outputStream.write(method.getBytes("UTF-8")); } catch (UnsupportedEncodingException e) { throw new ...
[ "private", "void", "addHttpMethod", "(", "ByteArrayOutputStream", "outputStream", ",", "String", "verb", ",", "URI", "uri", ")", "{", "try", "{", "String", "method", "=", "String", ".", "format", "(", "\"%s %s HTTP/1.1\\r\\n\"", ",", "verb", ",", "uri", ")", ...
Adds the http method. @param outputStream the output stream @param verb the verb @param uri the uri
[ "Adds", "the", "http", "method", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java#L497-L507
47,626
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java
MediaBatchOperations.appendHeaders
private void appendHeaders(OutputStream outputStream, InternetHeaders internetHeaders) { try { // Headers @SuppressWarnings("unchecked") Enumeration<Header> headers = internetHeaders.getAllHeaders(); while (headers.hasMoreElements()) { ...
java
private void appendHeaders(OutputStream outputStream, InternetHeaders internetHeaders) { try { // Headers @SuppressWarnings("unchecked") Enumeration<Header> headers = internetHeaders.getAllHeaders(); while (headers.hasMoreElements()) { ...
[ "private", "void", "appendHeaders", "(", "OutputStream", "outputStream", ",", "InternetHeaders", "internetHeaders", ")", "{", "try", "{", "// Headers", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "Enumeration", "<", "Header", ">", "headers", "=", "internetHe...
Append headers. @param outputStream the output stream @param internetHeaders the internet headers
[ "Append", "headers", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java#L517-L537
47,627
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java
MediaBatchOperations.appendEntity
private void appendEntity(OutputStream outputStream, ByteArrayInputStream byteArrayInputStream) { try { byte[] buffer = new byte[BUFFER_SIZE]; while (true) { int bytesRead = byteArrayInputStream.read(buffer); if (bytesRead <= 0) { ...
java
private void appendEntity(OutputStream outputStream, ByteArrayInputStream byteArrayInputStream) { try { byte[] buffer = new byte[BUFFER_SIZE]; while (true) { int bytesRead = byteArrayInputStream.read(buffer); if (bytesRead <= 0) { ...
[ "private", "void", "appendEntity", "(", "OutputStream", "outputStream", ",", "ByteArrayInputStream", "byteArrayInputStream", ")", "{", "try", "{", "byte", "[", "]", "buffer", "=", "new", "byte", "[", "BUFFER_SIZE", "]", ";", "while", "(", "true", ")", "{", "...
Append entity. @param outputStream the output stream @param byteArrayInputStream the byte array input stream
[ "Append", "entity", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaBatchOperations.java#L547-L561
47,628
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/JobTargetExecutionsInner.java
JobTargetExecutionsInner.getAsync
public ServiceFuture<JobExecutionInner> getAsync(String resourceGroupName, String serverName, String jobAgentName, String jobName, UUID jobExecutionId, String stepName, UUID targetId, final ServiceCallback<JobExecutionInner> serviceCallback) { return ServiceFuture.fromResponse(getWithServiceResponseAsync(resour...
java
public ServiceFuture<JobExecutionInner> getAsync(String resourceGroupName, String serverName, String jobAgentName, String jobName, UUID jobExecutionId, String stepName, UUID targetId, final ServiceCallback<JobExecutionInner> serviceCallback) { return ServiceFuture.fromResponse(getWithServiceResponseAsync(resour...
[ "public", "ServiceFuture", "<", "JobExecutionInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "jobAgentName", ",", "String", "jobName", ",", "UUID", "jobExecutionId", ",", "String", "stepName", ",", "UUID", "...
Gets a target execution. @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 jobAgentName The name of the job agent. @param jobName The name of the job to get. @...
[ "Gets", "a", "target", "execution", "." ]
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/JobTargetExecutionsInner.java#L791-L793
47,629
Azure/azure-sdk-for-java
common/azure-common-mgmt/src/main/java/com/azure/common/mgmt/PollStrategy.java
PollStrategy.updateDelayInMillisecondsFrom
final void updateDelayInMillisecondsFrom(HttpResponse httpPollResponse) { final Long parsedDelayInMilliseconds = delayInMillisecondsFrom(httpPollResponse); if (parsedDelayInMilliseconds != null) { delayInMilliseconds = parsedDelayInMilliseconds; } }
java
final void updateDelayInMillisecondsFrom(HttpResponse httpPollResponse) { final Long parsedDelayInMilliseconds = delayInMillisecondsFrom(httpPollResponse); if (parsedDelayInMilliseconds != null) { delayInMilliseconds = parsedDelayInMilliseconds; } }
[ "final", "void", "updateDelayInMillisecondsFrom", "(", "HttpResponse", "httpPollResponse", ")", "{", "final", "Long", "parsedDelayInMilliseconds", "=", "delayInMillisecondsFrom", "(", "httpPollResponse", ")", ";", "if", "(", "parsedDelayInMilliseconds", "!=", "null", ")",...
Update the delay in milliseconds from the provided HTTP poll response. @param httpPollResponse The HTTP poll response to update the delay in milliseconds from.
[ "Update", "the", "delay", "in", "milliseconds", "from", "the", "provided", "HTTP", "poll", "response", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common-mgmt/src/main/java/com/azure/common/mgmt/PollStrategy.java#L92-L97
47,630
Azure/azure-sdk-for-java
common/azure-common-mgmt/src/main/java/com/azure/common/mgmt/PollStrategy.java
PollStrategy.delayAsync
Mono<Void> delayAsync() { Mono<Void> result = Mono.empty(); if (delayInMilliseconds > 0) { result = result.delaySubscription(Duration.ofMillis(delayInMilliseconds)); } return result; }
java
Mono<Void> delayAsync() { Mono<Void> result = Mono.empty(); if (delayInMilliseconds > 0) { result = result.delaySubscription(Duration.ofMillis(delayInMilliseconds)); } return result; }
[ "Mono", "<", "Void", ">", "delayAsync", "(", ")", "{", "Mono", "<", "Void", ">", "result", "=", "Mono", ".", "empty", "(", ")", ";", "if", "(", "delayInMilliseconds", ">", "0", ")", "{", "result", "=", "result", ".", "delaySubscription", "(", "Durati...
If this OperationStatus has a retryAfterSeconds value, return an Mono that is delayed by the number of seconds that are in the retryAfterSeconds value. If this OperationStatus doesn't have a retryAfterSeconds value, then return an Single with no delay. @return A Mono with delay if this OperationStatus has a retryAfterS...
[ "If", "this", "OperationStatus", "has", "a", "retryAfterSeconds", "value", "return", "an", "Mono", "that", "is", "delayed", "by", "the", "number", "of", "seconds", "that", "are", "in", "the", "retryAfterSeconds", "value", ".", "If", "this", "OperationStatus", ...
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common-mgmt/src/main/java/com/azure/common/mgmt/PollStrategy.java#L116-L122
47,631
Azure/azure-sdk-for-java
edgegateway/resource-manager/v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/implementation/TriggersInner.java
TriggersInner.getAsync
public Observable<TriggerInner> getAsync(String deviceName, String name, String resourceGroupName) { return getWithServiceResponseAsync(deviceName, name, resourceGroupName).map(new Func1<ServiceResponse<TriggerInner>, TriggerInner>() { @Override public TriggerInner call(ServiceResponse<T...
java
public Observable<TriggerInner> getAsync(String deviceName, String name, String resourceGroupName) { return getWithServiceResponseAsync(deviceName, name, resourceGroupName).map(new Func1<ServiceResponse<TriggerInner>, TriggerInner>() { @Override public TriggerInner call(ServiceResponse<T...
[ "public", "Observable", "<", "TriggerInner", ">", "getAsync", "(", "String", "deviceName", ",", "String", "name", ",", "String", "resourceGroupName", ")", "{", "return", "getWithServiceResponseAsync", "(", "deviceName", ",", "name", ",", "resourceGroupName", ")", ...
Get a specific trigger by name. @param deviceName The device name. @param name The trigger name. @param resourceGroupName The resource group name. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the TriggerInner object
[ "Get", "a", "specific", "trigger", "by", "name", "." ]
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/TriggersInner.java#L377-L384
47,632
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/EncryptionProtectorsInner.java
EncryptionProtectorsInner.getAsync
public Observable<EncryptionProtectorInner> getAsync(String resourceGroupName, String serverName) { return getWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<EncryptionProtectorInner>, EncryptionProtectorInner>() { @Override public EncryptionProtecto...
java
public Observable<EncryptionProtectorInner> getAsync(String resourceGroupName, String serverName) { return getWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<EncryptionProtectorInner>, EncryptionProtectorInner>() { @Override public EncryptionProtecto...
[ "public", "Observable", "<", "EncryptionProtectorInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ")", ".", "map", "(", "new", "F...
Gets a server encryption protector. @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 @retur...
[ "Gets", "a", "server", "encryption", "protector", "." ]
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/EncryptionProtectorsInner.java#L243-L250
47,633
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/EncryptionUtils.java
EncryptionUtils.eraseKey
public static void eraseKey(byte[] keyToErase) { if (keyToErase != null) { SecureRandom random; try { random = SecureRandom.getInstance("SHA1PRNG"); random.nextBytes(keyToErase); } catch (NoSuchAlgorithmException e) { // never r...
java
public static void eraseKey(byte[] keyToErase) { if (keyToErase != null) { SecureRandom random; try { random = SecureRandom.getInstance("SHA1PRNG"); random.nextBytes(keyToErase); } catch (NoSuchAlgorithmException e) { // never r...
[ "public", "static", "void", "eraseKey", "(", "byte", "[", "]", "keyToErase", ")", "{", "if", "(", "keyToErase", "!=", "null", ")", "{", "SecureRandom", "random", ";", "try", "{", "random", "=", "SecureRandom", ".", "getInstance", "(", "\"SHA1PRNG\"", ")", ...
Overwrites the supplied byte array with RNG generated data which destroys the original contents. @param keyToErase The content key to erase.
[ "Overwrites", "the", "supplied", "byte", "array", "with", "RNG", "generated", "data", "which", "destroys", "the", "original", "contents", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/EncryptionUtils.java#L55-L65
47,634
Azure/azure-sdk-for-java
batch/data-plane/src/main/java/com/microsoft/azure/batch/auth/BatchSharedKeyCredentialsInterceptor.java
BatchSharedKeyCredentialsInterceptor.intercept
@Override public Response intercept(Interceptor.Chain chain) throws IOException { Request newRequest = this.signHeader(chain.request()); return chain.proceed(newRequest); }
java
@Override public Response intercept(Interceptor.Chain chain) throws IOException { Request newRequest = this.signHeader(chain.request()); return chain.proceed(newRequest); }
[ "@", "Override", "public", "Response", "intercept", "(", "Interceptor", ".", "Chain", "chain", ")", "throws", "IOException", "{", "Request", "newRequest", "=", "this", ".", "signHeader", "(", "chain", ".", "request", "(", ")", ")", ";", "return", "chain", ...
Inject the new authentication HEADER @param chain The interceptor chain @return Response of the request @throws IOException Exception thrown from serialization
[ "Inject", "the", "new", "authentication", "HEADER" ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/batch/data-plane/src/main/java/com/microsoft/azure/batch/auth/BatchSharedKeyCredentialsInterceptor.java#L51-L55
47,635
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/JobsInner.java
JobsInner.exportWithServiceResponseAsync
public Observable<ServiceResponse<Void>> exportWithServiceResponseAsync(String vaultName, String resourceGroupName, String filter) { if (vaultName == null) { throw new IllegalArgumentException("Parameter vaultName is required and cannot be null."); } if (resourceGroupName == null) { ...
java
public Observable<ServiceResponse<Void>> exportWithServiceResponseAsync(String vaultName, String resourceGroupName, String filter) { if (vaultName == null) { throw new IllegalArgumentException("Parameter vaultName is required and cannot be null."); } if (resourceGroupName == null) { ...
[ "public", "Observable", "<", "ServiceResponse", "<", "Void", ">", ">", "exportWithServiceResponseAsync", "(", "String", "vaultName", ",", "String", "resourceGroupName", ",", "String", "filter", ")", "{", "if", "(", "vaultName", "==", "null", ")", "{", "throw", ...
Triggers export of jobs specified by filters and returns an OperationID to track. @param vaultName The name of the recovery services vault. @param resourceGroupName The name of the resource group where the recovery services vault is present. @param filter OData filter options. @throws IllegalArgumentException thrown i...
[ "Triggers", "export", "of", "jobs", "specified", "by", "filters", "and", "returns", "an", "OperationID", "to", "track", "." ]
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/JobsInner.java#L192-L215
47,636
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/DatabaseBlobAuditingPoliciesInner.java
DatabaseBlobAuditingPoliciesInner.getAsync
public Observable<DatabaseBlobAuditingPolicyInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<DatabaseBlobAuditingPolicyInner>, DatabaseBlobAuditingPolicyInner>() { ...
java
public Observable<DatabaseBlobAuditingPolicyInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<DatabaseBlobAuditingPolicyInner>, DatabaseBlobAuditingPolicyInner>() { ...
[ "public", "Observable", "<", "DatabaseBlobAuditingPolicyInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "databaseName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName",...
Gets a database's blob auditing 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 IllegalArgumentExcepti...
[ "Gets", "a", "database", "s", "blob", "auditing", "policy", "." ]
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/DatabaseBlobAuditingPoliciesInner.java#L105-L112
47,637
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/DatabaseBlobAuditingPoliciesInner.java
DatabaseBlobAuditingPoliciesInner.createOrUpdateAsync
public Observable<DatabaseBlobAuditingPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseBlobAuditingPolicyInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, databaseName, parameters).map(new Func1<ServiceRespo...
java
public Observable<DatabaseBlobAuditingPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseBlobAuditingPolicyInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, databaseName, parameters).map(new Func1<ServiceRespo...
[ "public", "Observable", "<", "DatabaseBlobAuditingPolicyInner", ">", "createOrUpdateAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "databaseName", ",", "DatabaseBlobAuditingPolicyInner", "parameters", ")", "{", "return", "createOrUpd...
Creates or updates a database's blob auditing 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. @param parameter...
[ "Creates", "or", "updates", "a", "database", "s", "blob", "auditing", "policy", "." ]
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/DatabaseBlobAuditingPoliciesInner.java#L202-L209
47,638
Azure/azure-sdk-for-java
eventhubs/data-plane/azure-eventhubs/src/main/java/com/microsoft/azure/eventhubs/RetryPolicy.java
RetryPolicy.getNextRetryInterval
public Duration getNextRetryInterval(String clientId, Exception lastException, Duration remainingTime) { int baseWaitTime = 0; synchronized (this.serverBusySync) { if (lastException != null && (lastException instanceof ServerBusyException || (lastException.getCause() != n...
java
public Duration getNextRetryInterval(String clientId, Exception lastException, Duration remainingTime) { int baseWaitTime = 0; synchronized (this.serverBusySync) { if (lastException != null && (lastException instanceof ServerBusyException || (lastException.getCause() != n...
[ "public", "Duration", "getNextRetryInterval", "(", "String", "clientId", ",", "Exception", "lastException", ",", "Duration", "remainingTime", ")", "{", "int", "baseWaitTime", "=", "0", ";", "synchronized", "(", "this", ".", "serverBusySync", ")", "{", "if", "(",...
Gets the Interval after which nextRetry should be done. @param clientId clientId @param lastException lastException @param remainingTime remainingTime to retry @return returns 'null' Duration when not Allowed
[ "Gets", "the", "Interval", "after", "which", "nextRetry", "should", "be", "done", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/eventhubs/data-plane/azure-eventhubs/src/main/java/com/microsoft/azure/eventhubs/RetryPolicy.java#L76-L86
47,639
Azure/azure-sdk-for-java
batch/data-plane/src/main/java/com/microsoft/azure/batch/PoolOperations.java
PoolOperations.deletePool
public void deletePool(String poolId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { PoolDeleteOptions options = new PoolDeleteOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.appl...
java
public void deletePool(String poolId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { PoolDeleteOptions options = new PoolDeleteOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.appl...
[ "public", "void", "deletePool", "(", "String", "poolId", ",", "Iterable", "<", "BatchClientBehavior", ">", "additionalBehaviors", ")", "throws", "BatchErrorException", ",", "IOException", "{", "PoolDeleteOptions", "options", "=", "new", "PoolDeleteOptions", "(", ")", ...
Deletes the specified pool. @param poolId The ID of the pool to delete. @param additionalBehaviors A collection of {@link BatchClientBehavior} instances that are applied to the Batch service request. @throws BatchErrorException Exception thrown when an error response is received from the Batch service. @throws IOExcep...
[ "Deletes", "the", "specified", "pool", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/batch/data-plane/src/main/java/com/microsoft/azure/batch/PoolOperations.java#L258-L265
47,640
Azure/azure-sdk-for-java
batch/data-plane/src/main/java/com/microsoft/azure/batch/PoolOperations.java
PoolOperations.stopResizePool
public void stopResizePool(String poolId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { PoolStopResizeOptions options = new PoolStopResizeOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); ...
java
public void stopResizePool(String poolId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { PoolStopResizeOptions options = new PoolStopResizeOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); ...
[ "public", "void", "stopResizePool", "(", "String", "poolId", ",", "Iterable", "<", "BatchClientBehavior", ">", "additionalBehaviors", ")", "throws", "BatchErrorException", ",", "IOException", "{", "PoolStopResizeOptions", "options", "=", "new", "PoolStopResizeOptions", ...
Stops a pool resize operation. @param poolId The ID of the pool. @param additionalBehaviors A collection of {@link BatchClientBehavior} instances that are applied to the Batch service request. @throws BatchErrorException Exception thrown when an error response is received from the Batch service. @throws IOException Ex...
[ "Stops", "a", "pool", "resize", "operation", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/batch/data-plane/src/main/java/com/microsoft/azure/batch/PoolOperations.java#L649-L656
47,641
Azure/azure-sdk-for-java
batch/data-plane/src/main/java/com/microsoft/azure/batch/PoolOperations.java
PoolOperations.disableAutoScale
public void disableAutoScale(String poolId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { PoolDisableAutoScaleOptions options = new PoolDisableAutoScaleOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBeha...
java
public void disableAutoScale(String poolId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { PoolDisableAutoScaleOptions options = new PoolDisableAutoScaleOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBeha...
[ "public", "void", "disableAutoScale", "(", "String", "poolId", ",", "Iterable", "<", "BatchClientBehavior", ">", "additionalBehaviors", ")", "throws", "BatchErrorException", ",", "IOException", "{", "PoolDisableAutoScaleOptions", "options", "=", "new", "PoolDisableAutoSca...
Disables automatic scaling on the specified pool. @param poolId The ID of the pool. @param additionalBehaviors A collection of {@link BatchClientBehavior} instances that are applied to the Batch service request. @throws BatchErrorException Exception thrown when an error response is received from the Batch service. @th...
[ "Disables", "automatic", "scaling", "on", "the", "specified", "pool", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/batch/data-plane/src/main/java/com/microsoft/azure/batch/PoolOperations.java#L781-L788
47,642
Azure/azure-sdk-for-java
batch/data-plane/src/main/java/com/microsoft/azure/batch/PoolOperations.java
PoolOperations.existsPool
public boolean existsPool(String poolId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { PoolExistsOptions options = new PoolExistsOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr....
java
public boolean existsPool(String poolId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { PoolExistsOptions options = new PoolExistsOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr....
[ "public", "boolean", "existsPool", "(", "String", "poolId", ",", "Iterable", "<", "BatchClientBehavior", ">", "additionalBehaviors", ")", "throws", "BatchErrorException", ",", "IOException", "{", "PoolExistsOptions", "options", "=", "new", "PoolExistsOptions", "(", ")...
Checks whether the specified pool exists. @param poolId The ID of the pool. @param additionalBehaviors A collection of {@link BatchClientBehavior} instances that are applied to the Batch service request. @return True if the pool exists; otherwise, false. @throws BatchErrorException Exception thrown when an error respo...
[ "Checks", "whether", "the", "specified", "pool", "exists", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/batch/data-plane/src/main/java/com/microsoft/azure/batch/PoolOperations.java#L1060-L1068
47,643
Azure/azure-sdk-for-java
batch/data-plane/src/main/java/com/microsoft/azure/batch/PoolOperations.java
PoolOperations.patchPool
public void patchPool(String poolId, StartTask startTask, Collection<CertificateReference> certificateReferences, Collection<ApplicationPackageReference> applicationPackageReferences, Collection<MetadataItem> metadata, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException...
java
public void patchPool(String poolId, StartTask startTask, Collection<CertificateReference> certificateReferences, Collection<ApplicationPackageReference> applicationPackageReferences, Collection<MetadataItem> metadata, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException...
[ "public", "void", "patchPool", "(", "String", "poolId", ",", "StartTask", "startTask", ",", "Collection", "<", "CertificateReference", ">", "certificateReferences", ",", "Collection", "<", "ApplicationPackageReference", ">", "applicationPackageReferences", ",", "Collectio...
Updates the specified pool. This method only replaces the properties specified with non-null values. @param poolId The ID of the pool. @param startTask A task to run on each compute node as it joins the pool. If null, any existing start task is left unchanged. @param certificateReferences A collection of certificates ...
[ "Updates", "the", "specified", "pool", ".", "This", "method", "only", "replaces", "the", "properties", "specified", "with", "non", "-", "null", "values", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/batch/data-plane/src/main/java/com/microsoft/azure/batch/PoolOperations.java#L1225-L1244
47,644
Azure/azure-sdk-for-java
batch/data-plane/src/main/java/com/microsoft/azure/batch/PoolOperations.java
PoolOperations.getAllPoolsLifetimeStatistics
public PoolStatistics getAllPoolsLifetimeStatistics(Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { PoolGetAllLifetimeStatisticsOptions options = new PoolGetAllLifetimeStatisticsOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBeh...
java
public PoolStatistics getAllPoolsLifetimeStatistics(Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { PoolGetAllLifetimeStatisticsOptions options = new PoolGetAllLifetimeStatisticsOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBeh...
[ "public", "PoolStatistics", "getAllPoolsLifetimeStatistics", "(", "Iterable", "<", "BatchClientBehavior", ">", "additionalBehaviors", ")", "throws", "BatchErrorException", ",", "IOException", "{", "PoolGetAllLifetimeStatisticsOptions", "options", "=", "new", "PoolGetAllLifetime...
Gets lifetime summary statistics for all of the pools in the current account. Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics. @param additionalBehaviors A collection of {@link BatchClientBehavior} instances that are appl...
[ "Gets", "lifetime", "summary", "statistics", "for", "all", "of", "the", "pools", "in", "the", "current", "account", ".", "Statistics", "are", "aggregated", "across", "all", "pools", "that", "have", "ever", "existed", "in", "the", "account", "from", "account", ...
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/batch/data-plane/src/main/java/com/microsoft/azure/batch/PoolOperations.java#L1360-L1367
47,645
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/AccessPolicy.java
AccessPolicy.create
public static EntityCreateOperation<AccessPolicyInfo> create(String name, double durationInMinutes, EnumSet<AccessPolicyPermission> permissions) { return new Creator(name, durationInMinutes, permissions); }
java
public static EntityCreateOperation<AccessPolicyInfo> create(String name, double durationInMinutes, EnumSet<AccessPolicyPermission> permissions) { return new Creator(name, durationInMinutes, permissions); }
[ "public", "static", "EntityCreateOperation", "<", "AccessPolicyInfo", ">", "create", "(", "String", "name", ",", "double", "durationInMinutes", ",", "EnumSet", "<", "AccessPolicyPermission", ">", "permissions", ")", "{", "return", "new", "Creator", "(", "name", ",...
Creates an operation to create a new access policy @param name name of the access policy @param durationInMinutes how long the access policy will be in force @param permissions permissions allowed by this access policy @return The operation
[ "Creates", "an", "operation", "to", "create", "a", "new", "access", "policy" ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/AccessPolicy.java#L52-L56
47,646
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/AccessPolicy.java
AccessPolicy.get
public static EntityGetOperation<AccessPolicyInfo> get(String accessPolicyId) { return new DefaultGetOperation<AccessPolicyInfo>(ENTITY_SET, accessPolicyId, AccessPolicyInfo.class); }
java
public static EntityGetOperation<AccessPolicyInfo> get(String accessPolicyId) { return new DefaultGetOperation<AccessPolicyInfo>(ENTITY_SET, accessPolicyId, AccessPolicyInfo.class); }
[ "public", "static", "EntityGetOperation", "<", "AccessPolicyInfo", ">", "get", "(", "String", "accessPolicyId", ")", "{", "return", "new", "DefaultGetOperation", "<", "AccessPolicyInfo", ">", "(", "ENTITY_SET", ",", "accessPolicyId", ",", "AccessPolicyInfo", ".", "c...
Create an operation that will retrieve the given access policy @param accessPolicyId id of access policy to retrieve @return the operation
[ "Create", "an", "operation", "that", "will", "retrieve", "the", "given", "access", "policy" ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/AccessPolicy.java#L94-L97
47,647
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/AccessPolicy.java
AccessPolicy.get
public static EntityGetOperation<AccessPolicyInfo> get( LinkInfo<AccessPolicyInfo> link) { return new DefaultGetOperation<AccessPolicyInfo>(link.getHref(), AccessPolicyInfo.class); }
java
public static EntityGetOperation<AccessPolicyInfo> get( LinkInfo<AccessPolicyInfo> link) { return new DefaultGetOperation<AccessPolicyInfo>(link.getHref(), AccessPolicyInfo.class); }
[ "public", "static", "EntityGetOperation", "<", "AccessPolicyInfo", ">", "get", "(", "LinkInfo", "<", "AccessPolicyInfo", ">", "link", ")", "{", "return", "new", "DefaultGetOperation", "<", "AccessPolicyInfo", ">", "(", "link", ".", "getHref", "(", ")", ",", "A...
Create an operation that will retrieve the access policy at the given link @param link the link @return the operation
[ "Create", "an", "operation", "that", "will", "retrieve", "the", "access", "policy", "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/AccessPolicy.java#L107-L111
47,648
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKeyInfo.java
ContentKeyInfo.getContentKeyType
public ContentKeyType getContentKeyType() { Integer contentKeyTypeInteger = getContent().getContentKeyType(); ContentKeyType contentKeyType = null; if (contentKeyTypeInteger != null) { contentKeyType = ContentKeyType.fromCode(contentKeyTypeInteger); } return contentKe...
java
public ContentKeyType getContentKeyType() { Integer contentKeyTypeInteger = getContent().getContentKeyType(); ContentKeyType contentKeyType = null; if (contentKeyTypeInteger != null) { contentKeyType = ContentKeyType.fromCode(contentKeyTypeInteger); } return contentKe...
[ "public", "ContentKeyType", "getContentKeyType", "(", ")", "{", "Integer", "contentKeyTypeInteger", "=", "getContent", "(", ")", ".", "getContentKeyType", "(", ")", ";", "ContentKeyType", "contentKeyType", "=", "null", ";", "if", "(", "contentKeyTypeInteger", "!=", ...
Gets the content key type. @return the content key type
[ "Gets", "the", "content", "key", "type", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKeyInfo.java#L127-L134
47,649
Azure/azure-sdk-for-java
cognitiveservices/data-plane/vision/contentmoderator/src/main/java/com/microsoft/azure/cognitiveservices/vision/contentmoderator/implementation/ListManagementTermListsImpl.java
ListManagementTermListsImpl.getDetailsAsync
public Observable<TermList> getDetailsAsync(String listId) { return getDetailsWithServiceResponseAsync(listId).map(new Func1<ServiceResponse<TermList>, TermList>() { @Override public TermList call(ServiceResponse<TermList> response) { return response.body(); }...
java
public Observable<TermList> getDetailsAsync(String listId) { return getDetailsWithServiceResponseAsync(listId).map(new Func1<ServiceResponse<TermList>, TermList>() { @Override public TermList call(ServiceResponse<TermList> response) { return response.body(); }...
[ "public", "Observable", "<", "TermList", ">", "getDetailsAsync", "(", "String", "listId", ")", "{", "return", "getDetailsWithServiceResponseAsync", "(", "listId", ")", ".", "map", "(", "new", "Func1", "<", "ServiceResponse", "<", "TermList", ">", ",", "TermList"...
Returns list Id details of the term list with list Id equal to list Id passed. @param listId List Id of the image list. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the TermList object
[ "Returns", "list", "Id", "details", "of", "the", "term", "list", "with", "list", "Id", "equal", "to", "list", "Id", "passed", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/cognitiveservices/data-plane/vision/contentmoderator/src/main/java/com/microsoft/azure/cognitiveservices/vision/contentmoderator/implementation/ListManagementTermListsImpl.java#L123-L130
47,650
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/models/SecretRestoreParameters.java
SecretRestoreParameters.withSecretBundleBackup
public SecretRestoreParameters withSecretBundleBackup(byte[] secretBundleBackup) { if (secretBundleBackup == null) { this.secretBundleBackup = null; } else { this.secretBundleBackup = Base64Url.encode(secretBundleBackup); } return this; }
java
public SecretRestoreParameters withSecretBundleBackup(byte[] secretBundleBackup) { if (secretBundleBackup == null) { this.secretBundleBackup = null; } else { this.secretBundleBackup = Base64Url.encode(secretBundleBackup); } return this; }
[ "public", "SecretRestoreParameters", "withSecretBundleBackup", "(", "byte", "[", "]", "secretBundleBackup", ")", "{", "if", "(", "secretBundleBackup", "==", "null", ")", "{", "this", ".", "secretBundleBackup", "=", "null", ";", "}", "else", "{", "this", ".", "...
Set the secretBundleBackup value. @param secretBundleBackup the secretBundleBackup value to set @return the SecretRestoreParameters object itself.
[ "Set", "the", "secretBundleBackup", "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/SecretRestoreParameters.java#L38-L45
47,651
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/ServerAutomaticTuningsInner.java
ServerAutomaticTuningsInner.getAsync
public Observable<ServerAutomaticTuningInner> getAsync(String resourceGroupName, String serverName) { return getWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<ServerAutomaticTuningInner>, ServerAutomaticTuningInner>() { @Override public ServerAutoma...
java
public Observable<ServerAutomaticTuningInner> getAsync(String resourceGroupName, String serverName) { return getWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<ServerAutomaticTuningInner>, ServerAutomaticTuningInner>() { @Override public ServerAutoma...
[ "public", "Observable", "<", "ServerAutomaticTuningInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ")", ".", "map", "(", "new", ...
Retrieves server automatic tuning options. @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...
[ "Retrieves", "server", "automatic", "tuning", "options", "." ]
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/ServerAutomaticTuningsInner.java#L102-L109
47,652
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/ServerTableAuditingPoliciesInner.java
ServerTableAuditingPoliciesInner.getAsync
public Observable<ServerTableAuditingPolicyInner> getAsync(String resourceGroupName, String serverName) { return getWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<ServerTableAuditingPolicyInner>, ServerTableAuditingPolicyInner>() { @Override public ...
java
public Observable<ServerTableAuditingPolicyInner> getAsync(String resourceGroupName, String serverName) { return getWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<ServerTableAuditingPolicyInner>, ServerTableAuditingPolicyInner>() { @Override public ...
[ "public", "Observable", "<", "ServerTableAuditingPolicyInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ")", ".", "map", "(", "new"...
Gets a server's table auditing policy. 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. @throws IllegalArgum...
[ "Gets", "a", "server", "s", "table", "auditing", "policy", ".", "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/ServerTableAuditingPoliciesInner.java#L106-L113
47,653
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/ServerTableAuditingPoliciesInner.java
ServerTableAuditingPoliciesInner.createOrUpdateAsync
public Observable<ServerTableAuditingPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, ServerTableAuditingPolicyInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, parameters).map(new Func1<ServiceResponse<ServerTableAuditingPolicyInner>, ...
java
public Observable<ServerTableAuditingPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, ServerTableAuditingPolicyInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, parameters).map(new Func1<ServiceResponse<ServerTableAuditingPolicyInner>, ...
[ "public", "Observable", "<", "ServerTableAuditingPolicyInner", ">", "createOrUpdateAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "ServerTableAuditingPolicyInner", "parameters", ")", "{", "return", "createOrUpdateWithServiceResponseAsync", "(", ...
Creates or updates a servers's table auditing policy. 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. @para...
[ "Creates", "or", "updates", "a", "servers", "s", "table", "auditing", "policy", ".", "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/ServerTableAuditingPoliciesInner.java#L196-L203
47,654
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/ServerTableAuditingPoliciesInner.java
ServerTableAuditingPoliciesInner.listByServerAsync
public Observable<ServerTableAuditingPolicyListResultInner> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<ServerTableAuditingPolicyListResultInner>, ServerTableAuditingPolicyListResultInne...
java
public Observable<ServerTableAuditingPolicyListResultInner> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<ServerTableAuditingPolicyListResultInner>, ServerTableAuditingPolicyListResultInne...
[ "public", "Observable", "<", "ServerTableAuditingPolicyListResultInner", ">", "listByServerAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ")", "{", "return", "listByServerWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ")", ...
Lists a servers's table auditing policies. 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. @throws IllegalA...
[ "Lists", "a", "servers", "s", "table", "auditing", "policies", ".", "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/ServerTableAuditingPoliciesInner.java#L289-L296
47,655
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/Exports.java
Exports.register
@Override public void register(Builder.Registry registry) { registry.add(new AzureAdTokenFactory()); registry.add(MediaContract.class, MediaExceptionProcessor.class); registry.add(MediaRestProxy.class); registry.add(OAuthFilter.class); registry.add(ResourceLocationManager.cl...
java
@Override public void register(Builder.Registry registry) { registry.add(new AzureAdTokenFactory()); registry.add(MediaContract.class, MediaExceptionProcessor.class); registry.add(MediaRestProxy.class); registry.add(OAuthFilter.class); registry.add(ResourceLocationManager.cl...
[ "@", "Override", "public", "void", "register", "(", "Builder", ".", "Registry", "registry", ")", "{", "registry", ".", "add", "(", "new", "AzureAdTokenFactory", "(", ")", ")", ";", "registry", ".", "add", "(", "MediaContract", ".", "class", ",", "MediaExce...
register the Media services.
[ "register", "the", "Media", "services", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/Exports.java#L43-L88
47,656
Azure/azure-sdk-for-java
eventhubs/data-plane/azure-eventhubs/src/main/java/com/microsoft/azure/eventhubs/impl/ReceivePump.java
ReceivePump.run
public void run() { try { ReceivePump.this.receiveAndProcess(); } catch (final Exception exception) { if (TRACE_LOGGER.isErrorEnabled()) { TRACE_LOGGER.error( String.format(Locale.US, "Receive pump for eventHub (%s), consumerGroup (%s), par...
java
public void run() { try { ReceivePump.this.receiveAndProcess(); } catch (final Exception exception) { if (TRACE_LOGGER.isErrorEnabled()) { TRACE_LOGGER.error( String.format(Locale.US, "Receive pump for eventHub (%s), consumerGroup (%s), par...
[ "public", "void", "run", "(", ")", "{", "try", "{", "ReceivePump", ".", "this", ".", "receiveAndProcess", "(", ")", ";", "}", "catch", "(", "final", "Exception", "exception", ")", "{", "if", "(", "TRACE_LOGGER", ".", "isErrorEnabled", "(", ")", ")", "{...
entry-point - for runnable
[ "entry", "-", "point", "-", "for", "runnable" ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/eventhubs/data-plane/azure-eventhubs/src/main/java/com/microsoft/azure/eventhubs/impl/ReceivePump.java#L53-L66
47,657
Azure/azure-sdk-for-java
eventhubs/data-plane/azure-eventhubs/src/main/java/com/microsoft/azure/eventhubs/impl/ReceivePump.java
ReceivePump.receiveAndProcess
public void receiveAndProcess() { if (this.shouldContinue()) { this.receiver.receive(this.onReceiveHandler.getMaxEventCount()) .handleAsync(this.processAndReschedule, this.executor); } else { if (TRACE_LOGGER.isInfoEnabled()) { TRACE_LOGGER.inf...
java
public void receiveAndProcess() { if (this.shouldContinue()) { this.receiver.receive(this.onReceiveHandler.getMaxEventCount()) .handleAsync(this.processAndReschedule, this.executor); } else { if (TRACE_LOGGER.isInfoEnabled()) { TRACE_LOGGER.inf...
[ "public", "void", "receiveAndProcess", "(", ")", "{", "if", "(", "this", ".", "shouldContinue", "(", ")", ")", "{", "this", ".", "receiver", ".", "receive", "(", "this", ".", "onReceiveHandler", ".", "getMaxEventCount", "(", ")", ")", ".", "handleAsync", ...
receives and invokes user-callback if success or stops pump if fails
[ "receives", "and", "invokes", "user", "-", "callback", "if", "success", "or", "stops", "pump", "if", "fails" ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/eventhubs/data-plane/azure-eventhubs/src/main/java/com/microsoft/azure/eventhubs/impl/ReceivePump.java#L69-L82
47,658
Azure/azure-sdk-for-java
profiles/2018-03-01-hybrid/azure/src/main/java/com/microsoft/azure/management/profile_2018_03_01_hybrid/Azure.java
Azure.authenticate
public static Authenticated authenticate(AzureTokenCredentials credentials) { return new AuthenticatedImpl(new RestClient.Builder() .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER) .withCredentials(credentials) .withSerializerAda...
java
public static Authenticated authenticate(AzureTokenCredentials credentials) { return new AuthenticatedImpl(new RestClient.Builder() .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER) .withCredentials(credentials) .withSerializerAda...
[ "public", "static", "Authenticated", "authenticate", "(", "AzureTokenCredentials", "credentials", ")", "{", "return", "new", "AuthenticatedImpl", "(", "new", "RestClient", ".", "Builder", "(", ")", ".", "withBaseUrl", "(", "credentials", ".", "environment", "(", "...
Creates an instance of Azure.Authenticated that exposes subscription, tenant, and authorization API entry points. @param credentials the credentials to use @return the Azure.Authenticated
[ "Creates", "an", "instance", "of", "Azure", ".", "Authenticated", "that", "exposes", "subscription", "tenant", "and", "authorization", "API", "entry", "points", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/profiles/2018-03-01-hybrid/azure/src/main/java/com/microsoft/azure/management/profile_2018_03_01_hybrid/Azure.java#L131-L138
47,659
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/DataMaskingPoliciesInner.java
DataMaskingPoliciesInner.getAsync
public Observable<DataMaskingPolicyInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<DataMaskingPolicyInner>, DataMaskingPolicyInner>() { @Override ...
java
public Observable<DataMaskingPolicyInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<DataMaskingPolicyInner>, DataMaskingPolicyInner>() { @Override ...
[ "public", "Observable", "<", "DataMaskingPolicyInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "databaseName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ",", ...
Gets a database data masking 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 ...
[ "Gets", "a", "database", "data", "masking", "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/DataMaskingPoliciesInner.java#L207-L214
47,660
Azure/azure-sdk-for-java
automation/resource-manager/v2015_10_31/src/main/java/com/microsoft/azure/management/automation/v2015_10_31/implementation/DscNodeConfigurationsInner.java
DscNodeConfigurationsInner.listByAutomationAccountNextAsync
public Observable<Page<DscNodeConfigurationInner>> listByAutomationAccountNextAsync(final String nextPageLink) { return listByAutomationAccountNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<DscNodeConfigurationInner>>, Page<DscNodeConfigurationInner>>() { ...
java
public Observable<Page<DscNodeConfigurationInner>> listByAutomationAccountNextAsync(final String nextPageLink) { return listByAutomationAccountNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<DscNodeConfigurationInner>>, Page<DscNodeConfigurationInner>>() { ...
[ "public", "Observable", "<", "Page", "<", "DscNodeConfigurationInner", ">", ">", "listByAutomationAccountNextAsync", "(", "final", "String", "nextPageLink", ")", "{", "return", "listByAutomationAccountNextWithServiceResponseAsync", "(", "nextPageLink", ")", ".", "map", "(...
Retrieve a list of dsc node configurations. @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;DscNodeConfigurationInner&gt; object
[ "Retrieve", "a", "list", "of", "dsc", "node", "configurations", "." ]
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/DscNodeConfigurationsInner.java#L655-L663
47,661
Azure/azure-sdk-for-java
logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountAssembliesInner.java
IntegrationAccountAssembliesInner.listAsync
public Observable<List<AssemblyDefinitionInner>> listAsync(String resourceGroupName, String integrationAccountName) { return listWithServiceResponseAsync(resourceGroupName, integrationAccountName).map(new Func1<ServiceResponse<List<AssemblyDefinitionInner>>, List<AssemblyDefinitionInner>>() { @Overr...
java
public Observable<List<AssemblyDefinitionInner>> listAsync(String resourceGroupName, String integrationAccountName) { return listWithServiceResponseAsync(resourceGroupName, integrationAccountName).map(new Func1<ServiceResponse<List<AssemblyDefinitionInner>>, List<AssemblyDefinitionInner>>() { @Overr...
[ "public", "Observable", "<", "List", "<", "AssemblyDefinitionInner", ">", ">", "listAsync", "(", "String", "resourceGroupName", ",", "String", "integrationAccountName", ")", "{", "return", "listWithServiceResponseAsync", "(", "resourceGroupName", ",", "integrationAccountN...
List the assemblies for an integration account. @param resourceGroupName The resource group name. @param integrationAccountName The integration account name. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the List&lt;AssemblyDefinitionInner&gt; object
[ "List", "the", "assemblies", "for", "an", "integration", "account", "." ]
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/IntegrationAccountAssembliesInner.java#L117-L124
47,662
Azure/azure-sdk-for-java
servicebus/data-plane/azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/TrackingUtil.java
TrackingUtil.parseRoleIdentifier
static String parseRoleIdentifier(final String trackingId) { if (StringUtil.isNullOrWhiteSpace(trackingId) || !trackingId.contains(TRACKING_ID_TOKEN_SEPARATOR)) { return null; } return trackingId.substring(trackingId.indexOf(TRACKING_ID_TOKEN_SEPARATOR)); }
java
static String parseRoleIdentifier(final String trackingId) { if (StringUtil.isNullOrWhiteSpace(trackingId) || !trackingId.contains(TRACKING_ID_TOKEN_SEPARATOR)) { return null; } return trackingId.substring(trackingId.indexOf(TRACKING_ID_TOKEN_SEPARATOR)); }
[ "static", "String", "parseRoleIdentifier", "(", "final", "String", "trackingId", ")", "{", "if", "(", "StringUtil", ".", "isNullOrWhiteSpace", "(", "trackingId", ")", "||", "!", "trackingId", ".", "contains", "(", "TRACKING_ID_TOKEN_SEPARATOR", ")", ")", "{", "r...
parses ServiceBus role identifiers from trackingId @return null if no roleIdentifier found
[ "parses", "ServiceBus", "role", "identifiers", "from", "trackingId" ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/servicebus/data-plane/azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/TrackingUtil.java#L19-L27
47,663
Azure/azure-sdk-for-java
mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/MySQLManager.java
MySQLManager.authenticate
public static MySQLManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { return new MySQLManager(new RestClient.Builder() .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER) .withCredentials(credentials) .withSerializ...
java
public static MySQLManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { return new MySQLManager(new RestClient.Builder() .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER) .withCredentials(credentials) .withSerializ...
[ "public", "static", "MySQLManager", "authenticate", "(", "AzureTokenCredentials", "credentials", ",", "String", "subscriptionId", ")", "{", "return", "new", "MySQLManager", "(", "new", "RestClient", ".", "Builder", "(", ")", ".", "withBaseUrl", "(", "credentials", ...
Creates an instance of MySQLManager that exposes DBforMySQL resource management API entry points. @param credentials the credentials to use @param subscriptionId the subscription UUID @return the MySQLManager
[ "Creates", "an", "instance", "of", "MySQLManager", "that", "exposes", "DBforMySQL", "resource", "management", "API", "entry", "points", "." ]
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/MySQLManager.java#L59-L66
47,664
Azure/azure-sdk-for-java
automation/resource-manager/v2015_10_31/src/main/java/com/microsoft/azure/management/automation/v2015_10_31/implementation/JobSchedulesInner.java
JobSchedulesInner.delete
public void delete(String resourceGroupName, String automationAccountName, UUID jobScheduleId) { deleteWithServiceResponseAsync(resourceGroupName, automationAccountName, jobScheduleId).toBlocking().single().body(); }
java
public void delete(String resourceGroupName, String automationAccountName, UUID jobScheduleId) { deleteWithServiceResponseAsync(resourceGroupName, automationAccountName, jobScheduleId).toBlocking().single().body(); }
[ "public", "void", "delete", "(", "String", "resourceGroupName", ",", "String", "automationAccountName", ",", "UUID", "jobScheduleId", ")", "{", "deleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "automationAccountName", ",", "jobScheduleId", ")", ".", "toB...
Delete the job schedule identified by job schedule name. @param resourceGroupName Name of an Azure Resource group. @param automationAccountName The name of the automation account. @param jobScheduleId The job schedule name. @throws IllegalArgumentException thrown if parameters fail the validation @throws ErrorResponse...
[ "Delete", "the", "job", "schedule", "identified", "by", "job", "schedule", "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/JobSchedulesInner.java#L98-L100
47,665
Azure/azure-sdk-for-java
applicationinsights/resource-manager/v2015_05_01/src/main/java/com/microsoft/azure/management/applicationinsights/v2015_05_01/implementation/ComponentsInner.java
ComponentsInner.getByResourceGroupAsync
public Observable<ApplicationInsightsComponentInner> getByResourceGroupAsync(String resourceGroupName, String resourceName) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<ApplicationInsightsComponentInner>, ApplicationInsightsComponentInner>() ...
java
public Observable<ApplicationInsightsComponentInner> getByResourceGroupAsync(String resourceGroupName, String resourceName) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<ApplicationInsightsComponentInner>, ApplicationInsightsComponentInner>() ...
[ "public", "Observable", "<", "ApplicationInsightsComponentInner", ">", "getByResourceGroupAsync", "(", "String", "resourceGroupName", ",", "String", "resourceName", ")", "{", "return", "getByResourceGroupWithServiceResponseAsync", "(", "resourceGroupName", ",", "resourceName", ...
Returns an 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 ApplicationInsightsComponentInner obje...
[ "Returns", "an", "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/ComponentsInner.java#L457-L464
47,666
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/Validator.java
Validator.validate
public static void validate(Object parameter) { // Validation of top level payload is done outside if (parameter == null) { return; } Class<?> type = parameter.getClass(); if (type == Double.class || type == Float.class || type == Long...
java
public static void validate(Object parameter) { // Validation of top level payload is done outside if (parameter == null) { return; } Class<?> type = parameter.getClass(); if (type == Double.class || type == Float.class || type == Long...
[ "public", "static", "void", "validate", "(", "Object", "parameter", ")", "{", "// Validation of top level payload is done outside", "if", "(", "parameter", "==", "null", ")", "{", "return", ";", "}", "Class", "<", "?", ">", "type", "=", "parameter", ".", "getC...
Validates a user provided required parameter to be not null. An {@link IllegalArgumentException} is thrown if a property fails the validation. @param parameter the parameter to validate @throws IllegalArgumentException thrown when the Validator determines the argument is invalid
[ "Validates", "a", "user", "provided", "required", "parameter", "to", "be", "not", "null", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/Validator.java#L36-L73
47,667
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/DatabasesInner.java
DatabasesInner.getAsync
public Observable<DatabaseInner> getAsync(String resourceGroupName, String serverName, String databaseName, String expand) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName, expand).map(new Func1<ServiceResponse<DatabaseInner>, DatabaseInner>() { @Override ...
java
public Observable<DatabaseInner> getAsync(String resourceGroupName, String serverName, String databaseName, String expand) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName, expand).map(new Func1<ServiceResponse<DatabaseInner>, DatabaseInner>() { @Override ...
[ "public", "Observable", "<", "DatabaseInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "databaseName", ",", "String", "expand", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", ...
Gets a database. @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 to be retrieved. @param expand A comma separated list ...
[ "Gets", "a", "database", "." ]
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/DatabasesInner.java#L1089-L1096
47,668
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/DatabasesInner.java
DatabasesInner.listByServer
public List<DatabaseInner> listByServer(String resourceGroupName, String serverName, String expand, String filter) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName, expand, filter).toBlocking().single().body(); }
java
public List<DatabaseInner> listByServer(String resourceGroupName, String serverName, String expand, String filter) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName, expand, filter).toBlocking().single().body(); }
[ "public", "List", "<", "DatabaseInner", ">", "listByServer", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "expand", ",", "String", "filter", ")", "{", "return", "listByServerWithServiceResponseAsync", "(", "resourceGroupName", ",", ...
Returns a list of databases in a 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. @param expand A comma separated list of child objects to expand in the resp...
[ "Returns", "a", "list", "of", "databases", "in", "a", "server", "." ]
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/DatabasesInner.java#L1243-L1245
47,669
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/JobExecutionsInner.java
JobExecutionsInner.get
public JobExecutionInner get(String resourceGroupName, String serverName, String jobAgentName, String jobName, UUID jobExecutionId) { return getWithServiceResponseAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId).toBlocking().single().body(); }
java
public JobExecutionInner get(String resourceGroupName, String serverName, String jobAgentName, String jobName, UUID jobExecutionId) { return getWithServiceResponseAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId).toBlocking().single().body(); }
[ "public", "JobExecutionInner", "get", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "jobAgentName", ",", "String", "jobName", ",", "UUID", "jobExecutionId", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ...
Gets a job execution. @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 jobAgentName The name of the job agent. @param jobName The name of the job. @param jobE...
[ "Gets", "a", "job", "execution", "." ]
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/JobExecutionsInner.java#L1019-L1021
47,670
Azure/azure-sdk-for-java
datalakestore/resource-manager/v2016_11_01/src/main/java/com/microsoft/azure/management/datalakestore/v2016_11_01/implementation/VirtualNetworkRulesInner.java
VirtualNetworkRulesInner.getAsync
public Observable<VirtualNetworkRuleInner> getAsync(String resourceGroupName, String accountName, String virtualNetworkRuleName) { return getWithServiceResponseAsync(resourceGroupName, accountName, virtualNetworkRuleName).map(new Func1<ServiceResponse<VirtualNetworkRuleInner>, VirtualNetworkRuleInner>() { ...
java
public Observable<VirtualNetworkRuleInner> getAsync(String resourceGroupName, String accountName, String virtualNetworkRuleName) { return getWithServiceResponseAsync(resourceGroupName, accountName, virtualNetworkRuleName).map(new Func1<ServiceResponse<VirtualNetworkRuleInner>, VirtualNetworkRuleInner>() { ...
[ "public", "Observable", "<", "VirtualNetworkRuleInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "accountName", ",", "String", "virtualNetworkRuleName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "accountNa...
Gets the specified Data Lake Store virtual network rule. @param resourceGroupName The name of the Azure resource group. @param accountName The name of the Data Lake Store account. @param virtualNetworkRuleName The name of the virtual network rule to retrieve. @throws IllegalArgumentException thrown if parameters fail ...
[ "Gets", "the", "specified", "Data", "Lake", "Store", "virtual", "network", "rule", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/datalakestore/resource-manager/v2016_11_01/src/main/java/com/microsoft/azure/management/datalakestore/v2016_11_01/implementation/VirtualNetworkRulesInner.java#L355-L362
47,671
Azure/azure-sdk-for-java
containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/implementation/BuildsInner.java
BuildsInner.cancelAsync
public Observable<Void> cancelAsync(String resourceGroupName, String registryName, String buildId) { return cancelWithServiceResponseAsync(resourceGroupName, registryName, buildId).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) {...
java
public Observable<Void> cancelAsync(String resourceGroupName, String registryName, String buildId) { return cancelWithServiceResponseAsync(resourceGroupName, registryName, buildId).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) {...
[ "public", "Observable", "<", "Void", ">", "cancelAsync", "(", "String", "resourceGroupName", ",", "String", "registryName", ",", "String", "buildId", ")", "{", "return", "cancelWithServiceResponseAsync", "(", "resourceGroupName", ",", "registryName", ",", "buildId", ...
Cancel an existing build. @param resourceGroupName The name of the resource group to which the container registry belongs. @param registryName The name of the container registry. @param buildId The build ID. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable for the reques...
[ "Cancel", "an", "existing", "build", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/implementation/BuildsInner.java#L911-L918
47,672
Azure/azure-sdk-for-java
common/azure-common-mgmt/src/main/java/com/azure/common/mgmt/PagedList.java
PagedList.loadNextPage
public void loadNextPage() { this.currentPage = cachedPage; cachedPage = null; this.items.addAll(currentPage.items()); cachePage(currentPage.nextPageLink()); }
java
public void loadNextPage() { this.currentPage = cachedPage; cachedPage = null; this.items.addAll(currentPage.items()); cachePage(currentPage.nextPageLink()); }
[ "public", "void", "loadNextPage", "(", ")", "{", "this", ".", "currentPage", "=", "cachedPage", ";", "cachedPage", "=", "null", ";", "this", ".", "items", ".", "addAll", "(", "currentPage", ".", "items", "(", ")", ")", ";", "cachePage", "(", "currentPage...
Loads a page from next page link. The exceptions are wrapped into Java Runtime exceptions.
[ "Loads", "a", "page", "from", "next", "page", "link", ".", "The", "exceptions", "are", "wrapped", "into", "Java", "Runtime", "exceptions", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common-mgmt/src/main/java/com/azure/common/mgmt/PagedList.java#L97-L102
47,673
Azure/azure-sdk-for-java
common/azure-common-mgmt/src/main/java/com/azure/common/mgmt/PagedList.java
PagedList.setCurrentPage
protected void setCurrentPage(Page<E> currentPage) { this.currentPage = currentPage; List<E> retrievedItems = currentPage.items(); if (retrievedItems != null) { items.addAll(retrievedItems); } cachePage(currentPage.nextPageLink()); }
java
protected void setCurrentPage(Page<E> currentPage) { this.currentPage = currentPage; List<E> retrievedItems = currentPage.items(); if (retrievedItems != null) { items.addAll(retrievedItems); } cachePage(currentPage.nextPageLink()); }
[ "protected", "void", "setCurrentPage", "(", "Page", "<", "E", ">", "currentPage", ")", "{", "this", ".", "currentPage", "=", "currentPage", ";", "List", "<", "E", ">", "retrievedItems", "=", "currentPage", ".", "items", "(", ")", ";", "if", "(", "retriev...
Sets the current page. @param currentPage the current page.
[ "Sets", "the", "current", "page", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common-mgmt/src/main/java/com/azure/common/mgmt/PagedList.java#L127-L134
47,674
Azure/azure-sdk-for-java
eventgrid/data-plane/src/main/java/com/microsoft/azure/eventgrid/customization/EventGridSubscriber.java
EventGridSubscriber.putCustomEventMapping
@Beta public void putCustomEventMapping(final String eventType, final Type eventDataType) { if (eventType == null || eventType.isEmpty()) { throw new IllegalArgumentException("eventType parameter is required and cannot be null or empty"); } if (eventDataType == null) { ...
java
@Beta public void putCustomEventMapping(final String eventType, final Type eventDataType) { if (eventType == null || eventType.isEmpty()) { throw new IllegalArgumentException("eventType parameter is required and cannot be null or empty"); } if (eventDataType == null) { ...
[ "@", "Beta", "public", "void", "putCustomEventMapping", "(", "final", "String", "eventType", ",", "final", "Type", "eventDataType", ")", "{", "if", "(", "eventType", "==", "null", "||", "eventType", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "Ille...
Add a custom event mapping. If a mapping with same eventType exists then the old eventDataType is replaced by the specified eventDataType. @param eventType the event type name. @param eventDataType type of the Java model that the event type name mapped to.
[ "Add", "a", "custom", "event", "mapping", ".", "If", "a", "mapping", "with", "same", "eventType", "exists", "then", "the", "old", "eventDataType", "is", "replaced", "by", "the", "specified", "eventDataType", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/eventgrid/data-plane/src/main/java/com/microsoft/azure/eventgrid/customization/EventGridSubscriber.java#L52-L61
47,675
Azure/azure-sdk-for-java
eventgrid/data-plane/src/main/java/com/microsoft/azure/eventgrid/customization/EventGridSubscriber.java
EventGridSubscriber.getCustomEventMapping
@Beta public Type getCustomEventMapping(final String eventType) { if (!containsCustomEventMappingFor(eventType)) { return null; } else { return this.eventTypeToEventDataMapping.get(canonicalizeEventType(eventType)); } }
java
@Beta public Type getCustomEventMapping(final String eventType) { if (!containsCustomEventMappingFor(eventType)) { return null; } else { return this.eventTypeToEventDataMapping.get(canonicalizeEventType(eventType)); } }
[ "@", "Beta", "public", "Type", "getCustomEventMapping", "(", "final", "String", "eventType", ")", "{", "if", "(", "!", "containsCustomEventMappingFor", "(", "eventType", ")", ")", "{", "return", "null", ";", "}", "else", "{", "return", "this", ".", "eventTyp...
Get type of the Java model that is mapped to the given eventType. @param eventType the event type name. @return type of the Java model if mapping exists, null otherwise.
[ "Get", "type", "of", "the", "Java", "model", "that", "is", "mapped", "to", "the", "given", "eventType", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/eventgrid/data-plane/src/main/java/com/microsoft/azure/eventgrid/customization/EventGridSubscriber.java#L69-L76
47,676
Azure/azure-sdk-for-java
eventgrid/data-plane/src/main/java/com/microsoft/azure/eventgrid/customization/EventGridSubscriber.java
EventGridSubscriber.removeCustomEventMapping
@Beta public boolean removeCustomEventMapping(final String eventType) { if (!containsCustomEventMappingFor(eventType)) { return false; } else { this.eventTypeToEventDataMapping.remove(canonicalizeEventType(eventType)); return true; } }
java
@Beta public boolean removeCustomEventMapping(final String eventType) { if (!containsCustomEventMappingFor(eventType)) { return false; } else { this.eventTypeToEventDataMapping.remove(canonicalizeEventType(eventType)); return true; } }
[ "@", "Beta", "public", "boolean", "removeCustomEventMapping", "(", "final", "String", "eventType", ")", "{", "if", "(", "!", "containsCustomEventMappingFor", "(", "eventType", ")", ")", "{", "return", "false", ";", "}", "else", "{", "this", ".", "eventTypeToEv...
Removes the mapping with the given eventType. @param eventType the event type name. @return true if the mapping exists and removed, false if mapping does not exists.
[ "Removes", "the", "mapping", "with", "the", "given", "eventType", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/eventgrid/data-plane/src/main/java/com/microsoft/azure/eventgrid/customization/EventGridSubscriber.java#L92-L100
47,677
Azure/azure-sdk-for-java
eventgrid/data-plane/src/main/java/com/microsoft/azure/eventgrid/customization/EventGridSubscriber.java
EventGridSubscriber.containsCustomEventMappingFor
@Beta public boolean containsCustomEventMappingFor(final String eventType) { if (eventType == null || eventType.isEmpty()) { return false; } else { return this.eventTypeToEventDataMapping.containsKey(canonicalizeEventType(eventType)); } }
java
@Beta public boolean containsCustomEventMappingFor(final String eventType) { if (eventType == null || eventType.isEmpty()) { return false; } else { return this.eventTypeToEventDataMapping.containsKey(canonicalizeEventType(eventType)); } }
[ "@", "Beta", "public", "boolean", "containsCustomEventMappingFor", "(", "final", "String", "eventType", ")", "{", "if", "(", "eventType", "==", "null", "||", "eventType", ".", "isEmpty", "(", ")", ")", "{", "return", "false", ";", "}", "else", "{", "return...
Checks if an event mapping with the given eventType exists. @param eventType the event type name. @return true if the mapping exists, false otherwise.
[ "Checks", "if", "an", "event", "mapping", "with", "the", "given", "eventType", "exists", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/eventgrid/data-plane/src/main/java/com/microsoft/azure/eventgrid/customization/EventGridSubscriber.java#L108-L115
47,678
Azure/azure-sdk-for-java
eventgrid/data-plane/src/main/java/com/microsoft/azure/eventgrid/customization/EventGridSubscriber.java
EventGridSubscriber.deserializeEventGridEvents
@Beta public EventGridEvent[] deserializeEventGridEvents(final String requestContent, final SerializerAdapter<ObjectMapper> serializerAdapter) throws IOException { EventGridEvent[] eventGridEvents = serializerAdapter.<EventGridEvent[]>deserialize(requestContent, EventGridEvent[].class); for (EventGr...
java
@Beta public EventGridEvent[] deserializeEventGridEvents(final String requestContent, final SerializerAdapter<ObjectMapper> serializerAdapter) throws IOException { EventGridEvent[] eventGridEvents = serializerAdapter.<EventGridEvent[]>deserialize(requestContent, EventGridEvent[].class); for (EventGr...
[ "@", "Beta", "public", "EventGridEvent", "[", "]", "deserializeEventGridEvents", "(", "final", "String", "requestContent", ",", "final", "SerializerAdapter", "<", "ObjectMapper", ">", "serializerAdapter", ")", "throws", "IOException", "{", "EventGridEvent", "[", "]", ...
De-serialize the events in the given requested content using the provided de-serializer. @param requestContent the request content as string. @param serializerAdapter the de-serializer. @return de-serialized events. @throws IOException
[ "De", "-", "serialize", "the", "events", "in", "the", "given", "requested", "content", "using", "the", "provided", "de", "-", "serializer", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/eventgrid/data-plane/src/main/java/com/microsoft/azure/eventgrid/customization/EventGridSubscriber.java#L138-L162
47,679
Azure/azure-sdk-for-java
applicationinsights/resource-manager/v2015_05_01/src/main/java/com/microsoft/azure/management/applicationinsights/v2015_05_01/implementation/ComponentAvailableFeaturesInner.java
ComponentAvailableFeaturesInner.getAsync
public Observable<ApplicationInsightsComponentAvailableFeaturesInner> getAsync(String resourceGroupName, String resourceName) { return getWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<ApplicationInsightsComponentAvailableFeaturesInner>, ApplicationInsightsComponentAvail...
java
public Observable<ApplicationInsightsComponentAvailableFeaturesInner> getAsync(String resourceGroupName, String resourceName) { return getWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<ApplicationInsightsComponentAvailableFeaturesInner>, ApplicationInsightsComponentAvail...
[ "public", "Observable", "<", "ApplicationInsightsComponentAvailableFeaturesInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "resourceName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "resourceName", ")", ".",...
Returns all available features 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 Application...
[ "Returns", "all", "available", "features", "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/ComponentAvailableFeaturesInner.java#L95-L102
47,680
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/RestorableDroppedDatabasesInner.java
RestorableDroppedDatabasesInner.listByServerAsync
public Observable<List<RestorableDroppedDatabaseInner>> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<RestorableDroppedDatabaseInner>>, List<RestorableDroppedDatabaseInner>>() { ...
java
public Observable<List<RestorableDroppedDatabaseInner>> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<RestorableDroppedDatabaseInner>>, List<RestorableDroppedDatabaseInner>>() { ...
[ "public", "Observable", "<", "List", "<", "RestorableDroppedDatabaseInner", ">", ">", "listByServerAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ")", "{", "return", "listByServerWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverNa...
Gets a list of deleted databases that can be restored. @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 th...
[ "Gets", "a", "list", "of", "deleted", "databases", "that", "can", "be", "restored", "." ]
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/RestorableDroppedDatabasesInner.java#L193-L200
47,681
Azure/azure-sdk-for-java
cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/ComputerVisionManager.java
ComputerVisionManager.authenticate
public static ComputerVisionClient authenticate(ServiceClientCredentials credentials, String endpoint) { return authenticate("https://{endpoint}/vision/v2.0/", credentials) .withEndpoint(endpoint); }
java
public static ComputerVisionClient authenticate(ServiceClientCredentials credentials, String endpoint) { return authenticate("https://{endpoint}/vision/v2.0/", credentials) .withEndpoint(endpoint); }
[ "public", "static", "ComputerVisionClient", "authenticate", "(", "ServiceClientCredentials", "credentials", ",", "String", "endpoint", ")", "{", "return", "authenticate", "(", "\"https://{endpoint}/vision/v2.0/\"", ",", "credentials", ")", ".", "withEndpoint", "(", "endpo...
Initializes an instance of Computer Vision API client. @param credentials the management credentials for Azure @param endpoint Supported Cognitive Services endpoints. @return the Computer Vision API client
[ "Initializes", "an", "instance", "of", "Computer", "Vision", "API", "client", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/cognitiveservices/data-plane/vision/computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/ComputerVisionManager.java#L69-L72
47,682
Azure/azure-sdk-for-java
cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ExamplesImpl.java
ExamplesImpl.deleteAsync
public Observable<OperationStatus> deleteAsync(UUID appId, String versionId, int exampleId) { return deleteWithServiceResponseAsync(appId, versionId, exampleId).map(new Func1<ServiceResponse<OperationStatus>, OperationStatus>() { @Override public OperationStatus call(ServiceResponse<Oper...
java
public Observable<OperationStatus> deleteAsync(UUID appId, String versionId, int exampleId) { return deleteWithServiceResponseAsync(appId, versionId, exampleId).map(new Func1<ServiceResponse<OperationStatus>, OperationStatus>() { @Override public OperationStatus call(ServiceResponse<Oper...
[ "public", "Observable", "<", "OperationStatus", ">", "deleteAsync", "(", "UUID", "appId", ",", "String", "versionId", ",", "int", "exampleId", ")", "{", "return", "deleteWithServiceResponseAsync", "(", "appId", ",", "versionId", ",", "exampleId", ")", ".", "map"...
Deletes the labeled example with the specified ID. @param appId The application ID. @param versionId The version ID. @param exampleId The example ID. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the OperationStatus object
[ "Deletes", "the", "labeled", "example", "with", "the", "specified", "ID", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ExamplesImpl.java#L487-L494
47,683
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/util/Base64Util.java
Base64Util.encodeURLWithoutPadding
public static byte[] encodeURLWithoutPadding(byte[] src) { return src == null ? null : Base64.getUrlEncoder().withoutPadding().encode(src); }
java
public static byte[] encodeURLWithoutPadding(byte[] src) { return src == null ? null : Base64.getUrlEncoder().withoutPadding().encode(src); }
[ "public", "static", "byte", "[", "]", "encodeURLWithoutPadding", "(", "byte", "[", "]", "src", ")", "{", "return", "src", "==", "null", "?", "null", ":", "Base64", ".", "getUrlEncoder", "(", ")", ".", "withoutPadding", "(", ")", ".", "encode", "(", "sr...
Encodes a byte array to base64 URL format. @param src the byte array to encode @return the base64 URL encoded bytes
[ "Encodes", "a", "byte", "array", "to", "base64", "URL", "format", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/util/Base64Util.java#L26-L28
47,684
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/util/Base64Util.java
Base64Util.encodeToString
public static String encodeToString(byte[] src) { return src == null ? null : Base64.getEncoder().encodeToString(src); }
java
public static String encodeToString(byte[] src) { return src == null ? null : Base64.getEncoder().encodeToString(src); }
[ "public", "static", "String", "encodeToString", "(", "byte", "[", "]", "src", ")", "{", "return", "src", "==", "null", "?", "null", ":", "Base64", ".", "getEncoder", "(", ")", ".", "encodeToString", "(", "src", ")", ";", "}" ]
Encodes a byte array to a base 64 string. @param src the byte array to encode @return the base64 encoded string
[ "Encodes", "a", "byte", "array", "to", "a", "base", "64", "string", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/util/Base64Util.java#L35-L37
47,685
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/util/Base64Util.java
Base64Util.decodeString
public static byte[] decodeString(String encoded) { return encoded == null ? null : Base64.getDecoder().decode(encoded); }
java
public static byte[] decodeString(String encoded) { return encoded == null ? null : Base64.getDecoder().decode(encoded); }
[ "public", "static", "byte", "[", "]", "decodeString", "(", "String", "encoded", ")", "{", "return", "encoded", "==", "null", "?", "null", ":", "Base64", ".", "getDecoder", "(", ")", ".", "decode", "(", "encoded", ")", ";", "}" ]
Decodes a base64 encoded string. @param encoded the string to decode @return the decoded byte array
[ "Decodes", "a", "base64", "encoded", "string", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/util/Base64Util.java#L62-L64
47,686
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/DatabaseThreatDetectionPoliciesInner.java
DatabaseThreatDetectionPoliciesInner.getAsync
public Observable<DatabaseSecurityAlertPolicyInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<DatabaseSecurityAlertPolicyInner>, DatabaseSecurityAlertPolicyInner>() { ...
java
public Observable<DatabaseSecurityAlertPolicyInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<DatabaseSecurityAlertPolicyInner>, DatabaseSecurityAlertPolicyInner>() { ...
[ "public", "Observable", "<", "DatabaseSecurityAlertPolicyInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "databaseName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName"...
Gets a database's threat detection 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 for which database Threat De...
[ "Gets", "a", "database", "s", "threat", "detection", "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/DatabaseThreatDetectionPoliciesInner.java#L105-L112
47,687
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/DatabaseThreatDetectionPoliciesInner.java
DatabaseThreatDetectionPoliciesInner.createOrUpdateAsync
public Observable<DatabaseSecurityAlertPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseSecurityAlertPolicyInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, databaseName, parameters).map(new Func1<ServiceRes...
java
public Observable<DatabaseSecurityAlertPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseSecurityAlertPolicyInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, databaseName, parameters).map(new Func1<ServiceRes...
[ "public", "Observable", "<", "DatabaseSecurityAlertPolicyInner", ">", "createOrUpdateAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "databaseName", ",", "DatabaseSecurityAlertPolicyInner", "parameters", ")", "{", "return", "createOrU...
Creates or updates a database's threat detection 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 for which data...
[ "Creates", "or", "updates", "a", "database", "s", "threat", "detection", "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/DatabaseThreatDetectionPoliciesInner.java#L202-L209
47,688
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/util/TypeUtil.java
TypeUtil.getAllClasses
public static List<Class<?>> getAllClasses(Class<?> clazz) { List<Class<?>> types = new ArrayList<>(); while (clazz != null) { types.add(clazz); clazz = clazz.getSuperclass(); } return types; }
java
public static List<Class<?>> getAllClasses(Class<?> clazz) { List<Class<?>> types = new ArrayList<>(); while (clazz != null) { types.add(clazz); clazz = clazz.getSuperclass(); } return types; }
[ "public", "static", "List", "<", "Class", "<", "?", ">", ">", "getAllClasses", "(", "Class", "<", "?", ">", "clazz", ")", "{", "List", "<", "Class", "<", "?", ">", ">", "types", "=", "new", "ArrayList", "<>", "(", ")", ";", "while", "(", "clazz",...
Find all super classes including provided class. @param clazz the raw class to find super types for @return the list of super classes
[ "Find", "all", "super", "classes", "including", "provided", "class", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/util/TypeUtil.java#L22-L29
47,689
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/util/TypeUtil.java
TypeUtil.getTypeArguments
public static Type[] getTypeArguments(Type type) { if (!(type instanceof ParameterizedType)) { return new Type[0]; } return ((ParameterizedType) type).getActualTypeArguments(); }
java
public static Type[] getTypeArguments(Type type) { if (!(type instanceof ParameterizedType)) { return new Type[0]; } return ((ParameterizedType) type).getActualTypeArguments(); }
[ "public", "static", "Type", "[", "]", "getTypeArguments", "(", "Type", "type", ")", "{", "if", "(", "!", "(", "type", "instanceof", "ParameterizedType", ")", ")", "{", "return", "new", "Type", "[", "0", "]", ";", "}", "return", "(", "(", "Parameterized...
Get the generic arguments for a type. @param type the type to get arguments @return the generic arguments, empty if type is not parameterized
[ "Get", "the", "generic", "arguments", "for", "a", "type", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/util/TypeUtil.java#L37-L42
47,690
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/util/TypeUtil.java
TypeUtil.getTypeArgument
public static Type getTypeArgument(Type type) { if (!(type instanceof ParameterizedType)) { return null; } return ((ParameterizedType) type).getActualTypeArguments()[0]; }
java
public static Type getTypeArgument(Type type) { if (!(type instanceof ParameterizedType)) { return null; } return ((ParameterizedType) type).getActualTypeArguments()[0]; }
[ "public", "static", "Type", "getTypeArgument", "(", "Type", "type", ")", "{", "if", "(", "!", "(", "type", "instanceof", "ParameterizedType", ")", ")", "{", "return", "null", ";", "}", "return", "(", "(", "ParameterizedType", ")", "type", ")", ".", "getA...
Get the generic argument, or the first if the type has more than one. @param type the type to get arguments @return the generic argument, null if type is not parameterized
[ "Get", "the", "generic", "argument", "or", "the", "first", "if", "the", "type", "has", "more", "than", "one", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/util/TypeUtil.java#L50-L55
47,691
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/util/TypeUtil.java
TypeUtil.getSuperType
public static Type getSuperType(Type type) { if (type instanceof ParameterizedType) { ParameterizedType parameterizedType = (ParameterizedType) type; Type genericSuperClass = ((Class<?>) parameterizedType.getRawType()).getGenericSuperclass(); if (genericSuperClass instanceof ...
java
public static Type getSuperType(Type type) { if (type instanceof ParameterizedType) { ParameterizedType parameterizedType = (ParameterizedType) type; Type genericSuperClass = ((Class<?>) parameterizedType.getRawType()).getGenericSuperclass(); if (genericSuperClass instanceof ...
[ "public", "static", "Type", "getSuperType", "(", "Type", "type", ")", "{", "if", "(", "type", "instanceof", "ParameterizedType", ")", "{", "ParameterizedType", "parameterizedType", "=", "(", "ParameterizedType", ")", "type", ";", "Type", "genericSuperClass", "=", ...
Get the super type for a given type. @param type the input type @return the direct super type
[ "Get", "the", "super", "type", "for", "a", "given", "type", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/util/TypeUtil.java#L77-L116
47,692
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/util/TypeUtil.java
TypeUtil.getSuperType
public static Type getSuperType(Type subType, Class<?> rawSuperType) { while (subType != null && getRawClass(subType) != rawSuperType) { subType = getSuperType(subType); } return subType; }
java
public static Type getSuperType(Type subType, Class<?> rawSuperType) { while (subType != null && getRawClass(subType) != rawSuperType) { subType = getSuperType(subType); } return subType; }
[ "public", "static", "Type", "getSuperType", "(", "Type", "subType", ",", "Class", "<", "?", ">", "rawSuperType", ")", "{", "while", "(", "subType", "!=", "null", "&&", "getRawClass", "(", "subType", ")", "!=", "rawSuperType", ")", "{", "subType", "=", "g...
Get the super type for a type in its super type chain, which has a raw class that matches the specified class. @param subType the sub type to find super type for @param rawSuperType the raw class for the super type @return the super type that matches the requirement
[ "Get", "the", "super", "type", "for", "a", "type", "in", "its", "super", "type", "chain", "which", "has", "a", "raw", "class", "that", "matches", "the", "specified", "class", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/util/TypeUtil.java#L126-L131
47,693
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/util/TypeUtil.java
TypeUtil.isTypeOrSubTypeOf
public static boolean isTypeOrSubTypeOf(Type subType, Type superType) { Class<?> sub = getRawClass(subType); Class<?> sup = getRawClass(superType); return sup.isAssignableFrom(sub); }
java
public static boolean isTypeOrSubTypeOf(Type subType, Type superType) { Class<?> sub = getRawClass(subType); Class<?> sup = getRawClass(superType); return sup.isAssignableFrom(sub); }
[ "public", "static", "boolean", "isTypeOrSubTypeOf", "(", "Type", "subType", ",", "Type", "superType", ")", "{", "Class", "<", "?", ">", "sub", "=", "getRawClass", "(", "subType", ")", ";", "Class", "<", "?", ">", "sup", "=", "getRawClass", "(", "superTyp...
Determines if a type is the same or a subtype for another type. @param subType the supposed sub type @param superType the supposed super type @return true if the first type is the same or a subtype for the second type
[ "Determines", "if", "a", "type", "is", "the", "same", "or", "a", "subtype", "for", "another", "type", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/util/TypeUtil.java#L140-L145
47,694
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/util/TypeUtil.java
TypeUtil.createParameterizedType
public static ParameterizedType createParameterizedType(Class<?> rawClass, Type... genericTypes) { return new ParameterizedType() { @Override public Type[] getActualTypeArguments() { return genericTypes; } @Override public Type getRawT...
java
public static ParameterizedType createParameterizedType(Class<?> rawClass, Type... genericTypes) { return new ParameterizedType() { @Override public Type[] getActualTypeArguments() { return genericTypes; } @Override public Type getRawT...
[ "public", "static", "ParameterizedType", "createParameterizedType", "(", "Class", "<", "?", ">", "rawClass", ",", "Type", "...", "genericTypes", ")", "{", "return", "new", "ParameterizedType", "(", ")", "{", "@", "Override", "public", "Type", "[", "]", "getAct...
Create a parameterized type from a raw class and its type arguments. @param rawClass the raw class to construct the parameterized type @param genericTypes the generic arguments @return the parameterized type
[ "Create", "a", "parameterized", "type", "from", "a", "raw", "class", "and", "its", "type", "arguments", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/util/TypeUtil.java#L154-L171
47,695
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/util/TypeUtil.java
TypeUtil.getRestResponseBodyType
public static Type getRestResponseBodyType(Type restResponseReturnType) { // if this type has type arguments, then we look at the last one to determine if it expects a body final Type[] restResponseTypeArguments = TypeUtil.getTypeArguments(restResponseReturnType); if (restResponseTypeArguments !...
java
public static Type getRestResponseBodyType(Type restResponseReturnType) { // if this type has type arguments, then we look at the last one to determine if it expects a body final Type[] restResponseTypeArguments = TypeUtil.getTypeArguments(restResponseReturnType); if (restResponseTypeArguments !...
[ "public", "static", "Type", "getRestResponseBodyType", "(", "Type", "restResponseReturnType", ")", "{", "// if this type has type arguments, then we look at the last one to determine if it expects a body", "final", "Type", "[", "]", "restResponseTypeArguments", "=", "TypeUtil", "."...
Returns the body type expected in the rest response. @param restResponseReturnType The RestResponse subtype containing the type arguments we are inspecting. @return The type of the body.
[ "Returns", "the", "body", "type", "expected", "in", "the", "rest", "response", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/util/TypeUtil.java#L190-L199
47,696
wstrange/GoogleAuth
src/main/java/com/warrenstrange/googleauth/GoogleAuthenticator.java
GoogleAuthenticator.calculateCode
int calculateCode(byte[] key, long tm) { // Allocating an array of bytes to represent the specified instant // of time. byte[] data = new byte[8]; long value = tm; // Converting the instant of time from the long representation to a // big-endian array of bytes (RFC42...
java
int calculateCode(byte[] key, long tm) { // Allocating an array of bytes to represent the specified instant // of time. byte[] data = new byte[8]; long value = tm; // Converting the instant of time from the long representation to a // big-endian array of bytes (RFC42...
[ "int", "calculateCode", "(", "byte", "[", "]", "key", ",", "long", "tm", ")", "{", "// Allocating an array of bytes to represent the specified instant", "// of time.", "byte", "[", "]", "data", "=", "new", "byte", "[", "8", "]", ";", "long", "value", "=", "tm"...
Calculates the verification code of the provided key at the specified instant of time using the algorithm specified in RFC 6238. @param key the secret key in binary format. @param tm the instant of time. @return the validation code for the provided key at the specified instant of time.
[ "Calculates", "the", "verification", "code", "of", "the", "provided", "key", "at", "the", "specified", "instant", "of", "time", "using", "the", "algorithm", "specified", "in", "RFC", "6238", "." ]
03f37333f8b3e411e10e63a7c85c4d2155929321
https://github.com/wstrange/GoogleAuth/blob/03f37333f8b3e411e10e63a7c85c4d2155929321/src/main/java/com/warrenstrange/googleauth/GoogleAuthenticator.java#L209-L270
47,697
wstrange/GoogleAuth
src/main/java/com/warrenstrange/googleauth/GoogleAuthenticator.java
GoogleAuthenticator.checkCode
private boolean checkCode( String secret, long code, long timestamp, int window) { byte[] decodedKey = decodeSecret(secret); // convert unix time into a 30 second "window" as specified by the // TOTP specification. Using Google's default inter...
java
private boolean checkCode( String secret, long code, long timestamp, int window) { byte[] decodedKey = decodeSecret(secret); // convert unix time into a 30 second "window" as specified by the // TOTP specification. Using Google's default inter...
[ "private", "boolean", "checkCode", "(", "String", "secret", ",", "long", "code", ",", "long", "timestamp", ",", "int", "window", ")", "{", "byte", "[", "]", "decodedKey", "=", "decodeSecret", "(", "secret", ")", ";", "// convert unix time into a 30 second \"wind...
This method implements the algorithm specified in RFC 6238 to check if a validation code is valid in a given instant of time for the given secret key. @param secret the Base32 encoded secret key. @param code the code to validate. @param timestamp the instant of time to use during the validation process. @param...
[ "This", "method", "implements", "the", "algorithm", "specified", "in", "RFC", "6238", "to", "check", "if", "a", "validation", "code", "is", "valid", "in", "a", "given", "instant", "of", "time", "for", "the", "given", "secret", "key", "." ]
03f37333f8b3e411e10e63a7c85c4d2155929321
https://github.com/wstrange/GoogleAuth/blob/03f37333f8b3e411e10e63a7c85c4d2155929321/src/main/java/com/warrenstrange/googleauth/GoogleAuthenticator.java#L289-L319
47,698
wstrange/GoogleAuth
src/main/java/com/warrenstrange/googleauth/GoogleAuthenticator.java
GoogleAuthenticator.generateScratchCode
private int generateScratchCode() { while (true) { byte[] scratchCodeBuffer = new byte[BYTES_PER_SCRATCH_CODE]; secureRandom.nextBytes(scratchCodeBuffer); int scratchCode = calculateScratchCode(scratchCodeBuffer); if (scratchCode != SCRATCH_CODE_INVA...
java
private int generateScratchCode() { while (true) { byte[] scratchCodeBuffer = new byte[BYTES_PER_SCRATCH_CODE]; secureRandom.nextBytes(scratchCodeBuffer); int scratchCode = calculateScratchCode(scratchCodeBuffer); if (scratchCode != SCRATCH_CODE_INVA...
[ "private", "int", "generateScratchCode", "(", ")", "{", "while", "(", "true", ")", "{", "byte", "[", "]", "scratchCodeBuffer", "=", "new", "byte", "[", "BYTES_PER_SCRATCH_CODE", "]", ";", "secureRandom", ".", "nextBytes", "(", "scratchCodeBuffer", ")", ";", ...
This method creates a new random byte buffer from which a new scratch code is generated. This function is invoked if a scratch code generated from the main buffer is invalid because it does not satisfy the scratch code restrictions. @return A valid scratch code.
[ "This", "method", "creates", "a", "new", "random", "byte", "buffer", "from", "which", "a", "new", "scratch", "code", "is", "generated", ".", "This", "function", "is", "invoked", "if", "a", "scratch", "code", "generated", "from", "the", "main", "buffer", "i...
03f37333f8b3e411e10e63a7c85c4d2155929321
https://github.com/wstrange/GoogleAuth/blob/03f37333f8b3e411e10e63a7c85c4d2155929321/src/main/java/com/warrenstrange/googleauth/GoogleAuthenticator.java#L452-L466
47,699
wstrange/GoogleAuth
src/main/java/com/warrenstrange/googleauth/GoogleAuthenticator.java
GoogleAuthenticator.calculateSecretKey
private String calculateSecretKey(byte[] secretKey) { switch (config.getKeyRepresentation()) { case BASE32: return new Base32().encodeToString(secretKey); case BASE64: return new Base64().encodeToString(secretKey); default: ...
java
private String calculateSecretKey(byte[] secretKey) { switch (config.getKeyRepresentation()) { case BASE32: return new Base32().encodeToString(secretKey); case BASE64: return new Base64().encodeToString(secretKey); default: ...
[ "private", "String", "calculateSecretKey", "(", "byte", "[", "]", "secretKey", ")", "{", "switch", "(", "config", ".", "getKeyRepresentation", "(", ")", ")", "{", "case", "BASE32", ":", "return", "new", "Base32", "(", ")", ".", "encodeToString", "(", "secr...
This method calculates the secret key given a random byte buffer. @param secretKey a random byte buffer. @return the secret key.
[ "This", "method", "calculates", "the", "secret", "key", "given", "a", "random", "byte", "buffer", "." ]
03f37333f8b3e411e10e63a7c85c4d2155929321
https://github.com/wstrange/GoogleAuth/blob/03f37333f8b3e411e10e63a7c85c4d2155929321/src/main/java/com/warrenstrange/googleauth/GoogleAuthenticator.java#L510-L521