/** * Deploys resources to a resource group. * You can provide the template and parameters directly in the request or link to JSON files. * * @param resourceGroupName The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist. * @param deploymentName The name of the deployment. * @param parameters Additional parameters supplied to the operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the DeploymentExtendedInner object */ public Observable<DeploymentExtendedInner> beginCreateOrUpdateAsync(String resourceGroupName, String deploymentName, DeploymentInner parameters) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, deploymentName, parameters).map(new Func1<ServiceResponse<DeploymentExtendedInner>, DeploymentExtendedInner>() { @Override public DeploymentExtendedInner call(ServiceResponse<DeploymentExtendedInner> response) { return response.body(); } }); }
/** * Deploys resources to a resource group. * You can provide the template and parameters directly in the request or link to JSON files. * * @param resourceGroupName The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist. * @param deploymentName The name of the deployment. * @param parameters Additional parameters supplied to the operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the DeploymentExtendedInner object */ public Observable<DeploymentExtendedInner> beginCreateOrUpdateAsync(String resourceGroupName, String deploymentName, DeploymentInner parameters) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, deploymentName, parameters).map(new Func1<ServiceResponse<DeploymentExtendedInner>, DeploymentExtendedInner>() { @Override public DeploymentExtendedInner call(ServiceResponse<DeploymentExtendedInner> response) { return response.body(); } }); }
/** * Deploys resources to a resource group. * You can provide the template and parameters directly in the request or link to JSON files. * * @param resourceGroupName The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist. * @param deploymentName The name of the deployment. * @param parameters Additional parameters supplied to the 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 */ public ServiceFuture<DeploymentExtendedInner> beginCreateOrUpdateAsync(String resourceGroupName, String deploymentName, DeploymentInner parameters, final ServiceCallback<DeploymentExtendedInner> serviceCallback) { return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, deploymentName, parameters), serviceCallback); }
/** * Deploys resources to a resource group. * You can provide the template and parameters directly in the request or link to JSON files. * * @param resourceGroupName The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist. * @param deploymentName The name of the deployment. * @param parameters Additional parameters supplied to the 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 */ public ServiceFuture<DeploymentExtendedInner> beginCreateOrUpdateAsync(String resourceGroupName, String deploymentName, DeploymentInner parameters, final ServiceCallback<DeploymentExtendedInner> serviceCallback) { return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, deploymentName, parameters), serviceCallback); }
/** * Deploys resources to a resource group. * You can provide the template and parameters directly in the request or link to JSON files. * * @param resourceGroupName The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist. * @param deploymentName The name of the deployment. * @param parameters Additional parameters supplied to the operation. * @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 DeploymentExtendedInner object if successful. */ public DeploymentExtendedInner beginCreateOrUpdate(String resourceGroupName, String deploymentName, DeploymentInner parameters) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, deploymentName, parameters).toBlocking().single().body(); }
/** * Deploys resources to a resource group. * You can provide the template and parameters directly in the request or link to JSON files. * * @param resourceGroupName The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist. * @param deploymentName The name of the deployment. * @param parameters Additional parameters supplied to the operation. * @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 DeploymentExtendedInner object if successful. */ public DeploymentExtendedInner beginCreateOrUpdate(String resourceGroupName, String deploymentName, DeploymentInner parameters) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, deploymentName, parameters).toBlocking().single().body(); }