Skip to content

Commit 05df10a

Browse files
authored
mgmt compute, update api-version to 2023-01-02 (#36107)
* api-specs.json * codegen * rename back StorageAccountType * regen * use local specs * assets.json * add application gateway v1 deprecation message revert changes * session records for samples
1 parent 1bcbfde commit 05df10a

File tree

62 files changed

+550
-344
lines changed

Some content is hidden

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

62 files changed

+550
-344
lines changed

sdk/resourcemanager/api-specs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"dir": "azure-resourcemanager-compute",
4242
"source": "specification/compute/resource-manager/readme.md",
4343
"package": "com.azure.resourcemanager.compute",
44-
"args": "--tag=package-2023-03-01 --rename-model=UserAssignedIdentitiesValue:VirtualMachineIdentityUserAssignedIdentities,VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue:VirtualMachineScaleSetIdentityUserAssignedIdentities --preserve-model=AvailabilitySetSkuTypes"
44+
"args": "--tag=package-2023-01-02 --rename-model=UserAssignedIdentitiesValue:VirtualMachineIdentityUserAssignedIdentities,VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue:VirtualMachineScaleSetIdentityUserAssignedIdentities --preserve-model=AvailabilitySetSkuTypes"
4545
},
4646
"compute-hybrid": {
4747
"dir": "../resourcemanagerhybrid/azure-resourcemanager-compute",

sdk/resourcemanager/azure-resourcemanager-compute/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-compute",
5-
"Tag": "java/resourcemanager/azure-resourcemanager-compute_ceadc5e7d6"
5+
"Tag": "java/resourcemanager/azure-resourcemanager-compute_971172d297"
66
}

sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/CommunityGalleryImageInner.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
import com.azure.core.annotation.Fluent;
88
import com.azure.resourcemanager.compute.models.Architecture;
9+
import com.azure.resourcemanager.compute.models.CommunityGalleryImageIdentifier;
910
import com.azure.resourcemanager.compute.models.Disallowed;
1011
import com.azure.resourcemanager.compute.models.GalleryImageFeature;
11-
import com.azure.resourcemanager.compute.models.GalleryImageIdentifier;
1212
import com.azure.resourcemanager.compute.models.HyperVGeneration;
1313
import com.azure.resourcemanager.compute.models.ImagePurchasePlan;
1414
import com.azure.resourcemanager.compute.models.OperatingSystemStateTypes;
@@ -126,21 +126,21 @@ public CommunityGalleryImageInner withEndOfLifeDate(OffsetDateTime endOfLifeDate
126126
}
127127

