@Override protected Observable<DeploymentOperationInner> getInnerAsync() { return client.getAsync(resourceGroupName, deploymentName, operationId()); } }
/** * Gets a deployments operation. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment. * @param operationId The ID of the operation to get. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the DeploymentOperationInner object */ public Observable<DeploymentOperationInner> getAsync(String resourceGroupName, String deploymentName, String operationId) { return getWithServiceResponseAsync(resourceGroupName, deploymentName, operationId).map(new Func1<ServiceResponse<DeploymentOperationInner>, DeploymentOperationInner>() { @Override public DeploymentOperationInner call(ServiceResponse<DeploymentOperationInner> response) { return response.body(); } }); }
@Override public Observable<ServiceResponse<Page<DeploymentOperationInner>>> call(String nextPageLink) { return listByResourceGroupNextSinglePageAsync(nextPageLink); } },
/** * Gets all deployments operations for a deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment with the operation to get. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ public ServiceFuture<List<DeploymentOperationInner>> listByResourceGroupAsync(final String resourceGroupName, final String deploymentName, final ListOperationCallback<DeploymentOperationInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listByResourceGroupSinglePageAsync(resourceGroupName, deploymentName), new Func1<String, Observable<ServiceResponse<Page<DeploymentOperationInner>>>>() { @Override public Observable<ServiceResponse<Page<DeploymentOperationInner>>> call(String nextPageLink) { return listByResourceGroupNextSinglePageAsync(nextPageLink); } }, serviceCallback); }
/** * Gets all deployments operations for a deployment. * * @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<DeploymentOperationInner> object */ public Observable<Page<DeploymentOperationInner>> listByResourceGroupNextAsync(final String nextPageLink) { return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<DeploymentOperationInner>>, Page<DeploymentOperationInner>>() { @Override public Page<DeploymentOperationInner> call(ServiceResponse<Page<DeploymentOperationInner>> response) { return response.body(); } }); }
/** * Gets all deployments operations for a deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment with the operation to get. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<DeploymentOperationInner> object */ public Observable<Page<DeploymentOperationInner>> listByResourceGroupAsync(final String resourceGroupName, final String deploymentName) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName, deploymentName) .map(new Func1<ServiceResponse<Page<DeploymentOperationInner>>, Page<DeploymentOperationInner>>() { @Override public Page<DeploymentOperationInner> call(ServiceResponse<Page<DeploymentOperationInner>> response) { return response.body(); } }); }
@Override public Observable<DeploymentOperation> listAsync() { return wrapPageAsync(this.client.listByResourceGroupAsync(deployment.resourceGroupName(), deployment.name())); } }
@Override public PagedList<DeploymentOperation> list() { return wrapList(client.listByResourceGroup(deployment.resourceGroupName(), deployment.name())); }
protected void initialize() { this.apiVersion = "2017-05-10"; this.acceptLanguage = "en-US"; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; this.deployments = new DeploymentsInner(restClient().retrofit(), this); this.providers = new ProvidersInner(restClient().retrofit(), this); this.resources = new ResourcesInner(restClient().retrofit(), this); this.resourceGroups = new ResourceGroupsInner(restClient().retrofit(), this); this.tags = new TagsInner(restClient().retrofit(), this); this.deploymentOperations = new DeploymentOperationsInner(restClient().retrofit(), this); this.azureClient = new AzureClient(this); }
/** * Gets all deployments operations for a deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment with the operation to get. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ public ServiceFuture<List<DeploymentOperationInner>> listByResourceGroupAsync(final String resourceGroupName, final String deploymentName, final ListOperationCallback<DeploymentOperationInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listByResourceGroupSinglePageAsync(resourceGroupName, deploymentName), new Func1<String, Observable<ServiceResponse<Page<DeploymentOperationInner>>>>() { @Override public Observable<ServiceResponse<Page<DeploymentOperationInner>>> call(String nextPageLink) { return listByResourceGroupNextSinglePageAsync(nextPageLink); } }, serviceCallback); }
/** * Gets all deployments operations for a deployment. * * @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<DeploymentOperationInner> object */ public Observable<Page<DeploymentOperationInner>> listByResourceGroupNextAsync(final String nextPageLink) { return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<DeploymentOperationInner>>, Page<DeploymentOperationInner>>() { @Override public Page<DeploymentOperationInner> call(ServiceResponse<Page<DeploymentOperationInner>> response) { return response.body(); } }); }
/** * Gets all deployments operations for a deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment with the operation to get. * @param top The number of results to return. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<DeploymentOperationInner> object */ public Observable<Page<DeploymentOperationInner>> listByResourceGroupAsync(final String resourceGroupName, final String deploymentName, final Integer top) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName, deploymentName, top) .map(new Func1<ServiceResponse<Page<DeploymentOperationInner>>, Page<DeploymentOperationInner>>() { @Override public Page<DeploymentOperationInner> call(ServiceResponse<Page<DeploymentOperationInner>> response) { return response.body(); } }); }
@Override public Observable<DeploymentOperation> listAsync() { return wrapPageAsync(this.client.listByResourceGroupAsync(deployment.resourceGroupName(), deployment.name())); } }
@Override public PagedList<DeploymentOperation> list() { return wrapList(client.listByResourceGroup(deployment.resourceGroupName(), deployment.name())); }
protected void initialize() { this.apiVersion = "2017-05-10"; this.acceptLanguage = "en-US"; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; this.deployments = new DeploymentsInner(restClient().retrofit(), this); this.providers = new ProvidersInner(restClient().retrofit(), this); this.resources = new ResourcesInner(restClient().retrofit(), this); this.resourceGroups = new ResourceGroupsInner(restClient().retrofit(), this); this.tags = new TagsInner(restClient().retrofit(), this); this.deploymentOperations = new DeploymentOperationsInner(restClient().retrofit(), this); this.azureClient = new AzureClient(this); }
@Override public Observable<ServiceResponse<Page<DeploymentOperationInner>>> call(String nextPageLink) { return listByResourceGroupNextSinglePageAsync(nextPageLink); } },
/** * Gets all deployments operations for a deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment with the operation to get. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<DeploymentOperationInner> object */ public Observable<ServiceResponse<Page<DeploymentOperationInner>>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName, final String deploymentName) { return listByResourceGroupSinglePageAsync(resourceGroupName, deploymentName) .concatMap(new Func1<ServiceResponse<Page<DeploymentOperationInner>>, Observable<ServiceResponse<Page<DeploymentOperationInner>>>>() { @Override public Observable<ServiceResponse<Page<DeploymentOperationInner>>> call(ServiceResponse<Page<DeploymentOperationInner>> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); } }); }
@Override public Observable<ServiceResponse<Page<DeploymentOperationInner>>> call(ServiceResponse<Page<DeploymentOperationInner>> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); } });
/** * Gets a deployments operation. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment. * @param operationId The ID of the operation to get. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the DeploymentOperationInner object */ public Observable<DeploymentOperationInner> getAsync(String resourceGroupName, String deploymentName, String operationId) { return getWithServiceResponseAsync(resourceGroupName, deploymentName, operationId).map(new Func1<ServiceResponse<DeploymentOperationInner>, DeploymentOperationInner>() { @Override public DeploymentOperationInner call(ServiceResponse<DeploymentOperationInner> response) { return response.body(); } }); }
@Override protected Observable<DeploymentOperationInner> getInnerAsync() { return client.getAsync(resourceGroupName, deploymentName, operationId()); } }