From 47f687ea340bed13b250944e46fa0d4c8d746cbc Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Fri, 24 Feb 2023 14:17:48 -0500 Subject: [PATCH 1/7] updated 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 5dc534bfddb701e75ad5f0d2c9586fe7980cdcc1 Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Fri, 24 Feb 2023 15:21:07 -0500 Subject: [PATCH 2/7] updated wtih modelvalidation --- ....ResourceManager.Compute.netstandard2.0.cs | 4 +- .../Sample_AvailabilitySetCollection.cs | 36 +-- .../Samples/Sample_AvailabilitySetResource.cs | 48 ++-- ...Sample_CapacityReservationGroupResource.cs | 16 +- .../Sample_CapacityReservationResource.cs | 16 +- .../Samples/Sample_DedicatedHostCollection.cs | 12 +- .../Sample_DedicatedHostGroupCollection.cs | 12 +- .../Sample_DedicatedHostGroupResource.cs | 36 +-- .../Samples/Sample_DedicatedHostResource.cs | 24 +- .../Samples/Sample_DiskImageResource.cs | 8 +- .../Sample_RestorePointGroupResource.cs | 24 +- .../Samples/Sample_RestorePointResource.cs | 12 +- .../Samples/Sample_SshPublicKeyCollection.cs | 12 +- .../Samples/Sample_SshPublicKeyResource.cs | 38 +-- .../Sample_SubscriptionResourceExtensions.cs | 60 ++--- .../Sample_VirtualMachineCollection.cs | 14 +- ...ample_VirtualMachineExtensionCollection.cs | 60 ++--- ..._VirtualMachineExtensionImageCollection.cs | 48 ++-- ...le_VirtualMachineExtensionImageResource.cs | 12 +- .../Sample_VirtualMachineExtensionResource.cs | 30 +-- .../Samples/Sample_VirtualMachineResource.cs | 112 ++++---- ...Sample_VirtualMachineScaleSetCollection.cs | 12 +- ...rtualMachineScaleSetExtensionCollection.cs | 48 ++-- ...VirtualMachineScaleSetExtensionResource.cs | 36 +-- .../Sample_VirtualMachineScaleSetResource.cs | 244 +++++++++--------- ...alMachineScaleSetRollingUpgradeResource.cs | 12 +- ...mple_VirtualMachineScaleSetVmCollection.cs | 26 +- ...ualMachineScaleSetVmExtensionCollection.cs | 8 +- ...rtualMachineScaleSetVmExtensionResource.cs | 6 +- ...Sample_VirtualMachineScaleSetVmResource.cs | 110 ++++---- ...neScaleSetIPConfiguration.Serialization.cs | 18 +- .../VirtualMachineScaleSetIPConfiguration.cs | 5 +- ...leSetNetworkConfiguration.Serialization.cs | 18 +- ...tualMachineScaleSetNetworkConfiguration.cs | 5 +- .../src/autorest.md | 2 +- 35 files changed, 572 insertions(+), 612 deletions(-) diff --git a/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs b/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs index 1d715955adb1..1e3629b41c8f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs @@ -5776,7 +5776,7 @@ internal VirtualMachineScaleSetInstanceView() { } public System.Collections.Generic.IReadOnlyList Statuses { get { throw null; } } public System.Collections.Generic.IReadOnlyList VirtualMachineStatusesSummary { get { throw null; } } } - public partial class VirtualMachineScaleSetIPConfiguration : Azure.ResourceManager.Compute.Models.ComputeWriteableSubResourceData + public partial class VirtualMachineScaleSetIPConfiguration { public VirtualMachineScaleSetIPConfiguration(string name) { } public System.Collections.Generic.IList ApplicationGatewayBackendAddressPools { get { throw null; } } @@ -5802,7 +5802,7 @@ public VirtualMachineScaleSetManagedDisk() { } public Azure.ResourceManager.Compute.Models.VirtualMachineDiskSecurityProfile SecurityProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.StorageAccountType? StorageAccountType { get { throw null; } set { } } } - public partial class VirtualMachineScaleSetNetworkConfiguration : Azure.ResourceManager.Compute.Models.ComputeWriteableSubResourceData + public partial class VirtualMachineScaleSetNetworkConfiguration { public VirtualMachineScaleSetNetworkConfiguration(string name) { } public Azure.ResourceManager.Compute.Models.ComputeDeleteOption? DeleteOption { get { throw null; } set { } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_AvailabilitySetCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_AvailabilitySetCollection.cs index 376845b3df13..c9dee96c6e3f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_AvailabilitySetCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_AvailabilitySetCollection.cs @@ -58,12 +58,12 @@ public async Task CreateOrUpdate_CreateAnAvailabilitySet() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // AvailabilitySets_Get_MaximumSet_Gen + // AvailabilitySet_Get_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_AvailabilitySetsGetMaximumSetGen() + public async Task Get_AvailabilitySetGetMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Get_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_Get_MaximumSet_Gen.json // this example is just showing the usage of "AvailabilitySets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,12 +92,12 @@ public async Task Get_AvailabilitySetsGetMaximumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // AvailabilitySets_Get_MaximumSet_Gen + // AvailabilitySet_Get_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_AvailabilitySetsGetMaximumSetGen() + public async Task Exists_AvailabilitySetGetMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Get_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_Get_MaximumSet_Gen.json // this example is just showing the usage of "AvailabilitySets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,12 +122,12 @@ public async Task Exists_AvailabilitySetsGetMaximumSetGen() Console.WriteLine($"Succeeded: {result}"); } - // AvailabilitySets_Get_MinimumSet_Gen + // AvailabilitySet_Get_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_AvailabilitySetsGetMinimumSetGen() + public async Task Get_AvailabilitySetGetMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Get_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_Get_MinimumSet_Gen.json // this example is just showing the usage of "AvailabilitySets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -156,12 +156,12 @@ public async Task Get_AvailabilitySetsGetMinimumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // AvailabilitySets_Get_MinimumSet_Gen + // AvailabilitySet_Get_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_AvailabilitySetsGetMinimumSetGen() + public async Task Exists_AvailabilitySetGetMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Get_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_Get_MinimumSet_Gen.json // this example is just showing the usage of "AvailabilitySets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -186,12 +186,12 @@ public async Task Exists_AvailabilitySetsGetMinimumSetGen() Console.WriteLine($"Succeeded: {result}"); } - // AvailabilitySets_List_MaximumSet_Gen + // AvailabilitySet_List_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_AvailabilitySetsListMaximumSetGen() + public async Task GetAll_AvailabilitySetListMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_List_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_List_MaximumSet_Gen.json // this example is just showing the usage of "AvailabilitySets_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -222,12 +222,12 @@ public async Task GetAll_AvailabilitySetsListMaximumSetGen() Console.WriteLine($"Succeeded"); } - // AvailabilitySets_List_MinimumSet_Gen + // AvailabilitySet_List_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_AvailabilitySetsListMinimumSetGen() + public async Task GetAll_AvailabilitySetListMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_List_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_List_MinimumSet_Gen.json // this example is just showing the usage of "AvailabilitySets_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_AvailabilitySetResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_AvailabilitySetResource.cs index 5bd25129c53c..b06e13ff6543 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_AvailabilitySetResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_AvailabilitySetResource.cs @@ -20,12 +20,12 @@ namespace Azure.ResourceManager.Compute.Samples { public partial class Sample_AvailabilitySetResource { - // AvailabilitySets_Update_MaximumSet_Gen + // AvailabilitySet_Update_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_AvailabilitySetsUpdateMaximumSetGen() + public async Task Update_AvailabilitySetUpdateMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Update_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_Update_MaximumSet_Gen.json // this example is just showing the usage of "AvailabilitySets_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -74,12 +74,12 @@ public async Task Update_AvailabilitySetsUpdateMaximumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // AvailabilitySets_Update_MinimumSet_Gen + // AvailabilitySet_Update_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_AvailabilitySetsUpdateMinimumSetGen() + public async Task Update_AvailabilitySetUpdateMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Update_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_Update_MinimumSet_Gen.json // this example is just showing the usage of "AvailabilitySets_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -106,12 +106,12 @@ public async Task Update_AvailabilitySetsUpdateMinimumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // AvailabilitySets_Delete_MaximumSet_Gen + // AvailabilitySet_Delete_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_AvailabilitySetsDeleteMaximumSetGen() + public async Task Delete_AvailabilitySetDeleteMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Delete_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_Delete_MaximumSet_Gen.json // this example is just showing the usage of "AvailabilitySets_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -133,12 +133,12 @@ public async Task Delete_AvailabilitySetsDeleteMaximumSetGen() Console.WriteLine($"Succeeded"); } - // AvailabilitySets_Delete_MinimumSet_Gen + // AvailabilitySet_Delete_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_AvailabilitySetsDeleteMinimumSetGen() + public async Task Delete_AvailabilitySetDeleteMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Delete_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_Delete_MinimumSet_Gen.json // this example is just showing the usage of "AvailabilitySets_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -160,12 +160,12 @@ public async Task Delete_AvailabilitySetsDeleteMinimumSetGen() Console.WriteLine($"Succeeded"); } - // AvailabilitySets_Get_MaximumSet_Gen + // AvailabilitySet_Get_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_AvailabilitySetsGetMaximumSetGen() + public async Task Get_AvailabilitySetGetMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Get_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_Get_MaximumSet_Gen.json // this example is just showing the usage of "AvailabilitySets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -191,12 +191,12 @@ public async Task Get_AvailabilitySetsGetMaximumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // AvailabilitySets_Get_MinimumSet_Gen + // AvailabilitySet_Get_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_AvailabilitySetsGetMinimumSetGen() + public async Task Get_AvailabilitySetGetMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Get_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_Get_MinimumSet_Gen.json // this example is just showing the usage of "AvailabilitySets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -255,12 +255,12 @@ public async Task GetAvailabilitySets_ListAvailabilitySetsInASubscription() Console.WriteLine($"Succeeded"); } - // AvailabilitySets_ListAvailableSizes_MaximumSet_Gen + // AvailabilitySet_ListAvailableSizes_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAvailableSizes_AvailabilitySetsListAvailableSizesMaximumSetGen() + public async Task GetAvailableSizes_AvailabilitySetListAvailableSizesMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_ListAvailableSizes_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MaximumSet_Gen.json // this example is just showing the usage of "AvailabilitySets_ListAvailableSizes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -285,12 +285,12 @@ public async Task GetAvailableSizes_AvailabilitySetsListAvailableSizesMaximumSet Console.WriteLine($"Succeeded"); } - // AvailabilitySets_ListAvailableSizes_MinimumSet_Gen + // AvailabilitySet_ListAvailableSizes_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAvailableSizes_AvailabilitySetsListAvailableSizesMinimumSetGen() + public async Task GetAvailableSizes_AvailabilitySetListAvailableSizesMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_ListAvailableSizes_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MinimumSet_Gen.json // this example is just showing the usage of "AvailabilitySets_ListAvailableSizes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CapacityReservationGroupResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CapacityReservationGroupResource.cs index 6c1bc7c25f20..4899edd37d35 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CapacityReservationGroupResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CapacityReservationGroupResource.cs @@ -19,10 +19,10 @@ namespace Azure.ResourceManager.Compute.Samples { public partial class Sample_CapacityReservationGroupResource { - // CapacityReservationGroups_Update_MaximumSet_Gen + // CapacityReservationGroup_Update_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CapacityReservationGroupsUpdateMaximumSetGen() + public async Task Update_CapacityReservationGroupUpdateMaximumSetGen() { // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Update_MaximumSet_Gen.json // this example is just showing the usage of "CapacityReservationGroups_Update" operation, for the dependent resources, they will have to be created separately. @@ -57,10 +57,10 @@ public async Task Update_CapacityReservationGroupsUpdateMaximumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // CapacityReservationGroups_Update_MinimumSet_Gen + // CapacityReservationGroup_Update_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CapacityReservationGroupsUpdateMinimumSetGen() + public async Task Update_CapacityReservationGroupUpdateMinimumSetGen() { // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Update_MinimumSet_Gen.json // this example is just showing the usage of "CapacityReservationGroups_Update" operation, for the dependent resources, they will have to be created separately. @@ -89,10 +89,10 @@ public async Task Update_CapacityReservationGroupsUpdateMinimumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // CapacityReservationGroups_Delete_MaximumSet_Gen + // CapacityReservationGroup_Delete_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_CapacityReservationGroupsDeleteMaximumSetGen() + public async Task Delete_CapacityReservationGroupDeleteMaximumSetGen() { // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MaximumSet_Gen.json // this example is just showing the usage of "CapacityReservationGroups_Delete" operation, for the dependent resources, they will have to be created separately. @@ -116,10 +116,10 @@ public async Task Delete_CapacityReservationGroupsDeleteMaximumSetGen() Console.WriteLine($"Succeeded"); } - // CapacityReservationGroups_Delete_MinimumSet_Gen + // CapacityReservationGroup_Delete_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_CapacityReservationGroupsDeleteMinimumSetGen() + public async Task Delete_CapacityReservationGroupDeleteMinimumSetGen() { // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MinimumSet_Gen.json // this example is just showing the usage of "CapacityReservationGroups_Delete" operation, for the dependent resources, they will have to be created separately. diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CapacityReservationResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CapacityReservationResource.cs index 03c69c20ff6c..5c698ca91f18 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CapacityReservationResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CapacityReservationResource.cs @@ -18,10 +18,10 @@ namespace Azure.ResourceManager.Compute.Samples { public partial class Sample_CapacityReservationResource { - // CapacityReservations_Update_MaximumSet_Gen + // CapacityReservation_Update_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CapacityReservationsUpdateMaximumSetGen() + public async Task Update_CapacityReservationUpdateMaximumSetGen() { // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Update_MaximumSet_Gen.json // this example is just showing the usage of "CapacityReservations_Update" operation, for the dependent resources, they will have to be created separately. @@ -64,10 +64,10 @@ public async Task Update_CapacityReservationsUpdateMaximumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // CapacityReservations_Update_MinimumSet_Gen + // CapacityReservation_Update_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CapacityReservationsUpdateMinimumSetGen() + public async Task Update_CapacityReservationUpdateMinimumSetGen() { // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Update_MinimumSet_Gen.json // this example is just showing the usage of "CapacityReservations_Update" operation, for the dependent resources, they will have to be created separately. @@ -98,10 +98,10 @@ public async Task Update_CapacityReservationsUpdateMinimumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // CapacityReservations_Delete_MaximumSet_Gen + // CapacityReservation_Delete_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_CapacityReservationsDeleteMaximumSetGen() + public async Task Delete_CapacityReservationDeleteMaximumSetGen() { // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Delete_MaximumSet_Gen.json // this example is just showing the usage of "CapacityReservations_Delete" operation, for the dependent resources, they will have to be created separately. @@ -126,10 +126,10 @@ public async Task Delete_CapacityReservationsDeleteMaximumSetGen() Console.WriteLine($"Succeeded"); } - // CapacityReservations_Delete_MinimumSet_Gen + // CapacityReservation_Delete_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_CapacityReservationsDeleteMinimumSetGen() + public async Task Delete_CapacityReservationDeleteMinimumSetGen() { // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Delete_MinimumSet_Gen.json // this example is just showing the usage of "CapacityReservations_Delete" operation, for the dependent resources, they will have to be created separately. diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_DedicatedHostCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_DedicatedHostCollection.cs index ca5ff49527f8..de2be885fb49 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_DedicatedHostCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_DedicatedHostCollection.cs @@ -131,12 +131,12 @@ public async Task Exists_GetADedicatedHost() Console.WriteLine($"Succeeded: {result}"); } - // DedicatedHosts_ListByHostGroup_MaximumSet_Gen + // DedicatedHost_ListByHostGroup_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_DedicatedHostsListByHostGroupMaximumSetGen() + public async Task GetAll_DedicatedHostListByHostGroupMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_ListByHostGroup_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MaximumSet_Gen.json // this example is just showing the usage of "DedicatedHosts_ListByHostGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -168,12 +168,12 @@ public async Task GetAll_DedicatedHostsListByHostGroupMaximumSetGen() Console.WriteLine($"Succeeded"); } - // DedicatedHosts_ListByHostGroup_MinimumSet_Gen + // DedicatedHost_ListByHostGroup_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_DedicatedHostsListByHostGroupMinimumSetGen() + public async Task GetAll_DedicatedHostListByHostGroupMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_ListByHostGroup_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MinimumSet_Gen.json // this example is just showing the usage of "DedicatedHosts_ListByHostGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_DedicatedHostGroupCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_DedicatedHostGroupCollection.cs index 7b29be46061b..c6e97bb361ae 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_DedicatedHostGroupCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_DedicatedHostGroupCollection.cs @@ -243,12 +243,12 @@ public async Task Exists_CreateAnUltraSSDEnabledDedicatedHostGroup() Console.WriteLine($"Succeeded: {result}"); } - // DedicatedHostGroups_ListByResourceGroup_MaximumSet_Gen + // DedicatedHostGroup_ListByResourceGroup_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_DedicatedHostGroupsListByResourceGroupMaximumSetGen() + public async Task GetAll_DedicatedHostGroupListByResourceGroupMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_ListByResourceGroup_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MaximumSet_Gen.json // this example is just showing the usage of "DedicatedHostGroups_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -279,12 +279,12 @@ public async Task GetAll_DedicatedHostGroupsListByResourceGroupMaximumSetGen() Console.WriteLine($"Succeeded"); } - // DedicatedHostGroups_ListByResourceGroup_MinimumSet_Gen + // DedicatedHostGroup_ListByResourceGroup_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_DedicatedHostGroupsListByResourceGroupMinimumSetGen() + public async Task GetAll_DedicatedHostGroupListByResourceGroupMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_ListByResourceGroup_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MinimumSet_Gen.json // this example is just showing the usage of "DedicatedHostGroups_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_DedicatedHostGroupResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_DedicatedHostGroupResource.cs index da8c1271770d..a1ba03eb783d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_DedicatedHostGroupResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_DedicatedHostGroupResource.cs @@ -19,12 +19,12 @@ namespace Azure.ResourceManager.Compute.Samples { public partial class Sample_DedicatedHostGroupResource { - // DedicatedHostGroups_Update_MaximumSet_Gen + // DedicatedHostGroup_Update_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_DedicatedHostGroupsUpdateMaximumSetGen() + public async Task Update_DedicatedHostGroupUpdateMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_Update_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_Update_MaximumSet_Gen.json // this example is just showing the usage of "DedicatedHostGroups_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -63,12 +63,12 @@ public async Task Update_DedicatedHostGroupsUpdateMaximumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // DedicatedHostGroups_Update_MinimumSet_Gen + // DedicatedHostGroup_Update_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_DedicatedHostGroupsUpdateMinimumSetGen() + public async Task Update_DedicatedHostGroupUpdateMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_Update_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_Update_MinimumSet_Gen.json // this example is just showing the usage of "DedicatedHostGroups_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,12 +95,12 @@ public async Task Update_DedicatedHostGroupsUpdateMinimumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // DedicatedHostGroups_Delete_MaximumSet_Gen + // DedicatedHostGroup_Delete_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DedicatedHostGroupsDeleteMaximumSetGen() + public async Task Delete_DedicatedHostGroupDeleteMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_Delete_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_Delete_MaximumSet_Gen.json // this example is just showing the usage of "DedicatedHostGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,12 +122,12 @@ public async Task Delete_DedicatedHostGroupsDeleteMaximumSetGen() Console.WriteLine($"Succeeded"); } - // DedicatedHostGroups_Delete_MinimumSet_Gen + // DedicatedHostGroup_Delete_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DedicatedHostGroupsDeleteMinimumSetGen() + public async Task Delete_DedicatedHostGroupDeleteMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_Delete_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_Delete_MinimumSet_Gen.json // this example is just showing the usage of "DedicatedHostGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -211,12 +211,12 @@ public async Task Get_CreateAnUltraSSDEnabledDedicatedHostGroup() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // DedicatedHostGroups_ListBySubscription_MaximumSet_Gen + // DedicatedHostGroup_ListBySubscription_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetDedicatedHostGroups_DedicatedHostGroupsListBySubscriptionMaximumSetGen() + public async Task GetDedicatedHostGroups_DedicatedHostGroupListBySubscriptionMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_ListBySubscription_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MaximumSet_Gen.json // this example is just showing the usage of "DedicatedHostGroups_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -243,12 +243,12 @@ public async Task GetDedicatedHostGroups_DedicatedHostGroupsListBySubscriptionMa Console.WriteLine($"Succeeded"); } - // DedicatedHostGroups_ListBySubscription_MinimumSet_Gen + // DedicatedHostGroup_ListBySubscription_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetDedicatedHostGroups_DedicatedHostGroupsListBySubscriptionMinimumSetGen() + public async Task GetDedicatedHostGroups_DedicatedHostGroupListBySubscriptionMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_ListBySubscription_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MinimumSet_Gen.json // this example is just showing the usage of "DedicatedHostGroups_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_DedicatedHostResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_DedicatedHostResource.cs index 150d46654082..306d77244098 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_DedicatedHostResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_DedicatedHostResource.cs @@ -18,12 +18,12 @@ namespace Azure.ResourceManager.Compute.Samples { public partial class Sample_DedicatedHostResource { - // DedicatedHosts_Update_MaximumSet_Gen + // DedicatedHost_Update_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_DedicatedHostsUpdateMaximumSetGen() + public async Task Update_DedicatedHostUpdateMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_Update_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_Update_MaximumSet_Gen.json // this example is just showing the usage of "DedicatedHosts_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,12 +61,12 @@ public async Task Update_DedicatedHostsUpdateMaximumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // DedicatedHosts_Update_MinimumSet_Gen + // DedicatedHost_Update_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_DedicatedHostsUpdateMinimumSetGen() + public async Task Update_DedicatedHostUpdateMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_Update_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_Update_MinimumSet_Gen.json // this example is just showing the usage of "DedicatedHosts_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,12 +95,12 @@ public async Task Update_DedicatedHostsUpdateMinimumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // DedicatedHosts_Delete_MaximumSet_Gen + // DedicatedHost_Delete_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DedicatedHostsDeleteMaximumSetGen() + public async Task Delete_DedicatedHostDeleteMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_Delete_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_Delete_MaximumSet_Gen.json // this example is just showing the usage of "DedicatedHosts_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,12 +123,12 @@ public async Task Delete_DedicatedHostsDeleteMaximumSetGen() Console.WriteLine($"Succeeded"); } - // DedicatedHosts_Delete_MinimumSet_Gen + // DedicatedHost_Delete_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DedicatedHostsDeleteMinimumSetGen() + public async Task Delete_DedicatedHostDeleteMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_Delete_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_Delete_MinimumSet_Gen.json // this example is just showing the usage of "DedicatedHosts_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_DiskImageResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_DiskImageResource.cs index 0caa2609ca65..8a3185341714 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_DiskImageResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_DiskImageResource.cs @@ -60,10 +60,10 @@ public async Task Update_UpdatesTagsOfAnImage() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // Images_Delete_MaximumSet_Gen + // Image_Delete_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_ImagesDeleteMaximumSetGen() + public async Task Delete_ImageDeleteMaximumSetGen() { // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Images_Delete_MaximumSet_Gen.json // this example is just showing the usage of "Images_Delete" operation, for the dependent resources, they will have to be created separately. @@ -87,10 +87,10 @@ public async Task Delete_ImagesDeleteMaximumSetGen() Console.WriteLine($"Succeeded"); } - // Images_Delete_MinimumSet_Gen + // Image_Delete_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_ImagesDeleteMinimumSetGen() + public async Task Delete_ImageDeleteMinimumSetGen() { // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Images_Delete_MinimumSet_Gen.json // this example is just showing the usage of "Images_Delete" operation, for the dependent resources, they will have to be created separately. diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_RestorePointGroupResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_RestorePointGroupResource.cs index 23e927e9e5ad..b67cc1b9a37e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_RestorePointGroupResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_RestorePointGroupResource.cs @@ -19,12 +19,12 @@ namespace Azure.ResourceManager.Compute.Samples { public partial class Sample_RestorePointGroupResource { - // RestorePointCollections_Update_MaximumSet_Gen + // RestorePointCollection_Update_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_RestorePointCollectionsUpdateMaximumSetGen() + public async Task Update_RestorePointCollectionUpdateMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollections_Update_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_Update_MaximumSet_Gen.json // this example is just showing the usage of "RestorePointCollections_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,12 +61,12 @@ public async Task Update_RestorePointCollectionsUpdateMaximumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // RestorePointCollections_Update_MinimumSet_Gen + // RestorePointCollection_Update_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_RestorePointCollectionsUpdateMinimumSetGen() + public async Task Update_RestorePointCollectionUpdateMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollections_Update_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_Update_MinimumSet_Gen.json // this example is just showing the usage of "RestorePointCollections_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,12 +93,12 @@ public async Task Update_RestorePointCollectionsUpdateMinimumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // RestorePointCollections_Delete_MaximumSet_Gen + // RestorePointCollection_Delete_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_RestorePointCollectionsDeleteMaximumSetGen() + public async Task Delete_RestorePointCollectionDeleteMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollections_Delete_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_Delete_MaximumSet_Gen.json // this example is just showing the usage of "RestorePointCollections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,12 +120,12 @@ public async Task Delete_RestorePointCollectionsDeleteMaximumSetGen() Console.WriteLine($"Succeeded"); } - // RestorePointCollections_Delete_MinimumSet_Gen + // RestorePointCollection_Delete_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_RestorePointCollectionsDeleteMinimumSetGen() + public async Task Delete_RestorePointCollectionDeleteMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollections_Delete_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_Delete_MinimumSet_Gen.json // this example is just showing the usage of "RestorePointCollections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_RestorePointResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_RestorePointResource.cs index af102cb78365..6fd8cfadd28a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_RestorePointResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_RestorePointResource.cs @@ -98,12 +98,12 @@ public async Task Update_CreateARestorePoint() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // RestorePoints_Delete_MaximumSet_Gen + // RestorePoint_Delete_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_RestorePointsDeleteMaximumSetGen() + public async Task Delete_RestorePointDeleteMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoints_Delete_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoint_Delete_MaximumSet_Gen.json // this example is just showing the usage of "RestorePoints_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,12 +126,12 @@ public async Task Delete_RestorePointsDeleteMaximumSetGen() Console.WriteLine($"Succeeded"); } - // RestorePoints_Delete_MinimumSet_Gen + // RestorePoint_Delete_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_RestorePointsDeleteMinimumSetGen() + public async Task Delete_RestorePointDeleteMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoints_Delete_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoint_Delete_MinimumSet_Gen.json // this example is just showing the usage of "RestorePoints_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SshPublicKeyCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SshPublicKeyCollection.cs index 990219edb48c..f8ca2a4eaafd 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SshPublicKeyCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SshPublicKeyCollection.cs @@ -18,12 +18,12 @@ namespace Azure.ResourceManager.Compute.Samples { public partial class Sample_SshPublicKeyCollection { - // SshPublicKeys_ListByResourceGroup_MaximumSet_Gen + // SshPublicKey_ListByResourceGroup_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_SshPublicKeysListByResourceGroupMaximumSetGen() + public async Task GetAll_SshPublicKeyListByResourceGroupMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_ListByResourceGroup_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MaximumSet_Gen.json // this example is just showing the usage of "SshPublicKeys_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,12 +54,12 @@ public async Task GetAll_SshPublicKeysListByResourceGroupMaximumSetGen() Console.WriteLine($"Succeeded"); } - // SshPublicKeys_ListByResourceGroup_MinimumSet_Gen + // SshPublicKey_ListByResourceGroup_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_SshPublicKeysListByResourceGroupMinimumSetGen() + public async Task GetAll_SshPublicKeyListByResourceGroupMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_ListByResourceGroup_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MinimumSet_Gen.json // this example is just showing the usage of "SshPublicKeys_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SshPublicKeyResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SshPublicKeyResource.cs index ceb01039e89c..41edf86b7d86 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SshPublicKeyResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SshPublicKeyResource.cs @@ -19,12 +19,12 @@ namespace Azure.ResourceManager.Compute.Samples { public partial class Sample_SshPublicKeyResource { - // SshPublicKeys_ListBySubscription_MaximumSet_Gen + // SshPublicKey_ListBySubscription_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetSshPublicKeys_SshPublicKeysListBySubscriptionMaximumSetGen() + public async Task GetSshPublicKeys_SshPublicKeyListBySubscriptionMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_ListBySubscription_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MaximumSet_Gen.json // this example is just showing the usage of "SshPublicKeys_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,12 +51,12 @@ public async Task GetSshPublicKeys_SshPublicKeysListBySubscriptionMaximumSetGen( Console.WriteLine($"Succeeded"); } - // SshPublicKeys_ListBySubscription_MinimumSet_Gen + // SshPublicKey_ListBySubscription_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetSshPublicKeys_SshPublicKeysListBySubscriptionMinimumSetGen() + public async Task GetSshPublicKeys_SshPublicKeyListBySubscriptionMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_ListBySubscription_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MinimumSet_Gen.json // this example is just showing the usage of "SshPublicKeys_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,12 +83,12 @@ public async Task GetSshPublicKeys_SshPublicKeysListBySubscriptionMinimumSetGen( Console.WriteLine($"Succeeded"); } - // SshPublicKeys_Update_MaximumSet_Gen + // SshPublicKey_Update_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_SshPublicKeysUpdateMaximumSetGen() + public async Task Update_SshPublicKeyUpdateMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_Update_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKey_Update_MaximumSet_Gen.json // this example is just showing the usage of "SshPublicKeys_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,12 +122,12 @@ public async Task Update_SshPublicKeysUpdateMaximumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // SshPublicKeys_Update_MinimumSet_Gen + // SshPublicKey_Update_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_SshPublicKeysUpdateMinimumSetGen() + public async Task Update_SshPublicKeyUpdateMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_Update_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKey_Update_MinimumSet_Gen.json // this example is just showing the usage of "SshPublicKeys_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -154,12 +154,12 @@ public async Task Update_SshPublicKeysUpdateMinimumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // SshPublicKeys_Delete_MaximumSet_Gen + // SshPublicKey_Delete_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_SshPublicKeysDeleteMaximumSetGen() + public async Task Delete_SshPublicKeyDeleteMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_Delete_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKey_Delete_MaximumSet_Gen.json // this example is just showing the usage of "SshPublicKeys_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -181,12 +181,12 @@ public async Task Delete_SshPublicKeysDeleteMaximumSetGen() Console.WriteLine($"Succeeded"); } - // SshPublicKeys_Delete_MinimumSet_Gen + // SshPublicKey_Delete_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_SshPublicKeysDeleteMinimumSetGen() + public async Task Delete_SshPublicKeyDeleteMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_Delete_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKey_Delete_MinimumSet_Gen.json // this example is just showing the usage of "SshPublicKeys_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -244,7 +244,7 @@ public async Task Get_GetAnSshPublicKey() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GenerateKeyPair_GenerateAnSSHKeyPair() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_GenerateKeyPair.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair.json // this example is just showing the usage of "SshPublicKeys_GenerateKeyPair" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index fb7996f24bf5..b8abecdb1a0e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -135,12 +135,12 @@ public async Task GetVirtualMachineSizes_VirtualMachineSizesListMinimumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineImages_Get_MaximumSet_Gen + // VirtualMachineImage_Get_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetVirtualMachineImage_VirtualMachineImagesGetMaximumSetGen() + public async Task GetVirtualMachineImage_VirtualMachineImageGetMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_Get_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -165,12 +165,12 @@ public async Task GetVirtualMachineImage_VirtualMachineImagesGetMaximumSetGen() Console.WriteLine($"Succeeded: {result}"); } - // VirtualMachineImages_Get_MinimumSet_Gen + // VirtualMachineImage_Get_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetVirtualMachineImage_VirtualMachineImagesGetMinimumSetGen() + public async Task GetVirtualMachineImage_VirtualMachineImageGetMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_Get_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -195,12 +195,12 @@ public async Task GetVirtualMachineImage_VirtualMachineImagesGetMinimumSetGen() Console.WriteLine($"Succeeded: {result}"); } - // VirtualMachineImages_List_MaximumSet_Gen + // VirtualMachineImage_List_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetVirtualMachineImages_VirtualMachineImagesListMaximumSetGen() + public async Task GetVirtualMachineImages_VirtualMachineImageListMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_List_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImage_List_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineImages_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -224,12 +224,12 @@ public async Task GetVirtualMachineImages_VirtualMachineImagesListMaximumSetGen( Console.WriteLine($"Succeeded"); } - // VirtualMachineImages_List_MinimumSet_Gen + // VirtualMachineImage_List_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetVirtualMachineImages_VirtualMachineImagesListMinimumSetGen() + public async Task GetVirtualMachineImages_VirtualMachineImageListMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_List_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImage_List_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineImages_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -253,12 +253,12 @@ public async Task GetVirtualMachineImages_VirtualMachineImagesListMinimumSetGen( Console.WriteLine($"Succeeded"); } - // VirtualMachineImages_ListOffers_MaximumSet_Gen + // VirtualMachineImage_ListOffers_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetVirtualMachineImageOffers_VirtualMachineImagesListOffersMaximumSetGen() + public async Task GetVirtualMachineImageOffers_VirtualMachineImageListOffersMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListOffers_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineImages_ListOffers" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -283,12 +283,12 @@ public async Task GetVirtualMachineImageOffers_VirtualMachineImagesListOffersMax Console.WriteLine($"Succeeded"); } - // VirtualMachineImages_ListOffers_MinimumSet_Gen + // VirtualMachineImage_ListOffers_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetVirtualMachineImageOffers_VirtualMachineImagesListOffersMinimumSetGen() + public async Task GetVirtualMachineImageOffers_VirtualMachineImageListOffersMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListOffers_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineImages_ListOffers" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -313,12 +313,12 @@ public async Task GetVirtualMachineImageOffers_VirtualMachineImagesListOffersMin Console.WriteLine($"Succeeded"); } - // VirtualMachineImages_ListPublishers_MaximumSet_Gen + // VirtualMachineImage_ListPublishers_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetVirtualMachineImagePublishers_VirtualMachineImagesListPublishersMaximumSetGen() + public async Task GetVirtualMachineImagePublishers_VirtualMachineImageListPublishersMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListPublishers_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineImages_ListPublishers" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -342,12 +342,12 @@ public async Task GetVirtualMachineImagePublishers_VirtualMachineImagesListPubli Console.WriteLine($"Succeeded"); } - // VirtualMachineImages_ListPublishers_MinimumSet_Gen + // VirtualMachineImage_ListPublishers_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetVirtualMachineImagePublishers_VirtualMachineImagesListPublishersMinimumSetGen() + public async Task GetVirtualMachineImagePublishers_VirtualMachineImageListPublishersMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListPublishers_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineImages_ListPublishers" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -371,12 +371,12 @@ public async Task GetVirtualMachineImagePublishers_VirtualMachineImagesListPubli Console.WriteLine($"Succeeded"); } - // VirtualMachineImages_ListSkus_MaximumSet_Gen + // VirtualMachineImage_ListSkus_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetVirtualMachineImageSkus_VirtualMachineImagesListSkusMaximumSetGen() + public async Task GetVirtualMachineImageSkus_VirtualMachineImageListSkusMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListSkus_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineImages_ListSkus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -402,12 +402,12 @@ public async Task GetVirtualMachineImageSkus_VirtualMachineImagesListSkusMaximum Console.WriteLine($"Succeeded"); } - // VirtualMachineImages_ListSkus_MinimumSet_Gen + // VirtualMachineImage_ListSkus_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetVirtualMachineImageSkus_VirtualMachineImagesListSkusMinimumSetGen() + public async Task GetVirtualMachineImageSkus_VirtualMachineImageListSkusMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListSkus_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineImages_ListSkus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineCollection.cs index a8724916ddba..222c3bdc0c70 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineCollection.cs @@ -864,7 +864,7 @@ public async Task CreateOrUpdate_CreateAVMWithUserData() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAVMWithVMSizeProperties() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_CreateWithVMSizeProperties.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithVMSizeProperties.json // this example is just showing the usage of "VirtualMachines_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -3937,12 +3937,12 @@ public async Task Exists_GetAVirtualMachineWithVMSizeProperties() Console.WriteLine($"Succeeded: {result}"); } - // VirtualMachines_List_MaximumSet_Gen + // VirtualMachine_List_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_VirtualMachinesListMaximumSetGen() + public async Task GetAll_VirtualMachineListMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_List_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_List_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachines_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -3974,12 +3974,12 @@ public async Task GetAll_VirtualMachinesListMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachines_List_MinimumSet_Gen + // VirtualMachine_List_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_VirtualMachinesListMinimumSetGen() + public async Task GetAll_VirtualMachineListMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_List_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_List_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachines_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineExtensionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineExtensionCollection.cs index e24d74e22a3d..78187669c395 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineExtensionCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineExtensionCollection.cs @@ -19,12 +19,12 @@ namespace Azure.ResourceManager.Compute.Samples { public partial class Sample_VirtualMachineExtensionCollection { - // VirtualMachineExtensions_CreateOrUpdate_MaximumSet_Gen + // VirtualMachineExtension_CreateOrUpdate_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_VirtualMachineExtensionsCreateOrUpdateMaximumSetGen() + public async Task CreateOrUpdate_VirtualMachineExtensionCreateOrUpdateMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_CreateOrUpdate_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -103,12 +103,12 @@ public async Task CreateOrUpdate_VirtualMachineExtensionsCreateOrUpdateMaximumSe Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineExtensions_CreateOrUpdate_MinimumSet_Gen + // VirtualMachineExtension_CreateOrUpdate_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_VirtualMachineExtensionsCreateOrUpdateMinimumSetGen() + public async Task CreateOrUpdate_VirtualMachineExtensionCreateOrUpdateMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_CreateOrUpdate_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +120,7 @@ public async Task CreateOrUpdate_VirtualMachineExtensionsCreateOrUpdateMinimumSe // for more information of creating VirtualMachineResource, please refer to the document of VirtualMachineResource string subscriptionId = "{subscription-id}"; string resourceGroupName = "rgcompute"; - string vmName = "aaaa"; + string vmName = "myVM"; ResourceIdentifier virtualMachineResourceId = VirtualMachineResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vmName); VirtualMachineResource virtualMachine = client.GetVirtualMachineResource(virtualMachineResourceId); @@ -128,7 +128,7 @@ public async Task CreateOrUpdate_VirtualMachineExtensionsCreateOrUpdateMinimumSe VirtualMachineExtensionCollection collection = virtualMachine.GetVirtualMachineExtensions(); // invoke the operation - string vmExtensionName = "aaaaaaaaaaaaaaaaaaaaaaaa"; + string vmExtensionName = "myVMExtension"; VirtualMachineExtensionData data = new VirtualMachineExtensionData(new AzureLocation("westus")); ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, vmExtensionName, data); VirtualMachineExtensionResource result = lro.Value; @@ -140,12 +140,12 @@ public async Task CreateOrUpdate_VirtualMachineExtensionsCreateOrUpdateMinimumSe Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineExtensions_Get_MaximumSet_Gen + // VirtualMachineExtension_Get_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_VirtualMachineExtensionsGetMaximumSetGen() + public async Task Get_VirtualMachineExtensionGetMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Get_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtension_Get_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -176,12 +176,12 @@ public async Task Get_VirtualMachineExtensionsGetMaximumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineExtensions_Get_MaximumSet_Gen + // VirtualMachineExtension_Get_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_VirtualMachineExtensionsGetMaximumSetGen() + public async Task Exists_VirtualMachineExtensionGetMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Get_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtension_Get_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -208,12 +208,12 @@ public async Task Exists_VirtualMachineExtensionsGetMaximumSetGen() Console.WriteLine($"Succeeded: {result}"); } - // VirtualMachineExtensions_Get_MinimumSet_Gen + // VirtualMachineExtension_Get_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_VirtualMachineExtensionsGetMinimumSetGen() + public async Task Get_VirtualMachineExtensionGetMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Get_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtension_Get_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -225,7 +225,7 @@ public async Task Get_VirtualMachineExtensionsGetMinimumSetGen() // for more information of creating VirtualMachineResource, please refer to the document of VirtualMachineResource string subscriptionId = "{subscription-id}"; string resourceGroupName = "rgcompute"; - string vmName = "a"; + string vmName = "myVM"; ResourceIdentifier virtualMachineResourceId = VirtualMachineResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vmName); VirtualMachineResource virtualMachine = client.GetVirtualMachineResource(virtualMachineResourceId); @@ -233,7 +233,7 @@ public async Task Get_VirtualMachineExtensionsGetMinimumSetGen() VirtualMachineExtensionCollection collection = virtualMachine.GetVirtualMachineExtensions(); // invoke the operation - string vmExtensionName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + string vmExtensionName = "myVMExtension"; VirtualMachineExtensionResource result = await collection.GetAsync(vmExtensionName); // the variable result is a resource, you could call other operations on this instance as well @@ -243,12 +243,12 @@ public async Task Get_VirtualMachineExtensionsGetMinimumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineExtensions_Get_MinimumSet_Gen + // VirtualMachineExtension_Get_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_VirtualMachineExtensionsGetMinimumSetGen() + public async Task Exists_VirtualMachineExtensionGetMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Get_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtension_Get_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -260,7 +260,7 @@ public async Task Exists_VirtualMachineExtensionsGetMinimumSetGen() // for more information of creating VirtualMachineResource, please refer to the document of VirtualMachineResource string subscriptionId = "{subscription-id}"; string resourceGroupName = "rgcompute"; - string vmName = "a"; + string vmName = "myVM"; ResourceIdentifier virtualMachineResourceId = VirtualMachineResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vmName); VirtualMachineResource virtualMachine = client.GetVirtualMachineResource(virtualMachineResourceId); @@ -268,18 +268,18 @@ public async Task Exists_VirtualMachineExtensionsGetMinimumSetGen() VirtualMachineExtensionCollection collection = virtualMachine.GetVirtualMachineExtensions(); // invoke the operation - string vmExtensionName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + string vmExtensionName = "myVMExtension"; bool result = await collection.ExistsAsync(vmExtensionName); Console.WriteLine($"Succeeded: {result}"); } - // VirtualMachineExtensions_List_MaximumSet_Gen + // VirtualMachineExtension_List_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_VirtualMachineExtensionsListMaximumSetGen() + public async Task GetAll_VirtualMachineExtensionListMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_List_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtension_List_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -312,12 +312,12 @@ public async Task GetAll_VirtualMachineExtensionsListMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineExtensions_List_MinimumSet_Gen + // VirtualMachineExtension_List_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_VirtualMachineExtensionsListMinimumSetGen() + public async Task GetAll_VirtualMachineExtensionListMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_List_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtension_List_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineExtensionImageCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineExtensionImageCollection.cs index 5c2e01baccab..a82da80742c0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineExtensionImageCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineExtensionImageCollection.cs @@ -17,12 +17,12 @@ namespace Azure.ResourceManager.Compute.Samples { public partial class Sample_VirtualMachineExtensionImageCollection { - // VirtualMachineExtensionImages_Get_MaximumSet_Gen + // VirtualMachineExtensionImage_Get_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_VirtualMachineExtensionImagesGetMaximumSetGen() + public async Task Get_VirtualMachineExtensionImageGetMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensionImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,12 +53,12 @@ public async Task Get_VirtualMachineExtensionImagesGetMaximumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineExtensionImages_Get_MaximumSet_Gen + // VirtualMachineExtensionImage_Get_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_VirtualMachineExtensionImagesGetMaximumSetGen() + public async Task Exists_VirtualMachineExtensionImageGetMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensionImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,12 +85,12 @@ public async Task Exists_VirtualMachineExtensionImagesGetMaximumSetGen() Console.WriteLine($"Succeeded: {result}"); } - // VirtualMachineExtensionImages_Get_MinimumSet_Gen + // VirtualMachineExtensionImage_Get_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_VirtualMachineExtensionImagesGetMinimumSetGen() + public async Task Get_VirtualMachineExtensionImageGetMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensionImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,12 +121,12 @@ public async Task Get_VirtualMachineExtensionImagesGetMinimumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineExtensionImages_Get_MinimumSet_Gen + // VirtualMachineExtensionImage_Get_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_VirtualMachineExtensionImagesGetMinimumSetGen() + public async Task Exists_VirtualMachineExtensionImageGetMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensionImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -153,12 +153,12 @@ public async Task Exists_VirtualMachineExtensionImagesGetMinimumSetGen() Console.WriteLine($"Succeeded: {result}"); } - // VirtualMachineExtensionImages_ListTypes_MaximumSet_Gen + // VirtualMachineExtensionImage_ListTypes_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_VirtualMachineExtensionImagesListTypesMaximumSetGen() + public async Task GetAll_VirtualMachineExtensionImageListTypesMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensionImages_ListTypes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -190,12 +190,12 @@ public async Task GetAll_VirtualMachineExtensionImagesListTypesMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineExtensionImages_ListTypes_MinimumSet_Gen + // VirtualMachineExtensionImage_ListTypes_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_VirtualMachineExtensionImagesListTypesMinimumSetGen() + public async Task GetAll_VirtualMachineExtensionImageListTypesMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensionImages_ListTypes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -227,12 +227,12 @@ public async Task GetAll_VirtualMachineExtensionImagesListTypesMinimumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineExtensionImages_ListVersions_MaximumSet_Gen + // VirtualMachineExtensionImage_ListVersions_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_VirtualMachineExtensionImagesListVersionsMaximumSetGen() + public async Task GetAll_VirtualMachineExtensionImageListVersionsMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensionImages_ListVersions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -268,12 +268,12 @@ public async Task GetAll_VirtualMachineExtensionImagesListVersionsMaximumSetGen( Console.WriteLine($"Succeeded"); } - // VirtualMachineExtensionImages_ListVersions_MinimumSet_Gen + // VirtualMachineExtensionImage_ListVersions_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_VirtualMachineExtensionImagesListVersionsMinimumSetGen() + public async Task GetAll_VirtualMachineExtensionImageListVersionsMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensionImages_ListVersions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineExtensionImageResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineExtensionImageResource.cs index 85936f212ebe..c7f9fdf17ff0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineExtensionImageResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineExtensionImageResource.cs @@ -16,12 +16,12 @@ namespace Azure.ResourceManager.Compute.Samples { public partial class Sample_VirtualMachineExtensionImageResource { - // VirtualMachineExtensionImages_Get_MaximumSet_Gen + // VirtualMachineExtensionImage_Get_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_VirtualMachineExtensionImagesGetMaximumSetGen() + public async Task Get_VirtualMachineExtensionImageGetMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensionImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -49,12 +49,12 @@ public async Task Get_VirtualMachineExtensionImagesGetMaximumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineExtensionImages_Get_MinimumSet_Gen + // VirtualMachineExtensionImage_Get_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_VirtualMachineExtensionImagesGetMinimumSetGen() + public async Task Get_VirtualMachineExtensionImageGetMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensionImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineExtensionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineExtensionResource.cs index 4f7998d47313..80144f177d10 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineExtensionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineExtensionResource.cs @@ -25,7 +25,7 @@ public partial class Sample_VirtualMachineExtensionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateVMExtension() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Update.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtension_Update.json // this example is just showing the usage of "VirtualMachineExtensions_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -69,12 +69,12 @@ public async Task Update_UpdateVMExtension() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineExtensions_Delete_MaximumSet_Gen + // VirtualMachineExtension_Delete_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_VirtualMachineExtensionsDeleteMaximumSetGen() + public async Task Delete_VirtualMachineExtensionDeleteMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Delete_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtension_Delete_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensions_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,12 +97,12 @@ public async Task Delete_VirtualMachineExtensionsDeleteMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineExtensions_Delete_MinimumSet_Gen + // VirtualMachineExtension_Delete_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_VirtualMachineExtensionsDeleteMinimumSetGen() + public async Task Delete_VirtualMachineExtensionDeleteMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Delete_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtension_Delete_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensions_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,12 +125,12 @@ public async Task Delete_VirtualMachineExtensionsDeleteMinimumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineExtensions_Get_MaximumSet_Gen + // VirtualMachineExtension_Get_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_VirtualMachineExtensionsGetMaximumSetGen() + public async Task Get_VirtualMachineExtensionGetMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Get_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtension_Get_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -158,12 +158,12 @@ public async Task Get_VirtualMachineExtensionsGetMaximumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineExtensions_Get_MinimumSet_Gen + // VirtualMachineExtension_Get_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_VirtualMachineExtensionsGetMinimumSetGen() + public async Task Get_VirtualMachineExtensionGetMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Get_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtension_Get_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -175,8 +175,8 @@ public async Task Get_VirtualMachineExtensionsGetMinimumSetGen() // for more information of creating VirtualMachineExtensionResource, please refer to the document of VirtualMachineExtensionResource string subscriptionId = "{subscription-id}"; string resourceGroupName = "rgcompute"; - string vmName = "a"; - string vmExtensionName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + string vmName = "myVM"; + string vmExtensionName = "myVMExtension"; ResourceIdentifier virtualMachineExtensionResourceId = VirtualMachineExtensionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vmName, vmExtensionName); VirtualMachineExtensionResource virtualMachineExtension = client.GetVirtualMachineExtensionResource(virtualMachineExtensionResourceId); diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineResource.cs index ff131698aad9..df619d936d1c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineResource.cs @@ -25,7 +25,7 @@ public partial class Sample_VirtualMachineResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualMachinesByLocation_ListsAllTheVirtualMachinesUnderTheSpecifiedSubscriptionForTheSpecifiedLocation() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListBySubscription_ByLocation.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_ListBySubscription_ByLocation.json // this example is just showing the usage of "VirtualMachines_ListByLocation" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,12 +53,12 @@ public async Task GetVirtualMachinesByLocation_ListsAllTheVirtualMachinesUnderTh Console.WriteLine($"Succeeded"); } - // VirtualMachines_Capture_MaximumSet_Gen + // VirtualMachine_Capture_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Capture_VirtualMachinesCaptureMaximumSetGen() + public async Task Capture_VirtualMachineCaptureMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Capture_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Capture_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachines_Capture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,12 +82,12 @@ public async Task Capture_VirtualMachinesCaptureMaximumSetGen() Console.WriteLine($"Succeeded: {result}"); } - // VirtualMachines_Capture_MinimumSet_Gen + // VirtualMachine_Capture_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Capture_VirtualMachinesCaptureMinimumSetGen() + public async Task Capture_VirtualMachineCaptureMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Capture_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Capture_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachines_Capture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -494,12 +494,12 @@ public async Task InstanceView_GetInstanceViewOfAVirtualMachinePlacedOnADedicate Console.WriteLine($"Succeeded: {result}"); } - // VirtualMachines_ConvertToManagedDisks_MaximumSet_Gen + // VirtualMachine_ConvertToManagedDisks_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task ConvertToManagedDisks_VirtualMachinesConvertToManagedDisksMaximumSetGen() + public async Task ConvertToManagedDisks_VirtualMachineConvertToManagedDisksMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ConvertToManagedDisks_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachines_ConvertToManagedDisks" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -521,12 +521,12 @@ public async Task ConvertToManagedDisks_VirtualMachinesConvertToManagedDisksMaxi Console.WriteLine($"Succeeded"); } - // VirtualMachines_ConvertToManagedDisks_MinimumSet_Gen + // VirtualMachine_ConvertToManagedDisks_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task ConvertToManagedDisks_VirtualMachinesConvertToManagedDisksMinimumSetGen() + public async Task ConvertToManagedDisks_VirtualMachineConvertToManagedDisksMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ConvertToManagedDisks_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachines_ConvertToManagedDisks" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -548,12 +548,12 @@ public async Task ConvertToManagedDisks_VirtualMachinesConvertToManagedDisksMini Console.WriteLine($"Succeeded"); } - // VirtualMachines_Deallocate_MaximumSet_Gen + // VirtualMachine_Deallocate_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Deallocate_VirtualMachinesDeallocateMaximumSetGen() + public async Task Deallocate_VirtualMachineDeallocateMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Deallocate_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Deallocate_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachines_Deallocate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -576,12 +576,12 @@ public async Task Deallocate_VirtualMachinesDeallocateMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachines_Deallocate_MinimumSet_Gen + // VirtualMachine_Deallocate_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Deallocate_VirtualMachinesDeallocateMinimumSetGen() + public async Task Deallocate_VirtualMachineDeallocateMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Deallocate_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Deallocate_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachines_Deallocate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -630,12 +630,12 @@ public async Task Generalize_GeneralizeAVirtualMachine() Console.WriteLine($"Succeeded"); } - // VirtualMachines_ListAll_MaximumSet_Gen + // VirtualMachine_ListAll_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetVirtualMachines_VirtualMachinesListAllMaximumSetGen() + public async Task GetVirtualMachines_VirtualMachineListAllMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListAll_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_ListAll_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachines_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -664,12 +664,12 @@ public async Task GetVirtualMachines_VirtualMachinesListAllMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachines_ListAll_MinimumSet_Gen + // VirtualMachine_ListAll_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetVirtualMachines_VirtualMachinesListAllMinimumSetGen() + public async Task GetVirtualMachines_VirtualMachineListAllMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListAll_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_ListAll_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachines_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -701,7 +701,7 @@ public async Task GetVirtualMachines_VirtualMachinesListAllMinimumSetGen() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableSizes_ListsAllAvailableVirtualMachineSizesToWhichTheSpecifiedVirtualMachineCanBeResized() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListAvailableVmSizes.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_ListAvailableVmSizes.json // this example is just showing the usage of "VirtualMachines_ListAvailableSizes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -726,12 +726,12 @@ public async Task GetAvailableSizes_ListsAllAvailableVirtualMachineSizesToWhichT Console.WriteLine($"Succeeded"); } - // VirtualMachines_PowerOff_MaximumSet_Gen + // VirtualMachine_PowerOff_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task PowerOff_VirtualMachinesPowerOffMaximumSetGen() + public async Task PowerOff_VirtualMachinePowerOffMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_PowerOff_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_PowerOff_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachines_PowerOff" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -754,12 +754,12 @@ public async Task PowerOff_VirtualMachinesPowerOffMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachines_PowerOff_MinimumSet_Gen + // VirtualMachine_PowerOff_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task PowerOff_VirtualMachinesPowerOffMinimumSetGen() + public async Task PowerOff_VirtualMachinePowerOffMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_PowerOff_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_PowerOff_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachines_PowerOff" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -808,12 +808,12 @@ public async Task Reapply_ReapplyTheStateOfAVirtualMachine() Console.WriteLine($"Succeeded"); } - // VirtualMachines_Restart_MaximumSet_Gen + // VirtualMachine_Restart_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Restart_VirtualMachinesRestartMaximumSetGen() + public async Task Restart_VirtualMachineRestartMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Restart_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Restart_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachines_Restart" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -835,12 +835,12 @@ public async Task Restart_VirtualMachinesRestartMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachines_Restart_MinimumSet_Gen + // VirtualMachine_Restart_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Restart_VirtualMachinesRestartMinimumSetGen() + public async Task Restart_VirtualMachineRestartMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Restart_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Restart_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachines_Restart" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -862,12 +862,12 @@ public async Task Restart_VirtualMachinesRestartMinimumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachines_Start_MaximumSet_Gen + // VirtualMachine_Start_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task PowerOn_VirtualMachinesStartMaximumSetGen() + public async Task PowerOn_VirtualMachineStartMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Start_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Start_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachines_Start" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -889,12 +889,12 @@ public async Task PowerOn_VirtualMachinesStartMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachines_Start_MinimumSet_Gen + // VirtualMachine_Start_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task PowerOn_VirtualMachinesStartMinimumSetGen() + public async Task PowerOn_VirtualMachineStartMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Start_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Start_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachines_Start" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -916,12 +916,12 @@ public async Task PowerOn_VirtualMachinesStartMinimumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachines_Redeploy_MaximumSet_Gen + // VirtualMachine_Redeploy_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Redeploy_VirtualMachinesRedeployMaximumSetGen() + public async Task Redeploy_VirtualMachineRedeployMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Redeploy_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Redeploy_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachines_Redeploy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -943,12 +943,12 @@ public async Task Redeploy_VirtualMachinesRedeployMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachines_Redeploy_MinimumSet_Gen + // VirtualMachine_Redeploy_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Redeploy_VirtualMachinesRedeployMinimumSetGen() + public async Task Redeploy_VirtualMachineRedeployMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Redeploy_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Redeploy_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachines_Redeploy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1066,12 +1066,12 @@ public async Task RetrieveBootDiagnosticsData_RetrieveBootDiagnosticsDataOfAVirt Console.WriteLine($"Succeeded: {result}"); } - // VirtualMachines_PerformMaintenance_MaximumSet_Gen + // VirtualMachine_PerformMaintenance_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task PerformMaintenance_VirtualMachinesPerformMaintenanceMaximumSetGen() + public async Task PerformMaintenance_VirtualMachinePerformMaintenanceMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_PerformMaintenance_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_PerformMaintenance_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachines_PerformMaintenance" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1093,12 +1093,12 @@ public async Task PerformMaintenance_VirtualMachinesPerformMaintenanceMaximumSet Console.WriteLine($"Succeeded"); } - // VirtualMachines_PerformMaintenance_MinimumSet_Gen + // VirtualMachine_PerformMaintenance_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task PerformMaintenance_VirtualMachinesPerformMaintenanceMinimumSetGen() + public async Task PerformMaintenance_VirtualMachinePerformMaintenanceMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_PerformMaintenance_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_PerformMaintenance_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachines_PerformMaintenance" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetCollection.cs index 8cc3ce3f1b98..de20a98d3fba 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetCollection.cs @@ -4136,12 +4136,12 @@ public async Task Exists_GetAVirtualMachineScaleSetWithUserData() Console.WriteLine($"Succeeded: {result}"); } - // VirtualMachineScaleSets_List_MaximumSet_Gen + // VirtualMachineScaleSet_List_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_VirtualMachineScaleSetsListMaximumSetGen() + public async Task GetAll_VirtualMachineScaleSetListMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_List_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -4172,12 +4172,12 @@ public async Task GetAll_VirtualMachineScaleSetsListMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_List_MinimumSet_Gen + // VirtualMachineScaleSet_List_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_VirtualMachineScaleSetsListMinimumSetGen() + public async Task GetAll_VirtualMachineScaleSetListMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_List_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetExtensionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetExtensionCollection.cs index 3509b7b4a663..9308bbafbb80 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetExtensionCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetExtensionCollection.cs @@ -18,12 +18,12 @@ namespace Azure.ResourceManager.Compute.Samples { public partial class Sample_VirtualMachineScaleSetExtensionCollection { - // VirtualMachineScaleSetExtensions_CreateOrUpdate_MaximumSet_Gen + // VirtualMachineScaleSetExtension_CreateOrUpdate_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_VirtualMachineScaleSetExtensionsCreateOrUpdateMaximumSetGen() + public async Task CreateOrUpdate_VirtualMachineScaleSetExtensionCreateOrUpdateMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_CreateOrUpdate_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetExtensions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -74,12 +74,12 @@ public async Task CreateOrUpdate_VirtualMachineScaleSetExtensionsCreateOrUpdateM Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineScaleSetExtensions_CreateOrUpdate_MinimumSet_Gen + // VirtualMachineScaleSetExtension_CreateOrUpdate_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_VirtualMachineScaleSetExtensionsCreateOrUpdateMinimumSetGen() + public async Task CreateOrUpdate_VirtualMachineScaleSetExtensionCreateOrUpdateMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_CreateOrUpdate_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetExtensions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,12 +111,12 @@ public async Task CreateOrUpdate_VirtualMachineScaleSetExtensionsCreateOrUpdateM Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineScaleSetExtensions_Get_MaximumSet_Gen + // VirtualMachineScaleSetExtension_Get_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_VirtualMachineScaleSetExtensionsGetMaximumSetGen() + public async Task Get_VirtualMachineScaleSetExtensionGetMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Get_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetExtensions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -147,12 +147,12 @@ public async Task Get_VirtualMachineScaleSetExtensionsGetMaximumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineScaleSetExtensions_Get_MaximumSet_Gen + // VirtualMachineScaleSetExtension_Get_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_VirtualMachineScaleSetExtensionsGetMaximumSetGen() + public async Task Exists_VirtualMachineScaleSetExtensionGetMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Get_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetExtensions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -179,12 +179,12 @@ public async Task Exists_VirtualMachineScaleSetExtensionsGetMaximumSetGen() Console.WriteLine($"Succeeded: {result}"); } - // VirtualMachineScaleSetExtensions_Get_MinimumSet_Gen + // VirtualMachineScaleSetExtension_Get_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_VirtualMachineScaleSetExtensionsGetMinimumSetGen() + public async Task Get_VirtualMachineScaleSetExtensionGetMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Get_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetExtensions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -214,12 +214,12 @@ public async Task Get_VirtualMachineScaleSetExtensionsGetMinimumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineScaleSetExtensions_Get_MinimumSet_Gen + // VirtualMachineScaleSetExtension_Get_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_VirtualMachineScaleSetExtensionsGetMinimumSetGen() + public async Task Exists_VirtualMachineScaleSetExtensionGetMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Get_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetExtensions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -245,12 +245,12 @@ public async Task Exists_VirtualMachineScaleSetExtensionsGetMinimumSetGen() Console.WriteLine($"Succeeded: {result}"); } - // VirtualMachineScaleSetExtensions_List_MaximumSet_Gen + // VirtualMachineScaleSetExtension_List_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_VirtualMachineScaleSetExtensionsListMaximumSetGen() + public async Task GetAll_VirtualMachineScaleSetExtensionListMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_List_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetExtensions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -282,12 +282,12 @@ public async Task GetAll_VirtualMachineScaleSetExtensionsListMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetExtensions_List_MinimumSet_Gen + // VirtualMachineScaleSetExtension_List_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_VirtualMachineScaleSetExtensionsListMinimumSetGen() + public async Task GetAll_VirtualMachineScaleSetExtensionListMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_List_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetExtensions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetExtensionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetExtensionResource.cs index adc2c3912bbc..2ed0fe2d7db6 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetExtensionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetExtensionResource.cs @@ -19,12 +19,12 @@ namespace Azure.ResourceManager.Compute.Samples { public partial class Sample_VirtualMachineScaleSetExtensionResource { - // VirtualMachineScaleSetExtensions_Update_MaximumSet_Gen + // VirtualMachineScaleSetExtension_Update_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_VirtualMachineScaleSetExtensionsUpdateMaximumSetGen() + public async Task Update_VirtualMachineScaleSetExtensionUpdateMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Update_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetExtensions_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -72,12 +72,12 @@ public async Task Update_VirtualMachineScaleSetExtensionsUpdateMaximumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineScaleSetExtensions_Update_MinimumSet_Gen + // VirtualMachineScaleSetExtension_Update_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_VirtualMachineScaleSetExtensionsUpdateMinimumSetGen() + public async Task Update_VirtualMachineScaleSetExtensionUpdateMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Update_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetExtensions_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -106,12 +106,12 @@ public async Task Update_VirtualMachineScaleSetExtensionsUpdateMinimumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineScaleSetExtensions_Delete_MaximumSet_Gen + // VirtualMachineScaleSetExtension_Delete_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_VirtualMachineScaleSetExtensionsDeleteMaximumSetGen() + public async Task Delete_VirtualMachineScaleSetExtensionDeleteMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Delete_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetExtensions_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -134,12 +134,12 @@ public async Task Delete_VirtualMachineScaleSetExtensionsDeleteMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetExtensions_Delete_MinimumSet_Gen + // VirtualMachineScaleSetExtension_Delete_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_VirtualMachineScaleSetExtensionsDeleteMinimumSetGen() + public async Task Delete_VirtualMachineScaleSetExtensionDeleteMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Delete_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetExtensions_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -162,12 +162,12 @@ public async Task Delete_VirtualMachineScaleSetExtensionsDeleteMinimumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetExtensions_Get_MaximumSet_Gen + // VirtualMachineScaleSetExtension_Get_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_VirtualMachineScaleSetExtensionsGetMaximumSetGen() + public async Task Get_VirtualMachineScaleSetExtensionGetMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Get_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetExtensions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -195,12 +195,12 @@ public async Task Get_VirtualMachineScaleSetExtensionsGetMaximumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineScaleSetExtensions_Get_MinimumSet_Gen + // VirtualMachineScaleSetExtension_Get_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_VirtualMachineScaleSetExtensionsGetMinimumSetGen() + public async Task Get_VirtualMachineScaleSetExtensionGetMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Get_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetExtensions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetResource.cs index 793d76c66c3a..14393c570c5c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetResource.cs @@ -27,7 +27,7 @@ public partial class Sample_VirtualMachineScaleSetResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualMachineScaleSetsByLocation_ListsAllTheVMScaleSetsUnderTheSpecifiedSubscriptionForTheSpecifiedLocation() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListBySubscription_ByLocation.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListBySubscription_ByLocation.json // this example is just showing the usage of "VirtualMachineScaleSets_ListByLocation" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,12 +55,12 @@ public async Task GetVirtualMachineScaleSetsByLocation_ListsAllTheVMScaleSetsUnd Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_Update_MaximumSet_Gen + // VirtualMachineScaleSet_Update_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_VirtualMachineScaleSetsUpdateMaximumSetGen() + public async Task Update_VirtualMachineScaleSetUpdateMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Update_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -297,12 +297,10 @@ public async Task Update_VirtualMachineScaleSetsUpdateMaximumSetGen() Id = new ResourceIdentifier("subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"), } }, -Id = new ResourceIdentifier("aaaaaaaaaaaaaaaa"), } }, EnableIPForwarding = true, DeleteOption = ComputeDeleteOption.Delete, -Id = new ResourceIdentifier("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), } }, NetworkApiVersion = NetworkApiVersion.TwoThousandTwenty1101, @@ -393,12 +391,12 @@ public async Task Update_VirtualMachineScaleSetsUpdateMaximumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineScaleSets_Update_MinimumSet_Gen + // VirtualMachineScaleSet_Update_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_VirtualMachineScaleSetsUpdateMinimumSetGen() + public async Task Update_VirtualMachineScaleSetUpdateMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Update_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -580,12 +578,12 @@ public async Task Get_GetAVirtualMachineScaleSetWithUserData() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineScaleSets_Deallocate_MaximumSet_Gen + // VirtualMachineScaleSet_Deallocate_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Deallocate_VirtualMachineScaleSetsDeallocateMaximumSetGen() + public async Task Deallocate_VirtualMachineScaleSetDeallocateMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Deallocate_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_Deallocate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -614,12 +612,12 @@ public async Task Deallocate_VirtualMachineScaleSetsDeallocateMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_Deallocate_MinimumSet_Gen + // VirtualMachineScaleSet_Deallocate_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Deallocate_VirtualMachineScaleSetsDeallocateMinimumSetGen() + public async Task Deallocate_VirtualMachineScaleSetDeallocateMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Deallocate_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_Deallocate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -641,12 +639,12 @@ public async Task Deallocate_VirtualMachineScaleSetsDeallocateMinimumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_DeleteInstances_MaximumSet_Gen + // VirtualMachineScaleSet_DeleteInstances_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task DeleteInstances_VirtualMachineScaleSetsDeleteInstancesMaximumSetGen() + public async Task DeleteInstances_VirtualMachineScaleSetDeleteInstancesMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_DeleteInstances_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_DeleteInstances_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_DeleteInstances" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -673,12 +671,12 @@ public async Task DeleteInstances_VirtualMachineScaleSetsDeleteInstancesMaximumS Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_DeleteInstances_MinimumSet_Gen + // VirtualMachineScaleSet_DeleteInstances_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task DeleteInstances_VirtualMachineScaleSetsDeleteInstancesMinimumSetGen() + public async Task DeleteInstances_VirtualMachineScaleSetDeleteInstancesMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_DeleteInstances_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_DeleteInstances_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_DeleteInstances" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -704,12 +702,12 @@ public async Task DeleteInstances_VirtualMachineScaleSetsDeleteInstancesMinimumS Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_GetInstanceView_MaximumSet_Gen + // VirtualMachineScaleSet_GetInstanceView_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetInstanceView_VirtualMachineScaleSetsGetInstanceViewMaximumSetGen() + public async Task GetInstanceView_VirtualMachineScaleSetGetInstanceViewMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_GetInstanceView_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_GetInstanceView" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -731,12 +729,12 @@ public async Task GetInstanceView_VirtualMachineScaleSetsGetInstanceViewMaximumS Console.WriteLine($"Succeeded: {result}"); } - // VirtualMachineScaleSets_GetInstanceView_MinimumSet_Gen + // VirtualMachineScaleSet_GetInstanceView_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetInstanceView_VirtualMachineScaleSetsGetInstanceViewMinimumSetGen() + public async Task GetInstanceView_VirtualMachineScaleSetGetInstanceViewMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_GetInstanceView_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_GetInstanceView" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -758,12 +756,12 @@ public async Task GetInstanceView_VirtualMachineScaleSetsGetInstanceViewMinimumS Console.WriteLine($"Succeeded: {result}"); } - // VirtualMachineScaleSets_ListAll_MaximumSet_Gen + // VirtualMachineScaleSet_ListAll_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetVirtualMachineScaleSets_VirtualMachineScaleSetsListAllMaximumSetGen() + public async Task GetVirtualMachineScaleSets_VirtualMachineScaleSetListAllMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListAll_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -790,12 +788,12 @@ public async Task GetVirtualMachineScaleSets_VirtualMachineScaleSetsListAllMaxim Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_ListAll_MinimumSet_Gen + // VirtualMachineScaleSet_ListAll_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetVirtualMachineScaleSets_VirtualMachineScaleSetsListAllMinimumSetGen() + public async Task GetVirtualMachineScaleSets_VirtualMachineScaleSetListAllMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListAll_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -822,12 +820,12 @@ public async Task GetVirtualMachineScaleSets_VirtualMachineScaleSetsListAllMinim Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_ListSkus_MaximumSet_Gen + // VirtualMachineScaleSet_ListSkus_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetSkus_VirtualMachineScaleSetsListSkusMaximumSetGen() + public async Task GetSkus_VirtualMachineScaleSetListSkusMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListSkus_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_ListSkus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -852,12 +850,12 @@ public async Task GetSkus_VirtualMachineScaleSetsListSkusMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_ListSkus_MinimumSet_Gen + // VirtualMachineScaleSet_ListSkus_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetSkus_VirtualMachineScaleSetsListSkusMinimumSetGen() + public async Task GetSkus_VirtualMachineScaleSetListSkusMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListSkus_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_ListSkus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -882,12 +880,12 @@ public async Task GetSkus_VirtualMachineScaleSetsListSkusMinimumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_GetOSUpgradeHistory_MaximumSet_Gen + // VirtualMachineScaleSet_GetOSUpgradeHistory_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetOSUpgradeHistory_VirtualMachineScaleSetsGetOSUpgradeHistoryMaximumSetGen() + public async Task GetOSUpgradeHistory_VirtualMachineScaleSetGetOSUpgradeHistoryMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_GetOSUpgradeHistory_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_GetOSUpgradeHistory" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -912,12 +910,12 @@ public async Task GetOSUpgradeHistory_VirtualMachineScaleSetsGetOSUpgradeHistory Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_GetOSUpgradeHistory_MinimumSet_Gen + // VirtualMachineScaleSet_GetOSUpgradeHistory_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetOSUpgradeHistory_VirtualMachineScaleSetsGetOSUpgradeHistoryMinimumSetGen() + public async Task GetOSUpgradeHistory_VirtualMachineScaleSetGetOSUpgradeHistoryMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_GetOSUpgradeHistory_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_GetOSUpgradeHistory" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -942,12 +940,12 @@ public async Task GetOSUpgradeHistory_VirtualMachineScaleSetsGetOSUpgradeHistory Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_PowerOff_MaximumSet_Gen + // VirtualMachineScaleSet_PowerOff_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task PowerOff_VirtualMachineScaleSetsPowerOffMaximumSetGen() + public async Task PowerOff_VirtualMachineScaleSetPowerOffMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_PowerOff_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_PowerOff" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -977,12 +975,12 @@ public async Task PowerOff_VirtualMachineScaleSetsPowerOffMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_PowerOff_MinimumSet_Gen + // VirtualMachineScaleSet_PowerOff_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task PowerOff_VirtualMachineScaleSetsPowerOffMinimumSetGen() + public async Task PowerOff_VirtualMachineScaleSetPowerOffMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_PowerOff_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_PowerOff" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1004,12 +1002,12 @@ public async Task PowerOff_VirtualMachineScaleSetsPowerOffMinimumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_Restart_MaximumSet_Gen + // VirtualMachineScaleSet_Restart_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Restart_VirtualMachineScaleSetsRestartMaximumSetGen() + public async Task Restart_VirtualMachineScaleSetRestartMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Restart_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_Restart" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1038,12 +1036,12 @@ public async Task Restart_VirtualMachineScaleSetsRestartMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_Restart_MinimumSet_Gen + // VirtualMachineScaleSet_Restart_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Restart_VirtualMachineScaleSetsRestartMinimumSetGen() + public async Task Restart_VirtualMachineScaleSetRestartMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Restart_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_Restart" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1065,12 +1063,12 @@ public async Task Restart_VirtualMachineScaleSetsRestartMinimumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_Start_MaximumSet_Gen + // VirtualMachineScaleSet_Start_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task PowerOn_VirtualMachineScaleSetsStartMaximumSetGen() + public async Task PowerOn_VirtualMachineScaleSetStartMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Start_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_Start" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1099,12 +1097,12 @@ public async Task PowerOn_VirtualMachineScaleSetsStartMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_Start_MinimumSet_Gen + // VirtualMachineScaleSet_Start_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task PowerOn_VirtualMachineScaleSetsStartMinimumSetGen() + public async Task PowerOn_VirtualMachineScaleSetStartMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Start_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_Start" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1126,12 +1124,12 @@ public async Task PowerOn_VirtualMachineScaleSetsStartMinimumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_Redeploy_MaximumSet_Gen + // VirtualMachineScaleSet_Redeploy_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Redeploy_VirtualMachineScaleSetsRedeployMaximumSetGen() + public async Task Redeploy_VirtualMachineScaleSetRedeployMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Redeploy_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_Redeploy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1160,12 +1158,12 @@ public async Task Redeploy_VirtualMachineScaleSetsRedeployMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_Redeploy_MinimumSet_Gen + // VirtualMachineScaleSet_Redeploy_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Redeploy_VirtualMachineScaleSetsRedeployMinimumSetGen() + public async Task Redeploy_VirtualMachineScaleSetRedeployMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Redeploy_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_Redeploy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1187,12 +1185,12 @@ public async Task Redeploy_VirtualMachineScaleSetsRedeployMinimumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_PerformMaintenance_MaximumSet_Gen + // VirtualMachineScaleSet_PerformMaintenance_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task PerformMaintenance_VirtualMachineScaleSetsPerformMaintenanceMaximumSetGen() + public async Task PerformMaintenance_VirtualMachineScaleSetPerformMaintenanceMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_PerformMaintenance_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_PerformMaintenance" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1221,12 +1219,12 @@ public async Task PerformMaintenance_VirtualMachineScaleSetsPerformMaintenanceMa Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_PerformMaintenance_MinimumSet_Gen + // VirtualMachineScaleSet_PerformMaintenance_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task PerformMaintenance_VirtualMachineScaleSetsPerformMaintenanceMinimumSetGen() + public async Task PerformMaintenance_VirtualMachineScaleSetPerformMaintenanceMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_PerformMaintenance_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_PerformMaintenance" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1248,12 +1246,12 @@ public async Task PerformMaintenance_VirtualMachineScaleSetsPerformMaintenanceMi Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_UpdateInstances_MaximumSet_Gen + // VirtualMachineScaleSet_UpdateInstances_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task UpdateInstances_VirtualMachineScaleSetsUpdateInstancesMaximumSetGen() + public async Task UpdateInstances_VirtualMachineScaleSetUpdateInstancesMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_UpdateInstances_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_UpdateInstances_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_UpdateInstances" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1279,12 +1277,12 @@ public async Task UpdateInstances_VirtualMachineScaleSetsUpdateInstancesMaximumS Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_UpdateInstances_MinimumSet_Gen + // VirtualMachineScaleSet_UpdateInstances_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task UpdateInstances_VirtualMachineScaleSetsUpdateInstancesMinimumSetGen() + public async Task UpdateInstances_VirtualMachineScaleSetUpdateInstancesMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_UpdateInstances_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_UpdateInstances_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_UpdateInstances" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1310,12 +1308,12 @@ public async Task UpdateInstances_VirtualMachineScaleSetsUpdateInstancesMinimumS Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_Reimage_MaximumSet_Gen + // VirtualMachineScaleSet_Reimage_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Reimage_VirtualMachineScaleSetsReimageMaximumSetGen() + public async Task Reimage_VirtualMachineScaleSetReimageMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Reimage_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_Reimage" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1345,12 +1343,12 @@ public async Task Reimage_VirtualMachineScaleSetsReimageMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_Reimage_MinimumSet_Gen + // VirtualMachineScaleSet_Reimage_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Reimage_VirtualMachineScaleSetsReimageMinimumSetGen() + public async Task Reimage_VirtualMachineScaleSetReimageMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Reimage_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_Reimage" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1372,12 +1370,12 @@ public async Task Reimage_VirtualMachineScaleSetsReimageMinimumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_ReimageAll_MaximumSet_Gen + // VirtualMachineScaleSet_ReimageAll_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task ReimageAll_VirtualMachineScaleSetsReimageAllMaximumSetGen() + public async Task ReimageAll_VirtualMachineScaleSetReimageAllMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ReimageAll_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_ReimageAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1406,12 +1404,12 @@ public async Task ReimageAll_VirtualMachineScaleSetsReimageAllMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_ReimageAll_MinimumSet_Gen + // VirtualMachineScaleSet_ReimageAll_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task ReimageAll_VirtualMachineScaleSetsReimageAllMinimumSetGen() + public async Task ReimageAll_VirtualMachineScaleSetReimageAllMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ReimageAll_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_ReimageAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1433,12 +1431,12 @@ public async Task ReimageAll_VirtualMachineScaleSetsReimageAllMinimumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MaximumSet_Gen + // VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task ForceRecoveryServiceFabricPlatformUpdateDomainWalk_VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkMaximumSetGen() + public async Task ForceRecoveryServiceFabricPlatformUpdateDomainWalk_VirtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDomainWalkMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_ForceRecoveryServiceFabricPlatformUpdateDomainWalk" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1461,12 +1459,12 @@ public async Task ForceRecoveryServiceFabricPlatformUpdateDomainWalk_VirtualMach Console.WriteLine($"Succeeded: {result}"); } - // VirtualMachineScaleSets_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MinimumSet_Gen + // VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task ForceRecoveryServiceFabricPlatformUpdateDomainWalk_VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkMinimumSetGen() + public async Task ForceRecoveryServiceFabricPlatformUpdateDomainWalk_VirtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDomainWalkMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_ForceRecoveryServiceFabricPlatformUpdateDomainWalk" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1489,12 +1487,12 @@ public async Task ForceRecoveryServiceFabricPlatformUpdateDomainWalk_VirtualMach Console.WriteLine($"Succeeded: {result}"); } - // VirtualMachineScaleSets_ConvertToSinglePlacementGroup_MaximumSet_Gen + // VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task ConvertToSinglePlacementGroup_VirtualMachineScaleSetsConvertToSinglePlacementGroupMaximumSetGen() + public async Task ConvertToSinglePlacementGroup_VirtualMachineScaleSetConvertToSinglePlacementGroupMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ConvertToSinglePlacementGroup_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_ConvertToSinglePlacementGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1520,12 +1518,12 @@ public async Task ConvertToSinglePlacementGroup_VirtualMachineScaleSetsConvertTo Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_ConvertToSinglePlacementGroup_MinimumSet_Gen + // VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task ConvertToSinglePlacementGroup_VirtualMachineScaleSetsConvertToSinglePlacementGroupMinimumSetGen() + public async Task ConvertToSinglePlacementGroup_VirtualMachineScaleSetConvertToSinglePlacementGroupMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ConvertToSinglePlacementGroup_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_ConvertToSinglePlacementGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1548,12 +1546,12 @@ public async Task ConvertToSinglePlacementGroup_VirtualMachineScaleSetsConvertTo Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_SetOrchestrationServiceState_MaximumSet_Gen + // VirtualMachineScaleSet_SetOrchestrationServiceState_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task SetOrchestrationServiceState_VirtualMachineScaleSetsSetOrchestrationServiceStateMaximumSetGen() + public async Task SetOrchestrationServiceState_VirtualMachineScaleSetSetOrchestrationServiceStateMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_SetOrchestrationServiceState_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_SetOrchestrationServiceState" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1576,12 +1574,12 @@ public async Task SetOrchestrationServiceState_VirtualMachineScaleSetsSetOrchest Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSets_SetOrchestrationServiceState_MinimumSet_Gen + // VirtualMachineScaleSet_SetOrchestrationServiceState_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task SetOrchestrationServiceState_VirtualMachineScaleSetsSetOrchestrationServiceStateMinimumSetGen() + public async Task SetOrchestrationServiceState_VirtualMachineScaleSetSetOrchestrationServiceStateMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_SetOrchestrationServiceState_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSets_SetOrchestrationServiceState" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1604,12 +1602,12 @@ public async Task SetOrchestrationServiceState_VirtualMachineScaleSetsSetOrchest Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetRollingUpgrades_Cancel_MaximumSet_Gen + // VirtualMachineScaleSetRollingUpgrade_Cancel_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CancelVirtualMachineScaleSetRollingUpgrade_VirtualMachineScaleSetRollingUpgradesCancelMaximumSetGen() + public async Task CancelVirtualMachineScaleSetRollingUpgrade_VirtualMachineScaleSetRollingUpgradeCancelMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_Cancel_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetRollingUpgrades_Cancel" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1631,12 +1629,12 @@ public async Task CancelVirtualMachineScaleSetRollingUpgrade_VirtualMachineScale Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetRollingUpgrades_Cancel_MinimumSet_Gen + // VirtualMachineScaleSetRollingUpgrade_Cancel_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CancelVirtualMachineScaleSetRollingUpgrade_VirtualMachineScaleSetRollingUpgradesCancelMinimumSetGen() + public async Task CancelVirtualMachineScaleSetRollingUpgrade_VirtualMachineScaleSetRollingUpgradeCancelMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_Cancel_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetRollingUpgrades_Cancel" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1658,12 +1656,12 @@ public async Task CancelVirtualMachineScaleSetRollingUpgrade_VirtualMachineScale Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade_MaximumSet_Gen + // VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task StartOSUpgrade_VirtualMachineScaleSetRollingUpgradesStartOSUpgradeMaximumSetGen() + public async Task StartOSUpgrade_VirtualMachineScaleSetRollingUpgradeStartOSUpgradeMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1685,12 +1683,12 @@ public async Task StartOSUpgrade_VirtualMachineScaleSetRollingUpgradesStartOSUpg Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade_MinimumSet_Gen + // VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task StartOSUpgrade_VirtualMachineScaleSetRollingUpgradesStartOSUpgradeMinimumSetGen() + public async Task StartOSUpgrade_VirtualMachineScaleSetRollingUpgradeStartOSUpgradeMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetRollingUpgradeResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetRollingUpgradeResource.cs index 9f02348daab7..71cc1c04adf1 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetRollingUpgradeResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetRollingUpgradeResource.cs @@ -16,12 +16,12 @@ namespace Azure.ResourceManager.Compute.Samples { public partial class Sample_VirtualMachineScaleSetRollingUpgradeResource { - // VirtualMachineScaleSetRollingUpgrades_GetLatest_MaximumSet_Gen + // VirtualMachineScaleSetRollingUpgrade_GetLatest_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_VirtualMachineScaleSetRollingUpgradesGetLatestMaximumSetGen() + public async Task Get_VirtualMachineScaleSetRollingUpgradeGetLatestMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_GetLatest_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetRollingUpgrades_GetLatest" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -47,12 +47,12 @@ public async Task Get_VirtualMachineScaleSetRollingUpgradesGetLatestMaximumSetGe Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineScaleSetRollingUpgrades_GetLatest_MinimumSet_Gen + // VirtualMachineScaleSetRollingUpgrade_GetLatest_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_VirtualMachineScaleSetRollingUpgradesGetLatestMinimumSetGen() + public async Task Get_VirtualMachineScaleSetRollingUpgradeGetLatestMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_GetLatest_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetRollingUpgrades_GetLatest" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetVmCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetVmCollection.cs index 8ed6ce526cd7..11267ef42f5e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetVmCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetVmCollection.cs @@ -19,12 +19,12 @@ namespace Azure.ResourceManager.Compute.Samples { public partial class Sample_VirtualMachineScaleSetVmCollection { - // VirtualMachineScaleSetVMs_Update_MaximumSet_Gen + // VirtualMachineScaleSetVM_Update_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_VirtualMachineScaleSetVMsUpdateMaximumSetGen() + public async Task CreateOrUpdate_VirtualMachineScaleSetVMUpdateMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Update_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -354,12 +354,10 @@ public async Task CreateOrUpdate_VirtualMachineScaleSetVMsUpdateMaximumSetGen() Id = new ResourceIdentifier("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"), } }, -Id = new ResourceIdentifier("aaaaaaaaa"), } }, EnableIPForwarding = true, DeleteOption = ComputeDeleteOption.Delete, -Id = new ResourceIdentifier("aaaaaaaa"), } }, BootDiagnostics = new BootDiagnostics() @@ -389,12 +387,12 @@ public async Task CreateOrUpdate_VirtualMachineScaleSetVMsUpdateMaximumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineScaleSetVMs_Update_MinimumSet_Gen + // VirtualMachineScaleSetVM_Update_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_VirtualMachineScaleSetVMsUpdateMinimumSetGen() + public async Task CreateOrUpdate_VirtualMachineScaleSetVMUpdateMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Update_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -558,12 +556,12 @@ public async Task Exists_GetVMScaleSetVMWithVMSizeProperties() Console.WriteLine($"Succeeded: {result}"); } - // VirtualMachineScaleSetVMs_List_MaximumSet_Gen + // VirtualMachineScaleSetVM_List_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_VirtualMachineScaleSetVMsListMaximumSetGen() + public async Task GetAll_VirtualMachineScaleSetVMListMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_List_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -598,12 +596,12 @@ public async Task GetAll_VirtualMachineScaleSetVMsListMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetVMs_List_MinimumSet_Gen + // VirtualMachineScaleSetVM_List_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_VirtualMachineScaleSetVMsListMinimumSetGen() + public async Task GetAll_VirtualMachineScaleSetVMListMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_List_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetVmExtensionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetVmExtensionCollection.cs index 90ba0628dd3b..3f1193df12f6 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetVmExtensionCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetVmExtensionCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_VirtualMachineScaleSetVmExtensionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualMachineScaleSetVMExtension() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Create.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Create.json // this example is just showing the usage of "VirtualMachineScaleSetVMExtensions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -71,7 +71,7 @@ public async Task CreateOrUpdate_CreateVirtualMachineScaleSetVMExtension() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualMachineScaleSetVMExtension() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Get.json // this example is just showing the usage of "VirtualMachineScaleSetVMExtensions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -107,7 +107,7 @@ public async Task Get_GetVirtualMachineScaleSetVMExtension() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetVirtualMachineScaleSetVMExtension() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Get.json // this example is just showing the usage of "VirtualMachineScaleSetVMExtensions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -139,7 +139,7 @@ public async Task Exists_GetVirtualMachineScaleSetVMExtension() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListExtensionsInVmssInstance() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_List.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_List.json // this example is just showing the usage of "VirtualMachineScaleSetVMExtensions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetVmExtensionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetVmExtensionResource.cs index eb5e49f80042..d0073481a031 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetVmExtensionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetVmExtensionResource.cs @@ -24,7 +24,7 @@ public partial class Sample_VirtualMachineScaleSetVmExtensionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateVirtualMachineScaleSetVMExtension() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Update.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Update.json // this example is just showing the usage of "VirtualMachineScaleSetVMExtensions_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -69,7 +69,7 @@ public async Task Update_UpdateVirtualMachineScaleSetVMExtension() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteVirtualMachineScaleSetVMExtension() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Delete.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Delete.json // this example is just showing the usage of "VirtualMachineScaleSetVMExtensions_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Delete_DeleteVirtualMachineScaleSetVMExtension() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualMachineScaleSetVMExtension() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Get.json // this example is just showing the usage of "VirtualMachineScaleSetVMExtensions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetVmResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetVmResource.cs index 85f364d4285e..766530c20ed2 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetVmResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetVmResource.cs @@ -19,12 +19,12 @@ namespace Azure.ResourceManager.Compute.Samples { public partial class Sample_VirtualMachineScaleSetVmResource { - // VirtualMachineScaleSetVMs_Reimage_MaximumSet_Gen + // VirtualMachineScaleSetVM_Reimage_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Reimage_VirtualMachineScaleSetVMsReimageMaximumSetGen() + public async Task Reimage_VirtualMachineScaleSetVMReimageMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Reimage_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_Reimage" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,12 +51,12 @@ public async Task Reimage_VirtualMachineScaleSetVMsReimageMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetVMs_Reimage_MinimumSet_Gen + // VirtualMachineScaleSetVM_Reimage_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Reimage_VirtualMachineScaleSetVMsReimageMinimumSetGen() + public async Task Reimage_VirtualMachineScaleSetVMReimageMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Reimage_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_Reimage" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,12 +79,12 @@ public async Task Reimage_VirtualMachineScaleSetVMsReimageMinimumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetVMs_ReimageAll_MaximumSet_Gen + // VirtualMachineScaleSetVM_ReimageAll_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task ReimageAll_VirtualMachineScaleSetVMsReimageAllMaximumSetGen() + public async Task ReimageAll_VirtualMachineScaleSetVMReimageAllMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_ReimageAll_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_ReimageAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -107,12 +107,12 @@ public async Task ReimageAll_VirtualMachineScaleSetVMsReimageAllMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetVMs_ReimageAll_MinimumSet_Gen + // VirtualMachineScaleSetVM_ReimageAll_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task ReimageAll_VirtualMachineScaleSetVMsReimageAllMinimumSetGen() + public async Task ReimageAll_VirtualMachineScaleSetVMReimageAllMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_ReimageAll_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_ReimageAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -135,12 +135,12 @@ public async Task ReimageAll_VirtualMachineScaleSetVMsReimageAllMinimumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetVMs_Deallocate_MaximumSet_Gen + // VirtualMachineScaleSetVM_Deallocate_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Deallocate_VirtualMachineScaleSetVMsDeallocateMaximumSetGen() + public async Task Deallocate_VirtualMachineScaleSetVMDeallocateMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Deallocate_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_Deallocate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -163,12 +163,12 @@ public async Task Deallocate_VirtualMachineScaleSetVMsDeallocateMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetVMs_Deallocate_MinimumSet_Gen + // VirtualMachineScaleSetVM_Deallocate_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Deallocate_VirtualMachineScaleSetVMsDeallocateMinimumSetGen() + public async Task Deallocate_VirtualMachineScaleSetVMDeallocateMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Deallocate_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_Deallocate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -191,12 +191,12 @@ public async Task Deallocate_VirtualMachineScaleSetVMsDeallocateMinimumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetVMs_Update_MaximumSet_Gen + // VirtualMachineScaleSetVM_Update_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_VirtualMachineScaleSetVMsUpdateMaximumSetGen() + public async Task Update_VirtualMachineScaleSetVMUpdateMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Update_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -523,12 +523,10 @@ public async Task Update_VirtualMachineScaleSetVMsUpdateMaximumSetGen() Id = new ResourceIdentifier("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"), } }, -Id = new ResourceIdentifier("aaaaaaaaa"), } }, EnableIPForwarding = true, DeleteOption = ComputeDeleteOption.Delete, -Id = new ResourceIdentifier("aaaaaaaa"), } }, BootDiagnostics = new BootDiagnostics() @@ -558,12 +556,12 @@ public async Task Update_VirtualMachineScaleSetVMsUpdateMaximumSetGen() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachineScaleSetVMs_Update_MinimumSet_Gen + // VirtualMachineScaleSetVM_Update_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_VirtualMachineScaleSetVMsUpdateMinimumSetGen() + public async Task Update_VirtualMachineScaleSetVMUpdateMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Update_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -713,12 +711,12 @@ public async Task GetInstanceView_GetInstanceViewOfAVirtualMachineFromAVMScaleSe Console.WriteLine($"Succeeded: {result}"); } - // VirtualMachineScaleSetVMs_PowerOff_MaximumSet_Gen + // VirtualMachineScaleSetVM_PowerOff_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task PowerOff_VirtualMachineScaleSetVMsPowerOffMaximumSetGen() + public async Task PowerOff_VirtualMachineScaleSetVMPowerOffMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_PowerOff_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_PowerOff" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -742,12 +740,12 @@ public async Task PowerOff_VirtualMachineScaleSetVMsPowerOffMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetVMs_PowerOff_MinimumSet_Gen + // VirtualMachineScaleSetVM_PowerOff_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task PowerOff_VirtualMachineScaleSetVMsPowerOffMinimumSetGen() + public async Task PowerOff_VirtualMachineScaleSetVMPowerOffMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_PowerOff_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_PowerOff" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -770,12 +768,12 @@ public async Task PowerOff_VirtualMachineScaleSetVMsPowerOffMinimumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetVMs_Restart_MaximumSet_Gen + // VirtualMachineScaleSetVM_Restart_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Restart_VirtualMachineScaleSetVMsRestartMaximumSetGen() + public async Task Restart_VirtualMachineScaleSetVMRestartMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Restart_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_Restart" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -798,12 +796,12 @@ public async Task Restart_VirtualMachineScaleSetVMsRestartMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetVMs_Restart_MinimumSet_Gen + // VirtualMachineScaleSetVM_Restart_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Restart_VirtualMachineScaleSetVMsRestartMinimumSetGen() + public async Task Restart_VirtualMachineScaleSetVMRestartMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Restart_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_Restart" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -826,12 +824,12 @@ public async Task Restart_VirtualMachineScaleSetVMsRestartMinimumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetVMs_Start_MaximumSet_Gen + // VirtualMachineScaleSetVM_Start_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task PowerOn_VirtualMachineScaleSetVMsStartMaximumSetGen() + public async Task PowerOn_VirtualMachineScaleSetVMStartMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Start_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_Start" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -854,12 +852,12 @@ public async Task PowerOn_VirtualMachineScaleSetVMsStartMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetVMs_Start_MinimumSet_Gen + // VirtualMachineScaleSetVM_Start_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task PowerOn_VirtualMachineScaleSetVMsStartMinimumSetGen() + public async Task PowerOn_VirtualMachineScaleSetVMStartMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Start_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_Start" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -882,12 +880,12 @@ public async Task PowerOn_VirtualMachineScaleSetVMsStartMinimumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetVMs_Redeploy_MaximumSet_Gen + // VirtualMachineScaleSetVM_Redeploy_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Redeploy_VirtualMachineScaleSetVMsRedeployMaximumSetGen() + public async Task Redeploy_VirtualMachineScaleSetVMRedeployMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Redeploy_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_Redeploy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -910,12 +908,12 @@ public async Task Redeploy_VirtualMachineScaleSetVMsRedeployMaximumSetGen() Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetVMs_Redeploy_MinimumSet_Gen + // VirtualMachineScaleSetVM_Redeploy_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Redeploy_VirtualMachineScaleSetVMsRedeployMinimumSetGen() + public async Task Redeploy_VirtualMachineScaleSetVMRedeployMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Redeploy_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_Redeploy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -967,12 +965,12 @@ public async Task RetrieveBootDiagnosticsData_RetrieveBootDiagnosticsDataOfAVirt Console.WriteLine($"Succeeded: {result}"); } - // VirtualMachineScaleSetVMs_PerformMaintenance_MaximumSet_Gen + // VirtualMachineScaleSetVM_PerformMaintenance_MaximumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task PerformMaintenance_VirtualMachineScaleSetVMsPerformMaintenanceMaximumSetGen() + public async Task PerformMaintenance_VirtualMachineScaleSetVMPerformMaintenanceMaximumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_PerformMaintenance_MaximumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_PerformMaintenance" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -995,12 +993,12 @@ public async Task PerformMaintenance_VirtualMachineScaleSetVMsPerformMaintenance Console.WriteLine($"Succeeded"); } - // VirtualMachineScaleSetVMs_PerformMaintenance_MinimumSet_Gen + // VirtualMachineScaleSetVM_PerformMaintenance_MinimumSet_Gen [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task PerformMaintenance_VirtualMachineScaleSetVMsPerformMaintenanceMinimumSetGen() + public async Task PerformMaintenance_VirtualMachineScaleSetVMPerformMaintenanceMinimumSetGen() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_PerformMaintenance_MinimumSet_Gen.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineScaleSetVMs_PerformMaintenance" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.Serialization.cs index 908cd331fd20..e0811e1b3c76 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.Serialization.cs @@ -19,11 +19,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStartObject(); writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("id"u8); - writer.WriteStringValue(Id); - } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); if (Optional.IsDefined(Subnet)) @@ -93,7 +88,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static VirtualMachineScaleSetIPConfiguration DeserializeVirtualMachineScaleSetIPConfiguration(JsonElement element) { string name = default; - Optional id = default; Optional subnet = default; Optional primary = default; Optional publicIPAddressConfiguration = default; @@ -109,16 +103,6 @@ internal static VirtualMachineScaleSetIPConfiguration DeserializeVirtualMachineS name = property.Value.GetString(); continue; } - if (property.NameEquals("id"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } if (property.NameEquals("properties"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -232,7 +216,7 @@ internal static VirtualMachineScaleSetIPConfiguration DeserializeVirtualMachineS continue; } } - return new VirtualMachineScaleSetIPConfiguration(id.Value, name, subnet, Optional.ToNullable(primary), publicIPAddressConfiguration.Value, Optional.ToNullable(privateIPAddressVersion), Optional.ToList(applicationGatewayBackendAddressPools), Optional.ToList(applicationSecurityGroups), Optional.ToList(loadBalancerBackendAddressPools), Optional.ToList(loadBalancerInboundNatPools)); + return new VirtualMachineScaleSetIPConfiguration(name, subnet, Optional.ToNullable(primary), publicIPAddressConfiguration.Value, Optional.ToNullable(privateIPAddressVersion), Optional.ToList(applicationGatewayBackendAddressPools), Optional.ToList(applicationSecurityGroups), Optional.ToList(loadBalancerBackendAddressPools), Optional.ToList(loadBalancerInboundNatPools)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.cs index bbfe61747f2a..7e8d711b83df 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.Compute.Models { /// Describes a virtual machine scale set network profile's IP configuration. - public partial class VirtualMachineScaleSetIPConfiguration : ComputeWriteableSubResourceData + public partial class VirtualMachineScaleSetIPConfiguration { /// Initializes a new instance of VirtualMachineScaleSetIPConfiguration. /// The IP configuration name. @@ -30,7 +30,6 @@ public VirtualMachineScaleSetIPConfiguration(string name) } /// Initializes a new instance of VirtualMachineScaleSetIPConfiguration. - /// Resource Id. /// The IP configuration name. /// Specifies the identifier of the subnet. /// Specifies the primary network interface in case the virtual machine has more than 1 network interface. @@ -40,7 +39,7 @@ public VirtualMachineScaleSetIPConfiguration(string name) /// Specifies an array of references to application security group. /// Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer. /// Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer. - internal VirtualMachineScaleSetIPConfiguration(ResourceIdentifier id, string name, WritableSubResource subnet, bool? primary, VirtualMachineScaleSetPublicIPAddressConfiguration publicIPAddressConfiguration, IPVersion? privateIPAddressVersion, IList applicationGatewayBackendAddressPools, IList applicationSecurityGroups, IList loadBalancerBackendAddressPools, IList loadBalancerInboundNatPools) : base(id) + internal VirtualMachineScaleSetIPConfiguration(string name, WritableSubResource subnet, bool? primary, VirtualMachineScaleSetPublicIPAddressConfiguration publicIPAddressConfiguration, IPVersion? privateIPAddressVersion, IList applicationGatewayBackendAddressPools, IList applicationSecurityGroups, IList loadBalancerBackendAddressPools, IList loadBalancerInboundNatPools) { Name = name; Subnet = subnet; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.Serialization.cs index 293ceeae5748..5f754b6ff834 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.Serialization.cs @@ -19,11 +19,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStartObject(); writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("id"u8); - writer.WriteStringValue(Id); - } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); if (Optional.IsDefined(Primary)) @@ -83,7 +78,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static VirtualMachineScaleSetNetworkConfiguration DeserializeVirtualMachineScaleSetNetworkConfiguration(JsonElement element) { string name = default; - Optional id = default; Optional primary = default; Optional enableAcceleratedNetworking = default; Optional disableTcpStateTracking = default; @@ -100,16 +94,6 @@ internal static VirtualMachineScaleSetNetworkConfiguration DeserializeVirtualMac name = property.Value.GetString(); continue; } - if (property.NameEquals("id"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } if (property.NameEquals("properties"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -218,7 +202,7 @@ internal static VirtualMachineScaleSetNetworkConfiguration DeserializeVirtualMac continue; } } - return new VirtualMachineScaleSetNetworkConfiguration(id.Value, name, Optional.ToNullable(primary), Optional.ToNullable(enableAcceleratedNetworking), Optional.ToNullable(disableTcpStateTracking), Optional.ToNullable(enableFpga), networkSecurityGroup, dnsSettings.Value, Optional.ToList(ipConfigurations), Optional.ToNullable(enableIPForwarding), Optional.ToNullable(deleteOption)); + return new VirtualMachineScaleSetNetworkConfiguration(name, Optional.ToNullable(primary), Optional.ToNullable(enableAcceleratedNetworking), Optional.ToNullable(disableTcpStateTracking), Optional.ToNullable(enableFpga), networkSecurityGroup, dnsSettings.Value, Optional.ToList(ipConfigurations), Optional.ToNullable(enableIPForwarding), Optional.ToNullable(deleteOption)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs index 32a19ee52ed8..d96639b50308 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.Compute.Models { /// Describes a virtual machine scale set network profile's network configurations. - public partial class VirtualMachineScaleSetNetworkConfiguration : ComputeWriteableSubResourceData + public partial class VirtualMachineScaleSetNetworkConfiguration { /// Initializes a new instance of VirtualMachineScaleSetNetworkConfiguration. /// The network configuration name. @@ -27,7 +27,6 @@ public VirtualMachineScaleSetNetworkConfiguration(string name) } /// Initializes a new instance of VirtualMachineScaleSetNetworkConfiguration. - /// Resource Id. /// The network configuration name. /// Specifies the primary network interface in case the virtual machine has more than 1 network interface. /// Specifies whether the network interface is accelerated networking-enabled. @@ -38,7 +37,7 @@ public VirtualMachineScaleSetNetworkConfiguration(string name) /// Specifies the IP configurations of the network interface. /// Whether IP forwarding enabled on this NIC. /// Specify what happens to the network interface when the VM is deleted. - internal VirtualMachineScaleSetNetworkConfiguration(ResourceIdentifier id, string name, bool? primary, bool? enableAcceleratedNetworking, bool? isTcpStateTrackingDisabled, bool? enableFpga, WritableSubResource networkSecurityGroup, VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings, IList ipConfigurations, bool? enableIPForwarding, ComputeDeleteOption? deleteOption) : base(id) + internal VirtualMachineScaleSetNetworkConfiguration(string name, bool? primary, bool? enableAcceleratedNetworking, bool? isTcpStateTrackingDisabled, bool? enableFpga, WritableSubResource networkSecurityGroup, VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings, IList ipConfigurations, bool? enableIPForwarding, ComputeDeleteOption? deleteOption) { Name = name; Primary = primary; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md index 4a11617c83d6..aac5143706b5 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md +++ b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md @@ -11,7 +11,7 @@ azure-arm: true generate-model-factory: false library-name: Compute namespace: Azure.ResourceManager.Compute -require: https://github.com/Azure/azure-rest-api-specs/blob/5bba638fd53d813e475bfdc3b1b2789ee75b187c/specification/compute/resource-manager/readme.md +require: https://github.com/Azure/azure-rest-api-specs/blob/1ef2c08c58b21094edc5b8d2cb12d1bbc6d2d068/specification/compute/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true From 9a47dda5b26de65b5704bcea8625d36eb3117bdf Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Mon, 27 Feb 2023 13:27:49 +0800 Subject: [PATCH 3/7] mitigate breaking changes in track 2 --- ...e.ResourceManager.Compute.netstandard2.0.cs | 10 +++++++--- .../Models/ComputeWriteableSubResourceData.cs | 16 ++++++++++++++++ .../VirtualMachineScaleSetIPConfiguration.cs | 16 ++++++++++++++++ ...rtualMachineScaleSetNetworkConfiguration.cs | 16 ++++++++++++++++ .../Models/ComputeWriteableSubResourceData.cs | 3 --- ...ineScaleSetIPConfiguration.Serialization.cs | 18 +++++++++++++++++- .../VirtualMachineScaleSetIPConfiguration.cs | 5 +++-- ...aleSetNetworkConfiguration.Serialization.cs | 18 +++++++++++++++++- ...rtualMachineScaleSetNetworkConfiguration.cs | 5 +++-- 9 files changed, 95 insertions(+), 12 deletions(-) create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Customize/Models/ComputeWriteableSubResourceData.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Customize/Models/VirtualMachineScaleSetIPConfiguration.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Customize/Models/VirtualMachineScaleSetNetworkConfiguration.cs diff --git a/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs b/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs index 1e3629b41c8f..e41eb21db5ef 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs @@ -2951,7 +2951,7 @@ internal ComputeUsageName() { } public partial class ComputeWriteableSubResourceData { public ComputeWriteableSubResourceData() { } - public Azure.Core.ResourceIdentifier Id { get { throw null; } set { } } + public virtual Azure.Core.ResourceIdentifier Id { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ConfidentialVmEncryptionType : System.IEquatable @@ -5776,11 +5776,13 @@ internal VirtualMachineScaleSetInstanceView() { } public System.Collections.Generic.IReadOnlyList Statuses { get { throw null; } } public System.Collections.Generic.IReadOnlyList VirtualMachineStatusesSummary { get { throw null; } } } - public partial class VirtualMachineScaleSetIPConfiguration + public partial class VirtualMachineScaleSetIPConfiguration : Azure.ResourceManager.Compute.Models.ComputeWriteableSubResourceData { public VirtualMachineScaleSetIPConfiguration(string name) { } public System.Collections.Generic.IList ApplicationGatewayBackendAddressPools { get { throw null; } } public System.Collections.Generic.IList ApplicationSecurityGroups { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override Azure.Core.ResourceIdentifier Id { get { throw null; } set { } } public System.Collections.Generic.IList LoadBalancerBackendAddressPools { get { throw null; } } public System.Collections.Generic.IList LoadBalancerInboundNatPools { get { throw null; } } public string Name { get { throw null; } set { } } @@ -5802,7 +5804,7 @@ public VirtualMachineScaleSetManagedDisk() { } public Azure.ResourceManager.Compute.Models.VirtualMachineDiskSecurityProfile SecurityProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.StorageAccountType? StorageAccountType { get { throw null; } set { } } } - public partial class VirtualMachineScaleSetNetworkConfiguration + public partial class VirtualMachineScaleSetNetworkConfiguration : Azure.ResourceManager.Compute.Models.ComputeWriteableSubResourceData { public VirtualMachineScaleSetNetworkConfiguration(string name) { } public Azure.ResourceManager.Compute.Models.ComputeDeleteOption? DeleteOption { get { throw null; } set { } } @@ -5810,6 +5812,8 @@ public VirtualMachineScaleSetNetworkConfiguration(string name) { } public bool? EnableAcceleratedNetworking { get { throw null; } set { } } public bool? EnableFpga { get { throw null; } set { } } public bool? EnableIPForwarding { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override Azure.Core.ResourceIdentifier Id { get { throw null; } set { } } public System.Collections.Generic.IList IPConfigurations { get { throw null; } } public bool? IsTcpStateTrackingDisabled { get { throw null; } set { } } public string Name { get { throw null; } set { } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Customize/Models/ComputeWriteableSubResourceData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Customize/Models/ComputeWriteableSubResourceData.cs new file mode 100644 index 000000000000..8cf50c1b5c9d --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Customize/Models/ComputeWriteableSubResourceData.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class ComputeWriteableSubResourceData + { + /// Resource Id. + [CodeGenMember("Id")] + public virtual ResourceIdentifier Id { get; set; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Customize/Models/VirtualMachineScaleSetIPConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Customize/Models/VirtualMachineScaleSetIPConfiguration.cs new file mode 100644 index 000000000000..29c23c085318 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Customize/Models/VirtualMachineScaleSetIPConfiguration.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class VirtualMachineScaleSetIPConfiguration : ComputeWriteableSubResourceData + { + [EditorBrowsable(EditorBrowsableState.Never)] + public override ResourceIdentifier Id { get; set; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Customize/Models/VirtualMachineScaleSetNetworkConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Customize/Models/VirtualMachineScaleSetNetworkConfiguration.cs new file mode 100644 index 000000000000..d8b3327d4f7a --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Customize/Models/VirtualMachineScaleSetNetworkConfiguration.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class VirtualMachineScaleSetNetworkConfiguration : ComputeWriteableSubResourceData + { + [EditorBrowsable(EditorBrowsableState.Never)] + public override ResourceIdentifier Id { get; set; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeWriteableSubResourceData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeWriteableSubResourceData.cs index fc0246de9418..54bccafef584 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeWriteableSubResourceData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeWriteableSubResourceData.cs @@ -23,8 +23,5 @@ internal ComputeWriteableSubResourceData(ResourceIdentifier id) { Id = id; } - - /// Resource Id. - public ResourceIdentifier Id { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.Serialization.cs index e0811e1b3c76..908cd331fd20 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.Serialization.cs @@ -19,6 +19,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStartObject(); writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); if (Optional.IsDefined(Subnet)) @@ -88,6 +93,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static VirtualMachineScaleSetIPConfiguration DeserializeVirtualMachineScaleSetIPConfiguration(JsonElement element) { string name = default; + Optional id = default; Optional subnet = default; Optional primary = default; Optional publicIPAddressConfiguration = default; @@ -103,6 +109,16 @@ internal static VirtualMachineScaleSetIPConfiguration DeserializeVirtualMachineS name = property.Value.GetString(); continue; } + if (property.NameEquals("id"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } if (property.NameEquals("properties"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -216,7 +232,7 @@ internal static VirtualMachineScaleSetIPConfiguration DeserializeVirtualMachineS continue; } } - return new VirtualMachineScaleSetIPConfiguration(name, subnet, Optional.ToNullable(primary), publicIPAddressConfiguration.Value, Optional.ToNullable(privateIPAddressVersion), Optional.ToList(applicationGatewayBackendAddressPools), Optional.ToList(applicationSecurityGroups), Optional.ToList(loadBalancerBackendAddressPools), Optional.ToList(loadBalancerInboundNatPools)); + return new VirtualMachineScaleSetIPConfiguration(id.Value, name, subnet, Optional.ToNullable(primary), publicIPAddressConfiguration.Value, Optional.ToNullable(privateIPAddressVersion), Optional.ToList(applicationGatewayBackendAddressPools), Optional.ToList(applicationSecurityGroups), Optional.ToList(loadBalancerBackendAddressPools), Optional.ToList(loadBalancerInboundNatPools)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.cs index 7e8d711b83df..bbfe61747f2a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.Compute.Models { /// Describes a virtual machine scale set network profile's IP configuration. - public partial class VirtualMachineScaleSetIPConfiguration + public partial class VirtualMachineScaleSetIPConfiguration : ComputeWriteableSubResourceData { /// Initializes a new instance of VirtualMachineScaleSetIPConfiguration. /// The IP configuration name. @@ -30,6 +30,7 @@ public VirtualMachineScaleSetIPConfiguration(string name) } /// Initializes a new instance of VirtualMachineScaleSetIPConfiguration. + /// Resource Id. /// The IP configuration name. /// Specifies the identifier of the subnet. /// Specifies the primary network interface in case the virtual machine has more than 1 network interface. @@ -39,7 +40,7 @@ public VirtualMachineScaleSetIPConfiguration(string name) /// Specifies an array of references to application security group. /// Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer. /// Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer. - internal VirtualMachineScaleSetIPConfiguration(string name, WritableSubResource subnet, bool? primary, VirtualMachineScaleSetPublicIPAddressConfiguration publicIPAddressConfiguration, IPVersion? privateIPAddressVersion, IList applicationGatewayBackendAddressPools, IList applicationSecurityGroups, IList loadBalancerBackendAddressPools, IList loadBalancerInboundNatPools) + internal VirtualMachineScaleSetIPConfiguration(ResourceIdentifier id, string name, WritableSubResource subnet, bool? primary, VirtualMachineScaleSetPublicIPAddressConfiguration publicIPAddressConfiguration, IPVersion? privateIPAddressVersion, IList applicationGatewayBackendAddressPools, IList applicationSecurityGroups, IList loadBalancerBackendAddressPools, IList loadBalancerInboundNatPools) : base(id) { Name = name; Subnet = subnet; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.Serialization.cs index 5f754b6ff834..293ceeae5748 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.Serialization.cs @@ -19,6 +19,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStartObject(); writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); if (Optional.IsDefined(Primary)) @@ -78,6 +83,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static VirtualMachineScaleSetNetworkConfiguration DeserializeVirtualMachineScaleSetNetworkConfiguration(JsonElement element) { string name = default; + Optional id = default; Optional primary = default; Optional enableAcceleratedNetworking = default; Optional disableTcpStateTracking = default; @@ -94,6 +100,16 @@ internal static VirtualMachineScaleSetNetworkConfiguration DeserializeVirtualMac name = property.Value.GetString(); continue; } + if (property.NameEquals("id"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } if (property.NameEquals("properties"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -202,7 +218,7 @@ internal static VirtualMachineScaleSetNetworkConfiguration DeserializeVirtualMac continue; } } - return new VirtualMachineScaleSetNetworkConfiguration(name, Optional.ToNullable(primary), Optional.ToNullable(enableAcceleratedNetworking), Optional.ToNullable(disableTcpStateTracking), Optional.ToNullable(enableFpga), networkSecurityGroup, dnsSettings.Value, Optional.ToList(ipConfigurations), Optional.ToNullable(enableIPForwarding), Optional.ToNullable(deleteOption)); + return new VirtualMachineScaleSetNetworkConfiguration(id.Value, name, Optional.ToNullable(primary), Optional.ToNullable(enableAcceleratedNetworking), Optional.ToNullable(disableTcpStateTracking), Optional.ToNullable(enableFpga), networkSecurityGroup, dnsSettings.Value, Optional.ToList(ipConfigurations), Optional.ToNullable(enableIPForwarding), Optional.ToNullable(deleteOption)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs index d96639b50308..32a19ee52ed8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.Compute.Models { /// Describes a virtual machine scale set network profile's network configurations. - public partial class VirtualMachineScaleSetNetworkConfiguration + public partial class VirtualMachineScaleSetNetworkConfiguration : ComputeWriteableSubResourceData { /// Initializes a new instance of VirtualMachineScaleSetNetworkConfiguration. /// The network configuration name. @@ -27,6 +27,7 @@ public VirtualMachineScaleSetNetworkConfiguration(string name) } /// Initializes a new instance of VirtualMachineScaleSetNetworkConfiguration. + /// Resource Id. /// The network configuration name. /// Specifies the primary network interface in case the virtual machine has more than 1 network interface. /// Specifies whether the network interface is accelerated networking-enabled. @@ -37,7 +38,7 @@ public VirtualMachineScaleSetNetworkConfiguration(string name) /// Specifies the IP configurations of the network interface. /// Whether IP forwarding enabled on this NIC. /// Specify what happens to the network interface when the VM is deleted. - internal VirtualMachineScaleSetNetworkConfiguration(string name, bool? primary, bool? enableAcceleratedNetworking, bool? isTcpStateTrackingDisabled, bool? enableFpga, WritableSubResource networkSecurityGroup, VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings, IList ipConfigurations, bool? enableIPForwarding, ComputeDeleteOption? deleteOption) + internal VirtualMachineScaleSetNetworkConfiguration(ResourceIdentifier id, string name, bool? primary, bool? enableAcceleratedNetworking, bool? isTcpStateTrackingDisabled, bool? enableFpga, WritableSubResource networkSecurityGroup, VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings, IList ipConfigurations, bool? enableIPForwarding, ComputeDeleteOption? deleteOption) : base(id) { Name = name; Primary = primary; From aa98c40c734b28c4fd3a083daa9e2f8105fbfeca Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Mon, 27 Feb 2023 23:09:12 -0500 Subject: [PATCH 4/7] remove track 1 changes --- .../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, 111 insertions(+), 36 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 a88328f63ee8..c8a6508b3b79 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,8 +10,6 @@ namespace Microsoft.Azure.Management.Compute.Models { - using Microsoft.Rest; - using Microsoft.Rest.Azure; using System.Linq; /// @@ -21,7 +19,7 @@ namespace Microsoft.Azure.Management.Compute.Models /// disk. Please refer https://aka.ms/mdssewithcmkoverview for more /// details. /// - public partial class DiskEncryptionSetParameters : IResource + public partial class DiskEncryptionSetParameters : SubResource { /// /// Initializes a new instance of the DiskEncryptionSetParameters @@ -32,6 +30,16 @@ 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 4a30f32209ba..063e64a641ce 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,7 +11,6 @@ namespace Microsoft.Azure.Management.Compute.Models { using Microsoft.Rest; - using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; @@ -20,7 +19,7 @@ namespace Microsoft.Azure.Management.Compute.Models /// Describes a network interface reference. /// [Rest.Serialization.JsonTransformation] - public partial class NetworkInterfaceReference : IResource + public partial class NetworkInterfaceReference : SubResource { /// /// Initializes a new instance of the NetworkInterfaceReference class. @@ -33,12 +32,14 @@ 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(bool? primary = default(bool?), string deleteOption = default(string)) + public NetworkInterfaceReference(string id = default(string), bool? primary = default(bool?), string deleteOption = default(string)) + : base(id) { 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 6db613291fae..6ca0177652d9 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,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 SubResource + public partial class SubResource : IResource { /// /// 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 4bf2726f8ee8..cb9b882cbf51 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,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 SubResourceReadOnly + public partial class SubResourceReadOnly : IResource { /// /// 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 e0b9d1f2304b..a90746619824 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,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 SubResourceWithColocationStatus : IResource + public partial class SubResourceWithColocationStatus : SubResource { /// /// Initializes a new instance of the SubResourceWithColocationStatus @@ -30,9 +28,11 @@ 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(InstanceViewStatus colocationStatus = default(InstanceViewStatus)) + public SubResourceWithColocationStatus(string id = default(string), InstanceViewStatus colocationStatus = default(InstanceViewStatus)) + : base(id) { 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 a99ef8504432..95398bbdf8ad 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,8 +10,6 @@ namespace Microsoft.Azure.Management.Compute.Models { - using Microsoft.Rest; - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -20,7 +18,7 @@ namespace Microsoft.Azure.Management.Compute.Models /// /// Output of virtual machine capture operation. /// - public partial class VirtualMachineCaptureResult : IResource + public partial class VirtualMachineCaptureResult : SubResource { /// /// Initializes a new instance of the VirtualMachineCaptureResult @@ -35,6 +33,7 @@ public VirtualMachineCaptureResult() /// Initializes a new instance of the VirtualMachineCaptureResult /// class. /// + /// Resource Id /// the schema of the captured virtual /// machine /// the version of the content @@ -42,7 +41,8 @@ public VirtualMachineCaptureResult() /// machine /// a list of resource items of the captured /// virtual machine - public VirtualMachineCaptureResult(string schema = default(string), string contentVersion = default(string), object parameters = default(object), IList resources = default(IList)) + 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; 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 11e1ba59579c..a100df931865 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,7 +11,6 @@ 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 +21,7 @@ namespace Microsoft.Azure.Management.Compute.Models /// Describes a Virtual Machine Scale Set Extension. /// [Rest.Serialization.JsonTransformation] - public partial class VirtualMachineScaleSetExtensionUpdate : IResource + public partial class VirtualMachineScaleSetExtensionUpdate : SubResourceReadOnly { /// /// Initializes a new instance of the @@ -37,6 +36,7 @@ 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,7 +73,8 @@ public VirtualMachineScaleSetExtensionUpdate() /// The extensions /// protected settings that are passed by reference, and consumed from /// key vault - 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)) + 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; 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 9a89b2a68020..261206a71597 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 + public partial class VirtualMachineScaleSetIPConfiguration : SubResource { /// /// Initializes a new instance of the @@ -38,6 +38,7 @@ public VirtualMachineScaleSetIPConfiguration() /// VirtualMachineScaleSetIPConfiguration class. /// /// The IP configuration name. + /// Resource Id /// Specifies the identifier of the /// subnet. /// Specifies the primary network interface in @@ -66,7 +67,8 @@ 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, 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)) + 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) { 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 d6de04a9f6fe..eed8ac43f52f 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 + public partial class VirtualMachineScaleSetNetworkConfiguration : SubResource { /// /// Initializes a new instance of the @@ -40,6 +40,7 @@ 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 @@ -57,7 +58,8 @@ 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, 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)) + 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) { 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 b70b05f5047f..05a7a7829ec5 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,7 +11,6 @@ namespace Microsoft.Azure.Management.Compute.Models { using Microsoft.Rest; - using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; @@ -25,7 +24,7 @@ namespace Microsoft.Azure.Management.Compute.Models /// network /// [Rest.Serialization.JsonTransformation] - public partial class VirtualMachineScaleSetUpdateIPConfiguration : IResource + public partial class VirtualMachineScaleSetUpdateIPConfiguration : SubResource { /// /// Initializes a new instance of the @@ -40,6 +39,7 @@ 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,7 +60,8 @@ public VirtualMachineScaleSetUpdateIPConfiguration() /// backend address pools. /// The load balancer inbound /// nat pools. - 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)) + 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; 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 ef7170400bff..03cd7d8e7317 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,7 +11,6 @@ namespace Microsoft.Azure.Management.Compute.Models { using Microsoft.Rest; - using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; @@ -23,7 +22,7 @@ namespace Microsoft.Azure.Management.Compute.Models /// configurations. /// [Rest.Serialization.JsonTransformation] - public partial class VirtualMachineScaleSetUpdateNetworkConfiguration : IResource + public partial class VirtualMachineScaleSetUpdateNetworkConfiguration : SubResource { /// /// Initializes a new instance of the @@ -38,6 +37,7 @@ 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,7 +58,8 @@ public VirtualMachineScaleSetUpdateNetworkConfiguration() /// Specify what happens to the network /// interface when the VM is deleted. Possible values include: /// 'Delete', 'Detach' - 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)) + 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; 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 63512a9a4e15..80e1dbe82190 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,7 +11,6 @@ namespace Microsoft.Azure.Management.Compute.Models { using Microsoft.Rest; - using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; @@ -20,7 +19,7 @@ namespace Microsoft.Azure.Management.Compute.Models /// Describes a VMSS VM Extension. /// [Rest.Serialization.JsonTransformation] - public partial class VirtualMachineScaleSetVMExtension : IResource + public partial class VirtualMachineScaleSetVMExtension : SubResourceReadOnly { /// /// Initializes a new instance of the VirtualMachineScaleSetVMExtension @@ -35,6 +34,7 @@ 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,7 +70,8 @@ public VirtualMachineScaleSetVMExtension() /// The extensions /// protected settings that are passed by reference, and consumed from /// key vault - 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)) + 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; 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 8337cd87d61f..fdbb3911e616 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,7 +11,6 @@ namespace Microsoft.Azure.Management.Compute.Models { using Microsoft.Rest; - using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; @@ -20,7 +19,7 @@ namespace Microsoft.Azure.Management.Compute.Models /// Describes a VMSS VM Extension. /// [Rest.Serialization.JsonTransformation] - public partial class VirtualMachineScaleSetVMExtensionUpdate : IResource + public partial class VirtualMachineScaleSetVMExtensionUpdate : SubResourceReadOnly { /// /// Initializes a new instance of the @@ -35,6 +34,7 @@ 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,7 +66,8 @@ public VirtualMachineScaleSetVMExtensionUpdate() /// The extensions /// protected settings that are passed by reference, and consumed from /// key vault - 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)) + 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; 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 d5e84f49cee9e682a87e280fbd0435c979cd8de9 Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Wed, 1 Mar 2023 17:34:56 -0500 Subject: [PATCH 5/7] generated --- ....ResourceManager.Compute.netstandard2.0.cs | 5 +++ .../src/Generated/Models/HyperVGeneration.cs | 2 +- .../Models/ImageStorageAccountType.cs | 3 ++ .../Models/OSImageNotificationProfile.cs | 4 +-- ...ineScaleSetVmInstanceView.Serialization.cs | 31 ++++++++++++++++++- .../VirtualMachineScaleSetVmInstanceView.cs | 18 ++++++++++- .../src/autorest.md | 2 +- 7 files changed, 59 insertions(+), 6 deletions(-) diff --git a/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs b/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs index e41eb21db5ef..0928ee5aa876 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs @@ -3924,6 +3924,7 @@ public ImageReference() { } public ImageStorageAccountType(string value) { throw null; } public static Azure.ResourceManager.Compute.Models.ImageStorageAccountType PremiumLrs { get { throw null; } } public static Azure.ResourceManager.Compute.Models.ImageStorageAccountType StandardLrs { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.ImageStorageAccountType StandardSsdLrs { get { throw null; } } public static Azure.ResourceManager.Compute.Models.ImageStorageAccountType StandardZrs { get { throw null; } } public bool Equals(Azure.ResourceManager.Compute.Models.ImageStorageAccountType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -6078,9 +6079,13 @@ public partial class VirtualMachineScaleSetVmInstanceView internal VirtualMachineScaleSetVmInstanceView() { } public Azure.Core.ResourceIdentifier AssignedHost { get { throw null; } } public Azure.ResourceManager.Compute.Models.BootDiagnosticsInstanceView BootDiagnostics { get { throw null; } } + public string ComputerName { get { throw null; } } public System.Collections.Generic.IReadOnlyList Disks { get { throw null; } } public System.Collections.Generic.IReadOnlyList Extensions { get { throw null; } } + public Azure.ResourceManager.Compute.Models.HyperVGeneration? HyperVGeneration { get { throw null; } } public Azure.ResourceManager.Compute.Models.MaintenanceRedeployStatus MaintenanceRedeployStatus { get { throw null; } } + public string OSName { get { throw null; } } + public string OSVersion { get { throw null; } } public string PlacementGroupId { get { throw null; } } public int? PlatformFaultDomain { get { throw null; } } public int? PlatformUpdateDomain { get { throw null; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/HyperVGeneration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/HyperVGeneration.cs index 7f7391c18988..96aea5072e02 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/HyperVGeneration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/HyperVGeneration.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Compute.Models { - /// Specifies the HyperVGeneration Type associated with a resource. + /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. public readonly partial struct HyperVGeneration : IEquatable { private readonly string _value; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageStorageAccountType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageStorageAccountType.cs index fe617915f3c4..bd4a6f4c0a69 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageStorageAccountType.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageStorageAccountType.cs @@ -25,6 +25,7 @@ public ImageStorageAccountType(string value) private const string StandardLrsValue = "Standard_LRS"; private const string StandardZrsValue = "Standard_ZRS"; private const string PremiumLrsValue = "Premium_LRS"; + private const string StandardSsdLrsValue = "StandardSSD_LRS"; /// Standard_LRS. public static ImageStorageAccountType StandardLrs { get; } = new ImageStorageAccountType(StandardLrsValue); @@ -32,6 +33,8 @@ public ImageStorageAccountType(string value) public static ImageStorageAccountType StandardZrs { get; } = new ImageStorageAccountType(StandardZrsValue); /// Premium_LRS. public static ImageStorageAccountType PremiumLrs { get; } = new ImageStorageAccountType(PremiumLrsValue); + /// StandardSSD_LRS. + public static ImageStorageAccountType StandardSsdLrs { get; } = new ImageStorageAccountType(StandardSsdLrsValue); /// Determines if two values are the same. public static bool operator ==(ImageStorageAccountType left, ImageStorageAccountType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSImageNotificationProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSImageNotificationProfile.cs index 264b640ab101..9479d167f19e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSImageNotificationProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSImageNotificationProfile.cs @@ -16,7 +16,7 @@ public OSImageNotificationProfile() } /// Initializes a new instance of OSImageNotificationProfile. - /// 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). + /// 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, and the value must be 15 minutes (PT15M). /// Specifies whether the OS Image Scheduled event is enabled or disabled. internal OSImageNotificationProfile(string notBeforeTimeout, bool? enable) { @@ -24,7 +24,7 @@ internal OSImageNotificationProfile(string notBeforeTimeout, bool? enable) Enable = enable; } - /// 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). + /// 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, and the value must be 15 minutes (PT15M). public string NotBeforeTimeout { get; set; } /// Specifies whether the OS Image Scheduled event is enabled or disabled. public bool? Enable { get; set; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceView.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceView.Serialization.cs index 5f8ea29716e5..1c5db6b54b9b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceView.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceView.Serialization.cs @@ -27,6 +27,10 @@ internal static VirtualMachineScaleSetVmInstanceView DeserializeVirtualMachineSc Optional> statuses = default; Optional assignedHost = default; Optional placementGroupId = default; + Optional computerName = default; + Optional osName = default; + Optional osVersion = default; + Optional hyperVGeneration = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("platformUpdateDomain"u8)) @@ -154,8 +158,33 @@ internal static VirtualMachineScaleSetVmInstanceView DeserializeVirtualMachineSc placementGroupId = property.Value.GetString(); continue; } + if (property.NameEquals("computerName"u8)) + { + computerName = property.Value.GetString(); + continue; + } + if (property.NameEquals("osName"u8)) + { + osName = property.Value.GetString(); + continue; + } + if (property.NameEquals("osVersion"u8)) + { + osVersion = property.Value.GetString(); + continue; + } + if (property.NameEquals("hyperVGeneration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + hyperVGeneration = new HyperVGeneration(property.Value.GetString()); + continue; + } } - return new VirtualMachineScaleSetVmInstanceView(Optional.ToNullable(platformUpdateDomain), Optional.ToNullable(platformFaultDomain), rdpThumbPrint.Value, vmAgent.Value, maintenanceRedeployStatus.Value, Optional.ToList(disks), Optional.ToList(extensions), vmHealth.Value, bootDiagnostics.Value, Optional.ToList(statuses), assignedHost.Value, placementGroupId.Value); + return new VirtualMachineScaleSetVmInstanceView(Optional.ToNullable(platformUpdateDomain), Optional.ToNullable(platformFaultDomain), rdpThumbPrint.Value, vmAgent.Value, maintenanceRedeployStatus.Value, Optional.ToList(disks), Optional.ToList(extensions), vmHealth.Value, bootDiagnostics.Value, Optional.ToList(statuses), assignedHost.Value, placementGroupId.Value, computerName.Value, osName.Value, osVersion.Value, Optional.ToNullable(hyperVGeneration)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceView.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceView.cs index 293e5c654f9f..1ae79829afc5 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceView.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceView.cs @@ -34,7 +34,11 @@ internal VirtualMachineScaleSetVmInstanceView() /// The resource status information. /// Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled. <br><br>Minimum api-version: 2020-06-01. /// The placement group in which the VM is running. If the VM is deallocated it will not have a placementGroupId. - internal VirtualMachineScaleSetVmInstanceView(int? platformUpdateDomain, int? platformFaultDomain, string rdpThumbPrint, VirtualMachineAgentInstanceView vmAgent, MaintenanceRedeployStatus maintenanceRedeployStatus, IReadOnlyList disks, IReadOnlyList extensions, VirtualMachineHealthStatus vmHealth, BootDiagnosticsInstanceView bootDiagnostics, IReadOnlyList statuses, ResourceIdentifier assignedHost, string 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]. + internal VirtualMachineScaleSetVmInstanceView(int? platformUpdateDomain, int? platformFaultDomain, string rdpThumbPrint, VirtualMachineAgentInstanceView vmAgent, MaintenanceRedeployStatus maintenanceRedeployStatus, IReadOnlyList disks, IReadOnlyList extensions, VirtualMachineHealthStatus vmHealth, BootDiagnosticsInstanceView bootDiagnostics, IReadOnlyList statuses, ResourceIdentifier assignedHost, string placementGroupId, string computerName, string osName, string osVersion, HyperVGeneration? hyperVGeneration) { PlatformUpdateDomain = platformUpdateDomain; PlatformFaultDomain = platformFaultDomain; @@ -48,6 +52,10 @@ internal VirtualMachineScaleSetVmInstanceView(int? platformUpdateDomain, int? pl Statuses = statuses; AssignedHost = assignedHost; PlacementGroupId = placementGroupId; + ComputerName = computerName; + OSName = osName; + OSVersion = osVersion; + HyperVGeneration = hyperVGeneration; } /// The Update Domain count. @@ -80,5 +88,13 @@ public InstanceViewStatus VmHealthStatus public ResourceIdentifier AssignedHost { get; } /// The placement group in which the VM is running. If the VM is deallocated it will not have a placementGroupId. public string PlacementGroupId { get; } + /// 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). + public string ComputerName { get; } + /// The Operating System running on the hybrid machine. + public string OSName { get; } + /// The version of Operating System running on the hybrid machine. + public string OSVersion { get; } + /// The hypervisor generation of the Virtual Machine [V1, V2]. + public HyperVGeneration? HyperVGeneration { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md index aac5143706b5..e54cc440482f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md +++ b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md @@ -11,7 +11,7 @@ azure-arm: true generate-model-factory: false library-name: Compute namespace: Azure.ResourceManager.Compute -require: https://github.com/Azure/azure-rest-api-specs/blob/1ef2c08c58b21094edc5b8d2cb12d1bbc6d2d068/specification/compute/resource-manager/readme.md +require: C:/Repositories/swagger/specification/compute/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true From be9f4531379d208afe86db16208102914d91d864 Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Wed, 1 Mar 2023 19:24:33 -0500 Subject: [PATCH 6/7] autorest swagger input update --- sdk/compute/Azure.ResourceManager.Compute/src/autorest.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md index e54cc440482f..56552995b525 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md +++ b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md @@ -11,7 +11,7 @@ azure-arm: true generate-model-factory: false library-name: Compute namespace: Azure.ResourceManager.Compute -require: C:/Repositories/swagger/specification/compute/resource-manager/readme.md +require: https://github.com/Azure/azure-rest-api-specs/blob/03261080b3083a9e8cb0b61d840cc8291c596590/specification/compute/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true From 2bd13628e9359345d76d77e699c36177dda1e410 Mon Sep 17 00:00:00 2001 From: ArcturusZhang Date: Thu, 2 Mar 2023 14:39:32 +0800 Subject: [PATCH 7/7] update changelog --- sdk/compute/Azure.ResourceManager.Compute/CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdk/compute/Azure.ResourceManager.Compute/CHANGELOG.md b/sdk/compute/Azure.ResourceManager.Compute/CHANGELOG.md index a1719bf0dc0b..51c6ab16fbd1 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/CHANGELOG.md +++ b/sdk/compute/Azure.ResourceManager.Compute/CHANGELOG.md @@ -4,8 +4,13 @@ ### Features Added +- Added new properties `ComputerName`, `OSName`, `OSVersion` and `HyperVGeneration` to `VirtualMachineScaleSetVmInstanceView` class +- Added new value `StandardSsdLrs` to `ImageStorageAccountType` + ### Breaking Changes +- Class `VirtualMachineScaleSetNetworkConfiguration` and `VirtualMachineScaleSetIPConfiguration` no longer have the property `Id` + ### Bugs Fixed ### Other Changes