Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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;
}

}
Original file line number Diff line number Diff line change
@@ -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<String> origins;

/**
* The headers to be allowed via CORS.
*/
@JsonProperty(value = "headers")
private List<String> headers;

/**
* The methods to be allowed via CORS.
*/
@JsonProperty(value = "methods")
private List<String> 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<String> 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<String> origins) {
this.origins = origins;
return this;
}

/**
* Get the headers to be allowed via CORS.
*
* @return the headers value
*/
public List<String> 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<String> headers) {
this.headers = headers;
return this;
}

/**
* Get the methods to be allowed via CORS.
*
* @return the methods value
*/
public List<String> 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<String> 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;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -32,14 +31,4 @@ public interface Services extends SupportsCreating<ServicesDescription.Definitio
*/
Observable<ServicesNameAvailabilityInfo> 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);

}
Original file line number Diff line number Diff line change
Expand Up @@ -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'.
*
Expand Down Expand Up @@ -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;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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);
}

Expand Down
Loading