diff --git a/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/ServiceAuthenticationConfigurationInfo.java b/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/ServiceAuthenticationConfigurationInfo.java new file mode 100644 index 000000000000..ad67094bbc4e --- /dev/null +++ b/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/ServiceAuthenticationConfigurationInfo.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.healthcareapis.v2018_08_20_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Authentication configuration information. + */ +public class ServiceAuthenticationConfigurationInfo { + /** + * The authority url for the service. + */ + @JsonProperty(value = "authority") + private String authority; + + /** + * The audience url for the service. + */ + @JsonProperty(value = "audience") + private String audience; + + /** + * If the SMART on FHIR proxy is enabled. + */ + @JsonProperty(value = "smartProxyEnabled") + private Boolean smartProxyEnabled; + + /** + * Get the authority url for the service. + * + * @return the authority value + */ + public String authority() { + return this.authority; + } + + /** + * Set the authority url for the service. + * + * @param authority the authority value to set + * @return the ServiceAuthenticationConfigurationInfo object itself. + */ + public ServiceAuthenticationConfigurationInfo withAuthority(String authority) { + this.authority = authority; + return this; + } + + /** + * Get the audience url for the service. + * + * @return the audience value + */ + public String audience() { + return this.audience; + } + + /** + * Set the audience url for the service. + * + * @param audience the audience value to set + * @return the ServiceAuthenticationConfigurationInfo object itself. + */ + public ServiceAuthenticationConfigurationInfo withAudience(String audience) { + this.audience = audience; + return this; + } + + /** + * Get if the SMART on FHIR proxy is enabled. + * + * @return the smartProxyEnabled value + */ + public Boolean smartProxyEnabled() { + return this.smartProxyEnabled; + } + + /** + * Set if the SMART on FHIR proxy is enabled. + * + * @param smartProxyEnabled the smartProxyEnabled value to set + * @return the ServiceAuthenticationConfigurationInfo object itself. + */ + public ServiceAuthenticationConfigurationInfo withSmartProxyEnabled(Boolean smartProxyEnabled) { + this.smartProxyEnabled = smartProxyEnabled; + return this; + } + +} diff --git a/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/ServiceCorsConfigurationInfo.java b/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/ServiceCorsConfigurationInfo.java new file mode 100644 index 000000000000..e9b77b65be3b --- /dev/null +++ b/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/ServiceCorsConfigurationInfo.java @@ -0,0 +1,148 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.healthcareapis.v2018_08_20_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The settings for the CORS configuration of the service instance. + */ +public class ServiceCorsConfigurationInfo { + /** + * The origins to be allowed via CORS. + */ + @JsonProperty(value = "origins") + private List origins; + + /** + * The headers to be allowed via CORS. + */ + @JsonProperty(value = "headers") + private List headers; + + /** + * The methods to be allowed via CORS. + */ + @JsonProperty(value = "methods") + private List methods; + + /** + * The max age to be allowed via CORS. + */ + @JsonProperty(value = "maxAge") + private Integer maxAge; + + /** + * If credentials are allowed via CORS. + */ + @JsonProperty(value = "allowCredentials") + private Boolean allowCredentials; + + /** + * Get the origins to be allowed via CORS. + * + * @return the origins value + */ + public List origins() { + return this.origins; + } + + /** + * Set the origins to be allowed via CORS. + * + * @param origins the origins value to set + * @return the ServiceCorsConfigurationInfo object itself. + */ + public ServiceCorsConfigurationInfo withOrigins(List origins) { + this.origins = origins; + return this; + } + + /** + * Get the headers to be allowed via CORS. + * + * @return the headers value + */ + public List headers() { + return this.headers; + } + + /** + * Set the headers to be allowed via CORS. + * + * @param headers the headers value to set + * @return the ServiceCorsConfigurationInfo object itself. + */ + public ServiceCorsConfigurationInfo withHeaders(List headers) { + this.headers = headers; + return this; + } + + /** + * Get the methods to be allowed via CORS. + * + * @return the methods value + */ + public List methods() { + return this.methods; + } + + /** + * Set the methods to be allowed via CORS. + * + * @param methods the methods value to set + * @return the ServiceCorsConfigurationInfo object itself. + */ + public ServiceCorsConfigurationInfo withMethods(List methods) { + this.methods = methods; + return this; + } + + /** + * Get the max age to be allowed via CORS. + * + * @return the maxAge value + */ + public Integer maxAge() { + return this.maxAge; + } + + /** + * Set the max age to be allowed via CORS. + * + * @param maxAge the maxAge value to set + * @return the ServiceCorsConfigurationInfo object itself. + */ + public ServiceCorsConfigurationInfo withMaxAge(Integer maxAge) { + this.maxAge = maxAge; + return this; + } + + /** + * Get if credentials are allowed via CORS. + * + * @return the allowCredentials value + */ + public Boolean allowCredentials() { + return this.allowCredentials; + } + + /** + * Set if credentials are allowed via CORS. + * + * @param allowCredentials the allowCredentials value to set + * @return the ServiceCorsConfigurationInfo object itself. + */ + public ServiceCorsConfigurationInfo withAllowCredentials(Boolean allowCredentials) { + this.allowCredentials = allowCredentials; + return this; + } + +} diff --git a/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/Services.java b/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/Services.java index 553546c7198c..39b6d42c563a 100644 --- a/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/Services.java +++ b/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/Services.java @@ -15,7 +15,6 @@ import rx.Observable; import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; import com.microsoft.azure.arm.collection.SupportsListing; -import rx.Completable; import com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.implementation.ServicesInner; import com.microsoft.azure.arm.model.HasInner; @@ -32,14 +31,4 @@ public interface Services extends SupportsCreating checkNameAvailabilityAsync(CheckNameAvailabilityParameters checkNameAvailabilityInputs); - /** - * Moves resources to another subscription and/or resource group. - * - * @param resourceGroupName The name of the resource group that contains the service instance. - * @param moveResourcesInputs Set the move resource structure to the name of the service instance to check. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request - */ - Completable moveResourcesAsync(String resourceGroupName, MoveResourcesParameters moveResourcesInputs); - } diff --git a/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/ServicesProperties.java b/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/ServicesProperties.java index a8f8e5e47c4e..9080e9382570 100644 --- a/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/ServicesProperties.java +++ b/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/ServicesProperties.java @@ -35,6 +35,18 @@ public class ServicesProperties { @JsonProperty(value = "cosmosDbConfiguration") private ServiceCosmosDbConfigurationInfo cosmosDbConfiguration; + /** + * The authentication configuration for the service instance. + */ + @JsonProperty(value = "authenticationConfiguration") + private ServiceAuthenticationConfigurationInfo authenticationConfiguration; + + /** + * The settings for the CORS configuration of the service instance. + */ + @JsonProperty(value = "corsConfiguration") + private ServiceCorsConfigurationInfo corsConfiguration; + /** * Get the provisioning state. Possible values include: 'Deleting', 'Succeeded', 'Creating', 'Accepted', 'Verifying', 'Updating', 'Failed', 'Canceled', 'Deprovisioned'. * @@ -84,4 +96,44 @@ public ServicesProperties withCosmosDbConfiguration(ServiceCosmosDbConfiguration return this; } + /** + * Get the authentication configuration for the service instance. + * + * @return the authenticationConfiguration value + */ + public ServiceAuthenticationConfigurationInfo authenticationConfiguration() { + return this.authenticationConfiguration; + } + + /** + * Set the authentication configuration for the service instance. + * + * @param authenticationConfiguration the authenticationConfiguration value to set + * @return the ServicesProperties object itself. + */ + public ServicesProperties withAuthenticationConfiguration(ServiceAuthenticationConfigurationInfo authenticationConfiguration) { + this.authenticationConfiguration = authenticationConfiguration; + return this; + } + + /** + * Get the settings for the CORS configuration of the service instance. + * + * @return the corsConfiguration value + */ + public ServiceCorsConfigurationInfo corsConfiguration() { + return this.corsConfiguration; + } + + /** + * Set the settings for the CORS configuration of the service instance. + * + * @param corsConfiguration the corsConfiguration value to set + * @return the ServicesProperties object itself. + */ + public ServicesProperties withCorsConfiguration(ServiceCorsConfigurationInfo corsConfiguration) { + this.corsConfiguration = corsConfiguration; + return this; + } + } diff --git a/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/implementation/HealthcareApisManagementClientImpl.java b/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/implementation/HealthcareApisManagementClientImpl.java index 9bd33990ffb5..2023aa49272d 100644 --- a/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/implementation/HealthcareApisManagementClientImpl.java +++ b/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/implementation/HealthcareApisManagementClientImpl.java @@ -29,14 +29,14 @@ public AzureClient getAzureClient() { } /** The subscription identifier. */ - private UUID subscriptionId; + private String subscriptionId; /** * Gets The subscription identifier. * * @return the subscriptionId value. */ - public UUID subscriptionId() { + public String subscriptionId() { return this.subscriptionId; } @@ -46,7 +46,7 @@ public UUID subscriptionId() { * @param subscriptionId the subscriptionId value. * @return the service client itself */ - public HealthcareApisManagementClientImpl withSubscriptionId(UUID subscriptionId) { + public HealthcareApisManagementClientImpl withSubscriptionId(String subscriptionId) { this.subscriptionId = subscriptionId; return this; } @@ -171,19 +171,6 @@ public OperationResultsInner operationResults() { return this.operationResults; } - /** - * The MoveResourcesStatusInner object to access its operations. - */ - private MoveResourcesStatusInner moveResourcesStatus; - - /** - * Gets the MoveResourcesStatusInner object to access its operations. - * @return the MoveResourcesStatusInner object. - */ - public MoveResourcesStatusInner moveResourcesStatus() { - return this.moveResourcesStatus; - } - /** * Initializes an instance of HealthcareApisManagementClient client. * @@ -222,7 +209,6 @@ protected void initialize() { this.services = new ServicesInner(restClient().retrofit(), this); this.operations = new OperationsInner(restClient().retrofit(), this); this.operationResults = new OperationResultsInner(restClient().retrofit(), this); - this.moveResourcesStatus = new MoveResourcesStatusInner(restClient().retrofit(), this); this.azureClient = new AzureClient(this); } diff --git a/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/implementation/HealthcareApisManager.java b/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/implementation/HealthcareApisManager.java index fddd9256835b..55e161cf6ffd 100644 --- a/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/implementation/HealthcareApisManager.java +++ b/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/implementation/HealthcareApisManager.java @@ -19,7 +19,6 @@ import com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.Services; import com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.Operations; import com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.OperationResults; -import com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.MoveResourcesStatus; import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl; import com.microsoft.azure.arm.resources.implementation.ManagerCore; @@ -30,7 +29,6 @@ public final class HealthcareApisManager extends ManagerCore> get(@Path("subscriptionId") UUID subscriptionId, @Path("locationName") String locationName, @Path("operationResultId") String operationResultId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> get(@Path("subscriptionId") String subscriptionId, @Path("locationName") String locationName, @Path("operationResultId") String operationResultId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); } diff --git a/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/implementation/ServicesImpl.java b/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/implementation/ServicesImpl.java index 20e10c33a346..b5f3e67e4ef5 100644 --- a/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/implementation/ServicesImpl.java +++ b/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/implementation/ServicesImpl.java @@ -24,7 +24,6 @@ import com.microsoft.azure.Page; import com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.ServicesNameAvailabilityInfo; import com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.CheckNameAvailabilityParameters; -import com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.MoveResourcesParameters; class ServicesImpl extends GroupableResourcesCoreImpl implements Services { protected ServicesImpl(HealthcareApisManager manager) { @@ -140,12 +139,6 @@ public ServicesNameAvailabilityInfo call(ServicesNameAvailabilityInfoInner inner }); } - @Override - public Completable moveResourcesAsync(String resourceGroupName, MoveResourcesParameters moveResourcesInputs) { - ServicesInner client = this.inner(); - return client.moveResourcesAsync(resourceGroupName, moveResourcesInputs).toCompletable(); - } - @Override protected ServicesDescriptionImpl wrapModel(ServicesDescriptionInner inner) { return new ServicesDescriptionImpl(inner.name(), inner, manager()); diff --git a/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/implementation/ServicesInner.java b/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/implementation/ServicesInner.java index 00514a7b1904..f3a055fd87ef 100644 --- a/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/implementation/ServicesInner.java +++ b/healthcareapis/resource-manager/v2018_08_20_preview/src/main/java/com/microsoft/azure/management/healthcareapis/v2018_08_20_preview/implementation/ServicesInner.java @@ -17,7 +17,6 @@ import com.microsoft.azure.ListOperationCallback; import com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.CheckNameAvailabilityParameters; import com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.ErrorDetailsInnerException; -import com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.MoveResourcesParameters; import com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.ServicesPatchDescription; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; @@ -28,7 +27,6 @@ import java.io.IOException; import java.util.List; import java.util.Map; -import java.util.UUID; import okhttp3.ResponseBody; import retrofit2.http.Body; import retrofit2.http.GET; @@ -73,47 +71,43 @@ public ServicesInner(Retrofit retrofit, HealthcareApisManagementClientImpl clien interface ServicesService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.Services getByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}") - Observable> getByResourceGroup(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> getByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.Services createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}") - Observable> createOrUpdate(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body ServicesDescriptionInner serviceDescription, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body ServicesDescriptionInner serviceDescription, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.Services beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}") - Observable> beginCreateOrUpdate(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body ServicesDescriptionInner serviceDescription, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> beginCreateOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body ServicesDescriptionInner serviceDescription, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.Services update" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}") - Observable> update(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body ServicesPatchDescription servicePatchDescription, @Header("User-Agent") String userAgent); + Observable> update(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body ServicesPatchDescription servicePatchDescription, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.Services beginUpdate" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}") - Observable> beginUpdate(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body ServicesPatchDescription servicePatchDescription, @Header("User-Agent") String userAgent); + Observable> beginUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body ServicesPatchDescription servicePatchDescription, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.Services delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}", method = "DELETE", hasBody = true) - Observable> delete(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.Services beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}", method = "DELETE", hasBody = true) - Observable> beginDelete(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.Services list" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/services") - Observable> list(@Path("subscriptionId") UUID subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.Services listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services") - Observable> listByResourceGroup(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> listByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.Services checkNameAvailability" }) @POST("subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/checkNameAvailability") - Observable> checkNameAvailability(@Path("subscriptionId") UUID subscriptionId, @Query("api-version") String apiVersion, @Body CheckNameAvailabilityParameters checkNameAvailabilityInputs, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.Services moveResources" }) - @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/moveResources") - Observable> moveResources(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @Body MoveResourcesParameters moveResourcesInputs, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> checkNameAvailability(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Body CheckNameAvailabilityParameters checkNameAvailabilityInputs, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.healthcareapis.v2018_08_20_preview.Services listNext" }) @GET @@ -1125,89 +1119,6 @@ private ServiceResponse checkNameAvailability .build(response); } - /** - * Moves resources to another subscription and/or resource group. - * - * @param resourceGroupName The name of the resource group that contains the service instance. - * @param moveResourcesInputs Set the move resource structure to the name of the service instance to check. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsInnerException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - */ - public void moveResources(String resourceGroupName, MoveResourcesParameters moveResourcesInputs) { - moveResourcesWithServiceResponseAsync(resourceGroupName, moveResourcesInputs).toBlocking().single().body(); - } - - /** - * Moves resources to another subscription and/or resource group. - * - * @param resourceGroupName The name of the resource group that contains the service instance. - * @param moveResourcesInputs Set the move resource structure to the name of the service instance to check. - * @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 moveResourcesAsync(String resourceGroupName, MoveResourcesParameters moveResourcesInputs, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(moveResourcesWithServiceResponseAsync(resourceGroupName, moveResourcesInputs), serviceCallback); - } - - /** - * Moves resources to another subscription and/or resource group. - * - * @param resourceGroupName The name of the resource group that contains the service instance. - * @param moveResourcesInputs Set the move resource structure to the name of the service instance to check. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. - */ - public Observable moveResourcesAsync(String resourceGroupName, MoveResourcesParameters moveResourcesInputs) { - return moveResourcesWithServiceResponseAsync(resourceGroupName, moveResourcesInputs).map(new Func1, Void>() { - @Override - public Void call(ServiceResponse response) { - return response.body(); - } - }); - } - - /** - * Moves resources to another subscription and/or resource group. - * - * @param resourceGroupName The name of the resource group that contains the service instance. - * @param moveResourcesInputs Set the move resource structure to the name of the service instance to check. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. - */ - public Observable> moveResourcesWithServiceResponseAsync(String resourceGroupName, MoveResourcesParameters moveResourcesInputs) { - if (this.client.subscriptionId() == null) { - throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); - } - if (resourceGroupName == null) { - throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); - } - if (moveResourcesInputs == null) { - throw new IllegalArgumentException("Parameter moveResourcesInputs is required and cannot be null."); - } - Validator.validate(moveResourcesInputs); - return service.moveResources(this.client.subscriptionId(), resourceGroupName, this.client.apiVersion(), moveResourcesInputs, this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = moveResourcesDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse moveResourcesDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(202, new TypeToken() { }.getType()) - .registerError(ErrorDetailsInnerException.class) - .build(response); - } - /** * Get all the service instances in a subscription. *