128128
/**
129-
* Get the identifier property: This is the gallery image definition identifier.
129+
* Get the identifier property: This is the community gallery image definition identifier.
130130
*
131131
* @return the identifier value.
132132
*/
133-
public GalleryImageIdentifier identifier() {
133+
public CommunityGalleryImageIdentifier identifier() {
134134
return this.innerProperties() == null ? null : this.innerProperties().identifier();
135135
}
136136

137137
/**
138-
* Set the identifier property: This is the gallery image definition identifier.
138+
* Set the identifier property: This is the community gallery image definition identifier.
139139
*
140140
* @param identifier the identifier value to set.
141141
* @return the CommunityGalleryImageInner object itself.
142142
*/
143-
public CommunityGalleryImageInner withIdentifier(GalleryImageIdentifier identifier) {
143+
public CommunityGalleryImageInner withIdentifier(CommunityGalleryImageIdentifier identifier) {
144144
if (this.innerProperties() == null) {
145145
this.innerProperties = new CommunityGalleryImageProperties();
146146
}

sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/CommunityGalleryImageProperties.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
import com.azure.core.annotation.Fluent;
88
import com.azure.core.util.logging.ClientLogger;
99
import com.azure.resourcemanager.compute.models.Architecture;
10+
import com.azure.resourcemanager.compute.models.CommunityGalleryImageIdentifier;
1011
import com.azure.resourcemanager.compute.models.Disallowed;
1112
import com.azure.resourcemanager.compute.models.GalleryImageFeature;
12-
import com.azure.resourcemanager.compute.models.GalleryImageIdentifier;
1313
import com.azure.resourcemanager.compute.models.HyperVGeneration;
1414
import com.azure.resourcemanager.compute.models.ImagePurchasePlan;
1515
import com.azure.resourcemanager.compute.models.OperatingSystemStateTypes;
@@ -44,10 +44,10 @@ public final class CommunityGalleryImageProperties {
4444
private OffsetDateTime endOfLifeDate;
4545

4646
/*
47-
* This is the gallery image definition identifier.
47+
* This is the community gallery image definition identifier.
4848
*/
4949
@JsonProperty(value = "identifier", required = true)
50-
private GalleryImageIdentifier identifier;
50+
private CommunityGalleryImageIdentifier identifier;
5151

5252
/*
5353
* The properties describe the recommended machine configuration for this Image Definition. These properties are
@@ -171,21 +171,21 @@ public CommunityGalleryImageProperties withEndOfLifeDate(OffsetDateTime endOfLif
171171
}
172172

173173
/**
174-
* Get the identifier property: This is the gallery image definition identifier.
174+
* Get the identifier property: This is the community gallery image definition identifier.
175175
*
176176
* @return the identifier value.
177177
*/
178-
public GalleryImageIdentifier identifier() {
178+
public CommunityGalleryImageIdentifier identifier() {
179179
return this.identifier;
180180
}
181181

182182
/**
183-
* Set the identifier property: This is the gallery image definition identifier.
183+
* Set the identifier property: This is the community gallery image definition identifier.
184184
*
185185
* @param identifier the identifier value to set.
186186
* @return the CommunityGalleryImageProperties object itself.
187187
*/
188-
public CommunityGalleryImageProperties withIdentifier(GalleryImageIdentifier identifier) {
188+
public CommunityGalleryImageProperties withIdentifier(CommunityGalleryImageIdentifier identifier) {
189189
this.identifier = identifier;
190190
return this;
191191
}

sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/DiskAccessesClientImpl.java

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(
304304
} else {
305305
diskAccess.validate();
306306
}
307-
final String apiVersion = "2022-07-02";
307+
final String apiVersion = "2023-01-02";
308308
final String accept = "application/json";
309309
return FluxUtil
310310
.withContext(
@@ -363,7 +363,7 @@ private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(
363363
} else {
364364
diskAccess.validate();
365365
}
366-
final String apiVersion = "2022-07-02";
366+
final String apiVersion = "2023-01-02";
367367
final String accept = "application/json";
368368
context = this.client.mergeContext(context);
369369
return service
@@ -592,7 +592,7 @@ public Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(
592592
} else {
593593
diskAccess.validate();
594594
}
595-
final String apiVersion = "2022-07-02";
595+
final String apiVersion = "2023-01-02";
596596
final String accept = "application/json";
597597
return FluxUtil
598598
.withContext(
@@ -651,7 +651,7 @@ private Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(
651651
} else {
652652
diskAccess.validate();
653653
}
654-
final String apiVersion = "2022-07-02";
654+
final String apiVersion = "2023-01-02";
655655
final String accept = "application/json";
656656
context = this.client.mergeContext(context);
657657
return service
@@ -874,7 +874,7 @@ public Mono<Response<DiskAccessInner>> getByResourceGroupWithResponseAsync(
874874
if (diskAccessName == null) {
875875
return Mono.error(new IllegalArgumentException("Parameter diskAccessName is required and cannot be null."));
876876
}
877-
final String apiVersion = "2022-07-02";
877+
final String apiVersion = "2023-01-02";
878878
final String accept = "application/json";
879879
return FluxUtil
880880
.withContext(
@@ -927,7 +927,7 @@ private Mono<Response<DiskAccessInner>> getByResourceGroupWithResponseAsync(
927927
if (diskAccessName == null) {
928928
return Mono.error(new IllegalArgumentException("Parameter diskAccessName is required and cannot be null."));
929929
}
930-
final String apiVersion = "2022-07-02";
930+
final String apiVersion = "2023-01-02";
931931
final String accept = "application/json";
932932
context = this.client.mergeContext(context);
933933
return service
@@ -1028,7 +1028,7 @@ public Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceG
10281028
if (diskAccessName == null) {
10291029
return Mono.error(new IllegalArgumentException("Parameter diskAccessName is required and cannot be null."));
10301030
}
1031-
final String apiVersion = "2022-07-02";
1031+
final String apiVersion = "2023-01-02";
10321032
final String accept = "application/json";
10331033
return FluxUtil
10341034
.withContext(
@@ -1080,7 +1080,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
10801080
if (diskAccessName == null) {
10811081
return Mono.error(new IllegalArgumentException("Parameter diskAccessName is required and cannot be null."));
10821082
}
1083-
final String apiVersion = "2022-07-02";
1083+
final String apiVersion = "2023-01-02";
10841084
final String accept = "application/json";
10851085
context = this.client.mergeContext(context);
10861086
return service
@@ -1274,7 +1274,7 @@ private Mono<PagedResponse<DiskAccessInner>> listByResourceGroupSinglePageAsync(
12741274
return Mono
12751275
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
12761276
}
1277-
final String apiVersion = "2022-07-02";
1277+
final String apiVersion = "2023-01-02";
12781278
final String accept = "application/json";
12791279
return FluxUtil
12801280
.withContext(
@@ -1329,7 +1329,7 @@ private Mono<PagedResponse<DiskAccessInner>> listByResourceGroupSinglePageAsync(
13291329
return Mono
13301330
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
13311331
}
1332-
final String apiVersion = "2022-07-02";
1332+
final String apiVersion = "2023-01-02";
13331333
final String accept = "application/json";
13341334
context = this.client.mergeContext(context);
13351335
return service
@@ -1435,7 +1435,7 @@ private Mono<PagedResponse<DiskAccessInner>> listSinglePageAsync() {
14351435
new IllegalArgumentException(
14361436
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
14371437
}
1438-
final String apiVersion = "2022-07-02";
1438+
final String apiVersion = "2023-01-02";
14391439
final String accept = "application/json";
14401440
return FluxUtil
14411441
.withContext(
@@ -1478,7 +1478,7 @@ private Mono<PagedResponse<DiskAccessInner>> listSinglePageAsync(Context context
14781478
new IllegalArgumentException(
14791479
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
14801480
}
1481-
final String apiVersion = "2022-07-02";
1481+
final String apiVersion = "2023-01-02";
14821482
final String accept = "application/json";
14831483
context = this.client.mergeContext(context);
14841484
return service
@@ -1582,7 +1582,7 @@ public Mono<Response<PrivateLinkResourceListResultInner>> getPrivateLinkResource
15821582
if (diskAccessName == null) {
15831583
return Mono.error(new IllegalArgumentException("Parameter diskAccessName is required and cannot be null."));
15841584
}
1585-
final String apiVersion = "2022-07-02";
1585+
final String apiVersion = "2023-01-02";
15861586
final String accept = "application/json";
15871587
return FluxUtil
15881588
.withContext(
@@ -1635,7 +1635,7 @@ private Mono<Response<PrivateLinkResourceListResultInner>> getPrivateLinkResourc
16351635
if (diskAccessName == null) {
16361636
return Mono.error(new IllegalArgumentException("Parameter diskAccessName is required and cannot be null."));
16371637
}
1638-
final String apiVersion = "2022-07-02";
1638+
final String apiVersion = "2023-01-02";
16391639
final String accept = "application/json";
16401640
context = this.client.mergeContext(context);
16411641
return service
@@ -1760,7 +1760,7 @@ public Mono<Response<Flux<ByteBuffer>>> updateAPrivateEndpointConnectionWithResp
17601760
} else {
17611761
privateEndpointConnection.validate();
17621762
}
1763-
final String apiVersion = "2022-07-02";
1763+
final String apiVersion = "2023-01-02";
17641764
final String accept = "application/json";
17651765
return FluxUtil
17661766
.withContext(
@@ -1837,7 +1837,7 @@ private Mono<Response<Flux<ByteBuffer>>> updateAPrivateEndpointConnectionWithRes
18371837
} else {
18381838
privateEndpointConnection.validate();
18391839
}
1840-
final String apiVersion = "2022-07-02";
1840+
final String apiVersion = "2023-01-02";
18411841
final String accept = "application/json";
18421842
context = this.client.mergeContext(context);
18431843
return service
@@ -2144,7 +2144,7 @@ public Mono<Response<PrivateEndpointConnectionInner>> getAPrivateEndpointConnect
21442144
new IllegalArgumentException(
21452145
"Parameter privateEndpointConnectionName is required and cannot be null."));
21462146
}
2147-
final String apiVersion = "2022-07-02";
2147+
final String apiVersion = "2023-01-02";
21482148
final String accept = "application/json";
21492149
return FluxUtil
21502150
.withContext(
@@ -2205,7 +2205,7 @@ private Mono<Response<PrivateEndpointConnectionInner>> getAPrivateEndpointConnec
22052205
new IllegalArgumentException(
22062206
"Parameter privateEndpointConnectionName is required and cannot be null."));
22072207
}
2208-
final String apiVersion = "2022-07-02";
2208+
final String apiVersion = "2023-01-02";
22092209
final String accept = "application/json";
22102210
context = this.client.mergeContext(context);
22112211
return service
@@ -2326,7 +2326,7 @@ public Mono<Response<Flux<ByteBuffer>>> deleteAPrivateEndpointConnectionWithResp
23262326
new IllegalArgumentException(
23272327
"Parameter privateEndpointConnectionName is required and cannot be null."));
23282328
}
2329-
final String apiVersion = "2022-07-02";
2329+
final String apiVersion = "2023-01-02";
23302330
final String accept = "application/json";
23312331
return FluxUtil
23322332
.withContext(
@@ -2386,7 +2386,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteAPrivateEndpointConnectionWithRes
23862386
new IllegalArgumentException(
23872387
"Parameter privateEndpointConnectionName is required and cannot be null."));
23882388
}
2389-
final String apiVersion = "2022-07-02";
2389+
final String apiVersion = "2023-01-02";
23902390
final String accept = "application/json";
23912391
context = this.client.mergeContext(context);
23922392
return service
@@ -2615,7 +2615,7 @@ private Mono<PagedResponse<PrivateEndpointConnectionInner>> listPrivateEndpointC
26152615
if (diskAccessName == null) {
26162616
return Mono.error(new IllegalArgumentException("Parameter diskAccessName is required and cannot be null."));
26172617
}
2618-
final String apiVersion = "2022-07-02";
2618+
final String apiVersion = "2023-01-02";
26192619
final String accept = "application/json";
26202620
return FluxUtil
26212621
.withContext(
@@ -2677,7 +2677,7 @@ private Mono<PagedResponse<PrivateEndpointConnectionInner>> listPrivateEndpointC
26772677
if (diskAccessName == null) {
26782678
return Mono.error(new IllegalArgumentException("Parameter diskAccessName is required and cannot be null."));
26792679
}
2680-
final String apiVersion = "2022-07-02";
2680+
final String apiVersion = "2023-01-02";
26812681
final String accept = "application/json";
26822682
context = this.client.mergeContext(context);
26832683
return service

0 commit comments

Comments
 (0)