Skip to content

Commit cccbee7

Browse files
authored
mgmt, local generation for Container Service - 2024-10-01 (Azure#44056)
mgmt, local generation for Container Service - 2024-10-01
1 parent 2ccde55 commit cccbee7

File tree

77 files changed

+331
-233
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+331
-233
lines changed

sdk/resourcemanager/api-specs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"dir": "azure-resourcemanager-containerservice",
7171
"source": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md",
7272
"package": "com.azure.resourcemanager.containerservice",
73-
"args": "--tag=package-2024-09 --modelerfour.lenient-model-deduplication --preserve-model=ContainerServiceVMSizeTypes --rename-model=Ossku:OSSku"
73+
"args": "--tag=package-2024-10 --modelerfour.lenient-model-deduplication --preserve-model=ContainerServiceVMSizeTypes --rename-model=Ossku:OSSku"
7474
},
7575
"containerservice-hybrid": {
7676
"dir": "../resourcemanagerhybrid/azure-resourcemanager-containerservice",

sdk/resourcemanager/azure-resourcemanager-containerservice/CHANGELOG.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22

33
## 2.48.0-beta.1 (Unreleased)
44

5-
### Features Added
6-
7-
### Breaking Changes
5+
### Other Changes
86

9-
### Bugs Fixed
7+
#### Dependency Updates
108

11-
### Other Changes
9+
- Updated `api-version` to `2024-10-01`.
1210

1311
## 2.47.0 (2025-01-24)
1412

sdk/resourcemanager/azure-resourcemanager-containerservice/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "java",
44
"TagPrefix": "java/resourcemanager/azure-resourcemanager-containerservice",
5-
"Tag": "java/resourcemanager/azure-resourcemanager-containerservice_ac00fa0812"
5+
"Tag": "java/resourcemanager/azure-resourcemanager-containerservice_484aa19857"
66
}

sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,33 @@ public AgentPoolInner withWorkloadRuntime(WorkloadRuntime workloadRuntime) {
260260
return this;
261261
}
262262

263+
/**
264+
* Get the messageOfTheDay property: A base64-encoded string which will be written to /etc/motd after decoding. This
265+
* allows customization of the message of the day for Linux nodes. It must not be specified for Windows nodes. It
266+
* must be a static string (i.e., will be printed raw and not be executed as a script).
267+
*
268+
* @return the messageOfTheDay value.
269+
*/
270+
public String messageOfTheDay() {
271+
return this.innerProperties() == null ? null : this.innerProperties().messageOfTheDay();
272+
}
273+
274+
/**
275+
* Set the messageOfTheDay property: A base64-encoded string which will be written to /etc/motd after decoding. This
276+
* allows customization of the message of the day for Linux nodes. It must not be specified for Windows nodes. It
277+
* must be a static string (i.e., will be printed raw and not be executed as a script).
278+
*
279+
* @param messageOfTheDay the messageOfTheDay value to set.
280+
* @return the AgentPoolInner object itself.
281+
*/
282+
public AgentPoolInner withMessageOfTheDay(String messageOfTheDay) {
283+
if (this.innerProperties() == null) {
284+
this.innerProperties = new ManagedClusterAgentPoolProfileProperties();
285+
}
286+
this.innerProperties().withMessageOfTheDay(messageOfTheDay);
287+
return this;
288+
}
289+
263290
/**
264291
* Get the vnetSubnetId property: If this is not specified, a VNET and subnet will be generated and used. If no
265292
* podSubnetID is specified, this applies to nodes and pods, otherwise it applies to just nodes. This is of the

sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ public class ManagedClusterAgentPoolProfileProperties
8181
*/
8282
private WorkloadRuntime workloadRuntime;
8383

