diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/CHANGELOG.md b/sdk/hdinsight/azure-resourcemanager-hdinsight/CHANGELOG.md index 3a938b6faf22..e86f2506c1ee 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/CHANGELOG.md +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/CHANGELOG.md @@ -1,7 +1,8 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0-beta.1 (2021-01-20) +- Azure Resource Manager HDInsight client library for Java. This package contains Microsoft Azure SDK for HDInsight Management SDK. HDInsight Management Client. Package tag package-2018-06-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## 1.0.0-beta.1 (2020-12-17) diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/README.md b/sdk/hdinsight/azure-resourcemanager-hdinsight/README.md index 0e3bf74e1682..ad69bcb0ff34 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/README.md +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/README.md @@ -4,6 +4,20 @@ Azure Resource Manager HDInsight client library for Java. This package contains Microsoft Azure SDK for HDInsight Management SDK. HDInsight Management Client. Package tag package-2018-06-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +## We'd love to hear your feedback + +We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better. + +If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together. + +Thank you in advance for your collaboration. We really appreciate your time! + +## Documentation + +Various documentation is available to help you get started + +- [API reference documentation][docs] + ## Getting started ### Prerequisites @@ -18,7 +32,7 @@ This package contains Microsoft Azure SDK for HDInsight Management SDK. HDInsigh com.azure.resourcemanager azure-resourcemanager-hdinsight - 1.0.0-beta.1 + 1.0.0-beta.2 ``` [//]: # ({x-version-update-end}) @@ -75,6 +89,8 @@ For details on contributing to this repository, see the [contributing guide](htt 1. Create new Pull Request +[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS +[docs]: https://azure.github.io/azure-sdk-for-java/ [jdk]: https://docs.microsoft.com/java/azure/jdk/ [azure_subscription]: https://azure.microsoft.com/free/ [azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/HDInsightManager.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/HDInsightManager.java index b6345b45bb2a..bba689d2f0b2 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/HDInsightManager.java +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/HDInsightManager.java @@ -184,17 +184,31 @@ public HDInsightManager authenticate(TokenCredential credential, AzureProfile pr Objects.requireNonNull(credential, "'credential' cannot be null."); Objects.requireNonNull(profile, "'profile' cannot be null."); + StringBuilder userAgentBuilder = new StringBuilder(); + userAgentBuilder + .append("azsdk-java") + .append("-") + .append("com.azure.resourcemanager.hdinsight") + .append("/") + .append("1.0.0-beta.1"); + if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { + userAgentBuilder + .append(" (") + .append(Configuration.getGlobalConfiguration().get("java.version")) + .append("; ") + .append(Configuration.getGlobalConfiguration().get("os.name")) + .append("; ") + .append(Configuration.getGlobalConfiguration().get("os.version")) + .append("; auto-generated)"); + } else { + userAgentBuilder.append(" (auto-generated)"); + } + if (retryPolicy == null) { retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS); } List policies = new ArrayList<>(); - policies - .add( - new UserAgentPolicy( - null, - "com.azure.resourcemanager.hdinsight", - "1.0.0-beta.1", - Configuration.getGlobalConfiguration())); + policies.add(new UserAgentPolicy(userAgentBuilder.toString())); policies.add(new RequestIdPolicy()); HttpPolicyProviders.addBeforeRetryPolicies(policies); policies.add(retryPolicy); diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/fluent/models/BillingResponseListResultInner.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/fluent/models/BillingResponseListResultInner.java index cc48b95dfac2..fac3b5bc3405 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/fluent/models/BillingResponseListResultInner.java +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/fluent/models/BillingResponseListResultInner.java @@ -8,6 +8,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.hdinsight.models.BillingResources; import com.azure.resourcemanager.hdinsight.models.VmSizeCompatibilityFilterV2; +import com.azure.resourcemanager.hdinsight.models.VmSizeProperty; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -23,6 +24,12 @@ public final class BillingResponseListResultInner { @JsonProperty(value = "vmSizes") private List vmSizes; + /* + * The vm sizes which enable encryption at host. + */ + @JsonProperty(value = "vmSizesWithEncryptionAtHost") + private List vmSizesWithEncryptionAtHost; + /* * The virtual machine filtering mode. Effectively this can enabling or * disabling the virtual machine sizes in a particular set. @@ -30,6 +37,12 @@ public final class BillingResponseListResultInner { @JsonProperty(value = "vmSizeFilters") private List vmSizeFilters; + /* + * The vm size properties. + */ + @JsonProperty(value = "vmSizeProperties", access = JsonProperty.Access.WRITE_ONLY) + private List vmSizeProperties; + /* * The billing and managed disk billing resources for a region. */ @@ -56,6 +69,26 @@ public BillingResponseListResultInner withVmSizes(List vmSizes) { return this; } + /** + * Get the vmSizesWithEncryptionAtHost property: The vm sizes which enable encryption at host. + * + * @return the vmSizesWithEncryptionAtHost value. + */ + public List vmSizesWithEncryptionAtHost() { + return this.vmSizesWithEncryptionAtHost; + } + + /** + * Set the vmSizesWithEncryptionAtHost property: The vm sizes which enable encryption at host. + * + * @param vmSizesWithEncryptionAtHost the vmSizesWithEncryptionAtHost value to set. + * @return the BillingResponseListResultInner object itself. + */ + public BillingResponseListResultInner withVmSizesWithEncryptionAtHost(List vmSizesWithEncryptionAtHost) { + this.vmSizesWithEncryptionAtHost = vmSizesWithEncryptionAtHost; + return this; + } + /** * Get the vmSizeFilters property: The virtual machine filtering mode. Effectively this can enabling or disabling * the virtual machine sizes in a particular set. @@ -78,6 +111,15 @@ public BillingResponseListResultInner withVmSizeFilters(List vmSizeProperties() { + return this.vmSizeProperties; + } + /** * Get the billingResources property: The billing and managed disk billing resources for a region. * @@ -107,6 +149,9 @@ public void validate() { if (vmSizeFilters() != null) { vmSizeFilters().forEach(e -> e.validate()); } + if (vmSizeProperties() != null) { + vmSizeProperties().forEach(e -> e.validate()); + } if (billingResources() != null) { billingResources().forEach(e -> e.validate()); } diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/fluent/models/OperationInner.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/fluent/models/OperationInner.java index d29edde0daad..1a5599da7d52 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/fluent/models/OperationInner.java +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/fluent/models/OperationInner.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.hdinsight.models.OperationDisplay; +import com.azure.resourcemanager.hdinsight.models.OperationProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; @@ -27,6 +28,12 @@ public final class OperationInner { @JsonProperty(value = "display") private OperationDisplay display; + /* + * The operation properties. + */ + @JsonProperty(value = "properties") + private OperationProperties properties; + /** * Get the name property: The operation name: {provider}/{resource}/{operation}. * @@ -67,6 +74,26 @@ public OperationInner withDisplay(OperationDisplay display) { return this; } + /** + * Get the properties property: The operation properties. + * + * @return the properties value. + */ + public OperationProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The operation properties. + * + * @param properties the properties value to set. + * @return the OperationInner object itself. + */ + public OperationInner withProperties(OperationProperties properties) { + this.properties = properties; + return this; + } + /** * Validates the instance. * @@ -76,5 +103,8 @@ public void validate() { if (display() != null) { display().validate(); } + if (properties() != null) { + properties().validate(); + } } } diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/ApplicationsClientImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/ApplicationsClientImpl.java index 6225d1ff208d..5e4d2a298e54 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/ApplicationsClientImpl.java +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/ApplicationsClientImpl.java @@ -119,7 +119,7 @@ Mono>> create( @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters" + "/{clusterName}/applications/{applicationName}") - @ExpectedResponses({200, 202}) + @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @HostParam("$host") String endpoint, diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/BillingResponseListResultImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/BillingResponseListResultImpl.java index 8deed79e5390..43740a6d688e 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/BillingResponseListResultImpl.java +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/BillingResponseListResultImpl.java @@ -9,6 +9,7 @@ import com.azure.resourcemanager.hdinsight.models.BillingResources; import com.azure.resourcemanager.hdinsight.models.BillingResponseListResult; import com.azure.resourcemanager.hdinsight.models.VmSizeCompatibilityFilterV2; +import com.azure.resourcemanager.hdinsight.models.VmSizeProperty; import java.util.Collections; import java.util.List; @@ -31,6 +32,15 @@ public List vmSizes() { } } + public List vmSizesWithEncryptionAtHost() { + List inner = this.innerModel().vmSizesWithEncryptionAtHost(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + public List vmSizeFilters() { List inner = this.innerModel().vmSizeFilters(); if (inner != null) { @@ -40,6 +50,15 @@ public List vmSizeFilters() { } } + public List vmSizeProperties() { + List inner = this.innerModel().vmSizeProperties(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + public List billingResources() { List inner = this.innerModel().billingResources(); if (inner != null) { diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/ClusterImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/ClusterImpl.java index 8adbc7281bc8..07870f771937 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/ClusterImpl.java +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/ClusterImpl.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.hdinsight.implementation; +import com.azure.core.http.rest.Response; import com.azure.core.management.Region; import com.azure.core.util.Context; import com.azure.resourcemanager.hdinsight.HDInsightManager; @@ -11,9 +12,13 @@ import com.azure.resourcemanager.hdinsight.models.Cluster; import com.azure.resourcemanager.hdinsight.models.ClusterCreateParametersExtended; import com.azure.resourcemanager.hdinsight.models.ClusterCreateProperties; +import com.azure.resourcemanager.hdinsight.models.ClusterDiskEncryptionParameters; import com.azure.resourcemanager.hdinsight.models.ClusterGetProperties; import com.azure.resourcemanager.hdinsight.models.ClusterIdentity; import com.azure.resourcemanager.hdinsight.models.ClusterPatchParameters; +import com.azure.resourcemanager.hdinsight.models.ExecuteScriptActionParameters; +import com.azure.resourcemanager.hdinsight.models.GatewaySettings; +import com.azure.resourcemanager.hdinsight.models.UpdateGatewaySettingsParameters; import java.util.Collections; import java.util.Map; @@ -165,6 +170,38 @@ public Cluster refresh(Context context) { return this; } + public void rotateDiskEncryptionKey(ClusterDiskEncryptionParameters parameters) { + serviceManager.clusters().rotateDiskEncryptionKey(resourceGroupName, clusterName, parameters); + } + + public void rotateDiskEncryptionKey(ClusterDiskEncryptionParameters parameters, Context context) { + serviceManager.clusters().rotateDiskEncryptionKey(resourceGroupName, clusterName, parameters, context); + } + + public GatewaySettings getGatewaySettings() { + return serviceManager.clusters().getGatewaySettings(resourceGroupName, clusterName); + } + + public Response getGatewaySettingsWithResponse(Context context) { + return serviceManager.clusters().getGatewaySettingsWithResponse(resourceGroupName, clusterName, context); + } + + public void updateGatewaySettings(UpdateGatewaySettingsParameters parameters) { + serviceManager.clusters().updateGatewaySettings(resourceGroupName, clusterName, parameters); + } + + public void updateGatewaySettings(UpdateGatewaySettingsParameters parameters, Context context) { + serviceManager.clusters().updateGatewaySettings(resourceGroupName, clusterName, parameters, context); + } + + public void executeScriptActions(ExecuteScriptActionParameters parameters) { + serviceManager.clusters().executeScriptActions(resourceGroupName, clusterName, parameters); + } + + public void executeScriptActions(ExecuteScriptActionParameters parameters, Context context) { + serviceManager.clusters().executeScriptActions(resourceGroupName, clusterName, parameters, context); + } + public ClusterImpl withRegion(Region location) { this.createParameters.withLocation(location.toString()); return this; diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/ClustersClientImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/ClustersClientImpl.java index 90b52450b7d6..4437f669810c 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/ClustersClientImpl.java +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/ClustersClientImpl.java @@ -113,7 +113,7 @@ Mono> update( @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters" + "/{clusterName}") - @ExpectedResponses({200, 202}) + @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @HostParam("$host") String endpoint, diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/ExtensionsClientImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/ExtensionsClientImpl.java index d050fd5275ac..631b3a3aa5b9 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/ExtensionsClientImpl.java +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/ExtensionsClientImpl.java @@ -99,7 +99,7 @@ Mono> getMonitoringStatus( @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters" + "/{clusterName}/extensions/clustermonitoring") - @ExpectedResponses({200, 202}) + @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> disableMonitoring( @HostParam("$host") String endpoint, @@ -147,7 +147,7 @@ Mono> get( @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters" + "/{clusterName}/extensions/{extensionName}") - @ExpectedResponses({200, 202}) + @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @HostParam("$host") String endpoint, diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/OperationImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/OperationImpl.java index ac728bd85f04..845c2c42cabc 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/OperationImpl.java +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/OperationImpl.java @@ -8,6 +8,7 @@ import com.azure.resourcemanager.hdinsight.fluent.models.OperationInner; import com.azure.resourcemanager.hdinsight.models.Operation; import com.azure.resourcemanager.hdinsight.models.OperationDisplay; +import com.azure.resourcemanager.hdinsight.models.OperationProperties; public final class OperationImpl implements Operation { private OperationInner innerObject; @@ -27,6 +28,10 @@ public OperationDisplay display() { return this.innerModel().display(); } + public OperationProperties properties() { + return this.innerModel().properties(); + } + public OperationInner innerModel() { return this.innerObject; } diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/ScriptActionsClientImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/ScriptActionsClientImpl.java index 022f38241640..c74994fcc70b 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/ScriptActionsClientImpl.java +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/ScriptActionsClientImpl.java @@ -64,7 +64,7 @@ private interface ScriptActionsService { @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters" + "/{clusterName}/scriptActions/{scriptName}") - @ExpectedResponses({200}) + @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( @HostParam("$host") String endpoint, diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ApplicationGetEndpoint.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ApplicationGetEndpoint.java index 181b6e8fe525..8d4f3a55fe84 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ApplicationGetEndpoint.java +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ApplicationGetEndpoint.java @@ -32,6 +32,12 @@ public final class ApplicationGetEndpoint { @JsonProperty(value = "publicPort") private Integer publicPort; + /* + * The private ip address of the endpoint. + */ + @JsonProperty(value = "privateIPAddress") + private String privateIpAddress; + /** * Get the location property: The location of the endpoint. * @@ -92,6 +98,26 @@ public ApplicationGetEndpoint withPublicPort(Integer publicPort) { return this; } + /** + * Get the privateIpAddress property: The private ip address of the endpoint. + * + * @return the privateIpAddress value. + */ + public String privateIpAddress() { + return this.privateIpAddress; + } + + /** + * Set the privateIpAddress property: The private ip address of the endpoint. + * + * @param privateIpAddress the privateIpAddress value to set. + * @return the ApplicationGetEndpoint object itself. + */ + public ApplicationGetEndpoint withPrivateIpAddress(String privateIpAddress) { + this.privateIpAddress = privateIpAddress; + return this; + } + /** * Validates the instance. * diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/BillingResponseListResult.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/BillingResponseListResult.java index 7a4b90ac0b4a..245573151688 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/BillingResponseListResult.java +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/BillingResponseListResult.java @@ -16,6 +16,13 @@ public interface BillingResponseListResult { */ List vmSizes(); + /** + * Gets the vmSizesWithEncryptionAtHost property: The vm sizes which enable encryption at host. + * + * @return the vmSizesWithEncryptionAtHost value. + */ + List vmSizesWithEncryptionAtHost(); + /** * Gets the vmSizeFilters property: The virtual machine filtering mode. Effectively this can enabling or disabling * the virtual machine sizes in a particular set. @@ -24,6 +31,13 @@ public interface BillingResponseListResult { */ List vmSizeFilters(); + /** + * Gets the vmSizeProperties property: The vm size properties. + * + * @return the vmSizeProperties value. + */ + List vmSizeProperties(); + /** * Gets the billingResources property: The billing and managed disk billing resources for a region. * diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/Cluster.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/Cluster.java index b2a09c27f13e..e558b8e5d7eb 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/Cluster.java +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/Cluster.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.hdinsight.models; +import com.azure.core.http.rest.Response; import com.azure.core.management.Region; import com.azure.core.util.Context; import com.azure.resourcemanager.hdinsight.fluent.models.ClusterInner; @@ -231,4 +232,87 @@ interface WithTags { * @return the refreshed resource. */ Cluster refresh(Context context); + + /** + * Rotate disk encryption key of the specified HDInsight cluster. + * + * @param parameters The parameters for the disk encryption operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void rotateDiskEncryptionKey(ClusterDiskEncryptionParameters parameters); + + /** + * Rotate disk encryption key of the specified HDInsight cluster. + * + * @param parameters The parameters for the disk encryption operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void rotateDiskEncryptionKey(ClusterDiskEncryptionParameters parameters, Context context); + + /** + * Gets the gateway settings for the specified cluster. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the gateway settings for the specified cluster. + */ + GatewaySettings getGatewaySettings(); + + /** + * Gets the gateway settings for the specified cluster. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the gateway settings for the specified cluster. + */ + Response getGatewaySettingsWithResponse(Context context); + + /** + * Configures the gateway settings on the specified cluster. + * + * @param parameters The cluster configurations. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void updateGatewaySettings(UpdateGatewaySettingsParameters parameters); + + /** + * Configures the gateway settings on the specified cluster. + * + * @param parameters The cluster configurations. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void updateGatewaySettings(UpdateGatewaySettingsParameters parameters, Context context); + + /** + * Executes script actions on the specified HDInsight cluster. + * + * @param parameters The parameters for executing script actions. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void executeScriptActions(ExecuteScriptActionParameters parameters); + + /** + * Executes script actions on the specified HDInsight cluster. + * + * @param parameters The parameters for executing script actions. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void executeScriptActions(ExecuteScriptActionParameters parameters, Context context); } diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ClusterGetProperties.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ClusterGetProperties.java index ad354308027d..ca34d943c42f 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ClusterGetProperties.java +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ClusterGetProperties.java @@ -21,6 +21,12 @@ public final class ClusterGetProperties { @JsonProperty(value = "clusterVersion") private String clusterVersion; + /* + * The hdp version of the cluster. + */ + @JsonProperty(value = "clusterHdpVersion") + private String clusterHdpVersion; + /* * The type of operating system. */ @@ -111,12 +117,24 @@ public final class ClusterGetProperties { @JsonProperty(value = "encryptionInTransitProperties") private EncryptionInTransitProperties encryptionInTransitProperties; + /* + * The storage profile. + */ + @JsonProperty(value = "storageProfile") + private StorageProfile storageProfile; + /* * The minimal supported tls version. */ @JsonProperty(value = "minSupportedTlsVersion") private String minSupportedTlsVersion; + /* + * The excluded services config. + */ + @JsonProperty(value = "excludedServicesConfig") + private ExcludedServicesConfig excludedServicesConfig; + /* * The network properties. */ @@ -149,6 +167,26 @@ public ClusterGetProperties withClusterVersion(String clusterVersion) { return this; } + /** + * Get the clusterHdpVersion property: The hdp version of the cluster. + * + * @return the clusterHdpVersion value. + */ + public String clusterHdpVersion() { + return this.clusterHdpVersion; + } + + /** + * Set the clusterHdpVersion property: The hdp version of the cluster. + * + * @param clusterHdpVersion the clusterHdpVersion value to set. + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withClusterHdpVersion(String clusterHdpVersion) { + this.clusterHdpVersion = clusterHdpVersion; + return this; + } + /** * Get the osType property: The type of operating system. * @@ -450,6 +488,26 @@ public ClusterGetProperties withEncryptionInTransitProperties( return this; } + /** + * Get the storageProfile property: The storage profile. + * + * @return the storageProfile value. + */ + public StorageProfile storageProfile() { + return this.storageProfile; + } + + /** + * Set the storageProfile property: The storage profile. + * + * @param storageProfile the storageProfile value to set. + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withStorageProfile(StorageProfile storageProfile) { + this.storageProfile = storageProfile; + return this; + } + /** * Get the minSupportedTlsVersion property: The minimal supported tls version. * @@ -470,6 +528,26 @@ public ClusterGetProperties withMinSupportedTlsVersion(String minSupportedTlsVer return this; } + /** + * Get the excludedServicesConfig property: The excluded services config. + * + * @return the excludedServicesConfig value. + */ + public ExcludedServicesConfig excludedServicesConfig() { + return this.excludedServicesConfig; + } + + /** + * Set the excludedServicesConfig property: The excluded services config. + * + * @param excludedServicesConfig the excludedServicesConfig value to set. + * @return the ClusterGetProperties object itself. + */ + public ClusterGetProperties withExcludedServicesConfig(ExcludedServicesConfig excludedServicesConfig) { + this.excludedServicesConfig = excludedServicesConfig; + return this; + } + /** * Get the networkProperties property: The network properties. * @@ -548,6 +626,12 @@ public void validate() { if (encryptionInTransitProperties() != null) { encryptionInTransitProperties().validate(); } + if (storageProfile() != null) { + storageProfile().validate(); + } + if (excludedServicesConfig() != null) { + excludedServicesConfig().validate(); + } if (networkProperties() != null) { networkProperties().validate(); } diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ClusterIdentityUserAssignedIdentities.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ClusterIdentityUserAssignedIdentities.java index e78dc09ee0b5..104ee1447e0e 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ClusterIdentityUserAssignedIdentities.java +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ClusterIdentityUserAssignedIdentities.java @@ -4,13 +4,13 @@ package com.azure.resourcemanager.hdinsight.models; -import com.azure.core.annotation.Immutable; +import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The ClusterIdentityUserAssignedIdentities model. */ -@Immutable +@Fluent public final class ClusterIdentityUserAssignedIdentities { @JsonIgnore private final ClientLogger logger = new ClientLogger(ClusterIdentityUserAssignedIdentities.class); @@ -26,6 +26,12 @@ public final class ClusterIdentityUserAssignedIdentities { @JsonProperty(value = "clientId", access = JsonProperty.Access.WRITE_ONLY) private String clientId; + /* + * The tenant id of user assigned identity. + */ + @JsonProperty(value = "tenantId") + private String tenantId; + /** * Get the principalId property: The principal id of user assigned identity. * @@ -44,6 +50,26 @@ public String clientId() { return this.clientId; } + /** + * Get the tenantId property: The tenant id of user assigned identity. + * + * @return the tenantId value. + */ + public String tenantId() { + return this.tenantId; + } + + /** + * Set the tenantId property: The tenant id of user assigned identity. + * + * @param tenantId the tenantId value to set. + * @return the ClusterIdentityUserAssignedIdentities object itself. + */ + public ClusterIdentityUserAssignedIdentities withTenantId(String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Validates the instance. * diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ConnectivityEndpoint.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ConnectivityEndpoint.java index 3dbaa3f95a5a..137797060b56 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ConnectivityEndpoint.java +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ConnectivityEndpoint.java @@ -38,6 +38,12 @@ public final class ConnectivityEndpoint { @JsonProperty(value = "port") private Integer port; + /* + * The private ip address of the endpoint. + */ + @JsonProperty(value = "privateIPAddress") + private String privateIpAddress; + /** * Get the name property: The name of the endpoint. * @@ -118,6 +124,26 @@ public ConnectivityEndpoint withPort(Integer port) { return this; } + /** + * Get the privateIpAddress property: The private ip address of the endpoint. + * + * @return the privateIpAddress value. + */ + public String privateIpAddress() { + return this.privateIpAddress; + } + + /** + * Set the privateIpAddress property: The private ip address of the endpoint. + * + * @param privateIpAddress the privateIpAddress value to set. + * @return the ConnectivityEndpoint object itself. + */ + public ConnectivityEndpoint withPrivateIpAddress(String privateIpAddress) { + this.privateIpAddress = privateIpAddress; + return this; + } + /** * Validates the instance. * diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/Dimension.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/Dimension.java new file mode 100644 index 000000000000..80fe968bc75a --- /dev/null +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/Dimension.java @@ -0,0 +1,131 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.hdinsight.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The definition of Dimension. */ +@Fluent +public final class Dimension { + @JsonIgnore private final ClientLogger logger = new ClientLogger(Dimension.class); + + /* + * The name of the dimension. + */ + @JsonProperty(value = "name") + private String name; + + /* + * The display name of the dimension. + */ + @JsonProperty(value = "displayName") + private String displayName; + + /* + * The display name of the dimension. + */ + @JsonProperty(value = "internalName") + private String internalName; + + /* + * The flag indicates whether the metric will be exported for shoebox or + * not. + */ + @JsonProperty(value = "toBeExportedForShoebox") + private Boolean toBeExportedForShoebox; + + /** + * Get the name property: The name of the dimension. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: The name of the dimension. + * + * @param name the name value to set. + * @return the Dimension object itself. + */ + public Dimension withName(String name) { + this.name = name; + return this; + } + + /** + * Get the displayName property: The display name of the dimension. + * + * @return the displayName value. + */ + public String displayName() { + return this.displayName; + } + + /** + * Set the displayName property: The display name of the dimension. + * + * @param displayName the displayName value to set. + * @return the Dimension object itself. + */ + public Dimension withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get the internalName property: The display name of the dimension. + * + * @return the internalName value. + */ + public String internalName() { + return this.internalName; + } + + /** + * Set the internalName property: The display name of the dimension. + * + * @param internalName the internalName value to set. + * @return the Dimension object itself. + */ + public Dimension withInternalName(String internalName) { + this.internalName = internalName; + return this; + } + + /** + * Get the toBeExportedForShoebox property: The flag indicates whether the metric will be exported for shoebox or + * not. + * + * @return the toBeExportedForShoebox value. + */ + public Boolean toBeExportedForShoebox() { + return this.toBeExportedForShoebox; + } + + /** + * Set the toBeExportedForShoebox property: The flag indicates whether the metric will be exported for shoebox or + * not. + * + * @param toBeExportedForShoebox the toBeExportedForShoebox value to set. + * @return the Dimension object itself. + */ + public Dimension withToBeExportedForShoebox(Boolean toBeExportedForShoebox) { + this.toBeExportedForShoebox = toBeExportedForShoebox; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ExcludedServicesConfig.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ExcludedServicesConfig.java new file mode 100644 index 000000000000..45cba1d99941 --- /dev/null +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ExcludedServicesConfig.java @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.hdinsight.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The configuration that services will be excluded when creating cluster. */ +@Fluent +public final class ExcludedServicesConfig { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ExcludedServicesConfig.class); + + /* + * The config id of excluded services. + */ + @JsonProperty(value = "excludedServicesConfigId") + private String excludedServicesConfigId; + + /* + * The list of excluded services. + */ + @JsonProperty(value = "excludedServicesList") + private String excludedServicesList; + + /** + * Get the excludedServicesConfigId property: The config id of excluded services. + * + * @return the excludedServicesConfigId value. + */ + public String excludedServicesConfigId() { + return this.excludedServicesConfigId; + } + + /** + * Set the excludedServicesConfigId property: The config id of excluded services. + * + * @param excludedServicesConfigId the excludedServicesConfigId value to set. + * @return the ExcludedServicesConfig object itself. + */ + public ExcludedServicesConfig withExcludedServicesConfigId(String excludedServicesConfigId) { + this.excludedServicesConfigId = excludedServicesConfigId; + return this; + } + + /** + * Get the excludedServicesList property: The list of excluded services. + * + * @return the excludedServicesList value. + */ + public String excludedServicesList() { + return this.excludedServicesList; + } + + /** + * Set the excludedServicesList property: The list of excluded services. + * + * @param excludedServicesList the excludedServicesList value to set. + * @return the ExcludedServicesConfig object itself. + */ + public ExcludedServicesConfig withExcludedServicesList(String excludedServicesList) { + this.excludedServicesList = excludedServicesList; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/FilterMode.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/FilterMode.java index bcb7d5d1456f..ea6c22f6188b 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/FilterMode.java +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/FilterMode.java @@ -16,6 +16,12 @@ public final class FilterMode extends ExpandableStringEnum { /** Static value Include for FilterMode. */ public static final FilterMode INCLUDE = fromString("Include"); + /** Static value Recommend for FilterMode. */ + public static final FilterMode RECOMMEND = fromString("Recommend"); + + /** Static value Default for FilterMode. */ + public static final FilterMode DEFAULT = fromString("Default"); + /** * Creates or finds a FilterMode from its string representation. * diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/MetricSpecifications.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/MetricSpecifications.java new file mode 100644 index 000000000000..da5a4cf9f7b8 --- /dev/null +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/MetricSpecifications.java @@ -0,0 +1,470 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.hdinsight.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The details of metric specifications. */ +@Fluent +public final class MetricSpecifications { + @JsonIgnore private final ClientLogger logger = new ClientLogger(MetricSpecifications.class); + + /* + * The name of the metric specification. + */ + @JsonProperty(value = "name") + private String name; + + /* + * The display name of the metric specification. + */ + @JsonProperty(value = "displayName") + private String displayName; + + /* + * The display description of the metric specification. + */ + @JsonProperty(value = "displayDescription") + private String displayDescription; + + /* + * The unit of the metric specification. + */ + @JsonProperty(value = "unit") + private String unit; + + /* + * The aggregation type of the metric specification. + */ + @JsonProperty(value = "aggregationType") + private String aggregationType; + + /* + * The supported aggregation types of the metric specification. + */ + @JsonProperty(value = "supportedAggregationTypes") + private List supportedAggregationTypes; + + /* + * The supported time grain types of the metric specification. + */ + @JsonProperty(value = "supportedTimeGrainTypes") + private List supportedTimeGrainTypes; + + /* + * The flag indicates whether enable regional mdm account or not. + */ + @JsonProperty(value = "enableRegionalMdmAccount") + private Boolean enableRegionalMdmAccount; + + /* + * The source mdm account. + */ + @JsonProperty(value = "sourceMdmAccount") + private String sourceMdmAccount; + + /* + * The source mdm namespace. + */ + @JsonProperty(value = "sourceMdmNamespace") + private String sourceMdmNamespace; + + /* + * The metric filter pattern. + */ + @JsonProperty(value = "metricFilterPattern") + private String metricFilterPattern; + + /* + * The flag indicates whether filling gap with zero. + */ + @JsonProperty(value = "fillGapWithZero") + private Boolean fillGapWithZero; + + /* + * The category of the metric. + */ + @JsonProperty(value = "category") + private String category; + + /* + * The override name of resource id dimension name. + */ + @JsonProperty(value = "resourceIdDimensionNameOverride") + private String resourceIdDimensionNameOverride; + + /* + * The flag indicates whether the metric is internal or not. + */ + @JsonProperty(value = "isInternal") + private Boolean isInternal; + + /* + * The override name of delegate metric. + */ + @JsonProperty(value = "delegateMetricNameOverride") + private String delegateMetricNameOverride; + + /* + * The dimensions of the metric specification. + */ + @JsonProperty(value = "dimensions") + private List dimensions; + + /** + * Get the name property: The name of the metric specification. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: The name of the metric specification. + * + * @param name the name value to set. + * @return the MetricSpecifications object itself. + */ + public MetricSpecifications withName(String name) { + this.name = name; + return this; + } + + /** + * Get the displayName property: The display name of the metric specification. + * + * @return the displayName value. + */ + public String displayName() { + return this.displayName; + } + + /** + * Set the displayName property: The display name of the metric specification. + * + * @param displayName the displayName value to set. + * @return the MetricSpecifications object itself. + */ + public MetricSpecifications withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get the displayDescription property: The display description of the metric specification. + * + * @return the displayDescription value. + */ + public String displayDescription() { + return this.displayDescription; + } + + /** + * Set the displayDescription property: The display description of the metric specification. + * + * @param displayDescription the displayDescription value to set. + * @return the MetricSpecifications object itself. + */ + public MetricSpecifications withDisplayDescription(String displayDescription) { + this.displayDescription = displayDescription; + return this; + } + + /** + * Get the unit property: The unit of the metric specification. + * + * @return the unit value. + */ + public String unit() { + return this.unit; + } + + /** + * Set the unit property: The unit of the metric specification. + * + * @param unit the unit value to set. + * @return the MetricSpecifications object itself. + */ + public MetricSpecifications withUnit(String unit) { + this.unit = unit; + return this; + } + + /** + * Get the aggregationType property: The aggregation type of the metric specification. + * + * @return the aggregationType value. + */ + public String aggregationType() { + return this.aggregationType; + } + + /** + * Set the aggregationType property: The aggregation type of the metric specification. + * + * @param aggregationType the aggregationType value to set. + * @return the MetricSpecifications object itself. + */ + public MetricSpecifications withAggregationType(String aggregationType) { + this.aggregationType = aggregationType; + return this; + } + + /** + * Get the supportedAggregationTypes property: The supported aggregation types of the metric specification. + * + * @return the supportedAggregationTypes value. + */ + public List supportedAggregationTypes() { + return this.supportedAggregationTypes; + } + + /** + * Set the supportedAggregationTypes property: The supported aggregation types of the metric specification. + * + * @param supportedAggregationTypes the supportedAggregationTypes value to set. + * @return the MetricSpecifications object itself. + */ + public MetricSpecifications withSupportedAggregationTypes(List supportedAggregationTypes) { + this.supportedAggregationTypes = supportedAggregationTypes; + return this; + } + + /** + * Get the supportedTimeGrainTypes property: The supported time grain types of the metric specification. + * + * @return the supportedTimeGrainTypes value. + */ + public List supportedTimeGrainTypes() { + return this.supportedTimeGrainTypes; + } + + /** + * Set the supportedTimeGrainTypes property: The supported time grain types of the metric specification. + * + * @param supportedTimeGrainTypes the supportedTimeGrainTypes value to set. + * @return the MetricSpecifications object itself. + */ + public MetricSpecifications withSupportedTimeGrainTypes(List supportedTimeGrainTypes) { + this.supportedTimeGrainTypes = supportedTimeGrainTypes; + return this; + } + + /** + * Get the enableRegionalMdmAccount property: The flag indicates whether enable regional mdm account or not. + * + * @return the enableRegionalMdmAccount value. + */ + public Boolean enableRegionalMdmAccount() { + return this.enableRegionalMdmAccount; + } + + /** + * Set the enableRegionalMdmAccount property: The flag indicates whether enable regional mdm account or not. + * + * @param enableRegionalMdmAccount the enableRegionalMdmAccount value to set. + * @return the MetricSpecifications object itself. + */ + public MetricSpecifications withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount) { + this.enableRegionalMdmAccount = enableRegionalMdmAccount; + return this; + } + + /** + * Get the sourceMdmAccount property: The source mdm account. + * + * @return the sourceMdmAccount value. + */ + public String sourceMdmAccount() { + return this.sourceMdmAccount; + } + + /** + * Set the sourceMdmAccount property: The source mdm account. + * + * @param sourceMdmAccount the sourceMdmAccount value to set. + * @return the MetricSpecifications object itself. + */ + public MetricSpecifications withSourceMdmAccount(String sourceMdmAccount) { + this.sourceMdmAccount = sourceMdmAccount; + return this; + } + + /** + * Get the sourceMdmNamespace property: The source mdm namespace. + * + * @return the sourceMdmNamespace value. + */ + public String sourceMdmNamespace() { + return this.sourceMdmNamespace; + } + + /** + * Set the sourceMdmNamespace property: The source mdm namespace. + * + * @param sourceMdmNamespace the sourceMdmNamespace value to set. + * @return the MetricSpecifications object itself. + */ + public MetricSpecifications withSourceMdmNamespace(String sourceMdmNamespace) { + this.sourceMdmNamespace = sourceMdmNamespace; + return this; + } + + /** + * Get the metricFilterPattern property: The metric filter pattern. + * + * @return the metricFilterPattern value. + */ + public String metricFilterPattern() { + return this.metricFilterPattern; + } + + /** + * Set the metricFilterPattern property: The metric filter pattern. + * + * @param metricFilterPattern the metricFilterPattern value to set. + * @return the MetricSpecifications object itself. + */ + public MetricSpecifications withMetricFilterPattern(String metricFilterPattern) { + this.metricFilterPattern = metricFilterPattern; + return this; + } + + /** + * Get the fillGapWithZero property: The flag indicates whether filling gap with zero. + * + * @return the fillGapWithZero value. + */ + public Boolean fillGapWithZero() { + return this.fillGapWithZero; + } + + /** + * Set the fillGapWithZero property: The flag indicates whether filling gap with zero. + * + * @param fillGapWithZero the fillGapWithZero value to set. + * @return the MetricSpecifications object itself. + */ + public MetricSpecifications withFillGapWithZero(Boolean fillGapWithZero) { + this.fillGapWithZero = fillGapWithZero; + return this; + } + + /** + * Get the category property: The category of the metric. + * + * @return the category value. + */ + public String category() { + return this.category; + } + + /** + * Set the category property: The category of the metric. + * + * @param category the category value to set. + * @return the MetricSpecifications object itself. + */ + public MetricSpecifications withCategory(String category) { + this.category = category; + return this; + } + + /** + * Get the resourceIdDimensionNameOverride property: The override name of resource id dimension name. + * + * @return the resourceIdDimensionNameOverride value. + */ + public String resourceIdDimensionNameOverride() { + return this.resourceIdDimensionNameOverride; + } + + /** + * Set the resourceIdDimensionNameOverride property: The override name of resource id dimension name. + * + * @param resourceIdDimensionNameOverride the resourceIdDimensionNameOverride value to set. + * @return the MetricSpecifications object itself. + */ + public MetricSpecifications withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride) { + this.resourceIdDimensionNameOverride = resourceIdDimensionNameOverride; + return this; + } + + /** + * Get the isInternal property: The flag indicates whether the metric is internal or not. + * + * @return the isInternal value. + */ + public Boolean isInternal() { + return this.isInternal; + } + + /** + * Set the isInternal property: The flag indicates whether the metric is internal or not. + * + * @param isInternal the isInternal value to set. + * @return the MetricSpecifications object itself. + */ + public MetricSpecifications withIsInternal(Boolean isInternal) { + this.isInternal = isInternal; + return this; + } + + /** + * Get the delegateMetricNameOverride property: The override name of delegate metric. + * + * @return the delegateMetricNameOverride value. + */ + public String delegateMetricNameOverride() { + return this.delegateMetricNameOverride; + } + + /** + * Set the delegateMetricNameOverride property: The override name of delegate metric. + * + * @param delegateMetricNameOverride the delegateMetricNameOverride value to set. + * @return the MetricSpecifications object itself. + */ + public MetricSpecifications withDelegateMetricNameOverride(String delegateMetricNameOverride) { + this.delegateMetricNameOverride = delegateMetricNameOverride; + return this; + } + + /** + * Get the dimensions property: The dimensions of the metric specification. + * + * @return the dimensions value. + */ + public List dimensions() { + return this.dimensions; + } + + /** + * Set the dimensions property: The dimensions of the metric specification. + * + * @param dimensions the dimensions value to set. + * @return the MetricSpecifications object itself. + */ + public MetricSpecifications withDimensions(List dimensions) { + this.dimensions = dimensions; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (dimensions() != null) { + dimensions().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/Operation.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/Operation.java index 56a0ef155183..cd32268a24fe 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/Operation.java +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/Operation.java @@ -22,6 +22,13 @@ public interface Operation { */ OperationDisplay display(); + /** + * Gets the properties property: The operation properties. + * + * @return the properties value. + */ + OperationProperties properties(); + /** * Gets the inner com.azure.resourcemanager.hdinsight.fluent.models.OperationInner object. * diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/OperationDisplay.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/OperationDisplay.java index de2c63a9ddbf..ffe486694303 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/OperationDisplay.java +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/OperationDisplay.java @@ -33,6 +33,12 @@ public final class OperationDisplay { @JsonProperty(value = "operation") private String operation; + /* + * Localized friendly description for the operation + */ + @JsonProperty(value = "description") + private String description; + /** * Get the provider property: The service provider: Microsoft.HDInsight. * @@ -93,6 +99,26 @@ public OperationDisplay withOperation(String operation) { return this; } + /** + * Get the description property: Localized friendly description for the operation. + * + * @return the description value. + */ + public String description() { + return this.description; + } + + /** + * Set the description property: Localized friendly description for the operation. + * + * @param description the description value to set. + * @return the OperationDisplay object itself. + */ + public OperationDisplay withDescription(String description) { + this.description = description; + return this; + } + /** * Validates the instance. * diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/OperationProperties.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/OperationProperties.java new file mode 100644 index 000000000000..895894293c36 --- /dev/null +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/OperationProperties.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.hdinsight.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The details of operation. */ +@Fluent +public final class OperationProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationProperties.class); + + /* + * The specification of the service. + */ + @JsonProperty(value = "serviceSpecification") + private ServiceSpecification serviceSpecification; + + /** + * Get the serviceSpecification property: The specification of the service. + * + * @return the serviceSpecification value. + */ + public ServiceSpecification serviceSpecification() { + return this.serviceSpecification; + } + + /** + * Set the serviceSpecification property: The specification of the service. + * + * @param serviceSpecification the serviceSpecification value to set. + * @return the OperationProperties object itself. + */ + public OperationProperties withServiceSpecification(ServiceSpecification serviceSpecification) { + this.serviceSpecification = serviceSpecification; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (serviceSpecification() != null) { + serviceSpecification().validate(); + } + } +} diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/Role.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/Role.java index 4ff129ccf28b..36477a499531 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/Role.java +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/Role.java @@ -69,6 +69,12 @@ public final class Role { @JsonProperty(value = "scriptActions") private List scriptActions; + /* + * Indicates whether encrypt the data disks. + */ + @JsonProperty(value = "encryptDataDisks") + private Boolean encryptDataDisks; + /** * Get the name property: The name of the role. * @@ -249,6 +255,26 @@ public Role withScriptActions(List scriptActions) { return this; } + /** + * Get the encryptDataDisks property: Indicates whether encrypt the data disks. + * + * @return the encryptDataDisks value. + */ + public Boolean encryptDataDisks() { + return this.encryptDataDisks; + } + + /** + * Set the encryptDataDisks property: Indicates whether encrypt the data disks. + * + * @param encryptDataDisks the encryptDataDisks value to set. + * @return the Role object itself. + */ + public Role withEncryptDataDisks(Boolean encryptDataDisks) { + this.encryptDataDisks = encryptDataDisks; + return this; + } + /** * Validates the instance. * diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ServiceSpecification.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ServiceSpecification.java new file mode 100644 index 000000000000..b12dca8e9d1d --- /dev/null +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/ServiceSpecification.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.hdinsight.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The specification of the service. */ +@Fluent +public final class ServiceSpecification { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ServiceSpecification.class); + + /* + * The metric specifications. + */ + @JsonProperty(value = "metricSpecifications") + private List metricSpecifications; + + /** + * Get the metricSpecifications property: The metric specifications. + * + * @return the metricSpecifications value. + */ + public List metricSpecifications() { + return this.metricSpecifications; + } + + /** + * Set the metricSpecifications property: The metric specifications. + * + * @param metricSpecifications the metricSpecifications value to set. + * @return the ServiceSpecification object itself. + */ + public ServiceSpecification withMetricSpecifications(List metricSpecifications) { + this.metricSpecifications = metricSpecifications; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (metricSpecifications() != null) { + metricSpecifications().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/VmSizeProperty.java b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/VmSizeProperty.java new file mode 100644 index 000000000000..5509ccfda096 --- /dev/null +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/models/VmSizeProperty.java @@ -0,0 +1,288 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.hdinsight.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The vm size property. */ +@Fluent +public final class VmSizeProperty { + @JsonIgnore private final ClientLogger logger = new ClientLogger(VmSizeProperty.class); + + /* + * The vm size name. + */ + @JsonProperty(value = "name") + private String name; + + /* + * The number of cores that the vm size has. + */ + @JsonProperty(value = "cores") + private Integer cores; + + /* + * The data disk storage tier of the vm size. + */ + @JsonProperty(value = "dataDiskStorageTier") + private String dataDiskStorageTier; + + /* + * The label of the vm size. + */ + @JsonProperty(value = "label") + private String label; + + /* + * The max data disk count of the vm size. + */ + @JsonProperty(value = "maxDataDiskCount") + private Long maxDataDiskCount; + + /* + * The memory whose unit is MB of the vm size. + */ + @JsonProperty(value = "memoryInMb") + private Long memoryInMb; + + /* + * This indicates this vm size is supported by virtual machines or not + */ + @JsonProperty(value = "supportedByVirtualMachines") + private Boolean supportedByVirtualMachines; + + /* + * The indicates this vm size is supported by web worker roles or not + */ + @JsonProperty(value = "supportedByWebWorkerRoles") + private Boolean supportedByWebWorkerRoles; + + /* + * The virtual machine resource disk size whose unit is MB of the vm size. + */ + @JsonProperty(value = "virtualMachineResourceDiskSizeInMb") + private Long virtualMachineResourceDiskSizeInMb; + + /* + * The web worker resource disk size whose unit is MB of the vm size. + */ + @JsonProperty(value = "webWorkerResourceDiskSizeInMb") + private Long webWorkerResourceDiskSizeInMb; + + /** + * Get the name property: The vm size name. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: The vm size name. + * + * @param name the name value to set. + * @return the VmSizeProperty object itself. + */ + public VmSizeProperty withName(String name) { + this.name = name; + return this; + } + + /** + * Get the cores property: The number of cores that the vm size has. + * + * @return the cores value. + */ + public Integer cores() { + return this.cores; + } + + /** + * Set the cores property: The number of cores that the vm size has. + * + * @param cores the cores value to set. + * @return the VmSizeProperty object itself. + */ + public VmSizeProperty withCores(Integer cores) { + this.cores = cores; + return this; + } + + /** + * Get the dataDiskStorageTier property: The data disk storage tier of the vm size. + * + * @return the dataDiskStorageTier value. + */ + public String dataDiskStorageTier() { + return this.dataDiskStorageTier; + } + + /** + * Set the dataDiskStorageTier property: The data disk storage tier of the vm size. + * + * @param dataDiskStorageTier the dataDiskStorageTier value to set. + * @return the VmSizeProperty object itself. + */ + public VmSizeProperty withDataDiskStorageTier(String dataDiskStorageTier) { + this.dataDiskStorageTier = dataDiskStorageTier; + return this; + } + + /** + * Get the label property: The label of the vm size. + * + * @return the label value. + */ + public String label() { + return this.label; + } + + /** + * Set the label property: The label of the vm size. + * + * @param label the label value to set. + * @return the VmSizeProperty object itself. + */ + public VmSizeProperty withLabel(String label) { + this.label = label; + return this; + } + + /** + * Get the maxDataDiskCount property: The max data disk count of the vm size. + * + * @return the maxDataDiskCount value. + */ + public Long maxDataDiskCount() { + return this.maxDataDiskCount; + } + + /** + * Set the maxDataDiskCount property: The max data disk count of the vm size. + * + * @param maxDataDiskCount the maxDataDiskCount value to set. + * @return the VmSizeProperty object itself. + */ + public VmSizeProperty withMaxDataDiskCount(Long maxDataDiskCount) { + this.maxDataDiskCount = maxDataDiskCount; + return this; + } + + /** + * Get the memoryInMb property: The memory whose unit is MB of the vm size. + * + * @return the memoryInMb value. + */ + public Long memoryInMb() { + return this.memoryInMb; + } + + /** + * Set the memoryInMb property: The memory whose unit is MB of the vm size. + * + * @param memoryInMb the memoryInMb value to set. + * @return the VmSizeProperty object itself. + */ + public VmSizeProperty withMemoryInMb(Long memoryInMb) { + this.memoryInMb = memoryInMb; + return this; + } + + /** + * Get the supportedByVirtualMachines property: This indicates this vm size is supported by virtual machines or not. + * + * @return the supportedByVirtualMachines value. + */ + public Boolean supportedByVirtualMachines() { + return this.supportedByVirtualMachines; + } + + /** + * Set the supportedByVirtualMachines property: This indicates this vm size is supported by virtual machines or not. + * + * @param supportedByVirtualMachines the supportedByVirtualMachines value to set. + * @return the VmSizeProperty object itself. + */ + public VmSizeProperty withSupportedByVirtualMachines(Boolean supportedByVirtualMachines) { + this.supportedByVirtualMachines = supportedByVirtualMachines; + return this; + } + + /** + * Get the supportedByWebWorkerRoles property: The indicates this vm size is supported by web worker roles or not. + * + * @return the supportedByWebWorkerRoles value. + */ + public Boolean supportedByWebWorkerRoles() { + return this.supportedByWebWorkerRoles; + } + + /** + * Set the supportedByWebWorkerRoles property: The indicates this vm size is supported by web worker roles or not. + * + * @param supportedByWebWorkerRoles the supportedByWebWorkerRoles value to set. + * @return the VmSizeProperty object itself. + */ + public VmSizeProperty withSupportedByWebWorkerRoles(Boolean supportedByWebWorkerRoles) { + this.supportedByWebWorkerRoles = supportedByWebWorkerRoles; + return this; + } + + /** + * Get the virtualMachineResourceDiskSizeInMb property: The virtual machine resource disk size whose unit is MB of + * the vm size. + * + * @return the virtualMachineResourceDiskSizeInMb value. + */ + public Long virtualMachineResourceDiskSizeInMb() { + return this.virtualMachineResourceDiskSizeInMb; + } + + /** + * Set the virtualMachineResourceDiskSizeInMb property: The virtual machine resource disk size whose unit is MB of + * the vm size. + * + * @param virtualMachineResourceDiskSizeInMb the virtualMachineResourceDiskSizeInMb value to set. + * @return the VmSizeProperty object itself. + */ + public VmSizeProperty withVirtualMachineResourceDiskSizeInMb(Long virtualMachineResourceDiskSizeInMb) { + this.virtualMachineResourceDiskSizeInMb = virtualMachineResourceDiskSizeInMb; + return this; + } + + /** + * Get the webWorkerResourceDiskSizeInMb property: The web worker resource disk size whose unit is MB of the vm + * size. + * + * @return the webWorkerResourceDiskSizeInMb value. + */ + public Long webWorkerResourceDiskSizeInMb() { + return this.webWorkerResourceDiskSizeInMb; + } + + /** + * Set the webWorkerResourceDiskSizeInMb property: The web worker resource disk size whose unit is MB of the vm + * size. + * + * @param webWorkerResourceDiskSizeInMb the webWorkerResourceDiskSizeInMb value to set. + * @return the VmSizeProperty object itself. + */ + public VmSizeProperty withWebWorkerResourceDiskSizeInMb(Long webWorkerResourceDiskSizeInMb) { + this.webWorkerResourceDiskSizeInMb = webWorkerResourceDiskSizeInMb; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +}