diff --git a/sdk/avs/mgmt-v2020_03_20/pom.xml b/sdk/avs/mgmt-v2020_03_20/pom.xml
index 2ee6866b239b..92eb36167cb0 100644
--- a/sdk/avs/mgmt-v2020_03_20/pom.xml
+++ b/sdk/avs/mgmt-v2020_03_20/pom.xml
@@ -15,7 +15,7 @@
../../parents/azure-arm-parent/pom.xml
azure-mgmt-avs
- 1.0.0-beta
+ 1.0.0
jar
Microsoft Azure SDK for AVS Management
This package contains Microsoft AVS Management SDK.
diff --git a/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/Cluster.java b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/Cluster.java
index 720b1ff36683..f1c14b9368ab 100644
--- a/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/Cluster.java
+++ b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/Cluster.java
@@ -116,12 +116,24 @@ interface WithClusterSize {
WithCreate withClusterSize(Integer clusterSize);
}
+ /**
+ * The stage of the cluster definition allowing to specify ProvisioningState.
+ */
+ interface WithProvisioningState {
+ /**
+ * Specifies provisioningState.
+ * @param provisioningState The state of the cluster provisioning. Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating'
+ * @return the next definition stage
+ */
+ WithCreate withProvisioningState(ClusterProvisioningState provisioningState);
+ }
+
/**
* The stage of the definition which contains all the minimum required inputs for
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
- interface WithCreate extends Creatable, DefinitionStages.WithClusterSize {
+ interface WithCreate extends Creatable, DefinitionStages.WithClusterSize, DefinitionStages.WithProvisioningState {
}
}
/**
diff --git a/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/ErrorResponse.java b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/ErrorResponse.java
index 6dea1bcae7ae..8e4e1da1eb3c 100644
--- a/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/ErrorResponse.java
+++ b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/ErrorResponse.java
@@ -12,7 +12,10 @@
import com.fasterxml.jackson.annotation.JsonProperty;
/**
- * The resource management error response.
+ * Error Response.
+ * Common error response for all Azure Resource Manager APIs to return error
+ * details for failed operations. (This also follows the OData error response
+ * format.).
*/
public class ErrorResponse {
/**
diff --git a/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/LogSpecification.java b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/LogSpecification.java
new file mode 100644
index 000000000000..7b66c2042edc
--- /dev/null
+++ b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/LogSpecification.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.avs.v2020_03_20;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Specifications of the Log for Azure Monitoring.
+ */
+public class LogSpecification {
+ /**
+ * Name of the log.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * Localized friendly display name of the log.
+ */
+ @JsonProperty(value = "displayName")
+ private String displayName;
+
+ /**
+ * Blob duration of the log.
+ */
+ @JsonProperty(value = "blobDuration")
+ private String blobDuration;
+
+ /**
+ * Get name of the log.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set name of the log.
+ *
+ * @param name the name value to set
+ * @return the LogSpecification object itself.
+ */
+ public LogSpecification withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get localized friendly display name of the log.
+ *
+ * @return the displayName value
+ */
+ public String displayName() {
+ return this.displayName;
+ }
+
+ /**
+ * Set localized friendly display name of the log.
+ *
+ * @param displayName the displayName value to set
+ * @return the LogSpecification object itself.
+ */
+ public LogSpecification withDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+ /**
+ * Get blob duration of the log.
+ *
+ * @return the blobDuration value
+ */
+ public String blobDuration() {
+ return this.blobDuration;
+ }
+
+ /**
+ * Set blob duration of the log.
+ *
+ * @param blobDuration the blobDuration value to set
+ * @return the LogSpecification object itself.
+ */
+ public LogSpecification withBlobDuration(String blobDuration) {
+ this.blobDuration = blobDuration;
+ return this;
+ }
+
+}
diff --git a/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/ManagementCluster.java b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/ManagementCluster.java
index a82bce4b275d..2067f4e8c3ea 100644
--- a/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/ManagementCluster.java
+++ b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/ManagementCluster.java
@@ -15,6 +15,13 @@
* The properties of a default cluster.
*/
public class ManagementCluster extends ClusterUpdateProperties {
+ /**
+ * The state of the cluster provisioning. Possible values include:
+ * 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating'.
+ */
+ @JsonProperty(value = "provisioningState")
+ private ClusterProvisioningState provisioningState;
+
/**
* The identity.
*/
@@ -27,6 +34,26 @@ public class ManagementCluster extends ClusterUpdateProperties {
@JsonProperty(value = "hosts", access = JsonProperty.Access.WRITE_ONLY)
private List hosts;
+ /**
+ * Get the state of the cluster provisioning. Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating'.
+ *
+ * @return the provisioningState value
+ */
+ public ClusterProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Set the state of the cluster provisioning. Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating'.
+ *
+ * @param provisioningState the provisioningState value to set
+ * @return the ManagementCluster object itself.
+ */
+ public ManagementCluster withProvisioningState(ClusterProvisioningState provisioningState) {
+ this.provisioningState = provisioningState;
+ return this;
+ }
+
/**
* Get the identity.
*
diff --git a/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/MetricDimension.java b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/MetricDimension.java
new file mode 100644
index 000000000000..280ad5fc6b2e
--- /dev/null
+++ b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/MetricDimension.java
@@ -0,0 +1,69 @@
+/**
+ * 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.avs.v2020_03_20;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Specifications of the Dimension of metrics.
+ */
+public class MetricDimension {
+ /**
+ * Name of the dimension.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * Localized friendly display name of the dimension.
+ */
+ @JsonProperty(value = "displayName")
+ private String displayName;
+
+ /**
+ * Get name of the dimension.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set name of the dimension.
+ *
+ * @param name the name value to set
+ * @return the MetricDimension object itself.
+ */
+ public MetricDimension withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get localized friendly display name of the dimension.
+ *
+ * @return the displayName value
+ */
+ public String displayName() {
+ return this.displayName;
+ }
+
+ /**
+ * Set localized friendly display name of the dimension.
+ *
+ * @param displayName the displayName value to set
+ * @return the MetricDimension object itself.
+ */
+ public MetricDimension withDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+}
diff --git a/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/MetricSpecification.java b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/MetricSpecification.java
new file mode 100644
index 000000000000..8d70d8c8422d
--- /dev/null
+++ b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/MetricSpecification.java
@@ -0,0 +1,359 @@
+/**
+ * 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.avs.v2020_03_20;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Specifications of the Metrics for Azure Monitoring.
+ */
+public class MetricSpecification {
+ /**
+ * Name of the metric.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * Localized friendly display name of the metric.
+ */
+ @JsonProperty(value = "displayName")
+ private String displayName;
+
+ /**
+ * Localized friendly description of the metric.
+ */
+ @JsonProperty(value = "displayDescription")
+ private String displayDescription;
+
+ /**
+ * Unit that makes sense for the metric.
+ */
+ @JsonProperty(value = "unit")
+ private String unit;
+
+ /**
+ * Name of the metric category that the metric belongs to. A metric can
+ * only belong to a single category.
+ */
+ @JsonProperty(value = "category")
+ private String category;
+
+ /**
+ * Only provide one value for this field. Valid values: Average, Minimum,
+ * Maximum, Total, Count.
+ */
+ @JsonProperty(value = "aggregationType")
+ private String aggregationType;
+
+ /**
+ * Supported aggregation types.
+ */
+ @JsonProperty(value = "supportedAggregationTypes")
+ private List supportedAggregationTypes;
+
+ /**
+ * Supported time grain types.
+ */
+ @JsonProperty(value = "supportedTimeGrainTypes")
+ private List supportedTimeGrainTypes;
+
+ /**
+ * Optional. If set to true, then zero will be returned for time duration
+ * where no metric is emitted/published.
+ */
+ @JsonProperty(value = "fillGapWithZero")
+ private Boolean fillGapWithZero;
+
+ /**
+ * Dimensions of the metric.
+ */
+ @JsonProperty(value = "dimensions")
+ private List dimensions;
+
+ /**
+ * Whether or not the service is using regional MDM accounts.
+ */
+ @JsonProperty(value = "enableRegionalMdmAccount")
+ private String enableRegionalMdmAccount;
+
+ /**
+ * The name of the MDM account.
+ */
+ @JsonProperty(value = "sourceMdmAccount")
+ private String sourceMdmAccount;
+
+ /**
+ * The name of the MDM namespace.
+ */
+ @JsonProperty(value = "sourceMdmNamespace")
+ private String sourceMdmNamespace;
+
+ /**
+ * Get name of the metric.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set name of the metric.
+ *
+ * @param name the name value to set
+ * @return the MetricSpecification object itself.
+ */
+ public MetricSpecification withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get localized friendly display name of the metric.
+ *
+ * @return the displayName value
+ */
+ public String displayName() {
+ return this.displayName;
+ }
+
+ /**
+ * Set localized friendly display name of the metric.
+ *
+ * @param displayName the displayName value to set
+ * @return the MetricSpecification object itself.
+ */
+ public MetricSpecification withDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+ /**
+ * Get localized friendly description of the metric.
+ *
+ * @return the displayDescription value
+ */
+ public String displayDescription() {
+ return this.displayDescription;
+ }
+
+ /**
+ * Set localized friendly description of the metric.
+ *
+ * @param displayDescription the displayDescription value to set
+ * @return the MetricSpecification object itself.
+ */
+ public MetricSpecification withDisplayDescription(String displayDescription) {
+ this.displayDescription = displayDescription;
+ return this;
+ }
+
+ /**
+ * Get unit that makes sense for the metric.
+ *
+ * @return the unit value
+ */
+ public String unit() {
+ return this.unit;
+ }
+
+ /**
+ * Set unit that makes sense for the metric.
+ *
+ * @param unit the unit value to set
+ * @return the MetricSpecification object itself.
+ */
+ public MetricSpecification withUnit(String unit) {
+ this.unit = unit;
+ return this;
+ }
+
+ /**
+ * Get name of the metric category that the metric belongs to. A metric can only belong to a single category.
+ *
+ * @return the category value
+ */
+ public String category() {
+ return this.category;
+ }
+
+ /**
+ * Set name of the metric category that the metric belongs to. A metric can only belong to a single category.
+ *
+ * @param category the category value to set
+ * @return the MetricSpecification object itself.
+ */
+ public MetricSpecification withCategory(String category) {
+ this.category = category;
+ return this;
+ }
+
+ /**
+ * Get only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count.
+ *
+ * @return the aggregationType value
+ */
+ public String aggregationType() {
+ return this.aggregationType;
+ }
+
+ /**
+ * Set only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count.
+ *
+ * @param aggregationType the aggregationType value to set
+ * @return the MetricSpecification object itself.
+ */
+ public MetricSpecification withAggregationType(String aggregationType) {
+ this.aggregationType = aggregationType;
+ return this;
+ }
+
+ /**
+ * Get supported aggregation types.
+ *
+ * @return the supportedAggregationTypes value
+ */
+ public List supportedAggregationTypes() {
+ return this.supportedAggregationTypes;
+ }
+
+ /**
+ * Set supported aggregation types.
+ *
+ * @param supportedAggregationTypes the supportedAggregationTypes value to set
+ * @return the MetricSpecification object itself.
+ */
+ public MetricSpecification withSupportedAggregationTypes(List supportedAggregationTypes) {
+ this.supportedAggregationTypes = supportedAggregationTypes;
+ return this;
+ }
+
+ /**
+ * Get supported time grain types.
+ *
+ * @return the supportedTimeGrainTypes value
+ */
+ public List supportedTimeGrainTypes() {
+ return this.supportedTimeGrainTypes;
+ }
+
+ /**
+ * Set supported time grain types.
+ *
+ * @param supportedTimeGrainTypes the supportedTimeGrainTypes value to set
+ * @return the MetricSpecification object itself.
+ */
+ public MetricSpecification withSupportedTimeGrainTypes(List supportedTimeGrainTypes) {
+ this.supportedTimeGrainTypes = supportedTimeGrainTypes;
+ return this;
+ }
+
+ /**
+ * Get optional. If set to true, then zero will be returned for time duration where no metric is emitted/published.
+ *
+ * @return the fillGapWithZero value
+ */
+ public Boolean fillGapWithZero() {
+ return this.fillGapWithZero;
+ }
+
+ /**
+ * Set optional. If set to true, then zero will be returned for time duration where no metric is emitted/published.
+ *
+ * @param fillGapWithZero the fillGapWithZero value to set
+ * @return the MetricSpecification object itself.
+ */
+ public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero) {
+ this.fillGapWithZero = fillGapWithZero;
+ return this;
+ }
+
+ /**
+ * Get dimensions of the metric.
+ *
+ * @return the dimensions value
+ */
+ public List dimensions() {
+ return this.dimensions;
+ }
+
+ /**
+ * Set dimensions of the metric.
+ *
+ * @param dimensions the dimensions value to set
+ * @return the MetricSpecification object itself.
+ */
+ public MetricSpecification withDimensions(List dimensions) {
+ this.dimensions = dimensions;
+ return this;
+ }
+
+ /**
+ * Get whether or not the service is using regional MDM accounts.
+ *
+ * @return the enableRegionalMdmAccount value
+ */
+ public String enableRegionalMdmAccount() {
+ return this.enableRegionalMdmAccount;
+ }
+
+ /**
+ * Set whether or not the service is using regional MDM accounts.
+ *
+ * @param enableRegionalMdmAccount the enableRegionalMdmAccount value to set
+ * @return the MetricSpecification object itself.
+ */
+ public MetricSpecification withEnableRegionalMdmAccount(String enableRegionalMdmAccount) {
+ this.enableRegionalMdmAccount = enableRegionalMdmAccount;
+ return this;
+ }
+
+ /**
+ * Get the name of the MDM account.
+ *
+ * @return the sourceMdmAccount value
+ */
+ public String sourceMdmAccount() {
+ return this.sourceMdmAccount;
+ }
+
+ /**
+ * Set the name of the MDM account.
+ *
+ * @param sourceMdmAccount the sourceMdmAccount value to set
+ * @return the MetricSpecification object itself.
+ */
+ public MetricSpecification withSourceMdmAccount(String sourceMdmAccount) {
+ this.sourceMdmAccount = sourceMdmAccount;
+ return this;
+ }
+
+ /**
+ * Get the name of the MDM namespace.
+ *
+ * @return the sourceMdmNamespace value
+ */
+ public String sourceMdmNamespace() {
+ return this.sourceMdmNamespace;
+ }
+
+ /**
+ * Set the name of the MDM namespace.
+ *
+ * @param sourceMdmNamespace the sourceMdmNamespace value to set
+ * @return the MetricSpecification object itself.
+ */
+ public MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace) {
+ this.sourceMdmNamespace = sourceMdmNamespace;
+ return this;
+ }
+
+}
diff --git a/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/Operation.java b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/Operation.java
index 6185e1b6c946..02525d3927b5 100644
--- a/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/Operation.java
+++ b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/Operation.java
@@ -22,9 +22,24 @@ public interface Operation extends HasInner, HasManager logSpecifications;
+
+ /**
+ * Specifications of the Metrics for Azure Monitoring.
+ */
+ @JsonProperty(value = "metricSpecifications")
+ private List metricSpecifications;
+
+ /**
+ * Get specifications of the Log for Azure Monitoring.
+ *
+ * @return the logSpecifications value
+ */
+ public List logSpecifications() {
+ return this.logSpecifications;
+ }
+
+ /**
+ * Set specifications of the Log for Azure Monitoring.
+ *
+ * @param logSpecifications the logSpecifications value to set
+ * @return the ServiceSpecification object itself.
+ */
+ public ServiceSpecification withLogSpecifications(List logSpecifications) {
+ this.logSpecifications = logSpecifications;
+ return this;
+ }
+
+ /**
+ * Get specifications of the Metrics for Azure Monitoring.
+ *
+ * @return the metricSpecifications value
+ */
+ public List metricSpecifications() {
+ return this.metricSpecifications;
+ }
+
+ /**
+ * Set specifications of the Metrics for Azure Monitoring.
+ *
+ * @param metricSpecifications the metricSpecifications value to set
+ * @return the ServiceSpecification object itself.
+ */
+ public ServiceSpecification withMetricSpecifications(List metricSpecifications) {
+ this.metricSpecifications = metricSpecifications;
+ return this;
+ }
+
+}
diff --git a/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/implementation/ClusterImpl.java b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/implementation/ClusterImpl.java
index ceac591254d2..ac263aceb74c 100644
--- a/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/implementation/ClusterImpl.java
+++ b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/implementation/ClusterImpl.java
@@ -13,8 +13,8 @@
import rx.Observable;
import com.microsoft.azure.management.avs.v2020_03_20.ClusterUpdate;
import com.microsoft.azure.management.avs.v2020_03_20.Sku;
-import java.util.List;
import com.microsoft.azure.management.avs.v2020_03_20.ClusterProvisioningState;
+import java.util.List;
import rx.functions.Func1;
class ClusterImpl extends CreatableUpdatableImpl implements Cluster, Cluster.Definition, Cluster.Update {
@@ -147,6 +147,12 @@ public ClusterImpl withSku(Sku sku) {
return this;
}
+ @Override
+ public ClusterImpl withProvisioningState(ClusterProvisioningState provisioningState) {
+ this.inner().withProvisioningState(provisioningState);
+ return this;
+ }
+
@Override
public ClusterImpl withClusterSize(Integer clusterSize) {
if (isInCreateMode()) {
diff --git a/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/implementation/ClusterInner.java b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/implementation/ClusterInner.java
index 4d6025e5965d..52c51c7fbeca 100644
--- a/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/implementation/ClusterInner.java
+++ b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/implementation/ClusterInner.java
@@ -9,8 +9,8 @@
package com.microsoft.azure.management.avs.v2020_03_20.implementation;
import com.microsoft.azure.management.avs.v2020_03_20.Sku;
-import java.util.List;
import com.microsoft.azure.management.avs.v2020_03_20.ClusterProvisioningState;
+import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.ProxyResource;
@@ -32,6 +32,13 @@ public class ClusterInner extends ProxyResource {
@JsonProperty(value = "properties.clusterSize")
private Integer clusterSize;
+ /**
+ * The state of the cluster provisioning. Possible values include:
+ * 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating'.
+ */
+ @JsonProperty(value = "properties.provisioningState")
+ private ClusterProvisioningState provisioningState;
+
/**
* The identity.
*/
@@ -44,13 +51,6 @@ public class ClusterInner extends ProxyResource {
@JsonProperty(value = "properties.hosts", access = JsonProperty.Access.WRITE_ONLY)
private List hosts;
- /**
- * The state of the cluster provisioning. Possible values include:
- * 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating'.
- */
- @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private ClusterProvisioningState provisioningState;
-
/**
* Get the cluster SKU.
*
@@ -91,6 +91,26 @@ public ClusterInner withClusterSize(Integer clusterSize) {
return this;
}
+ /**
+ * Get the state of the cluster provisioning. Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating'.
+ *
+ * @return the provisioningState value
+ */
+ public ClusterProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Set the state of the cluster provisioning. Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating'.
+ *
+ * @param provisioningState the provisioningState value to set
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withProvisioningState(ClusterProvisioningState provisioningState) {
+ this.provisioningState = provisioningState;
+ return this;
+ }
+
/**
* Get the identity.
*
@@ -109,13 +129,4 @@ public List hosts() {
return this.hosts;
}
- /**
- * Get the state of the cluster provisioning. Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating'.
- *
- * @return the provisioningState value
- */
- public ClusterProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
}
diff --git a/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/implementation/OperationImpl.java b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/implementation/OperationImpl.java
index 15d5475e05e3..44373a8afdbe 100644
--- a/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/implementation/OperationImpl.java
+++ b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/implementation/OperationImpl.java
@@ -11,6 +11,7 @@
import com.microsoft.azure.management.avs.v2020_03_20.Operation;
import com.microsoft.azure.arm.model.implementation.WrapperImpl;
import com.microsoft.azure.management.avs.v2020_03_20.OperationDisplay;
+import com.microsoft.azure.management.avs.v2020_03_20.OperationProperties;
class OperationImpl extends WrapperImpl implements Operation {
private final AVSManager manager;
@@ -29,9 +30,24 @@ public OperationDisplay display() {
return this.inner().display();
}
+ @Override
+ public Boolean isDataAction() {
+ return this.inner().isDataAction();
+ }
+
@Override
public String name() {
return this.inner().name();
}
+ @Override
+ public String origin() {
+ return this.inner().origin();
+ }
+
+ @Override
+ public OperationProperties properties() {
+ return this.inner().properties();
+ }
+
}
diff --git a/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/implementation/OperationInner.java b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/implementation/OperationInner.java
index 20515eee54d2..a1384f31ac4f 100644
--- a/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/implementation/OperationInner.java
+++ b/sdk/avs/mgmt-v2020_03_20/src/main/java/com/microsoft/azure/management/avs/v2020_03_20/implementation/OperationInner.java
@@ -9,6 +9,7 @@
package com.microsoft.azure.management.avs.v2020_03_20.implementation;
import com.microsoft.azure.management.avs.v2020_03_20.OperationDisplay;
+import com.microsoft.azure.management.avs.v2020_03_20.OperationProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
@@ -27,6 +28,25 @@ public class OperationInner {
@JsonProperty(value = "display", access = JsonProperty.Access.WRITE_ONLY)
private OperationDisplay display;
+ /**
+ * Gets or sets a value indicating whether the operation is a data action
+ * or not.
+ */
+ @JsonProperty(value = "isDataAction")
+ private Boolean isDataAction;
+
+ /**
+ * Origin of the operation.
+ */
+ @JsonProperty(value = "origin")
+ private String origin;
+
+ /**
+ * Properties of the operation.
+ */
+ @JsonProperty(value = "properties")
+ private OperationProperties properties;
+
/**
* Get name of the operation being performed on this object.
*
@@ -45,4 +65,64 @@ public OperationDisplay display() {
return this.display;
}
+ /**
+ * Get gets or sets a value indicating whether the operation is a data action or not.
+ *
+ * @return the isDataAction value
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Set gets or sets a value indicating whether the operation is a data action or not.
+ *
+ * @param isDataAction the isDataAction value to set
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withIsDataAction(Boolean isDataAction) {
+ this.isDataAction = isDataAction;
+ return this;
+ }
+
+ /**
+ * Get origin of the operation.
+ *
+ * @return the origin value
+ */
+ public String origin() {
+ return this.origin;
+ }
+
+ /**
+ * Set origin of the operation.
+ *
+ * @param origin the origin value to set
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withOrigin(String origin) {
+ this.origin = origin;
+ return this;
+ }
+
+ /**
+ * Get properties of the operation.
+ *
+ * @return the properties value
+ */
+ public OperationProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set properties of the operation.
+ *
+ * @param properties the properties value to set
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withProperties(OperationProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
}