Skip to content

Commit dadf9dd

Browse files
mgmt, regen compute for gallery upgrade (Azure#26990)
1 parent f4d4bf5 commit dadf9dd

File tree

60 files changed

+1401
-408
lines changed

Some content is hidden

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

60 files changed

+1401
-408
lines changed

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import com.azure.core.util.polling.PollerFlux;
1515
import com.azure.core.util.polling.SyncPoller;
1616
import com.azure.resourcemanager.compute.fluent.models.GalleryInner;
17+
import com.azure.resourcemanager.compute.models.GalleryExpandParams;
1718
import com.azure.resourcemanager.compute.models.GalleryUpdate;
1819
import com.azure.resourcemanager.compute.models.SelectPermissions;
1920
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete;
@@ -264,6 +265,7 @@ SyncPoller<PollResult<GalleryInner>, GalleryInner> beginUpdate(
264265
* @param resourceGroupName The name of the resource group.
265266
* @param galleryName The name of the Shared Image Gallery.
266267
* @param select The select expression to apply on the operation.
268+
* @param expand The expand query option to apply on the operation.
267269
* @throws IllegalArgumentException thrown if parameters fail the validation.
268270
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
269271
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -272,22 +274,24 @@ SyncPoller<PollResult<GalleryInner>, GalleryInner> beginUpdate(
272274
*/
273275
@ServiceMethod(returns = ReturnType.SINGLE)
274276
Mono<Response<GalleryInner>> getByResourceGroupWithResponseAsync(
275-
String resourceGroupName, String galleryName, SelectPermissions select);
277+
String resourceGroupName, String galleryName, SelectPermissions select, GalleryExpandParams expand);
276278

277279
/**
278280
* Retrieves information about a Shared Image Gallery.
279281
*
280282
* @param resourceGroupName The name of the resource group.
281283
* @param galleryName The name of the Shared Image Gallery.
282284
* @param select The select expression to apply on the operation.
285+
* @param expand The expand query option to apply on the operation.
283286
* @throws IllegalArgumentException thrown if parameters fail the validation.
284287
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
285288
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
286289
* @return specifies information about the Shared Image Gallery that you want to create or update on successful
287290
* completion of {@link Mono}.
288291
*/
289292
@ServiceMethod(returns = ReturnType.SINGLE)
290-
Mono<GalleryInner> getByResourceGroupAsync(String resourceGroupName, String galleryName, SelectPermissions select);
293+
Mono<GalleryInner> getByResourceGroupAsync(
294+
String resourceGroupName, String galleryName, SelectPermissions select, GalleryExpandParams expand);
291295

292296
/**
293297
* Retrieves information about a Shared Image Gallery.
@@ -322,6 +326,7 @@ Mono<Response<GalleryInner>> getByResourceGroupWithResponseAsync(
322326
* @param resourceGroupName The name of the resource group.
323327
* @param galleryName The name of the Shared Image Gallery.
324328
* @param select The select expression to apply on the operation.
329+
* @param expand The expand query option to apply on the operation.
325330
* @param context The context to associate with this operation.
326331
* @throws IllegalArgumentException thrown if parameters fail the validation.
327332
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
@@ -331,7 +336,11 @@ Mono<Response<GalleryInner>> getByResourceGroupWithResponseAsync(
331336
*/
332337
@ServiceMethod(returns = ReturnType.SINGLE)
333338
Response<GalleryInner> getByResourceGroupWithResponse(
334-
String resourceGroupName, String galleryName, SelectPermissions select, Context context);
339+
String resourceGroupName,
340+
String galleryName,
341+
SelectPermissions select,
342+
GalleryExpandParams expand,
343+
Context context);
335344

336345
/**
337346
* Delete a Shared Image Gallery.

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import com.azure.resourcemanager.compute.models.GalleryIdentifier;
1111
import com.azure.resourcemanager.compute.models.GalleryPropertiesProvisioningState;
1212
import com.azure.resourcemanager.compute.models.SharingProfile;
13+
import com.azure.resourcemanager.compute.models.SharingStatus;
1314
import com.azure.resourcemanager.compute.models.SoftDeletePolicy;
1415
import com.fasterxml.jackson.annotation.JsonIgnore;
1516
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -151,6 +152,15 @@ public GalleryInner withSoftDeletePolicy(SoftDeletePolicy softDeletePolicy) {
151152
return this;
152153
}
153154

155+
/**
156+
* Get the sharingStatus property: Sharing status of current gallery.
157+
*
158+
* @return the sharingStatus value.
159+
*/
160+
public SharingStatus sharingStatus() {
161+
return this.innerProperties() == null ? null : this.innerProperties().sharingStatus();
162+
}
163+
154164
/**
155165
* Validates the instance.
156166
*

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import com.azure.resourcemanager.compute.models.GalleryIdentifier;
1010
import com.azure.resourcemanager.compute.models.GalleryPropertiesProvisioningState;
1111
import com.azure.resourcemanager.compute.models.SharingProfile;
12+
import com.azure.resourcemanager.compute.models.SharingStatus;
1213
import com.azure.resourcemanager.compute.models.SoftDeletePolicy;
1314
import com.fasterxml.jackson.annotation.JsonIgnore;
1415
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -50,6 +51,12 @@ public final class GalleryProperties {
5051
@JsonProperty(value = "softDeletePolicy")
5152
private SoftDeletePolicy softDeletePolicy;
5253

54+
/*
55+
* Sharing status of current gallery.
56+
*/
57+
@JsonProperty(value = "sharingStatus", access = JsonProperty.Access.WRITE_ONLY)
58+
private SharingStatus sharingStatus;
59+
5360
/**
5461
* Get the description property: The description of this Shared Image Gallery resource. This property is updatable.
5562
*
@@ -140,6 +147,15 @@ public GalleryProperties withSoftDeletePolicy(SoftDeletePolicy softDeletePolicy)
140147
return this;
141148
}
142149

150+
/**
151+
* Get the sharingStatus property: Sharing status of current gallery.
152+
*
153+
* @return the sharingStatus value.
154+
*/
155+
public SharingStatus sharingStatus() {
156+
return this.sharingStatus;
157+
}
158+
143159
/**
144160
* Validates the instance.
145161
*
@@ -155,5 +171,8 @@ public void validate() {
155171
if (softDeletePolicy() != null) {
156172
softDeletePolicy().validate();
157173
}
174+
if (sharingStatus() != null) {
175+
sharingStatus().validate();
176+
}
158177
}
159178
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ public VirtualMachineInner withAvailabilitySet(SubResource availabilitySet) {
411411
* allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale
412412
* set at creation time. An existing VM cannot be added to a virtual machine scale set. &lt;br&gt;&lt;br&gt;This
413413
* property cannot exist along with a non-null properties.availabilitySet reference. &lt;br&gt;&lt;br&gt;Minimum
414-
* api-version: 2019-03-01.
414+
* apiversion: 2019‐03‐01.
415415
*
416416
* @return the virtualMachineScaleSet value.
417417
*/
@@ -425,7 +425,7 @@ public SubResource virtualMachineScaleSet() {
425425
* allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale
426426
* set at creation time. An existing VM cannot be added to a virtual machine scale set. &lt;br&gt;&lt;br&gt;This
427427
* property cannot exist along with a non-null properties.availabilitySet reference. &lt;br&gt;&lt;br&gt;Minimum
428-
* api-version: 2019-03-01.
428+
* apiversion: 2019‐03‐01.
429429
*
430430
* @param virtualMachineScaleSet the virtualMachineScaleSet value to set.
431431
* @return the VirtualMachineInner object itself.
@@ -695,7 +695,7 @@ public VirtualMachineInner withExtensionsTimeBudget(String extensionsTimeBudget)
695695
* 'virtualMachineScaleSet' property of this Virtual Machine is set.&lt;li&gt;The Virtual Machine Scale Set that is
696696
* referenced, must have 'platformFaultDomainCount' &amp;gt; 1.&lt;li&gt;This property cannot be updated once the
697697
* Virtual Machine is created.&lt;li&gt;Fault domain assignment can be viewed in the Virtual Machine Instance
698-
* View.&lt;br&gt;&lt;br&gt;Minimum api-version: 2020-12-01.
698+
* View.&lt;br&gt;&lt;br&gt;Minimum apiversion: 2020‐12‐01.
699699
*
700700
* @return the platformFaultDomain value.
701701
*/
@@ -710,7 +710,7 @@ public Integer platformFaultDomain() {
710710
* 'virtualMachineScaleSet' property of this Virtual Machine is set.&lt;li&gt;The Virtual Machine Scale Set that is
711711
* referenced, must have 'platformFaultDomainCount' &amp;gt; 1.&lt;li&gt;This property cannot be updated once the
712712
* Virtual Machine is created.&lt;li&gt;Fault domain assignment can be viewed in the Virtual Machine Instance
713-
* View.&lt;br&gt;&lt;br&gt;Minimum api-version: 2020-12-01.
713+
* View.&lt;br&gt;&lt;br&gt;Minimum apiversion: 2020‐12‐01.
714714
*
715715
* @param platformFaultDomain the platformFaultDomain value to set.
716716
* @return the VirtualMachineInner object itself.

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public final class VirtualMachinePropertiesInner {
102102
* machine scale set at creation time. An existing VM cannot be added to a
103103
* virtual machine scale set. <br><br>This property cannot exist along with
104104
* a non-null properties.availabilitySet reference. <br><br>Minimum
105-
* api-version: 2019-03-01
105+
* apiversion: 2019‐03‐01
106106
*/
107107
@JsonProperty(value = "virtualMachineScaleSet")
108108
private SubResource virtualMachineScaleSet;
@@ -208,8 +208,8 @@ public final class VirtualMachinePropertiesInner {
208208
* Virtual Machine Scale Set that is referenced, must have
209209
* 'platformFaultDomainCount' &gt; 1.<li>This property cannot be updated
210210
* once the Virtual Machine is created.<li>Fault domain assignment can be
211-
* viewed in the Virtual Machine Instance View.<br><br>Minimum api-version:
212-
* 2020-12-01
211+
* viewed in the Virtual Machine Instance View.<br><br>Minimum apiversion:
212+
* 2020‐12‐01
213213
*/
214214
@JsonProperty(value = "platformFaultDomain")
215215
private Integer platformFaultDomain;
@@ -438,7 +438,7 @@ public VirtualMachinePropertiesInner withAvailabilitySet(SubResource availabilit
438438
* allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale
439439
* set at creation time. An existing VM cannot be added to a virtual machine scale set. &lt;br&gt;&lt;br&gt;This
440440
* property cannot exist along with a non-null properties.availabilitySet reference. &lt;br&gt;&lt;br&gt;Minimum
441-
* api-version: 2019-03-01.
441+
* apiversion: 2019‐03‐01.
442442
*
443443
* @return the virtualMachineScaleSet value.
444444
*/
@@ -452,7 +452,7 @@ public SubResource virtualMachineScaleSet() {
452452
* allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale
453453
* set at creation time. An existing VM cannot be added to a virtual machine scale set. &lt;br&gt;&lt;br&gt;This
454454
* property cannot exist along with a non-null properties.availabilitySet reference. &lt;br&gt;&lt;br&gt;Minimum
455-
* api-version: 2019-03-01.
455+
* apiversion: 2019‐03‐01.
456456
*
457457
* @param virtualMachineScaleSet the virtualMachineScaleSet value to set.
458458
* @return the VirtualMachinePropertiesInner object itself.
@@ -695,7 +695,7 @@ public VirtualMachinePropertiesInner withExtensionsTimeBudget(String extensionsT
695695
* 'virtualMachineScaleSet' property of this Virtual Machine is set.&lt;li&gt;The Virtual Machine Scale Set that is
696696
* referenced, must have 'platformFaultDomainCount' &amp;gt; 1.&lt;li&gt;This property cannot be updated once the
697697
* Virtual Machine is created.&lt;li&gt;Fault domain assignment can be viewed in the Virtual Machine Instance
698-
* View.&lt;br&gt;&lt;br&gt;Minimum api-version: 2020-12-01.
698+
* View.&lt;br&gt;&lt;br&gt;Minimum apiversion: 2020‐12‐01.
699699
*
700700
* @return the platformFaultDomain value.
701701
*/
@@ -710,7 +710,7 @@ public Integer platformFaultDomain() {
710710
* 'virtualMachineScaleSet' property of this Virtual Machine is set.&lt;li&gt;The Virtual Machine Scale Set that is
711711
* referenced, must have 'platformFaultDomainCount' &amp;gt; 1.&lt;li&gt;This property cannot be updated once the
712712
* Virtual Machine is created.&lt;li&gt;Fault domain assignment can be viewed in the Virtual Machine Instance
713-
* View.&lt;br&gt;&lt;br&gt;Minimum api-version: 2020-12-01.
713+
* View.&lt;br&gt;&lt;br&gt;Minimum apiversion: 2020‐12‐01.
714714
*
715715
* @param platformFaultDomain the platformFaultDomain value to set.
716716
* @return the VirtualMachinePropertiesInner object itself.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ public VirtualMachineUpdateInner withAvailabilitySet(SubResource availabilitySet
362362
* allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale
363363
* set at creation time. An existing VM cannot be added to a virtual machine scale set. &lt;br&gt;&lt;br&gt;This
364364
* property cannot exist along with a non-null properties.availabilitySet reference. &lt;br&gt;&lt;br&gt;Minimum
365-
* api-version: 2019-03-01.
365+
* apiversion: 2019‐03‐01.
366366
*
367367
* @return the virtualMachineScaleSet value.
368368
*/
@@ -376,7 +376,7 @@ public SubResource virtualMachineScaleSet() {
376376
* allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale
377377
* set at creation time. An existing VM cannot be added to a virtual machine scale set. &lt;br&gt;&lt;br&gt;This
378378
* property cannot exist along with a non-null properties.availabilitySet reference. &lt;br&gt;&lt;br&gt;Minimum
379-
* api-version: 2019-03-01.
379+
* apiversion: 2019‐03‐01.
380380
*
381381
* @param virtualMachineScaleSet the virtualMachineScaleSet value to set.
382382
* @return the VirtualMachineUpdateInner object itself.
@@ -646,7 +646,7 @@ public VirtualMachineUpdateInner withExtensionsTimeBudget(String extensionsTimeB
646646
* 'virtualMachineScaleSet' property of this Virtual Machine is set.&lt;li&gt;The Virtual Machine Scale Set that is
647647
* referenced, must have 'platformFaultDomainCount' &amp;gt; 1.&lt;li&gt;This property cannot be updated once the
648648
* Virtual Machine is created.&lt;li&gt;Fault domain assignment can be viewed in the Virtual Machine Instance
649-
* View.&lt;br&gt;&lt;br&gt;Minimum api-version: 2020-12-01.
649+
* View.&lt;br&gt;&lt;br&gt;Minimum apiversion: 2020‐12‐01.
650650
*
651651
* @return the platformFaultDomain value.
652652
*/
@@ -661,7 +661,7 @@ public Integer platformFaultDomain() {
661661
* 'virtualMachineScaleSet' property of this Virtual Machine is set.&lt;li&gt;The Virtual Machine Scale Set that is
662662
* referenced, must have 'platformFaultDomainCount' &amp;gt; 1.&lt;li&gt;This property cannot be updated once the
663663
* Virtual Machine is created.&lt;li&gt;Fault domain assignment can be viewed in the Virtual Machine Instance
664-
* View.&lt;br&gt;&lt;br&gt;Minimum api-version: 2020-12-01.
664+
* View.&lt;br&gt;&lt;br&gt;Minimum apiversion: 2020‐12‐01.
665665
*
666666
* @param platformFaultDomain the platformFaultDomain value to set.
667667
* @return the VirtualMachineUpdateInner object itself.

0 commit comments

Comments
 (0)