Skip to content

Commit

Permalink
Mgmt: generate avs 2020 03 (#16954)
Browse files Browse the repository at this point in the history
* generate avs 2020 03

* update version to 1.0.0
  • Loading branch information
ChenTanyi authored Oct 29, 2020
1 parent 1de0f26 commit fa531a2
Show file tree
Hide file tree
Showing 14 changed files with 827 additions and 21 deletions.
2 changes: 1 addition & 1 deletion sdk/avs/mgmt-v2020_03_20/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<relativePath>../../parents/azure-arm-parent/pom.xml</relativePath>
</parent>
<artifactId>azure-mgmt-avs</artifactId>
<version>1.0.0-beta</version>
<version>1.0.0</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for AVS Management</name>
<description>This package contains Microsoft AVS Management SDK.</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Cluster>, DefinitionStages.WithClusterSize {
interface WithCreate extends Creatable<Cluster>, DefinitionStages.WithClusterSize, DefinitionStages.WithProvisioningState {
}
}
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.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;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -27,6 +34,26 @@ public class ManagementCluster extends ClusterUpdateProperties {
@JsonProperty(value = "hosts", access = JsonProperty.Access.WRITE_ONLY)
private List<String> 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.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
}

}
Loading

0 comments on commit fa531a2

Please sign in to comment.