Skip to content

Commit 5671036

Browse files
author
SDKAuto
committed
CodeGen from PR 11669 in Azure/azure-rest-api-specs
Merge 8ca705121a02efc689365b127ac92189673771cc into 48e7415267518cc2b92f6e6002466f676bdef1a5
1 parent 65f70ec commit 5671036

File tree

8 files changed

+230
-215
lines changed

8 files changed

+230
-215
lines changed

sdk/containerservice/mgmt-v2020_07_01/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.2</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-containerservice</artifactId>
1818
<version>1.0.0-beta</version>

sdk/containerservice/mgmt-v2020_07_01/src/main/java/com/microsoft/azure/management/containerservice/v2020_07_01/AgentPools.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@
1818
* Type representing AgentPools.
1919
*/
2020
public interface AgentPools extends SupportsCreating<AgentPool.DefinitionStages.Blank>, HasInner<AgentPoolsInner> {
21+
/**
22+
* Upgrade node image version of an agent pool to the latest.
23+
* Upgrade node image version of an agent pool to the latest.
24+
*
25+
* @param resourceGroupName The name of the resource group.
26+
* @param resourceName The name of the managed cluster resource.
27+
* @param agentPoolName The name of the agent pool.
28+
* @throws IllegalArgumentException thrown if parameters fail the validation
29+
* @return the observable for the request
30+
*/
31+
Observable<AgentPool> upgradeNodeImageVersionAsync(String resourceGroupName, String resourceName, String agentPoolName);
32+
2133
/**
2234
* Gets the agent pool.
2335
* Gets the details of the agent pool by managed cluster and resource group.

sdk/containerservice/mgmt-v2020_07_01/src/main/java/com/microsoft/azure/management/containerservice/v2020_07_01/ManagedClusterWindowsProfile.java

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,28 @@
1515
*/
1616
public class ManagedClusterWindowsProfile {
1717
/**
18-
* The administrator username to use for Windows VMs.
18+
* Specifies the name of the administrator account. &lt;br&gt;&lt;br&gt;
19+
* **restriction:** Cannot end in "." &lt;br&gt;&lt;br&gt; **Disallowed
20+
* values:** "administrator", "admin", "user", "user1", "test", "user2",
21+
* "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2",
22+
* "aspnet", "backup", "console", "david", "guest", "john", "owner",
23+
* "root", "server", "sql", "support", "support_388945a0", "sys", "test2",
24+
* "test3", "user4", "user5". &lt;br&gt;&lt;br&gt; **Minimum-length:** 1
25+
* character &lt;br&gt;&lt;br&gt; **Max-length:** 20 characters.
1926
*/
2027
@JsonProperty(value = "adminUsername", required = true)
2128
private String adminUsername;
2229

2330
/**
24-
* The administrator password to use for Windows VMs.
31+
* Specifies the password of the administrator account.
32+
* &lt;br&gt;&lt;br&gt; **Minimum-length:** 8 characters
33+
* &lt;br&gt;&lt;br&gt; **Max-length:** 123 characters &lt;br&gt;&lt;br&gt;
34+
* **Complexity requirements:** 3 out of 4 conditions below need to be
35+
* fulfilled &lt;br&gt; Has lower characters &lt;br&gt;Has upper characters
36+
* &lt;br&gt; Has a digit &lt;br&gt; Has a special character (Regex match
37+
* [\W_]) &lt;br&gt;&lt;br&gt; **Disallowed values:** "abc@123",
38+
* "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1",
39+
* "Password!", "Password1", "Password22", "iloveyou!".
2540
*/
2641
@JsonProperty(value = "adminPassword")
2742
private String adminPassword;
@@ -35,7 +50,7 @@ public class ManagedClusterWindowsProfile {
3550
private LicenseType licenseType;
3651

3752
/**
38-
* Get the administrator username to use for Windows VMs.
53+
* Get specifies the name of the administrator account. &lt;br&gt;&lt;br&gt; **restriction:** Cannot end in "." &lt;br&gt;&lt;br&gt; **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". &lt;br&gt;&lt;br&gt; **Minimum-length:** 1 character &lt;br&gt;&lt;br&gt; **Max-length:** 20 characters.
3954
*
4055
* @return the adminUsername value
4156
*/
@@ -44,7 +59,7 @@ public String adminUsername() {
4459
}
4560

4661
/**
47-
* Set the administrator username to use for Windows VMs.
62+
* Set specifies the name of the administrator account. &lt;br&gt;&lt;br&gt; **restriction:** Cannot end in "." &lt;br&gt;&lt;br&gt; **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". &lt;br&gt;&lt;br&gt; **Minimum-length:** 1 character &lt;br&gt;&lt;br&gt; **Max-length:** 20 characters.
4863
*
4964
* @param adminUsername the adminUsername value to set
5065
* @return the ManagedClusterWindowsProfile object itself.
@@ -55,7 +70,7 @@ public ManagedClusterWindowsProfile withAdminUsername(String adminUsername) {
5570
}
5671

5772
/**
58-
* Get the administrator password to use for Windows VMs.
73+
* Get specifies the password of the administrator account. &lt;br&gt;&lt;br&gt; **Minimum-length:** 8 characters &lt;br&gt;&lt;br&gt; **Max-length:** 123 characters &lt;br&gt;&lt;br&gt; **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled &lt;br&gt; Has lower characters &lt;br&gt;Has upper characters &lt;br&gt; Has a digit &lt;br&gt; Has a special character (Regex match [\W_]) &lt;br&gt;&lt;br&gt; **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!".
5974
*
6075
* @return the adminPassword value
6176
*/
@@ -64,7 +79,7 @@ public String adminPassword() {
6479
}
6580

6681
/**
67-
* Set the administrator password to use for Windows VMs.
82+
* Set specifies the password of the administrator account. &lt;br&gt;&lt;br&gt; **Minimum-length:** 8 characters &lt;br&gt;&lt;br&gt; **Max-length:** 123 characters &lt;br&gt;&lt;br&gt; **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled &lt;br&gt; Has lower characters &lt;br&gt;Has upper characters &lt;br&gt; Has a digit &lt;br&gt; Has a special character (Regex match [\W_]) &lt;br&gt;&lt;br&gt; **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!".
6883
*
6984
* @param adminPassword the adminPassword value to set
7085
* @return the ManagedClusterWindowsProfile object itself.

sdk/containerservice/mgmt-v2020_07_01/src/main/java/com/microsoft/azure/management/containerservice/v2020_07_01/ManagedClusters.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,4 @@ public interface ManagedClusters extends SupportsCreating<ManagedCluster.Definit
114114
*/
115115
Observable<ManagedClusterAccessProfile> getAccessProfileAsync(String resourceGroupName, String resourceName, String roleName);
116116

117-
/**
118-
* Upgrade node image version of an agent pool to the latest.
119-
* Upgrade node image version of an agent pool to the latest.
120-
*
121-
* @param resourceGroupName The name of the resource group.
122-
* @param resourceName The name of the managed cluster resource.
123-
* @param agentPoolName The name of the agent pool.
124-
* @throws IllegalArgumentException thrown if parameters fail the validation
125-
* @return the observable for the request
126-
*/
127-
Observable<AgentPool> upgradeNodeImageVersionAsync(String resourceGroupName, String resourceName, String agentPoolName);
128-
129117
}

sdk/containerservice/mgmt-v2020_07_01/src/main/java/com/microsoft/azure/management/containerservice/v2020_07_01/implementation/AgentPoolsImpl.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,18 @@ private AgentPoolImpl wrapModel(String name) {
4444
return new AgentPoolImpl(name, this.manager());
4545
}
4646

47+
@Override
48+
public Observable<AgentPool> upgradeNodeImageVersionAsync(String resourceGroupName, String resourceName, String agentPoolName) {
49+
AgentPoolsInner client = this.inner();
50+
return client.upgradeNodeImageVersionAsync(resourceGroupName, resourceName, agentPoolName)
51+
.map(new Func1<AgentPoolInner, AgentPool>() {
52+
@Override
53+
public AgentPool call(AgentPoolInner inner) {
54+
return new AgentPoolImpl(inner, manager());
55+
}
56+
});
57+
}
58+
4759
@Override
4860
public Observable<AgentPool> listAsync(final String resourceGroupName, final String resourceName) {
4961
AgentPoolsInner client = this.inner();

0 commit comments

Comments
 (0)