84+
/*
85+
* A base64-encoded string which will be written to /etc/motd after decoding. This allows customization of the
86+
* message of the day for Linux nodes. It must not be specified for Windows nodes. It must be a static string (i.e.,
87+
* will be printed raw and not be executed as a script).
88+
*/
89+
private String messageOfTheDay;
90+
8491
/*
8592
* If this is not specified, a VNET and subnet will be generated and used. If no podSubnetID is specified, this
8693
* applies to nodes and pods, otherwise it applies to just nodes. This is of the form:
@@ -476,6 +483,30 @@ public ManagedClusterAgentPoolProfileProperties withWorkloadRuntime(WorkloadRunt
476483
return this;
477484
}
478485

486+
/**
487+
* Get the messageOfTheDay property: A base64-encoded string which will be written to /etc/motd after decoding. This
488+
* allows customization of the message of the day for Linux nodes. It must not be specified for Windows nodes. It
489+
* must be a static string (i.e., will be printed raw and not be executed as a script).
490+
*
491+
* @return the messageOfTheDay value.
492+
*/
493+
public String messageOfTheDay() {
494+
return this.messageOfTheDay;
495+
}
496+
497+
/**
498+
* Set the messageOfTheDay property: A base64-encoded string which will be written to /etc/motd after decoding. This
499+
* allows customization of the message of the day for Linux nodes. It must not be specified for Windows nodes. It
500+
* must be a static string (i.e., will be printed raw and not be executed as a script).
501+
*
502+
* @param messageOfTheDay the messageOfTheDay value to set.
503+
* @return the ManagedClusterAgentPoolProfileProperties object itself.
504+
*/
505+
public ManagedClusterAgentPoolProfileProperties withMessageOfTheDay(String messageOfTheDay) {
506+
this.messageOfTheDay = messageOfTheDay;
507+
return this;
508+
}
509+
479510
/**
480511
* Get the vnetSubnetId property: If this is not specified, a VNET and subnet will be generated and used. If no
481512
* podSubnetID is specified, this applies to nodes and pods, otherwise it applies to just nodes. This is of the
@@ -1387,6 +1418,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
13871418
this.kubeletDiskType == null ? null : this.kubeletDiskType.toString());
13881419
jsonWriter.writeStringField("workloadRuntime",
13891420
this.workloadRuntime == null ? null : this.workloadRuntime.toString());
1421+
jsonWriter.writeStringField("messageOfTheDay", this.messageOfTheDay);
13901422
jsonWriter.writeStringField("vnetSubnetID", this.vnetSubnetId);
13911423
jsonWriter.writeStringField("podSubnetID", this.podSubnetId);
13921424
jsonWriter.writeNumberField("maxPods", this.maxPods);
@@ -1464,6 +1496,8 @@ public static ManagedClusterAgentPoolProfileProperties fromJson(JsonReader jsonR
14641496
} else if ("workloadRuntime".equals(fieldName)) {
14651497
deserializedManagedClusterAgentPoolProfileProperties.workloadRuntime
14661498
= WorkloadRuntime.fromString(reader.getString());
1499+
} else if ("messageOfTheDay".equals(fieldName)) {
1500+
deserializedManagedClusterAgentPoolProfileProperties.messageOfTheDay = reader.getString();
14671501
} else if ("vnetSubnetID".equals(fieldName)) {
14681502
deserializedManagedClusterAgentPoolProfileProperties.vnetSubnetId = reader.getString();
14691503
} else if ("podSubnetID".equals(fieldName)) {

sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public Mono<Response<Flux<ByteBuffer>>> abortLatestOperationWithResponseAsync(St
206206
if (agentPoolName == null) {
207207
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
208208
}
209-
final String apiVersion = "2024-09-01";
209+
final String apiVersion = "2024-10-01";
210210
final String accept = "application/json";
211211
return FluxUtil
212212
.withContext(context -> service.abortLatestOperation(this.client.getEndpoint(), apiVersion,
@@ -251,7 +251,7 @@ private Mono<Response<Flux<ByteBuffer>>> abortLatestOperationWithResponseAsync(S
251251
if (agentPoolName == null) {
252252
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
253253
}
254-
final String apiVersion = "2024-09-01";
254+
final String apiVersion = "2024-10-01";
255255
final String accept = "application/json";
256256
context = this.client.mergeContext(context);
257257
return service.abortLatestOperation(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -464,7 +464,7 @@ private Mono<PagedResponse<AgentPoolInner>> listSinglePageAsync(String resourceG
464464
if (resourceName == null) {
465465
return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
466466
}
467-
final String apiVersion = "2024-09-01";
467+
final String apiVersion = "2024-10-01";
468468
final String accept = "application/json";
469469
return FluxUtil
470470
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -504,7 +504,7 @@ private Mono<PagedResponse<AgentPoolInner>> listSinglePageAsync(String resourceG
504504
if (resourceName == null) {
505505
return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
506506
}
507-
final String apiVersion = "2024-09-01";
507+
final String apiVersion = "2024-10-01";
508508
final String accept = "application/json";
509509
context = this.client.mergeContext(context);
510510
return service
@@ -611,7 +611,7 @@ public Mono<Response<AgentPoolInner>> getWithResponseAsync(String resourceGroupN
611611
if (agentPoolName == null) {
612612
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
613613
}
614-
final String apiVersion = "2024-09-01";
614+
final String apiVersion = "2024-10-01";
615615
final String accept = "application/json";
616616
return FluxUtil
617617
.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -653,7 +653,7 @@ private Mono<Response<AgentPoolInner>> getWithResponseAsync(String resourceGroup
653653
if (agentPoolName == null) {
654654
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
655655
}
656-
final String apiVersion = "2024-09-01";
656+
final String apiVersion = "2024-10-01";
657657
final String accept = "application/json";
658658
context = this.client.mergeContext(context);
659659
return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -751,7 +751,7 @@ public Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String r
751751
} else {
752752
parameters.validate();
753753
}
754-
final String apiVersion = "2024-09-01";
754+
final String apiVersion = "2024-10-01";
755755
final String accept = "application/json";
756756
return FluxUtil
757757
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
@@ -802,7 +802,7 @@ private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String
802802
} else {
803803
parameters.validate();
804804
}
805-
final String apiVersion = "2024-09-01";
805+
final String apiVersion = "2024-10-01";
806806
final String accept = "application/json";
807807
context = this.client.mergeContext(context);
808808
return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -1070,7 +1070,7 @@ public Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceG
10701070
if (agentPoolName == null) {
10711071
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
10721072
}
1073-
final String apiVersion = "2024-09-01";
1073+
final String apiVersion = "2024-10-01";
10741074
final String accept = "application/json";
10751075
return FluxUtil
10761076
.withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
@@ -1115,7 +1115,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resource
11151115
if (agentPoolName == null) {
11161116
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
11171117
}
1118-
final String apiVersion = "2024-09-01";
1118+
final String apiVersion = "2024-10-01";
11191119
final String accept = "application/json";
11201120
context = this.client.mergeContext(context);
11211121
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -1371,7 +1371,7 @@ public Mono<Response<AgentPoolUpgradeProfileInner>> getUpgradeProfileWithRespons
13711371
if (agentPoolName == null) {
13721372
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
13731373
}
1374-
final String apiVersion = "2024-09-01";
1374+
final String apiVersion = "2024-10-01";
13751375
final String accept = "application/json";
13761376
return FluxUtil
13771377
.withContext(context -> service.getUpgradeProfile(this.client.getEndpoint(), apiVersion,
@@ -1413,7 +1413,7 @@ private Mono<Response<AgentPoolUpgradeProfileInner>> getUpgradeProfileWithRespon
14131413
if (agentPoolName == null) {
14141414
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
14151415
}
1416-
final String apiVersion = "2024-09-01";
1416+
final String apiVersion = "2024-10-01";
14171417
final String accept = "application/json";
14181418
context = this.client.mergeContext(context);
14191419
return service.getUpgradeProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -1511,7 +1511,7 @@ public Mono<Response<Flux<ByteBuffer>>> deleteMachinesWithResponseAsync(String r
15111511
} else {
15121512
machines.validate();
15131513
}
1514-
final String apiVersion = "2024-09-01";
1514+
final String apiVersion = "2024-10-01";
15151515
final String accept = "application/json";
15161516
return FluxUtil.withContext(context -> service.deleteMachines(this.client.getEndpoint(), apiVersion,
15171517
this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, machines, accept, context))
@@ -1557,7 +1557,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteMachinesWithResponseAsync(String
15571557
} else {
15581558
machines.validate();
15591559
}
1560-
final String apiVersion = "2024-09-01";
1560+
final String apiVersion = "2024-10-01";
15611561
final String accept = "application/json";
15621562
context = this.client.mergeContext(context);
15631563
return service.deleteMachines(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -1752,7 +1752,7 @@ public void deleteMachines(String resourceGroupName, String resourceName, String
17521752
if (resourceName == null) {
17531753
return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
17541754
}
1755-
final String apiVersion = "2024-09-01";
1755+
final String apiVersion = "2024-10-01";
17561756
final String accept = "application/json";
17571757
return FluxUtil
17581758
.withContext(context -> service.getAvailableAgentPoolVersions(this.client.getEndpoint(), apiVersion,
@@ -1793,7 +1793,7 @@ public void deleteMachines(String resourceGroupName, String resourceName, String
17931793
if (resourceName == null) {
17941794
return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
17951795
}
1796-
final String apiVersion = "2024-09-01";
1796+
final String apiVersion = "2024-10-01";
17971797
final String accept = "application/json";
17981798
context = this.client.mergeContext(context);
17991799
return service.getAvailableAgentPoolVersions(this.client.getEndpoint(), apiVersion,
@@ -1895,7 +1895,7 @@ public Mono<Response<Flux<ByteBuffer>>> upgradeNodeImageVersionWithResponseAsync
18951895
if (agentPoolName == null) {
18961896
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
18971897
}
1898-
final String apiVersion = "2024-09-01";
1898+
final String apiVersion = "2024-10-01";
18991899
final String accept = "application/json";
19001900
return FluxUtil
19011901
.withContext(context -> service.upgradeNodeImageVersion(this.client.getEndpoint(), apiVersion,
@@ -1940,7 +1940,7 @@ private Mono<Response<Flux<ByteBuffer>>> upgradeNodeImageVersionWithResponseAsyn
19401940
if (agentPoolName == null) {
19411941
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
19421942
}
1943-
final String apiVersion = "2024-09-01";
1943+
final String apiVersion = "2024-10-01";
19441944
final String accept = "application/json";
19451945
context = this.client.mergeContext(context);
19461946
return service.upgradeNodeImageVersion(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),

sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/KubernetesClusterAgentPoolImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ AgentPoolInner getAgentPoolInner() {
318318
agentPoolInner.withNetworkProfile(innerModel().networkProfile());
319319
agentPoolInner.withWindowsProfile(innerModel().windowsProfile());
320320
agentPoolInner.withSecurityProfile(innerModel().securityProfile());
321+
agentPoolInner.withMessageOfTheDay(innerModel().messageOfTheDay());
321322
return agentPoolInner;
322323
}
323324

sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MachinesClientImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private Mono<PagedResponse<MachineInner>> listSinglePageAsync(String resourceGro
121121
if (agentPoolName == null) {
122122
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
123123
}
124-
final String apiVersion = "2024-09-01";
124+
final String apiVersion = "2024-10-01";
125125
final String accept = "application/json";
126126
return FluxUtil
127127
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -165,7 +165,7 @@ private Mono<PagedResponse<MachineInner>> listSinglePageAsync(String resourceGro
165165
if (agentPoolName == null) {
166166
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
167167
}
168-
final String apiVersion = "2024-09-01";
168+
final String apiVersion = "2024-10-01";
169169
final String accept = "application/json";
170170
context = this.client.mergeContext(context);
171171
return service
@@ -282,7 +282,7 @@ public Mono<Response<MachineInner>> getWithResponseAsync(String resourceGroupNam
282282
if (machineName == null) {
283283
return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null."));
284284
}
285-
final String apiVersion = "2024-09-01";
285+
final String apiVersion = "2024-10-01";
286286
final String accept = "application/json";
287287
return FluxUtil
288288
.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -328,7 +328,7 @@ private Mono<Response<MachineInner>> getWithResponseAsync(String resourceGroupNa
328328
if (machineName == null) {
329329
return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null."));
330330
}
331-
final String apiVersion = "2024-09-01";
331+
final String apiVersion = "2024-10-01";
332332
final String accept = "application/json";
333333
context = this.client.mergeContext(context);
334334
return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,

0 commit comments

Comments
 (0)