id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
35,800
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaExceptionProcessor.java
MediaExceptionProcessor.processCatch
private ServiceException processCatch(ServiceException e) { log.warn(e.getMessage(), e.getCause()); return ServiceExceptionFactory.process("MediaServices", e); }
java
private ServiceException processCatch(ServiceException e) { log.warn(e.getMessage(), e.getCause()); return ServiceExceptionFactory.process("MediaServices", e); }
[ "private", "ServiceException", "processCatch", "(", "ServiceException", "e", ")", "{", "log", ".", "warn", "(", "e", ".", "getMessage", "(", ")", ",", "e", ".", "getCause", "(", ")", ")", ";", "return", "ServiceExceptionFactory", ".", "process", "(", "\"Me...
Process a catch. @param e the e @return the service exception
[ "Process", "a", "catch", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/MediaExceptionProcessor.java#L123-L126
35,801
Azure/azure-sdk-for-java
automation/resource-manager/v2015_10_31/src/main/java/com/microsoft/azure/management/automation/v2015_10_31/implementation/DscCompilationJobsInner.java
DscCompilationJobsInner.listByAutomationAccountNextAsync
public Observable<Page<DscCompilationJobInner>> listByAutomationAccountNextAsync(final String nextPageLink) { return listByAutomationAccountNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<DscCompilationJobInner>>, Page<DscCompilationJobInner>>() { @Override public Page<DscCompilationJobInner> call(ServiceResponse<Page<DscCompilationJobInner>> response) { return response.body(); } }); }
java
public Observable<Page<DscCompilationJobInner>> listByAutomationAccountNextAsync(final String nextPageLink) { return listByAutomationAccountNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<DscCompilationJobInner>>, Page<DscCompilationJobInner>>() { @Override public Page<DscCompilationJobInner> call(ServiceResponse<Page<DscCompilationJobInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "Page", "<", "DscCompilationJobInner", ">", ">", "listByAutomationAccountNextAsync", "(", "final", "String", "nextPageLink", ")", "{", "return", "listByAutomationAccountNextWithServiceResponseAsync", "(", "nextPageLink", ")", ".", "map", "(", ...
Retrieve a list of dsc compilation jobs. @param nextPageLink The NextLink from the previous successful call to List operation. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the PagedList&lt;DscCompilationJobInner&gt; object
[ "Retrieve", "a", "list", "of", "dsc", "compilation", "jobs", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/automation/resource-manager/v2015_10_31/src/main/java/com/microsoft/azure/management/automation/v2015_10_31/implementation/DscCompilationJobsInner.java#L663-L671
35,802
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/ProtectionPoliciesInner.java
ProtectionPoliciesInner.delete
public void delete(String vaultName, String resourceGroupName, String policyName) { deleteWithServiceResponseAsync(vaultName, resourceGroupName, policyName).toBlocking().single().body(); }
java
public void delete(String vaultName, String resourceGroupName, String policyName) { deleteWithServiceResponseAsync(vaultName, resourceGroupName, policyName).toBlocking().single().body(); }
[ "public", "void", "delete", "(", "String", "vaultName", ",", "String", "resourceGroupName", ",", "String", "policyName", ")", "{", "deleteWithServiceResponseAsync", "(", "vaultName", ",", "resourceGroupName", ",", "policyName", ")", ".", "toBlocking", "(", ")", "....
Deletes specified backup policy from your Recovery Services Vault. This is an asynchronous operation. Status of the operation can be fetched using GetPolicyOperationResult API. @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 policyName Backup policy to be deleted. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Deletes", "specified", "backup", "policy", "from", "your", "Recovery", "Services", "Vault", ".", "This", "is", "an", "asynchronous", "operation", ".", "Status", "of", "the", "operation", "can", "be", "fetched", "using", "GetPolicyOperationResult", "API", "." ]
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/ProtectionPoliciesInner.java#L273-L275
35,803
Azure/azure-sdk-for-java
network/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/network/v2018_07_01/implementation/PacketCapturesInner.java
PacketCapturesInner.beginDelete
public void beginDelete(String resourceGroupName, String networkWatcherName, String packetCaptureName) { beginDeleteWithServiceResponseAsync(resourceGroupName, networkWatcherName, packetCaptureName).toBlocking().single().body(); }
java
public void beginDelete(String resourceGroupName, String networkWatcherName, String packetCaptureName) { beginDeleteWithServiceResponseAsync(resourceGroupName, networkWatcherName, packetCaptureName).toBlocking().single().body(); }
[ "public", "void", "beginDelete", "(", "String", "resourceGroupName", ",", "String", "networkWatcherName", ",", "String", "packetCaptureName", ")", "{", "beginDeleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "networkWatcherName", ",", "packetCaptureName", ")",...
Deletes the specified packet capture session. @param resourceGroupName The name of the resource group. @param networkWatcherName The name of the network watcher. @param packetCaptureName The name of the packet capture session. @throws IllegalArgumentException thrown if parameters fail the validation @throws ErrorResponseException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Deletes", "the", "specified", "packet", "capture", "session", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/network/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/network/v2018_07_01/implementation/PacketCapturesInner.java#L461-L463
35,804
Azure/azure-sdk-for-java
network/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/network/v2018_07_01/implementation/PacketCapturesInner.java
PacketCapturesInner.beginStop
public void beginStop(String resourceGroupName, String networkWatcherName, String packetCaptureName) { beginStopWithServiceResponseAsync(resourceGroupName, networkWatcherName, packetCaptureName).toBlocking().single().body(); }
java
public void beginStop(String resourceGroupName, String networkWatcherName, String packetCaptureName) { beginStopWithServiceResponseAsync(resourceGroupName, networkWatcherName, packetCaptureName).toBlocking().single().body(); }
[ "public", "void", "beginStop", "(", "String", "resourceGroupName", ",", "String", "networkWatcherName", ",", "String", "packetCaptureName", ")", "{", "beginStopWithServiceResponseAsync", "(", "resourceGroupName", ",", "networkWatcherName", ",", "packetCaptureName", ")", "...
Stops a specified packet capture session. @param resourceGroupName The name of the resource group. @param networkWatcherName The name of the network watcher. @param packetCaptureName The name of the packet capture session. @throws IllegalArgumentException thrown if parameters fail the validation @throws ErrorResponseException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Stops", "a", "specified", "packet", "capture", "session", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/network/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/network/v2018_07_01/implementation/PacketCapturesInner.java#L625-L627
35,805
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/ExtendedDatabaseBlobAuditingPoliciesInner.java
ExtendedDatabaseBlobAuditingPoliciesInner.getAsync
public Observable<ExtendedDatabaseBlobAuditingPolicyInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<ExtendedDatabaseBlobAuditingPolicyInner>, ExtendedDatabaseBlobAuditingPolicyInner>() { @Override public ExtendedDatabaseBlobAuditingPolicyInner call(ServiceResponse<ExtendedDatabaseBlobAuditingPolicyInner> response) { return response.body(); } }); }
java
public Observable<ExtendedDatabaseBlobAuditingPolicyInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<ExtendedDatabaseBlobAuditingPolicyInner>, ExtendedDatabaseBlobAuditingPolicyInner>() { @Override public ExtendedDatabaseBlobAuditingPolicyInner call(ServiceResponse<ExtendedDatabaseBlobAuditingPolicyInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "ExtendedDatabaseBlobAuditingPolicyInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "databaseName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "serv...
Gets an extended 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 IllegalArgumentException thrown if parameters fail the validation @return the observable to the ExtendedDatabaseBlobAuditingPolicyInner object
[ "Gets", "an", "extended", "database", "s", "blob", "auditing", "policy", "." ]
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/ExtendedDatabaseBlobAuditingPoliciesInner.java#L105-L112
35,806
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/ExtendedDatabaseBlobAuditingPoliciesInner.java
ExtendedDatabaseBlobAuditingPoliciesInner.createOrUpdateAsync
public Observable<ExtendedDatabaseBlobAuditingPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, ExtendedDatabaseBlobAuditingPolicyInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, databaseName, parameters).map(new Func1<ServiceResponse<ExtendedDatabaseBlobAuditingPolicyInner>, ExtendedDatabaseBlobAuditingPolicyInner>() { @Override public ExtendedDatabaseBlobAuditingPolicyInner call(ServiceResponse<ExtendedDatabaseBlobAuditingPolicyInner> response) { return response.body(); } }); }
java
public Observable<ExtendedDatabaseBlobAuditingPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, ExtendedDatabaseBlobAuditingPolicyInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, databaseName, parameters).map(new Func1<ServiceResponse<ExtendedDatabaseBlobAuditingPolicyInner>, ExtendedDatabaseBlobAuditingPolicyInner>() { @Override public ExtendedDatabaseBlobAuditingPolicyInner call(ServiceResponse<ExtendedDatabaseBlobAuditingPolicyInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "ExtendedDatabaseBlobAuditingPolicyInner", ">", "createOrUpdateAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "databaseName", ",", "ExtendedDatabaseBlobAuditingPolicyInner", "parameters", ")", "{", "return"...
Creates or updates an extended 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 parameters The extended database blob auditing policy. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the ExtendedDatabaseBlobAuditingPolicyInner object
[ "Creates", "or", "updates", "an", "extended", "database", "s", "blob", "auditing", "policy", "." ]
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/ExtendedDatabaseBlobAuditingPoliciesInner.java#L202-L209
35,807
Azure/azure-sdk-for-java
recoveryservices.backup/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/backup/v2016_06_01/implementation/ProtectableItemsInner.java
ProtectableItemsInner.listNextAsync
public Observable<Page<WorkloadProtectableItemResourceInner>> listNextAsync(final String nextPageLink) { return listNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<WorkloadProtectableItemResourceInner>>, Page<WorkloadProtectableItemResourceInner>>() { @Override public Page<WorkloadProtectableItemResourceInner> call(ServiceResponse<Page<WorkloadProtectableItemResourceInner>> response) { return response.body(); } }); }
java
public Observable<Page<WorkloadProtectableItemResourceInner>> listNextAsync(final String nextPageLink) { return listNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<WorkloadProtectableItemResourceInner>>, Page<WorkloadProtectableItemResourceInner>>() { @Override public Page<WorkloadProtectableItemResourceInner> call(ServiceResponse<Page<WorkloadProtectableItemResourceInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "Page", "<", "WorkloadProtectableItemResourceInner", ">", ">", "listNextAsync", "(", "final", "String", "nextPageLink", ")", "{", "return", "listNextWithServiceResponseAsync", "(", "nextPageLink", ")", ".", "map", "(", "new", "Func1", "<...
Based on the query filter and the pagination parameters, this operation provides a pageable list of objects within the subscription that can be protected. @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;WorkloadProtectableItemResourceInner&gt; object
[ "Based", "on", "the", "query", "filter", "and", "the", "pagination", "parameters", "this", "operation", "provides", "a", "pageable", "list", "of", "objects", "within", "the", "subscription", "that", "can", "be", "protected", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/recoveryservices.backup/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/backup/v2016_06_01/implementation/ProtectableItemsInner.java#L367-L375
35,808
Azure/azure-sdk-for-java
policy/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/implementation/PolicyAssignmentsInner.java
PolicyAssignmentsInner.listForResourceNextAsync
public Observable<Page<PolicyAssignmentInner>> listForResourceNextAsync(final String nextPageLink) { return listForResourceNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<PolicyAssignmentInner>>, Page<PolicyAssignmentInner>>() { @Override public Page<PolicyAssignmentInner> call(ServiceResponse<Page<PolicyAssignmentInner>> response) { return response.body(); } }); }
java
public Observable<Page<PolicyAssignmentInner>> listForResourceNextAsync(final String nextPageLink) { return listForResourceNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<PolicyAssignmentInner>>, Page<PolicyAssignmentInner>>() { @Override public Page<PolicyAssignmentInner> call(ServiceResponse<Page<PolicyAssignmentInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "Page", "<", "PolicyAssignmentInner", ">", ">", "listForResourceNextAsync", "(", "final", "String", "nextPageLink", ")", "{", "return", "listForResourceNextWithServiceResponseAsync", "(", "nextPageLink", ")", ".", "map", "(", "new", "Func1...
Gets policy assignments for a resource. @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;PolicyAssignmentInner&gt; object
[ "Gets", "policy", "assignments", "for", "a", "resource", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/policy/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/implementation/PolicyAssignmentsInner.java#L1519-L1527
35,809
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/Job.java
Job.get
public static EntityGetOperation<JobInfo> get(String jobId) { return new DefaultGetOperation<JobInfo>(ENTITY_SET, jobId, JobInfo.class); }
java
public static EntityGetOperation<JobInfo> get(String jobId) { return new DefaultGetOperation<JobInfo>(ENTITY_SET, jobId, JobInfo.class); }
[ "public", "static", "EntityGetOperation", "<", "JobInfo", ">", "get", "(", "String", "jobId", ")", "{", "return", "new", "DefaultGetOperation", "<", "JobInfo", ">", "(", "ENTITY_SET", ",", "jobId", ",", "JobInfo", ".", "class", ")", ";", "}" ]
Create an operation object that will get the state of the given job. @param jobId id of job to retrieve @return the get operation
[ "Create", "an", "operation", "object", "that", "will", "get", "the", "state", "of", "the", "given", "job", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/Job.java#L449-L452
35,810
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/RestorePointsInner.java
RestorePointsInner.listByDatabase
public List<RestorePointInner> listByDatabase(String resourceGroupName, String serverName, String databaseName) { return listByDatabaseWithServiceResponseAsync(resourceGroupName, serverName, databaseName).toBlocking().single().body(); }
java
public List<RestorePointInner> listByDatabase(String resourceGroupName, String serverName, String databaseName) { return listByDatabaseWithServiceResponseAsync(resourceGroupName, serverName, databaseName).toBlocking().single().body(); }
[ "public", "List", "<", "RestorePointInner", ">", "listByDatabase", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "databaseName", ")", "{", "return", "listByDatabaseWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ...
Gets a list of database restore points. @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 get available restore points. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @return the List&lt;RestorePointInner&gt; object if successful.
[ "Gets", "a", "list", "of", "database", "restore", "points", "." ]
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/RestorePointsInner.java#L72-L74
35,811
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/ServerAzureADAdministratorsInner.java
ServerAzureADAdministratorsInner.getAsync
public Observable<ServerAzureADAdministratorInner> getAsync(String resourceGroupName, String serverName) { return getWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<ServerAzureADAdministratorInner>, ServerAzureADAdministratorInner>() { @Override public ServerAzureADAdministratorInner call(ServiceResponse<ServerAzureADAdministratorInner> response) { return response.body(); } }); }
java
public Observable<ServerAzureADAdministratorInner> getAsync(String resourceGroupName, String serverName) { return getWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<ServerAzureADAdministratorInner>, ServerAzureADAdministratorInner>() { @Override public ServerAzureADAdministratorInner call(ServiceResponse<ServerAzureADAdministratorInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "ServerAzureADAdministratorInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ")", ".", "map", "(", "new...
Returns an server Administrator. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param serverName The name of the server. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the ServerAzureADAdministratorInner object
[ "Returns", "an", "server", "Administrator", "." ]
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/ServerAzureADAdministratorsInner.java#L455-L462
35,812
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/ServerAzureADAdministratorsInner.java
ServerAzureADAdministratorsInner.listByServerAsync
public Observable<List<ServerAzureADAdministratorInner>> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<ServerAzureADAdministratorInner>>, List<ServerAzureADAdministratorInner>>() { @Override public List<ServerAzureADAdministratorInner> call(ServiceResponse<List<ServerAzureADAdministratorInner>> response) { return response.body(); } }); }
java
public Observable<List<ServerAzureADAdministratorInner>> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<ServerAzureADAdministratorInner>>, List<ServerAzureADAdministratorInner>>() { @Override public List<ServerAzureADAdministratorInner> call(ServiceResponse<List<ServerAzureADAdministratorInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "List", "<", "ServerAzureADAdministratorInner", ">", ">", "listByServerAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ")", "{", "return", "listByServerWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverN...
Returns a list of server Administrators. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param serverName The name of the server. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the List&lt;ServerAzureADAdministratorInner&gt; object
[ "Returns", "a", "list", "of", "server", "Administrators", "." ]
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/ServerAzureADAdministratorsInner.java#L542-L549
35,813
Azure/azure-sdk-for-java
appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServicePlansInner.java
AppServicePlansInner.getByResourceGroupAsync
public Observable<AppServicePlanInner> getByResourceGroupAsync(String resourceGroupName, String name) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, name).map(new Func1<ServiceResponse<AppServicePlanInner>, AppServicePlanInner>() { @Override public AppServicePlanInner call(ServiceResponse<AppServicePlanInner> response) { return response.body(); } }); }
java
public Observable<AppServicePlanInner> getByResourceGroupAsync(String resourceGroupName, String name) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, name).map(new Func1<ServiceResponse<AppServicePlanInner>, AppServicePlanInner>() { @Override public AppServicePlanInner call(ServiceResponse<AppServicePlanInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "AppServicePlanInner", ">", "getByResourceGroupAsync", "(", "String", "resourceGroupName", ",", "String", "name", ")", "{", "return", "getByResourceGroupWithServiceResponseAsync", "(", "resourceGroupName", ",", "name", ")", ".", "map", "(", ...
Get an App Service plan. Get an App Service plan. @param resourceGroupName Name of the resource group to which the resource belongs. @param name Name of the App Service plan. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the AppServicePlanInner object
[ "Get", "an", "App", "Service", "plan", ".", "Get", "an", "App", "Service", "plan", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServicePlansInner.java#L610-L617
35,814
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/models/Attributes.java
Attributes.withNotBefore
public Attributes withNotBefore(DateTime notBefore) { if (notBefore == null) { this.notBefore = null; } else { this.notBefore = notBefore.toDateTime(DateTimeZone.UTC).getMillis() / 1000; } return this; }
java
public Attributes withNotBefore(DateTime notBefore) { if (notBefore == null) { this.notBefore = null; } else { this.notBefore = notBefore.toDateTime(DateTimeZone.UTC).getMillis() / 1000; } return this; }
[ "public", "Attributes", "withNotBefore", "(", "DateTime", "notBefore", ")", "{", "if", "(", "notBefore", "==", "null", ")", "{", "this", ".", "notBefore", "=", "null", ";", "}", "else", "{", "this", ".", "notBefore", "=", "notBefore", ".", "toDateTime", ...
Set the notBefore value. @param notBefore the notBefore value to set @return the Attributes object itself.
[ "Set", "the", "notBefore", "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/Attributes.java#L83-L90
35,815
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/models/Attributes.java
Attributes.withExpires
public Attributes withExpires(DateTime expires) { if (expires == null) { this.expires = null; } else { this.expires = expires.toDateTime(DateTimeZone.UTC).getMillis() / 1000; } return this; }
java
public Attributes withExpires(DateTime expires) { if (expires == null) { this.expires = null; } else { this.expires = expires.toDateTime(DateTimeZone.UTC).getMillis() / 1000; } return this; }
[ "public", "Attributes", "withExpires", "(", "DateTime", "expires", ")", "{", "if", "(", "expires", "==", "null", ")", "{", "this", ".", "expires", "=", "null", ";", "}", "else", "{", "this", ".", "expires", "=", "expires", ".", "toDateTime", "(", "Date...
Set the expires value. @param expires the expires value to set @return the Attributes object itself.
[ "Set", "the", "expires", "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/Attributes.java#L110-L117
35,816
Azure/azure-sdk-for-java
cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/DatabaseAccountsInner.java
DatabaseAccountsInner.getByResourceGroupAsync
public Observable<DatabaseAccountInner> getByResourceGroupAsync(String resourceGroupName, String accountName) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, accountName).map(new Func1<ServiceResponse<DatabaseAccountInner>, DatabaseAccountInner>() { @Override public DatabaseAccountInner call(ServiceResponse<DatabaseAccountInner> response) { return response.body(); } }); }
java
public Observable<DatabaseAccountInner> getByResourceGroupAsync(String resourceGroupName, String accountName) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, accountName).map(new Func1<ServiceResponse<DatabaseAccountInner>, DatabaseAccountInner>() { @Override public DatabaseAccountInner call(ServiceResponse<DatabaseAccountInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "DatabaseAccountInner", ">", "getByResourceGroupAsync", "(", "String", "resourceGroupName", ",", "String", "accountName", ")", "{", "return", "getByResourceGroupWithServiceResponseAsync", "(", "resourceGroupName", ",", "accountName", ")", ".", ...
Retrieves the properties of an existing Azure Cosmos DB database account. @param resourceGroupName Name of an Azure resource group. @param accountName Cosmos DB database account name. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the DatabaseAccountInner object
[ "Retrieves", "the", "properties", "of", "an", "existing", "Azure", "Cosmos", "DB", "database", "account", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/DatabaseAccountsInner.java#L212-L219
35,817
Azure/azure-sdk-for-java
cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/DatabaseAccountsInner.java
DatabaseAccountsInner.listByResourceGroupAsync
public Observable<Page<DatabaseAccountInner>> listByResourceGroupAsync(String resourceGroupName) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1<ServiceResponse<List<DatabaseAccountInner>>, Page<DatabaseAccountInner>>() { @Override public Page<DatabaseAccountInner> call(ServiceResponse<List<DatabaseAccountInner>> response) { PageImpl<DatabaseAccountInner> page = new PageImpl<>(); page.setItems(response.body()); return page; } }); }
java
public Observable<Page<DatabaseAccountInner>> listByResourceGroupAsync(String resourceGroupName) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1<ServiceResponse<List<DatabaseAccountInner>>, Page<DatabaseAccountInner>>() { @Override public Page<DatabaseAccountInner> call(ServiceResponse<List<DatabaseAccountInner>> response) { PageImpl<DatabaseAccountInner> page = new PageImpl<>(); page.setItems(response.body()); return page; } }); }
[ "public", "Observable", "<", "Page", "<", "DatabaseAccountInner", ">", ">", "listByResourceGroupAsync", "(", "String", "resourceGroupName", ")", "{", "return", "listByResourceGroupWithServiceResponseAsync", "(", "resourceGroupName", ")", ".", "map", "(", "new", "Func1",...
Lists all the Azure Cosmos DB database accounts available under the given resource group. @param resourceGroupName Name of an Azure resource group. @return the observable to the List&lt;DatabaseAccountInner&gt; object
[ "Lists", "all", "the", "Azure", "Cosmos", "DB", "database", "accounts", "available", "under", "the", "given", "resource", "group", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/DatabaseAccountsInner.java#L1049-L1058
35,818
Azure/azure-sdk-for-java
cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/DatabaseAccountsInner.java
DatabaseAccountsInner.listKeysAsync
public Observable<DatabaseAccountListKeysResultInner> listKeysAsync(String resourceGroupName, String accountName) { return listKeysWithServiceResponseAsync(resourceGroupName, accountName).map(new Func1<ServiceResponse<DatabaseAccountListKeysResultInner>, DatabaseAccountListKeysResultInner>() { @Override public DatabaseAccountListKeysResultInner call(ServiceResponse<DatabaseAccountListKeysResultInner> response) { return response.body(); } }); }
java
public Observable<DatabaseAccountListKeysResultInner> listKeysAsync(String resourceGroupName, String accountName) { return listKeysWithServiceResponseAsync(resourceGroupName, accountName).map(new Func1<ServiceResponse<DatabaseAccountListKeysResultInner>, DatabaseAccountListKeysResultInner>() { @Override public DatabaseAccountListKeysResultInner call(ServiceResponse<DatabaseAccountListKeysResultInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "DatabaseAccountListKeysResultInner", ">", "listKeysAsync", "(", "String", "resourceGroupName", ",", "String", "accountName", ")", "{", "return", "listKeysWithServiceResponseAsync", "(", "resourceGroupName", ",", "accountName", ")", ".", "map"...
Lists the access keys for the specified Azure Cosmos DB database account. @param resourceGroupName Name of an Azure resource group. @param accountName Cosmos DB database account name. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the DatabaseAccountListKeysResultInner object
[ "Lists", "the", "access", "keys", "for", "the", "specified", "Azure", "Cosmos", "DB", "database", "account", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/DatabaseAccountsInner.java#L1137-L1144
35,819
Azure/azure-sdk-for-java
eventgrid/resource-manager/v2018_09_15_preview/src/main/java/com/microsoft/azure/management/eventgrid/v2018_09_15_preview/implementation/DomainsInner.java
DomainsInner.listByResourceGroupAsync
public Observable<Page<DomainInner>> listByResourceGroupAsync(String resourceGroupName) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1<ServiceResponse<List<DomainInner>>, Page<DomainInner>>() { @Override public Page<DomainInner> call(ServiceResponse<List<DomainInner>> response) { PageImpl<DomainInner> page = new PageImpl<>(); page.setItems(response.body()); return page; } }); }
java
public Observable<Page<DomainInner>> listByResourceGroupAsync(String resourceGroupName) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1<ServiceResponse<List<DomainInner>>, Page<DomainInner>>() { @Override public Page<DomainInner> call(ServiceResponse<List<DomainInner>> response) { PageImpl<DomainInner> page = new PageImpl<>(); page.setItems(response.body()); return page; } }); }
[ "public", "Observable", "<", "Page", "<", "DomainInner", ">", ">", "listByResourceGroupAsync", "(", "String", "resourceGroupName", ")", "{", "return", "listByResourceGroupWithServiceResponseAsync", "(", "resourceGroupName", ")", ".", "map", "(", "new", "Func1", "<", ...
List domains under a resource group. List all the domains under a resource group. @param resourceGroupName The name of the resource group within the user's subscription. @return the observable to the List&lt;DomainInner&gt; object
[ "List", "domains", "under", "a", "resource", "group", ".", "List", "all", "the", "domains", "under", "a", "resource", "group", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/eventgrid/resource-manager/v2018_09_15_preview/src/main/java/com/microsoft/azure/management/eventgrid/v2018_09_15_preview/implementation/DomainsInner.java#L1007-L1016
35,820
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/TaskInfo.java
TaskInfo.getErrorDetails
public List<ErrorDetail> getErrorDetails() { List<ErrorDetail> result = new ArrayList<ErrorDetail>(); List<ErrorDetailType> errorDetailTypes = getContent().getErrorDetails(); if (errorDetailTypes != null) { for (ErrorDetailType errorDetailType : errorDetailTypes) { ErrorDetail errorDetail = new ErrorDetail( errorDetailType.getCode(), errorDetailType.getMessage()); result.add(errorDetail); } return result; } return null; }
java
public List<ErrorDetail> getErrorDetails() { List<ErrorDetail> result = new ArrayList<ErrorDetail>(); List<ErrorDetailType> errorDetailTypes = getContent().getErrorDetails(); if (errorDetailTypes != null) { for (ErrorDetailType errorDetailType : errorDetailTypes) { ErrorDetail errorDetail = new ErrorDetail( errorDetailType.getCode(), errorDetailType.getMessage()); result.add(errorDetail); } return result; } return null; }
[ "public", "List", "<", "ErrorDetail", ">", "getErrorDetails", "(", ")", "{", "List", "<", "ErrorDetail", ">", "result", "=", "new", "ArrayList", "<", "ErrorDetail", ">", "(", ")", ";", "List", "<", "ErrorDetailType", ">", "errorDetailTypes", "=", "getContent...
Gets the error details. @return the error details
[ "Gets", "the", "error", "details", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/TaskInfo.java#L77-L89
35,821
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/TaskInfo.java
TaskInfo.getHistoricalEvents
public List<TaskHistoricalEvent> getHistoricalEvents() { List<TaskHistoricalEvent> result = new ArrayList<TaskHistoricalEvent>(); List<TaskHistoricalEventType> historicalEventTypes = getContent() .getHistoricalEventTypes(); if (historicalEventTypes != null) { for (TaskHistoricalEventType taskHistoricalEventType : historicalEventTypes) { String message = taskHistoricalEventType.getMessage(); if ((message != null) && (message.isEmpty())) { message = null; } TaskHistoricalEvent taskHistoricalEvent = new TaskHistoricalEvent( taskHistoricalEventType.getCode(), message, taskHistoricalEventType.getTimeStamp()); result.add(taskHistoricalEvent); } } return result; }
java
public List<TaskHistoricalEvent> getHistoricalEvents() { List<TaskHistoricalEvent> result = new ArrayList<TaskHistoricalEvent>(); List<TaskHistoricalEventType> historicalEventTypes = getContent() .getHistoricalEventTypes(); if (historicalEventTypes != null) { for (TaskHistoricalEventType taskHistoricalEventType : historicalEventTypes) { String message = taskHistoricalEventType.getMessage(); if ((message != null) && (message.isEmpty())) { message = null; } TaskHistoricalEvent taskHistoricalEvent = new TaskHistoricalEvent( taskHistoricalEventType.getCode(), message, taskHistoricalEventType.getTimeStamp()); result.add(taskHistoricalEvent); } } return result; }
[ "public", "List", "<", "TaskHistoricalEvent", ">", "getHistoricalEvents", "(", ")", "{", "List", "<", "TaskHistoricalEvent", ">", "result", "=", "new", "ArrayList", "<", "TaskHistoricalEvent", ">", "(", ")", ";", "List", "<", "TaskHistoricalEventType", ">", "his...
Gets the task historical events. @return the task historical events
[ "Gets", "the", "task", "historical", "events", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/TaskInfo.java#L96-L115
35,822
Azure/azure-sdk-for-java
recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/VaultExtendedInfosInner.java
VaultExtendedInfosInner.getAsync
public Observable<VaultExtendedInfoResourceInner> getAsync(String resourceGroupName, String vaultName) { return getWithServiceResponseAsync(resourceGroupName, vaultName).map(new Func1<ServiceResponse<VaultExtendedInfoResourceInner>, VaultExtendedInfoResourceInner>() { @Override public VaultExtendedInfoResourceInner call(ServiceResponse<VaultExtendedInfoResourceInner> response) { return response.body(); } }); }
java
public Observable<VaultExtendedInfoResourceInner> getAsync(String resourceGroupName, String vaultName) { return getWithServiceResponseAsync(resourceGroupName, vaultName).map(new Func1<ServiceResponse<VaultExtendedInfoResourceInner>, VaultExtendedInfoResourceInner>() { @Override public VaultExtendedInfoResourceInner call(ServiceResponse<VaultExtendedInfoResourceInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "VaultExtendedInfoResourceInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "vaultName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "vaultName", ")", ".", "map", "(", "new", ...
Get the vault extended info. @param resourceGroupName The name of the resource group where the recovery services vault is present. @param vaultName The name of the recovery services vault. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the VaultExtendedInfoResourceInner object
[ "Get", "the", "vault", "extended", "info", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/VaultExtendedInfosInner.java#L107-L114
35,823
Azure/azure-sdk-for-java
eventhubs/data-plane/azure-eventhubs-eph/src/main/java/com/microsoft/azure/eventprocessorhost/EventProcessorHost.java
EventProcessorHost.unregisterEventProcessor
public CompletableFuture<Void> unregisterEventProcessor() { TRACE_LOGGER.info(this.hostContext.withHost("Stopping event processing")); if (this.unregistered == null) { // PartitionManager is created in constructor. If this object exists, then // this.partitionManager is not null. this.unregistered = this.partitionManager.stopPartitions(); // If we own the executor, stop it also. // Owned executor is also created in constructor. if (this.weOwnExecutor) { this.unregistered = this.unregistered.thenRunAsync(() -> { // IMPORTANT: run this last stage in the default threadpool! // If a task running in a threadpool waits for that threadpool to terminate, it's going to wait a long time... // It is OK to call shutdown() here even if threads are still running. // Shutdown() causes the executor to stop accepting new tasks, but existing tasks will // run to completion. The pool will terminate when all existing tasks finish. // By this point all new tasks generated by the shutdown have been submitted. this.executorService.shutdown(); try { this.executorService.awaitTermination(10, TimeUnit.MINUTES); } catch (InterruptedException e) { throw new CompletionException(e); } }, ForkJoinPool.commonPool()); } } return this.unregistered; }
java
public CompletableFuture<Void> unregisterEventProcessor() { TRACE_LOGGER.info(this.hostContext.withHost("Stopping event processing")); if (this.unregistered == null) { // PartitionManager is created in constructor. If this object exists, then // this.partitionManager is not null. this.unregistered = this.partitionManager.stopPartitions(); // If we own the executor, stop it also. // Owned executor is also created in constructor. if (this.weOwnExecutor) { this.unregistered = this.unregistered.thenRunAsync(() -> { // IMPORTANT: run this last stage in the default threadpool! // If a task running in a threadpool waits for that threadpool to terminate, it's going to wait a long time... // It is OK to call shutdown() here even if threads are still running. // Shutdown() causes the executor to stop accepting new tasks, but existing tasks will // run to completion. The pool will terminate when all existing tasks finish. // By this point all new tasks generated by the shutdown have been submitted. this.executorService.shutdown(); try { this.executorService.awaitTermination(10, TimeUnit.MINUTES); } catch (InterruptedException e) { throw new CompletionException(e); } }, ForkJoinPool.commonPool()); } } return this.unregistered; }
[ "public", "CompletableFuture", "<", "Void", ">", "unregisterEventProcessor", "(", ")", "{", "TRACE_LOGGER", ".", "info", "(", "this", ".", "hostContext", ".", "withHost", "(", "\"Stopping event processing\"", ")", ")", ";", "if", "(", "this", ".", "unregistered"...
Stop processing events and shut down this host instance. @return A CompletableFuture that completes when shutdown is finished.
[ "Stop", "processing", "events", "and", "shut", "down", "this", "host", "instance", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/eventhubs/data-plane/azure-eventhubs-eph/src/main/java/com/microsoft/azure/eventprocessorhost/EventProcessorHost.java#L499-L530
35,824
Azure/azure-sdk-for-java
applicationinsights/resource-manager/v2015_05_01/src/main/java/com/microsoft/azure/management/applicationinsights/v2015_05_01/implementation/ProactiveDetectionConfigurationsInner.java
ProactiveDetectionConfigurationsInner.listAsync
public Observable<List<ApplicationInsightsComponentProactiveDetectionConfigurationInner>> listAsync(String resourceGroupName, String resourceName) { return listWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<List<ApplicationInsightsComponentProactiveDetectionConfigurationInner>>, List<ApplicationInsightsComponentProactiveDetectionConfigurationInner>>() { @Override public List<ApplicationInsightsComponentProactiveDetectionConfigurationInner> call(ServiceResponse<List<ApplicationInsightsComponentProactiveDetectionConfigurationInner>> response) { return response.body(); } }); }
java
public Observable<List<ApplicationInsightsComponentProactiveDetectionConfigurationInner>> listAsync(String resourceGroupName, String resourceName) { return listWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<List<ApplicationInsightsComponentProactiveDetectionConfigurationInner>>, List<ApplicationInsightsComponentProactiveDetectionConfigurationInner>>() { @Override public List<ApplicationInsightsComponentProactiveDetectionConfigurationInner> call(ServiceResponse<List<ApplicationInsightsComponentProactiveDetectionConfigurationInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "List", "<", "ApplicationInsightsComponentProactiveDetectionConfigurationInner", ">", ">", "listAsync", "(", "String", "resourceGroupName", ",", "String", "resourceName", ")", "{", "return", "listWithServiceResponseAsync", "(", "resourceGroupName"...
Gets a list of ProactiveDetection configurations of 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 List&lt;ApplicationInsightsComponentProactiveDetectionConfigurationInner&gt; object
[ "Gets", "a", "list", "of", "ProactiveDetection", "configurations", "of", "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/ProactiveDetectionConfigurationsInner.java#L107-L114
35,825
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/ProtectionContainerOperationResultsInner.java
ProtectionContainerOperationResultsInner.getAsync
public ServiceFuture<ProtectionContainerResourceInner> getAsync(String vaultName, String resourceGroupName, String fabricName, String containerName, String operationId, final ServiceCallback<ProtectionContainerResourceInner> serviceCallback) { return ServiceFuture.fromResponse(getWithServiceResponseAsync(vaultName, resourceGroupName, fabricName, containerName, operationId), serviceCallback); }
java
public ServiceFuture<ProtectionContainerResourceInner> getAsync(String vaultName, String resourceGroupName, String fabricName, String containerName, String operationId, final ServiceCallback<ProtectionContainerResourceInner> serviceCallback) { return ServiceFuture.fromResponse(getWithServiceResponseAsync(vaultName, resourceGroupName, fabricName, containerName, operationId), serviceCallback); }
[ "public", "ServiceFuture", "<", "ProtectionContainerResourceInner", ">", "getAsync", "(", "String", "vaultName", ",", "String", "resourceGroupName", ",", "String", "fabricName", ",", "String", "containerName", ",", "String", "operationId", ",", "final", "ServiceCallback...
Fetches the result of any operation on the container. @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 fabricName Fabric name associated with the container. @param containerName Container name whose information should be fetched. @param operationId Operation ID which represents the operation whose result needs to be fetched. @param serviceCallback the async ServiceCallback to handle successful and failed responses. @throws IllegalArgumentException thrown if parameters fail the validation @return the {@link ServiceFuture} object
[ "Fetches", "the", "result", "of", "any", "operation", "on", "the", "container", "." ]
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/ProtectionContainerOperationResultsInner.java#L89-L91
35,826
Azure/azure-sdk-for-java
compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/AvailabilitySetsInner.java
AvailabilitySetsInner.delete
public OperationStatusResponseInner delete(String resourceGroupName, String availabilitySetName) { return deleteWithServiceResponseAsync(resourceGroupName, availabilitySetName).toBlocking().single().body(); }
java
public OperationStatusResponseInner delete(String resourceGroupName, String availabilitySetName) { return deleteWithServiceResponseAsync(resourceGroupName, availabilitySetName).toBlocking().single().body(); }
[ "public", "OperationStatusResponseInner", "delete", "(", "String", "resourceGroupName", ",", "String", "availabilitySetName", ")", "{", "return", "deleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "availabilitySetName", ")", ".", "toBlocking", "(", ")", ".",...
Delete an availability set. @param resourceGroupName The name of the resource group. @param availabilitySetName The name of the availability set. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @return the OperationStatusResponseInner object if successful.
[ "Delete", "an", "availability", "set", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/AvailabilitySetsInner.java#L189-L191
35,827
Azure/azure-sdk-for-java
compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/AvailabilitySetsInner.java
AvailabilitySetsInner.listByResourceGroupAsync
public Observable<Page<AvailabilitySetInner>> listByResourceGroupAsync(String resourceGroupName) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1<ServiceResponse<List<AvailabilitySetInner>>, Page<AvailabilitySetInner>>() { @Override public Page<AvailabilitySetInner> call(ServiceResponse<List<AvailabilitySetInner>> response) { PageImpl<AvailabilitySetInner> page = new PageImpl<>(); page.setItems(response.body()); return page; } }); }
java
public Observable<Page<AvailabilitySetInner>> listByResourceGroupAsync(String resourceGroupName) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1<ServiceResponse<List<AvailabilitySetInner>>, Page<AvailabilitySetInner>>() { @Override public Page<AvailabilitySetInner> call(ServiceResponse<List<AvailabilitySetInner>> response) { PageImpl<AvailabilitySetInner> page = new PageImpl<>(); page.setItems(response.body()); return page; } }); }
[ "public", "Observable", "<", "Page", "<", "AvailabilitySetInner", ">", ">", "listByResourceGroupAsync", "(", "String", "resourceGroupName", ")", "{", "return", "listByResourceGroupWithServiceResponseAsync", "(", "resourceGroupName", ")", ".", "map", "(", "new", "Func1",...
Lists all availability sets in a resource group. @param resourceGroupName The name of the resource group. @return the observable to the List&lt;AvailabilitySetInner&gt; object
[ "Lists", "all", "availability", "sets", "in", "a", "resource", "group", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/AvailabilitySetsInner.java#L387-L396
35,828
Azure/azure-sdk-for-java
compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/AvailabilitySetsInner.java
AvailabilitySetsInner.listAvailableSizesAsync
public Observable<List<VirtualMachineSizeInner>> listAvailableSizesAsync(String resourceGroupName, String availabilitySetName) { return listAvailableSizesWithServiceResponseAsync(resourceGroupName, availabilitySetName).map(new Func1<ServiceResponse<List<VirtualMachineSizeInner>>, List<VirtualMachineSizeInner>>() { @Override public List<VirtualMachineSizeInner> call(ServiceResponse<List<VirtualMachineSizeInner>> response) { return response.body(); } }); }
java
public Observable<List<VirtualMachineSizeInner>> listAvailableSizesAsync(String resourceGroupName, String availabilitySetName) { return listAvailableSizesWithServiceResponseAsync(resourceGroupName, availabilitySetName).map(new Func1<ServiceResponse<List<VirtualMachineSizeInner>>, List<VirtualMachineSizeInner>>() { @Override public List<VirtualMachineSizeInner> call(ServiceResponse<List<VirtualMachineSizeInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "List", "<", "VirtualMachineSizeInner", ">", ">", "listAvailableSizesAsync", "(", "String", "resourceGroupName", ",", "String", "availabilitySetName", ")", "{", "return", "listAvailableSizesWithServiceResponseAsync", "(", "resourceGroupName", ",...
Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. @param resourceGroupName The name of the resource group. @param availabilitySetName The name of the availability set. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the List&lt;VirtualMachineSizeInner&gt; object
[ "Lists", "all", "available", "virtual", "machine", "sizes", "that", "can", "be", "used", "to", "create", "a", "new", "virtual", "machine", "in", "an", "existing", "availability", "set", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/compute/resource-manager/v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/AvailabilitySetsInner.java#L475-L482
35,829
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/entityoperations/EntityRestProxy.java
EntityRestProxy.getActionClientResponse
private ClientResponse getActionClientResponse( EntityActionOperation entityActionOperation) { entityActionOperation.setProxyData(createProxyData()); Builder webResource = getResource(entityActionOperation.getUri()) .queryParams(entityActionOperation.getQueryParameters()) .accept(entityActionOperation.getAcceptType()) .accept(MediaType.APPLICATION_XML_TYPE) .type(MediaType.APPLICATION_XML_TYPE); if (entityActionOperation.getRequestContents() != null) { webResource = webResource.entity( entityActionOperation.getRequestContents(), entityActionOperation.getContentType()); } return webResource.method(entityActionOperation.getVerb(), ClientResponse.class); }
java
private ClientResponse getActionClientResponse( EntityActionOperation entityActionOperation) { entityActionOperation.setProxyData(createProxyData()); Builder webResource = getResource(entityActionOperation.getUri()) .queryParams(entityActionOperation.getQueryParameters()) .accept(entityActionOperation.getAcceptType()) .accept(MediaType.APPLICATION_XML_TYPE) .type(MediaType.APPLICATION_XML_TYPE); if (entityActionOperation.getRequestContents() != null) { webResource = webResource.entity( entityActionOperation.getRequestContents(), entityActionOperation.getContentType()); } return webResource.method(entityActionOperation.getVerb(), ClientResponse.class); }
[ "private", "ClientResponse", "getActionClientResponse", "(", "EntityActionOperation", "entityActionOperation", ")", "{", "entityActionOperation", ".", "setProxyData", "(", "createProxyData", "(", ")", ")", ";", "Builder", "webResource", "=", "getResource", "(", "entityAct...
Gets the action client response. @param entityActionOperation the entity action operation @return the action client response
[ "Gets", "the", "action", "client", "response", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/entityoperations/EntityRestProxy.java#L286-L301
35,830
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/ExportJobsOperationResultsInner.java
ExportJobsOperationResultsInner.getAsync
public Observable<OperationResultInfoBaseResourceInner> getAsync(String vaultName, String resourceGroupName, String operationId) { return getWithServiceResponseAsync(vaultName, resourceGroupName, operationId).map(new Func1<ServiceResponse<OperationResultInfoBaseResourceInner>, OperationResultInfoBaseResourceInner>() { @Override public OperationResultInfoBaseResourceInner call(ServiceResponse<OperationResultInfoBaseResourceInner> response) { return response.body(); } }); }
java
public Observable<OperationResultInfoBaseResourceInner> getAsync(String vaultName, String resourceGroupName, String operationId) { return getWithServiceResponseAsync(vaultName, resourceGroupName, operationId).map(new Func1<ServiceResponse<OperationResultInfoBaseResourceInner>, OperationResultInfoBaseResourceInner>() { @Override public OperationResultInfoBaseResourceInner call(ServiceResponse<OperationResultInfoBaseResourceInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "OperationResultInfoBaseResourceInner", ">", "getAsync", "(", "String", "vaultName", ",", "String", "resourceGroupName", ",", "String", "operationId", ")", "{", "return", "getWithServiceResponseAsync", "(", "vaultName", ",", "resourceGroupName...
Gets the operation result of operation triggered by Export Jobs API. If the operation is successful, then it also contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized format. @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 operationId OperationID which represents the export job. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the OperationResultInfoBaseResourceInner object
[ "Gets", "the", "operation", "result", "of", "operation", "triggered", "by", "Export", "Jobs", "API", ".", "If", "the", "operation", "is", "successful", "then", "it", "also", "contains", "URL", "of", "a", "Blob", "and", "a", "SAS", "key", "to", "access", ...
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/ExportJobsOperationResultsInner.java#L98-L105
35,831
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault-cryptography/src/main/java/com/microsoft/azure/keyvault/cryptography/EcKey.java
EcKey.fromJsonWebKey
public static EcKey fromJsonWebKey(JsonWebKey jwk) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeySpecException, NoSuchProviderException { return fromJsonWebKey(jwk, false, null); }
java
public static EcKey fromJsonWebKey(JsonWebKey jwk) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeySpecException, NoSuchProviderException { return fromJsonWebKey(jwk, false, null); }
[ "public", "static", "EcKey", "fromJsonWebKey", "(", "JsonWebKey", "jwk", ")", "throws", "NoSuchAlgorithmException", ",", "InvalidAlgorithmParameterException", ",", "InvalidKeySpecException", ",", "NoSuchProviderException", "{", "return", "fromJsonWebKey", "(", "jwk", ",", ...
Converts JSON web key to EC key pair, does not include the private key. @param jwk @return EcKey @throws NoSuchAlgorithmException @throws InvalidAlgorithmParameterException @throws InvalidKeySpecException @throws NoSuchProviderException
[ "Converts", "JSON", "web", "key", "to", "EC", "key", "pair", "does", "not", "include", "the", "private", "key", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault-cryptography/src/main/java/com/microsoft/azure/keyvault/cryptography/EcKey.java#L197-L199
35,832
Azure/azure-sdk-for-java
applicationinsights/resource-manager/v2015_05_01/src/main/java/com/microsoft/azure/management/applicationinsights/v2015_05_01/implementation/WorkItemConfigurationsInner.java
WorkItemConfigurationsInner.listAsync
public Observable<List<WorkItemConfigurationInner>> listAsync(String resourceGroupName, String resourceName) { return listWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<List<WorkItemConfigurationInner>>, List<WorkItemConfigurationInner>>() { @Override public List<WorkItemConfigurationInner> call(ServiceResponse<List<WorkItemConfigurationInner>> response) { return response.body(); } }); }
java
public Observable<List<WorkItemConfigurationInner>> listAsync(String resourceGroupName, String resourceName) { return listWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<List<WorkItemConfigurationInner>>, List<WorkItemConfigurationInner>>() { @Override public List<WorkItemConfigurationInner> call(ServiceResponse<List<WorkItemConfigurationInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "List", "<", "WorkItemConfigurationInner", ">", ">", "listAsync", "(", "String", "resourceGroupName", ",", "String", "resourceName", ")", "{", "return", "listWithServiceResponseAsync", "(", "resourceGroupName", ",", "resourceName", ")", "....
Gets the list work item configurations that exist for the application. @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 List&lt;WorkItemConfigurationInner&gt; object
[ "Gets", "the", "list", "work", "item", "configurations", "that", "exist", "for", "the", "application", "." ]
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/WorkItemConfigurationsInner.java#L114-L121
35,833
Azure/azure-sdk-for-java
privatedns/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/privatedns/v2018_09_01/implementation/RecordSetsInner.java
RecordSetsInner.updateAsync
public ServiceFuture<RecordSetInner> updateAsync(String resourceGroupName, String privateZoneName, RecordType recordType, String relativeRecordSetName, RecordSetInner parameters, final ServiceCallback<RecordSetInner> serviceCallback) { return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, privateZoneName, recordType, relativeRecordSetName, parameters), serviceCallback); }
java
public ServiceFuture<RecordSetInner> updateAsync(String resourceGroupName, String privateZoneName, RecordType recordType, String relativeRecordSetName, RecordSetInner parameters, final ServiceCallback<RecordSetInner> serviceCallback) { return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, privateZoneName, recordType, relativeRecordSetName, parameters), serviceCallback); }
[ "public", "ServiceFuture", "<", "RecordSetInner", ">", "updateAsync", "(", "String", "resourceGroupName", ",", "String", "privateZoneName", ",", "RecordType", "recordType", ",", "String", "relativeRecordSetName", ",", "RecordSetInner", "parameters", ",", "final", "Servi...
Updates a record set within a Private DNS zone. @param resourceGroupName The name of the resource group. @param privateZoneName The name of the Private DNS zone (without a terminating dot). @param recordType The type of DNS record in this record set. Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'PTR', 'SOA', 'SRV', 'TXT' @param relativeRecordSetName The name of the record set, relative to the name of the zone. @param parameters Parameters supplied to the Update operation. @param serviceCallback the async ServiceCallback to handle successful and failed responses. @throws IllegalArgumentException thrown if parameters fail the validation @return the {@link ServiceFuture} object
[ "Updates", "a", "record", "set", "within", "a", "Private", "DNS", "zone", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/privatedns/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/privatedns/v2018_09_01/implementation/RecordSetsInner.java#L349-L351
35,834
Azure/azure-sdk-for-java
mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/LogFilesInner.java
LogFilesInner.listByServerAsync
public Observable<List<LogFileInner>> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<LogFileInner>>, List<LogFileInner>>() { @Override public List<LogFileInner> call(ServiceResponse<List<LogFileInner>> response) { return response.body(); } }); }
java
public Observable<List<LogFileInner>> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<LogFileInner>>, List<LogFileInner>>() { @Override public List<LogFileInner> call(ServiceResponse<List<LogFileInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "List", "<", "LogFileInner", ">", ">", "listByServerAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ")", "{", "return", "listByServerWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ")", ".",...
List all the log files in a given server. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param serverName The name of the server. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the List&lt;LogFileInner&gt; object
[ "List", "all", "the", "log", "files", "in", "a", "given", "server", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/LogFilesInner.java#L96-L103
35,835
Azure/azure-sdk-for-java
common/azure-common-auth/src/main/java/com/azure/common/auth/credentials/DelegatedTokenCredentials.java
DelegatedTokenCredentials.fromFile
public static DelegatedTokenCredentials fromFile(File authFile, String redirectUrl) throws IOException { return new DelegatedTokenCredentials(ApplicationTokenCredentials.fromFile(authFile), redirectUrl); }
java
public static DelegatedTokenCredentials fromFile(File authFile, String redirectUrl) throws IOException { return new DelegatedTokenCredentials(ApplicationTokenCredentials.fromFile(authFile), redirectUrl); }
[ "public", "static", "DelegatedTokenCredentials", "fromFile", "(", "File", "authFile", ",", "String", "redirectUrl", ")", "throws", "IOException", "{", "return", "new", "DelegatedTokenCredentials", "(", "ApplicationTokenCredentials", ".", "fromFile", "(", "authFile", ")"...
Creates a new instance of the DelegatedTokenCredentials from an auth file. @param authFile The credentials based on the file @param redirectUrl the URL to redirect to after authentication in Active Directory @return a new delegated token credentials @throws IOException exception thrown from file access errors.
[ "Creates", "a", "new", "instance", "of", "the", "DelegatedTokenCredentials", "from", "an", "auth", "file", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common-auth/src/main/java/com/azure/common/auth/credentials/DelegatedTokenCredentials.java#L73-L75
35,836
Azure/azure-sdk-for-java
common/azure-common-auth/src/main/java/com/azure/common/auth/credentials/DelegatedTokenCredentials.java
DelegatedTokenCredentials.generateAuthenticationUrl
public String generateAuthenticationUrl(ResponseMode responseMode, String state) { return String.format("%s/%s/oauth2/authorize?client_id=%s&response_type=code&redirect_uri=%s&response_mode=%s&state=%s", environment().activeDirectoryEndpoint(), domain(), clientId(), this.redirectUrl, responseMode.value, state); }
java
public String generateAuthenticationUrl(ResponseMode responseMode, String state) { return String.format("%s/%s/oauth2/authorize?client_id=%s&response_type=code&redirect_uri=%s&response_mode=%s&state=%s", environment().activeDirectoryEndpoint(), domain(), clientId(), this.redirectUrl, responseMode.value, state); }
[ "public", "String", "generateAuthenticationUrl", "(", "ResponseMode", "responseMode", ",", "String", "state", ")", "{", "return", "String", ".", "format", "(", "\"%s/%s/oauth2/authorize?client_id=%s&response_type=code&redirect_uri=%s&response_mode=%s&state=%s\"", ",", "environmen...
Generate the URL to authenticate through OAuth2. @param responseMode the method that should be used to send the resulting token back to your app @param state a value included in the request that is also returned in the token response @return the URL to authenticate through OAuth2
[ "Generate", "the", "URL", "to", "authenticate", "through", "OAuth2", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common-auth/src/main/java/com/azure/common/auth/credentials/DelegatedTokenCredentials.java#L113-L116
35,837
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/authentication/AzureAdTokenProvider.java
AzureAdTokenProvider.acquireAccessToken
@Override public AzureAdAccessToken acquireAccessToken() throws Exception { AuthenticationResult authResult = getToken().get(); return new AzureAdAccessToken(authResult.getAccessToken(), authResult.getExpiresOnDate()); }
java
@Override public AzureAdAccessToken acquireAccessToken() throws Exception { AuthenticationResult authResult = getToken().get(); return new AzureAdAccessToken(authResult.getAccessToken(), authResult.getExpiresOnDate()); }
[ "@", "Override", "public", "AzureAdAccessToken", "acquireAccessToken", "(", ")", "throws", "Exception", "{", "AuthenticationResult", "authResult", "=", "getToken", "(", ")", ".", "get", "(", ")", ";", "return", "new", "AzureAdAccessToken", "(", "authResult", ".", ...
Acquires an access token @see com.microsoft.windowsazure.services.media.authentication.TokenProvider#acquireAccessToken()
[ "Acquires", "an", "access", "token" ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/authentication/AzureAdTokenProvider.java#L51-L55
35,838
Azure/azure-sdk-for-java
mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/StreamingEndpointsInner.java
StreamingEndpointsInner.delete
public void delete(String resourceGroupName, String accountName, String streamingEndpointName) { deleteWithServiceResponseAsync(resourceGroupName, accountName, streamingEndpointName).toBlocking().last().body(); }
java
public void delete(String resourceGroupName, String accountName, String streamingEndpointName) { deleteWithServiceResponseAsync(resourceGroupName, accountName, streamingEndpointName).toBlocking().last().body(); }
[ "public", "void", "delete", "(", "String", "resourceGroupName", ",", "String", "accountName", ",", "String", "streamingEndpointName", ")", "{", "deleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "accountName", ",", "streamingEndpointName", ")", ".", "toBlo...
Delete StreamingEndpoint. Deletes a StreamingEndpoint. @param resourceGroupName The name of the resource group within the Azure subscription. @param accountName The Media Services account name. @param streamingEndpointName The name of the StreamingEndpoint. @throws IllegalArgumentException thrown if parameters fail the validation @throws ApiErrorException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Delete", "StreamingEndpoint", ".", "Deletes", "a", "StreamingEndpoint", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/StreamingEndpointsInner.java#L949-L951
35,839
Azure/azure-sdk-for-java
logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/MapsInner.java
MapsInner.listByIntegrationAccountsNextAsync
public Observable<Page<IntegrationAccountMapInner>> listByIntegrationAccountsNextAsync(final String nextPageLink) { return listByIntegrationAccountsNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<IntegrationAccountMapInner>>, Page<IntegrationAccountMapInner>>() { @Override public Page<IntegrationAccountMapInner> call(ServiceResponse<Page<IntegrationAccountMapInner>> response) { return response.body(); } }); }
java
public Observable<Page<IntegrationAccountMapInner>> listByIntegrationAccountsNextAsync(final String nextPageLink) { return listByIntegrationAccountsNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<IntegrationAccountMapInner>>, Page<IntegrationAccountMapInner>>() { @Override public Page<IntegrationAccountMapInner> call(ServiceResponse<Page<IntegrationAccountMapInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "Page", "<", "IntegrationAccountMapInner", ">", ">", "listByIntegrationAccountsNextAsync", "(", "final", "String", "nextPageLink", ")", "{", "return", "listByIntegrationAccountsNextWithServiceResponseAsync", "(", "nextPageLink", ")", ".", "map",...
Gets a list of integration account maps. @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;IntegrationAccountMapInner&gt; object
[ "Gets", "a", "list", "of", "integration", "account", "maps", "." ]
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/MapsInner.java#L779-L787
35,840
Azure/azure-sdk-for-java
mixedreality/resource-manager/v2019_02_28_preview/src/main/java/com/microsoft/azure/management/mixedreality/v2019_02_28_preview/implementation/SpatialAnchorsAccountsInner.java
SpatialAnchorsAccountsInner.delete
public void delete(String resourceGroupName, String spatialAnchorsAccountName) { deleteWithServiceResponseAsync(resourceGroupName, spatialAnchorsAccountName).toBlocking().single().body(); }
java
public void delete(String resourceGroupName, String spatialAnchorsAccountName) { deleteWithServiceResponseAsync(resourceGroupName, spatialAnchorsAccountName).toBlocking().single().body(); }
[ "public", "void", "delete", "(", "String", "resourceGroupName", ",", "String", "spatialAnchorsAccountName", ")", "{", "deleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "spatialAnchorsAccountName", ")", ".", "toBlocking", "(", ")", ".", "single", "(", ")...
Delete a Spatial Anchors Account. @param resourceGroupName Name of an Azure resource group. @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account. @throws IllegalArgumentException thrown if parameters fail the validation @throws ErrorResponseException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Delete", "a", "Spatial", "Anchors", "Account", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mixedreality/resource-manager/v2019_02_28_preview/src/main/java/com/microsoft/azure/management/mixedreality/v2019_02_28_preview/implementation/SpatialAnchorsAccountsInner.java#L343-L345
35,841
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/ServerCommunicationLinksInner.java
ServerCommunicationLinksInner.listByServerAsync
public Observable<List<ServerCommunicationLinkInner>> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<ServerCommunicationLinkInner>>, List<ServerCommunicationLinkInner>>() { @Override public List<ServerCommunicationLinkInner> call(ServiceResponse<List<ServerCommunicationLinkInner>> response) { return response.body(); } }); }
java
public Observable<List<ServerCommunicationLinkInner>> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<ServerCommunicationLinkInner>>, List<ServerCommunicationLinkInner>>() { @Override public List<ServerCommunicationLinkInner> call(ServiceResponse<List<ServerCommunicationLinkInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "List", "<", "ServerCommunicationLinkInner", ">", ">", "listByServerAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ")", "{", "return", "listByServerWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName...
Gets a list of server communication links. @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param serverName The name of the server. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the List&lt;ServerCommunicationLinkInner&gt; object
[ "Gets", "a", "list", "of", "server", "communication", "links", "." ]
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/ServerCommunicationLinksInner.java#L488-L495
35,842
Azure/azure-sdk-for-java
iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificatesInner.java
CertificatesInner.delete
public void delete(String resourceGroupName, String resourceName, String certificateName, String ifMatch) { deleteWithServiceResponseAsync(resourceGroupName, resourceName, certificateName, ifMatch).toBlocking().single().body(); }
java
public void delete(String resourceGroupName, String resourceName, String certificateName, String ifMatch) { deleteWithServiceResponseAsync(resourceGroupName, resourceName, certificateName, ifMatch).toBlocking().single().body(); }
[ "public", "void", "delete", "(", "String", "resourceGroupName", ",", "String", "resourceName", ",", "String", "certificateName", ",", "String", "ifMatch", ")", "{", "deleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "resourceName", ",", "certificateName", ...
Delete an X509 certificate. Deletes an existing X509 certificate or does nothing if it does not exist. @param resourceGroupName The name of the resource group that contains the IoT hub. @param resourceName The name of the IoT hub. @param certificateName The name of the certificate @param ifMatch ETag of the Certificate. @throws IllegalArgumentException thrown if parameters fail the validation @throws ErrorDetailsException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Delete", "an", "X509", "certificate", ".", "Deletes", "an", "existing", "X509", "certificate", "or", "does", "nothing", "if", "it", "does", "not", "exist", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificatesInner.java#L487-L489
35,843
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/ServersInner.java
ServersInner.checkNameAvailabilityAsync
public Observable<CheckNameAvailabilityResponseInner> checkNameAvailabilityAsync(String name) { return checkNameAvailabilityWithServiceResponseAsync(name).map(new Func1<ServiceResponse<CheckNameAvailabilityResponseInner>, CheckNameAvailabilityResponseInner>() { @Override public CheckNameAvailabilityResponseInner call(ServiceResponse<CheckNameAvailabilityResponseInner> response) { return response.body(); } }); }
java
public Observable<CheckNameAvailabilityResponseInner> checkNameAvailabilityAsync(String name) { return checkNameAvailabilityWithServiceResponseAsync(name).map(new Func1<ServiceResponse<CheckNameAvailabilityResponseInner>, CheckNameAvailabilityResponseInner>() { @Override public CheckNameAvailabilityResponseInner call(ServiceResponse<CheckNameAvailabilityResponseInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "CheckNameAvailabilityResponseInner", ">", "checkNameAvailabilityAsync", "(", "String", "name", ")", "{", "return", "checkNameAvailabilityWithServiceResponseAsync", "(", "name", ")", ".", "map", "(", "new", "Func1", "<", "ServiceResponse", "...
Determines whether a resource can be created with the specified name. @param name The name whose availability is to be checked. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the CheckNameAvailabilityResponseInner object
[ "Determines", "whether", "a", "resource", "can", "be", "created", "with", "the", "specified", "name", "." ]
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/ServersInner.java#L130-L137
35,844
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/ServersInner.java
ServersInner.createOrUpdateAsync
public Observable<ServerInner> createOrUpdateAsync(String resourceGroupName, String serverName, ServerInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, parameters).map(new Func1<ServiceResponse<ServerInner>, ServerInner>() { @Override public ServerInner call(ServiceResponse<ServerInner> response) { return response.body(); } }); }
java
public Observable<ServerInner> createOrUpdateAsync(String resourceGroupName, String serverName, ServerInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, parameters).map(new Func1<ServiceResponse<ServerInner>, ServerInner>() { @Override public ServerInner call(ServiceResponse<ServerInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "ServerInner", ">", "createOrUpdateAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "ServerInner", "parameters", ")", "{", "return", "createOrUpdateWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverN...
Creates or updates a new 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 parameters The required parameters for creating or updating a server. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the ServerInner object
[ "Creates", "or", "updates", "a", "new", "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/ServersInner.java#L298-L305
35,845
Azure/azure-sdk-for-java
eventgrid/resource-manager/v2019_01_01/src/main/java/com/microsoft/azure/management/eventgrid/v2019_01_01/implementation/TopicsInner.java
TopicsInner.listByResourceGroupAsync
public Observable<Page<TopicInner>> listByResourceGroupAsync(String resourceGroupName) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1<ServiceResponse<List<TopicInner>>, Page<TopicInner>>() { @Override public Page<TopicInner> call(ServiceResponse<List<TopicInner>> response) { PageImpl<TopicInner> page = new PageImpl<>(); page.setItems(response.body()); return page; } }); }
java
public Observable<Page<TopicInner>> listByResourceGroupAsync(String resourceGroupName) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1<ServiceResponse<List<TopicInner>>, Page<TopicInner>>() { @Override public Page<TopicInner> call(ServiceResponse<List<TopicInner>> response) { PageImpl<TopicInner> page = new PageImpl<>(); page.setItems(response.body()); return page; } }); }
[ "public", "Observable", "<", "Page", "<", "TopicInner", ">", ">", "listByResourceGroupAsync", "(", "String", "resourceGroupName", ")", "{", "return", "listByResourceGroupWithServiceResponseAsync", "(", "resourceGroupName", ")", ".", "map", "(", "new", "Func1", "<", ...
List topics under a resource group. List all the topics under a resource group. @param resourceGroupName The name of the resource group within the user's subscription. @return the observable to the List&lt;TopicInner&gt; object
[ "List", "topics", "under", "a", "resource", "group", ".", "List", "all", "the", "topics", "under", "a", "resource", "group", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/eventgrid/resource-manager/v2019_01_01/src/main/java/com/microsoft/azure/management/eventgrid/v2019_01_01/implementation/TopicsInner.java#L1011-L1020
35,846
Azure/azure-sdk-for-java
hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClustersInner.java
ClustersInner.update
public ClusterInner update(String resourceGroupName, String clusterName) { return updateWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().single().body(); }
java
public ClusterInner update(String resourceGroupName, String clusterName) { return updateWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().single().body(); }
[ "public", "ClusterInner", "update", "(", "String", "resourceGroupName", ",", "String", "clusterName", ")", "{", "return", "updateWithServiceResponseAsync", "(", "resourceGroupName", ",", "clusterName", ")", ".", "toBlocking", "(", ")", ".", "single", "(", ")", "."...
Patch HDInsight cluster with the specified parameters. @param resourceGroupName The name of the resource group. @param clusterName The name of the cluster. @throws IllegalArgumentException thrown if parameters fail the validation @throws ErrorResponseException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @return the ClusterInner object if successful.
[ "Patch", "HDInsight", "cluster", "with", "the", "specified", "parameters", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/implementation/ClustersInner.java#L335-L337
35,847
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/http/HttpRequest.java
HttpRequest.withBody
public HttpRequest withBody(String content) { final byte[] bodyBytes = content.getBytes(StandardCharsets.UTF_8); return withBody(bodyBytes); }
java
public HttpRequest withBody(String content) { final byte[] bodyBytes = content.getBytes(StandardCharsets.UTF_8); return withBody(bodyBytes); }
[ "public", "HttpRequest", "withBody", "(", "String", "content", ")", "{", "final", "byte", "[", "]", "bodyBytes", "=", "content", ".", "getBytes", "(", "StandardCharsets", ".", "UTF_8", ")", ";", "return", "withBody", "(", "bodyBytes", ")", ";", "}" ]
Set the request content. @param content the request content @return this HttpRequest
[ "Set", "the", "request", "content", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/http/HttpRequest.java#L137-L140
35,848
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/http/HttpRequest.java
HttpRequest.withBody
public HttpRequest withBody(byte[] content) { headers.set("Content-Length", String.valueOf(content.length)); // Unpooled.wrappedBuffer(body) allocates ByteBuf from unpooled heap return withBody(Flux.defer(() -> Flux.just(Unpooled.wrappedBuffer(content)))); }
java
public HttpRequest withBody(byte[] content) { headers.set("Content-Length", String.valueOf(content.length)); // Unpooled.wrappedBuffer(body) allocates ByteBuf from unpooled heap return withBody(Flux.defer(() -> Flux.just(Unpooled.wrappedBuffer(content)))); }
[ "public", "HttpRequest", "withBody", "(", "byte", "[", "]", "content", ")", "{", "headers", ".", "set", "(", "\"Content-Length\"", ",", "String", ".", "valueOf", "(", "content", ".", "length", ")", ")", ";", "// Unpooled.wrappedBuffer(body) allocates ByteBuf from ...
Set the request content. The Content-Length header will be set based on the given content's length @param content the request content @return this HttpRequest
[ "Set", "the", "request", "content", ".", "The", "Content", "-", "Length", "header", "will", "be", "set", "based", "on", "the", "given", "content", "s", "length" ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/http/HttpRequest.java#L149-L153
35,849
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/http/HttpRequest.java
HttpRequest.buffer
public HttpRequest buffer() { final HttpHeaders bufferedHeaders = new HttpHeaders(headers); return new HttpRequest(httpMethod, url, bufferedHeaders, body); }
java
public HttpRequest buffer() { final HttpHeaders bufferedHeaders = new HttpHeaders(headers); return new HttpRequest(httpMethod, url, bufferedHeaders, body); }
[ "public", "HttpRequest", "buffer", "(", ")", "{", "final", "HttpHeaders", "bufferedHeaders", "=", "new", "HttpHeaders", "(", "headers", ")", ";", "return", "new", "HttpRequest", "(", "httpMethod", ",", "url", ",", "bufferedHeaders", ",", "body", ")", ";", "}...
Creates a clone of the request. The main purpose of this is so that this HttpRequest can be changed and the resulting HttpRequest can be a backup. This means that the buffered HttpHeaders and body must not be able to change from side effects of this HttpRequest. @return a new HTTP request instance with cloned instances of all mutable properties.
[ "Creates", "a", "clone", "of", "the", "request", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/http/HttpRequest.java#L178-L181
35,850
Azure/azure-sdk-for-java
containerservice/resource-manager/v2017_09_30/src/main/java/com/microsoft/azure/management/containerservice/v2017_09_30/implementation/ContainerServicesInner.java
ContainerServicesInner.listOrchestratorsWithServiceResponseAsync
public Observable<ServiceResponse<OrchestratorVersionProfileListResultInner>> listOrchestratorsWithServiceResponseAsync(String location) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (location == null) { throw new IllegalArgumentException("Parameter location is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } final String resourceType = null; return service.listOrchestrators(this.client.subscriptionId(), location, this.client.apiVersion(), resourceType, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<OrchestratorVersionProfileListResultInner>>>() { @Override public Observable<ServiceResponse<OrchestratorVersionProfileListResultInner>> call(Response<ResponseBody> response) { try { ServiceResponse<OrchestratorVersionProfileListResultInner> clientResponse = listOrchestratorsDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
java
public Observable<ServiceResponse<OrchestratorVersionProfileListResultInner>> listOrchestratorsWithServiceResponseAsync(String location) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (location == null) { throw new IllegalArgumentException("Parameter location is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } final String resourceType = null; return service.listOrchestrators(this.client.subscriptionId(), location, this.client.apiVersion(), resourceType, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<OrchestratorVersionProfileListResultInner>>>() { @Override public Observable<ServiceResponse<OrchestratorVersionProfileListResultInner>> call(Response<ResponseBody> response) { try { ServiceResponse<OrchestratorVersionProfileListResultInner> clientResponse = listOrchestratorsDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
[ "public", "Observable", "<", "ServiceResponse", "<", "OrchestratorVersionProfileListResultInner", ">", ">", "listOrchestratorsWithServiceResponseAsync", "(", "String", "location", ")", "{", "if", "(", "this", ".", "client", ".", "subscriptionId", "(", ")", "==", "null...
Gets a list of supported orchestrators in the specified subscription. Gets a list of supported orchestrators in the specified subscription. The operation returns properties of each orchestrator including verison and available upgrades. @param location The name of a supported Azure region. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the OrchestratorVersionProfileListResultInner object
[ "Gets", "a", "list", "of", "supported", "orchestrators", "in", "the", "specified", "subscription", ".", "Gets", "a", "list", "of", "supported", "orchestrators", "in", "the", "specified", "subscription", ".", "The", "operation", "returns", "properties", "of", "ea...
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/containerservice/resource-manager/v2017_09_30/src/main/java/com/microsoft/azure/management/containerservice/v2017_09_30/implementation/ContainerServicesInner.java#L112-L135
35,851
Azure/azure-sdk-for-java
streamanalytics/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/streamanalytics/v2016_03_01/implementation/FunctionsInner.java
FunctionsInner.delete
public void delete(String resourceGroupName, String jobName, String functionName) { deleteWithServiceResponseAsync(resourceGroupName, jobName, functionName).toBlocking().single().body(); }
java
public void delete(String resourceGroupName, String jobName, String functionName) { deleteWithServiceResponseAsync(resourceGroupName, jobName, functionName).toBlocking().single().body(); }
[ "public", "void", "delete", "(", "String", "resourceGroupName", ",", "String", "jobName", ",", "String", "functionName", ")", "{", "deleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "jobName", ",", "functionName", ")", ".", "toBlocking", "(", ")", "....
Deletes a function from the streaming job. @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 jobName The name of the streaming job. @param functionName The name of the function. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Deletes", "a", "function", "from", "the", "streaming", "job", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/streamanalytics/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/streamanalytics/v2016_03_01/implementation/FunctionsInner.java#L525-L527
35,852
Azure/azure-sdk-for-java
cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/CollectionPartitionsInner.java
CollectionPartitionsInner.listMetricsAsync
public Observable<List<PartitionMetricInner>> listMetricsAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid, String filter) { return listMetricsWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, collectionRid, filter).map(new Func1<ServiceResponse<List<PartitionMetricInner>>, List<PartitionMetricInner>>() { @Override public List<PartitionMetricInner> call(ServiceResponse<List<PartitionMetricInner>> response) { return response.body(); } }); }
java
public Observable<List<PartitionMetricInner>> listMetricsAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid, String filter) { return listMetricsWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, collectionRid, filter).map(new Func1<ServiceResponse<List<PartitionMetricInner>>, List<PartitionMetricInner>>() { @Override public List<PartitionMetricInner> call(ServiceResponse<List<PartitionMetricInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "List", "<", "PartitionMetricInner", ">", ">", "listMetricsAsync", "(", "String", "resourceGroupName", ",", "String", "accountName", ",", "String", "databaseRid", ",", "String", "collectionRid", ",", "String", "filter", ")", "{", "retu...
Retrieves the metrics determined by the given filter for the given collection, split by partition. @param resourceGroupName Name of an Azure resource group. @param accountName Cosmos DB database account name. @param databaseRid Cosmos DB database rid. @param collectionRid Cosmos DB collection rid. @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the List&lt;PartitionMetricInner&gt; object
[ "Retrieves", "the", "metrics", "determined", "by", "the", "given", "filter", "for", "the", "given", "collection", "split", "by", "partition", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/CollectionPartitionsInner.java#L109-L116
35,853
Azure/azure-sdk-for-java
redis/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/redis/v2017_10_01/implementation/FirewallRulesInner.java
FirewallRulesInner.delete
public void delete(String resourceGroupName, String cacheName, String ruleName) { deleteWithServiceResponseAsync(resourceGroupName, cacheName, ruleName).toBlocking().single().body(); }
java
public void delete(String resourceGroupName, String cacheName, String ruleName) { deleteWithServiceResponseAsync(resourceGroupName, cacheName, ruleName).toBlocking().single().body(); }
[ "public", "void", "delete", "(", "String", "resourceGroupName", ",", "String", "cacheName", ",", "String", "ruleName", ")", "{", "deleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "cacheName", ",", "ruleName", ")", ".", "toBlocking", "(", ")", ".", ...
Deletes a single firewall rule in a specified redis cache. @param resourceGroupName The name of the resource group. @param cacheName The name of the Redis cache. @param ruleName The name of the firewall rule. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Deletes", "a", "single", "firewall", "rule", "in", "a", "specified", "redis", "cache", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/redis/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/redis/v2017_10_01/implementation/FirewallRulesInner.java#L415-L417
35,854
Azure/azure-sdk-for-java
applicationinsights/resource-manager/v2015_05_01/src/main/java/com/microsoft/azure/management/applicationinsights/v2015_05_01/implementation/ExportConfigurationsInner.java
ExportConfigurationsInner.listAsync
public Observable<List<ApplicationInsightsComponentExportConfigurationInner>> listAsync(String resourceGroupName, String resourceName) { return listWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<List<ApplicationInsightsComponentExportConfigurationInner>>, List<ApplicationInsightsComponentExportConfigurationInner>>() { @Override public List<ApplicationInsightsComponentExportConfigurationInner> call(ServiceResponse<List<ApplicationInsightsComponentExportConfigurationInner>> response) { return response.body(); } }); }
java
public Observable<List<ApplicationInsightsComponentExportConfigurationInner>> listAsync(String resourceGroupName, String resourceName) { return listWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<List<ApplicationInsightsComponentExportConfigurationInner>>, List<ApplicationInsightsComponentExportConfigurationInner>>() { @Override public List<ApplicationInsightsComponentExportConfigurationInner> call(ServiceResponse<List<ApplicationInsightsComponentExportConfigurationInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "List", "<", "ApplicationInsightsComponentExportConfigurationInner", ">", ">", "listAsync", "(", "String", "resourceGroupName", ",", "String", "resourceName", ")", "{", "return", "listWithServiceResponseAsync", "(", "resourceGroupName", ",", "...
Gets a list of Continuous Export configuration of 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 List&lt;ApplicationInsightsComponentExportConfigurationInner&gt; object
[ "Gets", "a", "list", "of", "Continuous", "Export", "configuration", "of", "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/ExportConfigurationsInner.java#L118-L125
35,855
Azure/azure-sdk-for-java
automation/resource-manager/v2015_10_31/src/main/java/com/microsoft/azure/management/automation/v2015_10_31/implementation/DscNodesInner.java
DscNodesInner.listByAutomationAccountNextAsync
public Observable<Page<DscNodeInner>> listByAutomationAccountNextAsync(final String nextPageLink) { return listByAutomationAccountNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<DscNodeInner>>, Page<DscNodeInner>>() { @Override public Page<DscNodeInner> call(ServiceResponse<Page<DscNodeInner>> response) { return response.body(); } }); }
java
public Observable<Page<DscNodeInner>> listByAutomationAccountNextAsync(final String nextPageLink) { return listByAutomationAccountNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<DscNodeInner>>, Page<DscNodeInner>>() { @Override public Page<DscNodeInner> call(ServiceResponse<Page<DscNodeInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "Page", "<", "DscNodeInner", ">", ">", "listByAutomationAccountNextAsync", "(", "final", "String", "nextPageLink", ")", "{", "return", "listByAutomationAccountNextWithServiceResponseAsync", "(", "nextPageLink", ")", ".", "map", "(", "new", ...
Retrieve a list of dsc nodes. @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;DscNodeInner&gt; object
[ "Retrieve", "a", "list", "of", "dsc", "nodes", "." ]
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/DscNodesInner.java#L656-L664
35,856
Azure/azure-sdk-for-java
applicationconfig/client/src/main/java/com/azure/applicationconfig/policy/ConfigurationCredentialsPolicy.java
ConfigurationCredentialsPolicy.process
@Override public Mono<HttpResponse> process(HttpPipelineCallContext context, HttpPipelineNextPolicy next) { final Flux<ByteBuf> contents = context.httpRequest().body() == null ? Flux.just(getEmptyBuffer()) : context.httpRequest().body(); return contents.defaultIfEmpty(getEmptyBuffer()) .collect(() -> { try { return MessageDigest.getInstance("SHA-256"); } catch (NoSuchAlgorithmException e) { throw Exceptions.propagate(e); } }, (messageDigest, byteBuffer) -> { if (messageDigest != null) { messageDigest.update(byteBuffer.nioBuffer()); } }) .flatMap(messageDigest -> { final HttpHeaders headers = context.httpRequest().headers(); final String contentHash = Base64.getEncoder().encodeToString(messageDigest.digest()); // All three of these headers are used by ConfigurationClientCredentials to generate the // Authentication header value. So, we need to ensure that they exist. headers.set(HOST_HEADER, context.httpRequest().url().getHost()); headers.set(CONTENT_HASH_HEADER, contentHash); if (headers.value(DATE_HEADER) == null) { String utcNow = OffsetDateTime.now(ZoneOffset.UTC).format(DateTimeFormatter.RFC_1123_DATE_TIME); headers.set(DATE_HEADER, utcNow); } return next.process(); }); }
java
@Override public Mono<HttpResponse> process(HttpPipelineCallContext context, HttpPipelineNextPolicy next) { final Flux<ByteBuf> contents = context.httpRequest().body() == null ? Flux.just(getEmptyBuffer()) : context.httpRequest().body(); return contents.defaultIfEmpty(getEmptyBuffer()) .collect(() -> { try { return MessageDigest.getInstance("SHA-256"); } catch (NoSuchAlgorithmException e) { throw Exceptions.propagate(e); } }, (messageDigest, byteBuffer) -> { if (messageDigest != null) { messageDigest.update(byteBuffer.nioBuffer()); } }) .flatMap(messageDigest -> { final HttpHeaders headers = context.httpRequest().headers(); final String contentHash = Base64.getEncoder().encodeToString(messageDigest.digest()); // All three of these headers are used by ConfigurationClientCredentials to generate the // Authentication header value. So, we need to ensure that they exist. headers.set(HOST_HEADER, context.httpRequest().url().getHost()); headers.set(CONTENT_HASH_HEADER, contentHash); if (headers.value(DATE_HEADER) == null) { String utcNow = OffsetDateTime.now(ZoneOffset.UTC).format(DateTimeFormatter.RFC_1123_DATE_TIME); headers.set(DATE_HEADER, utcNow); } return next.process(); }); }
[ "@", "Override", "public", "Mono", "<", "HttpResponse", ">", "process", "(", "HttpPipelineCallContext", "context", ",", "HttpPipelineNextPolicy", "next", ")", "{", "final", "Flux", "<", "ByteBuf", ">", "contents", "=", "context", ".", "httpRequest", "(", ")", ...
Adds the required headers to authenticate a request to Azure Application Configuration service. @param context The request context @param next The next HTTP pipeline policy to process the {@code context's} request after this policy completes. @return A {@link Mono} representing the HTTP response that will arrive asynchronously.
[ "Adds", "the", "required", "headers", "to", "authenticate", "a", "request", "to", "Azure", "Application", "Configuration", "service", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/applicationconfig/client/src/main/java/com/azure/applicationconfig/policy/ConfigurationCredentialsPolicy.java#L49-L83
35,857
Azure/azure-sdk-for-java
batch/data-plane/src/main/java/com/microsoft/azure/batch/JobScheduleOperations.java
JobScheduleOperations.existsJobSchedule
public boolean existsJobSchedule(String jobScheduleId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { JobScheduleExistsOptions options = new JobScheduleExistsOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.applyRequestBehaviors(options); return this.parentBatchClient.protocolLayer().jobSchedules().exists(jobScheduleId, options); }
java
public boolean existsJobSchedule(String jobScheduleId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { JobScheduleExistsOptions options = new JobScheduleExistsOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.applyRequestBehaviors(options); return this.parentBatchClient.protocolLayer().jobSchedules().exists(jobScheduleId, options); }
[ "public", "boolean", "existsJobSchedule", "(", "String", "jobScheduleId", ",", "Iterable", "<", "BatchClientBehavior", ">", "additionalBehaviors", ")", "throws", "BatchErrorException", ",", "IOException", "{", "JobScheduleExistsOptions", "options", "=", "new", "JobSchedul...
Checks whether the specified job schedule exists. @param jobScheduleId The ID of the job schedule which you want to check. @param additionalBehaviors A collection of {@link BatchClientBehavior} instances that are applied to the Batch service request. @return True if the specified job schedule exists; otherwise, false. @throws BatchErrorException Exception thrown when an error response is received from the Batch service. @throws IOException Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.
[ "Checks", "whether", "the", "specified", "job", "schedule", "exists", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/batch/data-plane/src/main/java/com/microsoft/azure/batch/JobScheduleOperations.java#L89-L95
35,858
Azure/azure-sdk-for-java
batch/data-plane/src/main/java/com/microsoft/azure/batch/JobScheduleOperations.java
JobScheduleOperations.deleteJobSchedule
public void deleteJobSchedule(String jobScheduleId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { JobScheduleDeleteOptions options = new JobScheduleDeleteOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.applyRequestBehaviors(options); this.parentBatchClient.protocolLayer().jobSchedules().delete(jobScheduleId, options); }
java
public void deleteJobSchedule(String jobScheduleId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { JobScheduleDeleteOptions options = new JobScheduleDeleteOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.applyRequestBehaviors(options); this.parentBatchClient.protocolLayer().jobSchedules().delete(jobScheduleId, options); }
[ "public", "void", "deleteJobSchedule", "(", "String", "jobScheduleId", ",", "Iterable", "<", "BatchClientBehavior", ">", "additionalBehaviors", ")", "throws", "BatchErrorException", ",", "IOException", "{", "JobScheduleDeleteOptions", "options", "=", "new", "JobScheduleDe...
Deletes the specified job schedule. @param jobScheduleId The ID of the job schedule. @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 Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.
[ "Deletes", "the", "specified", "job", "schedule", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/batch/data-plane/src/main/java/com/microsoft/azure/batch/JobScheduleOperations.java#L116-L122
35,859
Azure/azure-sdk-for-java
batch/data-plane/src/main/java/com/microsoft/azure/batch/JobScheduleOperations.java
JobScheduleOperations.disableJobSchedule
public void disableJobSchedule(String jobScheduleId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { JobScheduleDisableOptions options = new JobScheduleDisableOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.applyRequestBehaviors(options); this.parentBatchClient.protocolLayer().jobSchedules().disable(jobScheduleId, options); }
java
public void disableJobSchedule(String jobScheduleId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { JobScheduleDisableOptions options = new JobScheduleDisableOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.applyRequestBehaviors(options); this.parentBatchClient.protocolLayer().jobSchedules().disable(jobScheduleId, options); }
[ "public", "void", "disableJobSchedule", "(", "String", "jobScheduleId", ",", "Iterable", "<", "BatchClientBehavior", ">", "additionalBehaviors", ")", "throws", "BatchErrorException", ",", "IOException", "{", "JobScheduleDisableOptions", "options", "=", "new", "JobSchedule...
Disables the specified job schedule. Disabled schedules do not create new jobs, but may be re-enabled later. @param jobScheduleId The ID of the job schedule. @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 Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.
[ "Disables", "the", "specified", "job", "schedule", ".", "Disabled", "schedules", "do", "not", "create", "new", "jobs", "but", "may", "be", "re", "-", "enabled", "later", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/batch/data-plane/src/main/java/com/microsoft/azure/batch/JobScheduleOperations.java#L293-L299
35,860
Azure/azure-sdk-for-java
batch/data-plane/src/main/java/com/microsoft/azure/batch/JobScheduleOperations.java
JobScheduleOperations.terminateJobSchedule
public void terminateJobSchedule(String jobScheduleId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { JobScheduleTerminateOptions options = new JobScheduleTerminateOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.applyRequestBehaviors(options); this.parentBatchClient.protocolLayer().jobSchedules().terminate(jobScheduleId, options); }
java
public void terminateJobSchedule(String jobScheduleId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { JobScheduleTerminateOptions options = new JobScheduleTerminateOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.applyRequestBehaviors(options); this.parentBatchClient.protocolLayer().jobSchedules().terminate(jobScheduleId, options); }
[ "public", "void", "terminateJobSchedule", "(", "String", "jobScheduleId", ",", "Iterable", "<", "BatchClientBehavior", ">", "additionalBehaviors", ")", "throws", "BatchErrorException", ",", "IOException", "{", "JobScheduleTerminateOptions", "options", "=", "new", "JobSche...
Terminates the specified job schedule. @param jobScheduleId The ID of the job schedule. @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 Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.
[ "Terminates", "the", "specified", "job", "schedule", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/batch/data-plane/src/main/java/com/microsoft/azure/batch/JobScheduleOperations.java#L347-L353
35,861
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/ServerBlobAuditingPoliciesInner.java
ServerBlobAuditingPoliciesInner.getAsync
public Observable<ServerBlobAuditingPolicyInner> getAsync(String resourceGroupName, String serverName) { return getWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<ServerBlobAuditingPolicyInner>, ServerBlobAuditingPolicyInner>() { @Override public ServerBlobAuditingPolicyInner call(ServiceResponse<ServerBlobAuditingPolicyInner> response) { return response.body(); } }); }
java
public Observable<ServerBlobAuditingPolicyInner> getAsync(String resourceGroupName, String serverName) { return getWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<ServerBlobAuditingPolicyInner>, ServerBlobAuditingPolicyInner>() { @Override public ServerBlobAuditingPolicyInner call(ServiceResponse<ServerBlobAuditingPolicyInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "ServerBlobAuditingPolicyInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ")", ".", "map", "(", "new",...
Gets a server'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. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the ServerBlobAuditingPolicyInner object
[ "Gets", "a", "server", "s", "blob", "auditing", "policy", "." ]
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/ServerBlobAuditingPoliciesInner.java#L106-L113
35,862
Azure/azure-sdk-for-java
network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RoutesInner.java
RoutesInner.delete
public void delete(String resourceGroupName, String routeTableName, String routeName) { deleteWithServiceResponseAsync(resourceGroupName, routeTableName, routeName).toBlocking().last().body(); }
java
public void delete(String resourceGroupName, String routeTableName, String routeName) { deleteWithServiceResponseAsync(resourceGroupName, routeTableName, routeName).toBlocking().last().body(); }
[ "public", "void", "delete", "(", "String", "resourceGroupName", ",", "String", "routeTableName", ",", "String", "routeName", ")", "{", "deleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "routeTableName", ",", "routeName", ")", ".", "toBlocking", "(", "...
Deletes the specified route from a route table. @param resourceGroupName The name of the resource group. @param routeTableName The name of the route table. @param routeName The name of the route. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Deletes", "the", "specified", "route", "from", "a", "route", "table", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/network/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/RoutesInner.java#L104-L106
35,863
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/entityoperations/DefaultListOperation.java
DefaultListOperation.set
public DefaultListOperation<T> set(String parameterName, String parameterValue) { queryParameters.add(parameterName, parameterValue); return this; }
java
public DefaultListOperation<T> set(String parameterName, String parameterValue) { queryParameters.add(parameterName, parameterValue); return this; }
[ "public", "DefaultListOperation", "<", "T", ">", "set", "(", "String", "parameterName", ",", "String", "parameterValue", ")", "{", "queryParameters", ".", "add", "(", "parameterName", ",", "parameterValue", ")", ";", "return", "this", ";", "}" ]
Add an arbitrary query parameter @param parameterName name of query parameter @param parameterValue value for query parameter @return this
[ "Add", "an", "arbitrary", "query", "parameter" ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/entityoperations/DefaultListOperation.java#L81-L85
35,864
Azure/azure-sdk-for-java
appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceCertificateOrdersInner.java
AppServiceCertificateOrdersInner.delete
public void delete(String resourceGroupName, String certificateOrderName) { deleteWithServiceResponseAsync(resourceGroupName, certificateOrderName).toBlocking().single().body(); }
java
public void delete(String resourceGroupName, String certificateOrderName) { deleteWithServiceResponseAsync(resourceGroupName, certificateOrderName).toBlocking().single().body(); }
[ "public", "void", "delete", "(", "String", "resourceGroupName", ",", "String", "certificateOrderName", ")", "{", "deleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "certificateOrderName", ")", ".", "toBlocking", "(", ")", ".", "single", "(", ")", ".", ...
Delete an existing certificate order. Delete an existing certificate order. @param resourceGroupName Name of the resource group to which the resource belongs. @param certificateOrderName Name of the certificate order. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Delete", "an", "existing", "certificate", "order", ".", "Delete", "an", "existing", "certificate", "order", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceCertificateOrdersInner.java#L772-L774
35,865
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/DatabaseTableAuditingPoliciesInner.java
DatabaseTableAuditingPoliciesInner.getAsync
public Observable<DatabaseTableAuditingPolicyInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<DatabaseTableAuditingPolicyInner>, DatabaseTableAuditingPolicyInner>() { @Override public DatabaseTableAuditingPolicyInner call(ServiceResponse<DatabaseTableAuditingPolicyInner> response) { return response.body(); } }); }
java
public Observable<DatabaseTableAuditingPolicyInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<DatabaseTableAuditingPolicyInner>, DatabaseTableAuditingPolicyInner>() { @Override public DatabaseTableAuditingPolicyInner call(ServiceResponse<DatabaseTableAuditingPolicyInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "DatabaseTableAuditingPolicyInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "databaseName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName"...
Gets a database'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. @param databaseName The name of the database for which the table audit policy is defined. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the DatabaseTableAuditingPolicyInner object
[ "Gets", "a", "database", "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/DatabaseTableAuditingPoliciesInner.java#L109-L116
35,866
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/DatabaseTableAuditingPoliciesInner.java
DatabaseTableAuditingPoliciesInner.createOrUpdateAsync
public Observable<DatabaseTableAuditingPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseTableAuditingPolicyInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, databaseName, parameters).map(new Func1<ServiceResponse<DatabaseTableAuditingPolicyInner>, DatabaseTableAuditingPolicyInner>() { @Override public DatabaseTableAuditingPolicyInner call(ServiceResponse<DatabaseTableAuditingPolicyInner> response) { return response.body(); } }); }
java
public Observable<DatabaseTableAuditingPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseTableAuditingPolicyInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, databaseName, parameters).map(new Func1<ServiceResponse<DatabaseTableAuditingPolicyInner>, DatabaseTableAuditingPolicyInner>() { @Override public DatabaseTableAuditingPolicyInner call(ServiceResponse<DatabaseTableAuditingPolicyInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "DatabaseTableAuditingPolicyInner", ">", "createOrUpdateAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "databaseName", ",", "DatabaseTableAuditingPolicyInner", "parameters", ")", "{", "return", "createOrU...
Creates or updates a database'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. @param databaseName The name of the database for which the table auditing policy will be defined. @param parameters The database table auditing policy. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the DatabaseTableAuditingPolicyInner object
[ "Creates", "or", "updates", "a", "database", "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/DatabaseTableAuditingPoliciesInner.java#L206-L213
35,867
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/DatabaseTableAuditingPoliciesInner.java
DatabaseTableAuditingPoliciesInner.listByDatabaseAsync
public Observable<DatabaseTableAuditingPolicyListResultInner> listByDatabaseAsync(String resourceGroupName, String serverName, String databaseName) { return listByDatabaseWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<DatabaseTableAuditingPolicyListResultInner>, DatabaseTableAuditingPolicyListResultInner>() { @Override public DatabaseTableAuditingPolicyListResultInner call(ServiceResponse<DatabaseTableAuditingPolicyListResultInner> response) { return response.body(); } }); }
java
public Observable<DatabaseTableAuditingPolicyListResultInner> listByDatabaseAsync(String resourceGroupName, String serverName, String databaseName) { return listByDatabaseWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<DatabaseTableAuditingPolicyListResultInner>, DatabaseTableAuditingPolicyListResultInner>() { @Override public DatabaseTableAuditingPolicyListResultInner call(ServiceResponse<DatabaseTableAuditingPolicyListResultInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "DatabaseTableAuditingPolicyListResultInner", ">", "listByDatabaseAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ",", "String", "databaseName", ")", "{", "return", "listByDatabaseWithServiceResponseAsync", "(", "resourceG...
Lists a database'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. @param databaseName The name of the database for which the table audit policy is defined. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the DatabaseTableAuditingPolicyListResultInner object
[ "Lists", "a", "database", "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/DatabaseTableAuditingPoliciesInner.java#L306-L313
35,868
Azure/azure-sdk-for-java
applicationinsights/resource-manager/v2015_05_01/src/main/java/com/microsoft/azure/management/applicationinsights/v2015_05_01/implementation/AnnotationsInner.java
AnnotationsInner.deleteAsync
public Observable<Object> deleteAsync(String resourceGroupName, String resourceName, String annotationId) { return deleteWithServiceResponseAsync(resourceGroupName, resourceName, annotationId).map(new Func1<ServiceResponse<Object>, Object>() { @Override public Object call(ServiceResponse<Object> response) { return response.body(); } }); }
java
public Observable<Object> deleteAsync(String resourceGroupName, String resourceName, String annotationId) { return deleteWithServiceResponseAsync(resourceGroupName, resourceName, annotationId).map(new Func1<ServiceResponse<Object>, Object>() { @Override public Object call(ServiceResponse<Object> response) { return response.body(); } }); }
[ "public", "Observable", "<", "Object", ">", "deleteAsync", "(", "String", "resourceGroupName", ",", "String", "resourceName", ",", "String", "annotationId", ")", "{", "return", "deleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "resourceName", ",", "anno...
Delete an Annotation of an Application Insights component. @param resourceGroupName The name of the resource group. @param resourceName The name of the Application Insights component resource. @param annotationId The unique annotation ID. This is unique within a Application Insights component. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the Object object
[ "Delete", "an", "Annotation", "of", "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/AnnotationsInner.java#L315-L322
35,869
Azure/azure-sdk-for-java
batch/data-plane/src/main/java/com/microsoft/azure/batch/JobOperations.java
JobOperations.getAllJobsLifetimeStatistics
public JobStatistics getAllJobsLifetimeStatistics(Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { JobGetAllLifetimeStatisticsOptions options = new JobGetAllLifetimeStatisticsOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.applyRequestBehaviors(options); return this.parentBatchClient.protocolLayer().jobs().getAllLifetimeStatistics(options); }
java
public JobStatistics getAllJobsLifetimeStatistics(Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { JobGetAllLifetimeStatisticsOptions options = new JobGetAllLifetimeStatisticsOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.applyRequestBehaviors(options); return this.parentBatchClient.protocolLayer().jobs().getAllLifetimeStatistics(options); }
[ "public", "JobStatistics", "getAllJobsLifetimeStatistics", "(", "Iterable", "<", "BatchClientBehavior", ">", "additionalBehaviors", ")", "throws", "BatchErrorException", ",", "IOException", "{", "JobGetAllLifetimeStatisticsOptions", "options", "=", "new", "JobGetAllLifetimeStat...
Gets lifetime summary statistics for all of the jobs in the current account. @param additionalBehaviors A collection of {@link BatchClientBehavior} instances that are applied to the Batch service request. @return The aggregated job statistics. @throws BatchErrorException Exception thrown when an error response is received from the Batch service. @throws IOException Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.
[ "Gets", "lifetime", "summary", "statistics", "for", "all", "of", "the", "jobs", "in", "the", "current", "account", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/batch/data-plane/src/main/java/com/microsoft/azure/batch/JobOperations.java#L98-L104
35,870
Azure/azure-sdk-for-java
batch/data-plane/src/main/java/com/microsoft/azure/batch/JobOperations.java
JobOperations.deleteJob
public void deleteJob(String jobId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { JobDeleteOptions options = new JobDeleteOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.applyRequestBehaviors(options); this.parentBatchClient.protocolLayer().jobs().delete(jobId, options); }
java
public void deleteJob(String jobId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { JobDeleteOptions options = new JobDeleteOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.applyRequestBehaviors(options); this.parentBatchClient.protocolLayer().jobs().delete(jobId, options); }
[ "public", "void", "deleteJob", "(", "String", "jobId", ",", "Iterable", "<", "BatchClientBehavior", ">", "additionalBehaviors", ")", "throws", "BatchErrorException", ",", "IOException", "{", "JobDeleteOptions", "options", "=", "new", "JobDeleteOptions", "(", ")", ";...
Deletes the specified job. @param jobId The ID of the job. @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 Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.
[ "Deletes", "the", "specified", "job", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/batch/data-plane/src/main/java/com/microsoft/azure/batch/JobOperations.java#L343-L349
35,871
Azure/azure-sdk-for-java
batch/data-plane/src/main/java/com/microsoft/azure/batch/JobOperations.java
JobOperations.enableJob
public void enableJob(String jobId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { JobEnableOptions options = new JobEnableOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.applyRequestBehaviors(options); this.parentBatchClient.protocolLayer().jobs().enable(jobId, options); }
java
public void enableJob(String jobId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { JobEnableOptions options = new JobEnableOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.applyRequestBehaviors(options); this.parentBatchClient.protocolLayer().jobs().enable(jobId, options); }
[ "public", "void", "enableJob", "(", "String", "jobId", ",", "Iterable", "<", "BatchClientBehavior", ">", "additionalBehaviors", ")", "throws", "BatchErrorException", ",", "IOException", "{", "JobEnableOptions", "options", "=", "new", "JobEnableOptions", "(", ")", ";...
Enables the specified job, allowing new tasks to run. @param jobId The ID of the job. @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 Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.
[ "Enables", "the", "specified", "job", "allowing", "new", "tasks", "to", "run", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/batch/data-plane/src/main/java/com/microsoft/azure/batch/JobOperations.java#L410-L416
35,872
Azure/azure-sdk-for-java
batch/data-plane/src/main/java/com/microsoft/azure/batch/JobOperations.java
JobOperations.updateJob
public void updateJob(String jobId, PoolInformation poolInfo, Integer priority, JobConstraints constraints, OnAllTasksComplete onAllTasksComplete, List<MetadataItem> metadata, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { JobUpdateOptions options = new JobUpdateOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.applyRequestBehaviors(options); JobUpdateParameter param = new JobUpdateParameter() .withPriority(priority) .withPoolInfo(poolInfo) .withConstraints(constraints) .withOnAllTasksComplete(onAllTasksComplete) .withMetadata(metadata); this.parentBatchClient.protocolLayer().jobs().update(jobId, param, options); }
java
public void updateJob(String jobId, PoolInformation poolInfo, Integer priority, JobConstraints constraints, OnAllTasksComplete onAllTasksComplete, List<MetadataItem> metadata, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { JobUpdateOptions options = new JobUpdateOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.applyRequestBehaviors(options); JobUpdateParameter param = new JobUpdateParameter() .withPriority(priority) .withPoolInfo(poolInfo) .withConstraints(constraints) .withOnAllTasksComplete(onAllTasksComplete) .withMetadata(metadata); this.parentBatchClient.protocolLayer().jobs().update(jobId, param, options); }
[ "public", "void", "updateJob", "(", "String", "jobId", ",", "PoolInformation", "poolInfo", ",", "Integer", "priority", ",", "JobConstraints", "constraints", ",", "OnAllTasksComplete", "onAllTasksComplete", ",", "List", "<", "MetadataItem", ">", "metadata", ",", "Ite...
Updates the specified job. This method performs a full replace of all updatable properties of the job. For example, if the constraints parameter is null, then the Batch service removes the job's existing constraints and replaces them with the default constraints. @param jobId The ID of the job. @param poolInfo The pool on which the Batch service runs the job's tasks. You may change the pool for a job only when the job is disabled. If you specify an autoPoolSpecification specification in the poolInfo, only the keepAlive property can be updated, and then only if the auto pool has a poolLifetimeOption of job. @param priority The priority of the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. If null, it is set to the default value 0. @param constraints The execution constraints for the job. If null, the constraints are cleared. @param onAllTasksComplete Specifies an action the Batch service should take when all tasks in the job are in the completed state. @param metadata A list of name-value pairs associated with the job as metadata. If null, it takes the default value of an empty list; in effect, any existing metadata is deleted. @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 Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.
[ "Updates", "the", "specified", "job", ".", "This", "method", "performs", "a", "full", "replace", "of", "all", "updatable", "properties", "of", "the", "job", ".", "For", "example", "if", "the", "constraints", "parameter", "is", "null", "then", "the", "Batch",...
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/batch/data-plane/src/main/java/com/microsoft/azure/batch/JobOperations.java#L479-L493
35,873
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/ServerConnectionPoliciesInner.java
ServerConnectionPoliciesInner.getAsync
public Observable<ServerConnectionPolicyInner> getAsync(String resourceGroupName, String serverName) { return getWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<ServerConnectionPolicyInner>, ServerConnectionPolicyInner>() { @Override public ServerConnectionPolicyInner call(ServiceResponse<ServerConnectionPolicyInner> response) { return response.body(); } }); }
java
public Observable<ServerConnectionPolicyInner> getAsync(String resourceGroupName, String serverName) { return getWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<ServerConnectionPolicyInner>, ServerConnectionPolicyInner>() { @Override public ServerConnectionPolicyInner call(ServiceResponse<ServerConnectionPolicyInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "ServerConnectionPolicyInner", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ")", "{", "return", "getWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ")", ".", "map", "(", "new", ...
Gets the server's secure connection 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. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the ServerConnectionPolicyInner object
[ "Gets", "the", "server", "s", "secure", "connection", "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/ServerConnectionPoliciesInner.java#L199-L206
35,874
Azure/azure-sdk-for-java
common/azure-common-mgmt/src/main/java/com/azure/common/mgmt/OperationStatus.java
OperationStatus.buildDescription
public OperationDescription buildDescription() { if (this.isDone()) { return null; } return new OperationDescription( this.pollStrategy.methodParser().fullyQualifiedMethodName(), this.pollStrategy.strategyData(), this.originalHttpRequest); }
java
public OperationDescription buildDescription() { if (this.isDone()) { return null; } return new OperationDescription( this.pollStrategy.methodParser().fullyQualifiedMethodName(), this.pollStrategy.strategyData(), this.originalHttpRequest); }
[ "public", "OperationDescription", "buildDescription", "(", ")", "{", "if", "(", "this", ".", "isDone", "(", ")", ")", "{", "return", "null", ";", "}", "return", "new", "OperationDescription", "(", "this", ".", "pollStrategy", ".", "methodParser", "(", ")", ...
Builds an object that can be used to resume the polling of the operation. @return The OperationDescription.
[ "Builds", "an", "object", "that", "can", "be", "used", "to", "resume", "the", "polling", "of", "the", "operation", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common-mgmt/src/main/java/com/azure/common/mgmt/OperationStatus.java#L90-L99
35,875
Azure/azure-sdk-for-java
servicebus/data-plane/azure-servicebus/src/main/java/com/microsoft/azure/servicebus/management/SubscriptionDescription.java
SubscriptionDescription.setLockDuration
public void setLockDuration(Duration lockDuration) { this.lockDuration = lockDuration; if (this.lockDuration.compareTo(ManagementClientConstants.MAX_DURATION) > 0) { this.lockDuration = ManagementClientConstants.MAX_DURATION; } }
java
public void setLockDuration(Duration lockDuration) { this.lockDuration = lockDuration; if (this.lockDuration.compareTo(ManagementClientConstants.MAX_DURATION) > 0) { this.lockDuration = ManagementClientConstants.MAX_DURATION; } }
[ "public", "void", "setLockDuration", "(", "Duration", "lockDuration", ")", "{", "this", ".", "lockDuration", "=", "lockDuration", ";", "if", "(", "this", ".", "lockDuration", ".", "compareTo", "(", "ManagementClientConstants", ".", "MAX_DURATION", ")", ">", "0",...
Sets The amount of time that the message is locked by a given receiver so that no other receiver receives the same message. @param lockDuration - The duration of a peek lock. Max value is 5 minutes.
[ "Sets", "The", "amount", "of", "time", "that", "the", "message", "is", "locked", "by", "a", "given", "receiver", "so", "that", "no", "other", "receiver", "receives", "the", "same", "message", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/servicebus/data-plane/azure-servicebus/src/main/java/com/microsoft/azure/servicebus/management/SubscriptionDescription.java#L97-L103
35,876
Azure/azure-sdk-for-java
keyvault/data-plane/azure-keyvault-cryptography/src/main/java/com/microsoft/azure/keyvault/cryptography/RsaKey.java
RsaKey.fromJsonWebKey
public static RsaKey fromJsonWebKey(JsonWebKey jwk, boolean includePrivateParameters, Provider provider) { if (jwk.kid() != null) { return new RsaKey(jwk.kid(), jwk.toRSA(includePrivateParameters, provider)); } else { throw new IllegalArgumentException("Json Web Key must have a kid"); } }
java
public static RsaKey fromJsonWebKey(JsonWebKey jwk, boolean includePrivateParameters, Provider provider) { if (jwk.kid() != null) { return new RsaKey(jwk.kid(), jwk.toRSA(includePrivateParameters, provider)); } else { throw new IllegalArgumentException("Json Web Key must have a kid"); } }
[ "public", "static", "RsaKey", "fromJsonWebKey", "(", "JsonWebKey", "jwk", ",", "boolean", "includePrivateParameters", ",", "Provider", "provider", ")", "{", "if", "(", "jwk", ".", "kid", "(", ")", "!=", "null", ")", "{", "return", "new", "RsaKey", "(", "jw...
Converts JSON web key to RsaKey and include the private key if set to true. @param provider the Java security provider. @param includePrivateParameters true if the RSA key pair should include the private key. False otherwise. @return RsaKey
[ "Converts", "JSON", "web", "key", "to", "RsaKey", "and", "include", "the", "private", "key", "if", "set", "to", "true", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault-cryptography/src/main/java/com/microsoft/azure/keyvault/cryptography/RsaKey.java#L165-L171
35,877
Azure/azure-sdk-for-java
storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/StorageAccountsInner.java
StorageAccountsInner.checkNameAvailabilityAsync
public Observable<CheckNameAvailabilityResultInner> checkNameAvailabilityAsync(String name) { return checkNameAvailabilityWithServiceResponseAsync(name).map(new Func1<ServiceResponse<CheckNameAvailabilityResultInner>, CheckNameAvailabilityResultInner>() { @Override public CheckNameAvailabilityResultInner call(ServiceResponse<CheckNameAvailabilityResultInner> response) { return response.body(); } }); }
java
public Observable<CheckNameAvailabilityResultInner> checkNameAvailabilityAsync(String name) { return checkNameAvailabilityWithServiceResponseAsync(name).map(new Func1<ServiceResponse<CheckNameAvailabilityResultInner>, CheckNameAvailabilityResultInner>() { @Override public CheckNameAvailabilityResultInner call(ServiceResponse<CheckNameAvailabilityResultInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "CheckNameAvailabilityResultInner", ">", "checkNameAvailabilityAsync", "(", "String", "name", ")", "{", "return", "checkNameAvailabilityWithServiceResponseAsync", "(", "name", ")", ".", "map", "(", "new", "Func1", "<", "ServiceResponse", "<"...
Checks that the storage account name is valid and is not already in use. @param name The storage account name. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the CheckNameAvailabilityResultInner object
[ "Checks", "that", "the", "storage", "account", "name", "is", "valid", "and", "is", "not", "already", "in", "use", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/StorageAccountsInner.java#L167-L174
35,878
Azure/azure-sdk-for-java
storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/StorageAccountsInner.java
StorageAccountsInner.listByResourceGroupAsync
public Observable<Page<StorageAccountInner>> listByResourceGroupAsync(String resourceGroupName) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1<ServiceResponse<List<StorageAccountInner>>, Page<StorageAccountInner>>() { @Override public Page<StorageAccountInner> call(ServiceResponse<List<StorageAccountInner>> response) { PageImpl<StorageAccountInner> page = new PageImpl<>(); page.setItems(response.body()); return page; } }); }
java
public Observable<Page<StorageAccountInner>> listByResourceGroupAsync(String resourceGroupName) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1<ServiceResponse<List<StorageAccountInner>>, Page<StorageAccountInner>>() { @Override public Page<StorageAccountInner> call(ServiceResponse<List<StorageAccountInner>> response) { PageImpl<StorageAccountInner> page = new PageImpl<>(); page.setItems(response.body()); return page; } }); }
[ "public", "Observable", "<", "Page", "<", "StorageAccountInner", ">", ">", "listByResourceGroupAsync", "(", "String", "resourceGroupName", ")", "{", "return", "listByResourceGroupWithServiceResponseAsync", "(", "resourceGroupName", ")", ".", "map", "(", "new", "Func1", ...
Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this. @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. @return the observable to the List&lt;StorageAccountInner&gt; object
[ "Lists", "all", "the", "storage", "accounts", "available", "under", "the", "given", "resource", "group", ".", "Note", "that", "storage", "keys", "are", "not", "returned", ";", "use", "the", "ListKeys", "operation", "for", "this", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/StorageAccountsInner.java#L770-L779
35,879
Azure/azure-sdk-for-java
common/azure-common-auth/src/main/java/com/azure/common/auth/credentials/AzureTokenCredentials.java
AzureTokenCredentials.getTokenFromUri
private Mono<String> getTokenFromUri(String uri) { URL url = null; try { url = new URL(uri); } catch (MalformedURLException e) { return Mono.error(e); } String host = String.format("%s://%s%s/", url.getProtocol(), url.getHost(), url.getPort() > 0 ? ":" + url.getPort() : ""); String resource = environment().managementEndpoint(); for (Map.Entry<String, String> endpoint : environment().endpoints().entrySet()) { if (host.contains(endpoint.getValue())) { if (endpoint.getKey().equals(Endpoint.KEYVAULT.identifier())) { resource = String.format("https://%s/", endpoint.getValue().replaceAll("^\\.*", "")); break; } else if (endpoint.getKey().equals(Endpoint.GRAPH.identifier())) { resource = environment().graphEndpoint(); break; } else if (endpoint.getKey().equals(Endpoint.LOG_ANALYTICS.identifier())) { resource = environment().logAnalyticsEndpoint(); break; } else if (endpoint.getKey().equals(Endpoint.APPLICATION_INSIGHTS.identifier())) { resource = environment().applicationInsightsEndpoint(); break; } else if (endpoint.getKey().equals(Endpoint.DATA_LAKE_STORE.identifier()) || endpoint.getKey().equals(Endpoint.DATA_LAKE_ANALYTICS.identifier())) { resource = environment().dataLakeEndpointResourceId(); break; } } } return getToken(resource); }
java
private Mono<String> getTokenFromUri(String uri) { URL url = null; try { url = new URL(uri); } catch (MalformedURLException e) { return Mono.error(e); } String host = String.format("%s://%s%s/", url.getProtocol(), url.getHost(), url.getPort() > 0 ? ":" + url.getPort() : ""); String resource = environment().managementEndpoint(); for (Map.Entry<String, String> endpoint : environment().endpoints().entrySet()) { if (host.contains(endpoint.getValue())) { if (endpoint.getKey().equals(Endpoint.KEYVAULT.identifier())) { resource = String.format("https://%s/", endpoint.getValue().replaceAll("^\\.*", "")); break; } else if (endpoint.getKey().equals(Endpoint.GRAPH.identifier())) { resource = environment().graphEndpoint(); break; } else if (endpoint.getKey().equals(Endpoint.LOG_ANALYTICS.identifier())) { resource = environment().logAnalyticsEndpoint(); break; } else if (endpoint.getKey().equals(Endpoint.APPLICATION_INSIGHTS.identifier())) { resource = environment().applicationInsightsEndpoint(); break; } else if (endpoint.getKey().equals(Endpoint.DATA_LAKE_STORE.identifier()) || endpoint.getKey().equals(Endpoint.DATA_LAKE_ANALYTICS.identifier())) { resource = environment().dataLakeEndpointResourceId(); break; } } } return getToken(resource); }
[ "private", "Mono", "<", "String", ">", "getTokenFromUri", "(", "String", "uri", ")", "{", "URL", "url", "=", "null", ";", "try", "{", "url", "=", "new", "URL", "(", "uri", ")", ";", "}", "catch", "(", "MalformedURLException", "e", ")", "{", "return",...
Gets the token from the given endpoint. @param uri the url @return the token
[ "Gets", "the", "token", "from", "the", "given", "endpoint", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common-auth/src/main/java/com/azure/common/auth/credentials/AzureTokenCredentials.java#L46-L77
35,880
Azure/azure-sdk-for-java
edgegateway/resource-manager/v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/implementation/AlertsInner.java
AlertsInner.getAsync
public Observable<AlertInner> getAsync(String deviceName, String name, String resourceGroupName) { return getWithServiceResponseAsync(deviceName, name, resourceGroupName).map(new Func1<ServiceResponse<AlertInner>, AlertInner>() { @Override public AlertInner call(ServiceResponse<AlertInner> response) { return response.body(); } }); }
java
public Observable<AlertInner> getAsync(String deviceName, String name, String resourceGroupName) { return getWithServiceResponseAsync(deviceName, name, resourceGroupName).map(new Func1<ServiceResponse<AlertInner>, AlertInner>() { @Override public AlertInner call(ServiceResponse<AlertInner> response) { return response.body(); } }); }
[ "public", "Observable", "<", "AlertInner", ">", "getAsync", "(", "String", "deviceName", ",", "String", "name", ",", "String", "resourceGroupName", ")", "{", "return", "getWithServiceResponseAsync", "(", "deviceName", ",", "name", ",", "resourceGroupName", ")", "....
Gets an alert by name. @param deviceName The device name. @param name The alert name. @param resourceGroupName The resource group name. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the AlertInner object
[ "Gets", "an", "alert", "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/AlertsInner.java#L235-L242
35,881
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKey.java
ContentKey.create
public static Creator create(String id, ContentKeyType contentKeyType, String encryptedContentKey) { return new Creator(id, contentKeyType, encryptedContentKey); }
java
public static Creator create(String id, ContentKeyType contentKeyType, String encryptedContentKey) { return new Creator(id, contentKeyType, encryptedContentKey); }
[ "public", "static", "Creator", "create", "(", "String", "id", ",", "ContentKeyType", "contentKeyType", ",", "String", "encryptedContentKey", ")", "{", "return", "new", "Creator", "(", "id", ",", "contentKeyType", ",", "encryptedContentKey", ")", ";", "}" ]
Creates an operation to create a new content key. @param id the id @param contentKeyType the content key type @param encryptedContentKey the encrypted content key @return The operation
[ "Creates", "an", "operation", "to", "create", "a", "new", "content", "key", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKey.java#L77-L80
35,882
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKey.java
ContentKey.get
public static EntityGetOperation<ContentKeyInfo> get(String contentKeyId) { return new DefaultGetOperation<ContentKeyInfo>(ENTITY_SET, contentKeyId, ContentKeyInfo.class); }
java
public static EntityGetOperation<ContentKeyInfo> get(String contentKeyId) { return new DefaultGetOperation<ContentKeyInfo>(ENTITY_SET, contentKeyId, ContentKeyInfo.class); }
[ "public", "static", "EntityGetOperation", "<", "ContentKeyInfo", ">", "get", "(", "String", "contentKeyId", ")", "{", "return", "new", "DefaultGetOperation", "<", "ContentKeyInfo", ">", "(", "ENTITY_SET", ",", "contentKeyId", ",", "ContentKeyInfo", ".", "class", "...
Create an operation that will retrieve the given content key. @param contentKeyId id of content key to retrieve @return the operation
[ "Create", "an", "operation", "that", "will", "retrieve", "the", "given", "content", "key", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKey.java#L209-L212
35,883
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKey.java
ContentKey.list
public static DefaultListOperation<ContentKeyInfo> list( LinkInfo<ContentKeyInfo> link) { return new DefaultListOperation<ContentKeyInfo>(link.getHref(), new GenericType<ListResult<ContentKeyInfo>>() { }); }
java
public static DefaultListOperation<ContentKeyInfo> list( LinkInfo<ContentKeyInfo> link) { return new DefaultListOperation<ContentKeyInfo>(link.getHref(), new GenericType<ListResult<ContentKeyInfo>>() { }); }
[ "public", "static", "DefaultListOperation", "<", "ContentKeyInfo", ">", "list", "(", "LinkInfo", "<", "ContentKeyInfo", ">", "link", ")", "{", "return", "new", "DefaultListOperation", "<", "ContentKeyInfo", ">", "(", "link", ".", "getHref", "(", ")", ",", "new...
Create an operation that will list all the content keys at the given link. @param link Link to request content keys from. @return The list operation.
[ "Create", "an", "operation", "that", "will", "list", "all", "the", "content", "keys", "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/ContentKey.java#L233-L238
35,884
Azure/azure-sdk-for-java
mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKey.java
ContentKey.rebind
public static EntityTypeActionOperation<String> rebind(String contentKeyId, String x509Certificate) { return new RebindContentKeyActionOperation(contentKeyId, x509Certificate); }
java
public static EntityTypeActionOperation<String> rebind(String contentKeyId, String x509Certificate) { return new RebindContentKeyActionOperation(contentKeyId, x509Certificate); }
[ "public", "static", "EntityTypeActionOperation", "<", "String", ">", "rebind", "(", "String", "contentKeyId", ",", "String", "x509Certificate", ")", "{", "return", "new", "RebindContentKeyActionOperation", "(", "contentKeyId", ",", "x509Certificate", ")", ";", "}" ]
Rebind content key with specified content key and X509 Certificate. @param contentKeyId the content key id @param x509Certificate the x509 certificate @return the entity action operation
[ "Rebind", "content", "key", "with", "specified", "content", "key", "and", "X509", "Certificate", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKey.java#L260-L264
35,885
Azure/azure-sdk-for-java
network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/ServiceEndpointPolicyDefinitionsInner.java
ServiceEndpointPolicyDefinitionsInner.delete
public void delete(String resourceGroupName, String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName) { deleteWithServiceResponseAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName).toBlocking().last().body(); }
java
public void delete(String resourceGroupName, String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName) { deleteWithServiceResponseAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName).toBlocking().last().body(); }
[ "public", "void", "delete", "(", "String", "resourceGroupName", ",", "String", "serviceEndpointPolicyName", ",", "String", "serviceEndpointPolicyDefinitionName", ")", "{", "deleteWithServiceResponseAsync", "(", "resourceGroupName", ",", "serviceEndpointPolicyName", ",", "serv...
Deletes the specified ServiceEndpoint policy definitions. @param resourceGroupName The name of the resource group. @param serviceEndpointPolicyName The name of the Service Endpoint Policy. @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition. @throws IllegalArgumentException thrown if parameters fail the validation @throws CloudException thrown if the request is rejected by server @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
[ "Deletes", "the", "specified", "ServiceEndpoint", "policy", "definitions", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/ServiceEndpointPolicyDefinitionsInner.java#L104-L106
35,886
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/BackupJobsInner.java
BackupJobsInner.listNextAsync
public Observable<Page<JobResourceInner>> listNextAsync(final String nextPageLink) { return listNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<JobResourceInner>>, Page<JobResourceInner>>() { @Override public Page<JobResourceInner> call(ServiceResponse<Page<JobResourceInner>> response) { return response.body(); } }); }
java
public Observable<Page<JobResourceInner>> listNextAsync(final String nextPageLink) { return listNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<JobResourceInner>>, Page<JobResourceInner>>() { @Override public Page<JobResourceInner> call(ServiceResponse<Page<JobResourceInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "Page", "<", "JobResourceInner", ">", ">", "listNextAsync", "(", "final", "String", "nextPageLink", ")", "{", "return", "listNextWithServiceResponseAsync", "(", "nextPageLink", ")", ".", "map", "(", "new", "Func1", "<", "ServiceRespons...
Provides a pageable list of jobs. @param nextPageLink The NextLink from the previous successful call to List operation. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the PagedList&lt;JobResourceInner&gt; object
[ "Provides", "a", "pageable", "list", "of", "jobs", "." ]
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/BackupJobsInner.java#L363-L371
35,887
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/serializer/HttpResponseBodyDecoder.java
HttpResponseBodyDecoder.decode
static Mono<Object> decode(HttpResponse httpResponse, SerializerAdapter serializer, HttpResponseDecodeData decodeData) { ensureRequestSet(httpResponse); // return Mono.defer(() -> { if (isErrorStatus(httpResponse, decodeData)) { return httpResponse.bodyAsString() .flatMap(bodyString -> { try { final Object decodedErrorEntity = deserializeBody(bodyString, decodeData.getUnexpectedException(httpResponse.statusCode()).exceptionBodyType(), null, serializer, SerializerEncoding.fromHeaders(httpResponse.headers())); return decodedErrorEntity == null ? Mono.empty() : Mono.just(decodedErrorEntity); } catch (IOException | MalformedValueException ignored) { // This translates in RestProxy as a RestException with no deserialized body. // The response content will still be accessible via the .response() member. } return Mono.empty(); }); } else if (httpResponse.request().httpMethod() == HttpMethod.HEAD) { // RFC: A response to a HEAD method should not have a body. If so, it must be ignored return Mono.empty(); } else if (!isReturnTypeDecodable(decodeData)) { return Mono.empty(); } else { return httpResponse.bodyAsString() .flatMap(bodyString -> { try { final Object decodedSuccessEntity = deserializeBody(bodyString, extractEntityTypeFromReturnType(decodeData), decodeData.returnValueWireType(), serializer, SerializerEncoding.fromHeaders(httpResponse.headers())); return decodedSuccessEntity == null ? Mono.empty() : Mono.just(decodedSuccessEntity); } catch (MalformedValueException e) { return Mono.error(new HttpRequestException("HTTP response has a malformed body.", httpResponse, e)); } catch (IOException e) { return Mono.error(new HttpRequestException("Deserialization Failed.", httpResponse, e)); } }); } }); }
java
static Mono<Object> decode(HttpResponse httpResponse, SerializerAdapter serializer, HttpResponseDecodeData decodeData) { ensureRequestSet(httpResponse); // return Mono.defer(() -> { if (isErrorStatus(httpResponse, decodeData)) { return httpResponse.bodyAsString() .flatMap(bodyString -> { try { final Object decodedErrorEntity = deserializeBody(bodyString, decodeData.getUnexpectedException(httpResponse.statusCode()).exceptionBodyType(), null, serializer, SerializerEncoding.fromHeaders(httpResponse.headers())); return decodedErrorEntity == null ? Mono.empty() : Mono.just(decodedErrorEntity); } catch (IOException | MalformedValueException ignored) { // This translates in RestProxy as a RestException with no deserialized body. // The response content will still be accessible via the .response() member. } return Mono.empty(); }); } else if (httpResponse.request().httpMethod() == HttpMethod.HEAD) { // RFC: A response to a HEAD method should not have a body. If so, it must be ignored return Mono.empty(); } else if (!isReturnTypeDecodable(decodeData)) { return Mono.empty(); } else { return httpResponse.bodyAsString() .flatMap(bodyString -> { try { final Object decodedSuccessEntity = deserializeBody(bodyString, extractEntityTypeFromReturnType(decodeData), decodeData.returnValueWireType(), serializer, SerializerEncoding.fromHeaders(httpResponse.headers())); return decodedSuccessEntity == null ? Mono.empty() : Mono.just(decodedSuccessEntity); } catch (MalformedValueException e) { return Mono.error(new HttpRequestException("HTTP response has a malformed body.", httpResponse, e)); } catch (IOException e) { return Mono.error(new HttpRequestException("Deserialization Failed.", httpResponse, e)); } }); } }); }
[ "static", "Mono", "<", "Object", ">", "decode", "(", "HttpResponse", "httpResponse", ",", "SerializerAdapter", "serializer", ",", "HttpResponseDecodeData", "decodeData", ")", "{", "ensureRequestSet", "(", "httpResponse", ")", ";", "//", "return", "Mono", ".", "def...
Decodes body of a http response. The content reading and decoding happens when caller subscribe to the returned {@code Mono<Object>}, if the response body is not decodable then {@code Mono.empty()} will be returned. @param httpResponse the response containing the body to be decoded @param serializer the adapter to use for decoding @param decodeData the necessary data required to decode a Http response @return publisher that emits decoded response body upon subscription if body is decodable, no emission if the body is not-decodable
[ "Decodes", "body", "of", "a", "http", "response", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/serializer/HttpResponseBodyDecoder.java#L48-L91
35,888
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/serializer/HttpResponseBodyDecoder.java
HttpResponseBodyDecoder.isErrorStatus
static boolean isErrorStatus(HttpResponse httpResponse, HttpResponseDecodeData decodeData) { final int[] expectedStatuses = decodeData.expectedStatusCodes(); if (expectedStatuses != null) { return !contains(expectedStatuses, httpResponse.statusCode()); } else { return httpResponse.statusCode() / 100 != 2; } }
java
static boolean isErrorStatus(HttpResponse httpResponse, HttpResponseDecodeData decodeData) { final int[] expectedStatuses = decodeData.expectedStatusCodes(); if (expectedStatuses != null) { return !contains(expectedStatuses, httpResponse.statusCode()); } else { return httpResponse.statusCode() / 100 != 2; } }
[ "static", "boolean", "isErrorStatus", "(", "HttpResponse", "httpResponse", ",", "HttpResponseDecodeData", "decodeData", ")", "{", "final", "int", "[", "]", "expectedStatuses", "=", "decodeData", ".", "expectedStatusCodes", "(", ")", ";", "if", "(", "expectedStatuses...
Checks the response status code is considered as error. @param httpResponse the response to check @param decodeData the response metadata @return true if the response status code is considered as error, false otherwise.
[ "Checks", "the", "response", "status", "code", "is", "considered", "as", "error", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/serializer/HttpResponseBodyDecoder.java#L138-L145
35,889
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/serializer/HttpResponseBodyDecoder.java
HttpResponseBodyDecoder.deserializeBody
private static Object deserializeBody(String value, Type resultType, Type wireType, SerializerAdapter serializer, SerializerEncoding encoding) throws IOException { if (wireType == null) { return serializer.deserialize(value, resultType, encoding); } else if (TypeUtil.isTypeOrSubTypeOf(wireType, Page.class)) { return deserializePage(value, resultType, wireType, serializer, encoding); } else { final Type wireResponseType = constructWireResponseType(resultType, wireType); final Object wireResponse = serializer.deserialize(value, wireResponseType, encoding); return convertToResultType(wireResponse, resultType, wireType); } }
java
private static Object deserializeBody(String value, Type resultType, Type wireType, SerializerAdapter serializer, SerializerEncoding encoding) throws IOException { if (wireType == null) { return serializer.deserialize(value, resultType, encoding); } else if (TypeUtil.isTypeOrSubTypeOf(wireType, Page.class)) { return deserializePage(value, resultType, wireType, serializer, encoding); } else { final Type wireResponseType = constructWireResponseType(resultType, wireType); final Object wireResponse = serializer.deserialize(value, wireResponseType, encoding); return convertToResultType(wireResponse, resultType, wireType); } }
[ "private", "static", "Object", "deserializeBody", "(", "String", "value", ",", "Type", "resultType", ",", "Type", "wireType", ",", "SerializerAdapter", "serializer", ",", "SerializerEncoding", "encoding", ")", "throws", "IOException", "{", "if", "(", "wireType", "...
Deserialize the given string value representing content of a REST API response. If the {@link ReturnValueWireType} is of type {@link Page}, then the returned object will be an instance of that {@param wireType}. Otherwise, the returned object is converted back to its {@param resultType}. @param value the string value to deserialize @param resultType the return type of the java proxy method @param wireType value of optional {@link ReturnValueWireType} annotation present in java proxy method indicating 'entity type' (wireType) of REST API wire response body @param encoding the encoding format of value @return Deserialized object @throws IOException When the body cannot be deserialized
[ "Deserialize", "the", "given", "string", "value", "representing", "content", "of", "a", "REST", "API", "response", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/serializer/HttpResponseBodyDecoder.java#L161-L172
35,890
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/serializer/HttpResponseBodyDecoder.java
HttpResponseBodyDecoder.isReturnTypeDecodable
private static boolean isReturnTypeDecodable(HttpResponseDecodeData decodeData) { Type returnType = decodeData.returnType(); if (returnType == null) { return false; } else { return !FluxUtil.isFluxByteBuf(returnType) && !(TypeUtil.isTypeOrSubTypeOf(returnType, Mono.class) && TypeUtil.isTypeOrSubTypeOf(TypeUtil.getTypeArgument(returnType), Void.class)) && !TypeUtil.isTypeOrSubTypeOf(returnType, byte[].class) && !TypeUtil.isTypeOrSubTypeOf(returnType, Void.TYPE) && !TypeUtil.isTypeOrSubTypeOf(returnType, Void.class); } }
java
private static boolean isReturnTypeDecodable(HttpResponseDecodeData decodeData) { Type returnType = decodeData.returnType(); if (returnType == null) { return false; } else { return !FluxUtil.isFluxByteBuf(returnType) && !(TypeUtil.isTypeOrSubTypeOf(returnType, Mono.class) && TypeUtil.isTypeOrSubTypeOf(TypeUtil.getTypeArgument(returnType), Void.class)) && !TypeUtil.isTypeOrSubTypeOf(returnType, byte[].class) && !TypeUtil.isTypeOrSubTypeOf(returnType, Void.TYPE) && !TypeUtil.isTypeOrSubTypeOf(returnType, Void.class); } }
[ "private", "static", "boolean", "isReturnTypeDecodable", "(", "HttpResponseDecodeData", "decodeData", ")", "{", "Type", "returnType", "=", "decodeData", ".", "returnType", "(", ")", ";", "if", "(", "returnType", "==", "null", ")", "{", "return", "false", ";", ...
Checks the return type represents a decodable type. @param decodeData the decode metadata @return true if decodable, false otherwise.
[ "Checks", "the", "return", "type", "represents", "a", "decodable", "type", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/serializer/HttpResponseBodyDecoder.java#L393-L403
35,891
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/serializer/HttpResponseBodyDecoder.java
HttpResponseBodyDecoder.contains
private static boolean contains(int[] values, int searchValue) { Objects.requireNonNull(values); for (int value : values) { if (searchValue == value) { return true; } } return false; }
java
private static boolean contains(int[] values, int searchValue) { Objects.requireNonNull(values); for (int value : values) { if (searchValue == value) { return true; } } return false; }
[ "private", "static", "boolean", "contains", "(", "int", "[", "]", "values", ",", "int", "searchValue", ")", "{", "Objects", ".", "requireNonNull", "(", "values", ")", ";", "for", "(", "int", "value", ":", "values", ")", "{", "if", "(", "searchValue", "...
Checks an given value exists in an array. @param values array of ints @param searchValue value to check for existence @return true if value exists in the array, false otherwise
[ "Checks", "an", "given", "value", "exists", "in", "an", "array", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/serializer/HttpResponseBodyDecoder.java#L412-L420
35,892
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/serializer/HttpResponseBodyDecoder.java
HttpResponseBodyDecoder.ensureRequestSet
private static HttpResponse ensureRequestSet(HttpResponse httpResponse) { Objects.requireNonNull(httpResponse.request()); Objects.requireNonNull(httpResponse.request().httpMethod()); return httpResponse; }
java
private static HttpResponse ensureRequestSet(HttpResponse httpResponse) { Objects.requireNonNull(httpResponse.request()); Objects.requireNonNull(httpResponse.request().httpMethod()); return httpResponse; }
[ "private", "static", "HttpResponse", "ensureRequestSet", "(", "HttpResponse", "httpResponse", ")", "{", "Objects", ".", "requireNonNull", "(", "httpResponse", ".", "request", "(", ")", ")", ";", "Objects", ".", "requireNonNull", "(", "httpResponse", ".", "request"...
Ensure that request property and method is set in the response. @param httpResponse the response to validate @return the validated response
[ "Ensure", "that", "request", "property", "and", "method", "is", "set", "in", "the", "response", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/serializer/HttpResponseBodyDecoder.java#L428-L432
35,893
Azure/azure-sdk-for-java
logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/AgreementsInner.java
AgreementsInner.listByIntegrationAccountsNextAsync
public Observable<Page<IntegrationAccountAgreementInner>> listByIntegrationAccountsNextAsync(final String nextPageLink) { return listByIntegrationAccountsNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<IntegrationAccountAgreementInner>>, Page<IntegrationAccountAgreementInner>>() { @Override public Page<IntegrationAccountAgreementInner> call(ServiceResponse<Page<IntegrationAccountAgreementInner>> response) { return response.body(); } }); }
java
public Observable<Page<IntegrationAccountAgreementInner>> listByIntegrationAccountsNextAsync(final String nextPageLink) { return listByIntegrationAccountsNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<IntegrationAccountAgreementInner>>, Page<IntegrationAccountAgreementInner>>() { @Override public Page<IntegrationAccountAgreementInner> call(ServiceResponse<Page<IntegrationAccountAgreementInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "Page", "<", "IntegrationAccountAgreementInner", ">", ">", "listByIntegrationAccountsNextAsync", "(", "final", "String", "nextPageLink", ")", "{", "return", "listByIntegrationAccountsNextWithServiceResponseAsync", "(", "nextPageLink", ")", ".", ...
Gets a list of integration account agreements. @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;IntegrationAccountAgreementInner&gt; object
[ "Gets", "a", "list", "of", "integration", "account", "agreements", "." ]
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/AgreementsInner.java#L779-L787
35,894
Azure/azure-sdk-for-java
network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/ExpressRouteGatewaysInner.java
ExpressRouteGatewaysInner.listByResourceGroupAsync
public Observable<Page<ExpressRouteGatewayInner>> listByResourceGroupAsync(String resourceGroupName) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1<ServiceResponse<List<ExpressRouteGatewayInner>>, Page<ExpressRouteGatewayInner>>() { @Override public Page<ExpressRouteGatewayInner> call(ServiceResponse<List<ExpressRouteGatewayInner>> response) { PageImpl1<ExpressRouteGatewayInner> page = new PageImpl1<>(); page.setItems(response.body()); return page; } }); }
java
public Observable<Page<ExpressRouteGatewayInner>> listByResourceGroupAsync(String resourceGroupName) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1<ServiceResponse<List<ExpressRouteGatewayInner>>, Page<ExpressRouteGatewayInner>>() { @Override public Page<ExpressRouteGatewayInner> call(ServiceResponse<List<ExpressRouteGatewayInner>> response) { PageImpl1<ExpressRouteGatewayInner> page = new PageImpl1<>(); page.setItems(response.body()); return page; } }); }
[ "public", "Observable", "<", "Page", "<", "ExpressRouteGatewayInner", ">", ">", "listByResourceGroupAsync", "(", "String", "resourceGroupName", ")", "{", "return", "listByResourceGroupWithServiceResponseAsync", "(", "resourceGroupName", ")", ".", "map", "(", "new", "Fun...
Lists ExpressRoute gateways in a given resource group. @param resourceGroupName The name of the resource group. @return the observable to the List&lt;ExpressRouteGatewayInner&gt; object
[ "Lists", "ExpressRoute", "gateways", "in", "a", "given", "resource", "group", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/ExpressRouteGatewaysInner.java#L208-L217
35,895
Azure/azure-sdk-for-java
sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/ElasticPoolsInner.java
ElasticPoolsInner.listByServerAsync
public Observable<List<ElasticPoolInner>> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<ElasticPoolInner>>, List<ElasticPoolInner>>() { @Override public List<ElasticPoolInner> call(ServiceResponse<List<ElasticPoolInner>> response) { return response.body(); } }); }
java
public Observable<List<ElasticPoolInner>> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<ElasticPoolInner>>, List<ElasticPoolInner>>() { @Override public List<ElasticPoolInner> call(ServiceResponse<List<ElasticPoolInner>> response) { return response.body(); } }); }
[ "public", "Observable", "<", "List", "<", "ElasticPoolInner", ">", ">", "listByServerAsync", "(", "String", "resourceGroupName", ",", "String", "serverName", ")", "{", "return", "listByServerWithServiceResponseAsync", "(", "resourceGroupName", ",", "serverName", ")", ...
Returns a list of elastic pools 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. @throws IllegalArgumentException thrown if parameters fail the validation @return the observable to the List&lt;ElasticPoolInner&gt; object
[ "Returns", "a", "list", "of", "elastic", "pools", "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/ElasticPoolsInner.java#L693-L700
35,896
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/util/FluxUtil.java
FluxUtil.isFluxByteBuf
public static boolean isFluxByteBuf(Type entityType) { if (TypeUtil.isTypeOrSubTypeOf(entityType, Flux.class)) { final Type innerType = TypeUtil.getTypeArguments(entityType)[0]; if (TypeUtil.isTypeOrSubTypeOf(innerType, ByteBuf.class)) { return true; } } return false; }
java
public static boolean isFluxByteBuf(Type entityType) { if (TypeUtil.isTypeOrSubTypeOf(entityType, Flux.class)) { final Type innerType = TypeUtil.getTypeArguments(entityType)[0]; if (TypeUtil.isTypeOrSubTypeOf(innerType, ByteBuf.class)) { return true; } } return false; }
[ "public", "static", "boolean", "isFluxByteBuf", "(", "Type", "entityType", ")", "{", "if", "(", "TypeUtil", ".", "isTypeOrSubTypeOf", "(", "entityType", ",", "Flux", ".", "class", ")", ")", "{", "final", "Type", "innerType", "=", "TypeUtil", ".", "getTypeArg...
Checks if a type is Flux&lt;ByteBuf&gt;. @param entityType the type to check @return whether the type represents a Flux that emits ByteBuf
[ "Checks", "if", "a", "type", "is", "Flux&lt", ";", "ByteBuf&gt", ";", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/util/FluxUtil.java#L35-L43
35,897
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/util/FluxUtil.java
FluxUtil.collectBytesInByteBufStream
public static Mono<byte[]> collectBytesInByteBufStream(Flux<ByteBuf> stream, boolean autoReleaseEnabled) { if (autoReleaseEnabled) { // A stream is auto-release enabled means - the ByteBuf chunks in the stream get // released as consumer consumes each chunk. return Mono.using(Unpooled::compositeBuffer, cbb -> stream.collect(() -> cbb, (cbb1, buffer) -> cbb1.addComponent(true, Unpooled.wrappedBuffer(buffer).retain())), ReferenceCountUtil::release) .filter((CompositeByteBuf cbb) -> cbb.isReadable()) .map(FluxUtil::byteBufToArray); } else { return stream.collect(Unpooled::compositeBuffer, (cbb1, buffer) -> cbb1.addComponent(true, Unpooled.wrappedBuffer(buffer))) .filter((CompositeByteBuf cbb) -> cbb.isReadable()) .map(FluxUtil::byteBufToArray); } }
java
public static Mono<byte[]> collectBytesInByteBufStream(Flux<ByteBuf> stream, boolean autoReleaseEnabled) { if (autoReleaseEnabled) { // A stream is auto-release enabled means - the ByteBuf chunks in the stream get // released as consumer consumes each chunk. return Mono.using(Unpooled::compositeBuffer, cbb -> stream.collect(() -> cbb, (cbb1, buffer) -> cbb1.addComponent(true, Unpooled.wrappedBuffer(buffer).retain())), ReferenceCountUtil::release) .filter((CompositeByteBuf cbb) -> cbb.isReadable()) .map(FluxUtil::byteBufToArray); } else { return stream.collect(Unpooled::compositeBuffer, (cbb1, buffer) -> cbb1.addComponent(true, Unpooled.wrappedBuffer(buffer))) .filter((CompositeByteBuf cbb) -> cbb.isReadable()) .map(FluxUtil::byteBufToArray); } }
[ "public", "static", "Mono", "<", "byte", "[", "]", ">", "collectBytesInByteBufStream", "(", "Flux", "<", "ByteBuf", ">", "stream", ",", "boolean", "autoReleaseEnabled", ")", "{", "if", "(", "autoReleaseEnabled", ")", "{", "// A stream is auto-release enabled means -...
Collects ByteBuf emitted by a Flux into a byte array. @param stream A stream which emits ByteBuf instances. @param autoReleaseEnabled if ByteBuf instances in stream gets automatically released as they consumed @return A Mono which emits the concatenation of all the ByteBuf instances given by the source Flux.
[ "Collects", "ByteBuf", "emitted", "by", "a", "Flux", "into", "a", "byte", "array", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/util/FluxUtil.java#L51-L67
35,898
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/util/FluxUtil.java
FluxUtil.split
public static Flux<ByteBuf> split(final ByteBuf whole, final int chunkSize) { return Flux.generate(whole::readerIndex, (readFromIndex, synchronousSync) -> { final int writerIndex = whole.writerIndex(); // if (readFromIndex >= writerIndex) { synchronousSync.complete(); return writerIndex; } else { int readSize = Math.min(writerIndex - readFromIndex, chunkSize); // Netty slice operation will not increment the ref count. // // Here we invoke 'retain' on each slice, since // consumer of the returned Flux stream is responsible for // releasing each chunk as it gets consumed. // synchronousSync.next(whole.slice(readFromIndex, readSize).retain()); return readFromIndex + readSize; } }); }
java
public static Flux<ByteBuf> split(final ByteBuf whole, final int chunkSize) { return Flux.generate(whole::readerIndex, (readFromIndex, synchronousSync) -> { final int writerIndex = whole.writerIndex(); // if (readFromIndex >= writerIndex) { synchronousSync.complete(); return writerIndex; } else { int readSize = Math.min(writerIndex - readFromIndex, chunkSize); // Netty slice operation will not increment the ref count. // // Here we invoke 'retain' on each slice, since // consumer of the returned Flux stream is responsible for // releasing each chunk as it gets consumed. // synchronousSync.next(whole.slice(readFromIndex, readSize).retain()); return readFromIndex + readSize; } }); }
[ "public", "static", "Flux", "<", "ByteBuf", ">", "split", "(", "final", "ByteBuf", "whole", ",", "final", "int", "chunkSize", ")", "{", "return", "Flux", ".", "generate", "(", "whole", "::", "readerIndex", ",", "(", "readFromIndex", ",", "synchronousSync", ...
Splits a ByteBuf into ByteBuf chunks. @param whole the ByteBuf to split @param chunkSize the maximum size of each ByteBuf chunk @return A stream that emits chunks of the original whole ByteBuf
[ "Splits", "a", "ByteBuf", "into", "ByteBuf", "chunks", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/util/FluxUtil.java#L76-L95
35,899
Azure/azure-sdk-for-java
common/azure-common/src/main/java/com/azure/common/implementation/util/FluxUtil.java
FluxUtil.byteBufToArray
public static byte[] byteBufToArray(ByteBuf byteBuf) { int length = byteBuf.readableBytes(); byte[] byteArray = new byte[length]; byteBuf.getBytes(byteBuf.readerIndex(), byteArray); return byteArray; }
java
public static byte[] byteBufToArray(ByteBuf byteBuf) { int length = byteBuf.readableBytes(); byte[] byteArray = new byte[length]; byteBuf.getBytes(byteBuf.readerIndex(), byteArray); return byteArray; }
[ "public", "static", "byte", "[", "]", "byteBufToArray", "(", "ByteBuf", "byteBuf", ")", "{", "int", "length", "=", "byteBuf", ".", "readableBytes", "(", ")", ";", "byte", "[", "]", "byteArray", "=", "new", "byte", "[", "length", "]", ";", "byteBuf", "....
Gets the content of the provided ByteBuf as a byte array. This method will create a new byte array even if the ByteBuf can have optionally backing array. @param byteBuf the byte buffer @return the byte array
[ "Gets", "the", "content", "of", "the", "provided", "ByteBuf", "as", "a", "byte", "array", ".", "This", "method", "will", "create", "a", "new", "byte", "array", "even", "if", "the", "ByteBuf", "can", "have", "optionally", "backing", "array", "." ]
aab183ddc6686c82ec10386d5a683d2691039626
https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/util/FluxUtil.java#L106-L111