/** * Exports the template used for specified deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment from which to get the template. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the DeploymentExportResultInner object */ public Observable<DeploymentExportResultInner> exportTemplateAsync(String resourceGroupName, String deploymentName) { return exportTemplateWithServiceResponseAsync(resourceGroupName, deploymentName).map(new Func1<ServiceResponse<DeploymentExportResultInner>, DeploymentExportResultInner>() { @Override public DeploymentExportResultInner call(ServiceResponse<DeploymentExportResultInner> response) { return response.body(); } }); }
/** * Exports the template used for specified deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment from which to get the template. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the DeploymentExportResultInner object */ public Observable<DeploymentExportResultInner> exportTemplateAsync(String resourceGroupName, String deploymentName) { return exportTemplateWithServiceResponseAsync(resourceGroupName, deploymentName).map(new Func1<ServiceResponse<DeploymentExportResultInner>, DeploymentExportResultInner>() { @Override public DeploymentExportResultInner call(ServiceResponse<DeploymentExportResultInner> response) { return response.body(); } }); }
/** * Exports the template used for specified deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment from which to get the template. * @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<DeploymentExportResultInner> exportTemplateAsync(String resourceGroupName, String deploymentName, final ServiceCallback<DeploymentExportResultInner> serviceCallback) { return ServiceFuture.fromResponse(exportTemplateWithServiceResponseAsync(resourceGroupName, deploymentName), serviceCallback); }
/** * Exports the template used for specified deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment from which to get the template. * @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<DeploymentExportResultInner> exportTemplateAsync(String resourceGroupName, String deploymentName, final ServiceCallback<DeploymentExportResultInner> serviceCallback) { return ServiceFuture.fromResponse(exportTemplateWithServiceResponseAsync(resourceGroupName, deploymentName), serviceCallback); }
/** * Exports the template used for specified deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment from which to get the template. * @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 DeploymentExportResultInner object if successful. */ public DeploymentExportResultInner exportTemplate(String resourceGroupName, String deploymentName) { return exportTemplateWithServiceResponseAsync(resourceGroupName, deploymentName).toBlocking().single().body(); }
/** * Exports the template used for specified deployment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentName The name of the deployment from which to get the template. * @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 DeploymentExportResultInner object if successful. */ public DeploymentExportResultInner exportTemplate(String resourceGroupName, String deploymentName) { return exportTemplateWithServiceResponseAsync(resourceGroupName, deploymentName).toBlocking().single().body(); }