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 509ec09f9b02..64f3a68bf974 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 @@ -388,6 +388,9 @@ protected CommunityGalleryCollection() { } public partial class CommunityGalleryData : Azure.ResourceManager.Compute.Models.PirCommunityGalleryResourceData { internal CommunityGalleryData() { } + public System.Collections.Generic.IReadOnlyDictionary ArtifactTags { get { throw null; } } + public Azure.ResourceManager.Compute.Models.CommunityGalleryMetadata CommunityMetadata { get { throw null; } } + public string Disclaimer { get { throw null; } } public Azure.Core.ResourceIdentifier Id { get { throw null; } } } public partial class CommunityGalleryImageCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable @@ -407,7 +410,9 @@ public partial class CommunityGalleryImageData : Azure.ResourceManager.Compute.M { internal CommunityGalleryImageData() { } public Azure.ResourceManager.Compute.Models.ArchitectureType? Architecture { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary ArtifactTags { get { throw null; } } public System.Collections.Generic.IList DisallowedDiskTypes { get { throw null; } } + public string Disclaimer { get { throw null; } } public System.DateTimeOffset? EndOfLifeOn { get { throw null; } } public string Eula { get { throw null; } } public System.Collections.Generic.IReadOnlyList Features { get { throw null; } } @@ -451,6 +456,8 @@ protected CommunityGalleryImageVersionCollection() { } public partial class CommunityGalleryImageVersionData : Azure.ResourceManager.Compute.Models.PirCommunityGalleryResourceData { internal CommunityGalleryImageVersionData() { } + public System.Collections.Generic.IReadOnlyDictionary ArtifactTags { get { throw null; } } + public string Disclaimer { get { throw null; } } public System.DateTimeOffset? EndOfLifeOn { get { throw null; } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public bool? ExcludeFromLatest { get { throw null; } } @@ -1190,6 +1197,7 @@ public GalleryImageVersionData(Azure.Core.AzureLocation location) : base (defaul public Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile PublishingProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ReplicationStatus ReplicationStatus { get { throw null; } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile SafetyProfile { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.GalleryImageVersionUefiSettings SecurityUefiSettings { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile StorageProfile { get { throw null; } set { } } } public partial class GalleryImageVersionResource : Azure.ResourceManager.ArmResource @@ -1466,6 +1474,7 @@ protected SharedGalleryCollection() { } public partial class SharedGalleryData : Azure.ResourceManager.Compute.Models.PirSharedGalleryResourceData { internal SharedGalleryData() { } + public System.Collections.Generic.IReadOnlyDictionary ArtifactTags { get { throw null; } } public Azure.Core.ResourceIdentifier Id { get { throw null; } } } public partial class SharedGalleryImageCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable @@ -1485,6 +1494,7 @@ public partial class SharedGalleryImageData : Azure.ResourceManager.Compute.Mode { internal SharedGalleryImageData() { } public Azure.ResourceManager.Compute.Models.ArchitectureType? Architecture { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary ArtifactTags { get { throw null; } } public System.Collections.Generic.IList DisallowedDiskTypes { get { throw null; } } public System.DateTimeOffset? EndOfLifeOn { get { throw null; } } public string Eula { get { throw null; } } @@ -1527,6 +1537,7 @@ protected SharedGalleryImageVersionCollection() { } public partial class SharedGalleryImageVersionData : Azure.ResourceManager.Compute.Models.PirSharedGalleryResourceData { internal SharedGalleryImageVersionData() { } + public System.Collections.Generic.IReadOnlyDictionary ArtifactTags { get { throw null; } } public System.DateTimeOffset? EndOfLifeOn { get { throw null; } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public bool? ExcludeFromLatest { get { throw null; } } @@ -2419,11 +2430,12 @@ public static partial class ArmComputeModelFactory public static Azure.ResourceManager.Compute.CloudServiceOSVersionData CloudServiceOSVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string family = null, string familyLabel = null, string version = null, string label = null, bool? isDefault = default(bool?), bool? isActive = default(bool?)) { throw null; } public static Azure.ResourceManager.Compute.CloudServiceRoleData CloudServiceRoleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.ResourceManager.Compute.Models.CloudServiceRoleSku sku = null, string uniqueId = null) { throw null; } public static Azure.ResourceManager.Compute.CloudServiceRoleInstanceData CloudServiceRoleInstanceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IReadOnlyDictionary tags = null, Azure.ResourceManager.Compute.Models.InstanceSku sku = null, System.Collections.Generic.IEnumerable networkInterfaces = null, Azure.ResourceManager.Compute.Models.RoleInstanceView instanceView = null) { throw null; } - public static Azure.ResourceManager.Compute.CommunityGalleryData CommunityGalleryData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), string uniqueId = null) { throw null; } - public static Azure.ResourceManager.Compute.CommunityGalleryImageData CommunityGalleryImageData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), string uniqueId = 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?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.CommunityGalleryImageIdentifier imageIdentifier = null, Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration recommended = null, System.Collections.Generic.IEnumerable disallowedDiskTypes = null, Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?), System.Collections.Generic.IEnumerable features = null, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan = null, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture = default(Azure.ResourceManager.Compute.Models.ArchitectureType?), System.Uri privacyStatementUri = null, string eula = null) { throw null; } + public static Azure.ResourceManager.Compute.CommunityGalleryData CommunityGalleryData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), string uniqueId = null, string disclaimer = null, System.Collections.Generic.IReadOnlyDictionary artifactTags = null, Azure.ResourceManager.Compute.Models.CommunityGalleryMetadata communityMetadata = null) { throw null; } + public static Azure.ResourceManager.Compute.CommunityGalleryImageData CommunityGalleryImageData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), string uniqueId = 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?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.CommunityGalleryImageIdentifier imageIdentifier = null, Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration recommended = null, System.Collections.Generic.IEnumerable disallowedDiskTypes = null, Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?), System.Collections.Generic.IEnumerable features = null, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan = null, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture = default(Azure.ResourceManager.Compute.Models.ArchitectureType?), System.Uri privacyStatementUri = null, string eula = null, string disclaimer = null, System.Collections.Generic.IReadOnlyDictionary artifactTags = null) { throw null; } public static Azure.ResourceManager.Compute.Models.CommunityGalleryImageIdentifier CommunityGalleryImageIdentifier(string publisher = null, string offer = null, string sku = null) { throw null; } - public static Azure.ResourceManager.Compute.CommunityGalleryImageVersionData CommunityGalleryImageVersionData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), string uniqueId = null, System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), bool? isExcludedFromLatest = default(bool?), Azure.ResourceManager.Compute.Models.SharedGalleryImageVersionStorageProfile storageProfile = null) { throw null; } + public static Azure.ResourceManager.Compute.CommunityGalleryImageVersionData CommunityGalleryImageVersionData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), string uniqueId = null, System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), bool? isExcludedFromLatest = default(bool?), Azure.ResourceManager.Compute.Models.SharedGalleryImageVersionStorageProfile storageProfile = null, string disclaimer = null, System.Collections.Generic.IReadOnlyDictionary artifactTags = null) { throw null; } public static Azure.ResourceManager.Compute.Models.CommunityGalleryInfo CommunityGalleryInfo(System.Uri publisherUri = null, string publisherContact = null, string eula = null, string publicNamePrefix = null, bool? communityGalleryEnabled = default(bool?), System.Collections.Generic.IEnumerable publicNames = null) { throw null; } + public static Azure.ResourceManager.Compute.Models.CommunityGalleryMetadata CommunityGalleryMetadata(System.Uri publisherUri = null, string publisherContact = null, string eula = null, System.Collections.Generic.IEnumerable publicNames = null, System.Uri privacyStatementUri = null) { throw null; } public static Azure.ResourceManager.Compute.Models.ComputeApiError ComputeApiError(System.Collections.Generic.IEnumerable details = null, Azure.ResourceManager.Compute.Models.InnerError innererror = null, string code = null, string target = null, string message = null) { throw null; } public static Azure.ResourceManager.Compute.Models.ComputeApiErrorBase ComputeApiErrorBase(string code = null, string target = null, string message = null) { throw null; } public static Azure.ResourceManager.Compute.ComputePrivateEndpointConnectionData ComputePrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.Compute.Models.ComputePrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.Compute.Models.ComputePrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.ComputePrivateEndpointConnectionProvisioningState?)) { throw null; } @@ -2462,7 +2474,7 @@ public static partial class ArmComputeModelFactory 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; } - public static Azure.ResourceManager.Compute.GalleryImageVersionData GalleryImageVersionData(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.Compute.Models.GalleryImageVersionPublishingProfile publishingProfile = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile storageProfile = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile safetyProfile = null, Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus = null) { throw null; } + public static Azure.ResourceManager.Compute.GalleryImageVersionData GalleryImageVersionData(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.Compute.Models.GalleryImageVersionPublishingProfile publishingProfile = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile storageProfile = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile safetyProfile = null, Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionUefiSettings securityUefiSettings = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryImageVersionPolicyViolation GalleryImageVersionPolicyViolation(Azure.ResourceManager.Compute.Models.GalleryImageVersionPolicyViolationCategory? category = default(Azure.ResourceManager.Compute.Models.GalleryImageVersionPolicyViolationCategory?), string details = null) { throw null; } 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; } @@ -2502,11 +2514,11 @@ public static partial class ArmComputeModelFactory public static Azure.ResourceManager.Compute.Models.RunCommandDocument RunCommandDocument(string schema = null, string id = null, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType osType = Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType.Windows, string label = null, string description = null, System.Collections.Generic.IEnumerable script = null, System.Collections.Generic.IEnumerable parameters = null) { throw null; } public static Azure.ResourceManager.Compute.Models.RunCommandDocumentBase RunCommandDocumentBase(string schema = null, string id = null, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType osType = Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType.Windows, string label = null, string description = null) { throw null; } public static Azure.ResourceManager.Compute.Models.RunCommandParameterDefinition RunCommandParameterDefinition(string name = null, string runCommandParameterDefinitionType = null, string defaultValue = null, bool? required = default(bool?)) { throw null; } - public static Azure.ResourceManager.Compute.SharedGalleryData SharedGalleryData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string uniqueId = null) { throw null; } + public static Azure.ResourceManager.Compute.SharedGalleryData SharedGalleryData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string uniqueId = null, System.Collections.Generic.IReadOnlyDictionary artifactTags = null) { throw null; } public static Azure.ResourceManager.Compute.Models.SharedGalleryDataDiskImage SharedGalleryDataDiskImage(int? diskSizeGB = default(int?), Azure.ResourceManager.Compute.Models.SharedGalleryHostCaching? hostCaching = default(Azure.ResourceManager.Compute.Models.SharedGalleryHostCaching?), int lun = 0) { throw null; } public static Azure.ResourceManager.Compute.Models.SharedGalleryDiskImage SharedGalleryDiskImage(int? diskSizeGB = default(int?), Azure.ResourceManager.Compute.Models.SharedGalleryHostCaching? hostCaching = default(Azure.ResourceManager.Compute.Models.SharedGalleryHostCaching?)) { throw null; } - public static Azure.ResourceManager.Compute.SharedGalleryImageData SharedGalleryImageData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string uniqueId = 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?), 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.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?), System.Collections.Generic.IEnumerable features = null, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan = null, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture = default(Azure.ResourceManager.Compute.Models.ArchitectureType?), System.Uri privacyStatementUri = null, string eula = null) { throw null; } - public static Azure.ResourceManager.Compute.SharedGalleryImageVersionData SharedGalleryImageVersionData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string uniqueId = null, System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), bool? isExcludedFromLatest = default(bool?), Azure.ResourceManager.Compute.Models.SharedGalleryImageVersionStorageProfile storageProfile = null) { throw null; } + public static Azure.ResourceManager.Compute.SharedGalleryImageData SharedGalleryImageData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string uniqueId = 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?), 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.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?), System.Collections.Generic.IEnumerable features = null, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan = null, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture = default(Azure.ResourceManager.Compute.Models.ArchitectureType?), System.Uri privacyStatementUri = null, string eula = null, System.Collections.Generic.IReadOnlyDictionary artifactTags = null) { throw null; } + public static Azure.ResourceManager.Compute.SharedGalleryImageVersionData SharedGalleryImageVersionData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string uniqueId = null, System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), bool? isExcludedFromLatest = default(bool?), Azure.ResourceManager.Compute.Models.SharedGalleryImageVersionStorageProfile storageProfile = null, System.Collections.Generic.IReadOnlyDictionary artifactTags = null) { throw null; } public static Azure.ResourceManager.Compute.Models.SharedGalleryImageVersionStorageProfile SharedGalleryImageVersionStorageProfile(Azure.ResourceManager.Compute.Models.SharedGalleryOSDiskImage osDiskImage = null, System.Collections.Generic.IEnumerable dataDiskImages = null) { throw null; } public static Azure.ResourceManager.Compute.Models.SharedGalleryOSDiskImage SharedGalleryOSDiskImage(int? diskSizeGB = default(int?), Azure.ResourceManager.Compute.Models.SharedGalleryHostCaching? hostCaching = default(Azure.ResourceManager.Compute.Models.SharedGalleryHostCaching?)) { throw null; } public static Azure.ResourceManager.Compute.Models.ShareInfoElement ShareInfoElement(System.Uri vmUri = null) { throw null; } @@ -2822,6 +2834,15 @@ public CommunityGalleryInfo() { } public string PublisherContact { get { throw null; } set { } } public System.Uri PublisherUri { get { throw null; } set { } } } + public partial class CommunityGalleryMetadata + { + internal CommunityGalleryMetadata() { } + public string Eula { get { throw null; } } + public System.Uri PrivacyStatementUri { get { throw null; } } + public System.Collections.Generic.IReadOnlyList PublicNames { get { throw null; } } + public string PublisherContact { get { throw null; } } + public System.Uri PublisherUri { get { throw null; } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ComponentName : System.IEquatable { @@ -3196,6 +3217,7 @@ public ComputeWriteableSubResourceData() { } public static Azure.ResourceManager.Compute.Models.ConfidentialVmEncryptionType EncryptedVmGuestStateOnlyWithPmk { get { throw null; } } public static Azure.ResourceManager.Compute.Models.ConfidentialVmEncryptionType EncryptedWithCmk { get { throw null; } } public static Azure.ResourceManager.Compute.Models.ConfidentialVmEncryptionType EncryptedWithPmk { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.ConfidentialVmEncryptionType NonPersistedTPM { get { throw null; } } public bool Equals(Azure.ResourceManager.Compute.Models.ConfidentialVmEncryptionType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } @@ -3973,6 +3995,7 @@ public GalleryImageVersionPatch() { } public Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile PublishingProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ReplicationStatus ReplicationStatus { get { throw null; } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile SafetyProfile { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.GalleryImageVersionUefiSettings SecurityUefiSettings { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile StorageProfile { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } } @@ -4021,6 +4044,12 @@ public GalleryImageVersionStorageProfile() { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.ResourceManager.Compute.Models.GalleryArtifactVersionSource Source { get { throw null; } set { } } } + public partial class GalleryImageVersionUefiSettings + { + public GalleryImageVersionUefiSettings() { } + public Azure.ResourceManager.Compute.Models.UefiKeySignatures AdditionalSignatures { get { throw null; } set { } } + public System.Collections.Generic.IList SignatureTemplateNames { get { throw null; } } + } public partial class GalleryOSDiskImage : Azure.ResourceManager.Compute.Models.GalleryDiskImage { public GalleryOSDiskImage() { } @@ -4956,6 +4985,7 @@ internal ReplicationStatus() { } private readonly int _dummyPrimitive; public ReplicationStatusType(string value) { throw null; } public static Azure.ResourceManager.Compute.Models.ReplicationStatusType ReplicationStatus { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.ReplicationStatusType UefiSettings { get { throw null; } } public bool Equals(Azure.ResourceManager.Compute.Models.ReplicationStatusType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } @@ -5602,12 +5632,63 @@ public partial class ThrottledRequestsContent : Azure.ResourceManager.Compute.Mo { public ThrottledRequestsContent(System.Uri blobContainerSasUri, System.DateTimeOffset fromTime, System.DateTimeOffset toTime) : base (default(System.Uri), default(System.DateTimeOffset), default(System.DateTimeOffset)) { } } + public partial class UefiKey + { + public UefiKey() { } + public Azure.ResourceManager.Compute.Models.UefiKeyType? KeyType { get { throw null; } set { } } + public System.Collections.Generic.IList Value { get { throw null; } } + } + public partial class UefiKeySignatures + { + public UefiKeySignatures() { } + public System.Collections.Generic.IList Db { get { throw null; } } + public System.Collections.Generic.IList Dbx { get { throw null; } } + public System.Collections.Generic.IList Kek { get { throw null; } } + public Azure.ResourceManager.Compute.Models.UefiKey Pk { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct UefiKeyType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public UefiKeyType(string value) { throw null; } + public static Azure.ResourceManager.Compute.Models.UefiKeyType Sha256 { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.UefiKeyType X509 { get { throw null; } } + public bool Equals(Azure.ResourceManager.Compute.Models.UefiKeyType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Compute.Models.UefiKeyType left, Azure.ResourceManager.Compute.Models.UefiKeyType right) { throw null; } + public static implicit operator Azure.ResourceManager.Compute.Models.UefiKeyType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Compute.Models.UefiKeyType left, Azure.ResourceManager.Compute.Models.UefiKeyType right) { throw null; } + public override string ToString() { throw null; } + } public partial class UefiSettings { public UefiSettings() { } public bool? IsSecureBootEnabled { get { throw null; } set { } } public bool? IsVirtualTpmEnabled { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct UefiSignatureTemplateName : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public UefiSignatureTemplateName(string value) { throw null; } + public static Azure.ResourceManager.Compute.Models.UefiSignatureTemplateName MicrosoftUefiCertificateAuthorityTemplate { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.UefiSignatureTemplateName MicrosoftWindowsTemplate { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.UefiSignatureTemplateName NoSignatureTemplate { get { throw null; } } + public bool Equals(Azure.ResourceManager.Compute.Models.UefiSignatureTemplateName other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Compute.Models.UefiSignatureTemplateName left, Azure.ResourceManager.Compute.Models.UefiSignatureTemplateName right) { throw null; } + public static implicit operator Azure.ResourceManager.Compute.Models.UefiSignatureTemplateName (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Compute.Models.UefiSignatureTemplateName left, Azure.ResourceManager.Compute.Models.UefiSignatureTemplateName right) { throw null; } + public override string ToString() { throw null; } + } public partial class UpdateDomainIdentifier { public UpdateDomainIdentifier() { } 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 bd167ac1652d..301835f7186a 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 @@ -22,7 +22,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/2022-03-03/examples/communityGalleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -56,7 +56,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/2022-03-03/examples/communityGalleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 fe103aeedef8..a1aefa4dcbf0 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 @@ -21,7 +21,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/2022-03-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -56,7 +56,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/2022-03-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -87,7 +87,7 @@ public async Task Exists_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/2022-03-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 5fca2377ba4b..37ad7fa64398 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 @@ -21,7 +21,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/2022-03-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 fa341e9b6552..23388a694f3f 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 @@ -21,7 +21,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/2022-03-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -57,7 +57,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/2022-03-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -89,7 +89,7 @@ public async Task Exists_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/2022-03-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 b248c8e8b2bd..7ec96973069a 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 @@ -21,7 +21,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/2022-03-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 f3000cbc66f5..2cfcd7aae7e6 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 @@ -21,7 +21,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/2022-03-03/examples/communityGalleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 185eff4437cb..b108cac503b1 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 @@ -23,7 +23,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/2022-03-03/examples/galleryExamples/GalleryApplication_Create.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -84,7 +84,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/2022-03-03/examples/galleryExamples/GalleryApplication_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -119,7 +119,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/2022-03-03/examples/galleryExamples/GalleryApplication_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -150,7 +150,7 @@ public async Task Exists_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/2022-03-03/examples/galleryExamples/GalleryApplication_ListByGallery.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 0f240a6dfa87..8e6dd5ad226b 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 @@ -23,7 +23,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/2022-03-03/examples/galleryExamples/GalleryApplication_Update.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -81,7 +81,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/2022-03-03/examples/galleryExamples/GalleryApplication_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -113,7 +113,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/2022-03-03/examples/galleryExamples/GalleryApplication_Delete.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 a600b5740e78..5944246cf557 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 @@ -23,7 +23,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/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Create.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -97,7 +97,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/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -134,7 +134,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/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -167,7 +167,7 @@ public async Task Exists_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/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -203,7 +203,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/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -235,7 +235,7 @@ public async Task Exists_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/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 06f3a45cc7bd..16c0ae3a5d0f 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 @@ -23,7 +23,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/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Update.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -77,7 +77,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/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -111,7 +111,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/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -144,7 +144,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/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 ac8a9661bed3..70dd22f6d9e5 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 @@ -24,7 +24,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/2022-03-03/examples/galleryExamples/CommunityGallery_Create.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -74,7 +74,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/2022-03-03/examples/galleryExamples/Gallery_Create_WithSharingProfile.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -117,7 +117,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/2022-03-03/examples/galleryExamples/Gallery_Create_SoftDeletionEnabled.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -157,7 +157,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryWithSoftDeletionEna [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/2022-03-03/examples/galleryExamples/Gallery_Create.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -196,7 +196,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/2022-03-03/examples/galleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -230,7 +230,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/2022-03-03/examples/galleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -260,7 +260,7 @@ public async Task Exists_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/2022-03-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -295,7 +295,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/2022-03-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -326,7 +326,7 @@ public async Task Exists_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/2022-03-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -361,7 +361,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/2022-03-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -392,7 +392,7 @@ public async Task Exists_GetAGalleryWithSelectPermissions() [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/2022-03-03/examples/galleryExamples/Gallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -426,7 +426,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/2022-03-03/examples/galleryExamples/Gallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -456,7 +456,7 @@ public async Task Exists_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/2022-03-03/examples/galleryExamples/Gallery_ListByResourceGroup.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 c650bd367c28..330b819123d5 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 @@ -23,7 +23,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/2022-03-03/examples/galleryExamples/GalleryImage_Create.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -66,7 +66,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/2022-03-03/examples/galleryExamples/GalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -101,7 +101,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/2022-03-03/examples/galleryExamples/GalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -132,7 +132,7 @@ public async Task Exists_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/2022-03-03/examples/galleryExamples/GalleryImage_ListByGallery.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 ea3f7d66dac2..aaf04050e3d4 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 @@ -23,7 +23,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/2022-03-03/examples/galleryExamples/GalleryImage_Update.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -63,7 +63,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/2022-03-03/examples/galleryExamples/GalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -95,7 +95,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/2022-03-03/examples/galleryExamples/GalleryImage_Delete.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 8575684cddbe..50e55608aa96 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 @@ -23,7 +23,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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -124,7 +124,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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -225,7 +225,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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -326,7 +326,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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -436,7 +436,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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -499,7 +499,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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -600,7 +600,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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -705,12 +705,153 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingSn Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + // Create or update a simple Gallery Image Version using vhd as a source with custom UEFI keys. + [NUnit.Framework.Test] + [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/2022-08-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 + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this GalleryImageResource created on azure + // for more information of creating GalleryImageResource, please refer to the document of GalleryImageResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string galleryImageName = "myGalleryImageName"; + ResourceIdentifier galleryImageResourceId = GalleryImageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, galleryImageName); + GalleryImageResource galleryImage = client.GetGalleryImageResource(galleryImageResourceId); + + // get the collection of this GalleryImageVersionResource + GalleryImageVersionCollection collection = galleryImage.GetGalleryImageVersions(); + + // invoke the operation + string galleryImageVersionName = "1.0.0"; + GalleryImageVersionData data = new GalleryImageVersionData(new AzureLocation("West US")) + { + PublishingProfile = new GalleryImageVersionPublishingProfile() + { + TargetRegions = +{ +new TargetRegion("West US") +{ +RegionalReplicaCount = 1, +Encryption = new EncryptionImages() +{ +OSDiskImage = new OSDiskImageEncryption() +{ +DiskEncryptionSetId = new ResourceIdentifier("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet"), +}, +DataDiskImages = +{ +new DataDiskImageEncryption(1) +{ +DiskEncryptionSetId = new ResourceIdentifier("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet"), +} +}, +}, +IsExcludedFromLatest = false, +},new TargetRegion("East US") +{ +RegionalReplicaCount = 2, +StorageAccountType = ImageStorageAccountType.StandardZrs, +IsExcludedFromLatest = false, +} +}, + }, + StorageProfile = new GalleryImageVersionStorageProfile() + { + OSDiskImage = new GalleryOSDiskImage() + { + HostCaching = HostCaching.ReadOnly, + GallerySource = new GalleryDiskImageSource() + { + Uri = new Uri("https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd"), + StorageAccountId = new ResourceIdentifier("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}"), + }, + }, + DataDiskImages = +{ +new GalleryDataDiskImage(1) +{ +HostCaching = HostCaching.None, +GallerySource = new GalleryDiskImageSource() +{ +Uri = new Uri("https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd"), +StorageAccountId = new ResourceIdentifier("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}"), +}, +} +}, + }, + SafetyProfile = new GalleryImageVersionSafetyProfile() + { + AllowDeletionOfReplicatedLocations = false, + }, + SecurityUefiSettings = new GalleryImageVersionUefiSettings() + { + SignatureTemplateNames = +{ +UefiSignatureTemplateName.MicrosoftUefiCertificateAuthorityTemplate +}, + AdditionalSignatures = new UefiKeySignatures() + { + Kek = +{ +new UefiKey() +{ +KeyType = UefiKeyType.Sha256, +Value = +{ +"" +}, +} +}, + Db = +{ +new UefiKey() +{ +KeyType = UefiKeyType.X509, +Value = +{ +"" +}, +} +}, + Dbx = +{ +new UefiKey() +{ +KeyType = UefiKeyType.X509, +Value = +{ +"" +}, +} +}, + }, + }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, galleryImageVersionName, data); + GalleryImageVersionResource 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 + GalleryImageVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + // Create or update a simple Gallery Image Version using vhd as a source. [NUnit.Framework.Test] [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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -772,7 +913,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingVh GallerySource = new GalleryDiskImageSource() { Uri = new Uri("https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd"), - Id = new ResourceIdentifier("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}"), + StorageAccountId = new ResourceIdentifier("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}"), }, }, DataDiskImages = @@ -783,7 +924,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingVh GallerySource = new GalleryDiskImageSource() { Uri = new Uri("https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd"), -Id = new ResourceIdentifier("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}"), +StorageAccountId = new ResourceIdentifier("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}"), }, } }, @@ -808,7 +949,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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -909,7 +1050,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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -946,7 +1087,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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -979,7 +1120,7 @@ public async Task Exists_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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -1015,7 +1156,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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -1047,7 +1188,7 @@ public async Task Exists_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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -1083,7 +1224,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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -1115,7 +1256,7 @@ public async Task Exists_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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -1151,7 +1292,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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -1183,7 +1324,7 @@ public async Task Exists_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/2022-03-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 3a9f14f1457e..e8289f66046b 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 @@ -23,7 +23,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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Update.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -81,7 +81,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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -133,7 +133,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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -167,7 +167,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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -200,7 +200,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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -233,7 +233,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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -266,7 +266,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/2022-03-03/examples/galleryExamples/GalleryImageVersion_Delete.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 d18cfc72902f..65b827c188bf 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 @@ -24,7 +24,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/2022-03-03/examples/galleryExamples/Gallery_Update.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -60,7 +60,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/2022-03-03/examples/galleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -91,7 +91,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/2022-03-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -123,7 +123,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/2022-03-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -155,7 +155,7 @@ public async Task Get_GetAGalleryWithSelectPermissions() [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/2022-03-03/examples/galleryExamples/Gallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -186,7 +186,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/2022-03-03/examples/galleryExamples/Gallery_Delete.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -213,7 +213,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/2022-03-03/examples/galleryExamples/Gallery_ListBySubscription.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -245,7 +245,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/2022-03-03/examples/galleryExamples/Gallery_AddToSharingProfile.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -294,7 +294,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/2022-03-03/examples/galleryExamples/Gallery_ResetSharingProfile.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -323,7 +323,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/2022-03-03/examples/galleryExamples/Gallery_EnableCommunityGallery.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 5ae6d02934f9..7160e8325ab0 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 @@ -22,7 +22,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/2022-03-03/examples/sharedGalleryExamples/SharedGallery_List.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -58,7 +58,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/2022-03-03/examples/sharedGalleryExamples/SharedGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -92,7 +92,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/2022-03-03/examples/sharedGalleryExamples/SharedGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 8b61f40caf95..7a6a635d4eed 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 @@ -21,7 +21,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/2022-03-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -58,7 +58,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/2022-03-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -93,7 +93,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/2022-03-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 fff154b429d8..445a24ff8cce 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 @@ -21,7 +21,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/2022-03-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 0cde3bb16bb2..03b587cdcd51 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 @@ -21,7 +21,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/2022-03-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -59,7 +59,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/2022-03-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 @@ -95,7 +95,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/2022-03-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 9b1e31b785bd..5b671735985c 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 @@ -21,7 +21,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/2022-03-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 a39b77114f3d..cca4c7b14a3c 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 @@ -21,7 +21,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/2022-03-03/examples/sharedGalleryExamples/SharedGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-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 abac298be04c..0ec55cade43d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs @@ -1768,7 +1768,7 @@ public static GalleryData GalleryData(ResourceIdentifier id = null, string name } /// Initializes a new instance of SharingProfile. - /// This property allows you to specify the permission of sharing gallery. <br><br> Possible values are: <br><br> **Private** <br><br> **Groups** <br><br> **Community**. + /// This property allows you to specify the permission of sharing gallery. Possible values are: **Private,** **Groups,** **Community.**. /// A list of sharing profile groups. /// Information of community gallery if current gallery is shared to community. /// A new instance for mocking. @@ -1826,7 +1826,7 @@ public static RegionalSharingStatus RegionalSharingStatus(string region = null, /// The Eula agreement for the gallery image definition. /// The privacy statement uri. /// The release note uri. - /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**. /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. /// The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. @@ -1859,12 +1859,13 @@ public static GalleryImageData GalleryImageData(ResourceIdentifier id = null, st /// This is the storage profile of a Gallery Image Version. /// This is the safety profile of the Gallery Image Version. /// This is the replication status of the gallery image version. + /// The security profile of a gallery image version. /// A new instance for mocking. - public static GalleryImageVersionData GalleryImageVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, GalleryImageVersionPublishingProfile publishingProfile = null, GalleryProvisioningState? provisioningState = null, GalleryImageVersionStorageProfile storageProfile = null, GalleryImageVersionSafetyProfile safetyProfile = null, ReplicationStatus replicationStatus = null) + public static GalleryImageVersionData GalleryImageVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, GalleryImageVersionPublishingProfile publishingProfile = null, GalleryProvisioningState? provisioningState = null, GalleryImageVersionStorageProfile storageProfile = null, GalleryImageVersionSafetyProfile safetyProfile = null, ReplicationStatus replicationStatus = null, GalleryImageVersionUefiSettings securityUefiSettings = null) { tags ??= new Dictionary(); - return new GalleryImageVersionData(id, name, resourceType, systemData, tags, location, publishingProfile, provisioningState, storageProfile, safetyProfile, replicationStatus); + return new GalleryImageVersionData(id, name, resourceType, systemData, tags, location, publishingProfile, provisioningState, storageProfile, safetyProfile, replicationStatus, securityUefiSettings != null ? new ImageVersionSecurityProfile(securityUefiSettings) : null); } /// Initializes a new instance of GalleryImageVersionPublishingProfile. @@ -1989,7 +1990,7 @@ public static RegionalReplicationStatus RegionalReplicationStatus(string region /// The privacy statement uri. /// The release note uri. /// The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. - /// This property allows you to specify the supported type of the OS that application is built for. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.**. /// A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. /// A new instance for mocking. public static GalleryApplicationData GalleryApplicationData(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, DateTimeOffset? endOfLifeOn = null, SupportedOperatingSystemType? supportedOSType = null, IEnumerable customActions = null) @@ -2049,10 +2050,13 @@ public static GalleryApplicationVersionPublishingProfile GalleryApplicationVersi /// Resource name. /// Resource location. /// The unique id of this shared gallery. + /// The artifact tags of a shared gallery resource. /// A new instance for mocking. - public static SharedGalleryData SharedGalleryData(string name = null, AzureLocation? location = null, string uniqueId = null) + public static SharedGalleryData SharedGalleryData(string name = null, AzureLocation? location = null, string uniqueId = null, IReadOnlyDictionary artifactTags = null) { - return new SharedGalleryData(name, location, uniqueId); + artifactTags ??= new Dictionary(); + + return new SharedGalleryData(name, location, uniqueId, artifactTags); } /// Initializes a new instance of PirSharedGalleryResourceData. @@ -2078,7 +2082,7 @@ public static PirResourceData PirResourceData(string name = null, AzureLocation? /// Resource name. /// Resource location. /// The unique id of this shared gallery. - /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**. /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. /// The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. /// This is the gallery image definition identifier. @@ -2090,13 +2094,15 @@ public static PirResourceData PirResourceData(string name = null, AzureLocation? /// The architecture of the image. Applicable to OS disks only. /// 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. /// A new instance for mocking. - public static SharedGalleryImageData SharedGalleryImageData(string name = null, AzureLocation? location = null, string uniqueId = null, SupportedOperatingSystemType? osType = null, OperatingSystemStateType? osState = null, DateTimeOffset? endOfLifeOn = null, GalleryImageIdentifier identifier = null, RecommendedMachineConfiguration recommended = null, IEnumerable disallowedDiskTypes = null, HyperVGeneration? hyperVGeneration = null, IEnumerable features = null, ImagePurchasePlan purchasePlan = null, ArchitectureType? architecture = null, Uri privacyStatementUri = null, string eula = null) + public static SharedGalleryImageData SharedGalleryImageData(string name = null, AzureLocation? location = null, string uniqueId = null, SupportedOperatingSystemType? osType = null, OperatingSystemStateType? osState = null, DateTimeOffset? endOfLifeOn = null, GalleryImageIdentifier identifier = null, RecommendedMachineConfiguration recommended = null, IEnumerable disallowedDiskTypes = null, HyperVGeneration? hyperVGeneration = null, IEnumerable features = null, ImagePurchasePlan purchasePlan = null, ArchitectureType? architecture = null, Uri privacyStatementUri = null, string eula = null, IReadOnlyDictionary artifactTags = null) { disallowedDiskTypes ??= new List(); features ??= new List(); + artifactTags ??= new Dictionary(); - return new SharedGalleryImageData(name, location, uniqueId, osType, osState, endOfLifeOn, identifier, recommended, disallowedDiskTypes != null ? new Disallowed(disallowedDiskTypes?.ToList()) : null, hyperVGeneration, features?.ToList(), purchasePlan, architecture, privacyStatementUri, eula); + return new SharedGalleryImageData(name, location, uniqueId, osType, osState, endOfLifeOn, identifier, recommended, disallowedDiskTypes != null ? new Disallowed(disallowedDiskTypes?.ToList()) : null, hyperVGeneration, features?.ToList(), purchasePlan, architecture, privacyStatementUri, eula, artifactTags); } /// Initializes a new instance of SharedGalleryImageVersionData. @@ -2107,10 +2113,13 @@ public static SharedGalleryImageData SharedGalleryImageData(string name = null, /// The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable. /// If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. /// Describes the storage profile of the image version. + /// The artifact tags of a shared gallery resource. /// A new instance for mocking. - public static SharedGalleryImageVersionData SharedGalleryImageVersionData(string name = null, AzureLocation? location = null, string uniqueId = null, DateTimeOffset? publishedOn = null, DateTimeOffset? endOfLifeOn = null, bool? isExcludedFromLatest = null, SharedGalleryImageVersionStorageProfile storageProfile = null) + public static SharedGalleryImageVersionData SharedGalleryImageVersionData(string name = null, AzureLocation? location = null, string uniqueId = null, DateTimeOffset? publishedOn = null, DateTimeOffset? endOfLifeOn = null, bool? isExcludedFromLatest = null, SharedGalleryImageVersionStorageProfile storageProfile = null, IReadOnlyDictionary artifactTags = null) { - return new SharedGalleryImageVersionData(name, location, uniqueId, publishedOn, endOfLifeOn, isExcludedFromLatest, storageProfile); + artifactTags ??= new Dictionary(); + + return new SharedGalleryImageVersionData(name, location, uniqueId, publishedOn, endOfLifeOn, isExcludedFromLatest, storageProfile, artifactTags); } /// Initializes a new instance of SharedGalleryImageVersionStorageProfile. @@ -2157,10 +2166,29 @@ public static SharedGalleryDataDiskImage SharedGalleryDataDiskImage(int? diskSiz /// Resource location. /// Resource type. /// The unique id of this community gallery. + /// The disclaimer for a community gallery resource. + /// The artifact tags of a community gallery resource. + /// The metadata of community gallery. /// A new instance for mocking. - public static CommunityGalleryData CommunityGalleryData(string name = null, AzureLocation? location = null, ResourceType? resourceType = null, string uniqueId = null) + public static CommunityGalleryData CommunityGalleryData(string name = null, AzureLocation? location = null, ResourceType? resourceType = null, string uniqueId = null, string disclaimer = null, IReadOnlyDictionary artifactTags = null, CommunityGalleryMetadata communityMetadata = null) { - return new CommunityGalleryData(name, location, resourceType, uniqueId); + artifactTags ??= new Dictionary(); + + return new CommunityGalleryData(name, location, resourceType, uniqueId, disclaimer, artifactTags, communityMetadata); + } + + /// Initializes a new instance of CommunityGalleryMetadata. + /// The publisher URI of this community gallery. + /// The publisher email id of this community gallery. + /// The end-user license agreement for this community gallery. + /// A list of public names the gallery has. + /// The link for the privacy statement of this community gallery from the gallery publisher. + /// A new instance for mocking. + public static CommunityGalleryMetadata CommunityGalleryMetadata(Uri publisherUri = null, string publisherContact = null, string eula = null, IEnumerable publicNames = null, Uri privacyStatementUri = null) + { + publicNames ??= new List(); + + return new CommunityGalleryMetadata(publisherUri, publisherContact, eula, publicNames?.ToList(), privacyStatementUri); } /// Initializes a new instance of PirCommunityGalleryResourceData. @@ -2179,7 +2207,7 @@ public static PirCommunityGalleryResourceData PirCommunityGalleryResourceData(st /// Resource location. /// Resource type. /// The unique id of this community gallery. - /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**. /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. /// The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. /// This is the community gallery image definition identifier. @@ -2189,15 +2217,18 @@ public static PirCommunityGalleryResourceData PirCommunityGalleryResourceData(st /// 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. - /// Privacy statement uri for the current community gallery image. - /// End-user license agreement for the current community gallery image. + /// 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. + /// The artifact tags of a community gallery resource. /// A new instance for mocking. - public static CommunityGalleryImageData CommunityGalleryImageData(string name = null, AzureLocation? location = null, ResourceType? resourceType = null, string uniqueId = null, SupportedOperatingSystemType? osType = null, OperatingSystemStateType? osState = null, DateTimeOffset? endOfLifeOn = null, CommunityGalleryImageIdentifier imageIdentifier = null, RecommendedMachineConfiguration recommended = null, IEnumerable disallowedDiskTypes = null, HyperVGeneration? hyperVGeneration = null, IEnumerable features = null, ImagePurchasePlan purchasePlan = null, ArchitectureType? architecture = null, Uri privacyStatementUri = null, string eula = null) + public static CommunityGalleryImageData CommunityGalleryImageData(string name = null, AzureLocation? location = null, ResourceType? resourceType = null, string uniqueId = null, SupportedOperatingSystemType? osType = null, OperatingSystemStateType? osState = null, DateTimeOffset? endOfLifeOn = null, CommunityGalleryImageIdentifier imageIdentifier = null, RecommendedMachineConfiguration recommended = null, IEnumerable disallowedDiskTypes = null, HyperVGeneration? hyperVGeneration = null, IEnumerable features = null, ImagePurchasePlan purchasePlan = null, ArchitectureType? architecture = null, Uri privacyStatementUri = null, string eula = null, string disclaimer = null, IReadOnlyDictionary artifactTags = null) { disallowedDiskTypes ??= new List(); features ??= new List(); + artifactTags ??= new Dictionary(); - return new CommunityGalleryImageData(name, location, resourceType, uniqueId, osType, osState, endOfLifeOn, imageIdentifier, recommended, disallowedDiskTypes != null ? new Disallowed(disallowedDiskTypes?.ToList()) : null, hyperVGeneration, features?.ToList(), purchasePlan, architecture, privacyStatementUri, eula); + return new CommunityGalleryImageData(name, location, resourceType, uniqueId, osType, osState, endOfLifeOn, imageIdentifier, recommended, disallowedDiskTypes != null ? new Disallowed(disallowedDiskTypes?.ToList()) : null, hyperVGeneration, features?.ToList(), purchasePlan, architecture, privacyStatementUri, eula, disclaimer, artifactTags); } /// Initializes a new instance of CommunityGalleryImageIdentifier. @@ -2219,10 +2250,14 @@ public static CommunityGalleryImageIdentifier CommunityGalleryImageIdentifier(st /// The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable. /// If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. /// Describes the storage profile of the image version. + /// The disclaimer for a community gallery resource. + /// The artifact tags of a community gallery resource. /// A new instance for mocking. - public static CommunityGalleryImageVersionData CommunityGalleryImageVersionData(string name = null, AzureLocation? location = null, ResourceType? resourceType = null, string uniqueId = null, DateTimeOffset? publishedOn = null, DateTimeOffset? endOfLifeOn = null, bool? isExcludedFromLatest = null, SharedGalleryImageVersionStorageProfile storageProfile = null) + public static CommunityGalleryImageVersionData CommunityGalleryImageVersionData(string name = null, AzureLocation? location = null, ResourceType? resourceType = null, string uniqueId = null, DateTimeOffset? publishedOn = null, DateTimeOffset? endOfLifeOn = null, bool? isExcludedFromLatest = null, SharedGalleryImageVersionStorageProfile storageProfile = null, string disclaimer = null, IReadOnlyDictionary artifactTags = null) { - return new CommunityGalleryImageVersionData(name, location, resourceType, uniqueId, publishedOn, endOfLifeOn, isExcludedFromLatest, storageProfile); + artifactTags ??= new Dictionary(); + + return new CommunityGalleryImageVersionData(name, location, resourceType, uniqueId, publishedOn, endOfLifeOn, isExcludedFromLatest, storageProfile, disclaimer, artifactTags); } /// Initializes a new instance of CloudServiceRoleInstanceData. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryData.cs index 6190038592ec..8121eea5bfeb 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryData.cs @@ -5,6 +5,7 @@ #nullable disable +using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Compute.Models; @@ -19,6 +20,7 @@ public partial class CommunityGalleryData : PirCommunityGalleryResourceData /// Initializes a new instance of CommunityGalleryData. internal CommunityGalleryData() { + ArtifactTags = new ChangeTrackingDictionary(); } /// Initializes a new instance of CommunityGalleryData. @@ -26,10 +28,22 @@ internal CommunityGalleryData() /// Resource location. /// Resource type. /// The unique id of this community gallery. - internal CommunityGalleryData(string name, AzureLocation? location, ResourceType? resourceType, string uniqueId) : base(name, location, resourceType, uniqueId) + /// The disclaimer for a community gallery resource. + /// The artifact tags of a community gallery resource. + /// The metadata of community gallery. + internal CommunityGalleryData(string name, AzureLocation? location, ResourceType? resourceType, string uniqueId, string disclaimer, IReadOnlyDictionary artifactTags, CommunityGalleryMetadata communityMetadata) : base(name, location, resourceType, uniqueId) { + Disclaimer = disclaimer; + ArtifactTags = artifactTags; + CommunityMetadata = communityMetadata; } + /// The disclaimer for a community gallery resource. + public string Disclaimer { get; } + /// The artifact tags of a community gallery resource. + public IReadOnlyDictionary ArtifactTags { get; } + /// The metadata of community gallery. + public CommunityGalleryMetadata CommunityMetadata { get; } /// The resource identifier. public ResourceIdentifier Id { get; internal set; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageData.cs index 9debf25c34a6..35167c7f46e6 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageData.cs @@ -22,6 +22,7 @@ public partial class CommunityGalleryImageData : PirCommunityGalleryResourceData internal CommunityGalleryImageData() { Features = new ChangeTrackingList(); + ArtifactTags = new ChangeTrackingDictionary(); } /// Initializes a new instance of CommunityGalleryImageData. @@ -29,7 +30,7 @@ internal CommunityGalleryImageData() /// Resource location. /// Resource type. /// The unique id of this community gallery. - /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**. /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. /// The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. /// This is the community gallery image definition identifier. @@ -39,9 +40,11 @@ internal CommunityGalleryImageData() /// 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. - /// Privacy statement uri for the current community gallery image. - /// End-user license agreement for the current community gallery image. - internal CommunityGalleryImageData(string name, AzureLocation? location, ResourceType? resourceType, string uniqueId, SupportedOperatingSystemType? osType, OperatingSystemStateType? osState, DateTimeOffset? endOfLifeOn, CommunityGalleryImageIdentifier imageIdentifier, RecommendedMachineConfiguration recommended, Disallowed disallowed, HyperVGeneration? hyperVGeneration, IReadOnlyList features, ImagePurchasePlan purchasePlan, ArchitectureType? architecture, Uri privacyStatementUri, string eula) : base(name, location, resourceType, uniqueId) + /// 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. + /// The artifact tags of a community gallery resource. + internal CommunityGalleryImageData(string name, AzureLocation? location, ResourceType? resourceType, string uniqueId, SupportedOperatingSystemType? osType, OperatingSystemStateType? osState, DateTimeOffset? endOfLifeOn, CommunityGalleryImageIdentifier imageIdentifier, RecommendedMachineConfiguration recommended, Disallowed disallowed, HyperVGeneration? hyperVGeneration, IReadOnlyList features, ImagePurchasePlan purchasePlan, ArchitectureType? architecture, Uri privacyStatementUri, string eula, string disclaimer, IReadOnlyDictionary artifactTags) : base(name, location, resourceType, uniqueId) { OSType = osType; OSState = osState; @@ -55,9 +58,11 @@ internal CommunityGalleryImageData(string name, AzureLocation? location, Resourc Architecture = architecture; PrivacyStatementUri = privacyStatementUri; Eula = eula; + Disclaimer = disclaimer; + ArtifactTags = artifactTags; } - /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**. public SupportedOperatingSystemType? OSType { get; } /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. public OperatingSystemStateType? OSState { get; } @@ -83,10 +88,14 @@ public IList DisallowedDiskTypes public ImagePurchasePlan PurchasePlan { get; } /// The architecture of the image. Applicable to OS disks only. public ArchitectureType? Architecture { get; } - /// Privacy statement uri for the current community gallery image. + /// Privacy statement URI for the current community gallery image. public Uri PrivacyStatementUri { get; } - /// End-user license agreement for the current community gallery image. + /// The end-user license agreement for the current community gallery image. public string Eula { get; } + /// The disclaimer for a community gallery resource. + public string Disclaimer { get; } + /// The artifact tags of a community gallery resource. + public IReadOnlyDictionary ArtifactTags { get; } /// The resource identifier. public ResourceIdentifier Id { get; internal set; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionData.cs index 09f380d230c9..75d0d52d0f82 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionData.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Compute.Models; @@ -20,6 +21,7 @@ public partial class CommunityGalleryImageVersionData : PirCommunityGalleryResou /// Initializes a new instance of CommunityGalleryImageVersionData. internal CommunityGalleryImageVersionData() { + ArtifactTags = new ChangeTrackingDictionary(); } /// Initializes a new instance of CommunityGalleryImageVersionData. @@ -31,12 +33,16 @@ internal CommunityGalleryImageVersionData() /// The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable. /// If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. /// Describes the storage profile of the image version. - internal CommunityGalleryImageVersionData(string name, AzureLocation? location, ResourceType? resourceType, string uniqueId, DateTimeOffset? publishedOn, DateTimeOffset? endOfLifeOn, bool? isExcludedFromLatest, SharedGalleryImageVersionStorageProfile storageProfile) : base(name, location, resourceType, uniqueId) + /// The disclaimer for a community gallery resource. + /// The artifact tags of a community gallery resource. + internal CommunityGalleryImageVersionData(string name, AzureLocation? location, ResourceType? resourceType, string uniqueId, DateTimeOffset? publishedOn, DateTimeOffset? endOfLifeOn, bool? isExcludedFromLatest, SharedGalleryImageVersionStorageProfile storageProfile, string disclaimer, IReadOnlyDictionary artifactTags) : base(name, location, resourceType, uniqueId) { PublishedOn = publishedOn; EndOfLifeOn = endOfLifeOn; IsExcludedFromLatest = isExcludedFromLatest; StorageProfile = storageProfile; + Disclaimer = disclaimer; + ArtifactTags = artifactTags; } /// The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable. @@ -47,6 +53,10 @@ internal CommunityGalleryImageVersionData(string name, AzureLocation? location, public bool? IsExcludedFromLatest { get; } /// Describes the storage profile of the image version. public SharedGalleryImageVersionStorageProfile StorageProfile { get; } + /// The disclaimer for a community gallery resource. + public string Disclaimer { get; } + /// The artifact tags of a community gallery resource. + public IReadOnlyDictionary ArtifactTags { get; } /// The resource identifier. public ResourceIdentifier Id { get; internal set; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationData.cs index 9a2bc8669b48..d8e26722bdef 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationData.cs @@ -38,7 +38,7 @@ public GalleryApplicationData(AzureLocation location) : base(location) /// The privacy statement uri. /// The release note uri. /// The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. - /// This property allows you to specify the supported type of the OS that application is built for. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.**. /// A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. internal GalleryApplicationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string description, string eula, Uri privacyStatementUri, Uri releaseNoteUri, DateTimeOffset? endOfLifeOn, SupportedOperatingSystemType? supportedOSType, IList customActions) : base(id, name, resourceType, systemData, tags, location) { @@ -61,7 +61,7 @@ internal GalleryApplicationData(ResourceIdentifier id, string name, ResourceType public Uri ReleaseNoteUri { get; set; } /// The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. public DateTimeOffset? EndOfLifeOn { get; set; } - /// This property allows you to specify the supported type of the OS that application is built for. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.**. public SupportedOperatingSystemType? SupportedOSType { get; set; } /// A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. public IList CustomActions { get; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs index a804f059690a..ed867471fe98 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs @@ -37,7 +37,7 @@ public GalleryImageData(AzureLocation location) : base(location) /// The Eula agreement for the gallery image definition. /// The privacy statement uri. /// The release note uri. - /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**. /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. /// The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. @@ -75,7 +75,7 @@ internal GalleryImageData(ResourceIdentifier id, string name, ResourceType resou public Uri PrivacyStatementUri { get; set; } /// The release note uri. public Uri ReleaseNoteUri { get; set; } - /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**. public SupportedOperatingSystemType? OSType { get; set; } /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. public OperatingSystemStateType? OSState { get; set; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionData.cs index 1412d63800b6..b44a9abdaa7a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionData.cs @@ -36,13 +36,15 @@ public GalleryImageVersionData(AzureLocation location) : base(location) /// This is the storage profile of a Gallery Image Version. /// This is the safety profile of the Gallery Image Version. /// This is the replication status of the gallery image version. - internal GalleryImageVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, GalleryImageVersionPublishingProfile publishingProfile, GalleryProvisioningState? provisioningState, GalleryImageVersionStorageProfile storageProfile, GalleryImageVersionSafetyProfile safetyProfile, ReplicationStatus replicationStatus) : base(id, name, resourceType, systemData, tags, location) + /// The security profile of a gallery image version. + internal GalleryImageVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, GalleryImageVersionPublishingProfile publishingProfile, GalleryProvisioningState? provisioningState, GalleryImageVersionStorageProfile storageProfile, GalleryImageVersionSafetyProfile safetyProfile, ReplicationStatus replicationStatus, ImageVersionSecurityProfile securityProfile) : base(id, name, resourceType, systemData, tags, location) { PublishingProfile = publishingProfile; ProvisioningState = provisioningState; StorageProfile = storageProfile; SafetyProfile = safetyProfile; ReplicationStatus = replicationStatus; + SecurityProfile = securityProfile; } /// The publishing profile of a gallery image Version. @@ -55,5 +57,18 @@ internal GalleryImageVersionData(ResourceIdentifier id, string name, ResourceTyp public GalleryImageVersionSafetyProfile SafetyProfile { get; set; } /// This is the replication status of the gallery image version. public ReplicationStatus ReplicationStatus { get; } + /// The security profile of a gallery image version. + internal ImageVersionSecurityProfile SecurityProfile { get; set; } + /// Contains UEFI settings for the image version. + public GalleryImageVersionUefiSettings SecurityUefiSettings + { + get => SecurityProfile is null ? default : SecurityProfile.UefiSettings; + set + { + if (SecurityProfile is null) + SecurityProfile = new ImageVersionSecurityProfile(); + SecurityProfile.UefiSettings = value; + } + } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryData.Serialization.cs index bb79f2de5be1..d5025eb08652 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryData.Serialization.cs @@ -5,8 +5,10 @@ #nullable disable +using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.ResourceManager.Compute.Models; namespace Azure.ResourceManager.Compute { @@ -21,6 +23,9 @@ internal static CommunityGalleryData DeserializeCommunityGalleryData(JsonElement Optional name = default; Optional location = default; Optional type = default; + Optional disclaimer = default; + Optional> artifactTags = default; + Optional communityMetadata = default; Optional uniqueId = default; foreach (var property in element.EnumerateObject()) { @@ -47,6 +52,46 @@ internal static CommunityGalleryData DeserializeCommunityGalleryData(JsonElement type = new ResourceType(property.Value.GetString()); continue; } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("disclaimer"u8)) + { + disclaimer = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("artifactTags"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property1 in property0.Value.EnumerateObject()) + { + dictionary.Add(property1.Name, property1.Value.GetString()); + } + artifactTags = dictionary; + continue; + } + if (property0.NameEquals("communityMetadata"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + communityMetadata = CommunityGalleryMetadata.DeserializeCommunityGalleryMetadata(property0.Value); + continue; + } + } + continue; + } if (property.NameEquals("identifier"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -65,7 +110,7 @@ internal static CommunityGalleryData DeserializeCommunityGalleryData(JsonElement continue; } } - return new CommunityGalleryData(name.Value, Optional.ToNullable(location), Optional.ToNullable(type), uniqueId.Value); + return new CommunityGalleryData(name.Value, Optional.ToNullable(location), Optional.ToNullable(type), uniqueId.Value, disclaimer.Value, Optional.ToDictionary(artifactTags), communityMetadata.Value); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageData.Serialization.cs index 200b3dfa595c..4657304c3a1c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageData.Serialization.cs @@ -36,6 +36,8 @@ internal static CommunityGalleryImageData DeserializeCommunityGalleryImageData(J Optional architecture = default; Optional privacyStatementUri = default; Optional eula = default; + Optional disclaimer = default; + Optional> artifactTags = default; Optional uniqueId = default; foreach (var property in element.EnumerateObject()) { @@ -180,6 +182,25 @@ internal static CommunityGalleryImageData DeserializeCommunityGalleryImageData(J eula = property0.Value.GetString(); continue; } + if (property0.NameEquals("disclaimer"u8)) + { + disclaimer = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("artifactTags"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property1 in property0.Value.EnumerateObject()) + { + dictionary.Add(property1.Name, property1.Value.GetString()); + } + artifactTags = dictionary; + continue; + } } continue; } @@ -201,7 +222,7 @@ internal static CommunityGalleryImageData DeserializeCommunityGalleryImageData(J continue; } } - return new CommunityGalleryImageData(name.Value, Optional.ToNullable(location), Optional.ToNullable(type), uniqueId.Value, Optional.ToNullable(osType), Optional.ToNullable(osState), Optional.ToNullable(endOfLifeDate), identifier.Value, recommended.Value, disallowed.Value, Optional.ToNullable(hyperVGeneration), Optional.ToList(features), purchasePlan.Value, Optional.ToNullable(architecture), privacyStatementUri.Value, eula.Value); + return new CommunityGalleryImageData(name.Value, Optional.ToNullable(location), Optional.ToNullable(type), uniqueId.Value, Optional.ToNullable(osType), Optional.ToNullable(osState), Optional.ToNullable(endOfLifeDate), identifier.Value, recommended.Value, disallowed.Value, Optional.ToNullable(hyperVGeneration), Optional.ToList(features), purchasePlan.Value, Optional.ToNullable(architecture), privacyStatementUri.Value, eula.Value, disclaimer.Value, Optional.ToDictionary(artifactTags)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageList.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageList.cs index b0f3e11c392c..f24474ec02a3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageList.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageList.cs @@ -28,7 +28,7 @@ internal CommunityGalleryImageList(IEnumerable value) /// Initializes a new instance of CommunityGalleryImageList. /// A list of community gallery images. - /// The uri to fetch the next page of community gallery images. Call ListNext() with this to fetch the next page of community gallery images. + /// The URI to fetch the next page of community gallery images. Call ListNext() with this to fetch the next page of community gallery images. internal CommunityGalleryImageList(IReadOnlyList value, string nextLink) { Value = value; @@ -37,7 +37,7 @@ internal CommunityGalleryImageList(IReadOnlyList valu /// A list of community gallery images. public IReadOnlyList Value { get; } - /// The uri to fetch the next page of community gallery images. Call ListNext() with this to fetch the next page of community gallery images. + /// The URI to fetch the next page of community gallery images. Call ListNext() with this to fetch the next page of community gallery images. public string NextLink { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageVersionData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageVersionData.Serialization.cs index 8674dd521440..87c56498f5f4 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageVersionData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageVersionData.Serialization.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using System.Text.Json; using Azure.Core; using Azure.ResourceManager.Compute.Models; @@ -27,6 +28,8 @@ internal static CommunityGalleryImageVersionData DeserializeCommunityGalleryImag Optional endOfLifeDate = default; Optional excludeFromLatest = default; Optional storageProfile = default; + Optional disclaimer = default; + Optional> artifactTags = default; Optional uniqueId = default; foreach (var property in element.EnumerateObject()) { @@ -98,6 +101,25 @@ internal static CommunityGalleryImageVersionData DeserializeCommunityGalleryImag storageProfile = SharedGalleryImageVersionStorageProfile.DeserializeSharedGalleryImageVersionStorageProfile(property0.Value); continue; } + if (property0.NameEquals("disclaimer"u8)) + { + disclaimer = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("artifactTags"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property1 in property0.Value.EnumerateObject()) + { + dictionary.Add(property1.Name, property1.Value.GetString()); + } + artifactTags = dictionary; + continue; + } } continue; } @@ -119,7 +141,7 @@ internal static CommunityGalleryImageVersionData DeserializeCommunityGalleryImag continue; } } - return new CommunityGalleryImageVersionData(name.Value, Optional.ToNullable(location), Optional.ToNullable(type), uniqueId.Value, Optional.ToNullable(publishedDate), Optional.ToNullable(endOfLifeDate), Optional.ToNullable(excludeFromLatest), storageProfile.Value); + return new CommunityGalleryImageVersionData(name.Value, Optional.ToNullable(location), Optional.ToNullable(type), uniqueId.Value, Optional.ToNullable(publishedDate), Optional.ToNullable(endOfLifeDate), Optional.ToNullable(excludeFromLatest), storageProfile.Value, disclaimer.Value, Optional.ToDictionary(artifactTags)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageVersionList.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageVersionList.cs index 8b6b7dbd9433..bf47e669a28f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageVersionList.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageVersionList.cs @@ -28,7 +28,7 @@ internal CommunityGalleryImageVersionList(IEnumerable Initializes a new instance of CommunityGalleryImageVersionList. /// A list of community gallery image versions. - /// The uri to fetch the next page of community gallery image versions. Call ListNext() with this to fetch the next page of community gallery image versions. + /// The URI to fetch the next page of community gallery image versions. Call ListNext() with this to fetch the next page of community gallery image versions. internal CommunityGalleryImageVersionList(IReadOnlyList value, string nextLink) { Value = value; @@ -37,7 +37,7 @@ internal CommunityGalleryImageVersionList(IReadOnlyList A list of community gallery image versions. public IReadOnlyList Value { get; } - /// The uri to fetch the next page of community gallery image versions. Call ListNext() with this to fetch the next page of community gallery image versions. + /// The URI to fetch the next page of community gallery image versions. Call ListNext() with this to fetch the next page of community gallery image versions. public string NextLink { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryMetadata.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryMetadata.Serialization.cs new file mode 100644 index 000000000000..e4a5ef4eb160 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryMetadata.Serialization.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class CommunityGalleryMetadata + { + internal static CommunityGalleryMetadata DeserializeCommunityGalleryMetadata(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional publisherUri = default; + string publisherContact = default; + Optional eula = default; + IReadOnlyList publicNames = default; + Optional privacyStatementUri = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("publisherUri"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + publisherUri = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("publisherContact"u8)) + { + publisherContact = property.Value.GetString(); + continue; + } + if (property.NameEquals("eula"u8)) + { + eula = property.Value.GetString(); + continue; + } + if (property.NameEquals("publicNames"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + publicNames = array; + continue; + } + if (property.NameEquals("privacyStatementUri"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + privacyStatementUri = new Uri(property.Value.GetString()); + continue; + } + } + return new CommunityGalleryMetadata(publisherUri.Value, publisherContact, eula.Value, publicNames, privacyStatementUri.Value); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryMetadata.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryMetadata.cs new file mode 100644 index 000000000000..727478597a19 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryMetadata.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + /// The metadata of community gallery. + public partial class CommunityGalleryMetadata + { + /// Initializes a new instance of CommunityGalleryMetadata. + /// The publisher email id of this community gallery. + /// A list of public names the gallery has. + /// or is null. + internal CommunityGalleryMetadata(string publisherContact, IEnumerable publicNames) + { + Argument.AssertNotNull(publisherContact, nameof(publisherContact)); + Argument.AssertNotNull(publicNames, nameof(publicNames)); + + PublisherContact = publisherContact; + PublicNames = publicNames.ToList(); + } + + /// Initializes a new instance of CommunityGalleryMetadata. + /// The publisher URI of this community gallery. + /// The publisher email id of this community gallery. + /// The end-user license agreement for this community gallery. + /// A list of public names the gallery has. + /// The link for the privacy statement of this community gallery from the gallery publisher. + internal CommunityGalleryMetadata(Uri publisherUri, string publisherContact, string eula, IReadOnlyList publicNames, Uri privacyStatementUri) + { + PublisherUri = publisherUri; + PublisherContact = publisherContact; + Eula = eula; + PublicNames = publicNames; + PrivacyStatementUri = privacyStatementUri; + } + + /// The publisher URI of this community gallery. + public Uri PublisherUri { get; } + /// The publisher email id of this community gallery. + public string PublisherContact { get; } + /// The end-user license agreement for this community gallery. + public string Eula { get; } + /// A list of public names the gallery has. + public IReadOnlyList PublicNames { get; } + /// The link for the privacy statement of this community gallery from the gallery publisher. + public Uri PrivacyStatementUri { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ConfidentialVmEncryptionType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ConfidentialVmEncryptionType.cs index 4fd142a51bfa..1523b454730c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ConfidentialVmEncryptionType.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ConfidentialVmEncryptionType.cs @@ -25,6 +25,7 @@ public ConfidentialVmEncryptionType(string value) private const string EncryptedVmGuestStateOnlyWithPmkValue = "EncryptedVMGuestStateOnlyWithPmk"; private const string EncryptedWithPmkValue = "EncryptedWithPmk"; private const string EncryptedWithCmkValue = "EncryptedWithCmk"; + private const string NonPersistedTPMValue = "NonPersistedTPM"; /// EncryptedVMGuestStateOnlyWithPmk. public static ConfidentialVmEncryptionType EncryptedVmGuestStateOnlyWithPmk { get; } = new ConfidentialVmEncryptionType(EncryptedVmGuestStateOnlyWithPmkValue); @@ -32,6 +33,8 @@ public ConfidentialVmEncryptionType(string value) public static ConfidentialVmEncryptionType EncryptedWithPmk { get; } = new ConfidentialVmEncryptionType(EncryptedWithPmkValue); /// EncryptedWithCmk. public static ConfidentialVmEncryptionType EncryptedWithCmk { get; } = new ConfidentialVmEncryptionType(EncryptedWithCmkValue); + /// NonPersistedTPM. + public static ConfidentialVmEncryptionType NonPersistedTPM { get; } = new ConfidentialVmEncryptionType(NonPersistedTPMValue); /// Determines if two values are the same. public static bool operator ==(ConfidentialVmEncryptionType left, ConfidentialVmEncryptionType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationPatch.cs index 247a5fbae051..5251fac1722a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationPatch.cs @@ -32,7 +32,7 @@ public GalleryApplicationPatch() public Uri ReleaseNoteUri { get; set; } /// The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. public DateTimeOffset? EndOfLifeOn { get; set; } - /// This property allows you to specify the supported type of the OS that application is built for. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.**. public SupportedOperatingSystemType? SupportedOSType { get; set; } /// A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. public IList CustomActions { get; } 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 dfd879ff37dd..4ffa81fe52e6 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs @@ -30,7 +30,7 @@ public GalleryImagePatch() public Uri PrivacyStatementUri { get; set; } /// The release note uri. public Uri ReleaseNoteUri { get; set; } - /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**. public SupportedOperatingSystemType? OSType { get; set; } /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. public OperatingSystemStateType? OSState { get; set; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionData.Serialization.cs index 6462a1abd55f..7daf02a114a8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionData.Serialization.cs @@ -48,6 +48,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("safetyProfile"u8); writer.WriteObjectValue(SafetyProfile); } + if (Optional.IsDefined(SecurityProfile)) + { + writer.WritePropertyName("securityProfile"u8); + writer.WriteObjectValue(SecurityProfile); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -69,6 +74,7 @@ internal static GalleryImageVersionData DeserializeGalleryImageVersionData(JsonE Optional storageProfile = default; Optional safetyProfile = default; Optional replicationStatus = default; + Optional securityProfile = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("tags"u8)) @@ -168,11 +174,20 @@ internal static GalleryImageVersionData DeserializeGalleryImageVersionData(JsonE replicationStatus = ReplicationStatus.DeserializeReplicationStatus(property0.Value); continue; } + if (property0.NameEquals("securityProfile"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + securityProfile = ImageVersionSecurityProfile.DeserializeImageVersionSecurityProfile(property0.Value); + continue; + } } continue; } } - return new GalleryImageVersionData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, publishingProfile.Value, Optional.ToNullable(provisioningState), storageProfile.Value, safetyProfile.Value, replicationStatus.Value); + return new GalleryImageVersionData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, publishingProfile.Value, Optional.ToNullable(provisioningState), storageProfile.Value, safetyProfile.Value, replicationStatus.Value, securityProfile.Value); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.Serialization.cs index f34c8d01d785..db986ddef3ca 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.Serialization.cs @@ -43,6 +43,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("safetyProfile"u8); writer.WriteObjectValue(SafetyProfile); } + if (Optional.IsDefined(SecurityProfile)) + { + writer.WritePropertyName("securityProfile"u8); + writer.WriteObjectValue(SecurityProfile); + } writer.WriteEndObject(); writer.WriteEndObject(); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.cs index 836f8ea9db02..a3340f15b8b8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.cs @@ -30,6 +30,20 @@ public GalleryImageVersionPatch() public GalleryImageVersionSafetyProfile SafetyProfile { get; set; } /// This is the replication status of the gallery image version. public ReplicationStatus ReplicationStatus { get; } + /// The security profile of a gallery image version. + internal ImageVersionSecurityProfile SecurityProfile { get; set; } + /// Contains UEFI settings for the image version. + public GalleryImageVersionUefiSettings SecurityUefiSettings + { + get => SecurityProfile is null ? default : SecurityProfile.UefiSettings; + set + { + if (SecurityProfile is null) + SecurityProfile = new ImageVersionSecurityProfile(); + SecurityProfile.UefiSettings = value; + } + } + /// Resource tags. public IDictionary Tags { get; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionUefiSettings.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionUefiSettings.Serialization.cs new file mode 100644 index 000000000000..d81b412449f1 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionUefiSettings.Serialization.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class GalleryImageVersionUefiSettings : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(SignatureTemplateNames)) + { + writer.WritePropertyName("signatureTemplateNames"u8); + writer.WriteStartArray(); + foreach (var item in SignatureTemplateNames) + { + writer.WriteStringValue(item.ToString()); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(AdditionalSignatures)) + { + writer.WritePropertyName("additionalSignatures"u8); + writer.WriteObjectValue(AdditionalSignatures); + } + writer.WriteEndObject(); + } + + internal static GalleryImageVersionUefiSettings DeserializeGalleryImageVersionUefiSettings(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> signatureTemplateNames = default; + Optional additionalSignatures = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("signatureTemplateNames"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(new UefiSignatureTemplateName(item.GetString())); + } + signatureTemplateNames = array; + continue; + } + if (property.NameEquals("additionalSignatures"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + additionalSignatures = UefiKeySignatures.DeserializeUefiKeySignatures(property.Value); + continue; + } + } + return new GalleryImageVersionUefiSettings(Optional.ToList(signatureTemplateNames), additionalSignatures.Value); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionUefiSettings.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionUefiSettings.cs new file mode 100644 index 000000000000..d7053c1fc6d5 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionUefiSettings.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + /// Contains UEFI settings for the image version. + public partial class GalleryImageVersionUefiSettings + { + /// Initializes a new instance of GalleryImageVersionUefiSettings. + public GalleryImageVersionUefiSettings() + { + SignatureTemplateNames = new ChangeTrackingList(); + } + + /// Initializes a new instance of GalleryImageVersionUefiSettings. + /// The name of the template(s) that contains default UEFI key signatures that will be added to the image. + /// Additional UEFI key signatures that will be added to the image in addition to the signature templates. + internal GalleryImageVersionUefiSettings(IList signatureTemplateNames, UefiKeySignatures additionalSignatures) + { + SignatureTemplateNames = signatureTemplateNames; + AdditionalSignatures = additionalSignatures; + } + + /// The name of the template(s) that contains default UEFI key signatures that will be added to the image. + public IList SignatureTemplateNames { get; } + /// Additional UEFI key signatures that will be added to the image in addition to the signature templates. + public UefiKeySignatures AdditionalSignatures { get; set; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySharingPermissionType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySharingPermissionType.cs index a77f3a4108db..dd12f5c9952a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySharingPermissionType.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySharingPermissionType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Compute.Models { - /// This property allows you to specify the permission of sharing gallery. <br><br> Possible values are: <br><br> **Private** <br><br> **Groups** <br><br> **Community**. + /// This property allows you to specify the permission of sharing gallery. Possible values are: **Private,** **Groups,** **Community.**. public readonly partial struct GallerySharingPermissionType : IEquatable { private readonly string _value; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageVersionSecurityProfile.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageVersionSecurityProfile.Serialization.cs new file mode 100644 index 000000000000..a8b7a37b10dc --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageVersionSecurityProfile.Serialization.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + internal partial class ImageVersionSecurityProfile : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(UefiSettings)) + { + writer.WritePropertyName("uefiSettings"u8); + writer.WriteObjectValue(UefiSettings); + } + writer.WriteEndObject(); + } + + internal static ImageVersionSecurityProfile DeserializeImageVersionSecurityProfile(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional uefiSettings = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("uefiSettings"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + uefiSettings = GalleryImageVersionUefiSettings.DeserializeGalleryImageVersionUefiSettings(property.Value); + continue; + } + } + return new ImageVersionSecurityProfile(uefiSettings.Value); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageVersionSecurityProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageVersionSecurityProfile.cs new file mode 100644 index 000000000000..e532489cba0d --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageVersionSecurityProfile.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Compute.Models +{ + /// The security profile of a gallery image version. + internal partial class ImageVersionSecurityProfile + { + /// Initializes a new instance of ImageVersionSecurityProfile. + public ImageVersionSecurityProfile() + { + } + + /// Initializes a new instance of ImageVersionSecurityProfile. + /// Contains UEFI settings for the image version. + internal ImageVersionSecurityProfile(GalleryImageVersionUefiSettings uefiSettings) + { + UefiSettings = uefiSettings; + } + + /// Contains UEFI settings for the image version. + public GalleryImageVersionUefiSettings UefiSettings { get; set; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PirCommunityGalleryResourceData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PirCommunityGalleryResourceData.cs index 249300445c3c..c95d8f5ba54e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PirCommunityGalleryResourceData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PirCommunityGalleryResourceData.cs @@ -9,7 +9,7 @@ namespace Azure.ResourceManager.Compute.Models { - /// Base information about the community gallery resource in pir. + /// Base information about the community gallery resource in azure compute gallery. public partial class PirCommunityGalleryResourceData { /// Initializes a new instance of PirCommunityGalleryResourceData. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ReplicationStatusType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ReplicationStatusType.cs index 27c126b0c331..9daeec7b81a2 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ReplicationStatusType.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ReplicationStatusType.cs @@ -23,9 +23,12 @@ public ReplicationStatusType(string value) } private const string ReplicationStatusValue = "ReplicationStatus"; + private const string UefiSettingsValue = "UefiSettings"; /// ReplicationStatus. public static ReplicationStatusType ReplicationStatus { get; } = new ReplicationStatusType(ReplicationStatusValue); + /// UefiSettings. + public static ReplicationStatusType UefiSettings { get; } = new ReplicationStatusType(UefiSettingsValue); /// Determines if two values are the same. public static bool operator ==(ReplicationStatusType left, ReplicationStatusType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryData.Serialization.cs index d0d6cf0422a7..f71fa533683b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryData.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System.Collections.Generic; using System.Text.Json; using Azure.Core; @@ -20,6 +21,7 @@ internal static SharedGalleryData DeserializeSharedGalleryData(JsonElement eleme } Optional name = default; Optional location = default; + Optional> artifactTags = default; Optional uniqueId = default; foreach (var property in element.EnumerateObject()) { @@ -37,6 +39,32 @@ internal static SharedGalleryData DeserializeSharedGalleryData(JsonElement eleme location = new AzureLocation(property.Value.GetString()); continue; } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("artifactTags"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property1 in property0.Value.EnumerateObject()) + { + dictionary.Add(property1.Name, property1.Value.GetString()); + } + artifactTags = dictionary; + continue; + } + } + continue; + } if (property.NameEquals("identifier"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -55,7 +83,7 @@ internal static SharedGalleryData DeserializeSharedGalleryData(JsonElement eleme continue; } } - return new SharedGalleryData(name.Value, Optional.ToNullable(location), uniqueId.Value); + return new SharedGalleryData(name.Value, Optional.ToNullable(location), uniqueId.Value, Optional.ToDictionary(artifactTags)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageData.Serialization.cs index b963e0fbe9f4..d4ac9f600700 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageData.Serialization.cs @@ -35,6 +35,7 @@ internal static SharedGalleryImageData DeserializeSharedGalleryImageData(JsonEle Optional architecture = default; Optional privacyStatementUri = default; Optional eula = default; + Optional> artifactTags = default; Optional uniqueId = default; foreach (var property in element.EnumerateObject()) { @@ -170,6 +171,20 @@ internal static SharedGalleryImageData DeserializeSharedGalleryImageData(JsonEle eula = property0.Value.GetString(); continue; } + if (property0.NameEquals("artifactTags"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property1 in property0.Value.EnumerateObject()) + { + dictionary.Add(property1.Name, property1.Value.GetString()); + } + artifactTags = dictionary; + continue; + } } continue; } @@ -191,7 +206,7 @@ internal static SharedGalleryImageData DeserializeSharedGalleryImageData(JsonEle continue; } } - return new SharedGalleryImageData(name.Value, Optional.ToNullable(location), uniqueId.Value, Optional.ToNullable(osType), Optional.ToNullable(osState), Optional.ToNullable(endOfLifeDate), identifier.Value, recommended.Value, disallowed.Value, Optional.ToNullable(hyperVGeneration), Optional.ToList(features), purchasePlan.Value, Optional.ToNullable(architecture), privacyStatementUri.Value, eula.Value); + return new SharedGalleryImageData(name.Value, Optional.ToNullable(location), uniqueId.Value, Optional.ToNullable(osType), Optional.ToNullable(osState), Optional.ToNullable(endOfLifeDate), identifier.Value, recommended.Value, disallowed.Value, Optional.ToNullable(hyperVGeneration), Optional.ToList(features), purchasePlan.Value, Optional.ToNullable(architecture), privacyStatementUri.Value, eula.Value, Optional.ToDictionary(artifactTags)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageVersionData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageVersionData.Serialization.cs index 01cb0e9aef82..b625f6d279cd 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageVersionData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageVersionData.Serialization.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using System.Text.Json; using Azure.Core; using Azure.ResourceManager.Compute.Models; @@ -26,6 +27,7 @@ internal static SharedGalleryImageVersionData DeserializeSharedGalleryImageVersi Optional endOfLifeDate = default; Optional excludeFromLatest = default; Optional storageProfile = default; + Optional> artifactTags = default; Optional uniqueId = default; foreach (var property in element.EnumerateObject()) { @@ -88,6 +90,20 @@ internal static SharedGalleryImageVersionData DeserializeSharedGalleryImageVersi storageProfile = SharedGalleryImageVersionStorageProfile.DeserializeSharedGalleryImageVersionStorageProfile(property0.Value); continue; } + if (property0.NameEquals("artifactTags"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property1 in property0.Value.EnumerateObject()) + { + dictionary.Add(property1.Name, property1.Value.GetString()); + } + artifactTags = dictionary; + continue; + } } continue; } @@ -109,7 +125,7 @@ internal static SharedGalleryImageVersionData DeserializeSharedGalleryImageVersi continue; } } - return new SharedGalleryImageVersionData(name.Value, Optional.ToNullable(location), uniqueId.Value, Optional.ToNullable(publishedDate), Optional.ToNullable(endOfLifeDate), Optional.ToNullable(excludeFromLatest), storageProfile.Value); + return new SharedGalleryImageVersionData(name.Value, Optional.ToNullable(location), uniqueId.Value, Optional.ToNullable(publishedDate), Optional.ToNullable(endOfLifeDate), Optional.ToNullable(excludeFromLatest), storageProfile.Value, Optional.ToDictionary(artifactTags)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfile.cs index 3c9bd5db87b3..150b44681d24 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfile.cs @@ -20,7 +20,7 @@ public SharingProfile() } /// Initializes a new instance of SharingProfile. - /// This property allows you to specify the permission of sharing gallery. <br><br> Possible values are: <br><br> **Private** <br><br> **Groups** <br><br> **Community**. + /// This property allows you to specify the permission of sharing gallery. Possible values are: **Private,** **Groups,** **Community.**. /// A list of sharing profile groups. /// Information of community gallery if current gallery is shared to community. internal SharingProfile(GallerySharingPermissionType? permission, IReadOnlyList groups, CommunityGalleryInfo communityGalleryInfo) @@ -30,7 +30,7 @@ internal SharingProfile(GallerySharingPermissionType? permission, IReadOnlyList< CommunityGalleryInfo = communityGalleryInfo; } - /// This property allows you to specify the permission of sharing gallery. <br><br> Possible values are: <br><br> **Private** <br><br> **Groups** <br><br> **Community**. + /// This property allows you to specify the permission of sharing gallery. Possible values are: **Private,** **Groups,** **Community.**. public GallerySharingPermissionType? Permission { get; set; } /// A list of sharing profile groups. public IReadOnlyList Groups { get; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroup.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroup.cs index cfb3ed43c9b2..508ab88a8f33 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroup.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroup.cs @@ -20,7 +20,7 @@ public SharingProfileGroup() } /// Initializes a new instance of SharingProfileGroup. - /// This property allows you to specify the type of sharing group. <br><br> Possible values are: <br><br> **Subscriptions** <br><br> **AADTenants**. + /// This property allows you to specify the type of sharing group. Possible values are: **Subscriptions,** **AADTenants.**. /// A list of subscription/tenant ids the gallery is aimed to be shared to. internal SharingProfileGroup(SharingProfileGroupType? groupType, IList ids) { @@ -28,7 +28,7 @@ internal SharingProfileGroup(SharingProfileGroupType? groupType, IList i Ids = ids; } - /// This property allows you to specify the type of sharing group. <br><br> Possible values are: <br><br> **Subscriptions** <br><br> **AADTenants**. + /// This property allows you to specify the type of sharing group. Possible values are: **Subscriptions,** **AADTenants.**. public SharingProfileGroupType? GroupType { get; set; } /// A list of subscription/tenant ids the gallery is aimed to be shared to. public IList Ids { get; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroupType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroupType.cs index 3a405773b878..a5d63ba37f5a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroupType.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroupType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Compute.Models { - /// This property allows you to specify the type of sharing group. <br><br> Possible values are: <br><br> **Subscriptions** <br><br> **AADTenants**. + /// This property allows you to specify the type of sharing group. Possible values are: **Subscriptions,** **AADTenants.**. public readonly partial struct SharingProfileGroupType : IEquatable { private readonly string _value; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdate.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdate.cs index a20229b5daa2..a34134d11e4f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdate.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdate.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.Compute.Models public partial class SharingUpdate { /// Initializes a new instance of SharingUpdate. - /// This property allows you to specify the operation type of gallery sharing update. <br><br> Possible values are: <br><br> **Add** <br><br> **Remove** <br><br> **Reset**. + /// This property allows you to specify the operation type of gallery sharing update. Possible values are: **Add,** **Remove,** **Reset.**. public SharingUpdate(SharingUpdateOperationType operationType) { OperationType = operationType; @@ -22,7 +22,7 @@ public SharingUpdate(SharingUpdateOperationType operationType) } /// Initializes a new instance of SharingUpdate. - /// This property allows you to specify the operation type of gallery sharing update. <br><br> Possible values are: <br><br> **Add** <br><br> **Remove** <br><br> **Reset**. + /// This property allows you to specify the operation type of gallery sharing update. Possible values are: **Add,** **Remove,** **Reset.**. /// A list of sharing profile groups. internal SharingUpdate(SharingUpdateOperationType operationType, IList groups) { @@ -30,7 +30,7 @@ internal SharingUpdate(SharingUpdateOperationType operationType, IList This property allows you to specify the operation type of gallery sharing update. <br><br> Possible values are: <br><br> **Add** <br><br> **Remove** <br><br> **Reset**. + /// This property allows you to specify the operation type of gallery sharing update. Possible values are: **Add,** **Remove,** **Reset.**. public SharingUpdateOperationType OperationType { get; set; } /// A list of sharing profile groups. public IList Groups { get; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdateOperationType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdateOperationType.cs index 5b5921803802..91089826852c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdateOperationType.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdateOperationType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Compute.Models { - /// This property allows you to specify the operation type of gallery sharing update. <br><br> Possible values are: <br><br> **Add** <br><br> **Remove** <br><br> **Reset**. + /// This property allows you to specify the operation type of gallery sharing update. Possible values are: **Add,** **Remove,** **Reset.**. public readonly partial struct SharingUpdateOperationType : IEquatable { private readonly string _value; 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 1f72c2c1377c..d61b646253ec 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. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.**. public enum SupportedOperatingSystemType { /// Windows. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKey.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKey.Serialization.cs new file mode 100644 index 000000000000..e9c8f6282be1 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKey.Serialization.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class UefiKey : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(KeyType)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(KeyType.Value.ToString()); + } + if (Optional.IsCollectionDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static UefiKey DeserializeUefiKey(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional type = default; + Optional> value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = new UefiKeyType(property.Value.GetString()); + continue; + } + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + value = array; + continue; + } + } + return new UefiKey(Optional.ToNullable(type), Optional.ToList(value)); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKey.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKey.cs new file mode 100644 index 000000000000..40c12c7d9760 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKey.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + /// A UEFI key signature. + public partial class UefiKey + { + /// Initializes a new instance of UefiKey. + public UefiKey() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of UefiKey. + /// The type of key signature. + /// The value of the key signature. + internal UefiKey(UefiKeyType? keyType, IList value) + { + KeyType = keyType; + Value = value; + } + + /// The type of key signature. + public UefiKeyType? KeyType { get; set; } + /// The value of the key signature. + public IList Value { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKeySignatures.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKeySignatures.Serialization.cs new file mode 100644 index 000000000000..57abbfe68bad --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKeySignatures.Serialization.cs @@ -0,0 +1,124 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class UefiKeySignatures : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Pk)) + { + writer.WritePropertyName("pk"u8); + writer.WriteObjectValue(Pk); + } + if (Optional.IsCollectionDefined(Kek)) + { + writer.WritePropertyName("kek"u8); + writer.WriteStartArray(); + foreach (var item in Kek) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Db)) + { + writer.WritePropertyName("db"u8); + writer.WriteStartArray(); + foreach (var item in Db) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Dbx)) + { + writer.WritePropertyName("dbx"u8); + writer.WriteStartArray(); + foreach (var item in Dbx) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static UefiKeySignatures DeserializeUefiKeySignatures(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional pk = default; + Optional> kek = default; + Optional> db = default; + Optional> dbx = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("pk"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + pk = UefiKey.DeserializeUefiKey(property.Value); + continue; + } + if (property.NameEquals("kek"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(UefiKey.DeserializeUefiKey(item)); + } + kek = array; + continue; + } + if (property.NameEquals("db"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(UefiKey.DeserializeUefiKey(item)); + } + db = array; + continue; + } + if (property.NameEquals("dbx"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(UefiKey.DeserializeUefiKey(item)); + } + dbx = array; + continue; + } + } + return new UefiKeySignatures(pk.Value, Optional.ToList(kek), Optional.ToList(db), Optional.ToList(dbx)); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKeySignatures.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKeySignatures.cs new file mode 100644 index 000000000000..30c332352b2a --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKeySignatures.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + /// Additional UEFI key signatures that will be added to the image in addition to the signature templates. + public partial class UefiKeySignatures + { + /// Initializes a new instance of UefiKeySignatures. + public UefiKeySignatures() + { + Kek = new ChangeTrackingList(); + Db = new ChangeTrackingList(); + Dbx = new ChangeTrackingList(); + } + + /// Initializes a new instance of UefiKeySignatures. + /// The Platform Key of this image version. + /// The Key Encryption Keys of this image version. + /// The database of UEFI keys for this image version. + /// The database of revoked UEFI keys for this image version. + internal UefiKeySignatures(UefiKey pk, IList kek, IList db, IList dbx) + { + Pk = pk; + Kek = kek; + Db = db; + Dbx = dbx; + } + + /// The Platform Key of this image version. + public UefiKey Pk { get; set; } + /// The Key Encryption Keys of this image version. + public IList Kek { get; } + /// The database of UEFI keys for this image version. + public IList Db { get; } + /// The database of revoked UEFI keys for this image version. + public IList Dbx { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKeyType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKeyType.cs new file mode 100644 index 000000000000..698ecfd10fe4 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKeyType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Compute.Models +{ + /// The type of key signature. + public readonly partial struct UefiKeyType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public UefiKeyType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string Sha256Value = "sha256"; + private const string X509Value = "x509"; + + /// sha256. + public static UefiKeyType Sha256 { get; } = new UefiKeyType(Sha256Value); + /// x509. + public static UefiKeyType X509 { get; } = new UefiKeyType(X509Value); + /// Determines if two values are the same. + public static bool operator ==(UefiKeyType left, UefiKeyType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(UefiKeyType left, UefiKeyType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator UefiKeyType(string value) => new UefiKeyType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is UefiKeyType other && Equals(other); + /// + public bool Equals(UefiKeyType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiSignatureTemplateName.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiSignatureTemplateName.cs new file mode 100644 index 000000000000..8fd764d77a17 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiSignatureTemplateName.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Compute.Models +{ + /// The name of the signature template that contains default UEFI keys. + public readonly partial struct UefiSignatureTemplateName : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public UefiSignatureTemplateName(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NoSignatureTemplateValue = "NoSignatureTemplate"; + private const string MicrosoftUefiCertificateAuthorityTemplateValue = "MicrosoftUefiCertificateAuthorityTemplate"; + private const string MicrosoftWindowsTemplateValue = "MicrosoftWindowsTemplate"; + + /// NoSignatureTemplate. + public static UefiSignatureTemplateName NoSignatureTemplate { get; } = new UefiSignatureTemplateName(NoSignatureTemplateValue); + /// MicrosoftUefiCertificateAuthorityTemplate. + public static UefiSignatureTemplateName MicrosoftUefiCertificateAuthorityTemplate { get; } = new UefiSignatureTemplateName(MicrosoftUefiCertificateAuthorityTemplateValue); + /// MicrosoftWindowsTemplate. + public static UefiSignatureTemplateName MicrosoftWindowsTemplate { get; } = new UefiSignatureTemplateName(MicrosoftWindowsTemplateValue); + /// Determines if two values are the same. + public static bool operator ==(UefiSignatureTemplateName left, UefiSignatureTemplateName right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(UefiSignatureTemplateName left, UefiSignatureTemplateName right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator UefiSignatureTemplateName(string value) => new UefiSignatureTemplateName(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is UefiSignatureTemplateName other && Equals(other); + /// + public bool Equals(UefiSignatureTemplateName other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} 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 a0c5e45f0f72..15d5a47f52fb 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs @@ -32,7 +32,7 @@ public CommunityGalleriesRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-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 546add324c4b..a0ec5f04f730 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs @@ -33,7 +33,7 @@ public CommunityGalleryImageVersionsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-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 65b4b911949b..4f7bd2e7b4f3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs @@ -33,7 +33,7 @@ public CommunityGalleryImagesRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-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 72e0720cc9c6..60de714d8b00 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs @@ -33,7 +33,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 ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-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 921a082f3e45..443a411aadbc 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs @@ -33,7 +33,7 @@ public GalleryApplicationVersionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-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 f9138010cee5..1c3e230cbeab 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs @@ -33,7 +33,7 @@ public GalleryApplicationsRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-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 b795a30ec815..64f207b01dd4 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs @@ -33,7 +33,7 @@ public GalleryImageVersionsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-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 a925633fbe46..4797d04db391 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs @@ -33,7 +33,7 @@ public GalleryImagesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-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 1bf4fcfbabde..7cbb359084af 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs @@ -32,7 +32,7 @@ public GallerySharingProfileRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-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 c00c1001b154..82939c0c0a49 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs @@ -33,7 +33,7 @@ public SharedGalleriesRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-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 18630dfac577..3e8c708b5780 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs @@ -33,7 +33,7 @@ public SharedGalleryImageVersionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-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 fa8066f70fd2..0d4c09f5977d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs @@ -33,7 +33,7 @@ public SharedGalleryImagesRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryData.cs index e3c6c7644910..6b0856a48a45 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryData.cs @@ -5,6 +5,7 @@ #nullable disable +using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Compute.Models; @@ -19,16 +20,21 @@ public partial class SharedGalleryData : PirSharedGalleryResourceData /// Initializes a new instance of SharedGalleryData. internal SharedGalleryData() { + ArtifactTags = new ChangeTrackingDictionary(); } /// Initializes a new instance of SharedGalleryData. /// Resource name. /// Resource location. /// The unique id of this shared gallery. - internal SharedGalleryData(string name, AzureLocation? location, string uniqueId) : base(name, location, uniqueId) + /// The artifact tags of a shared gallery resource. + internal SharedGalleryData(string name, AzureLocation? location, string uniqueId, IReadOnlyDictionary artifactTags) : base(name, location, uniqueId) { + ArtifactTags = artifactTags; } + /// The artifact tags of a shared gallery resource. + public IReadOnlyDictionary ArtifactTags { get; } /// The resource identifier. public ResourceIdentifier Id { get; internal set; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs index 53cbb39080d7..27f614f72b81 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs @@ -22,13 +22,14 @@ public partial class SharedGalleryImageData : PirSharedGalleryResourceData internal SharedGalleryImageData() { Features = new ChangeTrackingList(); + ArtifactTags = new ChangeTrackingDictionary(); } /// Initializes a new instance of SharedGalleryImageData. /// Resource name. /// Resource location. /// The unique id of this shared gallery. - /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**. /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. /// The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. /// This is the gallery image definition identifier. @@ -40,7 +41,8 @@ internal SharedGalleryImageData() /// The architecture of the image. Applicable to OS disks only. /// Privacy statement uri for the current community gallery image. /// End-user license agreement for the current community gallery image. - internal SharedGalleryImageData(string name, AzureLocation? location, string uniqueId, SupportedOperatingSystemType? osType, OperatingSystemStateType? osState, DateTimeOffset? endOfLifeOn, GalleryImageIdentifier identifier, RecommendedMachineConfiguration recommended, Disallowed disallowed, HyperVGeneration? hyperVGeneration, IReadOnlyList features, ImagePurchasePlan purchasePlan, ArchitectureType? architecture, Uri privacyStatementUri, string eula) : base(name, location, uniqueId) + /// The artifact tags of a shared gallery resource. + internal SharedGalleryImageData(string name, AzureLocation? location, string uniqueId, SupportedOperatingSystemType? osType, OperatingSystemStateType? osState, DateTimeOffset? endOfLifeOn, GalleryImageIdentifier identifier, RecommendedMachineConfiguration recommended, Disallowed disallowed, HyperVGeneration? hyperVGeneration, IReadOnlyList features, ImagePurchasePlan purchasePlan, ArchitectureType? architecture, Uri privacyStatementUri, string eula, IReadOnlyDictionary artifactTags) : base(name, location, uniqueId) { OSType = osType; OSState = osState; @@ -54,9 +56,10 @@ internal SharedGalleryImageData(string name, AzureLocation? location, string uni Architecture = architecture; PrivacyStatementUri = privacyStatementUri; Eula = eula; + ArtifactTags = artifactTags; } - /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**. public SupportedOperatingSystemType? OSType { get; } /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. public OperatingSystemStateType? OSState { get; } @@ -86,6 +89,8 @@ public IList DisallowedDiskTypes public Uri PrivacyStatementUri { get; } /// End-user license agreement for the current community gallery image. public string Eula { get; } + /// The artifact tags of a shared gallery resource. + public IReadOnlyDictionary ArtifactTags { get; } /// The resource identifier. public ResourceIdentifier Id { get; internal set; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionData.cs index c7ac85b4cfad..5772471b123d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionData.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Compute.Models; @@ -20,6 +21,7 @@ public partial class SharedGalleryImageVersionData : PirSharedGalleryResourceDat /// Initializes a new instance of SharedGalleryImageVersionData. internal SharedGalleryImageVersionData() { + ArtifactTags = new ChangeTrackingDictionary(); } /// Initializes a new instance of SharedGalleryImageVersionData. @@ -30,12 +32,14 @@ internal SharedGalleryImageVersionData() /// The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable. /// If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. /// Describes the storage profile of the image version. - internal SharedGalleryImageVersionData(string name, AzureLocation? location, string uniqueId, DateTimeOffset? publishedOn, DateTimeOffset? endOfLifeOn, bool? isExcludedFromLatest, SharedGalleryImageVersionStorageProfile storageProfile) : base(name, location, uniqueId) + /// The artifact tags of a shared gallery resource. + internal SharedGalleryImageVersionData(string name, AzureLocation? location, string uniqueId, DateTimeOffset? publishedOn, DateTimeOffset? endOfLifeOn, bool? isExcludedFromLatest, SharedGalleryImageVersionStorageProfile storageProfile, IReadOnlyDictionary artifactTags) : base(name, location, uniqueId) { PublishedOn = publishedOn; EndOfLifeOn = endOfLifeOn; IsExcludedFromLatest = isExcludedFromLatest; StorageProfile = storageProfile; + ArtifactTags = artifactTags; } /// The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable. @@ -46,6 +50,8 @@ internal SharedGalleryImageVersionData(string name, AzureLocation? location, str public bool? IsExcludedFromLatest { get; } /// Describes the storage profile of the image version. public SharedGalleryImageVersionStorageProfile StorageProfile { get; } + /// The artifact tags of a shared gallery resource. + public IReadOnlyDictionary ArtifactTags { get; } /// The resource identifier. public ResourceIdentifier Id { get; internal set; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md index e8a1403bc0e2..34eefb8e526e 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/cd53bce8cf73f7e7ba6cf5ab32baffbe529ae1fb/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: