From fac6f0ab43b214700959d4d37ec5e465d49071d9 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 7 Oct 2024 19:51:32 +0000 Subject: [PATCH] CodeGen from PR 30885 in Azure/azure-rest-api-specs Merge 5f557c1cbf7a3756f92dc2e7a26c0cdb40a9bd1d into 0ea6f3e87651c19268983f3cc7411e21b1aed343 --- ....ResourceManager.Compute.netstandard2.0.cs | 10 +- .../Sample_CommunityGalleryCollection.cs | 6 +- .../Sample_CommunityGalleryImageCollection.cs | 8 +- .../Sample_CommunityGalleryImageResource.cs | 2 +- ..._CommunityGalleryImageVersionCollection.cs | 8 +- ...le_CommunityGalleryImageVersionResource.cs | 2 +- .../Sample_CommunityGalleryResource.cs | 2 +- .../Sample_GalleryApplicationCollection.cs | 10 +- .../Sample_GalleryApplicationResource.cs | 6 +- ...ple_GalleryApplicationVersionCollection.cs | 16 +- ...ample_GalleryApplicationVersionResource.cs | 8 +- .../Samples/Sample_GalleryCollection.cs | 187 ++++++++++++++++-- .../Samples/Sample_GalleryImageCollection.cs | 10 +- .../Samples/Sample_GalleryImageResource.cs | 6 +- .../Sample_GalleryImageVersionCollection.cs | 46 ++--- .../Sample_GalleryImageVersionResource.cs | 14 +- .../Samples/Sample_GalleryResource.cs | 51 ++++- .../Samples/Sample_SharedGalleryCollection.cs | 8 +- .../Sample_SharedGalleryImageCollection.cs | 8 +- .../Sample_SharedGalleryImageResource.cs | 2 +- ...ple_SharedGalleryImageVersionCollection.cs | 8 +- ...ample_SharedGalleryImageVersionResource.cs | 2 +- .../Samples/Sample_SharedGalleryResource.cs | 2 +- .../src/Generated/ArmComputeModelFactory.cs | 57 +++++- .../Generated/CommunityGalleryCollection.cs | 12 +- .../CommunityGalleryImageCollection.cs | 16 +- .../Generated/CommunityGalleryImageData.cs | 4 +- .../CommunityGalleryImageResource.cs | 8 +- .../CommunityGalleryImageVersionCollection.cs | 16 +- .../CommunityGalleryImageVersionResource.cs | 4 +- .../src/Generated/CommunityGalleryResource.cs | 8 +- .../Generated/Extensions/ComputeExtensions.cs | 16 +- .../MockableComputeResourceGroupResource.cs | 4 +- .../MockableComputeSubscriptionResource.cs | 12 +- .../Generated/GalleryApplicationCollection.cs | 20 +- .../Generated/GalleryApplicationResource.cs | 28 +-- .../GalleryApplicationVersionCollection.cs | 20 +- .../GalleryApplicationVersionResource.cs | 24 +-- .../src/Generated/GalleryCollection.cs | 20 +- .../Generated/GalleryData.Serialization.cs | 16 ++ .../src/Generated/GalleryData.cs | 6 +- .../src/Generated/GalleryImageCollection.cs | 20 +- .../src/Generated/GalleryImageData.cs | 4 +- .../src/Generated/GalleryImageResource.cs | 28 +-- .../GalleryImageVersionCollection.cs | 20 +- .../Generated/GalleryImageVersionResource.cs | 24 +-- .../src/Generated/GalleryResource.cs | 36 ++-- .../Generated/Models/DiskDetachOptionType.cs | 2 +- .../src/Generated/Models/GalleryImagePatch.cs | 4 +- .../Models/GalleryPatch.Serialization.cs | 16 ++ .../src/Generated/Models/GalleryPatch.cs | 6 +- .../Models/SupportedOperatingSystemType.cs | 2 +- .../Models/VirtualMachineDataDisk.cs | 4 +- .../CommunityGalleriesRestOperations.cs | 2 +- ...unityGalleryImageVersionsRestOperations.cs | 2 +- .../CommunityGalleryImagesRestOperations.cs | 2 +- .../RestOperations/GalleriesRestOperations.cs | 2 +- ...alleryApplicationVersionsRestOperations.cs | 2 +- .../GalleryApplicationsRestOperations.cs | 2 +- .../GalleryImageVersionsRestOperations.cs | 2 +- .../GalleryImagesRestOperations.cs | 2 +- .../GallerySharingProfileRestOperations.cs | 2 +- .../SharedGalleriesRestOperations.cs | 2 +- ...haredGalleryImageVersionsRestOperations.cs | 2 +- .../SharedGalleryImagesRestOperations.cs | 2 +- .../src/Generated/SharedGalleryCollection.cs | 16 +- .../Generated/SharedGalleryImageCollection.cs | 16 +- .../src/Generated/SharedGalleryImageData.cs | 4 +- .../Generated/SharedGalleryImageResource.cs | 8 +- .../SharedGalleryImageVersionCollection.cs | 16 +- .../SharedGalleryImageVersionResource.cs | 4 +- .../src/Generated/SharedGalleryResource.cs | 8 +- .../src/autorest.md | 2 +- 73 files changed, 625 insertions(+), 352 deletions(-) diff --git a/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs b/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs index 903d9f114b7b..48a23fc9a760 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs @@ -1366,6 +1366,7 @@ public partial class GalleryData : Azure.ResourceManager.Models.TrackedResourceD public GalleryData(Azure.Core.AzureLocation location) { } public string Description { get { throw null; } set { } } public string IdentifierUniqueName { get { throw null; } } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public bool? IsSoftDeleteEnabled { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Compute.Models.SharingProfile SharingProfile { get { throw null; } set { } } @@ -3270,7 +3271,9 @@ public static partial class ArmComputeModelFactory public static Azure.ResourceManager.Compute.Models.GalleryApplicationVersionPatch GalleryApplicationVersionPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Compute.Models.GalleryApplicationVersionPublishingProfile publishingProfile = null, bool? allowDeletionOfReplicatedLocations = default(bool?), Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus = null, System.Collections.Generic.IDictionary tags = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryApplicationVersionPublishingProfile GalleryApplicationVersionPublishingProfile(System.Collections.Generic.IEnumerable targetRegions = null, int? replicaCount = default(int?), bool? isExcludedFromLatest = default(bool?), System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.ImageStorageAccountType? storageAccountType = default(Azure.ResourceManager.Compute.Models.ImageStorageAccountType?), Azure.ResourceManager.Compute.Models.GalleryReplicationMode? replicationMode = default(Azure.ResourceManager.Compute.Models.GalleryReplicationMode?), System.Collections.Generic.IEnumerable targetExtendedLocations = null, Azure.ResourceManager.Compute.Models.UserArtifactSource source = null, Azure.ResourceManager.Compute.Models.UserArtifactManagement manageActions = null, Azure.ResourceManager.Compute.Models.UserArtifactSettings settings = null, System.Collections.Generic.IDictionary advancedSettings = null, bool? enableHealthCheck = default(bool?), System.Collections.Generic.IEnumerable customActions = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryArtifactPublishingProfileBase GalleryArtifactPublishingProfileBase(System.Collections.Generic.IEnumerable targetRegions = null, int? replicaCount = default(int?), bool? isExcludedFromLatest = default(bool?), System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.ImageStorageAccountType? storageAccountType = default(Azure.ResourceManager.Compute.Models.ImageStorageAccountType?), Azure.ResourceManager.Compute.Models.GalleryReplicationMode? replicationMode = default(Azure.ResourceManager.Compute.Models.GalleryReplicationMode?), System.Collections.Generic.IEnumerable targetExtendedLocations = null) { throw null; } - public static Azure.ResourceManager.Compute.GalleryData GalleryData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string description = null, string identifierUniqueName = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.SharingProfile sharingProfile = null, bool? isSoftDeleteEnabled = default(bool?), Azure.ResourceManager.Compute.Models.SharingStatus sharingStatus = null) { throw null; } + public static Azure.ResourceManager.Compute.GalleryData GalleryData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string description = null, string identifierUniqueName = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.SharingProfile sharingProfile = null, bool? isSoftDeleteEnabled = default(bool?), Azure.ResourceManager.Compute.Models.SharingStatus sharingStatus = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Compute.GalleryData GalleryData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, string description, string identifierUniqueName, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState, Azure.ResourceManager.Compute.Models.SharingProfile sharingProfile, bool? isSoftDeleteEnabled, Azure.ResourceManager.Compute.Models.SharingStatus sharingStatus) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryDataDiskImage GalleryDataDiskImage(int? sizeInGB = default(int?), Azure.ResourceManager.Compute.Models.HostCaching? hostCaching = default(Azure.ResourceManager.Compute.Models.HostCaching?), Azure.ResourceManager.Compute.Models.GalleryDiskImageSource gallerySource = null, int lun = 0) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryDiskImage GalleryDiskImage(int? sizeInGB = default(int?), Azure.ResourceManager.Compute.Models.HostCaching? hostCaching = default(Azure.ResourceManager.Compute.Models.HostCaching?), Azure.ResourceManager.Compute.Models.GalleryDiskImageSource gallerySource = null) { throw null; } public static Azure.ResourceManager.Compute.GalleryImageData GalleryImageData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string description = null, string eula = null, System.Uri privacyStatementUri = null, System.Uri releaseNoteUri = null, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType = default(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType?), Azure.ResourceManager.Compute.Models.OperatingSystemStateType? osState = default(Azure.ResourceManager.Compute.Models.OperatingSystemStateType?), Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.GalleryImageIdentifier identifier = null, Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration recommended = null, System.Collections.Generic.IEnumerable disallowedDiskTypes = null, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), System.Collections.Generic.IEnumerable features = null, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture = default(Azure.ResourceManager.Compute.Models.ArchitectureType?)) { throw null; } @@ -3283,7 +3286,9 @@ public static partial class ArmComputeModelFactory public static Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile GalleryImageVersionPublishingProfile(System.Collections.Generic.IEnumerable targetRegions = null, int? replicaCount = default(int?), bool? isExcludedFromLatest = default(bool?), System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.ImageStorageAccountType? storageAccountType = default(Azure.ResourceManager.Compute.Models.ImageStorageAccountType?), Azure.ResourceManager.Compute.Models.GalleryReplicationMode? replicationMode = default(Azure.ResourceManager.Compute.Models.GalleryReplicationMode?), System.Collections.Generic.IEnumerable targetExtendedLocations = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile GalleryImageVersionSafetyProfile(bool? allowDeletionOfReplicatedLocations = default(bool?), bool? isReportedForPolicyViolation = default(bool?), System.Collections.Generic.IEnumerable policyViolations = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryOSDiskImage GalleryOSDiskImage(int? sizeInGB = default(int?), Azure.ResourceManager.Compute.Models.HostCaching? hostCaching = default(Azure.ResourceManager.Compute.Models.HostCaching?), Azure.ResourceManager.Compute.Models.GalleryDiskImageSource gallerySource = null) { throw null; } - public static Azure.ResourceManager.Compute.Models.GalleryPatch GalleryPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, string identifierUniqueName = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.SharingProfile sharingProfile = null, bool? isSoftDeleteEnabled = default(bool?), Azure.ResourceManager.Compute.Models.SharingStatus sharingStatus = null, System.Collections.Generic.IDictionary tags = null) { throw null; } + public static Azure.ResourceManager.Compute.Models.GalleryPatch GalleryPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string description = null, string identifierUniqueName = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.SharingProfile sharingProfile = null, bool? isSoftDeleteEnabled = default(bool?), Azure.ResourceManager.Compute.Models.SharingStatus sharingStatus = null, System.Collections.Generic.IDictionary tags = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Compute.Models.GalleryPatch GalleryPatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string description, string identifierUniqueName, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState, Azure.ResourceManager.Compute.Models.SharingProfile sharingProfile, bool? isSoftDeleteEnabled, Azure.ResourceManager.Compute.Models.SharingStatus sharingStatus, System.Collections.Generic.IDictionary tags) { throw null; } public static Azure.ResourceManager.Compute.Models.GrantAccessData GrantAccessData(Azure.ResourceManager.Compute.Models.AccessLevel access = default(Azure.ResourceManager.Compute.Models.AccessLevel), int durationInSeconds = 0, bool? getSecureVmGuestStateSas = default(bool?), Azure.ResourceManager.Compute.Models.DiskImageFileFormat? fileFormat = default(Azure.ResourceManager.Compute.Models.DiskImageFileFormat?)) { throw null; } public static Azure.ResourceManager.Compute.Models.ImageReference ImageReference(Azure.Core.ResourceIdentifier id = null, string publisher = null, string offer = null, string sku = null, string version = null, string exactVersion = null, string sharedGalleryImageUniqueId = null, string communityGalleryImageId = null) { throw null; } public static Azure.ResourceManager.Compute.Models.InnerError InnerError(string exceptiontype = null, string errordetail = null) { throw null; } @@ -5481,6 +5486,7 @@ public partial class GalleryPatch : Azure.ResourceManager.Models.ResourceData, S public GalleryPatch() { } public string Description { get { throw null; } set { } } public string IdentifierUniqueName { get { throw null; } } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public bool? IsSoftDeleteEnabled { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Compute.Models.SharingProfile SharingProfile { get { throw null; } set { } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryCollection.cs index 9208ab4f9b34..877e766e87ae 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_CommunityGalleryCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetACommunityGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGallery_Get.json // this example is just showing the usage of "CommunityGalleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetACommunityGallery() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetACommunityGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGallery_Get.json // this example is just showing the usage of "CommunityGalleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Exists_GetACommunityGallery() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetACommunityGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGallery_Get.json // this example is just showing the usage of "CommunityGalleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageCollection.cs index e77cada58a37..5d9b602f1bf4 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_CommunityGalleryImageCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetACommunityGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json // this example is just showing the usage of "CommunityGalleryImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetACommunityGalleryImage() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetACommunityGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json // this example is just showing the usage of "CommunityGalleryImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetACommunityGalleryImage() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetACommunityGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json // this example is just showing the usage of "CommunityGalleryImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_GetACommunityGalleryImage() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListCommunityGalleryImages() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json // this example is just showing the usage of "CommunityGalleryImages_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageResource.cs index a6fc432436e8..f325d0ca8253 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageResource.cs @@ -19,7 +19,7 @@ public partial class Sample_CommunityGalleryImageResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetACommunityGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json // this example is just showing the usage of "CommunityGalleryImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageVersionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageVersionCollection.cs index 06193b8fff11..3f9d9fc4008a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageVersionCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageVersionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_CommunityGalleryImageVersionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetACommunityGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json // this example is just showing the usage of "CommunityGalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetACommunityGalleryImageVersion() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetACommunityGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json // this example is just showing the usage of "CommunityGalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Exists_GetACommunityGalleryImageVersion() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetACommunityGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json // this example is just showing the usage of "CommunityGalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task GetIfExists_GetACommunityGalleryImageVersion() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListCommunityGalleryImageVersions() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json // this example is just showing the usage of "CommunityGalleryImageVersions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageVersionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageVersionResource.cs index fc485d9a8400..3386812fa088 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageVersionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageVersionResource.cs @@ -19,7 +19,7 @@ public partial class Sample_CommunityGalleryImageVersionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetACommunityGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json // this example is just showing the usage of "CommunityGalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryResource.cs index 581abec10c2d..880f03ed54b4 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryResource.cs @@ -19,7 +19,7 @@ public partial class Sample_CommunityGalleryResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetACommunityGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGallery_Get.json // this example is just showing the usage of "CommunityGalleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationCollection.cs index e2e89c8f27e6..7fe7cff8ff8a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_GalleryApplicationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryApplication() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Create.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplication_Create.json // this example is just showing the usage of "GalleryApplications_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -81,7 +81,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryApplication() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGalleryApplication() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplication_Get.json // this example is just showing the usage of "GalleryApplications_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -116,7 +116,7 @@ public async Task Get_GetAGalleryApplication() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAGalleryApplication() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplication_Get.json // this example is just showing the usage of "GalleryApplications_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -147,7 +147,7 @@ public async Task Exists_GetAGalleryApplication() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAGalleryApplication() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplication_Get.json // this example is just showing the usage of "GalleryApplications_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -190,7 +190,7 @@ public async Task GetIfExists_GetAGalleryApplication() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListGalleryApplicationsInAGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_ListByGallery.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplication_ListByGallery.json // this example is just showing the usage of "GalleryApplications_ListByGallery" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationResource.cs index 503d3f5ec14e..611ea298c892 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationResource.cs @@ -20,7 +20,7 @@ public partial class Sample_GalleryApplicationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateASimpleGalleryApplication() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Update.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplication_Update.json // this example is just showing the usage of "GalleryApplications_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Update_UpdateASimpleGalleryApplication() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGalleryApplication() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplication_Get.json // this example is just showing the usage of "GalleryApplications_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -110,7 +110,7 @@ public async Task Get_GetAGalleryApplication() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAGalleryApplication() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Delete.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplication_Delete.json // this example is just showing the usage of "GalleryApplications_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationVersionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationVersionCollection.cs index 8c12b50bb902..44f77f43a0ed 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationVersionCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationVersionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_GalleryApplicationVersionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryApplicationVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Create.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Create.json // this example is just showing the usage of "GalleryApplicationVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryApplicationVersion( [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGalleryApplicationVersionWithReplicationStatus() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json // this example is just showing the usage of "GalleryApplicationVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task Get_GetAGalleryApplicationVersionWithReplicationStatus() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAGalleryApplicationVersionWithReplicationStatus() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json // this example is just showing the usage of "GalleryApplicationVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -164,7 +164,7 @@ public async Task Exists_GetAGalleryApplicationVersionWithReplicationStatus() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAGalleryApplicationVersionWithReplicationStatus() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json // this example is just showing the usage of "GalleryApplicationVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -209,7 +209,7 @@ public async Task GetIfExists_GetAGalleryApplicationVersionWithReplicationStatus [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGalleryApplicationVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Get.json // this example is just showing the usage of "GalleryApplicationVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -245,7 +245,7 @@ public async Task Get_GetAGalleryApplicationVersion() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAGalleryApplicationVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Get.json // this example is just showing the usage of "GalleryApplicationVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -277,7 +277,7 @@ public async Task Exists_GetAGalleryApplicationVersion() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAGalleryApplicationVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Get.json // this example is just showing the usage of "GalleryApplicationVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -321,7 +321,7 @@ public async Task GetIfExists_GetAGalleryApplicationVersion() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListGalleryApplicationVersionsInAGalleryApplicationDefinition() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json // this example is just showing the usage of "GalleryApplicationVersions_ListByGalleryApplication" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationVersionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationVersionResource.cs index 8ec0654887bb..98b73a97ada4 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationVersionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationVersionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_GalleryApplicationVersionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateASimpleGalleryApplicationVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Update.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Update.json // this example is just showing the usage of "GalleryApplicationVersions_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -74,7 +74,7 @@ public async Task Update_UpdateASimpleGalleryApplicationVersion() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGalleryApplicationVersionWithReplicationStatus() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json // this example is just showing the usage of "GalleryApplicationVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -108,7 +108,7 @@ public async Task Get_GetAGalleryApplicationVersionWithReplicationStatus() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGalleryApplicationVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Get.json // this example is just showing the usage of "GalleryApplicationVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -141,7 +141,7 @@ public async Task Get_GetAGalleryApplicationVersion() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAGalleryApplicationVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json // this example is just showing the usage of "GalleryApplicationVersions_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryCollection.cs index 854a1395b221..6e0986c74515 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryCollection.cs @@ -10,6 +10,7 @@ using Azure.Core; using Azure.Identity; using Azure.ResourceManager.Compute.Models; +using Azure.ResourceManager.Models; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Compute.Samples @@ -21,7 +22,7 @@ public partial class Sample_GalleryCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateACommunityGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Create.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/CommunityGallery_Create.json // this example is just showing the usage of "Galleries_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -71,7 +72,7 @@ public async Task CreateOrUpdate_CreateACommunityGallery() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryWithSharingProfile() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create_WithSharingProfile.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Create_WithSharingProfile.json // this example is just showing the usage of "Galleries_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +115,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryWithSharingProfile( [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryWithSoftDeletionEnabled() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create_SoftDeletionEnabled.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Create_SoftDeletionEnabled.json // this example is just showing the usage of "Galleries_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -149,12 +150,58 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryWithSoftDeletionEna Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + // Create or update a simple gallery with system-assigned and user-assigned managed identities. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryWithSystemAssignedAndUserAssignedManagedIdentities() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Create_WithManagedIdentity.json + // this example is just showing the usage of "Galleries_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this GalleryResource + GalleryCollection collection = resourceGroupResource.GetGalleries(); + + // invoke the operation + string galleryName = "myGalleryName"; + GalleryData data = new GalleryData(new AzureLocation("West US")) + { + Identity = new ManagedServiceIdentity("SystemAssigned, UserAssigned") + { + UserAssignedIdentities = +{ +[new ResourceIdentifier("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity")] = new UserAssignedIdentity(), +}, + }, + Description = "This is the gallery description.", + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, galleryName, data); + GalleryResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + GalleryData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + // Create or update a simple gallery. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Create.json // this example is just showing the usage of "Galleries_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -193,7 +240,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGallery() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetACommunityGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/CommunityGallery_Get.json // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -227,7 +274,7 @@ public async Task Get_GetACommunityGallery() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetACommunityGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/CommunityGallery_Get.json // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -257,7 +304,7 @@ public async Task Exists_GetACommunityGallery() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetACommunityGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/CommunityGallery_Get.json // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -299,7 +346,7 @@ public async Task GetIfExists_GetACommunityGallery() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGalleryWithExpandSharingProfileGroups() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -334,7 +381,7 @@ public async Task Get_GetAGalleryWithExpandSharingProfileGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAGalleryWithExpandSharingProfileGroups() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -365,7 +412,7 @@ public async Task Exists_GetAGalleryWithExpandSharingProfileGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAGalleryWithExpandSharingProfileGroups() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -408,7 +455,7 @@ public async Task GetIfExists_GetAGalleryWithExpandSharingProfileGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGalleryWithSelectPermissions() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -443,7 +490,7 @@ public async Task Get_GetAGalleryWithSelectPermissions() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAGalleryWithSelectPermissions() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -474,7 +521,7 @@ public async Task Exists_GetAGalleryWithSelectPermissions() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAGalleryWithSelectPermissions() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -512,12 +559,118 @@ public async Task GetIfExists_GetAGalleryWithSelectPermissions() } } + // Get a gallery with system-assigned and user-assigned managed identities. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetAGalleryWithSystemAssignedAndUserAssignedManagedIdentities() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithManagedIdentity.json + // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this GalleryResource + GalleryCollection collection = resourceGroupResource.GetGalleries(); + + // invoke the operation + string galleryName = "myGalleryName"; + GalleryResource result = await collection.GetAsync(galleryName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + GalleryData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get a gallery with system-assigned and user-assigned managed identities. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetAGalleryWithSystemAssignedAndUserAssignedManagedIdentities() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithManagedIdentity.json + // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this GalleryResource + GalleryCollection collection = resourceGroupResource.GetGalleries(); + + // invoke the operation + string galleryName = "myGalleryName"; + bool result = await collection.ExistsAsync(galleryName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Get a gallery with system-assigned and user-assigned managed identities. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetIfExists_GetAGalleryWithSystemAssignedAndUserAssignedManagedIdentities() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithManagedIdentity.json + // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this GalleryResource + GalleryCollection collection = resourceGroupResource.GetGalleries(); + + // invoke the operation + string galleryName = "myGalleryName"; + NullableResponse response = await collection.GetIfExistsAsync(galleryName); + GalleryResource result = response.HasValue ? response.Value : null; + + if (result == null) + { + Console.WriteLine($"Succeeded with null as result"); + } + else + { + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + GalleryData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + // Get a gallery. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get.json // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -551,7 +704,7 @@ public async Task Get_GetAGallery() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get.json // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -581,7 +734,7 @@ public async Task Exists_GetAGallery() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get.json // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -623,7 +776,7 @@ public async Task GetIfExists_GetAGallery() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListGalleriesInAResourceGroup() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListByResourceGroup.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_ListByResourceGroup.json // this example is just showing the usage of "Galleries_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageCollection.cs index deea2fbbb1bd..bf5547520862 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_GalleryImageCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Create.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImage_Create.json // this example is just showing the usage of "GalleryImages_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -63,7 +63,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImage() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImage_Get.json // this example is just showing the usage of "GalleryImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Get_GetAGalleryImage() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImage_Get.json // this example is just showing the usage of "GalleryImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task Exists_GetAGalleryImage() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImage_Get.json // this example is just showing the usage of "GalleryImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -172,7 +172,7 @@ public async Task GetIfExists_GetAGalleryImage() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListGalleryImagesInAGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_ListByGallery.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImage_ListByGallery.json // this example is just showing the usage of "GalleryImages_ListByGallery" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageResource.cs index d98743a493f9..8c6f996ab9c3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageResource.cs @@ -20,7 +20,7 @@ public partial class Sample_GalleryImageResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateASimpleGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Update.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImage_Update.json // this example is just showing the usage of "GalleryImages_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task Update_UpdateASimpleGalleryImage() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImage_Get.json // this example is just showing the usage of "GalleryImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Get_GetAGalleryImage() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Delete.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImage_Delete.json // this example is just showing the usage of "GalleryImages_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageVersionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageVersionCollection.cs index 4851b89d4985..99aa5b959ac0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageVersionCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageVersionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_GalleryImageVersionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json // this example is just showing the usage of "GalleryImageVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingVM [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImageAsSource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json // this example is just showing the usage of "GalleryImageVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -222,7 +222,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingCo [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create.json // this example is just showing the usage of "GalleryImageVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -323,7 +323,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingMa [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapshotsAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json // this example is just showing the usage of "GalleryImageVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -433,7 +433,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingMi [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMode() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json // this example is just showing the usage of "GalleryImageVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -496,7 +496,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingSh [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json // this example is just showing the usage of "GalleryImageVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -597,7 +597,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingSh [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json // this example is just showing the usage of "GalleryImageVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -707,7 +707,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingSn [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCustomUEFIKeys() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD_UefiSettings.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD_UefiSettings.json // this example is just showing the usage of "GalleryImageVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -848,7 +848,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingVh [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json // this example is just showing the usage of "GalleryImageVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -946,7 +946,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingVh [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocationsSpecified() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json // this example is just showing the usage of "GalleryImageVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1047,7 +1047,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionWithTar [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGalleryImageVersionWithReplicationStatus() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json // this example is just showing the usage of "GalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1084,7 +1084,7 @@ public async Task Get_GetAGalleryImageVersionWithReplicationStatus() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAGalleryImageVersionWithReplicationStatus() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json // this example is just showing the usage of "GalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1117,7 +1117,7 @@ public async Task Exists_GetAGalleryImageVersionWithReplicationStatus() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAGalleryImageVersionWithReplicationStatus() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json // this example is just showing the usage of "GalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1162,7 +1162,7 @@ public async Task GetIfExists_GetAGalleryImageVersionWithReplicationStatus() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGalleryImageVersionWithSnapshotsAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json // this example is just showing the usage of "GalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1198,7 +1198,7 @@ public async Task Get_GetAGalleryImageVersionWithSnapshotsAsASource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAGalleryImageVersionWithSnapshotsAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json // this example is just showing the usage of "GalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1230,7 +1230,7 @@ public async Task Exists_GetAGalleryImageVersionWithSnapshotsAsASource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAGalleryImageVersionWithSnapshotsAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json // this example is just showing the usage of "GalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1274,7 +1274,7 @@ public async Task GetIfExists_GetAGalleryImageVersionWithSnapshotsAsASource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGalleryImageVersionWithVhdAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json // this example is just showing the usage of "GalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1310,7 +1310,7 @@ public async Task Get_GetAGalleryImageVersionWithVhdAsASource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAGalleryImageVersionWithVhdAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json // this example is just showing the usage of "GalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1342,7 +1342,7 @@ public async Task Exists_GetAGalleryImageVersionWithVhdAsASource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAGalleryImageVersionWithVhdAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json // this example is just showing the usage of "GalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1386,7 +1386,7 @@ public async Task GetIfExists_GetAGalleryImageVersionWithVhdAsASource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get.json // this example is just showing the usage of "GalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1422,7 +1422,7 @@ public async Task Get_GetAGalleryImageVersion() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get.json // this example is just showing the usage of "GalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1454,7 +1454,7 @@ public async Task Exists_GetAGalleryImageVersion() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get.json // this example is just showing the usage of "GalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1498,7 +1498,7 @@ public async Task GetIfExists_GetAGalleryImageVersion() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListGalleryImageVersionsInAGalleryImageDefinition() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json // this example is just showing the usage of "GalleryImageVersions_ListByGalleryImage" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageVersionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageVersionResource.cs index 14dbb53a35be..1519c37e738b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageVersionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageVersionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_GalleryImageVersionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateASimpleGalleryImageVersionManagedImageAsSource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Update.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Update.json // this example is just showing the usage of "GalleryImageVersions_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Update_UpdateASimpleGalleryImageVersionManagedImageAsSource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateASimpleGalleryImageVersionWithoutSourceId() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json // this example is just showing the usage of "GalleryImageVersions_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -130,7 +130,7 @@ public async Task Update_UpdateASimpleGalleryImageVersionWithoutSourceId() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGalleryImageVersionWithReplicationStatus() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json // this example is just showing the usage of "GalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -164,7 +164,7 @@ public async Task Get_GetAGalleryImageVersionWithReplicationStatus() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGalleryImageVersionWithSnapshotsAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json // this example is just showing the usage of "GalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -197,7 +197,7 @@ public async Task Get_GetAGalleryImageVersionWithSnapshotsAsASource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGalleryImageVersionWithVhdAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json // this example is just showing the usage of "GalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -230,7 +230,7 @@ public async Task Get_GetAGalleryImageVersionWithVhdAsASource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get.json // this example is just showing the usage of "GalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -263,7 +263,7 @@ public async Task Get_GetAGalleryImageVersion() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Delete.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Delete.json // this example is just showing the usage of "GalleryImageVersions_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryResource.cs index dee18e525bf0..12d82b7d5f1a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryResource.cs @@ -21,7 +21,7 @@ public partial class Sample_GalleryResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateASimpleGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Update.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Update.json // this example is just showing the usage of "Galleries_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Update_UpdateASimpleGallery() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetACommunityGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/CommunityGallery_Get.json // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Get_GetACommunityGallery() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGalleryWithExpandSharingProfileGroups() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +120,7 @@ public async Task Get_GetAGalleryWithExpandSharingProfileGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGalleryWithSelectPermissions() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -147,12 +147,43 @@ public async Task Get_GetAGalleryWithSelectPermissions() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + // Get a gallery with system-assigned and user-assigned managed identities. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetAGalleryWithSystemAssignedAndUserAssignedManagedIdentities() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithManagedIdentity.json + // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this GalleryResource created on azure + // for more information of creating GalleryResource, please refer to the document of GalleryResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + ResourceIdentifier galleryResourceId = GalleryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName); + GalleryResource gallery = client.GetGalleryResource(galleryResourceId); + + // invoke the operation + GalleryResource result = await gallery.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + GalleryData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + // Get a gallery. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get.json // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -183,7 +214,7 @@ public async Task Get_GetAGallery() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Delete.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Delete.json // this example is just showing the usage of "Galleries_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -210,7 +241,7 @@ public async Task Delete_DeleteAGallery() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetGalleries_ListGalleriesInASubscription() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListBySubscription.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_ListBySubscription.json // this example is just showing the usage of "Galleries_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -242,7 +273,7 @@ public async Task GetGalleries_ListGalleriesInASubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task UpdateSharingProfile_AddSharingIdToTheSharingProfileOfAGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_AddToSharingProfile.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_AddToSharingProfile.json // this example is just showing the usage of "GallerySharingProfile_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -291,7 +322,7 @@ public async Task UpdateSharingProfile_AddSharingIdToTheSharingProfileOfAGallery [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task UpdateSharingProfile_ResetSharingProfileOfAGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ResetSharingProfile.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_ResetSharingProfile.json // this example is just showing the usage of "GallerySharingProfile_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -320,7 +351,7 @@ public async Task UpdateSharingProfile_ResetSharingProfileOfAGallery() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task UpdateSharingProfile_ShareAGalleryToCommunity() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_EnableCommunityGallery.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_EnableCommunityGallery.json // this example is just showing the usage of "GallerySharingProfile_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryCollection.cs index 29afba6d76ba..2923b59aab5b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_SharedGalleryCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListSharedGalleries() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_List.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGallery_List.json // this example is just showing the usage of "SharedGalleries_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_ListSharedGalleries() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetASharedGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGallery_Get.json // this example is just showing the usage of "SharedGalleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Get_GetASharedGallery() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetASharedGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGallery_Get.json // this example is just showing the usage of "SharedGalleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +120,7 @@ public async Task Exists_GetASharedGallery() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetASharedGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGallery_Get.json // this example is just showing the usage of "SharedGalleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageCollection.cs index 5c0d1f9b4da4..945a61dfef43 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SharedGalleryImageCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListSharedGalleryImages() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json // this example is just showing the usage of "SharedGalleryImages_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_ListSharedGalleryImages() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetASharedGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json // this example is just showing the usage of "SharedGalleryImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_GetASharedGalleryImage() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetASharedGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json // this example is just showing the usage of "SharedGalleryImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_GetASharedGalleryImage() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetASharedGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json // this example is just showing the usage of "SharedGalleryImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageResource.cs index 793ea2066dd4..25f2372846f9 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SharedGalleryImageResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetASharedGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json // this example is just showing the usage of "SharedGalleryImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageVersionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageVersionCollection.cs index cd4b613b0fd9..11778fd8f73c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageVersionCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageVersionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SharedGalleryImageVersionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListSharedGalleryImageVersions() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json // this example is just showing the usage of "SharedGalleryImageVersions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_ListSharedGalleryImageVersions() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetASharedGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json // this example is just showing the usage of "SharedGalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetASharedGalleryImageVersion() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetASharedGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json // this example is just showing the usage of "SharedGalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task Exists_GetASharedGalleryImageVersion() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetASharedGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json // this example is just showing the usage of "SharedGalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageVersionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageVersionResource.cs index f8059df96fd2..cf1b90819015 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageVersionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageVersionResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SharedGalleryImageVersionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetASharedGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json // this example is just showing the usage of "SharedGalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryResource.cs index adbbcce72872..059e3857cd40 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SharedGalleryResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetASharedGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGallery_Get.json // this example is just showing the usage of "SharedGalleries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs index 195d2f33d442..4220f4e2103c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs @@ -825,7 +825,7 @@ public static BootDiagnosticsInstanceView BootDiagnosticsInstanceView(Uri consol /// Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset. /// Specifies the Read-Write IOPS for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set. /// Specifies the bandwidth in MB per second for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set. - /// Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview** mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. + /// Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview**. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. /// Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the data disk is deleted when VM is deleted. **Detach.** If this value is used, the data disk is retained after VM is deleted. The default value is set to **Detach**. /// A new instance for mocking. public static VirtualMachineDataDisk VirtualMachineDataDisk(int lun = default, string name = null, Uri vhdUri = null, Uri imageUri = null, CachingType? caching = null, bool? writeAcceleratorEnabled = null, DiskCreateOptionType createOption = default, int? diskSizeGB = null, VirtualMachineManagedDisk managedDisk = null, ResourceIdentifier sourceResourceId = null, bool? toBeDetached = null, long? diskIopsReadWrite = null, long? diskMBpsReadWrite = null, DiskDetachOptionType? detachOption = null, DiskDeleteOptionType? deleteOption = null) @@ -3056,6 +3056,7 @@ public static ComputeResourceSkuRestrictionInfo ComputeResourceSkuRestrictionInf /// The systemData. /// The tags. /// The location. + /// The identity of the gallery, if configured. /// The description of this Shared Image Gallery resource. This property is updatable. /// Describes the gallery unique name. /// The provisioning state, which only appears in the response. @@ -3063,7 +3064,7 @@ public static ComputeResourceSkuRestrictionInfo ComputeResourceSkuRestrictionInf /// Contains information about the soft deletion policy of the gallery. /// Sharing status of current gallery. /// A new instance for mocking. - public static GalleryData GalleryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string description = null, string identifierUniqueName = null, GalleryProvisioningState? provisioningState = null, SharingProfile sharingProfile = null, bool? isSoftDeleteEnabled = null, SharingStatus sharingStatus = null) + public static GalleryData GalleryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string description = null, string identifierUniqueName = null, GalleryProvisioningState? provisioningState = null, SharingProfile sharingProfile = null, bool? isSoftDeleteEnabled = null, SharingStatus sharingStatus = null) { tags ??= new Dictionary(); @@ -3074,6 +3075,7 @@ public static GalleryData GalleryData(ResourceIdentifier id = null, string name systemData, tags, location, + identity, description, identifierUniqueName != null ? new GalleryIdentifier(identifierUniqueName, serializedAdditionalRawData: null) : null, provisioningState, @@ -3143,6 +3145,7 @@ public static RegionalSharingStatus RegionalSharingStatus(string region = null, /// The name. /// The resourceType. /// The systemData. + /// The identity of the gallery, if configured. /// The description of this Shared Image Gallery resource. This property is updatable. /// Describes the gallery unique name. /// The provisioning state, which only appears in the response. @@ -3151,7 +3154,7 @@ public static RegionalSharingStatus RegionalSharingStatus(string region = null, /// Sharing status of current gallery. /// Resource tags. /// A new instance for mocking. - public static GalleryPatch GalleryPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, string identifierUniqueName = null, GalleryProvisioningState? provisioningState = null, SharingProfile sharingProfile = null, bool? isSoftDeleteEnabled = null, SharingStatus sharingStatus = null, IDictionary tags = null) + public static GalleryPatch GalleryPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ManagedServiceIdentity identity = null, string description = null, string identifierUniqueName = null, GalleryProvisioningState? provisioningState = null, SharingProfile sharingProfile = null, bool? isSoftDeleteEnabled = null, SharingStatus sharingStatus = null, IDictionary tags = null) { tags ??= new Dictionary(); @@ -3160,6 +3163,7 @@ public static GalleryPatch GalleryPatch(ResourceIdentifier id = null, string nam name, resourceType, systemData, + identity, description, identifierUniqueName != null ? new GalleryIdentifier(identifierUniqueName, serializedAdditionalRawData: null) : null, provisioningState, @@ -3191,7 +3195,7 @@ public static GalleryPatch GalleryPatch(ResourceIdentifier id = null, string nam /// Describes the gallery image definition purchase plan. This is used by marketplace images. /// The provisioning state, which only appears in the response. /// A list of gallery image features. - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. /// A new instance for mocking. public static GalleryImageData GalleryImageData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string description = null, string eula = null, Uri privacyStatementUri = null, Uri releaseNoteUri = null, SupportedOperatingSystemType? osType = null, OperatingSystemStateType? osState = null, HyperVGeneration? hyperVGeneration = null, DateTimeOffset? endOfLifeOn = null, GalleryImageIdentifier identifier = null, RecommendedMachineConfiguration recommended = null, IEnumerable disallowedDiskTypes = null, ImagePurchasePlan purchasePlan = null, GalleryProvisioningState? provisioningState = null, IEnumerable features = null, ArchitectureType? architecture = null) { @@ -3243,7 +3247,7 @@ public static GalleryImageData GalleryImageData(ResourceIdentifier id = null, st /// Describes the gallery image definition purchase plan. This is used by marketplace images. /// The provisioning state, which only appears in the response. /// A list of gallery image features. - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. /// Resource tags. /// A new instance for mocking. public static GalleryImagePatch GalleryImagePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, string eula = null, Uri privacyStatementUri = null, Uri releaseNoteUri = null, SupportedOperatingSystemType? osType = null, OperatingSystemStateType? osState = null, HyperVGeneration? hyperVGeneration = null, DateTimeOffset? endOfLifeOn = null, GalleryImageIdentifier identifier = null, RecommendedMachineConfiguration recommended = null, IEnumerable disallowedDiskTypes = null, ImagePurchasePlan purchasePlan = null, GalleryProvisioningState? provisioningState = null, IEnumerable features = null, ArchitectureType? architecture = null, IDictionary tags = null) @@ -3686,7 +3690,7 @@ public static PirResourceData PirResourceData(string name = null, AzureLocation? /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. /// A list of gallery image features. /// Describes the gallery image definition purchase plan. This is used by marketplace images. - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. /// Privacy statement uri for the current community gallery image. /// End-user license agreement for the current community gallery image. /// The artifact tags of a shared gallery resource. @@ -3851,7 +3855,7 @@ public static PirCommunityGalleryResourceData PirCommunityGalleryResourceData(st /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. /// A list of gallery image features. /// Describes the gallery image definition purchase plan. This is used by marketplace images. - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. /// Privacy statement URI for the current community gallery image. /// The end-user license agreement for the current community gallery image. /// The disclaimer for a community gallery resource. @@ -4224,6 +4228,45 @@ public static OSVersionPropertiesBase OSVersionPropertiesBase(string version = n return new OSVersionPropertiesBase(version, label, isDefault, isActive, serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The description of this Shared Image Gallery resource. This property is updatable. + /// Describes the gallery unique name. + /// The provisioning state, which only appears in the response. + /// Profile for gallery sharing to subscription or tenant. + /// Contains information about the soft deletion policy of the gallery. + /// Sharing status of current gallery. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static GalleryData GalleryData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string description, string identifierUniqueName, GalleryProvisioningState? provisioningState, SharingProfile sharingProfile, bool? isSoftDeleteEnabled, SharingStatus sharingStatus) + { + return GalleryData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, identity: default, description: description, identifierUniqueName: identifierUniqueName, provisioningState: provisioningState, sharingProfile: sharingProfile, isSoftDeleteEnabled: isSoftDeleteEnabled, sharingStatus: sharingStatus); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The description of this Shared Image Gallery resource. This property is updatable. + /// Describes the gallery unique name. + /// The provisioning state, which only appears in the response. + /// Profile for gallery sharing to subscription or tenant. + /// Contains information about the soft deletion policy of the gallery. + /// Sharing status of current gallery. + /// Resource tags. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static GalleryPatch GalleryPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, string identifierUniqueName, GalleryProvisioningState? provisioningState, SharingProfile sharingProfile, bool? isSoftDeleteEnabled, SharingStatus sharingStatus, IDictionary tags) + { + return GalleryPatch(id: id, name: name, resourceType: resourceType, systemData: systemData, identity: default, description: description, identifierUniqueName: identifierUniqueName, provisioningState: provisioningState, sharingProfile: sharingProfile, isSoftDeleteEnabled: isSoftDeleteEnabled, sharingStatus: sharingStatus, tags: tags); + } + /// Initializes a new instance of . /// The id. /// The name. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryCollection.cs index 8e1074b52612..cb082ffcd421 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryCollection.cs @@ -62,7 +62,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(AzureLoca /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -156,7 +156,7 @@ public virtual Response Get(AzureLocation location, st /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -200,7 +200,7 @@ public virtual async Task> ExistsAsync(AzureLocation location, st /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -244,7 +244,7 @@ public virtual Response Exists(AzureLocation location, string publicGaller /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -291,7 +291,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageCollection.cs index e77a9d9d6719..5aa84254491c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -110,7 +110,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -156,7 +156,7 @@ public virtual Response Get(string galleryImageNa /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -186,7 +186,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -216,7 +216,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -259,7 +259,7 @@ public virtual async Task> ExistsAsync(string galleryImageName, C /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -302,7 +302,7 @@ public virtual Response Exists(string galleryImageName, CancellationToken /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -348,7 +348,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageData.cs index 66e447d24557..c9644f67f6e8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageData.cs @@ -40,7 +40,7 @@ internal CommunityGalleryImageData() /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. /// A list of gallery image features. /// Describes the gallery image definition purchase plan. This is used by marketplace images. - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. /// Privacy statement URI for the current community gallery image. /// The end-user license agreement for the current community gallery image. /// The disclaimer for a community gallery resource. @@ -87,7 +87,7 @@ public IList DisallowedDiskTypes public IReadOnlyList Features { get; } /// Describes the gallery image definition purchase plan. This is used by marketplace images. public ImagePurchasePlan PurchasePlan { get; } - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. public ArchitectureType? Architecture { get; } /// Privacy statement URI for the current community gallery image. public Uri PrivacyStatementUri { get; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageResource.cs index 8b6b5ba3a45b..3ac20a0a33c0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageResource.cs @@ -108,7 +108,7 @@ public virtual CommunityGalleryImageVersionCollection GetCommunityGalleryImageVe /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetCom /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response GetCommunityGaller /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionCollection.cs index eaa8609d5b57..99a6cfc91b1f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -110,7 +110,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -156,7 +156,7 @@ public virtual Response Get(string gallery /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -186,7 +186,7 @@ public virtual AsyncPageable GetAllAsync(C /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -216,7 +216,7 @@ public virtual Pageable GetAll(Cancellatio /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -259,7 +259,7 @@ public virtual async Task> ExistsAsync(string galleryImageVersion /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -302,7 +302,7 @@ public virtual Response Exists(string galleryImageVersionName, Cancellatio /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -348,7 +348,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionResource.cs index 6e0ca518ba16..300aecebd1b8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryResource.cs index 7198bcd27cb3..75109ffee0b5 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryResource.cs @@ -108,7 +108,7 @@ public virtual CommunityGalleryImageCollection GetCommunityGalleryImages() /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetCommunityG /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response GetCommunityGalleryImage( /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/ComputeExtensions.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/ComputeExtensions.cs index a33aaacea59e..9121ff29206f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/ComputeExtensions.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/ComputeExtensions.cs @@ -2084,7 +2084,7 @@ public static GalleryCollection GetGalleries(this ResourceGroupResource resource /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -2124,7 +2124,7 @@ public static async Task> GetGalleryAsync(this Resourc /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -2377,7 +2377,7 @@ public static SharedGalleryCollection GetSharedGalleries(this SubscriptionResour /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -2416,7 +2416,7 @@ public static async Task> GetSharedGalleryAsync( /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -2472,7 +2472,7 @@ public static CommunityGalleryCollection GetCommunityGalleries(this Subscription /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -2511,7 +2511,7 @@ public static async Task> GetCommunityGallery /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -5088,7 +5088,7 @@ public static Pageable GetComputeResourceSkus(this Subscript /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -5124,7 +5124,7 @@ public static AsyncPageable GetGalleriesAsync(this Subscription /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/MockableComputeResourceGroupResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/MockableComputeResourceGroupResource.cs index 1fc8bce46684..f79d11b147cc 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/MockableComputeResourceGroupResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/MockableComputeResourceGroupResource.cs @@ -965,7 +965,7 @@ public virtual GalleryCollection GetGalleries() /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -998,7 +998,7 @@ public virtual async Task> GetGalleryAsync(string gall /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/MockableComputeSubscriptionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/MockableComputeSubscriptionResource.cs index 20cc6ff00ca7..fabc7de77c7d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/MockableComputeSubscriptionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/MockableComputeSubscriptionResource.cs @@ -226,7 +226,7 @@ public virtual SharedGalleryCollection GetSharedGalleries(AzureLocation location /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -258,7 +258,7 @@ public virtual async Task> GetSharedGalleryAsync /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -297,7 +297,7 @@ public virtual CommunityGalleryCollection GetCommunityGalleries() /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -329,7 +329,7 @@ public virtual async Task> GetCommunityGaller /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -2629,7 +2629,7 @@ public virtual Pageable GetComputeResourceSkus(string filter /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -2659,7 +2659,7 @@ public virtual AsyncPageable GetGalleriesAsync(CancellationToke /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationCollection.cs index 6c9ef2734dc2..5d6d9339b026 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string galleryApplicatio /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string galleryApplicationN /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string galleryApplicationName, Cancellation /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationResource.cs index cc7dbe4a4416..89e43d3fc49b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationResource.cs @@ -110,7 +110,7 @@ public virtual GalleryApplicationVersionCollection GetGalleryApplicationVersions /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetGaller /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -174,7 +174,7 @@ public virtual Response GetGalleryApplication /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -338,7 +338,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -384,7 +384,7 @@ public virtual async Task> UpdateAsync( /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -430,7 +430,7 @@ public virtual ArmOperation Update(WaitUntil waitUnt /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -492,7 +492,7 @@ public virtual async Task> AddTagAsync(stri /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -554,7 +554,7 @@ public virtual Response AddTag(string key, string va /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -611,7 +611,7 @@ public virtual async Task> SetTagsAsync(IDi /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -668,7 +668,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -728,7 +728,7 @@ public virtual async Task> RemoveTagAsync(s /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersionCollection.cs index 7ba3fd51adfa..e1b052be1314 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersionCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersionCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> Creat /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(Wa /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string galleryApp /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(Canc /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationTo /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string galleryApplicationV /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string galleryApplicationVersionName, Repli /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersionResource.cs index f76ff5865852..5a0907f1c2ef 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersionResource.cs @@ -104,7 +104,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -145,7 +145,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -186,7 +186,7 @@ public virtual Response Get(ReplicationStatus /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual async Task> Updat /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -362,7 +362,7 @@ public virtual ArmOperation Update(WaitUntil /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -424,7 +424,7 @@ public virtual async Task> AddTagAsy /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -486,7 +486,7 @@ public virtual Response AddTag(string key, st /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -543,7 +543,7 @@ public virtual async Task> SetTagsAs /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -600,7 +600,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -660,7 +660,7 @@ public virtual async Task> RemoveTag /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryCollection.cs index 87855d40f738..0089dc2ab54a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryCollection.cs @@ -66,7 +66,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdateAsync(Wai /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -164,7 +164,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string galleryName /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -258,7 +258,7 @@ public virtual Response Get(string galleryName, SelectPermissio /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken canc /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual Pageable GetAll(CancellationToken cancellationTo /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string galleryName, Select /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -408,7 +408,7 @@ public virtual Response Exists(string galleryName, SelectPermission? selec /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -455,7 +455,7 @@ public virtual async Task> GetIfExistsAsync(st /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryData.Serialization.cs index d17060b769bf..408e0cd6476e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryData.Serialization.cs @@ -28,6 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptio } writer.WriteStartObject(); + if (Optional.IsDefined(Identity)) + { + writer.WritePropertyName("identity"u8); + JsonSerializer.Serialize(writer, Identity); + } if (Optional.IsCollectionDefined(Tags)) { writer.WritePropertyName("tags"u8); @@ -132,6 +137,7 @@ internal static GalleryData DeserializeGalleryData(JsonElement element, ModelRea { return null; } + ManagedServiceIdentity identity = default; IDictionary tags = default; AzureLocation location = default; ResourceIdentifier id = default; @@ -148,6 +154,15 @@ internal static GalleryData DeserializeGalleryData(JsonElement element, ModelRea Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("identity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + identity = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } if (property.NameEquals("tags"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -266,6 +281,7 @@ internal static GalleryData DeserializeGalleryData(JsonElement element, ModelRea systemData, tags ?? new ChangeTrackingDictionary(), location, + identity, description, identifier, provisioningState, diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryData.cs index 643d021269b0..ab759614b171 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryData.cs @@ -64,6 +64,7 @@ public GalleryData(AzureLocation location) : base(location) /// The systemData. /// The tags. /// The location. + /// The identity of the gallery, if configured. /// The description of this Shared Image Gallery resource. This property is updatable. /// Describes the gallery unique name. /// The provisioning state, which only appears in the response. @@ -71,8 +72,9 @@ public GalleryData(AzureLocation location) : base(location) /// Contains information about the soft deletion policy of the gallery. /// Sharing status of current gallery. /// Keeps track of any properties unknown to the library. - internal GalleryData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string description, GalleryIdentifier identifier, GalleryProvisioningState? provisioningState, SharingProfile sharingProfile, SoftDeletePolicy softDeletePolicy, SharingStatus sharingStatus, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal GalleryData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, string description, GalleryIdentifier identifier, GalleryProvisioningState? provisioningState, SharingProfile sharingProfile, SoftDeletePolicy softDeletePolicy, SharingStatus sharingStatus, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { + Identity = identity; Description = description; Identifier = identifier; ProvisioningState = provisioningState; @@ -87,6 +89,8 @@ internal GalleryData() { } + /// The identity of the gallery, if configured. + public ManagedServiceIdentity Identity { get; set; } /// The description of this Shared Image Gallery resource. This property is updatable. public string Description { get; set; } /// Describes the gallery unique name. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageCollection.cs index cb71d6f103c7..bc42a244894c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string galler /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string galleryImageName, Cance /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string galleryImageName, C /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string galleryImageName, CancellationToken /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs index 7131a134d030..87a7daa4e64e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs @@ -79,7 +79,7 @@ public GalleryImageData(AzureLocation location) : base(location) /// Describes the gallery image definition purchase plan. This is used by marketplace images. /// The provisioning state, which only appears in the response. /// A list of gallery image features. - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. /// Keeps track of any properties unknown to the library. internal GalleryImageData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string description, string eula, Uri privacyStatementUri, Uri releaseNoteUri, SupportedOperatingSystemType? osType, OperatingSystemStateType? osState, HyperVGeneration? hyperVGeneration, DateTimeOffset? endOfLifeOn, GalleryImageIdentifier identifier, RecommendedMachineConfiguration recommended, Disallowed disallowed, ImagePurchasePlan purchasePlan, GalleryProvisioningState? provisioningState, IList features, ArchitectureType? architecture, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { @@ -145,7 +145,7 @@ public IList DisallowedDiskTypes public GalleryProvisioningState? ProvisioningState { get; } /// A list of gallery image features. public IList Features { get; } - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. public ArchitectureType? Architecture { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageResource.cs index 4e7c33489d47..220abcc87344 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageResource.cs @@ -110,7 +110,7 @@ public virtual GalleryImageVersionCollection GetGalleryImageVersions() /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetGalleryImage /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -174,7 +174,7 @@ public virtual Response GetGalleryImageVersion(stri /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(CancellationToken cancellation /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -338,7 +338,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -384,7 +384,7 @@ public virtual async Task> UpdateAsync(WaitUn /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -430,7 +430,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Ga /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -493,7 +493,7 @@ public virtual async Task> AddTagAsync(string key /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -556,7 +556,7 @@ public virtual Response AddTag(string key, string value, C /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -614,7 +614,7 @@ public virtual async Task> SetTagsAsync(IDictiona /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -672,7 +672,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -733,7 +733,7 @@ public virtual async Task> RemoveTagAsync(string /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionCollection.cs index b9965e7ea35e..4f56ebfd8cf3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string galleryImageVers /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string galleryImageVersion /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string galleryImageVersionName, Replication /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionResource.cs index 5edeb4f7953e..ab04834e7e2e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionResource.cs @@ -104,7 +104,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -145,7 +145,7 @@ public virtual async Task> GetAsync(Replic /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -186,7 +186,7 @@ public virtual Response Get(ReplicationStatusType? /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -362,7 +362,7 @@ public virtual ArmOperation Update(WaitUntil waitUn /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -424,7 +424,7 @@ public virtual async Task> AddTagAsync(str /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -486,7 +486,7 @@ public virtual Response AddTag(string key, string v /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -543,7 +543,7 @@ public virtual async Task> SetTagsAsync(ID /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -600,7 +600,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -660,7 +660,7 @@ public virtual async Task> RemoveTagAsync( /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryResource.cs index 30c82380edf3..0aef582f4b85 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryResource.cs @@ -114,7 +114,7 @@ public virtual GalleryImageCollection GetGalleryImages() /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -145,7 +145,7 @@ public virtual async Task> GetGalleryImageAsync(s /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual GalleryApplicationCollection GetGalleryApplications() /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual async Task> GetGalleryApplic /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -245,7 +245,7 @@ public virtual Response GetGalleryApplication(string /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual async Task> GetAsync(SelectPermission? /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -329,7 +329,7 @@ public virtual Response Get(SelectPermission? select = null, Ga /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -371,7 +371,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -413,7 +413,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -459,7 +459,7 @@ public virtual async Task> UpdateAsync(WaitUntil w /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -505,7 +505,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Gallery /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// @@ -547,7 +547,7 @@ public virtual async Task> UpdateSharingProfileAsync /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// @@ -589,7 +589,7 @@ public virtual ArmOperation UpdateSharingProfile(WaitUntil waitUn /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -651,7 +651,7 @@ public virtual async Task> AddTagAsync(string key, str /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -713,7 +713,7 @@ public virtual Response AddTag(string key, string value, Cancel /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -770,7 +770,7 @@ public virtual async Task> SetTagsAsync(IDictionary /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -827,7 +827,7 @@ public virtual Response SetTags(IDictionary tag /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -887,7 +887,7 @@ public virtual async Task> RemoveTagAsync(string key, /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskDetachOptionType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskDetachOptionType.cs index c4ee7b0f6658..a1ed0712ac82 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskDetachOptionType.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskDetachOptionType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Compute.Models { - /// Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values are: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview** mode. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. + /// Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values are: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview**. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. public readonly partial struct DiskDetachOptionType : IEquatable { private readonly string _value; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs index e86ce6f003e2..607ab4855c6c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs @@ -73,7 +73,7 @@ public GalleryImagePatch() /// Describes the gallery image definition purchase plan. This is used by marketplace images. /// The provisioning state, which only appears in the response. /// A list of gallery image features. - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. /// Resource tags. /// Keeps track of any properties unknown to the library. internal GalleryImagePatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, string eula, Uri privacyStatementUri, Uri releaseNoteUri, SupportedOperatingSystemType? osType, OperatingSystemStateType? osState, HyperVGeneration? hyperVGeneration, DateTimeOffset? endOfLifeOn, GalleryImageIdentifier identifier, RecommendedMachineConfiguration recommended, Disallowed disallowed, ImagePurchasePlan purchasePlan, GalleryProvisioningState? provisioningState, IList features, ArchitectureType? architecture, IDictionary tags, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) @@ -136,7 +136,7 @@ public IList DisallowedDiskTypes public GalleryProvisioningState? ProvisioningState { get; } /// A list of gallery image features. public IList Features { get; } - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. public ArchitectureType? Architecture { get; set; } /// Resource tags. public IDictionary Tags { get; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryPatch.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryPatch.Serialization.cs index 765b650978af..0d83ea1e8422 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryPatch.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryPatch.Serialization.cs @@ -27,6 +27,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpti } writer.WriteStartObject(); + if (Optional.IsDefined(Identity)) + { + writer.WritePropertyName("identity"u8); + JsonSerializer.Serialize(writer, Identity); + } if (Optional.IsCollectionDefined(Tags)) { writer.WritePropertyName("tags"u8); @@ -129,6 +134,7 @@ internal static GalleryPatch DeserializeGalleryPatch(JsonElement element, ModelR { return null; } + ManagedServiceIdentity identity = default; IDictionary tags = default; ResourceIdentifier id = default; string name = default; @@ -144,6 +150,15 @@ internal static GalleryPatch DeserializeGalleryPatch(JsonElement element, ModelR Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("identity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + identity = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } if (property.NameEquals("tags"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -255,6 +270,7 @@ internal static GalleryPatch DeserializeGalleryPatch(JsonElement element, ModelR name, type, systemData, + identity, description, identifier, provisioningState, diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryPatch.cs index f120ba0a84eb..1771e244f69a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryPatch.cs @@ -58,6 +58,7 @@ public GalleryPatch() /// The name. /// The resourceType. /// The systemData. + /// The identity of the gallery, if configured. /// The description of this Shared Image Gallery resource. This property is updatable. /// Describes the gallery unique name. /// The provisioning state, which only appears in the response. @@ -66,8 +67,9 @@ public GalleryPatch() /// Sharing status of current gallery. /// Resource tags. /// Keeps track of any properties unknown to the library. - internal GalleryPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, GalleryIdentifier identifier, GalleryProvisioningState? provisioningState, SharingProfile sharingProfile, SoftDeletePolicy softDeletePolicy, SharingStatus sharingStatus, IDictionary tags, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal GalleryPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ManagedServiceIdentity identity, string description, GalleryIdentifier identifier, GalleryProvisioningState? provisioningState, SharingProfile sharingProfile, SoftDeletePolicy softDeletePolicy, SharingStatus sharingStatus, IDictionary tags, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { + Identity = identity; Description = description; Identifier = identifier; ProvisioningState = provisioningState; @@ -78,6 +80,8 @@ internal GalleryPatch(ResourceIdentifier id, string name, ResourceType resourceT _serializedAdditionalRawData = serializedAdditionalRawData; } + /// The identity of the gallery, if configured. + public ManagedServiceIdentity Identity { get; set; } /// The description of this Shared Image Gallery resource. This property is updatable. public string Description { get; set; } /// Describes the gallery unique name. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedOperatingSystemType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedOperatingSystemType.cs index d61b646253ec..ff8ffe0a8d7f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedOperatingSystemType.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedOperatingSystemType.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.Compute.Models { - /// This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.**. + /// The Operating System type. public enum SupportedOperatingSystemType { /// Windows. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineDataDisk.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineDataDisk.cs index 9be76cb9624b..9261ae73a1a7 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineDataDisk.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineDataDisk.cs @@ -70,7 +70,7 @@ public VirtualMachineDataDisk(int lun, DiskCreateOptionType createOption) /// Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset. /// Specifies the Read-Write IOPS for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set. /// Specifies the bandwidth in MB per second for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set. - /// Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview** mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. + /// Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview**. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. /// Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the data disk is deleted when VM is deleted. **Detach.** If this value is used, the data disk is retained after VM is deleted. The default value is set to **Detach**. /// Keeps track of any properties unknown to the library. internal VirtualMachineDataDisk(int lun, string name, VirtualHardDisk vhd, VirtualHardDisk image, CachingType? caching, bool? writeAcceleratorEnabled, DiskCreateOptionType createOption, int? diskSizeGB, VirtualMachineManagedDisk managedDisk, WritableSubResource sourceResource, bool? toBeDetached, long? diskIopsReadWrite, long? diskMBpsReadWrite, DiskDetachOptionType? detachOption, DiskDeleteOptionType? deleteOption, IDictionary serializedAdditionalRawData) @@ -160,7 +160,7 @@ public ResourceIdentifier SourceResourceId public long? DiskIopsReadWrite { get; } /// Specifies the bandwidth in MB per second for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set. public long? DiskMBpsReadWrite { get; } - /// Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview** mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. + /// Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview**. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. public DiskDetachOptionType? DetachOption { get; set; } /// Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the data disk is deleted when VM is deleted. **Detach.** If this value is used, the data disk is retained after VM is deleted. The default value is set to **Detach**. public DiskDeleteOptionType? DeleteOption { get; set; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs index 775812e39cb8..a5eb8c6dc437 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs @@ -31,7 +31,7 @@ public CommunityGalleriesRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs index c31085d33dfb..ba8a6d28bd80 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs @@ -32,7 +32,7 @@ public CommunityGalleryImageVersionsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs index 8e1dedceafed..20c784944c87 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs @@ -32,7 +32,7 @@ public CommunityGalleryImagesRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs index 532b035c9d0f..f199eacf143a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs @@ -32,7 +32,7 @@ public GalleriesRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs index d2905c3efe9a..51861c713bfa 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs @@ -32,7 +32,7 @@ public GalleryApplicationVersionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs index 1a82adbfbadd..ee2337626726 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs @@ -32,7 +32,7 @@ public GalleryApplicationsRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs index 509a1f3bf8de..1de91193079f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs @@ -32,7 +32,7 @@ public GalleryImageVersionsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs index 4086f6f33df7..0ad941a56b08 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs @@ -32,7 +32,7 @@ public GalleryImagesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs index 6a4966842bf2..df45713e8223 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs @@ -31,7 +31,7 @@ public GallerySharingProfileRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs index 71bf16f8b885..181d948437ae 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs @@ -32,7 +32,7 @@ public SharedGalleriesRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs index 9107ca44b316..c2cc3722cd09 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs @@ -32,7 +32,7 @@ public SharedGalleryImageVersionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs index e374e4286d23..44952eeca905 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs @@ -32,7 +32,7 @@ public SharedGalleryImagesRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryCollection.cs index e1d2e1858302..8076a0fc8286 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryCollection.cs @@ -69,7 +69,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> GetAsync(string galle /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -161,7 +161,7 @@ public virtual Response Get(string galleryUniqueName, Can /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -192,7 +192,7 @@ public virtual AsyncPageable GetAllAsync(SharedToValue? s /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual Pageable GetAll(SharedToValue? sharedTo = /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual async Task> ExistsAsync(string galleryUniqueName, /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual Response Exists(string galleryUniqueName, CancellationToken /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageCollection.cs index 3a8098109fdc..50825600431d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -111,7 +111,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -157,7 +157,7 @@ public virtual Response Get(string galleryImageName, /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -188,7 +188,7 @@ public virtual AsyncPageable GetAllAsync(SharedToVal /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -219,7 +219,7 @@ public virtual Pageable GetAll(SharedToValue? shared /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -262,7 +262,7 @@ public virtual async Task> ExistsAsync(string galleryImageName, C /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -305,7 +305,7 @@ public virtual Response Exists(string galleryImageName, CancellationToken /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs index 14de7ac2e572..9882dd1f716b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs @@ -39,7 +39,7 @@ internal SharedGalleryImageData() /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. /// A list of gallery image features. /// Describes the gallery image definition purchase plan. This is used by marketplace images. - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. /// Privacy statement uri for the current community gallery image. /// End-user license agreement for the current community gallery image. /// The artifact tags of a shared gallery resource. @@ -84,7 +84,7 @@ public IList DisallowedDiskTypes public IReadOnlyList Features { get; } /// Describes the gallery image definition purchase plan. This is used by marketplace images. public ImagePurchasePlan PurchasePlan { get; } - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. public ArchitectureType? Architecture { get; } /// Privacy statement uri for the current community gallery image. public Uri PrivacyStatementUri { get; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageResource.cs index 002dc1472039..27f3a79062e4 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageResource.cs @@ -108,7 +108,7 @@ public virtual SharedGalleryImageVersionCollection GetSharedGalleryImageVersions /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetShared /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response GetSharedGalleryImage /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionCollection.cs index 37057c725bc9..d9ba86eb4f1a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -111,7 +111,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -157,7 +157,7 @@ public virtual Response Get(string galleryIma /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -188,7 +188,7 @@ public virtual AsyncPageable GetAllAsync(Shar /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -219,7 +219,7 @@ public virtual Pageable GetAll(SharedToValue? /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -262,7 +262,7 @@ public virtual async Task> ExistsAsync(string galleryImageVersion /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -305,7 +305,7 @@ public virtual Response Exists(string galleryImageVersionName, Cancellatio /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionResource.cs index c2a02a259b6d..3f6f8af338d3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryResource.cs index 5c675d3499cd..1006ee85f337 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryResource.cs @@ -108,7 +108,7 @@ public virtual SharedGalleryImageCollection GetSharedGalleryImages() /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetSharedGallery /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response GetSharedGalleryImage(string /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md index f4a13219b07e..f9850a0dc14b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md +++ b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md @@ -10,7 +10,7 @@ Run `dotnet build /t:GenerateCode` to generate code. azure-arm: true library-name: Compute namespace: Azure.ResourceManager.Compute -require: https://github.com/Azure/azure-rest-api-specs/blob/4f68529971f845e8757c2b2a746d78ceb91854cd/specification/compute/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/compute/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: