Skip to content

Commit e1940cb

Browse files
author
SDKAuto
committed
CodeGen from PR 11695 in Azure/azure-rest-api-specs
Merge 912f3b048f9a73be0d8260a9acd6d2b85729365f into 11e915c47baf981dc5613fd782fccef4bc942a42
1 parent c417552 commit e1940cb

File tree

13 files changed

+839
-439
lines changed

13 files changed

+839
-439
lines changed

sdk/avs/mgmt-v2019_08_09_preview/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<parent>
1212
<groupId>com.microsoft.azure</groupId>
1313
<artifactId>azure-arm-parent</artifactId>
14-
<version>1.3.0</version>
15-
<relativePath>../../parents/azure-arm-parent/pom.xml</relativePath>
14+
<version>1.1.0</version>
15+
<relativePath>../../../pom.management.xml</relativePath>
1616
</parent>
1717
<artifactId>azure-mgmt-avs</artifactId>
1818
<version>1.0.0-beta</version>

sdk/avs/mgmt-v2019_08_09_preview/src/main/java/com/microsoft/azure/management/avs/v2019_08_09_preview/Cluster.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import com.microsoft.azure.arm.model.Creatable;
1818
import com.microsoft.azure.arm.resources.models.HasManager;
1919
import com.microsoft.azure.management.avs.v2019_08_09_preview.implementation.AVSManager;
20-
import java.util.List;
2120

2221
/**
2322
* Type representing Cluster.
@@ -46,7 +45,7 @@ public interface Cluster extends HasInner<ClusterInner>, Indexable, Refreshable<
4645
/**
4746
* The entirety of the Cluster definition.
4847
*/
49-
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithPrivateCloud, DefinitionStages.WithProperties, DefinitionStages.WithCreate {
48+
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithPrivateCloud, DefinitionStages.WithCreate {
5049
}
5150

5251
/**
@@ -69,18 +68,18 @@ interface WithPrivateCloud {
6968
* @param privateCloudName The name of the private cloud
7069
* @return the next definition stage
7170
*/
72-
WithProperties withExistingPrivateCloud(String resourceGroupName, String privateCloudName);
71+
WithCreate withExistingPrivateCloud(String resourceGroupName, String privateCloudName);
7372
}
7473

7574
/**
7675
* The stage of the cluster definition allowing to specify Properties.
7776
*/
7877
interface WithProperties {
79-
/**
80-
* Specifies properties.
81-
* @param properties The properties of a cluster resource
82-
* @return the next definition stage
83-
*/
78+
/**
79+
* Specifies properties.
80+
* @param properties The properties of a cluster resource
81+
* @return the next definition stage
82+
*/
8483
WithCreate withProperties(ClusterProperties properties);
8584
}
8685

@@ -89,7 +88,7 @@ interface WithProperties {
8988
* the resource to be created (via {@link WithCreate#create()}), but also allows
9089
* for any other optional settings to be specified.
9190
*/
92-
interface WithCreate extends Creatable<Cluster> {
91+
interface WithCreate extends Creatable<Cluster>, DefinitionStages.WithProperties {
9392
}
9493
}
9594
/**

sdk/avs/mgmt-v2019_08_09_preview/src/main/java/com/microsoft/azure/management/avs/v2019_08_09_preview/DefaultClusterProperties.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
* The properties of a default cluster.
1616
*/
1717
public class DefaultClusterProperties {
18+
/**
19+
* The deprecated identity.
20+
*/
21+
@JsonProperty(value = "clusterID", access = JsonProperty.Access.WRITE_ONLY)
22+
private Integer clusterID;
23+
1824
/**
1925
* The identity.
2026
*/
@@ -33,6 +39,15 @@ public class DefaultClusterProperties {
3339
@JsonProperty(value = "hosts", access = JsonProperty.Access.WRITE_ONLY)
3440
private List<String> hosts;
3541

42+
/**
43+
* Get the deprecated identity.
44+
*
45+
* @return the clusterID value
46+
*/
47+
public Integer clusterID() {
48+
return this.clusterID;
49+
}
50+
3651
/**
3752
* Get the identity.
3853
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.avs.v2019_08_09_preview;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
13+
/**
14+
* Specifications of the Log for Azure Monitoring.
15+
*/
16+
public class LogSpecification {
17+
/**
18+
* Name of the log.
19+
*/
20+
@JsonProperty(value = "name")
21+
private String name;
22+
23+
/**
24+
* Localized friendly display name of the log.
25+
*/
26+
@JsonProperty(value = "displayName")
27+
private String displayName;
28+
29+
/**
30+
* Blob duration of the log.
31+
*/
32+
@JsonProperty(value = "blobDuration")
33+
private String blobDuration;
34+
35+
/**
36+
* Get name of the log.
37+
*
38+
* @return the name value
39+
*/
40+
public String name() {
41+
return this.name;
42+
}
43+
44+
/**
45+
* Set name of the log.
46+
*
47+
* @param name the name value to set
48+
* @return the LogSpecification object itself.
49+
*/
50+
public LogSpecification withName(String name) {
51+
this.name = name;
52+
return this;
53+
}
54+
55+
/**
56+
* Get localized friendly display name of the log.
57+
*
58+
* @return the displayName value
59+
*/
60+
public String displayName() {
61+
return this.displayName;
62+
}
63+
64+
/**
65+
* Set localized friendly display name of the log.
66+
*
67+
* @param displayName the displayName value to set
68+
* @return the LogSpecification object itself.
69+
*/
70+
public LogSpecification withDisplayName(String displayName) {
71+
this.displayName = displayName;
72+
return this;
73+
}
74+
75+
/**
76+
* Get blob duration of the log.
77+
*
78+
* @return the blobDuration value
79+
*/
80+
public String blobDuration() {
81+
return this.blobDuration;
82+
}
83+
84+
/**
85+
* Set blob duration of the log.
86+
*
87+
* @param blobDuration the blobDuration value to set
88+
* @return the LogSpecification object itself.
89+
*/
90+
public LogSpecification withBlobDuration(String blobDuration) {
91+
this.blobDuration = blobDuration;
92+
return this;
93+
}
94+
95+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.avs.v2019_08_09_preview;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
13+
/**
14+
* Specifications of the Dimension of metrics.
15+
*/
16+
public class MetricDimension {
17+
/**
18+
* Name of the dimension.
19+
*/
20+
@JsonProperty(value = "name")
21+
private String name;
22+
23+
/**
24+
* Localized friendly display name of the dimension.
25+
*/
26+
@JsonProperty(value = "displayName")
27+
private String displayName;
28+
29+
/**
30+
* Get name of the dimension.
31+
*
32+
* @return the name value
33+
*/
34+
public String name() {
35+
return this.name;
36+
}
37+
38+
/**
39+
* Set name of the dimension.
40+
*
41+
* @param name the name value to set
42+
* @return the MetricDimension object itself.
43+
*/
44+
public MetricDimension withName(String name) {
45+
this.name = name;
46+
return this;
47+
}
48+
49+
/**
50+
* Get localized friendly display name of the dimension.
51+
*
52+
* @return the displayName value
53+
*/
54+
public String displayName() {
55+
return this.displayName;
56+
}
57+
58+
/**
59+
* Set localized friendly display name of the dimension.
60+
*
61+
* @param displayName the displayName value to set
62+
* @return the MetricDimension object itself.
63+
*/
64+
public MetricDimension withDisplayName(String displayName) {
65+
this.displayName = displayName;
66+
return this;
67+
}
68+
69+
}

0 commit comments

Comments
 (0)