From 8211bbff85357b5d5205bc7719d74725f2c08aae Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 9 Feb 2022 07:34:45 +0000 Subject: [PATCH] CodeGen from PR 17481 in Azure/azure-rest-api-specs Merge 996e2cef33712558d9ef62fa49464b1feaa03fff into ed4b29fbceaea3cc48f039826db5a92360bc7c56 --- .../src/Generated/GalleriesOperations.cs | 23 +++-- .../GalleriesOperationsExtensions.cs | 16 ++- .../GalleryApplicationVersionsOperations.cs | 10 +- .../GalleryApplicationsOperations.cs | 10 +- .../GalleryImageVersionsOperations.cs | 10 +- .../src/Generated/GalleryImagesOperations.cs | 10 +- .../GallerySharingProfileOperations.cs | 2 +- .../src/Generated/IGalleriesOperations.cs | 6 +- .../Generated/Models/CommunityGalleryInfo.cs | 99 +++++++++++++++++++ .../Models/ConfidentialVMEncryptionType.cs | 23 +++++ .../src/Generated/Models/Gallery.cs | 8 +- ...leryApplicationVersionPublishingProfile.cs | 7 +- .../GalleryArtifactPublishingProfileBase.cs | 13 ++- .../Generated/Models/GalleryExpandParams.cs | 21 ++++ .../Models/GalleryExtendedLocation.cs | 58 +++++++++++ .../Models/GalleryExtendedLocationType.cs | 22 +++++ .../GalleryImageVersionPublishingProfile.cs | 7 +- .../Models/GalleryTargetExtendedLocation.cs | 86 ++++++++++++++++ .../src/Generated/Models/GalleryUpdate.cs | 8 +- .../src/Generated/Models/ImageReference.cs | 14 ++- .../Generated/Models/OSDiskImageEncryption.cs | 13 ++- .../Models/OSDiskImageSecurityProfile.cs | 65 ++++++++++++ .../Generated/Models/RegionalSharingStatus.cs | 71 +++++++++++++ .../src/Generated/Models/SharingProfile.cs | 12 ++- .../Generated/Models/SharingProfileGroup.cs | 9 +- .../Models/SharingProfileGroupTypes.cs | 1 + .../src/Generated/Models/SharingState.cs | 24 +++++ .../src/Generated/Models/SharingStatus.cs | 65 ++++++++++++ .../src/Generated/Models/SharingUpdate.cs | 5 +- .../Models/SharingUpdateOperationTypes.cs | 1 + .../SdkInfo_ComputeManagementClient.cs | 12 +-- 31 files changed, 675 insertions(+), 56 deletions(-) create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/CommunityGalleryInfo.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ConfidentialVMEncryptionType.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryExpandParams.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryExtendedLocation.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryExtendedLocationType.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryTargetExtendedLocation.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OSDiskImageSecurityProfile.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RegionalSharingStatus.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingState.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingStatus.cs diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleriesOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleriesOperations.cs index 51c45fab1cc6d..50ce40ec2d1c9 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleriesOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleriesOperations.cs @@ -117,6 +117,10 @@ internal GalleriesOperations(ComputeManagementClient client) /// The select expression to apply on the operation. Possible values include: /// 'Permissions' /// + /// + /// The expand query option to apply on the operation. Possible values include: + /// 'SharingProfile/Groups' + /// /// /// Headers that will be added to request. /// @@ -138,7 +142,7 @@ internal GalleriesOperations(ComputeManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string galleryName, string select = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string galleryName, string select = default(string), string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -152,7 +156,7 @@ internal GalleriesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryName"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -164,6 +168,7 @@ internal GalleriesOperations(ComputeManagementClient client) tracingParameters.Add("galleryName", galleryName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("select", select); + tracingParameters.Add("expand", expand); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } @@ -182,6 +187,10 @@ internal GalleriesOperations(ComputeManagementClient client) { _queryParameters.Add(string.Format("$select={0}", System.Uri.EscapeDataString(select))); } + if (expand != null) + { + _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -366,7 +375,7 @@ internal GalleriesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -544,7 +553,7 @@ internal GalleriesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -747,7 +756,7 @@ internal GalleriesOperations(ComputeManagementClient client) { gallery.Validate(); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -993,7 +1002,7 @@ internal GalleriesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "gallery"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1191,7 +1200,7 @@ internal GalleriesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryName"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleriesOperationsExtensions.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleriesOperationsExtensions.cs index d5c55ace52ecd..f6a01ab0e57c1 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleriesOperationsExtensions.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleriesOperationsExtensions.cs @@ -137,9 +137,13 @@ public static Gallery Update(this IGalleriesOperations operations, string resour /// The select expression to apply on the operation. Possible values include: /// 'Permissions' /// - public static Gallery Get(this IGalleriesOperations operations, string resourceGroupName, string galleryName, string select = default(string)) + /// + /// The expand query option to apply on the operation. Possible values include: + /// 'SharingProfile/Groups' + /// + public static Gallery Get(this IGalleriesOperations operations, string resourceGroupName, string galleryName, string select = default(string), string expand = default(string)) { - return operations.GetAsync(resourceGroupName, galleryName, select).GetAwaiter().GetResult(); + return operations.GetAsync(resourceGroupName, galleryName, select, expand).GetAwaiter().GetResult(); } /// @@ -158,12 +162,16 @@ public static Gallery Update(this IGalleriesOperations operations, string resour /// The select expression to apply on the operation. Possible values include: /// 'Permissions' /// + /// + /// The expand query option to apply on the operation. Possible values include: + /// 'SharingProfile/Groups' + /// /// /// The cancellation token. /// - public static async Task GetAsync(this IGalleriesOperations operations, string resourceGroupName, string galleryName, string select = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IGalleriesOperations operations, string resourceGroupName, string galleryName, string select = default(string), string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, galleryName, select, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, galleryName, select, expand, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationVersionsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationVersionsOperations.cs index 4d0c5db53a698..337b365f0ad7c 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationVersionsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationVersionsOperations.cs @@ -187,7 +187,7 @@ internal GalleryApplicationVersionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryApplicationVersionName"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -429,7 +429,7 @@ internal GalleryApplicationVersionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryApplicationName"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -656,7 +656,7 @@ internal GalleryApplicationVersionsOperations(ComputeManagementClient client) { galleryApplicationVersion.Validate(); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -923,7 +923,7 @@ internal GalleryApplicationVersionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryApplicationVersion"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1141,7 +1141,7 @@ internal GalleryApplicationVersionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryApplicationVersionName"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationsOperations.cs index 67c33512f424a..7d0ffc20747de 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationsOperations.cs @@ -164,7 +164,7 @@ internal GalleryApplicationsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryApplicationName"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -387,7 +387,7 @@ internal GalleryApplicationsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryName"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -602,7 +602,7 @@ internal GalleryApplicationsOperations(ComputeManagementClient client) { galleryApplication.Validate(); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -858,7 +858,7 @@ internal GalleryApplicationsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryApplication"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1066,7 +1066,7 @@ internal GalleryApplicationsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryApplicationName"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryImageVersionsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryImageVersionsOperations.cs index 99572a8b7478c..984d0893682c5 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryImageVersionsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryImageVersionsOperations.cs @@ -184,7 +184,7 @@ internal GalleryImageVersionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryImageVersionName"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -424,7 +424,7 @@ internal GalleryImageVersionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryImageName"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -650,7 +650,7 @@ internal GalleryImageVersionsOperations(ComputeManagementClient client) { galleryImageVersion.Validate(); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -916,7 +916,7 @@ internal GalleryImageVersionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryImageVersion"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1133,7 +1133,7 @@ internal GalleryImageVersionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryImageVersionName"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryImagesOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryImagesOperations.cs index 378666fcd3ea9..9870d45cec981 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryImagesOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryImagesOperations.cs @@ -164,7 +164,7 @@ internal GalleryImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryImageName"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -387,7 +387,7 @@ internal GalleryImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryName"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -602,7 +602,7 @@ internal GalleryImagesOperations(ComputeManagementClient client) { galleryImage.Validate(); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -858,7 +858,7 @@ internal GalleryImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryImage"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1066,7 +1066,7 @@ internal GalleryImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryImageName"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GallerySharingProfileOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GallerySharingProfileOperations.cs index c4570ab3d105f..094f564a407e5 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GallerySharingProfileOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GallerySharingProfileOperations.cs @@ -130,7 +130,7 @@ internal GallerySharingProfileOperations(ComputeManagementClient client) { sharingUpdate.Validate(); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IGalleriesOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IGalleriesOperations.cs index 2e17fe75814ad..59009c628f34b 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IGalleriesOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IGalleriesOperations.cs @@ -97,6 +97,10 @@ public partial interface IGalleriesOperations /// The select expression to apply on the operation. Possible values /// include: 'Permissions' /// + /// + /// The expand query option to apply on the operation. Possible values + /// include: 'SharingProfile/Groups' + /// /// /// The headers that will be added to request. /// @@ -112,7 +116,7 @@ public partial interface IGalleriesOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string galleryName, string select = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string resourceGroupName, string galleryName, string select = default(string), string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete a Shared Image Gallery. /// diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/CommunityGalleryInfo.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/CommunityGalleryInfo.cs new file mode 100644 index 0000000000000..5f611256ec60b --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/CommunityGalleryInfo.cs @@ -0,0 +1,99 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Compute.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Information of community gallery if current gallery is shared to + /// community + /// + public partial class CommunityGalleryInfo + { + /// + /// Initializes a new instance of the CommunityGalleryInfo class. + /// + public CommunityGalleryInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CommunityGalleryInfo class. + /// + /// Community gallery publisher uri + /// Community gallery publisher contact + /// email + /// Community gallery publisher eula + /// Community gallery public name + /// prefix + /// Contains info about whether + /// community gallery sharing is enabled. + /// Community gallery public name + /// list. + public CommunityGalleryInfo(string publisherUri = default(string), string publisherContact = default(string), string eula = default(string), string publicNamePrefix = default(string), bool? communityGalleryEnabled = default(bool?), IList publicNames = default(IList)) + { + PublisherUri = publisherUri; + PublisherContact = publisherContact; + Eula = eula; + PublicNamePrefix = publicNamePrefix; + CommunityGalleryEnabled = communityGalleryEnabled; + PublicNames = publicNames; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets community gallery publisher uri + /// + [JsonProperty(PropertyName = "publisherUri")] + public string PublisherUri { get; set; } + + /// + /// Gets or sets community gallery publisher contact email + /// + [JsonProperty(PropertyName = "publisherContact")] + public string PublisherContact { get; set; } + + /// + /// Gets or sets community gallery publisher eula + /// + [JsonProperty(PropertyName = "eula")] + public string Eula { get; set; } + + /// + /// Gets or sets community gallery public name prefix + /// + [JsonProperty(PropertyName = "publicNamePrefix")] + public string PublicNamePrefix { get; set; } + + /// + /// Gets contains info about whether community gallery sharing is + /// enabled. + /// + [JsonProperty(PropertyName = "communityGalleryEnabled")] + public bool? CommunityGalleryEnabled { get; private set; } + + /// + /// Gets community gallery public name list. + /// + [JsonProperty(PropertyName = "publicNames")] + public IList PublicNames { get; private set; } + + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ConfidentialVMEncryptionType.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ConfidentialVMEncryptionType.cs new file mode 100644 index 0000000000000..77860c8d36af5 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ConfidentialVMEncryptionType.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Compute.Models +{ + + /// + /// Defines values for ConfidentialVMEncryptionType. + /// + public static class ConfidentialVMEncryptionType + { + public const string EncryptedVMGuestStateOnlyWithPmk = "EncryptedVMGuestStateOnlyWithPmk"; + public const string EncryptedWithPmk = "EncryptedWithPmk"; + public const string EncryptedWithCmk = "EncryptedWithCmk"; + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/Gallery.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/Gallery.cs index cfb521c6d19c5..f21e83cd597dc 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/Gallery.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/Gallery.cs @@ -44,7 +44,7 @@ public Gallery() /// Gallery resource. This property is updatable. /// The current state of the /// gallery. - public Gallery(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string description = default(string), GalleryIdentifier identifier = default(GalleryIdentifier), string provisioningState = default(string), SharingProfile sharingProfile = default(SharingProfile), SoftDeletePolicy softDeletePolicy = default(SoftDeletePolicy)) + public Gallery(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string description = default(string), GalleryIdentifier identifier = default(GalleryIdentifier), string provisioningState = default(string), SharingProfile sharingProfile = default(SharingProfile), SoftDeletePolicy softDeletePolicy = default(SoftDeletePolicy), SharingStatus sharingStatus = default(SharingStatus)) : base(location, id, name, type, tags) { Description = description; @@ -52,6 +52,7 @@ public Gallery() ProvisioningState = provisioningState; SharingProfile = sharingProfile; SoftDeletePolicy = softDeletePolicy; + SharingStatus = sharingStatus; CustomInit(); } @@ -93,6 +94,11 @@ public Gallery() [JsonProperty(PropertyName = "properties.softDeletePolicy")] public SoftDeletePolicy SoftDeletePolicy { get; set; } + /// + /// + [JsonProperty(PropertyName = "properties.sharingStatus")] + public SharingStatus SharingStatus { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.cs index d98374295e373..e79a2868c5598 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.cs @@ -56,10 +56,13 @@ public GalleryApplicationVersionPublishingProfile() /// Optional parameter which specifies /// the mode to be used for replication. This property is not /// updatable. Possible values include: 'Full', 'Shallow' + /// The target extended locations + /// where the Image Version is going to be replicated to. This property + /// is updatable. /// Optional. Whether or not this /// application reports health. - public GalleryApplicationVersionPublishingProfile(UserArtifactSource source, IList targetRegions = default(IList), int? replicaCount = default(int?), bool? excludeFromLatest = default(bool?), System.DateTime? publishedDate = default(System.DateTime?), System.DateTime? endOfLifeDate = default(System.DateTime?), string storageAccountType = default(string), string replicationMode = default(string), UserArtifactManage manageActions = default(UserArtifactManage), bool? enableHealthCheck = default(bool?)) - : base(targetRegions, replicaCount, excludeFromLatest, publishedDate, endOfLifeDate, storageAccountType, replicationMode) + public GalleryApplicationVersionPublishingProfile(UserArtifactSource source, IList targetRegions = default(IList), int? replicaCount = default(int?), bool? excludeFromLatest = default(bool?), System.DateTime? publishedDate = default(System.DateTime?), System.DateTime? endOfLifeDate = default(System.DateTime?), string storageAccountType = default(string), string replicationMode = default(string), IList targetExtendedLocations = default(IList), UserArtifactManage manageActions = default(UserArtifactManage), bool? enableHealthCheck = default(bool?)) + : base(targetRegions, replicaCount, excludeFromLatest, publishedDate, endOfLifeDate, storageAccountType, replicationMode, targetExtendedLocations) { Source = source; ManageActions = manageActions; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryArtifactPublishingProfileBase.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryArtifactPublishingProfileBase.cs index 679fc385fc026..c9c643e788df9 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryArtifactPublishingProfileBase.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryArtifactPublishingProfileBase.cs @@ -55,7 +55,10 @@ public GalleryArtifactPublishingProfileBase() /// Optional parameter which specifies /// the mode to be used for replication. This property is not /// updatable. Possible values include: 'Full', 'Shallow' - public GalleryArtifactPublishingProfileBase(IList targetRegions = default(IList), int? replicaCount = default(int?), bool? excludeFromLatest = default(bool?), System.DateTime? publishedDate = default(System.DateTime?), System.DateTime? endOfLifeDate = default(System.DateTime?), string storageAccountType = default(string), string replicationMode = default(string)) + /// The target extended locations + /// where the Image Version is going to be replicated to. This property + /// is updatable. + public GalleryArtifactPublishingProfileBase(IList targetRegions = default(IList), int? replicaCount = default(int?), bool? excludeFromLatest = default(bool?), System.DateTime? publishedDate = default(System.DateTime?), System.DateTime? endOfLifeDate = default(System.DateTime?), string storageAccountType = default(string), string replicationMode = default(string), IList targetExtendedLocations = default(IList)) { TargetRegions = targetRegions; ReplicaCount = replicaCount; @@ -64,6 +67,7 @@ public GalleryArtifactPublishingProfileBase() EndOfLifeDate = endOfLifeDate; StorageAccountType = storageAccountType; ReplicationMode = replicationMode; + TargetExtendedLocations = targetExtendedLocations; CustomInit(); } @@ -126,5 +130,12 @@ public GalleryArtifactPublishingProfileBase() [JsonProperty(PropertyName = "replicationMode")] public string ReplicationMode { get; set; } + /// + /// Gets or sets the target extended locations where the Image Version + /// is going to be replicated to. This property is updatable. + /// + [JsonProperty(PropertyName = "targetExtendedLocations")] + public IList TargetExtendedLocations { get; set; } + } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryExpandParams.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryExpandParams.cs new file mode 100644 index 0000000000000..4ac1f1ff5567c --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryExpandParams.cs @@ -0,0 +1,21 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Compute.Models +{ + + /// + /// Defines values for GalleryExpandParams. + /// + public static class GalleryExpandParams + { + public const string SharingProfileGroups = "SharingProfile/Groups"; + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryExtendedLocation.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryExtendedLocation.cs new file mode 100644 index 0000000000000..3953136aabc84 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryExtendedLocation.cs @@ -0,0 +1,58 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Compute.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The name of the extended location. + /// + public partial class GalleryExtendedLocation + { + /// + /// Initializes a new instance of the GalleryExtendedLocation class. + /// + public GalleryExtendedLocation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GalleryExtendedLocation class. + /// + /// Possible values include: 'EdgeZone', + /// 'Unknown' + public GalleryExtendedLocation(string name = default(string), string type = default(string)) + { + Name = name; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets possible values include: 'EdgeZone', 'Unknown' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryExtendedLocationType.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryExtendedLocationType.cs new file mode 100644 index 0000000000000..1a1e331bff8a8 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryExtendedLocationType.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Compute.Models +{ + + /// + /// Defines values for GalleryExtendedLocationType. + /// + public static class GalleryExtendedLocationType + { + public const string EdgeZone = "EdgeZone"; + public const string Unknown = "Unknown"; + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryImageVersionPublishingProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryImageVersionPublishingProfile.cs index 504d9743d4646..b7eb7ddf28eb5 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryImageVersionPublishingProfile.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryImageVersionPublishingProfile.cs @@ -54,8 +54,11 @@ public GalleryImageVersionPublishingProfile() /// Optional parameter which specifies /// the mode to be used for replication. This property is not /// updatable. Possible values include: 'Full', 'Shallow' - public GalleryImageVersionPublishingProfile(IList targetRegions = default(IList), int? replicaCount = default(int?), bool? excludeFromLatest = default(bool?), System.DateTime? publishedDate = default(System.DateTime?), System.DateTime? endOfLifeDate = default(System.DateTime?), string storageAccountType = default(string), string replicationMode = default(string)) - : base(targetRegions, replicaCount, excludeFromLatest, publishedDate, endOfLifeDate, storageAccountType, replicationMode) + /// The target extended locations + /// where the Image Version is going to be replicated to. This property + /// is updatable. + public GalleryImageVersionPublishingProfile(IList targetRegions = default(IList), int? replicaCount = default(int?), bool? excludeFromLatest = default(bool?), System.DateTime? publishedDate = default(System.DateTime?), System.DateTime? endOfLifeDate = default(System.DateTime?), string storageAccountType = default(string), string replicationMode = default(string), IList targetExtendedLocations = default(IList)) + : base(targetRegions, replicaCount, excludeFromLatest, publishedDate, endOfLifeDate, storageAccountType, replicationMode, targetExtendedLocations) { CustomInit(); } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryTargetExtendedLocation.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryTargetExtendedLocation.cs new file mode 100644 index 0000000000000..f87b86327e83e --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryTargetExtendedLocation.cs @@ -0,0 +1,86 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Compute.Models +{ + using Newtonsoft.Json; + using System.Linq; + + public partial class GalleryTargetExtendedLocation + { + /// + /// Initializes a new instance of the GalleryTargetExtendedLocation + /// class. + /// + public GalleryTargetExtendedLocation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GalleryTargetExtendedLocation + /// class. + /// + /// The name of the region. + /// The number of replicas + /// of the Image Version to be created per extended location. This + /// property is updatable. + /// Specifies the storage account type + /// to be used to store the image. This property is not updatable. + /// Possible values include: 'Standard_LRS', 'Standard_ZRS', + /// 'Premium_LRS' + public GalleryTargetExtendedLocation(string name = default(string), GalleryExtendedLocation extendedLocation = default(GalleryExtendedLocation), int? extendedLocationReplicaCount = default(int?), string storageAccountType = default(string), EncryptionImages encryption = default(EncryptionImages)) + { + Name = name; + ExtendedLocation = extendedLocation; + ExtendedLocationReplicaCount = extendedLocationReplicaCount; + StorageAccountType = storageAccountType; + Encryption = encryption; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the region. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// + [JsonProperty(PropertyName = "extendedLocation")] + public GalleryExtendedLocation ExtendedLocation { get; set; } + + /// + /// Gets or sets the number of replicas of the Image Version to be + /// created per extended location. This property is updatable. + /// + [JsonProperty(PropertyName = "extendedLocationReplicaCount")] + public int? ExtendedLocationReplicaCount { get; set; } + + /// + /// Gets or sets specifies the storage account type to be used to store + /// the image. This property is not updatable. Possible values include: + /// 'Standard_LRS', 'Standard_ZRS', 'Premium_LRS' + /// + [JsonProperty(PropertyName = "storageAccountType")] + public string StorageAccountType { get; set; } + + /// + /// + [JsonProperty(PropertyName = "encryption")] + public EncryptionImages Encryption { get; set; } + + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryUpdate.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryUpdate.cs index 2e4d3f1ec9962..cc76a8e5b1701 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryUpdate.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryUpdate.cs @@ -43,7 +43,7 @@ public GalleryUpdate() /// Gallery resource. This property is updatable. /// The current state of the /// gallery. - public GalleryUpdate(string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string description = default(string), GalleryIdentifier identifier = default(GalleryIdentifier), string provisioningState = default(string), SharingProfile sharingProfile = default(SharingProfile), SoftDeletePolicy softDeletePolicy = default(SoftDeletePolicy)) + public GalleryUpdate(string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string description = default(string), GalleryIdentifier identifier = default(GalleryIdentifier), string provisioningState = default(string), SharingProfile sharingProfile = default(SharingProfile), SoftDeletePolicy softDeletePolicy = default(SoftDeletePolicy), SharingStatus sharingStatus = default(SharingStatus)) : base(id, name, type, tags) { Description = description; @@ -51,6 +51,7 @@ public GalleryUpdate() ProvisioningState = provisioningState; SharingProfile = sharingProfile; SoftDeletePolicy = softDeletePolicy; + SharingStatus = sharingStatus; CustomInit(); } @@ -92,5 +93,10 @@ public GalleryUpdate() [JsonProperty(PropertyName = "properties.softDeletePolicy")] public SoftDeletePolicy SoftDeletePolicy { get; set; } + /// + /// + [JsonProperty(PropertyName = "properties.sharingStatus")] + public SharingStatus SharingStatus { get; private set; } + } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ImageReference.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ImageReference.cs index a84ee1117dc78..e1093f302a46d 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ImageReference.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ImageReference.cs @@ -45,7 +45,12 @@ public ImageReference() /// and Build are decimal numbers. Specify 'latest' to use the latest /// version of an image available at deploy time. Even if you use /// 'latest', the VM image will not automatically update after deploy - /// time even if a new version becomes available. + /// time even if a new version becomes available. Please do not use + /// field 'version' for gallery image deployment, gallery image should + /// always use 'id' field for deployment, to use 'latest' version of + /// gallery image, just set + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}' + /// in the 'id' field without version input. /// Specifies in decimal numbers, the /// version of platform image or marketplace image used to create the /// virtual machine. This readonly field differs from 'version', only @@ -100,7 +105,12 @@ public ImageReference() /// are decimal numbers. Specify 'latest' to use the latest version of /// an image available at deploy time. Even if you use 'latest', the VM /// image will not automatically update after deploy time even if a new - /// version becomes available. + /// version becomes available. Please do not use field 'version' for + /// gallery image deployment, gallery image should always use 'id' + /// field for deployment, to use 'latest' version of gallery image, + /// just set + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}' + /// in the 'id' field without version input. /// [JsonProperty(PropertyName = "version")] public string Version { get; set; } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OSDiskImageEncryption.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OSDiskImageEncryption.cs index f3a17cb418836..0f25b4a2d4da7 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OSDiskImageEncryption.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OSDiskImageEncryption.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.Compute.Models { + using Newtonsoft.Json; using System.Linq; /// @@ -30,9 +31,12 @@ public OSDiskImageEncryption() /// /// A relative URI containing the /// resource ID of the disk encryption set. - public OSDiskImageEncryption(string diskEncryptionSetId = default(string)) + /// This property specifies the security + /// profile of an OS disk image. + public OSDiskImageEncryption(string diskEncryptionSetId = default(string), OSDiskImageSecurityProfile securityProfile = default(OSDiskImageSecurityProfile)) : base(diskEncryptionSetId) { + SecurityProfile = securityProfile; CustomInit(); } @@ -41,5 +45,12 @@ public OSDiskImageEncryption() /// partial void CustomInit(); + /// + /// Gets or sets this property specifies the security profile of an OS + /// disk image. + /// + [JsonProperty(PropertyName = "securityProfile")] + public OSDiskImageSecurityProfile SecurityProfile { get; set; } + } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OSDiskImageSecurityProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OSDiskImageSecurityProfile.cs new file mode 100644 index 0000000000000..0db8d04bc948b --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OSDiskImageSecurityProfile.cs @@ -0,0 +1,65 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Compute.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Contains security profile for an OS disk image. + /// + public partial class OSDiskImageSecurityProfile + { + /// + /// Initializes a new instance of the OSDiskImageSecurityProfile class. + /// + public OSDiskImageSecurityProfile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OSDiskImageSecurityProfile class. + /// + /// confidential VM + /// encryption types. Possible values include: + /// 'EncryptedVMGuestStateOnlyWithPmk', 'EncryptedWithPmk', + /// 'EncryptedWithCmk' + /// secure VM disk encryption + /// set id + public OSDiskImageSecurityProfile(string confidentialVMEncryptionType = default(string), string secureVMDiskEncryptionSetId = default(string)) + { + ConfidentialVMEncryptionType = confidentialVMEncryptionType; + SecureVMDiskEncryptionSetId = secureVMDiskEncryptionSetId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets confidential VM encryption types. Possible values + /// include: 'EncryptedVMGuestStateOnlyWithPmk', 'EncryptedWithPmk', + /// 'EncryptedWithCmk' + /// + [JsonProperty(PropertyName = "confidentialVMEncryptionType")] + public string ConfidentialVMEncryptionType { get; set; } + + /// + /// Gets or sets secure VM disk encryption set id + /// + [JsonProperty(PropertyName = "secureVMDiskEncryptionSetId")] + public string SecureVMDiskEncryptionSetId { get; set; } + + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RegionalSharingStatus.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RegionalSharingStatus.cs new file mode 100644 index 0000000000000..327b54618d952 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RegionalSharingStatus.cs @@ -0,0 +1,71 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Compute.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Gallery regional sharing status + /// + public partial class RegionalSharingStatus + { + /// + /// Initializes a new instance of the RegionalSharingStatus class. + /// + public RegionalSharingStatus() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RegionalSharingStatus class. + /// + /// Region name + /// Gallery sharing state in current region. + /// Possible values include: 'Succeeded', 'InProgress', 'Failed', + /// 'Unknown' + /// Details of gallery regional sharing + /// failure. + public RegionalSharingStatus(string region = default(string), string state = default(string), string details = default(string)) + { + Region = region; + State = state; + Details = details; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets region name + /// + [JsonProperty(PropertyName = "region")] + public string Region { get; set; } + + /// + /// Gets or sets gallery sharing state in current region. Possible + /// values include: 'Succeeded', 'InProgress', 'Failed', 'Unknown' + /// + [JsonProperty(PropertyName = "state")] + public string State { get; set; } + + /// + /// Gets or sets details of gallery regional sharing failure. + /// + [JsonProperty(PropertyName = "details")] + public string Details { get; set; } + + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingProfile.cs index 772a9e641f95d..8ce538b2c6ea4 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingProfile.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingProfile.cs @@ -36,10 +36,13 @@ public SharingProfile() /// are: <br><br> **Private** <br><br> /// **Groups**. Possible values include: 'Private', 'Groups' /// A list of sharing profile groups. - public SharingProfile(string permissions = default(string), IList groups = default(IList)) + /// Information of community gallery + /// if current gallery is shared to community. + public SharingProfile(string permissions = default(string), IList groups = default(IList), object communityGalleryInfo = default(object)) { Permissions = permissions; Groups = groups; + CommunityGalleryInfo = communityGalleryInfo; CustomInit(); } @@ -64,5 +67,12 @@ public SharingProfile() [JsonProperty(PropertyName = "groups")] public IList Groups { get; private set; } + /// + /// Gets or sets information of community gallery if current gallery is + /// shared to community. + /// + [JsonProperty(PropertyName = "communityGalleryInfo")] + public object CommunityGalleryInfo { get; set; } + } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingProfileGroup.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingProfileGroup.cs index 7a8e4df6262c4..4e23b163f9291 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingProfileGroup.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingProfileGroup.cs @@ -34,8 +34,8 @@ public SharingProfileGroup() /// This property allows you to specify the type of /// sharing group. <br><br> Possible values are: /// <br><br> **Subscriptions** <br><br> - /// **AADTenants**. Possible values include: 'Subscriptions', - /// 'AADTenants' + /// **AADTenants** <br><br> **Community**. Possible values + /// include: 'Subscriptions', 'AADTenants', 'Community' /// A list of subscription/tenant ids the gallery is /// aimed to be shared to. public SharingProfileGroup(string type = default(string), IList ids = default(IList)) @@ -54,8 +54,9 @@ public SharingProfileGroup() /// Gets or sets this property allows you to specify the type of /// sharing group. &lt;br&gt;&lt;br&gt; Possible values /// are: &lt;br&gt;&lt;br&gt; **Subscriptions** - /// &lt;br&gt;&lt;br&gt; **AADTenants**. Possible - /// values include: 'Subscriptions', 'AADTenants' + /// &lt;br&gt;&lt;br&gt; **AADTenants** + /// &lt;br&gt;&lt;br&gt; **Community**. Possible values + /// include: 'Subscriptions', 'AADTenants', 'Community' /// [JsonProperty(PropertyName = "type")] public string Type { get; set; } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingProfileGroupTypes.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingProfileGroupTypes.cs index 1f1724bed836d..a9bb49a168384 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingProfileGroupTypes.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingProfileGroupTypes.cs @@ -18,5 +18,6 @@ public static class SharingProfileGroupTypes { public const string Subscriptions = "Subscriptions"; public const string AADTenants = "AADTenants"; + public const string Community = "Community"; } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingState.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingState.cs new file mode 100644 index 0000000000000..0042d62cee821 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingState.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Compute.Models +{ + + /// + /// Defines values for SharingState. + /// + public static class SharingState + { + public const string Succeeded = "Succeeded"; + public const string InProgress = "InProgress"; + public const string Failed = "Failed"; + public const string Unknown = "Unknown"; + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingStatus.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingStatus.cs new file mode 100644 index 0000000000000..b3c80c0b425d4 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingStatus.cs @@ -0,0 +1,65 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Compute.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Sharing status of current gallery. + /// + public partial class SharingStatus + { + /// + /// Initializes a new instance of the SharingStatus class. + /// + public SharingStatus() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SharingStatus class. + /// + /// Aggregated sharing state of current + /// gallery. Possible values include: 'Succeeded', 'InProgress', + /// 'Failed', 'Unknown' + /// Summary of all regional sharing + /// status. + public SharingStatus(string aggregatedState = default(string), IList summary = default(IList)) + { + AggregatedState = aggregatedState; + Summary = summary; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets aggregated sharing state of current gallery. Possible + /// values include: 'Succeeded', 'InProgress', 'Failed', 'Unknown' + /// + [JsonProperty(PropertyName = "aggregatedState")] + public string AggregatedState { get; set; } + + /// + /// Gets or sets summary of all regional sharing status. + /// + [JsonProperty(PropertyName = "summary")] + public IList Summary { get; set; } + + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingUpdate.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingUpdate.cs index a51aa0ad30dc7..e0c8b03447c88 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingUpdate.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingUpdate.cs @@ -37,7 +37,8 @@ public SharingUpdate() /// operation type of gallery sharing update. <br><br> /// Possible values are: <br><br> **Add** /// <br><br> **Remove** <br><br> **Reset**. - /// Possible values include: 'Add', 'Remove', 'Reset' + /// Possible values include: 'Add', 'Remove', 'Reset', + /// 'EnableCommunity' /// A list of sharing profile groups. public SharingUpdate(string operationType, IList groups = default(IList)) { @@ -57,7 +58,7 @@ public SharingUpdate() /// Possible values are: &lt;br&gt;&lt;br&gt; **Add** /// &lt;br&gt;&lt;br&gt; **Remove** /// &lt;br&gt;&lt;br&gt; **Reset**. Possible values - /// include: 'Add', 'Remove', 'Reset' + /// include: 'Add', 'Remove', 'Reset', 'EnableCommunity' /// [JsonProperty(PropertyName = "operationType")] public string OperationType { get; set; } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingUpdateOperationTypes.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingUpdateOperationTypes.cs index 821acf46873ff..a778c2867b583 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingUpdateOperationTypes.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SharingUpdateOperationTypes.cs @@ -19,5 +19,6 @@ public static class SharingUpdateOperationTypes public const string Add = "Add"; public const string Remove = "Remove"; public const string Reset = "Reset"; + public const string EnableCommunity = "EnableCommunity"; } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs index 76d1b022e320e..bf527b96fc8f6 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs @@ -36,12 +36,12 @@ public static IEnumerable> ApiInfo_ComputeManageme new Tuple("Compute", "DiskEncryptionSets", "2021-08-01"), new Tuple("Compute", "DiskRestorePoint", "2021-08-01"), new Tuple("Compute", "Disks", "2021-08-01"), - new Tuple("Compute", "Galleries", "2021-07-01"), - new Tuple("Compute", "GalleryApplicationVersions", "2021-07-01"), - new Tuple("Compute", "GalleryApplications", "2021-07-01"), - new Tuple("Compute", "GalleryImageVersions", "2021-07-01"), - new Tuple("Compute", "GalleryImages", "2021-07-01"), - new Tuple("Compute", "GallerySharingProfile", "2021-07-01"), + new Tuple("Compute", "Galleries", "2021-10-01"), + new Tuple("Compute", "GalleryApplicationVersions", "2021-10-01"), + new Tuple("Compute", "GalleryApplications", "2021-10-01"), + new Tuple("Compute", "GalleryImageVersions", "2021-10-01"), + new Tuple("Compute", "GalleryImages", "2021-10-01"), + new Tuple("Compute", "GallerySharingProfile", "2021-10-01"), new Tuple("Compute", "Images", "2021-11-01"), new Tuple("Compute", "LogAnalytics", "2021-11-01"), new Tuple("Compute", "Operations", "2021-11-01"),