Skip to content

Commit d6e2d37

Browse files
authored
mgmt, upgrade containerservice to 2021-10 (#25723)
1 parent 33a0a14 commit d6e2d37

File tree

67 files changed

+2013
-1425
lines changed

Some content is hidden

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

67 files changed

+2013
-1425
lines changed

sdk/resourcemanager/api-specs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
"dir": "azure-resourcemanager-containerservice",
127127
"source": "specification/containerservice/resource-manager/readme.md",
128128
"package": "com.azure.resourcemanager.containerservice",
129-
"args": "--tag=package-2021-09 --preserve-model=ContainerServiceVMSizeTypes"
129+
"args": "--tag=package-2021-10 --preserve-model=ContainerServiceVMSizeTypes"
130130
},
131131
"containerservice-hybrid": {
132132
"dir": "../resourcemanagerhybrid/azure-resourcemanager-containerservice",

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -763,8 +763,8 @@ public ManagedClusterInner withSecurityProfile(ManagedClusterSecurityProfile sec
763763
}
764764

765765
/**
766-
* Get the publicNetworkAccess property: Whether the cluster can be accessed through public network or not Default
767-
* value is 'Enabled' (case insensitive). Could be set to 'Disabled' to enable private cluster.
766+
* Get the publicNetworkAccess property: PublicNetworkAccess of the managedCluster Allow or deny public network
767+
* access for AKS.
768768
*
769769
* @return the publicNetworkAccess value.
770770
*/
@@ -773,8 +773,8 @@ public PublicNetworkAccess publicNetworkAccess() {
773773
}
774774

775775
/**
776-
* Set the publicNetworkAccess property: Whether the cluster can be accessed through public network or not Default
777-
* value is 'Enabled' (case insensitive). Could be set to 'Disabled' to enable private cluster.
776+
* Set the publicNetworkAccess property: PublicNetworkAccess of the managedCluster Allow or deny public network
777+
* access for AKS.
778778
*
779779
* @param publicNetworkAccess the publicNetworkAccess value to set.
780780
* @return the ManagedClusterInner object itself.

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,8 @@ public final class ManagedClusterProperties {
236236
private ManagedClusterSecurityProfile securityProfile;
237237

238238
/*
239-
* Whether the cluster can be accessed through public network or not
240-
* Default value is 'Enabled' (case insensitive). Could be set to
241-
* 'Disabled' to enable private cluster
239+
* PublicNetworkAccess of the managedCluster Allow or deny public network
240+
* access for AKS
242241
*/
243242
@JsonProperty(value = "publicNetworkAccess")
244243
private PublicNetworkAccess publicNetworkAccess;
@@ -795,8 +794,8 @@ public ManagedClusterProperties withSecurityProfile(ManagedClusterSecurityProfil
795794
}
796795

797796
/**
798-
* Get the publicNetworkAccess property: Whether the cluster can be accessed through public network or not Default
799-
* value is 'Enabled' (case insensitive). Could be set to 'Disabled' to enable private cluster.
797+
* Get the publicNetworkAccess property: PublicNetworkAccess of the managedCluster Allow or deny public network
798+
* access for AKS.
800799
*
801800
* @return the publicNetworkAccess value.
802801
*/
@@ -805,8 +804,8 @@ public PublicNetworkAccess publicNetworkAccess() {
805804
}
806805

807806
/**
808-
* Set the publicNetworkAccess property: Whether the cluster can be accessed through public network or not Default
809-
* value is 'Enabled' (case insensitive). Could be set to 'Disabled' to enable private cluster.
807+
* Set the publicNetworkAccess property: PublicNetworkAccess of the managedCluster Allow or deny public network
808+
* access for AKS.
810809
*
811810
* @param publicNetworkAccess the publicNetworkAccess value to set.
812811
* @return the ManagedClusterProperties object itself.

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

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private Mono<PagedResponse<AgentPoolInner>> listSinglePageAsync(String resourceG
223223
if (resourceName == null) {
224224
return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
225225
}
226-
final String apiVersion = "2021-09-01";
226+
final String apiVersion = "2021-10-01";
227227
final String accept = "application/json";
228228
return FluxUtil
229229
.withContext(
@@ -282,7 +282,7 @@ private Mono<PagedResponse<AgentPoolInner>> listSinglePageAsync(
282282
if (resourceName == null) {
283283
return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
284284
}
285-
final String apiVersion = "2021-09-01";
285+
final String apiVersion = "2021-10-01";
286286
final String accept = "application/json";
287287
context = this.client.mergeContext(context);
288288
return service
@@ -406,7 +406,7 @@ public Mono<Response<AgentPoolInner>> getWithResponseAsync(
406406
if (agentPoolName == null) {
407407
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
408408
}
409-
final String apiVersion = "2021-09-01";
409+
final String apiVersion = "2021-10-01";
410410
final String accept = "application/json";
411411
return FluxUtil
412412
.withContext(
@@ -461,7 +461,7 @@ private Mono<Response<AgentPoolInner>> getWithResponseAsync(
461461
if (agentPoolName == null) {
462462
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
463463
}
464-
final String apiVersion = "2021-09-01";
464+
final String apiVersion = "2021-10-01";
465465
final String accept = "application/json";
466466
context = this.client.mergeContext(context);
467467
return service
@@ -576,7 +576,7 @@ public Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(
576576
} else {
577577
parameters.validate();
578578
}
579-
final String apiVersion = "2021-09-01";
579+
final String apiVersion = "2021-10-01";
580580
final String accept = "application/json";
581581
return FluxUtil
582582
.withContext(
@@ -642,7 +642,7 @@ private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(
642642
} else {
643643
parameters.validate();
644644
}
645-
final String apiVersion = "2021-09-01";
645+
final String apiVersion = "2021-10-01";
646646
final String accept = "application/json";
647647
context = this.client.mergeContext(context);
648648
return service
@@ -678,7 +678,11 @@ public PollerFlux<PollResult<AgentPoolInner>, AgentPoolInner> beginCreateOrUpdat
678678
return this
679679
.client
680680
.<AgentPoolInner, AgentPoolInner>getLroResult(
681-
mono, this.client.getHttpPipeline(), AgentPoolInner.class, AgentPoolInner.class, this.client.getContext());
681+
mono,
682+
this.client.getHttpPipeline(),
683+
AgentPoolInner.class,
684+
AgentPoolInner.class,
685+
this.client.getContext());
682686
}
683687

684688
/**
@@ -874,7 +878,7 @@ public Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
874878
if (agentPoolName == null) {
875879
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
876880
}
877-
final String apiVersion = "2021-09-01";
881+
final String apiVersion = "2021-10-01";
878882
final String accept = "application/json";
879883
return FluxUtil
880884
.withContext(
@@ -929,7 +933,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
929933
if (agentPoolName == null) {
930934
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
931935
}
932-
final String apiVersion = "2021-09-01";
936+
final String apiVersion = "2021-10-01";
933937
final String accept = "application/json";
934938
context = this.client.mergeContext(context);
935939
return service
@@ -961,7 +965,8 @@ public PollerFlux<PollResult<Void>, Void> beginDeleteAsync(
961965
Mono<Response<Flux<ByteBuffer>>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, agentPoolName);
962966
return this
963967
.client
964-
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
968+
.<Void, Void>getLroResult(
969+
mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
965970
}
966971

967972
/**
@@ -1127,7 +1132,7 @@ public Mono<Response<AgentPoolUpgradeProfileInner>> getUpgradeProfileWithRespons
11271132
if (agentPoolName == null) {
11281133
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
11291134
}
1130-
final String apiVersion = "2021-09-01";
1135+
final String apiVersion = "2021-10-01";
11311136
final String accept = "application/json";
11321137
return FluxUtil
11331138
.withContext(
@@ -1182,7 +1187,7 @@ private Mono<Response<AgentPoolUpgradeProfileInner>> getUpgradeProfileWithRespon
11821187
if (agentPoolName == null) {
11831188
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
11841189
}
1185-
final String apiVersion = "2021-09-01";
1190+
final String apiVersion = "2021-10-01";
11861191
final String accept = "application/json";
11871192
context = this.client.mergeContext(context);
11881193
return service
@@ -1290,7 +1295,7 @@ public Mono<Response<AgentPoolAvailableVersionsInner>> getAvailableAgentPoolVers
12901295
if (resourceName == null) {
12911296
return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
12921297
}
1293-
final String apiVersion = "2021-09-01";
1298+
final String apiVersion = "2021-10-01";
12941299
final String accept = "application/json";
12951300
return FluxUtil
12961301
.withContext(
@@ -1341,7 +1346,7 @@ private Mono<Response<AgentPoolAvailableVersionsInner>> getAvailableAgentPoolVer
13411346
if (resourceName == null) {
13421347
return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
13431348
}
1344-
final String apiVersion = "2021-09-01";
1349+
final String apiVersion = "2021-10-01";
13451350
final String accept = "application/json";
13461351
context = this.client.mergeContext(context);
13471352
return service
@@ -1453,7 +1458,7 @@ public Mono<Response<Flux<ByteBuffer>>> upgradeNodeImageVersionWithResponseAsync
14531458
if (agentPoolName == null) {
14541459
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
14551460
}
1456-
final String apiVersion = "2021-09-01";
1461+
final String apiVersion = "2021-10-01";
14571462
final String accept = "application/json";
14581463
return FluxUtil
14591464
.withContext(
@@ -1510,7 +1515,7 @@ private Mono<Response<Flux<ByteBuffer>>> upgradeNodeImageVersionWithResponseAsyn
15101515
if (agentPoolName == null) {
15111516
return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
15121517
}
1513-
final String apiVersion = "2021-09-01";
1518+
final String apiVersion = "2021-10-01";
15141519
final String accept = "application/json";
15151520
context = this.client.mergeContext(context);
15161521
return service
@@ -1546,7 +1551,11 @@ public PollerFlux<PollResult<AgentPoolInner>, AgentPoolInner> beginUpgradeNodeIm
15461551
return this
15471552
.client
15481553
.<AgentPoolInner, AgentPoolInner>getLroResult(
1549-
mono, this.client.getHttpPipeline(), AgentPoolInner.class, AgentPoolInner.class, this.client.getContext());
1554+
mono,
1555+
this.client.getHttpPipeline(),
1556+
AgentPoolInner.class,
1557+
AgentPoolInner.class,
1558+
this.client.getContext());
15501559
}
15511560

15521561
/**

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ private Mono<PagedResponse<MaintenanceConfigurationInner>> listByManagedClusterS
171171
if (resourceName == null) {
172172
return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
173173
}
174-
final String apiVersion = "2021-09-01";
174+
final String apiVersion = "2021-10-01";
175175
final String accept = "application/json";
176176
return FluxUtil
177177
.withContext(
@@ -230,7 +230,7 @@ private Mono<PagedResponse<MaintenanceConfigurationInner>> listByManagedClusterS
230230
if (resourceName == null) {
231231
return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
232232
}
233-
final String apiVersion = "2021-09-01";
233+
final String apiVersion = "2021-10-01";
234234
final String accept = "application/json";
235235
context = this.client.mergeContext(context);
236236
return service
@@ -359,7 +359,7 @@ public Mono<Response<MaintenanceConfigurationInner>> getWithResponseAsync(
359359
if (configName == null) {
360360
return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null."));
361361
}
362-
final String apiVersion = "2021-09-01";
362+
final String apiVersion = "2021-10-01";
363363
final String accept = "application/json";
364364
return FluxUtil
365365
.withContext(
@@ -414,7 +414,7 @@ private Mono<Response<MaintenanceConfigurationInner>> getWithResponseAsync(
414414
if (configName == null) {
415415
return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null."));
416416
}
417-
final String apiVersion = "2021-09-01";
417+
final String apiVersion = "2021-10-01";
418418
final String accept = "application/json";
419419
context = this.client.mergeContext(context);
420420
return service
@@ -530,7 +530,7 @@ public Mono<Response<MaintenanceConfigurationInner>> createOrUpdateWithResponseA
530530
} else {
531531
parameters.validate();
532532
}
533-
final String apiVersion = "2021-09-01";
533+
final String apiVersion = "2021-10-01";
534534
final String accept = "application/json";
535535
return FluxUtil
536536
.withContext(
@@ -596,7 +596,7 @@ private Mono<Response<MaintenanceConfigurationInner>> createOrUpdateWithResponse
596596
} else {
597597
parameters.validate();
598598
}
599-
final String apiVersion = "2021-09-01";
599+
final String apiVersion = "2021-10-01";
600600
final String accept = "application/json";
601601
context = this.client.mergeContext(context);
602602
return service
@@ -716,7 +716,7 @@ public Mono<Response<Void>> deleteWithResponseAsync(
716716
if (configName == null) {
717717
return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null."));
718718
}
719-
final String apiVersion = "2021-09-01";
719+
final String apiVersion = "2021-10-01";
720720
final String accept = "application/json";
721721
return FluxUtil
722722
.withContext(
@@ -771,7 +771,7 @@ private Mono<Response<Void>> deleteWithResponseAsync(
771771
if (configName == null) {
772772
return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null."));
773773
}
774-
final String apiVersion = "2021-09-01";
774+
final String apiVersion = "2021-10-01";
775775
final String accept = "application/json";
776776
context = this.client.mergeContext(context);
777777
return service

0 commit comments

Comments
 (0)