From a634497b4cc1182016389f35ef77dc41cab91828 Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Mon, 27 Feb 2023 23:23:50 -0500 Subject: [PATCH 1/3] track 1 changes with modelvalidation fixes --- .../Models/DiskEncryptionSetParameters.cs | 14 +---- .../Models/NetworkInterfaceReference.cs | 7 +-- .../src/Generated/Models/SubResource.cs | 4 +- .../Generated/Models/SubResourceReadOnly.cs | 4 +- .../Models/SubResourceWithColocationStatus.cs | 8 +-- .../Models/VirtualMachineCaptureResult.cs | 8 +-- .../VirtualMachineScaleSetExtensionUpdate.cs | 7 +-- .../VirtualMachineScaleSetIPConfiguration.cs | 6 +- ...tualMachineScaleSetNetworkConfiguration.cs | 6 +- ...ualMachineScaleSetUpdateIPConfiguration.cs | 7 +-- ...chineScaleSetUpdateNetworkConfiguration.cs | 7 +-- .../VirtualMachineScaleSetVMExtension.cs | 7 +-- ...VirtualMachineScaleSetVMExtensionUpdate.cs | 7 +-- .../VirtualMachineScaleSetVMInstanceView.cs | 55 +------------------ 14 files changed, 36 insertions(+), 111 deletions(-) diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DiskEncryptionSetParameters.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DiskEncryptionSetParameters.cs index c8a6508b3b79..a88328f63ee8 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DiskEncryptionSetParameters.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DiskEncryptionSetParameters.cs @@ -10,6 +10,8 @@ namespace Microsoft.Azure.Management.Compute.Models { + using Microsoft.Rest; + using Microsoft.Rest.Azure; using System.Linq; /// @@ -19,7 +21,7 @@ namespace Microsoft.Azure.Management.Compute.Models /// disk. Please refer https://aka.ms/mdssewithcmkoverview for more /// details. /// - public partial class DiskEncryptionSetParameters : SubResource + public partial class DiskEncryptionSetParameters : IResource { /// /// Initializes a new instance of the DiskEncryptionSetParameters @@ -30,16 +32,6 @@ public DiskEncryptionSetParameters() CustomInit(); } - /// - /// Initializes a new instance of the DiskEncryptionSetParameters - /// class. - /// - /// Resource Id - public DiskEncryptionSetParameters(string id = default(string)) - : base(id) - { - CustomInit(); - } /// /// An initialization method that performs custom operations like setting defaults diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/NetworkInterfaceReference.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/NetworkInterfaceReference.cs index 063e64a641ce..4a30f32209ba 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/NetworkInterfaceReference.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/NetworkInterfaceReference.cs @@ -11,6 +11,7 @@ namespace Microsoft.Azure.Management.Compute.Models { using Microsoft.Rest; + using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; @@ -19,7 +20,7 @@ namespace Microsoft.Azure.Management.Compute.Models /// Describes a network interface reference. /// [Rest.Serialization.JsonTransformation] - public partial class NetworkInterfaceReference : SubResource + public partial class NetworkInterfaceReference : IResource { /// /// Initializes a new instance of the NetworkInterfaceReference class. @@ -32,14 +33,12 @@ public NetworkInterfaceReference() /// /// Initializes a new instance of the NetworkInterfaceReference class. /// - /// Resource Id /// Specifies the primary network interface in /// case the virtual machine has more than 1 network interface. /// Specify what happens to the network /// interface when the VM is deleted. Possible values include: /// 'Delete', 'Detach' - public NetworkInterfaceReference(string id = default(string), bool? primary = default(bool?), string deleteOption = default(string)) - : base(id) + public NetworkInterfaceReference(bool? primary = default(bool?), string deleteOption = default(string)) { Primary = primary; DeleteOption = deleteOption; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SubResource.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SubResource.cs index 6ca0177652d9..6db613291fae 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SubResource.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SubResource.cs @@ -10,12 +10,10 @@ namespace Microsoft.Azure.Management.Compute.Models { - using Microsoft.Rest; - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Linq; - public partial class SubResource : IResource + public partial class SubResource { /// /// Initializes a new instance of the SubResource class. diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SubResourceReadOnly.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SubResourceReadOnly.cs index cb9b882cbf51..4bf2726f8ee8 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SubResourceReadOnly.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SubResourceReadOnly.cs @@ -10,12 +10,10 @@ namespace Microsoft.Azure.Management.Compute.Models { - using Microsoft.Rest; - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Linq; - public partial class SubResourceReadOnly : IResource + public partial class SubResourceReadOnly { /// /// Initializes a new instance of the SubResourceReadOnly class. diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SubResourceWithColocationStatus.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SubResourceWithColocationStatus.cs index a90746619824..e0b9d1f2304b 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SubResourceWithColocationStatus.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SubResourceWithColocationStatus.cs @@ -10,10 +10,12 @@ namespace Microsoft.Azure.Management.Compute.Models { + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Linq; - public partial class SubResourceWithColocationStatus : SubResource + public partial class SubResourceWithColocationStatus : IResource { /// /// Initializes a new instance of the SubResourceWithColocationStatus @@ -28,11 +30,9 @@ public SubResourceWithColocationStatus() /// Initializes a new instance of the SubResourceWithColocationStatus /// class. /// - /// Resource Id /// Describes colocation status of a /// resource in the Proximity Placement Group. - public SubResourceWithColocationStatus(string id = default(string), InstanceViewStatus colocationStatus = default(InstanceViewStatus)) - : base(id) + public SubResourceWithColocationStatus(InstanceViewStatus colocationStatus = default(InstanceViewStatus)) { ColocationStatus = colocationStatus; CustomInit(); diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineCaptureResult.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineCaptureResult.cs index 95398bbdf8ad..a99ef8504432 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineCaptureResult.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineCaptureResult.cs @@ -10,6 +10,8 @@ namespace Microsoft.Azure.Management.Compute.Models { + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -18,7 +20,7 @@ namespace Microsoft.Azure.Management.Compute.Models /// /// Output of virtual machine capture operation. /// - public partial class VirtualMachineCaptureResult : SubResource + public partial class VirtualMachineCaptureResult : IResource { /// /// Initializes a new instance of the VirtualMachineCaptureResult @@ -33,7 +35,6 @@ public VirtualMachineCaptureResult() /// Initializes a new instance of the VirtualMachineCaptureResult /// class. /// - /// Resource Id /// the schema of the captured virtual /// machine /// the version of the content @@ -41,8 +42,7 @@ public VirtualMachineCaptureResult() /// machine /// a list of resource items of the captured /// virtual machine - public VirtualMachineCaptureResult(string id = default(string), string schema = default(string), string contentVersion = default(string), object parameters = default(object), IList resources = default(IList)) - : base(id) + public VirtualMachineCaptureResult(string schema = default(string), string contentVersion = default(string), object parameters = default(object), IList resources = default(IList)) { Schema = schema; ContentVersion = contentVersion; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionUpdate.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionUpdate.cs index a100df931865..11e1ba59579c 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionUpdate.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionUpdate.cs @@ -11,6 +11,7 @@ namespace Microsoft.Azure.Management.Compute.Models { using Microsoft.Rest; + using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; @@ -21,7 +22,7 @@ namespace Microsoft.Azure.Management.Compute.Models /// Describes a Virtual Machine Scale Set Extension. /// [Rest.Serialization.JsonTransformation] - public partial class VirtualMachineScaleSetExtensionUpdate : SubResourceReadOnly + public partial class VirtualMachineScaleSetExtensionUpdate : IResource { /// /// Initializes a new instance of the @@ -36,7 +37,6 @@ public VirtualMachineScaleSetExtensionUpdate() /// Initializes a new instance of the /// VirtualMachineScaleSetExtensionUpdate class. /// - /// Resource Id /// The name of the extension. /// Resource type /// If a value is provided and is @@ -73,8 +73,7 @@ public VirtualMachineScaleSetExtensionUpdate() /// The extensions /// protected settings that are passed by reference, and consumed from /// key vault - public VirtualMachineScaleSetExtensionUpdate(string id = default(string), string name = default(string), string type = default(string), string forceUpdateTag = default(string), string publisher = default(string), string type1 = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), string provisioningState = default(string), IList provisionAfterExtensions = default(IList), bool? suppressFailures = default(bool?), KeyVaultSecretReference protectedSettingsFromKeyVault = default(KeyVaultSecretReference)) - : base(id) + public VirtualMachineScaleSetExtensionUpdate(string name = default(string), string type = default(string), string forceUpdateTag = default(string), string publisher = default(string), string type1 = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), string provisioningState = default(string), IList provisionAfterExtensions = default(IList), bool? suppressFailures = default(bool?), KeyVaultSecretReference protectedSettingsFromKeyVault = default(KeyVaultSecretReference)) { Name = name; Type = type; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.cs index 261206a71597..9a89b2a68020 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.cs @@ -22,7 +22,7 @@ namespace Microsoft.Azure.Management.Compute.Models /// configuration. /// [Rest.Serialization.JsonTransformation] - public partial class VirtualMachineScaleSetIPConfiguration : SubResource + public partial class VirtualMachineScaleSetIPConfiguration { /// /// Initializes a new instance of the @@ -38,7 +38,6 @@ public VirtualMachineScaleSetIPConfiguration() /// VirtualMachineScaleSetIPConfiguration class. /// /// The IP configuration name. - /// Resource Id /// Specifies the identifier of the /// subnet. /// Specifies the primary network interface in @@ -67,8 +66,7 @@ public VirtualMachineScaleSetIPConfiguration() /// can reference inbound nat pools of one public and one internal load /// balancer. Multiple scale sets cannot use the same basic sku load /// balancer. - public VirtualMachineScaleSetIPConfiguration(string name, string id = default(string), ApiEntityReference subnet = default(ApiEntityReference), bool? primary = default(bool?), VirtualMachineScaleSetPublicIPAddressConfiguration publicIPAddressConfiguration = default(VirtualMachineScaleSetPublicIPAddressConfiguration), string privateIPAddressVersion = default(string), IList applicationGatewayBackendAddressPools = default(IList), IList applicationSecurityGroups = default(IList), IList loadBalancerBackendAddressPools = default(IList), IList loadBalancerInboundNatPools = default(IList)) - : base(id) + public VirtualMachineScaleSetIPConfiguration(string name, ApiEntityReference subnet = default(ApiEntityReference), bool? primary = default(bool?), VirtualMachineScaleSetPublicIPAddressConfiguration publicIPAddressConfiguration = default(VirtualMachineScaleSetPublicIPAddressConfiguration), string privateIPAddressVersion = default(string), IList applicationGatewayBackendAddressPools = default(IList), IList applicationSecurityGroups = default(IList), IList loadBalancerBackendAddressPools = default(IList), IList loadBalancerInboundNatPools = default(IList)) { Name = name; Subnet = subnet; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs index eed8ac43f52f..d6de04a9f6fe 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs @@ -22,7 +22,7 @@ namespace Microsoft.Azure.Management.Compute.Models /// configurations. /// [Rest.Serialization.JsonTransformation] - public partial class VirtualMachineScaleSetNetworkConfiguration : SubResource + public partial class VirtualMachineScaleSetNetworkConfiguration { /// /// Initializes a new instance of the @@ -40,7 +40,6 @@ public VirtualMachineScaleSetNetworkConfiguration() /// The network configuration name. /// Specifies the IP configurations of /// the network interface. - /// Resource Id /// Specifies the primary network interface in /// case the virtual machine has more than 1 network interface. /// Specifies whether the @@ -58,8 +57,7 @@ public VirtualMachineScaleSetNetworkConfiguration() /// Specify what happens to the network /// interface when the VM is deleted. Possible values include: /// 'Delete', 'Detach' - public VirtualMachineScaleSetNetworkConfiguration(string name, IList ipConfigurations, string id = default(string), bool? primary = default(bool?), bool? enableAcceleratedNetworking = default(bool?), bool? disableTcpStateTracking = default(bool?), bool? enableFpga = default(bool?), SubResource networkSecurityGroup = default(SubResource), VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings = default(VirtualMachineScaleSetNetworkConfigurationDnsSettings), bool? enableIPForwarding = default(bool?), string deleteOption = default(string)) - : base(id) + public VirtualMachineScaleSetNetworkConfiguration(string name, IList ipConfigurations, bool? primary = default(bool?), bool? enableAcceleratedNetworking = default(bool?), bool? disableTcpStateTracking = default(bool?), bool? enableFpga = default(bool?), SubResource networkSecurityGroup = default(SubResource), VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings = default(VirtualMachineScaleSetNetworkConfigurationDnsSettings), bool? enableIPForwarding = default(bool?), string deleteOption = default(string)) { Name = name; Primary = primary; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateIPConfiguration.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateIPConfiguration.cs index 05a7a7829ec5..b70b05f5047f 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateIPConfiguration.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateIPConfiguration.cs @@ -11,6 +11,7 @@ namespace Microsoft.Azure.Management.Compute.Models { using Microsoft.Rest; + using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; @@ -24,7 +25,7 @@ namespace Microsoft.Azure.Management.Compute.Models /// network /// [Rest.Serialization.JsonTransformation] - public partial class VirtualMachineScaleSetUpdateIPConfiguration : SubResource + public partial class VirtualMachineScaleSetUpdateIPConfiguration : IResource { /// /// Initializes a new instance of the @@ -39,7 +40,6 @@ public VirtualMachineScaleSetUpdateIPConfiguration() /// Initializes a new instance of the /// VirtualMachineScaleSetUpdateIPConfiguration class. /// - /// Resource Id /// The IP configuration name. /// The subnet. /// Specifies the primary IP Configuration in @@ -60,8 +60,7 @@ public VirtualMachineScaleSetUpdateIPConfiguration() /// backend address pools. /// The load balancer inbound /// nat pools. - public VirtualMachineScaleSetUpdateIPConfiguration(string id = default(string), string name = default(string), ApiEntityReference subnet = default(ApiEntityReference), bool? primary = default(bool?), VirtualMachineScaleSetUpdatePublicIPAddressConfiguration publicIPAddressConfiguration = default(VirtualMachineScaleSetUpdatePublicIPAddressConfiguration), string privateIPAddressVersion = default(string), IList applicationGatewayBackendAddressPools = default(IList), IList applicationSecurityGroups = default(IList), IList loadBalancerBackendAddressPools = default(IList), IList loadBalancerInboundNatPools = default(IList)) - : base(id) + public VirtualMachineScaleSetUpdateIPConfiguration(string name = default(string), ApiEntityReference subnet = default(ApiEntityReference), bool? primary = default(bool?), VirtualMachineScaleSetUpdatePublicIPAddressConfiguration publicIPAddressConfiguration = default(VirtualMachineScaleSetUpdatePublicIPAddressConfiguration), string privateIPAddressVersion = default(string), IList applicationGatewayBackendAddressPools = default(IList), IList applicationSecurityGroups = default(IList), IList loadBalancerBackendAddressPools = default(IList), IList loadBalancerInboundNatPools = default(IList)) { Name = name; Subnet = subnet; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.cs index 03cd7d8e7317..ef7170400bff 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.cs @@ -11,6 +11,7 @@ namespace Microsoft.Azure.Management.Compute.Models { using Microsoft.Rest; + using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; @@ -22,7 +23,7 @@ namespace Microsoft.Azure.Management.Compute.Models /// configurations. /// [Rest.Serialization.JsonTransformation] - public partial class VirtualMachineScaleSetUpdateNetworkConfiguration : SubResource + public partial class VirtualMachineScaleSetUpdateNetworkConfiguration : IResource { /// /// Initializes a new instance of the @@ -37,7 +38,6 @@ public VirtualMachineScaleSetUpdateNetworkConfiguration() /// Initializes a new instance of the /// VirtualMachineScaleSetUpdateNetworkConfiguration class. /// - /// Resource Id /// The network configuration name. /// Whether this is a primary NIC on a virtual /// machine. @@ -58,8 +58,7 @@ public VirtualMachineScaleSetUpdateNetworkConfiguration() /// Specify what happens to the network /// interface when the VM is deleted. Possible values include: /// 'Delete', 'Detach' - public VirtualMachineScaleSetUpdateNetworkConfiguration(string id = default(string), string name = default(string), bool? primary = default(bool?), bool? enableAcceleratedNetworking = default(bool?), bool? disableTcpStateTracking = default(bool?), bool? enableFpga = default(bool?), SubResource networkSecurityGroup = default(SubResource), VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings = default(VirtualMachineScaleSetNetworkConfigurationDnsSettings), IList ipConfigurations = default(IList), bool? enableIPForwarding = default(bool?), string deleteOption = default(string)) - : base(id) + public VirtualMachineScaleSetUpdateNetworkConfiguration(string name = default(string), bool? primary = default(bool?), bool? enableAcceleratedNetworking = default(bool?), bool? disableTcpStateTracking = default(bool?), bool? enableFpga = default(bool?), SubResource networkSecurityGroup = default(SubResource), VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings = default(VirtualMachineScaleSetNetworkConfigurationDnsSettings), IList ipConfigurations = default(IList), bool? enableIPForwarding = default(bool?), string deleteOption = default(string)) { Name = name; Primary = primary; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMExtension.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMExtension.cs index 80e1dbe82190..63512a9a4e15 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMExtension.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMExtension.cs @@ -11,6 +11,7 @@ namespace Microsoft.Azure.Management.Compute.Models { using Microsoft.Rest; + using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; @@ -19,7 +20,7 @@ namespace Microsoft.Azure.Management.Compute.Models /// Describes a VMSS VM Extension. /// [Rest.Serialization.JsonTransformation] - public partial class VirtualMachineScaleSetVMExtension : SubResourceReadOnly + public partial class VirtualMachineScaleSetVMExtension : IResource { /// /// Initializes a new instance of the VirtualMachineScaleSetVMExtension @@ -34,7 +35,6 @@ public VirtualMachineScaleSetVMExtension() /// Initializes a new instance of the VirtualMachineScaleSetVMExtension /// class. /// - /// Resource Id /// The name of the extension. /// Resource type /// How the extension handler should be @@ -70,8 +70,7 @@ public VirtualMachineScaleSetVMExtension() /// The extensions /// protected settings that are passed by reference, and consumed from /// key vault - public VirtualMachineScaleSetVMExtension(string id = default(string), string name = default(string), string type = default(string), string forceUpdateTag = default(string), string publisher = default(string), string type1 = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), string provisioningState = default(string), VirtualMachineExtensionInstanceView instanceView = default(VirtualMachineExtensionInstanceView), bool? suppressFailures = default(bool?), KeyVaultSecretReference protectedSettingsFromKeyVault = default(KeyVaultSecretReference)) - : base(id) + public VirtualMachineScaleSetVMExtension(string name = default(string), string type = default(string), string forceUpdateTag = default(string), string publisher = default(string), string type1 = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), string provisioningState = default(string), VirtualMachineExtensionInstanceView instanceView = default(VirtualMachineExtensionInstanceView), bool? suppressFailures = default(bool?), KeyVaultSecretReference protectedSettingsFromKeyVault = default(KeyVaultSecretReference)) { Name = name; Type = type; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMExtensionUpdate.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMExtensionUpdate.cs index fdbb3911e616..8337cd87d61f 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMExtensionUpdate.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMExtensionUpdate.cs @@ -11,6 +11,7 @@ namespace Microsoft.Azure.Management.Compute.Models { using Microsoft.Rest; + using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; @@ -19,7 +20,7 @@ namespace Microsoft.Azure.Management.Compute.Models /// Describes a VMSS VM Extension. /// [Rest.Serialization.JsonTransformation] - public partial class VirtualMachineScaleSetVMExtensionUpdate : SubResourceReadOnly + public partial class VirtualMachineScaleSetVMExtensionUpdate : IResource { /// /// Initializes a new instance of the @@ -34,7 +35,6 @@ public VirtualMachineScaleSetVMExtensionUpdate() /// Initializes a new instance of the /// VirtualMachineScaleSetVMExtensionUpdate class. /// - /// Resource Id /// The name of the extension. /// Resource type /// How the extension handler should be @@ -66,8 +66,7 @@ public VirtualMachineScaleSetVMExtensionUpdate() /// The extensions /// protected settings that are passed by reference, and consumed from /// key vault - public VirtualMachineScaleSetVMExtensionUpdate(string id = default(string), string name = default(string), string type = default(string), string forceUpdateTag = default(string), string publisher = default(string), string type1 = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), bool? suppressFailures = default(bool?), KeyVaultSecretReference protectedSettingsFromKeyVault = default(KeyVaultSecretReference)) - : base(id) + public VirtualMachineScaleSetVMExtensionUpdate(string name = default(string), string type = default(string), string forceUpdateTag = default(string), string publisher = default(string), string type1 = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), bool? suppressFailures = default(bool?), KeyVaultSecretReference protectedSettingsFromKeyVault = default(KeyVaultSecretReference)) { Name = name; Type = type; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMInstanceView.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMInstanceView.cs index 94d5a370b188..28cd705dc9f7 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMInstanceView.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMInstanceView.cs @@ -58,22 +58,7 @@ public VirtualMachineScaleSetVMInstanceView() /// The placement group in which the VM /// is running. If the VM is deallocated it will not have a /// placementGroupId. - /// Specifies the host OS name of the - /// virtual machine. <br><br> This name cannot be updated - /// after the VM is created. <br><br> **Max-length - /// (Windows):** 15 characters <br><br> **Max-length - /// (Linux):** 64 characters. <br><br> For naming - /// conventions and restrictions see [Azure infrastructure services - /// implementation - /// guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions). - /// The Operating System running on the hybrid - /// machine. - /// The version of Operating System running on - /// the hybrid machine. - /// The hypervisor generation of the - /// Virtual Machine [V1, V2]. Possible values include: 'V1', - /// 'V2' - public VirtualMachineScaleSetVMInstanceView(int? platformUpdateDomain = default(int?), int? platformFaultDomain = default(int?), string rdpThumbPrint = default(string), VirtualMachineAgentInstanceView vmAgent = default(VirtualMachineAgentInstanceView), MaintenanceRedeployStatus maintenanceRedeployStatus = default(MaintenanceRedeployStatus), IList disks = default(IList), IList extensions = default(IList), VirtualMachineHealthStatus vmHealth = default(VirtualMachineHealthStatus), BootDiagnosticsInstanceView bootDiagnostics = default(BootDiagnosticsInstanceView), IList statuses = default(IList), string assignedHost = default(string), string placementGroupId = default(string), string computerName = default(string), string osName = default(string), string osVersion = default(string), string hyperVGeneration = default(string)) + public VirtualMachineScaleSetVMInstanceView(int? platformUpdateDomain = default(int?), int? platformFaultDomain = default(int?), string rdpThumbPrint = default(string), VirtualMachineAgentInstanceView vmAgent = default(VirtualMachineAgentInstanceView), MaintenanceRedeployStatus maintenanceRedeployStatus = default(MaintenanceRedeployStatus), IList disks = default(IList), IList extensions = default(IList), VirtualMachineHealthStatus vmHealth = default(VirtualMachineHealthStatus), BootDiagnosticsInstanceView bootDiagnostics = default(BootDiagnosticsInstanceView), IList statuses = default(IList), string assignedHost = default(string), string placementGroupId = default(string)) { PlatformUpdateDomain = platformUpdateDomain; PlatformFaultDomain = platformFaultDomain; @@ -87,10 +72,6 @@ public VirtualMachineScaleSetVMInstanceView() Statuses = statuses; AssignedHost = assignedHost; PlacementGroupId = placementGroupId; - ComputerName = computerName; - OsName = osName; - OsVersion = osVersion; - HyperVGeneration = hyperVGeneration; CustomInit(); } @@ -182,39 +163,5 @@ public VirtualMachineScaleSetVMInstanceView() [JsonProperty(PropertyName = "placementGroupId")] public string PlacementGroupId { get; set; } - /// - /// Gets or sets specifies the host OS name of the virtual machine. - /// &lt;br&gt;&lt;br&gt; This name cannot be updated - /// after the VM is created. &lt;br&gt;&lt;br&gt; - /// **Max-length (Windows):** 15 characters - /// &lt;br&gt;&lt;br&gt; **Max-length (Linux):** 64 - /// characters. &lt;br&gt;&lt;br&gt; For naming - /// conventions and restrictions see [Azure infrastructure services - /// implementation - /// guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions). - /// - [JsonProperty(PropertyName = "computerName")] - public string ComputerName { get; set; } - - /// - /// Gets or sets the Operating System running on the hybrid machine. - /// - [JsonProperty(PropertyName = "osName")] - public string OsName { get; set; } - - /// - /// Gets or sets the version of Operating System running on the hybrid - /// machine. - /// - [JsonProperty(PropertyName = "osVersion")] - public string OsVersion { get; set; } - - /// - /// Gets or sets the hypervisor generation of the Virtual Machine [V1, - /// V2]. Possible values include: 'V1', 'V2' - /// - [JsonProperty(PropertyName = "hyperVGeneration")] - public string HyperVGeneration { get; set; } - } } From 334eb037bded075c92fee1de52b2c44e049393ab Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Tue, 28 Feb 2023 16:10:31 -0500 Subject: [PATCH 2/3] more --- .../Models/EdgeZoneStorageAccountType.cs | 24 ++++++++ .../Models/GalleryTargetExtendedLocation.cs | 4 +- .../Models/OSImageNotificationProfile.cs | 6 +- .../VirtualMachineScaleSetVMInstanceView.cs | 55 ++++++++++++++++++- 4 files changed, 83 insertions(+), 6 deletions(-) create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/EdgeZoneStorageAccountType.cs diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/EdgeZoneStorageAccountType.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/EdgeZoneStorageAccountType.cs new file mode 100644 index 000000000000..858983d3aa61 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/EdgeZoneStorageAccountType.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 EdgeZoneStorageAccountType. + /// + public static class EdgeZoneStorageAccountType + { + public const string StandardLRS = "Standard_LRS"; + public const string StandardZRS = "Standard_ZRS"; + public const string StandardSSDLRS = "StandardSSD_LRS"; + public const string PremiumLRS = "Premium_LRS"; + } +} 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 index f87b86327e83..e352c10ef68d 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryTargetExtendedLocation.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryTargetExtendedLocation.cs @@ -35,7 +35,7 @@ public GalleryTargetExtendedLocation() /// 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' + /// 'StandardSSD_LRS', '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; @@ -72,7 +72,7 @@ public GalleryTargetExtendedLocation() /// /// 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' + /// 'Standard_LRS', 'Standard_ZRS', 'StandardSSD_LRS', 'Premium_LRS' /// [JsonProperty(PropertyName = "storageAccountType")] public string StorageAccountType { get; set; } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OSImageNotificationProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OSImageNotificationProfile.cs index db8bcbfc204c..0a2ffc4f021f 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OSImageNotificationProfile.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OSImageNotificationProfile.cs @@ -30,7 +30,7 @@ public OSImageNotificationProfile() /// being reimaged or having its OS upgraded will have to potentially /// approve the OS Image Scheduled Event before the event is auto /// approved (timed out). The configuration is specified in ISO 8601 - /// format, with the value set to 15 minutes (PT15M) + /// format, and the value must be 15 minutes (PT15M) /// Specifies whether the OS Image Scheduled event /// is enabled or disabled. public OSImageNotificationProfile(string notBeforeTimeout = default(string), bool? enable = default(bool?)) @@ -49,8 +49,8 @@ public OSImageNotificationProfile() /// Gets or sets length of time a Virtual Machine being reimaged or /// having its OS upgraded will have to potentially approve the OS /// Image Scheduled Event before the event is auto approved (timed - /// out). The configuration is specified in ISO 8601 format, with the - /// value set to 15 minutes (PT15M) + /// out). The configuration is specified in ISO 8601 format, and the + /// value must be 15 minutes (PT15M) /// [JsonProperty(PropertyName = "notBeforeTimeout")] public string NotBeforeTimeout { get; set; } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMInstanceView.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMInstanceView.cs index 28cd705dc9f7..94d5a370b188 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMInstanceView.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMInstanceView.cs @@ -58,7 +58,22 @@ public VirtualMachineScaleSetVMInstanceView() /// The placement group in which the VM /// is running. If the VM is deallocated it will not have a /// placementGroupId. - public VirtualMachineScaleSetVMInstanceView(int? platformUpdateDomain = default(int?), int? platformFaultDomain = default(int?), string rdpThumbPrint = default(string), VirtualMachineAgentInstanceView vmAgent = default(VirtualMachineAgentInstanceView), MaintenanceRedeployStatus maintenanceRedeployStatus = default(MaintenanceRedeployStatus), IList disks = default(IList), IList extensions = default(IList), VirtualMachineHealthStatus vmHealth = default(VirtualMachineHealthStatus), BootDiagnosticsInstanceView bootDiagnostics = default(BootDiagnosticsInstanceView), IList statuses = default(IList), string assignedHost = default(string), string placementGroupId = default(string)) + /// Specifies the host OS name of the + /// virtual machine. <br><br> This name cannot be updated + /// after the VM is created. <br><br> **Max-length + /// (Windows):** 15 characters <br><br> **Max-length + /// (Linux):** 64 characters. <br><br> For naming + /// conventions and restrictions see [Azure infrastructure services + /// implementation + /// guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions). + /// The Operating System running on the hybrid + /// machine. + /// The version of Operating System running on + /// the hybrid machine. + /// The hypervisor generation of the + /// Virtual Machine [V1, V2]. Possible values include: 'V1', + /// 'V2' + public VirtualMachineScaleSetVMInstanceView(int? platformUpdateDomain = default(int?), int? platformFaultDomain = default(int?), string rdpThumbPrint = default(string), VirtualMachineAgentInstanceView vmAgent = default(VirtualMachineAgentInstanceView), MaintenanceRedeployStatus maintenanceRedeployStatus = default(MaintenanceRedeployStatus), IList disks = default(IList), IList extensions = default(IList), VirtualMachineHealthStatus vmHealth = default(VirtualMachineHealthStatus), BootDiagnosticsInstanceView bootDiagnostics = default(BootDiagnosticsInstanceView), IList statuses = default(IList), string assignedHost = default(string), string placementGroupId = default(string), string computerName = default(string), string osName = default(string), string osVersion = default(string), string hyperVGeneration = default(string)) { PlatformUpdateDomain = platformUpdateDomain; PlatformFaultDomain = platformFaultDomain; @@ -72,6 +87,10 @@ public VirtualMachineScaleSetVMInstanceView() Statuses = statuses; AssignedHost = assignedHost; PlacementGroupId = placementGroupId; + ComputerName = computerName; + OsName = osName; + OsVersion = osVersion; + HyperVGeneration = hyperVGeneration; CustomInit(); } @@ -163,5 +182,39 @@ public VirtualMachineScaleSetVMInstanceView() [JsonProperty(PropertyName = "placementGroupId")] public string PlacementGroupId { get; set; } + /// + /// Gets or sets specifies the host OS name of the virtual machine. + /// &lt;br&gt;&lt;br&gt; This name cannot be updated + /// after the VM is created. &lt;br&gt;&lt;br&gt; + /// **Max-length (Windows):** 15 characters + /// &lt;br&gt;&lt;br&gt; **Max-length (Linux):** 64 + /// characters. &lt;br&gt;&lt;br&gt; For naming + /// conventions and restrictions see [Azure infrastructure services + /// implementation + /// guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions). + /// + [JsonProperty(PropertyName = "computerName")] + public string ComputerName { get; set; } + + /// + /// Gets or sets the Operating System running on the hybrid machine. + /// + [JsonProperty(PropertyName = "osName")] + public string OsName { get; set; } + + /// + /// Gets or sets the version of Operating System running on the hybrid + /// machine. + /// + [JsonProperty(PropertyName = "osVersion")] + public string OsVersion { get; set; } + + /// + /// Gets or sets the hypervisor generation of the Virtual Machine [V1, + /// V2]. Possible values include: 'V1', 'V2' + /// + [JsonProperty(PropertyName = "hyperVGeneration")] + public string HyperVGeneration { get; set; } + } } From 528b71ff95e4bcd742e0a450452253577fd00eb4 Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Thu, 2 Mar 2023 14:03:48 -0500 Subject: [PATCH 3/3] customizations --- .../DiskEncryptionSetParameters .cs | 18 +++++++++++ .../NetworkInterfaceReference.cs | 19 ++++++++++++ .../SubResourceWithColocationStatus.cs | 20 ++++++++++++ .../VirtualMachineCaptureResult.cs | 21 +++++++++++++ .../VirtualMachineScaleSetExtensionUpdate.cs | 27 ++++++++++++++++ .../VirtualMachineScaleSetIPConfiguration.cs | 25 +++++++++++++++ ...tualMachineScaleSetNetworkConfiguration.cs | 16 ++++++++++ ...ualMachineScaleSetUpdateIPConfiguration.cs | 23 ++++++++++++++ ...chineScaleSetUpdateNetworkConfiguration.cs | 16 ++++++++++ .../VirtualMachineScaleSetVMExtension.cs | 31 +++++++++++++++++++ ...VirtualMachineScaleSetVMExtensionUpdate.cs | 30 ++++++++++++++++++ 11 files changed, 246 insertions(+) create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/DiskEncryptionSetParameters .cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/NetworkInterfaceReference.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/SubResourceWithColocationStatus.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineCaptureResult.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetExtensionUpdate.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetIPConfiguration.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetUpdateIPConfiguration.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetVMExtension.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetVMExtensionUpdate.cs diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/DiskEncryptionSetParameters .cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/DiskEncryptionSetParameters .cs new file mode 100644 index 000000000000..18156d1e15b1 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/DiskEncryptionSetParameters .cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Microsoft.Azure.Management.Compute.Models +{ + + public partial class DiskEncryptionSetParameters : SubResource + { + public DiskEncryptionSetParameters(string id = default(string)) + : base(id) + { + CustomInit(); + } + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/NetworkInterfaceReference.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/NetworkInterfaceReference.cs new file mode 100644 index 000000000000..62dfec700d43 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/NetworkInterfaceReference.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Microsoft.Azure.Management.Compute.Models +{ + public partial class NetworkInterfaceReference : SubResource + { + public NetworkInterfaceReference(string id = default(string), bool? primary = default(bool?), string deleteOption = default(string)) + : base(id) + { + Primary = primary; + DeleteOption = deleteOption; + CustomInit(); + } + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/SubResourceWithColocationStatus.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/SubResourceWithColocationStatus.cs new file mode 100644 index 000000000000..7ca3a377c0d6 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/SubResourceWithColocationStatus.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Microsoft.Rest.Azure; +using Newtonsoft.Json; + +namespace Microsoft.Azure.Management.Compute.Models +{ + public partial class SubResourceWithColocationStatus : SubResource + { + public SubResourceWithColocationStatus(string id = default(string), InstanceViewStatus colocationStatus = default(InstanceViewStatus)) + : base(id) + { + ColocationStatus = colocationStatus; + CustomInit(); + } + } +} \ No newline at end of file diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineCaptureResult.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineCaptureResult.cs new file mode 100644 index 000000000000..76c1e7cd2926 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineCaptureResult.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Microsoft.Azure.Management.Compute.Models +{ + public partial class VirtualMachineCaptureResult : SubResource + { + public VirtualMachineCaptureResult(string id = default(string), string schema = default(string), string contentVersion = default(string), object parameters = default(object), IList resources = default(IList)) + : base(id) + { + Schema = schema; + ContentVersion = contentVersion; + Parameters = parameters; + Resources = resources; + CustomInit(); + } + } +} \ No newline at end of file diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetExtensionUpdate.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetExtensionUpdate.cs new file mode 100644 index 000000000000..e51e800142a9 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetExtensionUpdate.cs @@ -0,0 +1,27 @@ +using System.Collections.Generic; + +namespace Microsoft.Azure.Management.Compute.Models +{ + public partial class VirtualMachineScaleSetExtensionUpdate : SubResourceReadOnly + { + public VirtualMachineScaleSetExtensionUpdate(string id = default(string), string name = default(string), string type = default(string), string forceUpdateTag = default(string), string publisher = default(string), string type1 = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), string provisioningState = default(string), IList provisionAfterExtensions = default(IList), bool? suppressFailures = default(bool?), KeyVaultSecretReference protectedSettingsFromKeyVault = default(KeyVaultSecretReference)) + : base(id) + { + Name = name; + Type = type; + ForceUpdateTag = forceUpdateTag; + Publisher = publisher; + Type1 = type1; + TypeHandlerVersion = typeHandlerVersion; + AutoUpgradeMinorVersion = autoUpgradeMinorVersion; + EnableAutomaticUpgrade = enableAutomaticUpgrade; + Settings = settings; + ProtectedSettings = protectedSettings; + ProvisioningState = provisioningState; + ProvisionAfterExtensions = provisionAfterExtensions; + SuppressFailures = suppressFailures; + ProtectedSettingsFromKeyVault = protectedSettingsFromKeyVault; + CustomInit(); + } + } +} \ No newline at end of file diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetIPConfiguration.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetIPConfiguration.cs new file mode 100644 index 000000000000..1e0c054b1b13 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetIPConfiguration.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Microsoft.Azure.Management.Compute.Models +{ + public partial class VirtualMachineScaleSetIPConfiguration + { + public VirtualMachineScaleSetIPConfiguration(string name, string id, ApiEntityReference subnet = default(ApiEntityReference), bool? primary = default(bool?), VirtualMachineScaleSetPublicIPAddressConfiguration publicIPAddressConfiguration = default(VirtualMachineScaleSetPublicIPAddressConfiguration), string privateIPAddressVersion = default(string), IList applicationGatewayBackendAddressPools = default(IList), IList applicationSecurityGroups = default(IList), IList loadBalancerBackendAddressPools = default(IList), IList loadBalancerInboundNatPools = default(IList)) + { + Name = name; + Subnet = subnet; + Primary = primary; + PublicIPAddressConfiguration = publicIPAddressConfiguration; + PrivateIPAddressVersion = privateIPAddressVersion; + ApplicationGatewayBackendAddressPools = applicationGatewayBackendAddressPools; + ApplicationSecurityGroups = applicationSecurityGroups; + LoadBalancerBackendAddressPools = loadBalancerBackendAddressPools; + LoadBalancerInboundNatPools = loadBalancerInboundNatPools; + CustomInit(); + } + } +} \ No newline at end of file diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetNetworkConfiguration.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetNetworkConfiguration.cs index 3a9dca3c6669..3a6ee9882616 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetNetworkConfiguration.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetNetworkConfiguration.cs @@ -33,5 +33,21 @@ public partial class VirtualMachineScaleSetNetworkConfiguration : SubResource DeleteOption = deleteOption; CustomInit(); } + + public VirtualMachineScaleSetNetworkConfiguration(string name, IList ipConfigurations, string id, bool? primary = default(bool?), bool? enableAcceleratedNetworking = default(bool?), bool? disableTcpStateTracking = default(bool?), bool? enableFpga = default(bool?), SubResource networkSecurityGroup = default(SubResource), VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings = default(VirtualMachineScaleSetNetworkConfigurationDnsSettings), bool? enableIPForwarding = default(bool?), string deleteOption = default(string)) + : base(id) + { + Name = name; + Primary = primary; + EnableAcceleratedNetworking = enableAcceleratedNetworking; + DisableTcpStateTracking = disableTcpStateTracking; + EnableFpga = enableFpga; + NetworkSecurityGroup = networkSecurityGroup; + DnsSettings = dnsSettings; + IpConfigurations = ipConfigurations; + EnableIPForwarding = enableIPForwarding; + DeleteOption = deleteOption; + CustomInit(); + } } } \ No newline at end of file diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetUpdateIPConfiguration.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetUpdateIPConfiguration.cs new file mode 100644 index 000000000000..f2744cf05885 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetUpdateIPConfiguration.cs @@ -0,0 +1,23 @@ +using System.Collections.Generic; + +namespace Microsoft.Azure.Management.Compute.Models +{ + public partial class VirtualMachineScaleSetUpdateIPConfiguration : SubResource + { + public VirtualMachineScaleSetUpdateIPConfiguration(string id = default(string), string name = default(string), ApiEntityReference subnet = default(ApiEntityReference), bool? primary = default(bool?), VirtualMachineScaleSetUpdatePublicIPAddressConfiguration publicIPAddressConfiguration = default(VirtualMachineScaleSetUpdatePublicIPAddressConfiguration), string privateIPAddressVersion = default(string), IList applicationGatewayBackendAddressPools = default(IList), IList applicationSecurityGroups = default(IList), IList loadBalancerBackendAddressPools = default(IList), IList loadBalancerInboundNatPools = default(IList)) + : base(id) + { + Name = name; + Subnet = subnet; + Primary = primary; + PublicIPAddressConfiguration = publicIPAddressConfiguration; + PrivateIPAddressVersion = privateIPAddressVersion; + ApplicationGatewayBackendAddressPools = applicationGatewayBackendAddressPools; + ApplicationSecurityGroups = applicationSecurityGroups; + LoadBalancerBackendAddressPools = loadBalancerBackendAddressPools; + LoadBalancerInboundNatPools = loadBalancerInboundNatPools; + CustomInit(); + } + + } +} \ No newline at end of file diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetUpdateNetworkConfiguration.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetUpdateNetworkConfiguration.cs index 33c4cc23496d..81087e68fe0e 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetUpdateNetworkConfiguration.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetUpdateNetworkConfiguration.cs @@ -33,5 +33,21 @@ public partial class VirtualMachineScaleSetUpdateNetworkConfiguration : SubResou DeleteOption = deleteOption; CustomInit(); } + + public VirtualMachineScaleSetUpdateNetworkConfiguration(string id = default(string), string name = default(string), bool? primary = default(bool?), bool? enableAcceleratedNetworking = default(bool?), bool? disableTcpStateTracking = default(bool?), bool? enableFpga = default(bool?), SubResource networkSecurityGroup = default(SubResource), VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings = default(VirtualMachineScaleSetNetworkConfigurationDnsSettings), IList ipConfigurations = default(IList), bool? enableIPForwarding = default(bool?), string deleteOption = default(string)) + : base(id) + { + Name = name; + Primary = primary; + EnableAcceleratedNetworking = enableAcceleratedNetworking; + DisableTcpStateTracking = disableTcpStateTracking; + EnableFpga = enableFpga; + NetworkSecurityGroup = networkSecurityGroup; + DnsSettings = dnsSettings; + IpConfigurations = ipConfigurations; + EnableIPForwarding = enableIPForwarding; + DeleteOption = deleteOption; + CustomInit(); + } } } \ No newline at end of file diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetVMExtension.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetVMExtension.cs new file mode 100644 index 000000000000..98c8653c7848 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetVMExtension.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Microsoft.Azure.Management.Compute.Models +{ + public partial class VirtualMachineScaleSetVMExtension : SubResourceReadOnly + { + public VirtualMachineScaleSetVMExtension(string id = default(string), string name = default(string), string type = default(string), string forceUpdateTag = default(string), string publisher = default(string), string type1 = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), string provisioningState = default(string), VirtualMachineExtensionInstanceView instanceView = default(VirtualMachineExtensionInstanceView), bool? suppressFailures = default(bool?), KeyVaultSecretReference protectedSettingsFromKeyVault = default(KeyVaultSecretReference)) + : base(id) + { + Name = name; + Type = type; + ForceUpdateTag = forceUpdateTag; + Publisher = publisher; + Type1 = type1; + TypeHandlerVersion = typeHandlerVersion; + AutoUpgradeMinorVersion = autoUpgradeMinorVersion; + EnableAutomaticUpgrade = enableAutomaticUpgrade; + Settings = settings; + ProtectedSettings = protectedSettings; + ProvisioningState = provisioningState; + InstanceView = instanceView; + SuppressFailures = suppressFailures; + ProtectedSettingsFromKeyVault = protectedSettingsFromKeyVault; + CustomInit(); + } + } +} \ No newline at end of file diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetVMExtensionUpdate.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetVMExtensionUpdate.cs new file mode 100644 index 000000000000..884193d1750b --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineScaleSetVMExtensionUpdate.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Microsoft.Azure.Management.Compute.Models +{ + + public partial class VirtualMachineScaleSetVMExtensionUpdate : SubResourceReadOnly + { + public VirtualMachineScaleSetVMExtensionUpdate(string id = default(string), string name = default(string), string type = default(string), string forceUpdateTag = default(string), string publisher = default(string), string type1 = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), bool? suppressFailures = default(bool?), KeyVaultSecretReference protectedSettingsFromKeyVault = default(KeyVaultSecretReference)) + : base(id) + { + Name = name; + Type = type; + ForceUpdateTag = forceUpdateTag; + Publisher = publisher; + Type1 = type1; + TypeHandlerVersion = typeHandlerVersion; + AutoUpgradeMinorVersion = autoUpgradeMinorVersion; + EnableAutomaticUpgrade = enableAutomaticUpgrade; + Settings = settings; + ProtectedSettings = protectedSettings; + SuppressFailures = suppressFailures; + ProtectedSettingsFromKeyVault = protectedSettingsFromKeyVault; + CustomInit(); + } + } +}