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..ce402fffbcb5e 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 @@ -37,6 +37,9 @@ public GalleryApplicationVersionPublishingProfile() /// The target regions where the Image /// Version is going to be replicated to. This property is /// updatable. + /// The target extended locations + /// where the Image Version is going to be replicated to. This property + /// is updatable. /// The number of replicas of the Image /// Version to be created per region. This property would take effect /// for a region when regionalReplicaCount is not specified. This @@ -58,8 +61,8 @@ public GalleryApplicationVersionPublishingProfile() /// updatable. Possible values include: 'Full', 'Shallow' /// 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), IList targetExtendedLocations = 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, targetExtendedLocations, replicaCount, excludeFromLatest, publishedDate, endOfLifeDate, storageAccountType, replicationMode) { 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..60ffd354f230e 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 @@ -36,6 +36,9 @@ public GalleryArtifactPublishingProfileBase() /// The target regions where the Image /// Version is going to be replicated to. This property is /// updatable. + /// The target extended locations + /// where the Image Version is going to be replicated to. This property + /// is updatable. /// The number of replicas of the Image /// Version to be created per region. This property would take effect /// for a region when regionalReplicaCount is not specified. This @@ -55,9 +58,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)) + public GalleryArtifactPublishingProfileBase(IList targetRegions = default(IList), IList targetExtendedLocations = 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)) { TargetRegions = targetRegions; + TargetExtendedLocations = targetExtendedLocations; ReplicaCount = replicaCount; ExcludeFromLatest = excludeFromLatest; PublishedDate = publishedDate; @@ -79,6 +83,13 @@ public GalleryArtifactPublishingProfileBase() [JsonProperty(PropertyName = "targetRegions")] public IList TargetRegions { 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; } + /// /// Gets or sets the number of replicas of the Image Version to be /// created per region. This property would take effect for a region 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..d3da4bf8354f7 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 @@ -35,6 +35,9 @@ public GalleryImageVersionPublishingProfile() /// The target regions where the Image /// Version is going to be replicated to. This property is /// updatable. + /// The target extended locations + /// where the Image Version is going to be replicated to. This property + /// is updatable. /// The number of replicas of the Image /// Version to be created per region. This property would take effect /// for a region when regionalReplicaCount is not specified. This @@ -54,8 +57,8 @@ 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) + public GalleryImageVersionPublishingProfile(IList targetRegions = default(IList), IList targetExtendedLocations = 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, targetExtendedLocations, replicaCount, excludeFromLatest, publishedDate, endOfLifeDate, storageAccountType, replicationMode) { 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; } + + } +}