/** * Deletes a policy definition at management group level. * * @param policyDefinitionName The name of the policy definition to delete. * @param managementGroupId The ID of the management group. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ public Observable<Void> deleteAtManagementGroupAsync(String policyDefinitionName, String managementGroupId) { return deleteAtManagementGroupWithServiceResponseAsync(policyDefinitionName, managementGroupId).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); } }); }
/** * Deletes a policy definition at management group level. * * @param policyDefinitionName The name of the policy definition to delete. * @param managementGroupId The ID of the management group. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ public Observable<Void> deleteAtManagementGroupAsync(String policyDefinitionName, String managementGroupId) { return deleteAtManagementGroupWithServiceResponseAsync(policyDefinitionName, managementGroupId).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); } }); }
/** * Deletes a policy definition at management group level. * * @param policyDefinitionName The name of the policy definition to delete. * @param managementGroupId The ID of the management group. * @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<Void> deleteAtManagementGroupAsync(String policyDefinitionName, String managementGroupId, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(deleteAtManagementGroupWithServiceResponseAsync(policyDefinitionName, managementGroupId), serviceCallback); }
/** * Deletes a policy definition at management group level. * * @param policyDefinitionName The name of the policy definition to delete. * @param managementGroupId The ID of the management group. * @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<Void> deleteAtManagementGroupAsync(String policyDefinitionName, String managementGroupId, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(deleteAtManagementGroupWithServiceResponseAsync(policyDefinitionName, managementGroupId), serviceCallback); }
/** * Deletes a policy definition at management group level. * * @param policyDefinitionName The name of the policy definition to delete. * @param managementGroupId The ID of the management group. * @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 */ public void deleteAtManagementGroup(String policyDefinitionName, String managementGroupId) { deleteAtManagementGroupWithServiceResponseAsync(policyDefinitionName, managementGroupId).toBlocking().single().body(); }
/** * Deletes a policy definition at management group level. * * @param policyDefinitionName The name of the policy definition to delete. * @param managementGroupId The ID of the management group. * @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 */ public void deleteAtManagementGroup(String policyDefinitionName, String managementGroupId) { deleteAtManagementGroupWithServiceResponseAsync(policyDefinitionName, managementGroupId).toBlocking().single().body(); }