Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mgmt: generate avs 2020 03 #16954

Merged
merged 2 commits into from
Oct 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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