Skip to content
Draft
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
4 changes: 2 additions & 2 deletions sdk/avs/mgmt-v2019_08_09_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.3.0</version>
<relativePath>../../parents/azure-arm-parent/pom.xml</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-avs</artifactId>
<version>1.0.0-beta</version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.avs.v2019_08_09_preview.implementation.AVSManager;
import java.util.List;

/**
* Type representing Cluster.
Expand Down Expand Up @@ -46,7 +45,7 @@ public interface Cluster extends HasInner<ClusterInner>, Indexable, Refreshable<
/**
* The entirety of the Cluster definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithPrivateCloud, DefinitionStages.WithProperties, DefinitionStages.WithCreate {
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithPrivateCloud, DefinitionStages.WithCreate {
}

/**
Expand All @@ -69,18 +68,18 @@ interface WithPrivateCloud {
* @param privateCloudName The name of the private cloud
* @return the next definition stage
*/
WithProperties withExistingPrivateCloud(String resourceGroupName, String privateCloudName);
WithCreate withExistingPrivateCloud(String resourceGroupName, String privateCloudName);
}

/**
* The stage of the cluster definition allowing to specify Properties.
*/
interface WithProperties {
/**
* Specifies properties.
* @param properties The properties of a cluster resource
* @return the next definition stage
*/
/**
* Specifies properties.
* @param properties The properties of a cluster resource
* @return the next definition stage
*/
WithCreate withProperties(ClusterProperties properties);
}

Expand All @@ -89,7 +88,7 @@ interface WithProperties {
* 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> {
interface WithCreate extends Creatable<Cluster>, DefinitionStages.WithProperties {
}
}
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
* The properties of a default cluster.
*/
public class DefaultClusterProperties {
/**
* The deprecated identity.
*/
@JsonProperty(value = "clusterID", access = JsonProperty.Access.WRITE_ONLY)
private Integer clusterID;

/**
* The identity.
*/
Expand All @@ -33,6 +39,15 @@ public class DefaultClusterProperties {
@JsonProperty(value = "hosts", access = JsonProperty.Access.WRITE_ONLY)
private List<String> hosts;

/**
* Get the deprecated identity.
*
* @return the clusterID value
*/
public Integer clusterID() {
return this.clusterID;
}

/**
* Get the identity.
*
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.v2019_08_09_preview;

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
@@ -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.v2019_08_09_preview;

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