diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/assets.json b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/assets.json index 87d2d1ff1b77..bc9c22bfdd79 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/assets.json +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/networkcloud/Azure.ResourceManager.NetworkCloud", - "Tag": "net/networkcloud/Azure.ResourceManager.NetworkCloud_4ca0a41d66" + "Tag": "net/networkcloud/Azure.ResourceManager.NetworkCloud_0ea255e33a" } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/ArmNetworkCloudModelFactory.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/ArmNetworkCloudModelFactory.cs index e871cdb11751..9d6bf0686186 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/ArmNetworkCloudModelFactory.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/ArmNetworkCloudModelFactory.cs @@ -27,11 +27,13 @@ public static partial class ArmNetworkCloudModelFactory /// The location. /// Resource ETag. /// The extended location of the cluster associated with the resource. + /// The current state of any in progress or completed actions. The most recent known instance of each action type is shown. /// The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network. /// The connection string for the baseboard management controller including IP address and protocol. /// The credentials of the baseboard management controller on this bare metal machine. /// The MAC address of the BMC device. /// The MAC address of a NIC connected to the PXE network. + /// The CA certificate information issued by the platform for connecting to TLS interfaces for the bare metal machine. Callers add this certificate to the trusted CA store on the Kubernetes control plane nodes to allow secure communication with the bare metal machine. /// The resource ID of the cluster this bare metal machine is associated with. /// The cordon status of the bare metal machine. /// The more detailed status of the bare metal machine. @@ -60,9 +62,10 @@ public static partial class ArmNetworkCloudModelFactory /// The discovered value of the machine's service tag. /// Field Deprecated. These fields will be empty/omitted. The list of the resource IDs for the VirtualMachines that are hosted on this bare metal machine. /// A new instance for mocking. - public static NetworkCloudBareMetalMachineData NetworkCloudBareMetalMachineData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ExtendedLocation extendedLocation = null, IEnumerable associatedResourceIds = null, string bmcConnectionString = null, AdministrativeCredentials bmcCredentials = null, string bmcMacAddress = null, string bootMacAddress = null, ResourceIdentifier clusterId = null, BareMetalMachineCordonStatus? cordonStatus = null, BareMetalMachineDetailedStatus? detailedStatus = null, string detailedStatusMessage = null, HardwareInventory hardwareInventory = null, HardwareValidationStatus hardwareValidationStatus = null, IEnumerable hybridAksClustersAssociatedIds = null, string kubernetesNodeName = null, string kubernetesVersion = null, string machineClusterVersion = null, string machineDetails = null, string machineName = null, IEnumerable machineRoles = null, string machineSkuId = null, IPAddress oamIPv4Address = null, string oamIPv6Address = null, string osImage = null, BareMetalMachinePowerState? powerState = null, BareMetalMachineProvisioningState? provisioningState = null, ResourceIdentifier rackId = null, long rackSlot = default, BareMetalMachineReadyState? readyState = null, RuntimeProtectionStatus runtimeProtectionStatus = null, IEnumerable secretRotationStatus = null, string serialNumber = null, string serviceTag = null, IEnumerable virtualMachinesAssociatedIds = null) + public static NetworkCloudBareMetalMachineData NetworkCloudBareMetalMachineData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ExtendedLocation extendedLocation = null, IEnumerable actionStates = null, IEnumerable associatedResourceIds = null, string bmcConnectionString = null, AdministrativeCredentials bmcCredentials = null, string bmcMacAddress = null, string bootMacAddress = null, CertificateInfo caCertificate = null, ResourceIdentifier clusterId = null, BareMetalMachineCordonStatus? cordonStatus = null, BareMetalMachineDetailedStatus? detailedStatus = null, string detailedStatusMessage = null, HardwareInventory hardwareInventory = null, HardwareValidationStatus hardwareValidationStatus = null, IEnumerable hybridAksClustersAssociatedIds = null, string kubernetesNodeName = null, string kubernetesVersion = null, string machineClusterVersion = null, string machineDetails = null, string machineName = null, IEnumerable machineRoles = null, string machineSkuId = null, IPAddress oamIPv4Address = null, string oamIPv6Address = null, string osImage = null, BareMetalMachinePowerState? powerState = null, BareMetalMachineProvisioningState? provisioningState = null, ResourceIdentifier rackId = null, long rackSlot = default, BareMetalMachineReadyState? readyState = null, RuntimeProtectionStatus runtimeProtectionStatus = null, IEnumerable secretRotationStatus = null, string serialNumber = null, string serviceTag = null, IEnumerable virtualMachinesAssociatedIds = null) { tags ??= new Dictionary(); + actionStates ??= new List(); associatedResourceIds ??= new List(); hybridAksClustersAssociatedIds ??= new List(); machineRoles ??= new List(); @@ -78,11 +81,13 @@ public static NetworkCloudBareMetalMachineData NetworkCloudBareMetalMachineData( location, etag, extendedLocation, + actionStates?.ToList(), associatedResourceIds?.ToList(), bmcConnectionString, bmcCredentials, bmcMacAddress, bootMacAddress, + caCertificate, clusterId, cordonStatus, detailedStatus, @@ -113,6 +118,57 @@ public static NetworkCloudBareMetalMachineData NetworkCloudBareMetalMachineData( serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The representation of the action for which this is a status. Matches ARM resource action format when the action is an ARM-based action. + /// The correlation ID for the original action request. Omitted if there is no related correlation ID. + /// The timestamp of when the action reached its final, terminal state. Uses ISO 8601 format. + /// The description providing additional context for the status value. May be empty or contain guidance in the case of a failure. + /// The timestamp of when the action began, in ISO 8601 format. + /// The status of the action. + /// The ordered list of the individual steps which make up the action. + /// A new instance for mocking. + public static ActionState ActionState(string actionType = null, string correlationId = null, string endTime = null, string message = null, string startTime = null, ActionStateStatus? status = null, IEnumerable stepStates = null) + { + stepStates ??= new List(); + + return new ActionState( + actionType, + correlationId, + endTime, + message, + startTime, + status, + stepStates?.ToList(), + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The timestamp for when processing of the step reached its terminal state, in ISO 8601 format. + /// The message providing additional context for the status value. May be empty, or contain diagnostic information in the case of a failure. + /// The timestamp for when processing of the step began, in ISO 8601 format. + /// The status of the step. A value of Completed or Failed indicates a terminal state for the step. + /// The name for the step. + /// A new instance for mocking. + public static StepState StepState(string endTime = null, string message = null, string startTime = null, StepStateStatus? status = null, string stepName = null) + { + return new StepState( + endTime, + message, + startTime, + status, + stepName, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The hash value of the X.509 Certificate. + /// The textual value of the X.509 Certificate. + /// A new instance for mocking. + public static CertificateInfo CertificateInfo(string hash = null, string value = null) + { + return new CertificateInfo(hash, value, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// Freeform data extracted from the environment about this machine. This information varies depending on the specific hardware and configuration. /// The list of network interfaces and associated details for the bare metal machine. @@ -205,12 +261,13 @@ public static SecretRotationStatus SecretRotationStatus(long? expirePeriodDays = /// Initializes a new instance of . /// The resource ID of the key vault containing the secret. + /// The URI of the key containing the secret. /// The name of the secret in the key vault. /// The version of the secret in the key vault. /// A new instance for mocking. - public static SecretArchiveReference SecretArchiveReference(ResourceIdentifier keyVaultId = null, string secretName = null, string secretVersion = null) + public static SecretArchiveReference SecretArchiveReference(ResourceIdentifier keyVaultId = null, Uri keyVaultUri = null, string secretName = null, string secretVersion = null) { - return new SecretArchiveReference(keyVaultId, secretName, secretVersion, serializedAdditionalRawData: null); + return new SecretArchiveReference(keyVaultId, keyVaultUri, secretName, secretVersion, serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -232,9 +289,11 @@ public static SecretArchiveReference SecretArchiveReference(ResourceIdentifier k /// Field Deprecated. These fields will be empty/omitted. The list of Hybrid AKS cluster resource IDs that are associated with this cloud services network. /// The name of the interface that will be present in the virtual machine to represent this network. /// The provisioning state of the cloud services network. + /// The storage options for the cloud services network. + /// The storage status for the cloud services network. /// Field Deprecated. These fields will be empty/omitted. The list of virtual machine resource IDs, excluding any Hybrid AKS virtual machines, that are currently using this cloud services network. /// A new instance for mocking. - public static NetworkCloudCloudServicesNetworkData NetworkCloudCloudServicesNetworkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ExtendedLocation extendedLocation = null, IEnumerable additionalEgressEndpoints = null, IEnumerable associatedResourceIds = null, ResourceIdentifier clusterId = null, CloudServicesNetworkDetailedStatus? detailedStatus = null, string detailedStatusMessage = null, CloudServicesNetworkEnableDefaultEgressEndpoint? enableDefaultEgressEndpoints = null, IEnumerable enabledEgressEndpoints = null, IEnumerable hybridAksClustersAssociatedIds = null, string interfaceName = null, CloudServicesNetworkProvisioningState? provisioningState = null, IEnumerable virtualMachinesAssociatedIds = null) + public static NetworkCloudCloudServicesNetworkData NetworkCloudCloudServicesNetworkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ExtendedLocation extendedLocation = null, IEnumerable additionalEgressEndpoints = null, IEnumerable associatedResourceIds = null, ResourceIdentifier clusterId = null, CloudServicesNetworkDetailedStatus? detailedStatus = null, string detailedStatusMessage = null, CloudServicesNetworkEnableDefaultEgressEndpoint? enableDefaultEgressEndpoints = null, IEnumerable enabledEgressEndpoints = null, IEnumerable hybridAksClustersAssociatedIds = null, string interfaceName = null, CloudServicesNetworkProvisioningState? provisioningState = null, CloudServicesNetworkStorageOptions storageOptions = null, CloudServicesNetworkStorageStatus storageStatus = null, IEnumerable virtualMachinesAssociatedIds = null) { tags ??= new Dictionary(); additionalEgressEndpoints ??= new List(); @@ -262,10 +321,30 @@ public static NetworkCloudCloudServicesNetworkData NetworkCloudCloudServicesNetw hybridAksClustersAssociatedIds?.ToList(), interfaceName, provisioningState, + storageOptions, + storageStatus, virtualMachinesAssociatedIds?.ToList(), serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The indicator of if shared storage is enabled on the cloud services network. + /// The size in Mebibytes of the storage allocation. + /// The status of the storage allocation for the cloud services network. + /// The description for the status of the shared storage. + /// The resource ID of the volume created to host the shared storage. + /// A new instance for mocking. + public static CloudServicesNetworkStorageStatus CloudServicesNetworkStorageStatus(CloudServicesNetworkStorageMode? mode = null, long? sizeMiB = null, CloudServicesNetworkStorageStatusStatus? status = null, string statusMessage = null, ResourceIdentifier volumeId = null) + { + return new CloudServicesNetworkStorageStatus( + mode, + sizeMiB, + status, + statusMessage, + volumeId, + serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The id. /// The name. @@ -276,7 +355,7 @@ public static NetworkCloudCloudServicesNetworkData NetworkCloudCloudServicesNetw /// Resource ETag. /// The identity of the cluster manager. /// The resource ID of the Log Analytics workspace that is used for the logs collection. - /// Field deprecated, this value will no longer influence the cluster manager allocation process and will be removed in a future version. The Azure availability zones within the region that will be used to support the cluster manager resource. + /// The Azure availability zones within the region that will be used to support the cluster manager resource. /// The list of the cluster versions the manager supports. It is used as input in clusterVersion property of a cluster resource. /// The detailed status that provides additional information about the cluster manager. /// The descriptive message about the current detailed status. @@ -284,7 +363,7 @@ public static NetworkCloudCloudServicesNetworkData NetworkCloudCloudServicesNetw /// The configuration of the managed resource group associated with the resource. /// The extended location (custom location) that represents the cluster manager's control plane location. This extended location is used when creating cluster and rack manifest resources. /// The provisioning state of the cluster manager. - /// Field deprecated, this value will no longer influence the cluster manager allocation process and will be removed in a future version. The size of the Azure virtual machines to use for hosting the cluster manager resource. + /// The size of the Azure virtual machines to use for hosting the cluster manager resource. /// A new instance for mocking. public static NetworkCloudClusterManagerData NetworkCloudClusterManagerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ManagedServiceIdentity identity = null, ResourceIdentifier analyticsWorkspaceId = null, IEnumerable availabilityZones = null, IEnumerable clusterVersions = null, ClusterManagerDetailedStatus? detailedStatus = null, string detailedStatusMessage = null, ResourceIdentifier fabricControllerId = null, ManagedResourceGroupConfiguration managedResourceGroupConfiguration = null, ExtendedLocation managerExtendedLocation = null, ClusterManagerProvisioningState? provisioningState = null, string vmSize = null) { @@ -333,6 +412,7 @@ public static ClusterAvailableVersion ClusterAvailableVersion(string supportExpi /// Resource ETag. /// The extended location of the cluster manager associated with the cluster. /// The identity for the resource. + /// The current state of any in progress or completed actions. The most recent known instance of each action type is shown. /// The rack definition that is intended to reflect only a single rack in a single rack cluster, or an aggregator rack in a multi-rack cluster. /// The settings for the log analytics workspace used for output of logs from this cluster. /// Field Deprecated. The resource ID of the Log Analytics Workspace that will be used for storing relevant logs. @@ -343,7 +423,7 @@ public static ClusterAvailableVersion ClusterAvailableVersion(string supportExpi /// The customer-provided location information to identify where the cluster resides. /// The latest connectivity status between cluster manager and the cluster. /// The resource ID of the cluster manager that manages this cluster. This is set by the Cluster Manager when the cluster is created. - /// The service principal to be used by the cluster during Arc Appliance installation. + /// Deprecated: Use managed identity to provide cluster privileges. The service principal to be used by the cluster during Arc Appliance installation. /// The type of rack configuration for the cluster. /// The current runtime version of the cluster. /// The settings for commands run in this cluster, such as bare metal machine run read only commands and data extracts. @@ -367,9 +447,10 @@ public static ClusterAvailableVersion ClusterAvailableVersion(string supportExpi /// The settings for how security vulnerability scanning is applied to the cluster. /// The list of workload resource IDs that are hosted within this cluster. /// A new instance for mocking. - public static NetworkCloudClusterData NetworkCloudClusterData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ExtendedLocation extendedLocation = null, ManagedServiceIdentity identity = null, NetworkCloudRackDefinition aggregatorOrSingleRackDefinition = null, AnalyticsOutputSettings analyticsOutputSettings = null, ResourceIdentifier analyticsWorkspaceId = null, IEnumerable availableUpgradeVersions = null, ClusterCapacity clusterCapacity = null, ClusterConnectionStatus? clusterConnectionStatus = null, ExtendedLocation clusterExtendedLocation = null, string clusterLocation = null, ClusterManagerConnectionStatus? clusterManagerConnectionStatus = null, ResourceIdentifier clusterManagerId = null, ServicePrincipalInformation clusterServicePrincipal = null, ClusterType clusterType = default, string clusterVersion = null, CommandOutputSettings commandOutputSettings = null, ValidationThreshold computeDeploymentThreshold = null, IEnumerable computeRackDefinitions = null, ClusterDetailedStatus? detailedStatus = null, string detailedStatusMessage = null, ExtendedLocation hybridAksExtendedLocation = null, ManagedResourceGroupConfiguration managedResourceGroupConfiguration = null, long? manualActionCount = null, ResourceIdentifier networkFabricId = null, ClusterProvisioningState? provisioningState = null, RuntimeProtectionEnforcementLevel? runtimeProtectionEnforcementLevel = null, ClusterSecretArchive secretArchive = null, SecretArchiveSettings secretArchiveSettings = null, DateTimeOffset? supportExpireOn = null, ClusterUpdateStrategy updateStrategy = null, VulnerabilityScanningSettingsContainerScan? vulnerabilityScanningContainerScan = null, IEnumerable workloadResourceIds = null) + public static NetworkCloudClusterData NetworkCloudClusterData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ExtendedLocation extendedLocation = null, ManagedServiceIdentity identity = null, IEnumerable actionStates = null, NetworkCloudRackDefinition aggregatorOrSingleRackDefinition = null, AnalyticsOutputSettings analyticsOutputSettings = null, ResourceIdentifier analyticsWorkspaceId = null, IEnumerable availableUpgradeVersions = null, ClusterCapacity clusterCapacity = null, ClusterConnectionStatus? clusterConnectionStatus = null, ExtendedLocation clusterExtendedLocation = null, string clusterLocation = null, ClusterManagerConnectionStatus? clusterManagerConnectionStatus = null, ResourceIdentifier clusterManagerId = null, ServicePrincipalInformation clusterServicePrincipal = null, ClusterType clusterType = default, string clusterVersion = null, CommandOutputSettings commandOutputSettings = null, ValidationThreshold computeDeploymentThreshold = null, IEnumerable computeRackDefinitions = null, ClusterDetailedStatus? detailedStatus = null, string detailedStatusMessage = null, ExtendedLocation hybridAksExtendedLocation = null, ManagedResourceGroupConfiguration managedResourceGroupConfiguration = null, long? manualActionCount = null, ResourceIdentifier networkFabricId = null, ClusterProvisioningState? provisioningState = null, RuntimeProtectionEnforcementLevel? runtimeProtectionEnforcementLevel = null, ClusterSecretArchive secretArchive = null, SecretArchiveSettings secretArchiveSettings = null, DateTimeOffset? supportExpireOn = null, ClusterUpdateStrategy updateStrategy = null, VulnerabilityScanningSettingsContainerScan? vulnerabilityScanningContainerScan = null, IEnumerable workloadResourceIds = null) { tags ??= new Dictionary(); + actionStates ??= new List(); availableUpgradeVersions ??= new List(); computeRackDefinitions ??= new List(); workloadResourceIds ??= new List(); @@ -384,6 +465,7 @@ public static NetworkCloudClusterData NetworkCloudClusterData(ResourceIdentifier etag, extendedLocation, identity, + actionStates?.ToList(), aggregatorOrSingleRackDefinition, analyticsOutputSettings, analyticsWorkspaceId, @@ -957,9 +1039,10 @@ public static NetworkCloudRackData NetworkCloudRackData(ResourceIdentifier id = /// Resource ETag. /// The extended location of the cluster associated with the resource. /// The credentials of the administrative interface on this storage appliance. + /// The CA certificate information issued by the platform for connecting to TLS interfaces for the storage appliance. Callers add this certificate to their trusted CA store to allow secure communication with the storage appliance. /// The total capacity of the storage appliance. Measured in GiB. - /// The amount of storage consumed. - /// The resource ID of the cluster this storage appliance is associated with. Measured in GiB. + /// The amount of storage consumed. Measured in GiB. + /// The resource ID of the cluster this storage appliance is associated with. /// The detailed status of the storage appliance. /// The descriptive message about the current detailed status. /// The endpoint for the management interface of the storage appliance. @@ -975,7 +1058,7 @@ public static NetworkCloudRackData NetworkCloudRackData(ResourceIdentifier id = /// The SKU for the storage appliance. /// The version of the storage appliance. /// A new instance for mocking. - public static NetworkCloudStorageApplianceData NetworkCloudStorageApplianceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ExtendedLocation extendedLocation = null, AdministrativeCredentials administratorCredentials = null, long? capacity = null, long? capacityUsed = null, ResourceIdentifier clusterId = null, StorageApplianceDetailedStatus? detailedStatus = null, string detailedStatusMessage = null, IPAddress managementIPv4Address = null, string manufacturer = null, string model = null, StorageApplianceProvisioningState? provisioningState = null, ResourceIdentifier rackId = null, long rackSlot = default, RemoteVendorManagementFeature? remoteVendorManagementFeature = null, RemoteVendorManagementStatus? remoteVendorManagementStatus = null, IEnumerable secretRotationStatus = null, string serialNumber = null, string storageApplianceSkuId = null, string version = null) + public static NetworkCloudStorageApplianceData NetworkCloudStorageApplianceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ExtendedLocation extendedLocation = null, AdministrativeCredentials administratorCredentials = null, CertificateInfo caCertificate = null, long? capacity = null, long? capacityUsed = null, ResourceIdentifier clusterId = null, StorageApplianceDetailedStatus? detailedStatus = null, string detailedStatusMessage = null, IPAddress managementIPv4Address = null, string manufacturer = null, string model = null, StorageApplianceProvisioningState? provisioningState = null, ResourceIdentifier rackId = null, long rackSlot = default, RemoteVendorManagementFeature? remoteVendorManagementFeature = null, RemoteVendorManagementStatus? remoteVendorManagementStatus = null, IEnumerable secretRotationStatus = null, string serialNumber = null, string storageApplianceSkuId = null, string version = null) { tags ??= new Dictionary(); secretRotationStatus ??= new List(); @@ -990,6 +1073,7 @@ public static NetworkCloudStorageApplianceData NetworkCloudStorageApplianceData( etag, extendedLocation, administratorCredentials, + caCertificate, capacity, capacityUsed, clusterId, @@ -1072,6 +1156,7 @@ public static NetworkCloudTrunkedNetworkData NetworkCloudTrunkedNetworkData(Reso /// The location. /// Resource ETag. /// The extended location of the cluster associated with the resource. + /// The identity for the resource. /// The name of the administrator to which the ssh public keys will be added into the authorized keys. /// The cluster availability zone containing this virtual machine. /// The resource ID of the bare metal machine that hosts the virtual machine. @@ -1085,20 +1170,22 @@ public static NetworkCloudTrunkedNetworkData NetworkCloudTrunkedNetworkData(Reso /// Field Deprecated, the value will be ignored if provided. The indicator of whether one of the specified CPU cores is isolated to run the emulator thread for this virtual machine. /// The memory size of the virtual machine. Allocations are measured in gibibytes. /// The list of network attachments to the virtual machine. - /// The Base64 encoded cloud-init network data. + /// Deprecated: The Base64 encoded cloud-init network data. The networkDataContent property will be used in preference to this property. + /// The Base64 encoded cloud-init network data. /// The scheduling hints for the virtual machine. /// The power state of the virtual machine. /// The provisioning state of the virtual machine. /// The list of ssh public keys. Each key will be added to the virtual machine using the cloud-init ssh_authorized_keys mechanism for the adminUsername. /// The storage profile that specifies size and other parameters about the disks related to the virtual machine. - /// The Base64 encoded cloud-init user data. + /// Deprecated: The Base64 encoded cloud-init user data. The userDataContent property will be used in preference to this property. + /// The Base64 encoded cloud-init user data. /// Field Deprecated, use virtualizationModel instead. The type of the virtio interface. /// The type of the device model to use. /// The virtual machine image that is currently provisioned to the OS disk, using the full url and tag notation used to pull the image. /// The credentials used to login to the image repository that has access to the specified image. /// The resource IDs of volumes that are attached to the virtual machine. /// A new instance for mocking. - public static NetworkCloudVirtualMachineData NetworkCloudVirtualMachineData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ExtendedLocation extendedLocation = null, string adminUsername = null, string availabilityZone = null, ResourceIdentifier bareMetalMachineId = null, VirtualMachineBootMethod? bootMethod = null, NetworkAttachment cloudServicesNetworkAttachment = null, ResourceIdentifier clusterId = null, ExtendedLocation consoleExtendedLocation = null, long cpuCores = default, VirtualMachineDetailedStatus? detailedStatus = null, string detailedStatusMessage = null, VirtualMachineIsolateEmulatorThread? isolateEmulatorThread = null, long memorySizeInGB = default, IEnumerable networkAttachments = null, string networkData = null, IEnumerable placementHints = null, VirtualMachinePowerState? powerState = null, VirtualMachineProvisioningState? provisioningState = null, IEnumerable sshPublicKeys = null, NetworkCloudStorageProfile storageProfile = null, string userData = null, VirtualMachineVirtioInterfaceType? virtioInterface = null, VirtualMachineDeviceModelType? vmDeviceModel = null, string vmImage = null, ImageRepositoryCredentials vmImageRepositoryCredentials = null, IEnumerable volumes = null) + public static NetworkCloudVirtualMachineData NetworkCloudVirtualMachineData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ExtendedLocation extendedLocation = null, ManagedServiceIdentity identity = null, string adminUsername = null, string availabilityZone = null, ResourceIdentifier bareMetalMachineId = null, VirtualMachineBootMethod? bootMethod = null, NetworkAttachment cloudServicesNetworkAttachment = null, ResourceIdentifier clusterId = null, ExtendedLocation consoleExtendedLocation = null, long cpuCores = default, VirtualMachineDetailedStatus? detailedStatus = null, string detailedStatusMessage = null, VirtualMachineIsolateEmulatorThread? isolateEmulatorThread = null, long memorySizeInGB = default, IEnumerable networkAttachments = null, string networkData = null, string networkDataContent = null, IEnumerable placementHints = null, VirtualMachinePowerState? powerState = null, VirtualMachineProvisioningState? provisioningState = null, IEnumerable sshPublicKeys = null, NetworkCloudStorageProfile storageProfile = null, string userData = null, string userDataContent = null, VirtualMachineVirtioInterfaceType? virtioInterface = null, VirtualMachineDeviceModelType? vmDeviceModel = null, string vmImage = null, ImageRepositoryCredentials vmImageRepositoryCredentials = null, IEnumerable volumes = null) { tags ??= new Dictionary(); networkAttachments ??= new List(); @@ -1115,6 +1202,7 @@ public static NetworkCloudVirtualMachineData NetworkCloudVirtualMachineData(Reso location, etag, extendedLocation, + identity, adminUsername, availabilityZone, bareMetalMachineId, @@ -1129,12 +1217,14 @@ public static NetworkCloudVirtualMachineData NetworkCloudVirtualMachineData(Reso memorySizeInGB, networkAttachments?.ToList(), networkData, + networkDataContent, placementHints?.ToList(), powerState, provisioningState, sshPublicKeys?.ToList(), storageProfile, userData, + userDataContent, virtioInterface, vmDeviceModel, vmImage, @@ -1152,14 +1242,16 @@ public static NetworkCloudVirtualMachineData NetworkCloudVirtualMachineData(Reso /// The location. /// Resource ETag. /// The extended location of the cluster associated with the resource. + /// The allocated size of the volume in Mebibytes. /// The list of resource IDs that attach the volume. It may include virtual machines and Hybrid AKS clusters. /// The more detailed status of the volume. /// The descriptive message about the current detailed status. /// The provisioning state of the volume. /// The unique identifier of the volume. - /// The size of the allocation for this volume in Mebibytes. + /// The requested storage allocation for the volume in Mebibytes. + /// The resource ID of the storage appliance that hosts the volume. /// A new instance for mocking. - public static NetworkCloudVolumeData NetworkCloudVolumeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ExtendedLocation extendedLocation = null, IEnumerable attachedTo = null, VolumeDetailedStatus? detailedStatus = null, string detailedStatusMessage = null, VolumeProvisioningState? provisioningState = null, string serialNumber = null, long sizeInMiB = default) + public static NetworkCloudVolumeData NetworkCloudVolumeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ExtendedLocation extendedLocation = null, long? allocatedSizeMiB = null, IEnumerable attachedTo = null, VolumeDetailedStatus? detailedStatus = null, string detailedStatusMessage = null, VolumeProvisioningState? provisioningState = null, string serialNumber = null, long sizeInMiB = default, ResourceIdentifier storageApplianceId = null) { tags ??= new Dictionary(); attachedTo ??= new List(); @@ -1173,12 +1265,14 @@ public static NetworkCloudVolumeData NetworkCloudVolumeData(ResourceIdentifier i location, etag, extendedLocation, + allocatedSizeMiB, attachedTo?.ToList(), detailedStatus, detailedStatusMessage, provisioningState, serialNumber, sizeInMiB, + storageApplianceId, serializedAdditionalRawData: null); } @@ -1261,11 +1355,12 @@ public static BareMetalMachineCommandSpecification BareMetalMachineCommandSpecif /// The last time this key set was validated. /// The name of the group that users will be assigned to on the operating system of the machines. /// The access level allowed for the users in this key set. + /// The name of the access level to apply when the privilege level is set to Other. /// The provisioning state of the bare metal machine key set. /// The unique list of permitted users. /// The status evaluation of each user. /// A new instance for mocking. - public static NetworkCloudBareMetalMachineKeySetData NetworkCloudBareMetalMachineKeySetData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ExtendedLocation extendedLocation = null, string azureGroupId = null, BareMetalMachineKeySetDetailedStatus? detailedStatus = null, string detailedStatusMessage = null, DateTimeOffset expireOn = default, IEnumerable jumpHostsAllowed = null, DateTimeOffset? lastValidatedOn = null, string osGroupName = null, BareMetalMachineKeySetPrivilegeLevel privilegeLevel = default, BareMetalMachineKeySetProvisioningState? provisioningState = null, IEnumerable userList = null, IEnumerable userListStatus = null) + public static NetworkCloudBareMetalMachineKeySetData NetworkCloudBareMetalMachineKeySetData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ExtendedLocation extendedLocation = null, string azureGroupId = null, BareMetalMachineKeySetDetailedStatus? detailedStatus = null, string detailedStatusMessage = null, DateTimeOffset expireOn = default, IEnumerable jumpHostsAllowed = null, DateTimeOffset? lastValidatedOn = null, string osGroupName = null, BareMetalMachineKeySetPrivilegeLevel privilegeLevel = default, string privilegeLevelName = null, BareMetalMachineKeySetProvisioningState? provisioningState = null, IEnumerable userList = null, IEnumerable userListStatus = null) { tags ??= new Dictionary(); jumpHostsAllowed ??= new List(); @@ -1289,6 +1384,7 @@ public static NetworkCloudBareMetalMachineKeySetData NetworkCloudBareMetalMachin lastValidatedOn, osGroupName, privilegeLevel, + privilegeLevelName, provisioningState, userList?.ToList(), userListStatus?.ToList(), @@ -1487,6 +1583,26 @@ public static NetworkCloudKubernetesClusterFeatureData NetworkCloudKubernetesClu serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The list of strings that will be passed to the script in order as separate arguments. + /// The command to execute. + /// A new instance for mocking. + public static StorageApplianceCommandSpecification StorageApplianceCommandSpecification(IEnumerable arguments = null, string command = null) + { + arguments ??= new List(); + + return new StorageApplianceCommandSpecification(arguments?.ToList(), command, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The resourceId of the Microsoft.HybridCompute machine resource to assign relay usage. + /// The indicator of which relay type the machine should be assigned to use. Platform indicates the use of a platform-dedicated relay. Public indicates the use of the standard public relay for Arc services. + /// A new instance for mocking. + public static VirtualMachineAssignRelayContent VirtualMachineAssignRelayContent(ResourceIdentifier machineId = null, RelayType? relayType = null) + { + return new VirtualMachineAssignRelayContent(machineId, relayType, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The id. /// The name. @@ -1529,6 +1645,266 @@ public static NetworkCloudVirtualMachineConsoleData NetworkCloudVirtualMachineCo serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Resource ETag. + /// The extended location of the cluster associated with the resource. + /// The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network. + /// The connection string for the baseboard management controller including IP address and protocol. + /// The credentials of the baseboard management controller on this bare metal machine. + /// The MAC address of the BMC device. + /// The MAC address of a NIC connected to the PXE network. + /// The resource ID of the cluster this bare metal machine is associated with. + /// The cordon status of the bare metal machine. + /// The more detailed status of the bare metal machine. + /// The descriptive message about the current detailed status. + /// The hardware inventory, including information acquired from the model/sku information and from the ironic inspector. + /// The details of the latest hardware validation performed for this bare metal machine. + /// Field Deprecated. These fields will be empty/omitted. The list of the resource IDs for the HybridAksClusters that have nodes hosted on this bare metal machine. + /// The name of this machine represented by the host object in the Cluster's Kubernetes control plane. + /// The version of Kubernetes running on this machine. + /// The cluster version that has been applied to this machine during deployment or a version update. + /// The custom details provided by the customer. + /// The OS-level hostname assigned to this machine. + /// The list of roles that are assigned to the cluster node running on this machine. + /// The unique internal identifier of the bare metal machine SKU. + /// The IPv4 address that is assigned to the bare metal machine during the cluster deployment. + /// The IPv6 address that is assigned to the bare metal machine during the cluster deployment. + /// The image that is currently provisioned to the OS disk. + /// The power state derived from the baseboard management controller. + /// The provisioning state of the bare metal machine. + /// The resource ID of the rack where this bare metal machine resides. + /// The rack slot in which this bare metal machine is located, ordered from the bottom up i.e. the lowest slot is 1. + /// The indicator of whether the bare metal machine is ready to receive workloads. + /// The runtime protection status of the bare metal machine. + /// The list of statuses that represent secret rotation activity. + /// The serial number of the bare metal machine. + /// The discovered value of the machine's service tag. + /// Field Deprecated. These fields will be empty/omitted. The list of the resource IDs for the VirtualMachines that are hosted on this bare metal machine. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static NetworkCloudBareMetalMachineData NetworkCloudBareMetalMachineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, IEnumerable associatedResourceIds, string bmcConnectionString, AdministrativeCredentials bmcCredentials, string bmcMacAddress, string bootMacAddress, ResourceIdentifier clusterId, BareMetalMachineCordonStatus? cordonStatus, BareMetalMachineDetailedStatus? detailedStatus, string detailedStatusMessage, HardwareInventory hardwareInventory, HardwareValidationStatus hardwareValidationStatus, IEnumerable hybridAksClustersAssociatedIds, string kubernetesNodeName, string kubernetesVersion, string machineClusterVersion, string machineDetails, string machineName, IEnumerable machineRoles, string machineSkuId, IPAddress oamIPv4Address, string oamIPv6Address, string osImage, BareMetalMachinePowerState? powerState, BareMetalMachineProvisioningState? provisioningState, ResourceIdentifier rackId, long rackSlot, BareMetalMachineReadyState? readyState, RuntimeProtectionStatus runtimeProtectionStatus, IEnumerable secretRotationStatus, string serialNumber, string serviceTag, IEnumerable virtualMachinesAssociatedIds) + { + return NetworkCloudBareMetalMachineData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, extendedLocation: extendedLocation, actionStates: default, associatedResourceIds: associatedResourceIds, bmcConnectionString: bmcConnectionString, bmcCredentials: bmcCredentials, bmcMacAddress: bmcMacAddress, bootMacAddress: bootMacAddress, caCertificate: default, clusterId: clusterId, cordonStatus: cordonStatus, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, hardwareInventory: hardwareInventory, hardwareValidationStatus: hardwareValidationStatus, hybridAksClustersAssociatedIds: hybridAksClustersAssociatedIds, kubernetesNodeName: kubernetesNodeName, kubernetesVersion: kubernetesVersion, machineClusterVersion: machineClusterVersion, machineDetails: machineDetails, machineName: machineName, machineRoles: machineRoles, machineSkuId: machineSkuId, oamIPv4Address: oamIPv4Address, oamIPv6Address: oamIPv6Address, osImage: osImage, powerState: powerState, provisioningState: provisioningState, rackId: rackId, rackSlot: rackSlot, readyState: readyState, runtimeProtectionStatus: runtimeProtectionStatus, secretRotationStatus: secretRotationStatus, serialNumber: serialNumber, serviceTag: serviceTag, virtualMachinesAssociatedIds: virtualMachinesAssociatedIds); + } + + /// Initializes a new instance of . + /// The resource ID of the key vault containing the secret. + /// The name of the secret in the key vault. + /// The version of the secret in the key vault. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static SecretArchiveReference SecretArchiveReference(ResourceIdentifier keyVaultId, string secretName, string secretVersion) + { + return SecretArchiveReference(keyVaultId: keyVaultId, keyVaultUri: default, secretName: secretName, secretVersion: secretVersion); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Resource ETag. + /// The extended location of the cluster associated with the resource. + /// The list of egress endpoints. This allows for connection from a Hybrid AKS cluster to the specified endpoint. + /// The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network. + /// The resource ID of the Network Cloud cluster this cloud services network is associated with. + /// The more detailed status of the cloud services network. + /// The descriptive message about the current detailed status. + /// The indicator of whether the platform default endpoints are allowed for the egress traffic. + /// The full list of additional and default egress endpoints that are currently enabled. + /// Field Deprecated. These fields will be empty/omitted. The list of Hybrid AKS cluster resource IDs that are associated with this cloud services network. + /// The name of the interface that will be present in the virtual machine to represent this network. + /// The provisioning state of the cloud services network. + /// Field Deprecated. These fields will be empty/omitted. The list of virtual machine resource IDs, excluding any Hybrid AKS virtual machines, that are currently using this cloud services network. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static NetworkCloudCloudServicesNetworkData NetworkCloudCloudServicesNetworkData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, IEnumerable additionalEgressEndpoints, IEnumerable associatedResourceIds, ResourceIdentifier clusterId, CloudServicesNetworkDetailedStatus? detailedStatus, string detailedStatusMessage, CloudServicesNetworkEnableDefaultEgressEndpoint? enableDefaultEgressEndpoints, IEnumerable enabledEgressEndpoints, IEnumerable hybridAksClustersAssociatedIds, string interfaceName, CloudServicesNetworkProvisioningState? provisioningState, IEnumerable virtualMachinesAssociatedIds) + { + return NetworkCloudCloudServicesNetworkData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, extendedLocation: extendedLocation, additionalEgressEndpoints: additionalEgressEndpoints, associatedResourceIds: associatedResourceIds, clusterId: clusterId, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, enableDefaultEgressEndpoints: enableDefaultEgressEndpoints, enabledEgressEndpoints: enabledEgressEndpoints, hybridAksClustersAssociatedIds: hybridAksClustersAssociatedIds, interfaceName: interfaceName, provisioningState: provisioningState, storageOptions: default, storageStatus: default, virtualMachinesAssociatedIds: virtualMachinesAssociatedIds); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Resource ETag. + /// The extended location of the cluster manager associated with the cluster. + /// The identity for the resource. + /// The rack definition that is intended to reflect only a single rack in a single rack cluster, or an aggregator rack in a multi-rack cluster. + /// The settings for the log analytics workspace used for output of logs from this cluster. + /// Field Deprecated. The resource ID of the Log Analytics Workspace that will be used for storing relevant logs. + /// The list of cluster runtime version upgrades available for this cluster. + /// The capacity supported by this cluster. + /// The latest heartbeat status between the cluster manager and the cluster. + /// The extended location (custom location) that represents the cluster's control plane location. This extended location is used to route the requests of child objects of the cluster that are handled by the platform operator. + /// The customer-provided location information to identify where the cluster resides. + /// The latest connectivity status between cluster manager and the cluster. + /// The resource ID of the cluster manager that manages this cluster. This is set by the Cluster Manager when the cluster is created. + /// The service principal to be used by the cluster during Arc Appliance installation. + /// The type of rack configuration for the cluster. + /// The current runtime version of the cluster. + /// The settings for commands run in this cluster, such as bare metal machine run read only commands and data extracts. + /// The validation threshold indicating the allowable failures of compute machines during environment validation and deployment. + /// + /// The list of rack definitions for the compute racks in a multi-rack + /// cluster, or an empty list in a single-rack cluster. + /// + /// The current detailed status of the cluster. + /// The descriptive message about the detailed status. + /// Field Deprecated. This field will not be populated in an upcoming version. The extended location (custom location) that represents the Hybrid AKS control plane location. This extended location is used when creating provisioned clusters (Hybrid AKS clusters). + /// The configuration of the managed resource group associated with the resource. + /// The count of Manual Action Taken (MAT) events that have not been validated. + /// The resource ID of the Network Fabric associated with the cluster. + /// The provisioning state of the cluster. + /// The settings for cluster runtime protection. + /// The configuration for use of a key vault to store secrets for later retrieval by the operator. + /// The settings for the secret archive used to hold credentials for the cluster. + /// The support end date of the runtime version of the cluster. + /// The strategy for updating the cluster. + /// The settings for how security vulnerability scanning is applied to the cluster. + /// The list of workload resource IDs that are hosted within this cluster. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static NetworkCloudClusterData NetworkCloudClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, ManagedServiceIdentity identity, NetworkCloudRackDefinition aggregatorOrSingleRackDefinition, AnalyticsOutputSettings analyticsOutputSettings, ResourceIdentifier analyticsWorkspaceId, IEnumerable availableUpgradeVersions, ClusterCapacity clusterCapacity, ClusterConnectionStatus? clusterConnectionStatus, ExtendedLocation clusterExtendedLocation, string clusterLocation, ClusterManagerConnectionStatus? clusterManagerConnectionStatus, ResourceIdentifier clusterManagerId, ServicePrincipalInformation clusterServicePrincipal, ClusterType clusterType, string clusterVersion, CommandOutputSettings commandOutputSettings, ValidationThreshold computeDeploymentThreshold, IEnumerable computeRackDefinitions, ClusterDetailedStatus? detailedStatus, string detailedStatusMessage, ExtendedLocation hybridAksExtendedLocation, ManagedResourceGroupConfiguration managedResourceGroupConfiguration, long? manualActionCount, ResourceIdentifier networkFabricId, ClusterProvisioningState? provisioningState, RuntimeProtectionEnforcementLevel? runtimeProtectionEnforcementLevel, ClusterSecretArchive secretArchive, SecretArchiveSettings secretArchiveSettings, DateTimeOffset? supportExpireOn, ClusterUpdateStrategy updateStrategy, VulnerabilityScanningSettingsContainerScan? vulnerabilityScanningContainerScan, IEnumerable workloadResourceIds) + { + return NetworkCloudClusterData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, extendedLocation: extendedLocation, identity: identity, actionStates: default, aggregatorOrSingleRackDefinition: aggregatorOrSingleRackDefinition, analyticsOutputSettings: analyticsOutputSettings, analyticsWorkspaceId: analyticsWorkspaceId, availableUpgradeVersions: availableUpgradeVersions, clusterCapacity: clusterCapacity, clusterConnectionStatus: clusterConnectionStatus, clusterExtendedLocation: clusterExtendedLocation, clusterLocation: clusterLocation, clusterManagerConnectionStatus: clusterManagerConnectionStatus, clusterManagerId: clusterManagerId, clusterServicePrincipal: clusterServicePrincipal, clusterType: clusterType, clusterVersion: clusterVersion, commandOutputSettings: commandOutputSettings, computeDeploymentThreshold: computeDeploymentThreshold, computeRackDefinitions: computeRackDefinitions, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, hybridAksExtendedLocation: hybridAksExtendedLocation, managedResourceGroupConfiguration: managedResourceGroupConfiguration, manualActionCount: manualActionCount, networkFabricId: networkFabricId, provisioningState: provisioningState, runtimeProtectionEnforcementLevel: runtimeProtectionEnforcementLevel, secretArchive: secretArchive, secretArchiveSettings: secretArchiveSettings, supportExpireOn: supportExpireOn, updateStrategy: updateStrategy, vulnerabilityScanningContainerScan: vulnerabilityScanningContainerScan, workloadResourceIds: workloadResourceIds); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Resource ETag. + /// The extended location of the cluster associated with the resource. + /// The credentials of the administrative interface on this storage appliance. + /// The total capacity of the storage appliance. Measured in GiB. + /// The amount of storage consumed. + /// The resource ID of the cluster this storage appliance is associated with. Measured in GiB. + /// The detailed status of the storage appliance. + /// The descriptive message about the current detailed status. + /// The endpoint for the management interface of the storage appliance. + /// The manufacturer of the storage appliance. + /// The model of the storage appliance. + /// The provisioning state of the storage appliance. + /// The resource ID of the rack where this storage appliance resides. + /// The slot the storage appliance is in the rack based on the BOM configuration. + /// The indicator of whether the storage appliance supports remote vendor management. + /// The indicator of whether the remote vendor management feature is enabled or disabled, or unsupported if it is an unsupported feature. + /// The list of statuses that represent secret rotation activity. + /// The serial number for the storage appliance. + /// The SKU for the storage appliance. + /// The version of the storage appliance. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static NetworkCloudStorageApplianceData NetworkCloudStorageApplianceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, AdministrativeCredentials administratorCredentials, long? capacity, long? capacityUsed, ResourceIdentifier clusterId, StorageApplianceDetailedStatus? detailedStatus, string detailedStatusMessage, IPAddress managementIPv4Address, string manufacturer, string model, StorageApplianceProvisioningState? provisioningState, ResourceIdentifier rackId, long rackSlot, RemoteVendorManagementFeature? remoteVendorManagementFeature, RemoteVendorManagementStatus? remoteVendorManagementStatus, IEnumerable secretRotationStatus, string serialNumber, string storageApplianceSkuId, string version) + { + return NetworkCloudStorageApplianceData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, extendedLocation: extendedLocation, administratorCredentials: administratorCredentials, caCertificate: default, capacity: capacity, capacityUsed: capacityUsed, clusterId: clusterId, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, managementIPv4Address: managementIPv4Address, manufacturer: manufacturer, model: model, provisioningState: provisioningState, rackId: rackId, rackSlot: rackSlot, remoteVendorManagementFeature: remoteVendorManagementFeature, remoteVendorManagementStatus: remoteVendorManagementStatus, secretRotationStatus: secretRotationStatus, serialNumber: serialNumber, storageApplianceSkuId: storageApplianceSkuId, version: version); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Resource ETag. + /// The extended location of the cluster associated with the resource. + /// The name of the administrator to which the ssh public keys will be added into the authorized keys. + /// The cluster availability zone containing this virtual machine. + /// The resource ID of the bare metal machine that hosts the virtual machine. + /// Selects the boot method for the virtual machine. + /// The cloud service network that provides platform-level services for the virtual machine. + /// The resource ID of the cluster the virtual machine is created for. + /// The extended location to use for creation of a VM console resource. + /// The number of CPU cores in the virtual machine. + /// The more detailed status of the virtual machine. + /// The descriptive message about the current detailed status. + /// Field Deprecated, the value will be ignored if provided. The indicator of whether one of the specified CPU cores is isolated to run the emulator thread for this virtual machine. + /// The memory size of the virtual machine. Allocations are measured in gibibytes. + /// The list of network attachments to the virtual machine. + /// The Base64 encoded cloud-init network data. + /// The scheduling hints for the virtual machine. + /// The power state of the virtual machine. + /// The provisioning state of the virtual machine. + /// The list of ssh public keys. Each key will be added to the virtual machine using the cloud-init ssh_authorized_keys mechanism for the adminUsername. + /// The storage profile that specifies size and other parameters about the disks related to the virtual machine. + /// The Base64 encoded cloud-init user data. + /// Field Deprecated, use virtualizationModel instead. The type of the virtio interface. + /// The type of the device model to use. + /// The virtual machine image that is currently provisioned to the OS disk, using the full url and tag notation used to pull the image. + /// The credentials used to login to the image repository that has access to the specified image. + /// The resource IDs of volumes that are attached to the virtual machine. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static NetworkCloudVirtualMachineData NetworkCloudVirtualMachineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, string adminUsername, string availabilityZone, ResourceIdentifier bareMetalMachineId, VirtualMachineBootMethod? bootMethod, NetworkAttachment cloudServicesNetworkAttachment, ResourceIdentifier clusterId, ExtendedLocation consoleExtendedLocation, long cpuCores, VirtualMachineDetailedStatus? detailedStatus, string detailedStatusMessage, VirtualMachineIsolateEmulatorThread? isolateEmulatorThread, long memorySizeInGB, IEnumerable networkAttachments, string networkData, IEnumerable placementHints, VirtualMachinePowerState? powerState, VirtualMachineProvisioningState? provisioningState, IEnumerable sshPublicKeys, NetworkCloudStorageProfile storageProfile, string userData, VirtualMachineVirtioInterfaceType? virtioInterface, VirtualMachineDeviceModelType? vmDeviceModel, string vmImage, ImageRepositoryCredentials vmImageRepositoryCredentials, IEnumerable volumes) + { + return NetworkCloudVirtualMachineData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, extendedLocation: extendedLocation, identity: default, adminUsername: adminUsername, availabilityZone: availabilityZone, bareMetalMachineId: bareMetalMachineId, bootMethod: bootMethod, cloudServicesNetworkAttachment: cloudServicesNetworkAttachment, clusterId: clusterId, consoleExtendedLocation: consoleExtendedLocation, cpuCores: cpuCores, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, isolateEmulatorThread: isolateEmulatorThread, memorySizeInGB: memorySizeInGB, networkAttachments: networkAttachments, networkData: networkData, networkDataContent: default, placementHints: placementHints, powerState: powerState, provisioningState: provisioningState, sshPublicKeys: sshPublicKeys, storageProfile: storageProfile, userData: userData, userDataContent: default, virtioInterface: virtioInterface, vmDeviceModel: vmDeviceModel, vmImage: vmImage, vmImageRepositoryCredentials: vmImageRepositoryCredentials, volumes: volumes); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Resource ETag. + /// The extended location of the cluster associated with the resource. + /// The list of resource IDs that attach the volume. It may include virtual machines and Hybrid AKS clusters. + /// The more detailed status of the volume. + /// The descriptive message about the current detailed status. + /// The provisioning state of the volume. + /// The unique identifier of the volume. + /// The size of the allocation for this volume in Mebibytes. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static NetworkCloudVolumeData NetworkCloudVolumeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, IEnumerable attachedTo, VolumeDetailedStatus? detailedStatus, string detailedStatusMessage, VolumeProvisioningState? provisioningState, string serialNumber, long sizeInMiB) + { + return NetworkCloudVolumeData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, extendedLocation: extendedLocation, allocatedSizeMiB: default, attachedTo: attachedTo, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, provisioningState: provisioningState, serialNumber: serialNumber, sizeInMiB: sizeInMiB, storageApplianceId: default); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Resource ETag. + /// The extended location of the cluster associated with the resource. + /// The object ID of Azure Active Directory group that all users in the list must be in for access to be granted. Users that are not in the group will not have access. + /// The more detailed status of the key set. + /// The descriptive message about the current detailed status. + /// The date and time after which the users in this key set will be removed from the bare metal machines. + /// The list of IP addresses of jump hosts with management network access from which a login will be allowed for the users. + /// The last time this key set was validated. + /// The name of the group that users will be assigned to on the operating system of the machines. + /// The access level allowed for the users in this key set. + /// The provisioning state of the bare metal machine key set. + /// The unique list of permitted users. + /// The status evaluation of each user. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static NetworkCloudBareMetalMachineKeySetData NetworkCloudBareMetalMachineKeySetData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, string azureGroupId, BareMetalMachineKeySetDetailedStatus? detailedStatus, string detailedStatusMessage, DateTimeOffset expireOn, IEnumerable jumpHostsAllowed, DateTimeOffset? lastValidatedOn, string osGroupName, BareMetalMachineKeySetPrivilegeLevel privilegeLevel, BareMetalMachineKeySetProvisioningState? provisioningState, IEnumerable userList, IEnumerable userListStatus) + { + return NetworkCloudBareMetalMachineKeySetData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, extendedLocation: extendedLocation, azureGroupId: azureGroupId, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, expireOn: expireOn, jumpHostsAllowed: jumpHostsAllowed, lastValidatedOn: lastValidatedOn, osGroupName: osGroupName, privilegeLevel: privilegeLevel, privilegeLevelName: default, provisioningState: provisioningState, userList: userList, userListStatus: userListStatus); + } + /// Initializes a new instance of . /// The id. /// The name. @@ -1573,7 +1949,7 @@ public static NetworkCloudVirtualMachineConsoleData NetworkCloudVirtualMachineCo [EditorBrowsable(EditorBrowsableState.Never)] public static NetworkCloudBareMetalMachineData NetworkCloudBareMetalMachineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ExtendedLocation extendedLocation, IEnumerable associatedResourceIds, string bmcConnectionString, AdministrativeCredentials bmcCredentials, string bmcMacAddress, string bootMacAddress, ResourceIdentifier clusterId, BareMetalMachineCordonStatus? cordonStatus, BareMetalMachineDetailedStatus? detailedStatus, string detailedStatusMessage, HardwareInventory hardwareInventory, HardwareValidationStatus hardwareValidationStatus, IEnumerable hybridAksClustersAssociatedIds, string kubernetesNodeName, string kubernetesVersion, string machineClusterVersion, string machineDetails, string machineName, IEnumerable machineRoles, string machineSkuId, IPAddress oamIPv4Address, string oamIPv6Address, string osImage, BareMetalMachinePowerState? powerState, BareMetalMachineProvisioningState? provisioningState, ResourceIdentifier rackId, long rackSlot, BareMetalMachineReadyState? readyState, RuntimeProtectionStatus runtimeProtectionStatus, IEnumerable secretRotationStatus, string serialNumber, string serviceTag, IEnumerable virtualMachinesAssociatedIds) { - return NetworkCloudBareMetalMachineData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: default, extendedLocation: extendedLocation, associatedResourceIds: associatedResourceIds, bmcConnectionString: bmcConnectionString, bmcCredentials: bmcCredentials, bmcMacAddress: bmcMacAddress, bootMacAddress: bootMacAddress, clusterId: clusterId, cordonStatus: cordonStatus, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, hardwareInventory: hardwareInventory, hardwareValidationStatus: hardwareValidationStatus, hybridAksClustersAssociatedIds: hybridAksClustersAssociatedIds, kubernetesNodeName: kubernetesNodeName, kubernetesVersion: kubernetesVersion, machineClusterVersion: machineClusterVersion, machineDetails: machineDetails, machineName: machineName, machineRoles: machineRoles, machineSkuId: machineSkuId, oamIPv4Address: oamIPv4Address, oamIPv6Address: oamIPv6Address, osImage: osImage, powerState: powerState, provisioningState: provisioningState, rackId: rackId, rackSlot: rackSlot, readyState: readyState, runtimeProtectionStatus: runtimeProtectionStatus, secretRotationStatus: secretRotationStatus, serialNumber: serialNumber, serviceTag: serviceTag, virtualMachinesAssociatedIds: virtualMachinesAssociatedIds); + return NetworkCloudBareMetalMachineData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: default, extendedLocation: extendedLocation, actionStates: default, associatedResourceIds: associatedResourceIds, bmcConnectionString: bmcConnectionString, bmcCredentials: bmcCredentials, bmcMacAddress: bmcMacAddress, bootMacAddress: bootMacAddress, caCertificate: default, clusterId: clusterId, cordonStatus: cordonStatus, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, hardwareInventory: hardwareInventory, hardwareValidationStatus: hardwareValidationStatus, hybridAksClustersAssociatedIds: hybridAksClustersAssociatedIds, kubernetesNodeName: kubernetesNodeName, kubernetesVersion: kubernetesVersion, machineClusterVersion: machineClusterVersion, machineDetails: machineDetails, machineName: machineName, machineRoles: machineRoles, machineSkuId: machineSkuId, oamIPv4Address: oamIPv4Address, oamIPv6Address: oamIPv6Address, osImage: osImage, powerState: powerState, provisioningState: provisioningState, rackId: rackId, rackSlot: rackSlot, readyState: readyState, runtimeProtectionStatus: runtimeProtectionStatus, secretRotationStatus: secretRotationStatus, serialNumber: serialNumber, serviceTag: serviceTag, virtualMachinesAssociatedIds: virtualMachinesAssociatedIds); } /// Initializes a new instance of . @@ -1599,7 +1975,7 @@ public static NetworkCloudBareMetalMachineData NetworkCloudBareMetalMachineData( [EditorBrowsable(EditorBrowsableState.Never)] public static NetworkCloudCloudServicesNetworkData NetworkCloudCloudServicesNetworkData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ExtendedLocation extendedLocation, IEnumerable additionalEgressEndpoints, IEnumerable associatedResourceIds, ResourceIdentifier clusterId, CloudServicesNetworkDetailedStatus? detailedStatus, string detailedStatusMessage, CloudServicesNetworkEnableDefaultEgressEndpoint? enableDefaultEgressEndpoints, IEnumerable enabledEgressEndpoints, IEnumerable hybridAksClustersAssociatedIds, string interfaceName, CloudServicesNetworkProvisioningState? provisioningState, IEnumerable virtualMachinesAssociatedIds) { - return NetworkCloudCloudServicesNetworkData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: default, extendedLocation: extendedLocation, additionalEgressEndpoints: additionalEgressEndpoints, associatedResourceIds: associatedResourceIds, clusterId: clusterId, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, enableDefaultEgressEndpoints: enableDefaultEgressEndpoints, enabledEgressEndpoints: enabledEgressEndpoints, hybridAksClustersAssociatedIds: hybridAksClustersAssociatedIds, interfaceName: interfaceName, provisioningState: provisioningState, virtualMachinesAssociatedIds: virtualMachinesAssociatedIds); + return NetworkCloudCloudServicesNetworkData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: default, extendedLocation: extendedLocation, additionalEgressEndpoints: additionalEgressEndpoints, associatedResourceIds: associatedResourceIds, clusterId: clusterId, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, enableDefaultEgressEndpoints: enableDefaultEgressEndpoints, enabledEgressEndpoints: enabledEgressEndpoints, hybridAksClustersAssociatedIds: hybridAksClustersAssociatedIds, interfaceName: interfaceName, provisioningState: provisioningState, storageOptions: default, storageStatus: default, virtualMachinesAssociatedIds: virtualMachinesAssociatedIds); } /// Initializes a new instance of . @@ -1670,7 +2046,7 @@ public static NetworkCloudClusterManagerData NetworkCloudClusterManagerData(Reso [EditorBrowsable(EditorBrowsableState.Never)] public static NetworkCloudClusterData NetworkCloudClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ExtendedLocation extendedLocation, ManagedServiceIdentity identity, NetworkCloudRackDefinition aggregatorOrSingleRackDefinition, ResourceIdentifier analyticsWorkspaceId, IEnumerable availableUpgradeVersions, ClusterCapacity clusterCapacity, ClusterConnectionStatus? clusterConnectionStatus, ExtendedLocation clusterExtendedLocation, string clusterLocation, ClusterManagerConnectionStatus? clusterManagerConnectionStatus, ResourceIdentifier clusterManagerId, ServicePrincipalInformation clusterServicePrincipal, ClusterType clusterType, string clusterVersion, CommandOutputSettings commandOutputSettings, ValidationThreshold computeDeploymentThreshold, IEnumerable computeRackDefinitions, ClusterDetailedStatus? detailedStatus, string detailedStatusMessage, ExtendedLocation hybridAksExtendedLocation, ManagedResourceGroupConfiguration managedResourceGroupConfiguration, long? manualActionCount, ResourceIdentifier networkFabricId, ClusterProvisioningState? provisioningState, RuntimeProtectionEnforcementLevel? runtimeProtectionEnforcementLevel, ClusterSecretArchive secretArchive, DateTimeOffset? supportExpireOn, ClusterUpdateStrategy updateStrategy, IEnumerable workloadResourceIds) { - return NetworkCloudClusterData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: default, extendedLocation: extendedLocation, identity: identity, aggregatorOrSingleRackDefinition: aggregatorOrSingleRackDefinition, analyticsOutputSettings: default, analyticsWorkspaceId: analyticsWorkspaceId, availableUpgradeVersions: availableUpgradeVersions, clusterCapacity: clusterCapacity, clusterConnectionStatus: clusterConnectionStatus, clusterExtendedLocation: clusterExtendedLocation, clusterLocation: clusterLocation, clusterManagerConnectionStatus: clusterManagerConnectionStatus, clusterManagerId: clusterManagerId, clusterServicePrincipal: clusterServicePrincipal, clusterType: clusterType, clusterVersion: clusterVersion, commandOutputSettings: commandOutputSettings, computeDeploymentThreshold: computeDeploymentThreshold, computeRackDefinitions: computeRackDefinitions, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, hybridAksExtendedLocation: hybridAksExtendedLocation, managedResourceGroupConfiguration: managedResourceGroupConfiguration, manualActionCount: manualActionCount, networkFabricId: networkFabricId, provisioningState: provisioningState, runtimeProtectionEnforcementLevel: runtimeProtectionEnforcementLevel, secretArchive: secretArchive, secretArchiveSettings: default, supportExpireOn: supportExpireOn, updateStrategy: updateStrategy, vulnerabilityScanningContainerScan: default, workloadResourceIds: workloadResourceIds); + return NetworkCloudClusterData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: default, extendedLocation: extendedLocation, identity: identity, actionStates: default, aggregatorOrSingleRackDefinition: aggregatorOrSingleRackDefinition, analyticsOutputSettings: default, analyticsWorkspaceId: analyticsWorkspaceId, availableUpgradeVersions: availableUpgradeVersions, clusterCapacity: clusterCapacity, clusterConnectionStatus: clusterConnectionStatus, clusterExtendedLocation: clusterExtendedLocation, clusterLocation: clusterLocation, clusterManagerConnectionStatus: clusterManagerConnectionStatus, clusterManagerId: clusterManagerId, clusterServicePrincipal: clusterServicePrincipal, clusterType: clusterType, clusterVersion: clusterVersion, commandOutputSettings: commandOutputSettings, computeDeploymentThreshold: computeDeploymentThreshold, computeRackDefinitions: computeRackDefinitions, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, hybridAksExtendedLocation: hybridAksExtendedLocation, managedResourceGroupConfiguration: managedResourceGroupConfiguration, manualActionCount: manualActionCount, networkFabricId: networkFabricId, provisioningState: provisioningState, runtimeProtectionEnforcementLevel: runtimeProtectionEnforcementLevel, secretArchive: secretArchive, secretArchiveSettings: default, supportExpireOn: supportExpireOn, updateStrategy: updateStrategy, vulnerabilityScanningContainerScan: default, workloadResourceIds: workloadResourceIds); } /// Initializes a new instance of . @@ -1819,7 +2195,7 @@ public static NetworkCloudRackData NetworkCloudRackData(ResourceIdentifier id, s [EditorBrowsable(EditorBrowsableState.Never)] public static NetworkCloudStorageApplianceData NetworkCloudStorageApplianceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ExtendedLocation extendedLocation, AdministrativeCredentials administratorCredentials, long? capacity, long? capacityUsed, ResourceIdentifier clusterId, StorageApplianceDetailedStatus? detailedStatus, string detailedStatusMessage, IPAddress managementIPv4Address, string manufacturer, string model, StorageApplianceProvisioningState? provisioningState, ResourceIdentifier rackId, long rackSlot, RemoteVendorManagementFeature? remoteVendorManagementFeature, RemoteVendorManagementStatus? remoteVendorManagementStatus, IEnumerable secretRotationStatus, string serialNumber, string storageApplianceSkuId, string version) { - return NetworkCloudStorageApplianceData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: default, extendedLocation: extendedLocation, administratorCredentials: administratorCredentials, capacity: capacity, capacityUsed: capacityUsed, clusterId: clusterId, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, managementIPv4Address: managementIPv4Address, manufacturer: manufacturer, model: model, provisioningState: provisioningState, rackId: rackId, rackSlot: rackSlot, remoteVendorManagementFeature: remoteVendorManagementFeature, remoteVendorManagementStatus: remoteVendorManagementStatus, secretRotationStatus: secretRotationStatus, serialNumber: serialNumber, storageApplianceSkuId: storageApplianceSkuId, version: version); + return NetworkCloudStorageApplianceData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: default, extendedLocation: extendedLocation, administratorCredentials: administratorCredentials, caCertificate: default, capacity: capacity, capacityUsed: capacityUsed, clusterId: clusterId, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, managementIPv4Address: managementIPv4Address, manufacturer: manufacturer, model: model, provisioningState: provisioningState, rackId: rackId, rackSlot: rackSlot, remoteVendorManagementFeature: remoteVendorManagementFeature, remoteVendorManagementStatus: remoteVendorManagementStatus, secretRotationStatus: secretRotationStatus, serialNumber: serialNumber, storageApplianceSkuId: storageApplianceSkuId, version: version); } /// Initializes a new instance of . @@ -1884,7 +2260,7 @@ public static NetworkCloudTrunkedNetworkData NetworkCloudTrunkedNetworkData(Reso [EditorBrowsable(EditorBrowsableState.Never)] public static NetworkCloudVirtualMachineData NetworkCloudVirtualMachineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ExtendedLocation extendedLocation, string adminUsername, string availabilityZone, ResourceIdentifier bareMetalMachineId, VirtualMachineBootMethod? bootMethod, NetworkAttachment cloudServicesNetworkAttachment, ResourceIdentifier clusterId, long cpuCores, VirtualMachineDetailedStatus? detailedStatus, string detailedStatusMessage, VirtualMachineIsolateEmulatorThread? isolateEmulatorThread, long memorySizeInGB, IEnumerable networkAttachments, string networkData, IEnumerable placementHints, VirtualMachinePowerState? powerState, VirtualMachineProvisioningState? provisioningState, IEnumerable sshPublicKeys, NetworkCloudStorageProfile storageProfile, string userData, VirtualMachineVirtioInterfaceType? virtioInterface, VirtualMachineDeviceModelType? vmDeviceModel, string vmImage, ImageRepositoryCredentials vmImageRepositoryCredentials, IEnumerable volumes) { - return NetworkCloudVirtualMachineData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: default, extendedLocation: extendedLocation, adminUsername: adminUsername, availabilityZone: availabilityZone, bareMetalMachineId: bareMetalMachineId, bootMethod: bootMethod, cloudServicesNetworkAttachment: cloudServicesNetworkAttachment, clusterId: clusterId, consoleExtendedLocation: default, cpuCores: cpuCores, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, isolateEmulatorThread: isolateEmulatorThread, memorySizeInGB: memorySizeInGB, networkAttachments: networkAttachments, networkData: networkData, placementHints: placementHints, powerState: powerState, provisioningState: provisioningState, sshPublicKeys: sshPublicKeys, storageProfile: storageProfile, userData: userData, virtioInterface: virtioInterface, vmDeviceModel: vmDeviceModel, vmImage: vmImage, vmImageRepositoryCredentials: vmImageRepositoryCredentials, volumes: volumes); + return NetworkCloudVirtualMachineData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: default, extendedLocation: extendedLocation, identity: default, adminUsername: adminUsername, availabilityZone: availabilityZone, bareMetalMachineId: bareMetalMachineId, bootMethod: bootMethod, cloudServicesNetworkAttachment: cloudServicesNetworkAttachment, clusterId: clusterId, consoleExtendedLocation: default, cpuCores: cpuCores, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, isolateEmulatorThread: isolateEmulatorThread, memorySizeInGB: memorySizeInGB, networkAttachments: networkAttachments, networkData: networkData, networkDataContent: default, placementHints: placementHints, powerState: powerState, provisioningState: provisioningState, sshPublicKeys: sshPublicKeys, storageProfile: storageProfile, userData: userData, userDataContent: default, virtioInterface: virtioInterface, vmDeviceModel: vmDeviceModel, vmImage: vmImage, vmImageRepositoryCredentials: vmImageRepositoryCredentials, volumes: volumes); } /// Initializes a new instance of . @@ -1905,7 +2281,7 @@ public static NetworkCloudVirtualMachineData NetworkCloudVirtualMachineData(Reso [EditorBrowsable(EditorBrowsableState.Never)] public static NetworkCloudVolumeData NetworkCloudVolumeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ExtendedLocation extendedLocation, IEnumerable attachedTo, VolumeDetailedStatus? detailedStatus, string detailedStatusMessage, VolumeProvisioningState? provisioningState, string serialNumber, long sizeInMiB) { - return NetworkCloudVolumeData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: default, extendedLocation: extendedLocation, attachedTo: attachedTo, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, provisioningState: provisioningState, serialNumber: serialNumber, sizeInMiB: sizeInMiB); + return NetworkCloudVolumeData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: default, extendedLocation: extendedLocation, allocatedSizeMiB: default, attachedTo: attachedTo, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, provisioningState: provisioningState, serialNumber: serialNumber, sizeInMiB: sizeInMiB, storageApplianceId: default); } /// Initializes a new instance of . @@ -1931,7 +2307,7 @@ public static NetworkCloudVolumeData NetworkCloudVolumeData(ResourceIdentifier i [EditorBrowsable(EditorBrowsableState.Never)] public static NetworkCloudBareMetalMachineKeySetData NetworkCloudBareMetalMachineKeySetData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ExtendedLocation extendedLocation, string azureGroupId, BareMetalMachineKeySetDetailedStatus? detailedStatus, string detailedStatusMessage, DateTimeOffset expireOn, IEnumerable jumpHostsAllowed, DateTimeOffset? lastValidatedOn, string osGroupName, BareMetalMachineKeySetPrivilegeLevel privilegeLevel, BareMetalMachineKeySetProvisioningState? provisioningState, IEnumerable userList, IEnumerable userListStatus) { - return NetworkCloudBareMetalMachineKeySetData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: default, extendedLocation: extendedLocation, azureGroupId: azureGroupId, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, expireOn: expireOn, jumpHostsAllowed: jumpHostsAllowed, lastValidatedOn: lastValidatedOn, osGroupName: osGroupName, privilegeLevel: privilegeLevel, provisioningState: provisioningState, userList: userList, userListStatus: userListStatus); + return NetworkCloudBareMetalMachineKeySetData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: default, extendedLocation: extendedLocation, azureGroupId: azureGroupId, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, expireOn: expireOn, jumpHostsAllowed: jumpHostsAllowed, lastValidatedOn: lastValidatedOn, osGroupName: osGroupName, privilegeLevel: privilegeLevel, privilegeLevelName: default, provisioningState: provisioningState, userList: userList, userListStatus: userListStatus); } /// Initializes a new instance of . @@ -2092,7 +2468,7 @@ public static NetworkCloudVirtualMachineConsoleData NetworkCloudVirtualMachineCo [EditorBrowsable(EditorBrowsableState.Never)] public static NetworkCloudBareMetalMachineData NetworkCloudBareMetalMachineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ExtendedLocation extendedLocation, IEnumerable associatedResourceIds, string bmcConnectionString, AdministrativeCredentials bmcCredentials, string bmcMacAddress, string bootMacAddress, ResourceIdentifier clusterId, BareMetalMachineCordonStatus? cordonStatus, BareMetalMachineDetailedStatus? detailedStatus, string detailedStatusMessage, HardwareInventory hardwareInventory, HardwareValidationStatus hardwareValidationStatus, IEnumerable hybridAksClustersAssociatedIds, string kubernetesNodeName, string kubernetesVersion, string machineDetails, string machineName, string machineSkuId, IPAddress oamIPv4Address, string oamIPv6Address, string osImage, BareMetalMachinePowerState? powerState, BareMetalMachineProvisioningState? provisioningState, ResourceIdentifier rackId, long rackSlot, BareMetalMachineReadyState? readyState, string serialNumber, string serviceTag, IEnumerable virtualMachinesAssociatedIds) { - return NetworkCloudBareMetalMachineData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: default, extendedLocation: extendedLocation, associatedResourceIds: associatedResourceIds, bmcConnectionString: bmcConnectionString, bmcCredentials: bmcCredentials, bmcMacAddress: bmcMacAddress, bootMacAddress: bootMacAddress, clusterId: clusterId, cordonStatus: cordonStatus, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, hardwareInventory: hardwareInventory, hardwareValidationStatus: hardwareValidationStatus, hybridAksClustersAssociatedIds: hybridAksClustersAssociatedIds, kubernetesNodeName: kubernetesNodeName, kubernetesVersion: kubernetesVersion, machineClusterVersion: default, machineDetails: machineDetails, machineName: machineName, machineRoles: default, machineSkuId: machineSkuId, oamIPv4Address: oamIPv4Address, oamIPv6Address: oamIPv6Address, osImage: osImage, powerState: powerState, provisioningState: provisioningState, rackId: rackId, rackSlot: rackSlot, readyState: readyState, runtimeProtectionStatus: default, secretRotationStatus: default, serialNumber: serialNumber, serviceTag: serviceTag, virtualMachinesAssociatedIds: virtualMachinesAssociatedIds); + return NetworkCloudBareMetalMachineData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: default, extendedLocation: extendedLocation, actionStates: default, associatedResourceIds: associatedResourceIds, bmcConnectionString: bmcConnectionString, bmcCredentials: bmcCredentials, bmcMacAddress: bmcMacAddress, bootMacAddress: bootMacAddress, caCertificate: default, clusterId: clusterId, cordonStatus: cordonStatus, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, hardwareInventory: hardwareInventory, hardwareValidationStatus: hardwareValidationStatus, hybridAksClustersAssociatedIds: hybridAksClustersAssociatedIds, kubernetesNodeName: kubernetesNodeName, kubernetesVersion: kubernetesVersion, machineClusterVersion: default, machineDetails: machineDetails, machineName: machineName, machineRoles: default, machineSkuId: machineSkuId, oamIPv4Address: oamIPv4Address, oamIPv6Address: oamIPv6Address, osImage: osImage, powerState: powerState, provisioningState: provisioningState, rackId: rackId, rackSlot: rackSlot, readyState: readyState, runtimeProtectionStatus: default, secretRotationStatus: default, serialNumber: serialNumber, serviceTag: serviceTag, virtualMachinesAssociatedIds: virtualMachinesAssociatedIds); } /// Initializes a new instance of . @@ -2157,7 +2533,7 @@ public static NetworkCloudClusterManagerData NetworkCloudClusterManagerData(Reso [EditorBrowsable(EditorBrowsableState.Never)] public static NetworkCloudClusterData NetworkCloudClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ExtendedLocation extendedLocation, NetworkCloudRackDefinition aggregatorOrSingleRackDefinition, ResourceIdentifier analyticsWorkspaceId, IEnumerable availableUpgradeVersions, ClusterCapacity clusterCapacity, ClusterConnectionStatus? clusterConnectionStatus, ExtendedLocation clusterExtendedLocation, string clusterLocation, ClusterManagerConnectionStatus? clusterManagerConnectionStatus, ResourceIdentifier clusterManagerId, ServicePrincipalInformation clusterServicePrincipal, ClusterType clusterType, string clusterVersion, ValidationThreshold computeDeploymentThreshold, IEnumerable computeRackDefinitions, ClusterDetailedStatus? detailedStatus, string detailedStatusMessage, ExtendedLocation hybridAksExtendedLocation, ManagedResourceGroupConfiguration managedResourceGroupConfiguration, long? manualActionCount, ResourceIdentifier networkFabricId, ClusterProvisioningState? provisioningState, DateTimeOffset? supportExpireOn, IEnumerable workloadResourceIds) { - return NetworkCloudClusterData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: default, extendedLocation: extendedLocation, identity: default, aggregatorOrSingleRackDefinition: aggregatorOrSingleRackDefinition, analyticsOutputSettings: default, analyticsWorkspaceId: analyticsWorkspaceId, availableUpgradeVersions: availableUpgradeVersions, clusterCapacity: clusterCapacity, clusterConnectionStatus: clusterConnectionStatus, clusterExtendedLocation: clusterExtendedLocation, clusterLocation: clusterLocation, clusterManagerConnectionStatus: clusterManagerConnectionStatus, clusterManagerId: clusterManagerId, clusterServicePrincipal: clusterServicePrincipal, clusterType: clusterType, clusterVersion: clusterVersion, commandOutputSettings: default, computeDeploymentThreshold: computeDeploymentThreshold, computeRackDefinitions: computeRackDefinitions, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, hybridAksExtendedLocation: hybridAksExtendedLocation, managedResourceGroupConfiguration: managedResourceGroupConfiguration, manualActionCount: manualActionCount, networkFabricId: networkFabricId, provisioningState: provisioningState, runtimeProtectionEnforcementLevel: default, secretArchive: default, secretArchiveSettings: default, supportExpireOn: supportExpireOn, updateStrategy: default, vulnerabilityScanningContainerScan: default, workloadResourceIds: workloadResourceIds); + return NetworkCloudClusterData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: default, extendedLocation: extendedLocation, identity: default, actionStates: default, aggregatorOrSingleRackDefinition: aggregatorOrSingleRackDefinition, analyticsOutputSettings: default, analyticsWorkspaceId: analyticsWorkspaceId, availableUpgradeVersions: availableUpgradeVersions, clusterCapacity: clusterCapacity, clusterConnectionStatus: clusterConnectionStatus, clusterExtendedLocation: clusterExtendedLocation, clusterLocation: clusterLocation, clusterManagerConnectionStatus: clusterManagerConnectionStatus, clusterManagerId: clusterManagerId, clusterServicePrincipal: clusterServicePrincipal, clusterType: clusterType, clusterVersion: clusterVersion, commandOutputSettings: default, computeDeploymentThreshold: computeDeploymentThreshold, computeRackDefinitions: computeRackDefinitions, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, hybridAksExtendedLocation: hybridAksExtendedLocation, managedResourceGroupConfiguration: managedResourceGroupConfiguration, manualActionCount: manualActionCount, networkFabricId: networkFabricId, provisioningState: provisioningState, runtimeProtectionEnforcementLevel: default, secretArchive: default, secretArchiveSettings: default, supportExpireOn: supportExpireOn, updateStrategy: default, vulnerabilityScanningContainerScan: default, workloadResourceIds: workloadResourceIds); } /// Initializes a new instance of . @@ -2186,7 +2562,7 @@ public static NetworkCloudClusterData NetworkCloudClusterData(ResourceIdentifier [EditorBrowsable(EditorBrowsableState.Never)] public static NetworkCloudStorageApplianceData NetworkCloudStorageApplianceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ExtendedLocation extendedLocation, AdministrativeCredentials administratorCredentials, long? capacity, long? capacityUsed, ResourceIdentifier clusterId, StorageApplianceDetailedStatus? detailedStatus, string detailedStatusMessage, IPAddress managementIPv4Address, StorageApplianceProvisioningState? provisioningState, ResourceIdentifier rackId, long rackSlot, RemoteVendorManagementFeature? remoteVendorManagementFeature, RemoteVendorManagementStatus? remoteVendorManagementStatus, string serialNumber, string storageApplianceSkuId) { - return NetworkCloudStorageApplianceData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: default, extendedLocation: extendedLocation, administratorCredentials: administratorCredentials, capacity: capacity, capacityUsed: capacityUsed, clusterId: clusterId, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, managementIPv4Address: managementIPv4Address, manufacturer: default, model: default, provisioningState: provisioningState, rackId: rackId, rackSlot: rackSlot, remoteVendorManagementFeature: remoteVendorManagementFeature, remoteVendorManagementStatus: remoteVendorManagementStatus, secretRotationStatus: default, serialNumber: serialNumber, storageApplianceSkuId: storageApplianceSkuId, version: default); + return NetworkCloudStorageApplianceData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: default, extendedLocation: extendedLocation, administratorCredentials: administratorCredentials, caCertificate: default, capacity: capacity, capacityUsed: capacityUsed, clusterId: clusterId, detailedStatus: detailedStatus, detailedStatusMessage: detailedStatusMessage, managementIPv4Address: managementIPv4Address, manufacturer: default, model: default, provisioningState: provisioningState, rackId: rackId, rackSlot: rackSlot, remoteVendorManagementFeature: remoteVendorManagementFeature, remoteVendorManagementStatus: remoteVendorManagementStatus, secretRotationStatus: default, serialNumber: serialNumber, storageApplianceSkuId: storageApplianceSkuId, version: default); } /// Initializes a new instance of . diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Extensions/MockableNetworkCloudResourceGroupResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Extensions/MockableNetworkCloudResourceGroupResource.cs index ab8bdc8d8f17..1b8069e20154 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Extensions/MockableNetworkCloudResourceGroupResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Extensions/MockableNetworkCloudResourceGroupResource.cs @@ -53,7 +53,7 @@ public virtual NetworkCloudBareMetalMachineCollection GetNetworkCloudBareMetalMa /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -84,7 +84,7 @@ public virtual async Task> GetNet /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -122,7 +122,7 @@ public virtual NetworkCloudCloudServicesNetworkCollection GetNetworkCloudCloudSe /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -153,7 +153,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -191,7 +191,7 @@ public virtual NetworkCloudClusterManagerCollection GetNetworkCloudClusterManage /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -222,7 +222,7 @@ public virtual async Task> GetNetwo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -260,7 +260,7 @@ public virtual NetworkCloudClusterCollection GetNetworkCloudClusters() /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -291,7 +291,7 @@ public virtual async Task> GetNetworkCloud /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -329,7 +329,7 @@ public virtual NetworkCloudKubernetesClusterCollection GetNetworkCloudKubernetes /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> GetNe /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -398,7 +398,7 @@ public virtual NetworkCloudL2NetworkCollection GetNetworkCloudL2Networks() /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -429,7 +429,7 @@ public virtual async Task> GetNetworkClo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -467,7 +467,7 @@ public virtual NetworkCloudL3NetworkCollection GetNetworkCloudL3Networks() /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -498,7 +498,7 @@ public virtual async Task> GetNetworkClo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -536,7 +536,7 @@ public virtual NetworkCloudRackCollection GetNetworkCloudRacks() /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -567,7 +567,7 @@ public virtual async Task> GetNetworkCloudRac /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -605,7 +605,7 @@ public virtual NetworkCloudStorageApplianceCollection GetNetworkCloudStorageAppl /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -636,7 +636,7 @@ public virtual async Task> GetNet /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -674,7 +674,7 @@ public virtual NetworkCloudTrunkedNetworkCollection GetNetworkCloudTrunkedNetwor /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -705,7 +705,7 @@ public virtual async Task> GetNetwo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -743,7 +743,7 @@ public virtual NetworkCloudVirtualMachineCollection GetNetworkCloudVirtualMachin /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -774,7 +774,7 @@ public virtual async Task> GetNetwo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -812,7 +812,7 @@ public virtual NetworkCloudVolumeCollection GetNetworkCloudVolumes() /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -843,7 +843,7 @@ public virtual async Task> GetNetworkCloudV /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Extensions/MockableNetworkCloudSubscriptionResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Extensions/MockableNetworkCloudSubscriptionResource.cs index 3bd38414c7e6..5f167d3a445d 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Extensions/MockableNetworkCloudSubscriptionResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Extensions/MockableNetworkCloudSubscriptionResource.cs @@ -105,7 +105,7 @@ public virtual NetworkCloudRackSkuCollection GetNetworkCloudRackSkus() /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -136,7 +136,7 @@ public virtual async Task> GetNetworkCloud /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -167,7 +167,7 @@ public virtual Response GetNetworkCloudRackSku(stri /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -175,12 +175,14 @@ public virtual Response GetNetworkCloudRackSku(stri /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetNetworkCloudBareMetalMachinesAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetNetworkCloudBareMetalMachinesAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudBareMetalMachineBareMetalMachinesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudBareMetalMachineBareMetalMachinesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudBareMetalMachineBareMetalMachinesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudBareMetalMachineBareMetalMachinesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudBareMetalMachineResource(Client, NetworkCloudBareMetalMachineData.DeserializeNetworkCloudBareMetalMachineData(e)), NetworkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudBareMetalMachines", "value", "nextLink", cancellationToken); } @@ -197,7 +199,7 @@ public virtual AsyncPageable GetNetworkClo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -205,12 +207,14 @@ public virtual AsyncPageable GetNetworkClo /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetNetworkCloudBareMetalMachines(CancellationToken cancellationToken = default) + public virtual Pageable GetNetworkCloudBareMetalMachines(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudBareMetalMachineBareMetalMachinesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudBareMetalMachineBareMetalMachinesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudBareMetalMachineBareMetalMachinesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudBareMetalMachineBareMetalMachinesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudBareMetalMachineResource(Client, NetworkCloudBareMetalMachineData.DeserializeNetworkCloudBareMetalMachineData(e)), NetworkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudBareMetalMachines", "value", "nextLink", cancellationToken); } @@ -227,7 +231,7 @@ public virtual Pageable GetNetworkCloudBar /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -235,12 +239,14 @@ public virtual Pageable GetNetworkCloudBar /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetNetworkCloudCloudServicesNetworksAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetNetworkCloudCloudServicesNetworksAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudCloudServicesNetworkCloudServicesNetworksRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudCloudServicesNetworkCloudServicesNetworksRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudCloudServicesNetworkCloudServicesNetworksRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudCloudServicesNetworkCloudServicesNetworksRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudCloudServicesNetworkResource(Client, NetworkCloudCloudServicesNetworkData.DeserializeNetworkCloudCloudServicesNetworkData(e)), NetworkCloudCloudServicesNetworkCloudServicesNetworksClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudCloudServicesNetworks", "value", "nextLink", cancellationToken); } @@ -257,7 +263,7 @@ public virtual AsyncPageable GetNetwor /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -265,12 +271,14 @@ public virtual AsyncPageable GetNetwor /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetNetworkCloudCloudServicesNetworks(CancellationToken cancellationToken = default) + public virtual Pageable GetNetworkCloudCloudServicesNetworks(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudCloudServicesNetworkCloudServicesNetworksRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudCloudServicesNetworkCloudServicesNetworksRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudCloudServicesNetworkCloudServicesNetworksRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudCloudServicesNetworkCloudServicesNetworksRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudCloudServicesNetworkResource(Client, NetworkCloudCloudServicesNetworkData.DeserializeNetworkCloudCloudServicesNetworkData(e)), NetworkCloudCloudServicesNetworkCloudServicesNetworksClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudCloudServicesNetworks", "value", "nextLink", cancellationToken); } @@ -287,7 +295,7 @@ public virtual Pageable GetNetworkClou /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -295,12 +303,14 @@ public virtual Pageable GetNetworkClou /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetNetworkCloudClusterManagersAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetNetworkCloudClusterManagersAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudClusterManagerClusterManagersRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudClusterManagerClusterManagersRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudClusterManagerClusterManagersRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudClusterManagerClusterManagersRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudClusterManagerResource(Client, NetworkCloudClusterManagerData.DeserializeNetworkCloudClusterManagerData(e)), NetworkCloudClusterManagerClusterManagersClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudClusterManagers", "value", "nextLink", cancellationToken); } @@ -317,7 +327,7 @@ public virtual AsyncPageable GetNetworkCloud /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -325,12 +335,14 @@ public virtual AsyncPageable GetNetworkCloud /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetNetworkCloudClusterManagers(CancellationToken cancellationToken = default) + public virtual Pageable GetNetworkCloudClusterManagers(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudClusterManagerClusterManagersRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudClusterManagerClusterManagersRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudClusterManagerClusterManagersRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudClusterManagerClusterManagersRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudClusterManagerResource(Client, NetworkCloudClusterManagerData.DeserializeNetworkCloudClusterManagerData(e)), NetworkCloudClusterManagerClusterManagersClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudClusterManagers", "value", "nextLink", cancellationToken); } @@ -347,7 +359,7 @@ public virtual Pageable GetNetworkCloudClust /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -355,12 +367,14 @@ public virtual Pageable GetNetworkCloudClust /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetNetworkCloudClustersAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetNetworkCloudClustersAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudClusterClustersRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudClusterClustersRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudClusterClustersRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudClusterClustersRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudClusterResource(Client, NetworkCloudClusterData.DeserializeNetworkCloudClusterData(e)), NetworkCloudClusterClustersClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudClusters", "value", "nextLink", cancellationToken); } @@ -377,7 +391,7 @@ public virtual AsyncPageable GetNetworkCloudCluster /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -385,12 +399,14 @@ public virtual AsyncPageable GetNetworkCloudCluster /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetNetworkCloudClusters(CancellationToken cancellationToken = default) + public virtual Pageable GetNetworkCloudClusters(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudClusterClustersRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudClusterClustersRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudClusterClustersRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudClusterClustersRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudClusterResource(Client, NetworkCloudClusterData.DeserializeNetworkCloudClusterData(e)), NetworkCloudClusterClustersClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudClusters", "value", "nextLink", cancellationToken); } @@ -407,7 +423,7 @@ public virtual Pageable GetNetworkCloudClusters(Can /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -415,12 +431,14 @@ public virtual Pageable GetNetworkCloudClusters(Can /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetNetworkCloudKubernetesClustersAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetNetworkCloudKubernetesClustersAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudKubernetesClusterKubernetesClustersRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudKubernetesClusterKubernetesClustersRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudKubernetesClusterKubernetesClustersRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudKubernetesClusterKubernetesClustersRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudKubernetesClusterResource(Client, NetworkCloudKubernetesClusterData.DeserializeNetworkCloudKubernetesClusterData(e)), NetworkCloudKubernetesClusterKubernetesClustersClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudKubernetesClusters", "value", "nextLink", cancellationToken); } @@ -437,7 +455,7 @@ public virtual AsyncPageable GetNetworkCl /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -445,12 +463,14 @@ public virtual AsyncPageable GetNetworkCl /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetNetworkCloudKubernetesClusters(CancellationToken cancellationToken = default) + public virtual Pageable GetNetworkCloudKubernetesClusters(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudKubernetesClusterKubernetesClustersRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudKubernetesClusterKubernetesClustersRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudKubernetesClusterKubernetesClustersRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudKubernetesClusterKubernetesClustersRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudKubernetesClusterResource(Client, NetworkCloudKubernetesClusterData.DeserializeNetworkCloudKubernetesClusterData(e)), NetworkCloudKubernetesClusterKubernetesClustersClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudKubernetesClusters", "value", "nextLink", cancellationToken); } @@ -467,7 +487,7 @@ public virtual Pageable GetNetworkCloudKu /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -475,12 +495,14 @@ public virtual Pageable GetNetworkCloudKu /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetNetworkCloudL2NetworksAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetNetworkCloudL2NetworksAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudL2NetworkL2NetworksRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudL2NetworkL2NetworksRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudL2NetworkL2NetworksRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudL2NetworkL2NetworksRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudL2NetworkResource(Client, NetworkCloudL2NetworkData.DeserializeNetworkCloudL2NetworkData(e)), NetworkCloudL2NetworkL2NetworksClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudL2Networks", "value", "nextLink", cancellationToken); } @@ -497,7 +519,7 @@ public virtual AsyncPageable GetNetworkCloudL2Net /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -505,12 +527,14 @@ public virtual AsyncPageable GetNetworkCloudL2Net /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetNetworkCloudL2Networks(CancellationToken cancellationToken = default) + public virtual Pageable GetNetworkCloudL2Networks(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudL2NetworkL2NetworksRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudL2NetworkL2NetworksRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudL2NetworkL2NetworksRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudL2NetworkL2NetworksRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudL2NetworkResource(Client, NetworkCloudL2NetworkData.DeserializeNetworkCloudL2NetworkData(e)), NetworkCloudL2NetworkL2NetworksClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudL2Networks", "value", "nextLink", cancellationToken); } @@ -527,7 +551,7 @@ public virtual Pageable GetNetworkCloudL2Networks /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -535,12 +559,14 @@ public virtual Pageable GetNetworkCloudL2Networks /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetNetworkCloudL3NetworksAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetNetworkCloudL3NetworksAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudL3NetworkL3NetworksRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudL3NetworkL3NetworksRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudL3NetworkL3NetworksRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudL3NetworkL3NetworksRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudL3NetworkResource(Client, NetworkCloudL3NetworkData.DeserializeNetworkCloudL3NetworkData(e)), NetworkCloudL3NetworkL3NetworksClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudL3Networks", "value", "nextLink", cancellationToken); } @@ -557,7 +583,7 @@ public virtual AsyncPageable GetNetworkCloudL3Net /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -565,12 +591,14 @@ public virtual AsyncPageable GetNetworkCloudL3Net /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetNetworkCloudL3Networks(CancellationToken cancellationToken = default) + public virtual Pageable GetNetworkCloudL3Networks(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudL3NetworkL3NetworksRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudL3NetworkL3NetworksRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudL3NetworkL3NetworksRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudL3NetworkL3NetworksRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudL3NetworkResource(Client, NetworkCloudL3NetworkData.DeserializeNetworkCloudL3NetworkData(e)), NetworkCloudL3NetworkL3NetworksClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudL3Networks", "value", "nextLink", cancellationToken); } @@ -587,7 +615,7 @@ public virtual Pageable GetNetworkCloudL3Networks /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -595,12 +623,14 @@ public virtual Pageable GetNetworkCloudL3Networks /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetNetworkCloudRacksAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetNetworkCloudRacksAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudRackRacksRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudRackRacksRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudRackRacksRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudRackRacksRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudRackResource(Client, NetworkCloudRackData.DeserializeNetworkCloudRackData(e)), NetworkCloudRackRacksClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudRacks", "value", "nextLink", cancellationToken); } @@ -617,7 +647,7 @@ public virtual AsyncPageable GetNetworkCloudRacksAsync /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -625,12 +655,14 @@ public virtual AsyncPageable GetNetworkCloudRacksAsync /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetNetworkCloudRacks(CancellationToken cancellationToken = default) + public virtual Pageable GetNetworkCloudRacks(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudRackRacksRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudRackRacksRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudRackRacksRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudRackRacksRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudRackResource(Client, NetworkCloudRackData.DeserializeNetworkCloudRackData(e)), NetworkCloudRackRacksClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudRacks", "value", "nextLink", cancellationToken); } @@ -647,7 +679,7 @@ public virtual Pageable GetNetworkCloudRacks(Cancellat /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -655,12 +687,14 @@ public virtual Pageable GetNetworkCloudRacks(Cancellat /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetNetworkCloudStorageAppliancesAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetNetworkCloudStorageAppliancesAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudStorageApplianceStorageAppliancesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudStorageApplianceStorageAppliancesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudStorageApplianceStorageAppliancesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudStorageApplianceStorageAppliancesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudStorageApplianceResource(Client, NetworkCloudStorageApplianceData.DeserializeNetworkCloudStorageApplianceData(e)), NetworkCloudStorageApplianceStorageAppliancesClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudStorageAppliances", "value", "nextLink", cancellationToken); } @@ -677,7 +711,7 @@ public virtual AsyncPageable GetNetworkClo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -685,12 +719,14 @@ public virtual AsyncPageable GetNetworkClo /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetNetworkCloudStorageAppliances(CancellationToken cancellationToken = default) + public virtual Pageable GetNetworkCloudStorageAppliances(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudStorageApplianceStorageAppliancesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudStorageApplianceStorageAppliancesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudStorageApplianceStorageAppliancesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudStorageApplianceStorageAppliancesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudStorageApplianceResource(Client, NetworkCloudStorageApplianceData.DeserializeNetworkCloudStorageApplianceData(e)), NetworkCloudStorageApplianceStorageAppliancesClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudStorageAppliances", "value", "nextLink", cancellationToken); } @@ -707,7 +743,7 @@ public virtual Pageable GetNetworkCloudSto /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -715,12 +751,14 @@ public virtual Pageable GetNetworkCloudSto /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetNetworkCloudTrunkedNetworksAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetNetworkCloudTrunkedNetworksAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudTrunkedNetworkTrunkedNetworksRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudTrunkedNetworkTrunkedNetworksRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudTrunkedNetworkTrunkedNetworksRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudTrunkedNetworkTrunkedNetworksRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudTrunkedNetworkResource(Client, NetworkCloudTrunkedNetworkData.DeserializeNetworkCloudTrunkedNetworkData(e)), NetworkCloudTrunkedNetworkTrunkedNetworksClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudTrunkedNetworks", "value", "nextLink", cancellationToken); } @@ -737,7 +775,7 @@ public virtual AsyncPageable GetNetworkCloud /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -745,12 +783,14 @@ public virtual AsyncPageable GetNetworkCloud /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetNetworkCloudTrunkedNetworks(CancellationToken cancellationToken = default) + public virtual Pageable GetNetworkCloudTrunkedNetworks(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudTrunkedNetworkTrunkedNetworksRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudTrunkedNetworkTrunkedNetworksRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudTrunkedNetworkTrunkedNetworksRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudTrunkedNetworkTrunkedNetworksRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudTrunkedNetworkResource(Client, NetworkCloudTrunkedNetworkData.DeserializeNetworkCloudTrunkedNetworkData(e)), NetworkCloudTrunkedNetworkTrunkedNetworksClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudTrunkedNetworks", "value", "nextLink", cancellationToken); } @@ -767,7 +807,7 @@ public virtual Pageable GetNetworkCloudTrunk /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -775,12 +815,14 @@ public virtual Pageable GetNetworkCloudTrunk /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetNetworkCloudVirtualMachinesAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetNetworkCloudVirtualMachinesAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudVirtualMachineVirtualMachinesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudVirtualMachineVirtualMachinesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudVirtualMachineVirtualMachinesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudVirtualMachineVirtualMachinesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudVirtualMachineResource(Client, NetworkCloudVirtualMachineData.DeserializeNetworkCloudVirtualMachineData(e)), NetworkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudVirtualMachines", "value", "nextLink", cancellationToken); } @@ -797,7 +839,7 @@ public virtual AsyncPageable GetNetworkCloud /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -805,12 +847,14 @@ public virtual AsyncPageable GetNetworkCloud /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetNetworkCloudVirtualMachines(CancellationToken cancellationToken = default) + public virtual Pageable GetNetworkCloudVirtualMachines(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudVirtualMachineVirtualMachinesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudVirtualMachineVirtualMachinesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudVirtualMachineVirtualMachinesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudVirtualMachineVirtualMachinesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudVirtualMachineResource(Client, NetworkCloudVirtualMachineData.DeserializeNetworkCloudVirtualMachineData(e)), NetworkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudVirtualMachines", "value", "nextLink", cancellationToken); } @@ -827,7 +871,7 @@ public virtual Pageable GetNetworkCloudVirtu /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -835,12 +879,14 @@ public virtual Pageable GetNetworkCloudVirtu /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetNetworkCloudVolumesAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetNetworkCloudVolumesAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudVolumeVolumesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudVolumeVolumesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudVolumeVolumesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudVolumeVolumesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudVolumeResource(Client, NetworkCloudVolumeData.DeserializeNetworkCloudVolumeData(e)), NetworkCloudVolumeVolumesClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudVolumes", "value", "nextLink", cancellationToken); } @@ -857,7 +903,7 @@ public virtual AsyncPageable GetNetworkCloudVolumesA /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -865,12 +911,14 @@ public virtual AsyncPageable GetNetworkCloudVolumesA /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetNetworkCloudVolumes(CancellationToken cancellationToken = default) + public virtual Pageable GetNetworkCloudVolumes(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudVolumeVolumesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudVolumeVolumesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetworkCloudVolumeVolumesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetworkCloudVolumeVolumesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudVolumeResource(Client, NetworkCloudVolumeData.DeserializeNetworkCloudVolumeData(e)), NetworkCloudVolumeVolumesClientDiagnostics, Pipeline, "MockableNetworkCloudSubscriptionResource.GetNetworkCloudVolumes", "value", "nextLink", cancellationToken); } } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Extensions/NetworkCloudExtensions.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Extensions/NetworkCloudExtensions.cs index 9955fd96a7f0..601f0c460e78 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Extensions/NetworkCloudExtensions.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Extensions/NetworkCloudExtensions.cs @@ -423,7 +423,7 @@ public static NetworkCloudBareMetalMachineCollection GetNetworkCloudBareMetalMac /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -461,7 +461,7 @@ public static async Task> GetNetw /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -516,7 +516,7 @@ public static NetworkCloudCloudServicesNetworkCollection GetNetworkCloudCloudSer /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -554,7 +554,7 @@ public static async Task> Get /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -609,7 +609,7 @@ public static NetworkCloudClusterManagerCollection GetNetworkCloudClusterManager /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -647,7 +647,7 @@ public static async Task> GetNetwor /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -702,7 +702,7 @@ public static NetworkCloudClusterCollection GetNetworkCloudClusters(this Resourc /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -740,7 +740,7 @@ public static async Task> GetNetworkCloudC /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -795,7 +795,7 @@ public static NetworkCloudKubernetesClusterCollection GetNetworkCloudKubernetesC /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -833,7 +833,7 @@ public static async Task> GetNet /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -888,7 +888,7 @@ public static NetworkCloudL2NetworkCollection GetNetworkCloudL2Networks(this Res /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -926,7 +926,7 @@ public static async Task> GetNetworkClou /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -981,7 +981,7 @@ public static NetworkCloudL3NetworkCollection GetNetworkCloudL3Networks(this Res /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1019,7 +1019,7 @@ public static async Task> GetNetworkClou /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1074,7 +1074,7 @@ public static NetworkCloudRackCollection GetNetworkCloudRacks(this ResourceGroup /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1112,7 +1112,7 @@ public static async Task> GetNetworkCloudRack /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1167,7 +1167,7 @@ public static NetworkCloudStorageApplianceCollection GetNetworkCloudStorageAppli /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1205,7 +1205,7 @@ public static async Task> GetNetw /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1260,7 +1260,7 @@ public static NetworkCloudTrunkedNetworkCollection GetNetworkCloudTrunkedNetwork /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1298,7 +1298,7 @@ public static async Task> GetNetwor /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1353,7 +1353,7 @@ public static NetworkCloudVirtualMachineCollection GetNetworkCloudVirtualMachine /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1391,7 +1391,7 @@ public static async Task> GetNetwor /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1446,7 +1446,7 @@ public static NetworkCloudVolumeCollection GetNetworkCloudVolumes(this ResourceG /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1484,7 +1484,7 @@ public static async Task> GetNetworkCloudVo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1539,7 +1539,7 @@ public static NetworkCloudRackSkuCollection GetNetworkCloudRackSkus(this Subscri /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1577,7 +1577,7 @@ public static async Task> GetNetworkCloudR /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1615,7 +1615,7 @@ public static Response GetNetworkCloudRackSku(this /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1624,18 +1624,20 @@ public static Response GetNetworkCloudRackSku(this /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetNetworkCloudBareMetalMachinesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static AsyncPageable GetNetworkCloudBareMetalMachinesAsync(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudBareMetalMachinesAsync(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudBareMetalMachinesAsync(top, skipToken, cancellationToken); } /// @@ -1651,7 +1653,7 @@ public static AsyncPageable GetNetworkClou /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1660,18 +1662,20 @@ public static AsyncPageable GetNetworkClou /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetNetworkCloudBareMetalMachines(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static Pageable GetNetworkCloudBareMetalMachines(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudBareMetalMachines(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudBareMetalMachines(top, skipToken, cancellationToken); } /// @@ -1687,7 +1691,7 @@ public static Pageable GetNetworkCloudBare /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1696,18 +1700,20 @@ public static Pageable GetNetworkCloudBare /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetNetworkCloudCloudServicesNetworksAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static AsyncPageable GetNetworkCloudCloudServicesNetworksAsync(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudCloudServicesNetworksAsync(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudCloudServicesNetworksAsync(top, skipToken, cancellationToken); } /// @@ -1723,7 +1729,7 @@ public static AsyncPageable GetNetwork /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1732,18 +1738,20 @@ public static AsyncPageable GetNetwork /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetNetworkCloudCloudServicesNetworks(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static Pageable GetNetworkCloudCloudServicesNetworks(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudCloudServicesNetworks(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudCloudServicesNetworks(top, skipToken, cancellationToken); } /// @@ -1759,7 +1767,7 @@ public static Pageable GetNetworkCloud /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1768,18 +1776,20 @@ public static Pageable GetNetworkCloud /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetNetworkCloudClusterManagersAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static AsyncPageable GetNetworkCloudClusterManagersAsync(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudClusterManagersAsync(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudClusterManagersAsync(top, skipToken, cancellationToken); } /// @@ -1795,7 +1805,7 @@ public static AsyncPageable GetNetworkCloudC /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1804,18 +1814,20 @@ public static AsyncPageable GetNetworkCloudC /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetNetworkCloudClusterManagers(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static Pageable GetNetworkCloudClusterManagers(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudClusterManagers(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudClusterManagers(top, skipToken, cancellationToken); } /// @@ -1831,7 +1843,7 @@ public static Pageable GetNetworkCloudCluste /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1840,18 +1852,20 @@ public static Pageable GetNetworkCloudCluste /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetNetworkCloudClustersAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static AsyncPageable GetNetworkCloudClustersAsync(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudClustersAsync(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudClustersAsync(top, skipToken, cancellationToken); } /// @@ -1867,7 +1881,7 @@ public static AsyncPageable GetNetworkCloudClusters /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1876,18 +1890,20 @@ public static AsyncPageable GetNetworkCloudClusters /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetNetworkCloudClusters(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static Pageable GetNetworkCloudClusters(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudClusters(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudClusters(top, skipToken, cancellationToken); } /// @@ -1903,7 +1919,7 @@ public static Pageable GetNetworkCloudClusters(this /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1912,18 +1928,20 @@ public static Pageable GetNetworkCloudClusters(this /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetNetworkCloudKubernetesClustersAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static AsyncPageable GetNetworkCloudKubernetesClustersAsync(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudKubernetesClustersAsync(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudKubernetesClustersAsync(top, skipToken, cancellationToken); } /// @@ -1939,7 +1957,7 @@ public static AsyncPageable GetNetworkClo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1948,18 +1966,20 @@ public static AsyncPageable GetNetworkClo /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetNetworkCloudKubernetesClusters(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static Pageable GetNetworkCloudKubernetesClusters(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudKubernetesClusters(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudKubernetesClusters(top, skipToken, cancellationToken); } /// @@ -1975,7 +1995,7 @@ public static Pageable GetNetworkCloudKub /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1984,18 +2004,20 @@ public static Pageable GetNetworkCloudKub /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetNetworkCloudL2NetworksAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static AsyncPageable GetNetworkCloudL2NetworksAsync(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudL2NetworksAsync(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudL2NetworksAsync(top, skipToken, cancellationToken); } /// @@ -2011,7 +2033,7 @@ public static AsyncPageable GetNetworkCloudL2Netw /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -2020,18 +2042,20 @@ public static AsyncPageable GetNetworkCloudL2Netw /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetNetworkCloudL2Networks(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static Pageable GetNetworkCloudL2Networks(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudL2Networks(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudL2Networks(top, skipToken, cancellationToken); } /// @@ -2047,7 +2071,7 @@ public static Pageable GetNetworkCloudL2Networks( /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -2056,18 +2080,20 @@ public static Pageable GetNetworkCloudL2Networks( /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetNetworkCloudL3NetworksAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static AsyncPageable GetNetworkCloudL3NetworksAsync(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudL3NetworksAsync(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudL3NetworksAsync(top, skipToken, cancellationToken); } /// @@ -2083,7 +2109,7 @@ public static AsyncPageable GetNetworkCloudL3Netw /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -2092,18 +2118,20 @@ public static AsyncPageable GetNetworkCloudL3Netw /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetNetworkCloudL3Networks(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static Pageable GetNetworkCloudL3Networks(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudL3Networks(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudL3Networks(top, skipToken, cancellationToken); } /// @@ -2119,7 +2147,7 @@ public static Pageable GetNetworkCloudL3Networks( /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -2128,18 +2156,20 @@ public static Pageable GetNetworkCloudL3Networks( /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetNetworkCloudRacksAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static AsyncPageable GetNetworkCloudRacksAsync(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudRacksAsync(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudRacksAsync(top, skipToken, cancellationToken); } /// @@ -2155,7 +2185,7 @@ public static AsyncPageable GetNetworkCloudRacksAsync( /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -2164,18 +2194,20 @@ public static AsyncPageable GetNetworkCloudRacksAsync( /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetNetworkCloudRacks(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static Pageable GetNetworkCloudRacks(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudRacks(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudRacks(top, skipToken, cancellationToken); } /// @@ -2191,7 +2223,7 @@ public static Pageable GetNetworkCloudRacks(this Subsc /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -2200,18 +2232,20 @@ public static Pageable GetNetworkCloudRacks(this Subsc /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetNetworkCloudStorageAppliancesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static AsyncPageable GetNetworkCloudStorageAppliancesAsync(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudStorageAppliancesAsync(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudStorageAppliancesAsync(top, skipToken, cancellationToken); } /// @@ -2227,7 +2261,7 @@ public static AsyncPageable GetNetworkClou /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -2236,18 +2270,20 @@ public static AsyncPageable GetNetworkClou /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetNetworkCloudStorageAppliances(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static Pageable GetNetworkCloudStorageAppliances(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudStorageAppliances(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudStorageAppliances(top, skipToken, cancellationToken); } /// @@ -2263,7 +2299,7 @@ public static Pageable GetNetworkCloudStor /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -2272,18 +2308,20 @@ public static Pageable GetNetworkCloudStor /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetNetworkCloudTrunkedNetworksAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static AsyncPageable GetNetworkCloudTrunkedNetworksAsync(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudTrunkedNetworksAsync(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudTrunkedNetworksAsync(top, skipToken, cancellationToken); } /// @@ -2299,7 +2337,7 @@ public static AsyncPageable GetNetworkCloudT /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -2308,18 +2346,20 @@ public static AsyncPageable GetNetworkCloudT /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetNetworkCloudTrunkedNetworks(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static Pageable GetNetworkCloudTrunkedNetworks(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudTrunkedNetworks(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudTrunkedNetworks(top, skipToken, cancellationToken); } /// @@ -2335,7 +2375,7 @@ public static Pageable GetNetworkCloudTrunke /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -2344,18 +2384,20 @@ public static Pageable GetNetworkCloudTrunke /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetNetworkCloudVirtualMachinesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static AsyncPageable GetNetworkCloudVirtualMachinesAsync(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudVirtualMachinesAsync(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudVirtualMachinesAsync(top, skipToken, cancellationToken); } /// @@ -2371,7 +2413,7 @@ public static AsyncPageable GetNetworkCloudV /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -2380,18 +2422,20 @@ public static AsyncPageable GetNetworkCloudV /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetNetworkCloudVirtualMachines(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static Pageable GetNetworkCloudVirtualMachines(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudVirtualMachines(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudVirtualMachines(top, skipToken, cancellationToken); } /// @@ -2407,7 +2451,7 @@ public static Pageable GetNetworkCloudVirtua /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -2416,18 +2460,20 @@ public static Pageable GetNetworkCloudVirtua /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetNetworkCloudVolumesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static AsyncPageable GetNetworkCloudVolumesAsync(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudVolumesAsync(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudVolumesAsync(top, skipToken, cancellationToken); } /// @@ -2443,7 +2489,7 @@ public static AsyncPageable GetNetworkCloudVolumesAs /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -2452,18 +2498,20 @@ public static AsyncPageable GetNetworkCloudVolumesAs /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetNetworkCloudVolumes(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static Pageable GetNetworkCloudVolumes(this SubscriptionResource subscriptionResource, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudVolumes(cancellationToken); + return GetMockableNetworkCloudSubscriptionResource(subscriptionResource).GetNetworkCloudVolumes(top, skipToken, cancellationToken); } } } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ActionState.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ActionState.Serialization.cs new file mode 100644 index 000000000000..4c9c5e6d9294 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ActionState.Serialization.cs @@ -0,0 +1,221 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + public partial class ActionState : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ActionState)} does not support writing '{format}' format."); + } + + if (options.Format != "W" && Optional.IsDefined(ActionType)) + { + writer.WritePropertyName("actionType"u8); + writer.WriteStringValue(ActionType); + } + if (options.Format != "W" && Optional.IsDefined(CorrelationId)) + { + writer.WritePropertyName("correlationId"u8); + writer.WriteStringValue(CorrelationId); + } + if (options.Format != "W" && Optional.IsDefined(EndTime)) + { + writer.WritePropertyName("endTime"u8); + writer.WriteStringValue(EndTime); + } + if (options.Format != "W" && Optional.IsDefined(Message)) + { + writer.WritePropertyName("message"u8); + writer.WriteStringValue(Message); + } + if (options.Format != "W" && Optional.IsDefined(StartTime)) + { + writer.WritePropertyName("startTime"u8); + writer.WriteStringValue(StartTime); + } + if (options.Format != "W" && Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + if (options.Format != "W" && Optional.IsCollectionDefined(StepStates)) + { + writer.WritePropertyName("stepStates"u8); + writer.WriteStartArray(); + foreach (var item in StepStates) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + ActionState IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ActionState)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeActionState(document.RootElement, options); + } + + internal static ActionState DeserializeActionState(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string actionType = default; + string correlationId = default; + string endTime = default; + string message = default; + string startTime = default; + ActionStateStatus? status = default; + IReadOnlyList stepStates = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("actionType"u8)) + { + actionType = property.Value.GetString(); + continue; + } + if (property.NameEquals("correlationId"u8)) + { + correlationId = property.Value.GetString(); + continue; + } + if (property.NameEquals("endTime"u8)) + { + endTime = property.Value.GetString(); + continue; + } + if (property.NameEquals("message"u8)) + { + message = property.Value.GetString(); + continue; + } + if (property.NameEquals("startTime"u8)) + { + startTime = property.Value.GetString(); + continue; + } + if (property.NameEquals("status"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new ActionStateStatus(property.Value.GetString()); + continue; + } + if (property.NameEquals("stepStates"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(StepState.DeserializeStepState(item, options)); + } + stepStates = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ActionState( + actionType, + correlationId, + endTime, + message, + startTime, + status, + stepStates ?? new ChangeTrackingList(), + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerNetworkCloudContext.Default); + default: + throw new FormatException($"The model {nameof(ActionState)} does not support writing '{options.Format}' format."); + } + } + + ActionState IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeActionState(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ActionState)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ActionState.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ActionState.cs new file mode 100644 index 000000000000..3a1fc5da3ef8 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ActionState.cs @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + /// ActionState represents the state of an action taken against a resource. This can be used to represent both explicitly and implicitly defined action types. + public partial class ActionState + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal ActionState() + { + StepStates = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// The representation of the action for which this is a status. Matches ARM resource action format when the action is an ARM-based action. + /// The correlation ID for the original action request. Omitted if there is no related correlation ID. + /// The timestamp of when the action reached its final, terminal state. Uses ISO 8601 format. + /// The description providing additional context for the status value. May be empty or contain guidance in the case of a failure. + /// The timestamp of when the action began, in ISO 8601 format. + /// The status of the action. + /// The ordered list of the individual steps which make up the action. + /// Keeps track of any properties unknown to the library. + internal ActionState(string actionType, string correlationId, string endTime, string message, string startTime, ActionStateStatus? status, IReadOnlyList stepStates, IDictionary serializedAdditionalRawData) + { + ActionType = actionType; + CorrelationId = correlationId; + EndTime = endTime; + Message = message; + StartTime = startTime; + Status = status; + StepStates = stepStates; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The representation of the action for which this is a status. Matches ARM resource action format when the action is an ARM-based action. + public string ActionType { get; } + /// The correlation ID for the original action request. Omitted if there is no related correlation ID. + public string CorrelationId { get; } + /// The timestamp of when the action reached its final, terminal state. Uses ISO 8601 format. + public string EndTime { get; } + /// The description providing additional context for the status value. May be empty or contain guidance in the case of a failure. + public string Message { get; } + /// The timestamp of when the action began, in ISO 8601 format. + public string StartTime { get; } + /// The status of the action. + public ActionStateStatus? Status { get; } + /// The ordered list of the individual steps which make up the action. + public IReadOnlyList StepStates { get; } + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ActionStateStatus.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ActionStateStatus.cs new file mode 100644 index 000000000000..f778064e594b --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ActionStateStatus.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + /// The status of the action. + public readonly partial struct ActionStateStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ActionStateStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string CompletedValue = "Completed"; + private const string InProgressValue = "InProgress"; + private const string FailedValue = "Failed"; + + /// Completed. + public static ActionStateStatus Completed { get; } = new ActionStateStatus(CompletedValue); + /// InProgress. + public static ActionStateStatus InProgress { get; } = new ActionStateStatus(InProgressValue); + /// Failed. + public static ActionStateStatus Failed { get; } = new ActionStateStatus(FailedValue); + /// Determines if two values are the same. + public static bool operator ==(ActionStateStatus left, ActionStateStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ActionStateStatus left, ActionStateStatus right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator ActionStateStatus(string value) => new ActionStateStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ActionStateStatus other && Equals(other); + /// + public bool Equals(ActionStateStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/AzureResourceManagerNetworkCloudContext.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/AzureResourceManagerNetworkCloudContext.cs index a05ff39ef0d3..18023dfd7ae4 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/AzureResourceManagerNetworkCloudContext.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/AzureResourceManagerNetworkCloudContext.cs @@ -15,6 +15,7 @@ namespace Azure.ResourceManager.NetworkCloud /// Context class which will be filled in by the System.ClientModel.SourceGeneration. /// For more information see 'https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/System.ClientModel/src/docs/ModelReaderWriterContext.md' /// + [ModelReaderWriterBuildable(typeof(ActionState))] [ModelReaderWriterBuildable(typeof(AdministrativeCredentials))] [ModelReaderWriterBuildable(typeof(AdministratorConfiguration))] [ModelReaderWriterBuildable(typeof(AdministratorConfigurationPatch))] @@ -31,12 +32,16 @@ namespace Azure.ResourceManager.NetworkCloud [ModelReaderWriterBuildable(typeof(BareMetalMachinePowerOffContent))] [ModelReaderWriterBuildable(typeof(BareMetalMachineReplaceContent))] [ModelReaderWriterBuildable(typeof(BareMetalMachineRunCommandContent))] - [ModelReaderWriterBuildable(typeof(BareMetalMachineRunDataExtractsContent))] + [ModelReaderWriterBuildable(typeof(BareMetalMachineRunDataExtractsParameters))] [ModelReaderWriterBuildable(typeof(BareMetalMachineRunReadCommandsContent))] [ModelReaderWriterBuildable(typeof(BgpAdvertisement))] [ModelReaderWriterBuildable(typeof(BgpServiceLoadBalancerConfiguration))] [ModelReaderWriterBuildable(typeof(BmcKeySetList))] + [ModelReaderWriterBuildable(typeof(CertificateInfo))] [ModelReaderWriterBuildable(typeof(CloudServicesNetworkList))] + [ModelReaderWriterBuildable(typeof(CloudServicesNetworkStorageOptions))] + [ModelReaderWriterBuildable(typeof(CloudServicesNetworkStorageOptionsPatch))] + [ModelReaderWriterBuildable(typeof(CloudServicesNetworkStorageStatus))] [ModelReaderWriterBuildable(typeof(ClusterAvailableUpgradeVersion))] [ModelReaderWriterBuildable(typeof(ClusterAvailableVersion))] [ModelReaderWriterBuildable(typeof(ClusterCapacity))] @@ -49,6 +54,7 @@ namespace Azure.ResourceManager.NetworkCloud [ModelReaderWriterBuildable(typeof(ClusterSecretArchive))] [ModelReaderWriterBuildable(typeof(ClusterUpdateStrategy))] [ModelReaderWriterBuildable(typeof(ClusterUpdateVersionContent))] + [ModelReaderWriterBuildable(typeof(CommandOutputOverride))] [ModelReaderWriterBuildable(typeof(CommandOutputSettings))] [ModelReaderWriterBuildable(typeof(ConsoleList))] [ModelReaderWriterBuildable(typeof(ControlPlaneNodeConfiguration))] @@ -159,9 +165,12 @@ namespace Azure.ResourceManager.NetworkCloud [ModelReaderWriterBuildable(typeof(SecretRotationStatus))] [ModelReaderWriterBuildable(typeof(ServiceLoadBalancerBgpPeer))] [ModelReaderWriterBuildable(typeof(ServicePrincipalInformation))] + [ModelReaderWriterBuildable(typeof(StepState))] + [ModelReaderWriterBuildable(typeof(StorageApplianceCommandSpecification))] [ModelReaderWriterBuildable(typeof(StorageApplianceConfiguration))] [ModelReaderWriterBuildable(typeof(StorageApplianceEnableRemoteVendorManagementContent))] [ModelReaderWriterBuildable(typeof(StorageApplianceList))] + [ModelReaderWriterBuildable(typeof(StorageApplianceRunReadCommandsContent))] [ModelReaderWriterBuildable(typeof(StorageApplianceSkuSlot))] [ModelReaderWriterBuildable(typeof(StringKeyValuePair))] [ModelReaderWriterBuildable(typeof(SystemData))] @@ -169,6 +178,7 @@ namespace Azure.ResourceManager.NetworkCloud [ModelReaderWriterBuildable(typeof(TrunkedNetworkList))] [ModelReaderWriterBuildable(typeof(UserAssignedIdentity))] [ModelReaderWriterBuildable(typeof(ValidationThreshold))] + [ModelReaderWriterBuildable(typeof(VirtualMachineAssignRelayContent))] [ModelReaderWriterBuildable(typeof(VirtualMachineList))] [ModelReaderWriterBuildable(typeof(VirtualMachinePlacementHint))] [ModelReaderWriterBuildable(typeof(VirtualMachinePowerOffContent))] diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineKeySetPrivilegeLevel.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineKeySetPrivilegeLevel.cs index da4b27ad0335..499fa2930708 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineKeySetPrivilegeLevel.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineKeySetPrivilegeLevel.cs @@ -24,11 +24,14 @@ public BareMetalMachineKeySetPrivilegeLevel(string value) private const string StandardValue = "Standard"; private const string SuperuserValue = "Superuser"; + private const string OtherValue = "Other"; /// Standard. public static BareMetalMachineKeySetPrivilegeLevel Standard { get; } = new BareMetalMachineKeySetPrivilegeLevel(StandardValue); /// Superuser. public static BareMetalMachineKeySetPrivilegeLevel Superuser { get; } = new BareMetalMachineKeySetPrivilegeLevel(SuperuserValue); + /// Other. + public static BareMetalMachineKeySetPrivilegeLevel Other { get; } = new BareMetalMachineKeySetPrivilegeLevel(OtherValue); /// Determines if two values are the same. public static bool operator ==(BareMetalMachineKeySetPrivilegeLevel left, BareMetalMachineKeySetPrivilegeLevel right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineReplaceContent.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineReplaceContent.Serialization.cs index 93e895c1a07a..abe80b65accb 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineReplaceContent.Serialization.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineReplaceContent.Serialization.cs @@ -54,11 +54,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("machineName"u8); writer.WriteStringValue(MachineName); } + if (Optional.IsDefined(SafeguardMode)) + { + writer.WritePropertyName("safeguardMode"u8); + writer.WriteStringValue(SafeguardMode.Value.ToString()); + } if (Optional.IsDefined(SerialNumber)) { writer.WritePropertyName("serialNumber"u8); writer.WriteStringValue(SerialNumber); } + if (Optional.IsDefined(StoragePolicy)) + { + writer.WritePropertyName("storagePolicy"u8); + writer.WriteStringValue(StoragePolicy.Value.ToString()); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -100,7 +110,9 @@ internal static BareMetalMachineReplaceContent DeserializeBareMetalMachineReplac string bmcMacAddress = default; string bootMacAddress = default; string machineName = default; + BareMetalMachineReplaceSafeguardMode? safeguardMode = default; string serialNumber = default; + BareMetalMachineReplaceStoragePolicy? storagePolicy = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -129,11 +141,29 @@ internal static BareMetalMachineReplaceContent DeserializeBareMetalMachineReplac machineName = property.Value.GetString(); continue; } + if (property.NameEquals("safeguardMode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + safeguardMode = new BareMetalMachineReplaceSafeguardMode(property.Value.GetString()); + continue; + } if (property.NameEquals("serialNumber"u8)) { serialNumber = property.Value.GetString(); continue; } + if (property.NameEquals("storagePolicy"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + storagePolicy = new BareMetalMachineReplaceStoragePolicy(property.Value.GetString()); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -145,7 +175,9 @@ internal static BareMetalMachineReplaceContent DeserializeBareMetalMachineReplac bmcMacAddress, bootMacAddress, machineName, + safeguardMode, serialNumber, + storagePolicy, serializedAdditionalRawData); } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineReplaceContent.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineReplaceContent.cs index d8ec094d72d2..0a735f4b032f 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineReplaceContent.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineReplaceContent.cs @@ -55,15 +55,19 @@ public BareMetalMachineReplaceContent() /// The MAC address of the BMC device. /// The MAC address of a NIC connected to the PXE network. /// The OS-level hostname assigned to this machine. + /// The safeguard mode to use for the replace action, where None indicates to bypass safeguards and All indicates to utilize all safeguards. /// The serial number of the bare metal machine. + /// The indicator of whether to bypass clearing storage while replacing a bare metal machine. /// Keeps track of any properties unknown to the library. - internal BareMetalMachineReplaceContent(AdministrativeCredentials bmcCredentials, string bmcMacAddress, string bootMacAddress, string machineName, string serialNumber, IDictionary serializedAdditionalRawData) + internal BareMetalMachineReplaceContent(AdministrativeCredentials bmcCredentials, string bmcMacAddress, string bootMacAddress, string machineName, BareMetalMachineReplaceSafeguardMode? safeguardMode, string serialNumber, BareMetalMachineReplaceStoragePolicy? storagePolicy, IDictionary serializedAdditionalRawData) { BmcCredentials = bmcCredentials; BmcMacAddress = bmcMacAddress; BootMacAddress = bootMacAddress; MachineName = machineName; + SafeguardMode = safeguardMode; SerialNumber = serialNumber; + StoragePolicy = storagePolicy; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -75,7 +79,11 @@ internal BareMetalMachineReplaceContent(AdministrativeCredentials bmcCredentials public string BootMacAddress { get; set; } /// The OS-level hostname assigned to this machine. public string MachineName { get; set; } + /// The safeguard mode to use for the replace action, where None indicates to bypass safeguards and All indicates to utilize all safeguards. + public BareMetalMachineReplaceSafeguardMode? SafeguardMode { get; set; } /// The serial number of the bare metal machine. public string SerialNumber { get; set; } + /// The indicator of whether to bypass clearing storage while replacing a bare metal machine. + public BareMetalMachineReplaceStoragePolicy? StoragePolicy { get; set; } } } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineReplaceSafeguardMode.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineReplaceSafeguardMode.cs new file mode 100644 index 000000000000..796705ae59aa --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineReplaceSafeguardMode.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + /// The safeguard mode to use for the replace action, where None indicates to bypass safeguards and All indicates to utilize all safeguards. + public readonly partial struct BareMetalMachineReplaceSafeguardMode : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public BareMetalMachineReplaceSafeguardMode(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AllValue = "All"; + private const string NoneValue = "None"; + + /// All. + public static BareMetalMachineReplaceSafeguardMode All { get; } = new BareMetalMachineReplaceSafeguardMode(AllValue); + /// None. + public static BareMetalMachineReplaceSafeguardMode None { get; } = new BareMetalMachineReplaceSafeguardMode(NoneValue); + /// Determines if two values are the same. + public static bool operator ==(BareMetalMachineReplaceSafeguardMode left, BareMetalMachineReplaceSafeguardMode right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(BareMetalMachineReplaceSafeguardMode left, BareMetalMachineReplaceSafeguardMode right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator BareMetalMachineReplaceSafeguardMode(string value) => new BareMetalMachineReplaceSafeguardMode(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is BareMetalMachineReplaceSafeguardMode other && Equals(other); + /// + public bool Equals(BareMetalMachineReplaceSafeguardMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineReplaceStoragePolicy.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineReplaceStoragePolicy.cs new file mode 100644 index 000000000000..0fa0a3960cfc --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineReplaceStoragePolicy.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + /// The indicator of whether to bypass clearing storage while replacing a bare metal machine. + public readonly partial struct BareMetalMachineReplaceStoragePolicy : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public BareMetalMachineReplaceStoragePolicy(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string PreserveValue = "Preserve"; + private const string DiscardAllValue = "DiscardAll"; + + /// Preserve. + public static BareMetalMachineReplaceStoragePolicy Preserve { get; } = new BareMetalMachineReplaceStoragePolicy(PreserveValue); + /// DiscardAll. + public static BareMetalMachineReplaceStoragePolicy DiscardAll { get; } = new BareMetalMachineReplaceStoragePolicy(DiscardAllValue); + /// Determines if two values are the same. + public static bool operator ==(BareMetalMachineReplaceStoragePolicy left, BareMetalMachineReplaceStoragePolicy right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(BareMetalMachineReplaceStoragePolicy left, BareMetalMachineReplaceStoragePolicy right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator BareMetalMachineReplaceStoragePolicy(string value) => new BareMetalMachineReplaceStoragePolicy(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is BareMetalMachineReplaceStoragePolicy other && Equals(other); + /// + public bool Equals(BareMetalMachineReplaceStoragePolicy other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineRunDataExtractsParameters.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineRunDataExtractsParameters.Serialization.cs new file mode 100644 index 000000000000..4179d0b0b5af --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineRunDataExtractsParameters.Serialization.cs @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + public partial class BareMetalMachineRunDataExtractsParameters : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(BareMetalMachineRunDataExtractsParameters)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("commands"u8); + writer.WriteStartArray(); + foreach (var item in Commands) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + writer.WritePropertyName("limitTimeSeconds"u8); + writer.WriteNumberValue(LimitTimeSeconds); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + BareMetalMachineRunDataExtractsParameters IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(BareMetalMachineRunDataExtractsParameters)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeBareMetalMachineRunDataExtractsParameters(document.RootElement, options); + } + + internal static BareMetalMachineRunDataExtractsParameters DeserializeBareMetalMachineRunDataExtractsParameters(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList commands = default; + long limitTimeSeconds = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("commands"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(BareMetalMachineCommandSpecification.DeserializeBareMetalMachineCommandSpecification(item, options)); + } + commands = array; + continue; + } + if (property.NameEquals("limitTimeSeconds"u8)) + { + limitTimeSeconds = property.Value.GetInt64(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new BareMetalMachineRunDataExtractsParameters(commands, limitTimeSeconds, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerNetworkCloudContext.Default); + default: + throw new FormatException($"The model {nameof(BareMetalMachineRunDataExtractsParameters)} does not support writing '{options.Format}' format."); + } + } + + BareMetalMachineRunDataExtractsParameters IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeBareMetalMachineRunDataExtractsParameters(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(BareMetalMachineRunDataExtractsParameters)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineRunDataExtractsContent.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineRunDataExtractsParameters.cs similarity index 86% rename from sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineRunDataExtractsContent.cs rename to sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineRunDataExtractsParameters.cs index 7ef4fb244ce6..fdde1610a6e5 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineRunDataExtractsContent.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineRunDataExtractsParameters.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.NetworkCloud.Models { /// BareMetalMachineRunDataExtractsParameters represents the body of request containing list of curated data extraction commands to run on the bare metal machine. - public partial class BareMetalMachineRunDataExtractsContent + public partial class BareMetalMachineRunDataExtractsParameters { /// /// Keeps track of any properties unknown to the library. @@ -46,14 +46,14 @@ public partial class BareMetalMachineRunDataExtractsContent /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . + /// Initializes a new instance of . /// The list of curated data extraction commands to be executed directly against the target machine. /// /// The maximum time the commands are allowed to run. /// If the execution time exceeds the maximum, the script will be stopped, any output produced until then will be captured, and the exit code matching a timeout will be returned (252). /// /// is null. - public BareMetalMachineRunDataExtractsContent(IEnumerable commands, long limitTimeSeconds) + public BareMetalMachineRunDataExtractsParameters(IEnumerable commands, long limitTimeSeconds) { Argument.AssertNotNull(commands, nameof(commands)); @@ -61,22 +61,22 @@ public BareMetalMachineRunDataExtractsContent(IEnumerable Initializes a new instance of . + /// Initializes a new instance of . /// The list of curated data extraction commands to be executed directly against the target machine. /// /// The maximum time the commands are allowed to run. /// If the execution time exceeds the maximum, the script will be stopped, any output produced until then will be captured, and the exit code matching a timeout will be returned (252). /// /// Keeps track of any properties unknown to the library. - internal BareMetalMachineRunDataExtractsContent(IList commands, long limitTimeSeconds, IDictionary serializedAdditionalRawData) + internal BareMetalMachineRunDataExtractsParameters(IList commands, long limitTimeSeconds, IDictionary serializedAdditionalRawData) { Commands = commands; LimitTimeSeconds = limitTimeSeconds; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal BareMetalMachineRunDataExtractsContent() + /// Initializes a new instance of for deserialization. + internal BareMetalMachineRunDataExtractsParameters() { } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CertificateInfo.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CertificateInfo.Serialization.cs new file mode 100644 index 000000000000..ace4163cc7b4 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CertificateInfo.Serialization.cs @@ -0,0 +1,140 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + public partial class CertificateInfo : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(CertificateInfo)} does not support writing '{format}' format."); + } + + if (options.Format != "W" && Optional.IsDefined(Hash)) + { + writer.WritePropertyName("hash"u8); + writer.WriteStringValue(Hash); + } + if (options.Format != "W" && Optional.IsDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStringValue(Value); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + CertificateInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(CertificateInfo)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeCertificateInfo(document.RootElement, options); + } + + internal static CertificateInfo DeserializeCertificateInfo(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string hash = default; + string value = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("hash"u8)) + { + hash = property.Value.GetString(); + continue; + } + if (property.NameEquals("value"u8)) + { + value = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new CertificateInfo(hash, value, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerNetworkCloudContext.Default); + default: + throw new FormatException($"The model {nameof(CertificateInfo)} does not support writing '{options.Format}' format."); + } + } + + CertificateInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeCertificateInfo(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(CertificateInfo)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CertificateInfo.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CertificateInfo.cs new file mode 100644 index 000000000000..c72502cccffa --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CertificateInfo.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + /// CertificateInfo represents the non-private information of an X.509 Certificate. + public partial class CertificateInfo + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal CertificateInfo() + { + } + + /// Initializes a new instance of . + /// The hash value of the X.509 Certificate. + /// The textual value of the X.509 Certificate. + /// Keeps track of any properties unknown to the library. + internal CertificateInfo(string hash, string value, IDictionary serializedAdditionalRawData) + { + Hash = hash; + Value = value; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The hash value of the X.509 Certificate. + public string Hash { get; } + /// The textual value of the X.509 Certificate. + public string Value { get; } + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageMode.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageMode.cs new file mode 100644 index 000000000000..26f01ca8471e --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageMode.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + /// The indicator to enable shared storage on the cloud services network. If not specified, the allocation will align with the standard storage enablement. + public readonly partial struct CloudServicesNetworkStorageMode : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public CloudServicesNetworkStorageMode(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NoneValue = "None"; + private const string StandardValue = "Standard"; + + /// None. + public static CloudServicesNetworkStorageMode None { get; } = new CloudServicesNetworkStorageMode(NoneValue); + /// Standard. + public static CloudServicesNetworkStorageMode Standard { get; } = new CloudServicesNetworkStorageMode(StandardValue); + /// Determines if two values are the same. + public static bool operator ==(CloudServicesNetworkStorageMode left, CloudServicesNetworkStorageMode right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(CloudServicesNetworkStorageMode left, CloudServicesNetworkStorageMode right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator CloudServicesNetworkStorageMode(string value) => new CloudServicesNetworkStorageMode(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is CloudServicesNetworkStorageMode other && Equals(other); + /// + public bool Equals(CloudServicesNetworkStorageMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageOptions.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageOptions.Serialization.cs new file mode 100644 index 000000000000..918b4f0a48c5 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageOptions.Serialization.cs @@ -0,0 +1,163 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + public partial class CloudServicesNetworkStorageOptions : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(CloudServicesNetworkStorageOptions)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Mode)) + { + writer.WritePropertyName("mode"u8); + writer.WriteStringValue(Mode.Value.ToString()); + } + if (Optional.IsDefined(SizeMiB)) + { + writer.WritePropertyName("sizeMiB"u8); + writer.WriteNumberValue(SizeMiB.Value); + } + if (Optional.IsDefined(StorageApplianceId)) + { + writer.WritePropertyName("storageApplianceId"u8); + writer.WriteStringValue(StorageApplianceId); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + CloudServicesNetworkStorageOptions IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(CloudServicesNetworkStorageOptions)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeCloudServicesNetworkStorageOptions(document.RootElement, options); + } + + internal static CloudServicesNetworkStorageOptions DeserializeCloudServicesNetworkStorageOptions(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + CloudServicesNetworkStorageMode? mode = default; + long? sizeMiB = default; + ResourceIdentifier storageApplianceId = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("mode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mode = new CloudServicesNetworkStorageMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("sizeMiB"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sizeMiB = property.Value.GetInt64(); + continue; + } + if (property.NameEquals("storageApplianceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + storageApplianceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new CloudServicesNetworkStorageOptions(mode, sizeMiB, storageApplianceId, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerNetworkCloudContext.Default); + default: + throw new FormatException($"The model {nameof(CloudServicesNetworkStorageOptions)} does not support writing '{options.Format}' format."); + } + } + + CloudServicesNetworkStorageOptions IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeCloudServicesNetworkStorageOptions(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(CloudServicesNetworkStorageOptions)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageOptions.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageOptions.cs new file mode 100644 index 000000000000..b72f09bb5048 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageOptions.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + /// CloudServicesNetworkStorageOptions represents the storage options for the cloud services network. + public partial class CloudServicesNetworkStorageOptions + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public CloudServicesNetworkStorageOptions() + { + } + + /// Initializes a new instance of . + /// The indicator to enable shared storage on the cloud services network. If not specified, the allocation will align with the standard storage enablement. + /// The requested storage allocation for the volume in Mebibytes. + /// The resource ID of the storage appliance that hosts the storage. + /// Keeps track of any properties unknown to the library. + internal CloudServicesNetworkStorageOptions(CloudServicesNetworkStorageMode? mode, long? sizeMiB, ResourceIdentifier storageApplianceId, IDictionary serializedAdditionalRawData) + { + Mode = mode; + SizeMiB = sizeMiB; + StorageApplianceId = storageApplianceId; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The indicator to enable shared storage on the cloud services network. If not specified, the allocation will align with the standard storage enablement. + public CloudServicesNetworkStorageMode? Mode { get; set; } + /// The requested storage allocation for the volume in Mebibytes. + public long? SizeMiB { get; set; } + /// The resource ID of the storage appliance that hosts the storage. + public ResourceIdentifier StorageApplianceId { get; set; } + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageOptionsPatch.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageOptionsPatch.Serialization.cs new file mode 100644 index 000000000000..6a319fb21887 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageOptionsPatch.Serialization.cs @@ -0,0 +1,163 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + public partial class CloudServicesNetworkStorageOptionsPatch : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(CloudServicesNetworkStorageOptionsPatch)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Mode)) + { + writer.WritePropertyName("mode"u8); + writer.WriteStringValue(Mode.Value.ToString()); + } + if (Optional.IsDefined(SizeMiB)) + { + writer.WritePropertyName("sizeMiB"u8); + writer.WriteNumberValue(SizeMiB.Value); + } + if (Optional.IsDefined(StorageApplianceId)) + { + writer.WritePropertyName("storageApplianceId"u8); + writer.WriteStringValue(StorageApplianceId); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + CloudServicesNetworkStorageOptionsPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(CloudServicesNetworkStorageOptionsPatch)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeCloudServicesNetworkStorageOptionsPatch(document.RootElement, options); + } + + internal static CloudServicesNetworkStorageOptionsPatch DeserializeCloudServicesNetworkStorageOptionsPatch(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + CloudServicesNetworkStorageMode? mode = default; + long? sizeMiB = default; + ResourceIdentifier storageApplianceId = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("mode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mode = new CloudServicesNetworkStorageMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("sizeMiB"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sizeMiB = property.Value.GetInt64(); + continue; + } + if (property.NameEquals("storageApplianceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + storageApplianceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new CloudServicesNetworkStorageOptionsPatch(mode, sizeMiB, storageApplianceId, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerNetworkCloudContext.Default); + default: + throw new FormatException($"The model {nameof(CloudServicesNetworkStorageOptionsPatch)} does not support writing '{options.Format}' format."); + } + } + + CloudServicesNetworkStorageOptionsPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeCloudServicesNetworkStorageOptionsPatch(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(CloudServicesNetworkStorageOptionsPatch)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageOptionsPatch.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageOptionsPatch.cs new file mode 100644 index 000000000000..09853b3ce259 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageOptionsPatch.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + /// CloudServicesNetworkStorageOptionsPatch represents the patchable storage options for the cloud services network. + public partial class CloudServicesNetworkStorageOptionsPatch + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public CloudServicesNetworkStorageOptionsPatch() + { + } + + /// Initializes a new instance of . + /// The indicator to enable shared storage on the cloud services network. + /// The requested storage allocation for the volume in Mebibytes. + /// The resource ID of the storage appliance that hosts the storage. + /// Keeps track of any properties unknown to the library. + internal CloudServicesNetworkStorageOptionsPatch(CloudServicesNetworkStorageMode? mode, long? sizeMiB, ResourceIdentifier storageApplianceId, IDictionary serializedAdditionalRawData) + { + Mode = mode; + SizeMiB = sizeMiB; + StorageApplianceId = storageApplianceId; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The indicator to enable shared storage on the cloud services network. + public CloudServicesNetworkStorageMode? Mode { get; set; } + /// The requested storage allocation for the volume in Mebibytes. + public long? SizeMiB { get; set; } + /// The resource ID of the storage appliance that hosts the storage. + public ResourceIdentifier StorageApplianceId { get; set; } + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageStatus.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageStatus.Serialization.cs new file mode 100644 index 000000000000..9a342732d56b --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageStatus.Serialization.cs @@ -0,0 +1,195 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + public partial class CloudServicesNetworkStorageStatus : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(CloudServicesNetworkStorageStatus)} does not support writing '{format}' format."); + } + + if (options.Format != "W" && Optional.IsDefined(Mode)) + { + writer.WritePropertyName("mode"u8); + writer.WriteStringValue(Mode.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(SizeMiB)) + { + writer.WritePropertyName("sizeMiB"u8); + writer.WriteNumberValue(SizeMiB.Value); + } + if (options.Format != "W" && Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(StatusMessage)) + { + writer.WritePropertyName("statusMessage"u8); + writer.WriteStringValue(StatusMessage); + } + if (options.Format != "W" && Optional.IsDefined(VolumeId)) + { + writer.WritePropertyName("volumeId"u8); + writer.WriteStringValue(VolumeId); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + CloudServicesNetworkStorageStatus IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(CloudServicesNetworkStorageStatus)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeCloudServicesNetworkStorageStatus(document.RootElement, options); + } + + internal static CloudServicesNetworkStorageStatus DeserializeCloudServicesNetworkStorageStatus(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + CloudServicesNetworkStorageMode? mode = default; + long? sizeMiB = default; + CloudServicesNetworkStorageStatusStatus? status = default; + string statusMessage = default; + ResourceIdentifier volumeId = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("mode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mode = new CloudServicesNetworkStorageMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("sizeMiB"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sizeMiB = property.Value.GetInt64(); + continue; + } + if (property.NameEquals("status"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new CloudServicesNetworkStorageStatusStatus(property.Value.GetString()); + continue; + } + if (property.NameEquals("statusMessage"u8)) + { + statusMessage = property.Value.GetString(); + continue; + } + if (property.NameEquals("volumeId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + volumeId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new CloudServicesNetworkStorageStatus( + mode, + sizeMiB, + status, + statusMessage, + volumeId, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerNetworkCloudContext.Default); + default: + throw new FormatException($"The model {nameof(CloudServicesNetworkStorageStatus)} does not support writing '{options.Format}' format."); + } + } + + CloudServicesNetworkStorageStatus IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeCloudServicesNetworkStorageStatus(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(CloudServicesNetworkStorageStatus)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageStatus.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageStatus.cs new file mode 100644 index 000000000000..3deaca3ea4b6 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageStatus.cs @@ -0,0 +1,82 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + /// CloudServicesNetworkStorageStatus represents the storage status of the cloud services network. + public partial class CloudServicesNetworkStorageStatus + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal CloudServicesNetworkStorageStatus() + { + } + + /// Initializes a new instance of . + /// The indicator of if shared storage is enabled on the cloud services network. + /// The size in Mebibytes of the storage allocation. + /// The status of the storage allocation for the cloud services network. + /// The description for the status of the shared storage. + /// The resource ID of the volume created to host the shared storage. + /// Keeps track of any properties unknown to the library. + internal CloudServicesNetworkStorageStatus(CloudServicesNetworkStorageMode? mode, long? sizeMiB, CloudServicesNetworkStorageStatusStatus? status, string statusMessage, ResourceIdentifier volumeId, IDictionary serializedAdditionalRawData) + { + Mode = mode; + SizeMiB = sizeMiB; + Status = status; + StatusMessage = statusMessage; + VolumeId = volumeId; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The indicator of if shared storage is enabled on the cloud services network. + public CloudServicesNetworkStorageMode? Mode { get; } + /// The size in Mebibytes of the storage allocation. + public long? SizeMiB { get; } + /// The status of the storage allocation for the cloud services network. + public CloudServicesNetworkStorageStatusStatus? Status { get; } + /// The description for the status of the shared storage. + public string StatusMessage { get; } + /// The resource ID of the volume created to host the shared storage. + public ResourceIdentifier VolumeId { get; } + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageStatusStatus.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageStatusStatus.cs new file mode 100644 index 000000000000..094e20934e50 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkStorageStatusStatus.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + /// The status of the storage allocation for the cloud services network. + public readonly partial struct CloudServicesNetworkStorageStatusStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public CloudServicesNetworkStorageStatusStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AvailableValue = "Available"; + private const string ExpandingVolumeValue = "ExpandingVolume"; + private const string ExpansionFailedValue = "ExpansionFailed"; + + /// Available. + public static CloudServicesNetworkStorageStatusStatus Available { get; } = new CloudServicesNetworkStorageStatusStatus(AvailableValue); + /// ExpandingVolume. + public static CloudServicesNetworkStorageStatusStatus ExpandingVolume { get; } = new CloudServicesNetworkStorageStatusStatus(ExpandingVolumeValue); + /// ExpansionFailed. + public static CloudServicesNetworkStorageStatusStatus ExpansionFailed { get; } = new CloudServicesNetworkStorageStatusStatus(ExpansionFailedValue); + /// Determines if two values are the same. + public static bool operator ==(CloudServicesNetworkStorageStatusStatus left, CloudServicesNetworkStorageStatusStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(CloudServicesNetworkStorageStatusStatus left, CloudServicesNetworkStorageStatusStatus right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator CloudServicesNetworkStorageStatusStatus(string value) => new CloudServicesNetworkStorageStatusStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is CloudServicesNetworkStorageStatusStatus other && Equals(other); + /// + public bool Equals(CloudServicesNetworkStorageStatusStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CommandOutputOverride.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CommandOutputOverride.Serialization.cs new file mode 100644 index 000000000000..7e4684576d0b --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CommandOutputOverride.Serialization.cs @@ -0,0 +1,163 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + public partial class CommandOutputOverride : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(CommandOutputOverride)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(AssociatedIdentity)) + { + writer.WritePropertyName("associatedIdentity"u8); + writer.WriteObjectValue(AssociatedIdentity, options); + } + if (Optional.IsDefined(CommandOutputType)) + { + writer.WritePropertyName("commandOutputType"u8); + writer.WriteStringValue(CommandOutputType.Value.ToString()); + } + if (Optional.IsDefined(ContainerUri)) + { + writer.WritePropertyName("containerUrl"u8); + writer.WriteStringValue(ContainerUri.AbsoluteUri); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + CommandOutputOverride IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(CommandOutputOverride)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeCommandOutputOverride(document.RootElement, options); + } + + internal static CommandOutputOverride DeserializeCommandOutputOverride(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ManagedServiceIdentitySelector associatedIdentity = default; + CommandOutputType? commandOutputType = default; + Uri containerUrl = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("associatedIdentity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + associatedIdentity = ManagedServiceIdentitySelector.DeserializeManagedServiceIdentitySelector(property.Value, options); + continue; + } + if (property.NameEquals("commandOutputType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + commandOutputType = new CommandOutputType(property.Value.GetString()); + continue; + } + if (property.NameEquals("containerUrl"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + containerUrl = new Uri(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new CommandOutputOverride(associatedIdentity, commandOutputType, containerUrl, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerNetworkCloudContext.Default); + default: + throw new FormatException($"The model {nameof(CommandOutputOverride)} does not support writing '{options.Format}' format."); + } + } + + CommandOutputOverride IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeCommandOutputOverride(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(CommandOutputOverride)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CommandOutputOverride.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CommandOutputOverride.cs new file mode 100644 index 000000000000..c09394ea8dd2 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CommandOutputOverride.cs @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + /// CommandOutputOverride represents an overridden value for the command output settings. + public partial class CommandOutputOverride + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public CommandOutputOverride() + { + } + + /// Initializes a new instance of . + /// The selection of the managed identity to use with this storage account container. The identity type must be either system assigned or user assigned. + /// The type of command output for the override. + /// The URL of the storage account container that is to be used by the specified identities. + /// Keeps track of any properties unknown to the library. + internal CommandOutputOverride(ManagedServiceIdentitySelector associatedIdentity, CommandOutputType? commandOutputType, Uri containerUri, IDictionary serializedAdditionalRawData) + { + AssociatedIdentity = associatedIdentity; + CommandOutputType = commandOutputType; + ContainerUri = containerUri; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The selection of the managed identity to use with this storage account container. The identity type must be either system assigned or user assigned. + public ManagedServiceIdentitySelector AssociatedIdentity { get; set; } + /// The type of command output for the override. + public CommandOutputType? CommandOutputType { get; set; } + /// The URL of the storage account container that is to be used by the specified identities. + public Uri ContainerUri { get; set; } + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CommandOutputSettings.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CommandOutputSettings.Serialization.cs index d3110c3616fb..155e6d9e7727 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CommandOutputSettings.Serialization.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CommandOutputSettings.Serialization.cs @@ -44,6 +44,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("containerUrl"u8); writer.WriteStringValue(ContainerUri.AbsoluteUri); } + if (Optional.IsCollectionDefined(Overrides)) + { + writer.WritePropertyName("overrides"u8); + writer.WriteStartArray(); + foreach (var item in Overrides) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -83,6 +93,7 @@ internal static CommandOutputSettings DeserializeCommandOutputSettings(JsonEleme } ManagedServiceIdentitySelector associatedIdentity = default; Uri containerUrl = default; + IList overrides = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -105,13 +116,27 @@ internal static CommandOutputSettings DeserializeCommandOutputSettings(JsonEleme containerUrl = new Uri(property.Value.GetString()); continue; } + if (property.NameEquals("overrides"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(CommandOutputOverride.DeserializeCommandOutputOverride(item, options)); + } + overrides = array; + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new CommandOutputSettings(associatedIdentity, containerUrl, serializedAdditionalRawData); + return new CommandOutputSettings(associatedIdentity, containerUrl, overrides ?? new ChangeTrackingList(), serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CommandOutputSettings.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CommandOutputSettings.cs index 930e993dc926..45a59a3ed5cb 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CommandOutputSettings.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CommandOutputSettings.cs @@ -48,16 +48,19 @@ public partial class CommandOutputSettings /// Initializes a new instance of . public CommandOutputSettings() { + Overrides = new ChangeTrackingList(); } /// Initializes a new instance of . /// The selection of the managed identity to use with this storage account container. The identity type must be either system assigned or user assigned. /// The URL of the storage account container that is to be used by the specified identities. + /// The list of optional overrides allowing for association of storage containers and identities to specific types of command output. If a type is not overridden, the default identity and storage container will be utilized. /// Keeps track of any properties unknown to the library. - internal CommandOutputSettings(ManagedServiceIdentitySelector associatedIdentity, Uri containerUri, IDictionary serializedAdditionalRawData) + internal CommandOutputSettings(ManagedServiceIdentitySelector associatedIdentity, Uri containerUri, IList overrides, IDictionary serializedAdditionalRawData) { AssociatedIdentity = associatedIdentity; ContainerUri = containerUri; + Overrides = overrides; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -65,5 +68,7 @@ internal CommandOutputSettings(ManagedServiceIdentitySelector associatedIdentity public ManagedServiceIdentitySelector AssociatedIdentity { get; set; } /// The URL of the storage account container that is to be used by the specified identities. public Uri ContainerUri { get; set; } + /// The list of optional overrides allowing for association of storage containers and identities to specific types of command output. If a type is not overridden, the default identity and storage container will be utilized. + public IList Overrides { get; } } } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CommandOutputType.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CommandOutputType.cs new file mode 100644 index 000000000000..d5df67d9c187 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CommandOutputType.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + /// The type of command output for the override. + public readonly partial struct CommandOutputType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public CommandOutputType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string BareMetalMachineRunCommandValue = "BareMetalMachineRunCommand"; + private const string BareMetalMachineRunDataExtractsValue = "BareMetalMachineRunDataExtracts"; + private const string BareMetalMachineRunReadCommandsValue = "BareMetalMachineRunReadCommands"; + private const string StorageRunReadCommandsValue = "StorageRunReadCommands"; + + /// BareMetalMachineRunCommand. + public static CommandOutputType BareMetalMachineRunCommand { get; } = new CommandOutputType(BareMetalMachineRunCommandValue); + /// BareMetalMachineRunDataExtracts. + public static CommandOutputType BareMetalMachineRunDataExtracts { get; } = new CommandOutputType(BareMetalMachineRunDataExtractsValue); + /// BareMetalMachineRunReadCommands. + public static CommandOutputType BareMetalMachineRunReadCommands { get; } = new CommandOutputType(BareMetalMachineRunReadCommandsValue); + /// StorageRunReadCommands. + public static CommandOutputType StorageRunReadCommands { get; } = new CommandOutputType(StorageRunReadCommandsValue); + /// Determines if two values are the same. + public static bool operator ==(CommandOutputType left, CommandOutputType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(CommandOutputType left, CommandOutputType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator CommandOutputType(string value) => new CommandOutputType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is CommandOutputType other && Equals(other); + /// + public bool Equals(CommandOutputType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudCloudServicesNetworkPatch.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudCloudServicesNetworkPatch.Serialization.cs index dd9b972c59a6..5286f0a50ac7 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudCloudServicesNetworkPatch.Serialization.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudCloudServicesNetworkPatch.Serialization.cs @@ -62,6 +62,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("enableDefaultEgressEndpoints"u8); writer.WriteStringValue(EnableDefaultEgressEndpoints.Value.ToString()); } + if (Optional.IsDefined(StorageOptions)) + { + writer.WritePropertyName("storageOptions"u8); + writer.WriteObjectValue(StorageOptions, options); + } writer.WriteEndObject(); if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -103,6 +108,7 @@ internal static NetworkCloudCloudServicesNetworkPatch DeserializeNetworkCloudClo IDictionary tags = default; IList additionalEgressEndpoints = default; CloudServicesNetworkEnableDefaultEgressEndpoint? enableDefaultEgressEndpoints = default; + CloudServicesNetworkStorageOptionsPatch storageOptions = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -153,6 +159,15 @@ internal static NetworkCloudCloudServicesNetworkPatch DeserializeNetworkCloudClo enableDefaultEgressEndpoints = new CloudServicesNetworkEnableDefaultEgressEndpoint(property0.Value.GetString()); continue; } + if (property0.NameEquals("storageOptions"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + storageOptions = CloudServicesNetworkStorageOptionsPatch.DeserializeCloudServicesNetworkStorageOptionsPatch(property0.Value, options); + continue; + } } continue; } @@ -162,7 +177,7 @@ internal static NetworkCloudCloudServicesNetworkPatch DeserializeNetworkCloudClo } } serializedAdditionalRawData = rawDataDictionary; - return new NetworkCloudCloudServicesNetworkPatch(tags ?? new ChangeTrackingDictionary(), additionalEgressEndpoints ?? new ChangeTrackingList(), enableDefaultEgressEndpoints, serializedAdditionalRawData); + return new NetworkCloudCloudServicesNetworkPatch(tags ?? new ChangeTrackingDictionary(), additionalEgressEndpoints ?? new ChangeTrackingList(), enableDefaultEgressEndpoints, storageOptions, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudCloudServicesNetworkPatch.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudCloudServicesNetworkPatch.cs index 00666768e6d7..8c85dc5d4efc 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudCloudServicesNetworkPatch.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudCloudServicesNetworkPatch.cs @@ -56,12 +56,14 @@ public NetworkCloudCloudServicesNetworkPatch() /// The Azure resource tags that will replace the existing ones. /// The list of egress endpoints. This allows for connection from a Hybrid AKS cluster to the specified endpoint. /// The indicator of whether the platform default endpoints are allowed for the egress traffic. + /// The storage options for the cloud services network. /// Keeps track of any properties unknown to the library. - internal NetworkCloudCloudServicesNetworkPatch(IDictionary tags, IList additionalEgressEndpoints, CloudServicesNetworkEnableDefaultEgressEndpoint? enableDefaultEgressEndpoints, IDictionary serializedAdditionalRawData) + internal NetworkCloudCloudServicesNetworkPatch(IDictionary tags, IList additionalEgressEndpoints, CloudServicesNetworkEnableDefaultEgressEndpoint? enableDefaultEgressEndpoints, CloudServicesNetworkStorageOptionsPatch storageOptions, IDictionary serializedAdditionalRawData) { Tags = tags; AdditionalEgressEndpoints = additionalEgressEndpoints; EnableDefaultEgressEndpoints = enableDefaultEgressEndpoints; + StorageOptions = storageOptions; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -71,5 +73,7 @@ internal NetworkCloudCloudServicesNetworkPatch(IDictionary tags, public IList AdditionalEgressEndpoints { get; } /// The indicator of whether the platform default endpoints are allowed for the egress traffic. public CloudServicesNetworkEnableDefaultEgressEndpoint? EnableDefaultEgressEndpoints { get; set; } + /// The storage options for the cloud services network. + public CloudServicesNetworkStorageOptionsPatch StorageOptions { get; set; } } } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterPatch.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterPatch.cs index 9fef6c605f6c..0d194b4108d9 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterPatch.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterPatch.cs @@ -59,7 +59,7 @@ public NetworkCloudClusterPatch() /// The rack definition that is intended to reflect only a single rack in a single rack cluster, or an aggregator rack in a multi-rack cluster. /// The settings for the log analytics workspace used for output of logs from this cluster. /// The customer-provided location information to identify where the cluster resides. - /// The service principal to be used by the cluster during Arc Appliance installation. + /// Deprecated: Use managed identity to provide cluster privileges. The service principal to be used by the cluster during Arc Appliance installation. /// The settings for commands run in this cluster, such as bare metal machine run read only commands and data extracts. /// The validation threshold indicating the allowable failures of compute machines during environment validation and deployment. /// @@ -101,7 +101,7 @@ internal NetworkCloudClusterPatch(ManagedServiceIdentity identity, IDictionary The customer-provided location information to identify where the cluster resides. public string ClusterLocation { get; set; } - /// The service principal to be used by the cluster during Arc Appliance installation. + /// Deprecated: Use managed identity to provide cluster privileges. The service principal to be used by the cluster during Arc Appliance installation. public ServicePrincipalInformation ClusterServicePrincipal { get; set; } /// The settings for commands run in this cluster, such as bare metal machine run read only commands and data extracts. public CommandOutputSettings CommandOutputSettings { get; set; } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudVirtualMachinePatch.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudVirtualMachinePatch.Serialization.cs index 013b74d6dc4b..a9c5885ec892 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudVirtualMachinePatch.Serialization.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudVirtualMachinePatch.Serialization.cs @@ -8,8 +8,10 @@ using System; using System.ClientModel.Primitives; using System.Collections.Generic; +using System.Text; using System.Text.Json; using Azure.Core; +using Azure.ResourceManager.Models; namespace Azure.ResourceManager.NetworkCloud.Models { @@ -34,6 +36,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(NetworkCloudVirtualMachinePatch)} does not support writing '{format}' format."); } + if (Optional.IsDefined(Identity)) + { + writer.WritePropertyName("identity"u8); + ((IJsonModel)Identity).Write(writer, ModelSerializationExtensions.WireV3Options); + } if (Optional.IsCollectionDefined(Tags)) { writer.WritePropertyName("tags"u8); @@ -90,12 +97,22 @@ internal static NetworkCloudVirtualMachinePatch DeserializeNetworkCloudVirtualMa { return null; } + ManagedServiceIdentity identity = default; IDictionary tags = default; ImageRepositoryCredentials vmImageRepositoryCredentials = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("identity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + identity = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireV3Options, AzureResourceManagerNetworkCloudContext.Default); + continue; + } if (property.NameEquals("tags"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -137,7 +154,7 @@ internal static NetworkCloudVirtualMachinePatch DeserializeNetworkCloudVirtualMa } } serializedAdditionalRawData = rawDataDictionary; - return new NetworkCloudVirtualMachinePatch(tags ?? new ChangeTrackingDictionary(), vmImageRepositoryCredentials, serializedAdditionalRawData); + return new NetworkCloudVirtualMachinePatch(identity, tags ?? new ChangeTrackingDictionary(), vmImageRepositoryCredentials, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudVirtualMachinePatch.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudVirtualMachinePatch.cs index 77eb8ea2b892..a07bec3f5348 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudVirtualMachinePatch.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudVirtualMachinePatch.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using Azure.ResourceManager.Models; namespace Azure.ResourceManager.NetworkCloud.Models { @@ -52,16 +53,20 @@ public NetworkCloudVirtualMachinePatch() } /// Initializes a new instance of . + /// The identity for the resource. /// The Azure resource tags that will replace the existing ones. /// The credentials used to login to the image repository that has access to the specified image. /// Keeps track of any properties unknown to the library. - internal NetworkCloudVirtualMachinePatch(IDictionary tags, ImageRepositoryCredentials vmImageRepositoryCredentials, IDictionary serializedAdditionalRawData) + internal NetworkCloudVirtualMachinePatch(ManagedServiceIdentity identity, IDictionary tags, ImageRepositoryCredentials vmImageRepositoryCredentials, IDictionary serializedAdditionalRawData) { + Identity = identity; Tags = tags; VmImageRepositoryCredentials = vmImageRepositoryCredentials; _serializedAdditionalRawData = serializedAdditionalRawData; } + /// The identity for the resource. + public ManagedServiceIdentity Identity { get; set; } /// The Azure resource tags that will replace the existing ones. public IDictionary Tags { get; } /// The credentials used to login to the image repository that has access to the specified image. diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/RelayType.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/RelayType.cs new file mode 100644 index 000000000000..373f2ecd868e --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/RelayType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + /// The indicator of which relay type the machine should be assigned to use. Platform indicates the use of a platform-dedicated relay. Public indicates the use of the standard public relay for Arc services. + public readonly partial struct RelayType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public RelayType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string PlatformValue = "Platform"; + private const string PublicValue = "Public"; + + /// Platform. + public static RelayType Platform { get; } = new RelayType(PlatformValue); + /// Public. + public static RelayType Public { get; } = new RelayType(PublicValue); + /// Determines if two values are the same. + public static bool operator ==(RelayType left, RelayType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(RelayType left, RelayType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator RelayType(string value) => new RelayType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is RelayType other && Equals(other); + /// + public bool Equals(RelayType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/SecretArchiveReference.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/SecretArchiveReference.Serialization.cs index 943b678605cc..b71033c724a7 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/SecretArchiveReference.Serialization.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/SecretArchiveReference.Serialization.cs @@ -39,6 +39,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("keyVaultId"u8); writer.WriteStringValue(KeyVaultId); } + if (options.Format != "W" && Optional.IsDefined(KeyVaultUri)) + { + writer.WritePropertyName("keyVaultUri"u8); + writer.WriteStringValue(KeyVaultUri.AbsoluteUri); + } if (options.Format != "W" && Optional.IsDefined(SecretName)) { writer.WritePropertyName("secretName"u8); @@ -87,6 +92,7 @@ internal static SecretArchiveReference DeserializeSecretArchiveReference(JsonEle return null; } ResourceIdentifier keyVaultId = default; + Uri keyVaultUri = default; string secretName = default; string secretVersion = default; IDictionary serializedAdditionalRawData = default; @@ -102,6 +108,15 @@ internal static SecretArchiveReference DeserializeSecretArchiveReference(JsonEle keyVaultId = new ResourceIdentifier(property.Value.GetString()); continue; } + if (property.NameEquals("keyVaultUri"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + keyVaultUri = new Uri(property.Value.GetString()); + continue; + } if (property.NameEquals("secretName"u8)) { secretName = property.Value.GetString(); @@ -118,7 +133,7 @@ internal static SecretArchiveReference DeserializeSecretArchiveReference(JsonEle } } serializedAdditionalRawData = rawDataDictionary; - return new SecretArchiveReference(keyVaultId, secretName, secretVersion, serializedAdditionalRawData); + return new SecretArchiveReference(keyVaultId, keyVaultUri, secretName, secretVersion, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/SecretArchiveReference.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/SecretArchiveReference.cs index 1579d695ef40..f5a970857434 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/SecretArchiveReference.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/SecretArchiveReference.cs @@ -53,12 +53,14 @@ internal SecretArchiveReference() /// Initializes a new instance of . /// The resource ID of the key vault containing the secret. + /// The URI of the key containing the secret. /// The name of the secret in the key vault. /// The version of the secret in the key vault. /// Keeps track of any properties unknown to the library. - internal SecretArchiveReference(ResourceIdentifier keyVaultId, string secretName, string secretVersion, IDictionary serializedAdditionalRawData) + internal SecretArchiveReference(ResourceIdentifier keyVaultId, Uri keyVaultUri, string secretName, string secretVersion, IDictionary serializedAdditionalRawData) { KeyVaultId = keyVaultId; + KeyVaultUri = keyVaultUri; SecretName = secretName; SecretVersion = secretVersion; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -66,6 +68,8 @@ internal SecretArchiveReference(ResourceIdentifier keyVaultId, string secretName /// The resource ID of the key vault containing the secret. public ResourceIdentifier KeyVaultId { get; } + /// The URI of the key containing the secret. + public Uri KeyVaultUri { get; } /// The name of the secret in the key vault. public string SecretName { get; } /// The version of the secret in the key vault. diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StepState.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StepState.Serialization.cs new file mode 100644 index 000000000000..1369931456e0 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StepState.Serialization.cs @@ -0,0 +1,183 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + public partial class StepState : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(StepState)} does not support writing '{format}' format."); + } + + if (options.Format != "W" && Optional.IsDefined(EndTime)) + { + writer.WritePropertyName("endTime"u8); + writer.WriteStringValue(EndTime); + } + if (options.Format != "W" && Optional.IsDefined(Message)) + { + writer.WritePropertyName("message"u8); + writer.WriteStringValue(Message); + } + if (options.Format != "W" && Optional.IsDefined(StartTime)) + { + writer.WritePropertyName("startTime"u8); + writer.WriteStringValue(StartTime); + } + if (options.Format != "W" && Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(StepName)) + { + writer.WritePropertyName("stepName"u8); + writer.WriteStringValue(StepName); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + StepState IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(StepState)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeStepState(document.RootElement, options); + } + + internal static StepState DeserializeStepState(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string endTime = default; + string message = default; + string startTime = default; + StepStateStatus? status = default; + string stepName = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("endTime"u8)) + { + endTime = property.Value.GetString(); + continue; + } + if (property.NameEquals("message"u8)) + { + message = property.Value.GetString(); + continue; + } + if (property.NameEquals("startTime"u8)) + { + startTime = property.Value.GetString(); + continue; + } + if (property.NameEquals("status"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new StepStateStatus(property.Value.GetString()); + continue; + } + if (property.NameEquals("stepName"u8)) + { + stepName = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new StepState( + endTime, + message, + startTime, + status, + stepName, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerNetworkCloudContext.Default); + default: + throw new FormatException($"The model {nameof(StepState)} does not support writing '{options.Format}' format."); + } + } + + StepState IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeStepState(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(StepState)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StepState.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StepState.cs new file mode 100644 index 000000000000..713c2baebfc0 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StepState.cs @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + /// StepState represents the state of a step in an action. + public partial class StepState + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal StepState() + { + } + + /// Initializes a new instance of . + /// The timestamp for when processing of the step reached its terminal state, in ISO 8601 format. + /// The message providing additional context for the status value. May be empty, or contain diagnostic information in the case of a failure. + /// The timestamp for when processing of the step began, in ISO 8601 format. + /// The status of the step. A value of Completed or Failed indicates a terminal state for the step. + /// The name for the step. + /// Keeps track of any properties unknown to the library. + internal StepState(string endTime, string message, string startTime, StepStateStatus? status, string stepName, IDictionary serializedAdditionalRawData) + { + EndTime = endTime; + Message = message; + StartTime = startTime; + Status = status; + StepName = stepName; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The timestamp for when processing of the step reached its terminal state, in ISO 8601 format. + public string EndTime { get; } + /// The message providing additional context for the status value. May be empty, or contain diagnostic information in the case of a failure. + public string Message { get; } + /// The timestamp for when processing of the step began, in ISO 8601 format. + public string StartTime { get; } + /// The status of the step. A value of Completed or Failed indicates a terminal state for the step. + public StepStateStatus? Status { get; } + /// The name for the step. + public string StepName { get; } + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StepStateStatus.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StepStateStatus.cs new file mode 100644 index 000000000000..1d40d5bf2773 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StepStateStatus.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + /// The status of the step. A value of Completed or Failed indicates a terminal state for the step. + public readonly partial struct StepStateStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public StepStateStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string CompletedValue = "Completed"; + private const string InProgressValue = "InProgress"; + private const string FailedValue = "Failed"; + private const string NotStartedValue = "NotStarted"; + + /// Completed. + public static StepStateStatus Completed { get; } = new StepStateStatus(CompletedValue); + /// InProgress. + public static StepStateStatus InProgress { get; } = new StepStateStatus(InProgressValue); + /// Failed. + public static StepStateStatus Failed { get; } = new StepStateStatus(FailedValue); + /// NotStarted. + public static StepStateStatus NotStarted { get; } = new StepStateStatus(NotStartedValue); + /// Determines if two values are the same. + public static bool operator ==(StepStateStatus left, StepStateStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(StepStateStatus left, StepStateStatus right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator StepStateStatus(string value) => new StepStateStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is StepStateStatus other && Equals(other); + /// + public bool Equals(StepStateStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StorageApplianceCommandSpecification.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StorageApplianceCommandSpecification.Serialization.cs new file mode 100644 index 000000000000..e5ad70b25bb9 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StorageApplianceCommandSpecification.Serialization.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + public partial class StorageApplianceCommandSpecification : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(StorageApplianceCommandSpecification)} does not support writing '{format}' format."); + } + + if (Optional.IsCollectionDefined(Arguments)) + { + writer.WritePropertyName("arguments"u8); + writer.WriteStartArray(); + foreach (var item in Arguments) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + writer.WritePropertyName("command"u8); + writer.WriteStringValue(Command); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + StorageApplianceCommandSpecification IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(StorageApplianceCommandSpecification)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeStorageApplianceCommandSpecification(document.RootElement, options); + } + + internal static StorageApplianceCommandSpecification DeserializeStorageApplianceCommandSpecification(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList arguments = default; + string command = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("arguments"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + arguments = array; + continue; + } + if (property.NameEquals("command"u8)) + { + command = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new StorageApplianceCommandSpecification(arguments ?? new ChangeTrackingList(), command, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerNetworkCloudContext.Default); + default: + throw new FormatException($"The model {nameof(StorageApplianceCommandSpecification)} does not support writing '{options.Format}' format."); + } + } + + StorageApplianceCommandSpecification IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeStorageApplianceCommandSpecification(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(StorageApplianceCommandSpecification)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StorageApplianceCommandSpecification.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StorageApplianceCommandSpecification.cs new file mode 100644 index 000000000000..df5e9f8ad38e --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StorageApplianceCommandSpecification.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + /// StorageApplianceCommandSpecification represents the command and optional arguments to run. + public partial class StorageApplianceCommandSpecification + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The command to execute. + /// is null. + public StorageApplianceCommandSpecification(string command) + { + Argument.AssertNotNull(command, nameof(command)); + + Arguments = new ChangeTrackingList(); + Command = command; + } + + /// Initializes a new instance of . + /// The list of strings that will be passed to the script in order as separate arguments. + /// The command to execute. + /// Keeps track of any properties unknown to the library. + internal StorageApplianceCommandSpecification(IList arguments, string command, IDictionary serializedAdditionalRawData) + { + Arguments = arguments; + Command = command; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal StorageApplianceCommandSpecification() + { + } + + /// The list of strings that will be passed to the script in order as separate arguments. + public IList Arguments { get; } + /// The command to execute. + public string Command { get; } + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineRunDataExtractsContent.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StorageApplianceRunReadCommandsContent.Serialization.cs similarity index 70% rename from sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineRunDataExtractsContent.Serialization.cs rename to sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StorageApplianceRunReadCommandsContent.Serialization.cs index afe670f87973..bc851c3e48c4 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineRunDataExtractsContent.Serialization.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StorageApplianceRunReadCommandsContent.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.ResourceManager.NetworkCloud.Models { - public partial class BareMetalMachineRunDataExtractsContent : IUtf8JsonSerializable, IJsonModel + public partial class StorageApplianceRunReadCommandsContent : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter wri /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(BareMetalMachineRunDataExtractsContent)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(StorageApplianceRunReadCommandsContent)} does not support writing '{format}' format."); } writer.WritePropertyName("commands"u8); @@ -60,19 +60,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - BareMetalMachineRunDataExtractsContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + StorageApplianceRunReadCommandsContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(BareMetalMachineRunDataExtractsContent)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(StorageApplianceRunReadCommandsContent)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeBareMetalMachineRunDataExtractsContent(document.RootElement, options); + return DeserializeStorageApplianceRunReadCommandsContent(document.RootElement, options); } - internal static BareMetalMachineRunDataExtractsContent DeserializeBareMetalMachineRunDataExtractsContent(JsonElement element, ModelReaderWriterOptions options = null) + internal static StorageApplianceRunReadCommandsContent DeserializeStorageApplianceRunReadCommandsContent(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -80,7 +80,7 @@ internal static BareMetalMachineRunDataExtractsContent DeserializeBareMetalMachi { return null; } - IList commands = default; + IList commands = default; long limitTimeSeconds = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -88,10 +88,10 @@ internal static BareMetalMachineRunDataExtractsContent DeserializeBareMetalMachi { if (property.NameEquals("commands"u8)) { - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(BareMetalMachineCommandSpecification.DeserializeBareMetalMachineCommandSpecification(item, options)); + array.Add(StorageApplianceCommandSpecification.DeserializeStorageApplianceCommandSpecification(item, options)); } commands = array; continue; @@ -107,38 +107,38 @@ internal static BareMetalMachineRunDataExtractsContent DeserializeBareMetalMachi } } serializedAdditionalRawData = rawDataDictionary; - return new BareMetalMachineRunDataExtractsContent(commands, limitTimeSeconds, serializedAdditionalRawData); + return new StorageApplianceRunReadCommandsContent(commands, limitTimeSeconds, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureResourceManagerNetworkCloudContext.Default); default: - throw new FormatException($"The model {nameof(BareMetalMachineRunDataExtractsContent)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(StorageApplianceRunReadCommandsContent)} does not support writing '{options.Format}' format."); } } - BareMetalMachineRunDataExtractsContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + StorageApplianceRunReadCommandsContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeBareMetalMachineRunDataExtractsContent(document.RootElement, options); + return DeserializeStorageApplianceRunReadCommandsContent(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(BareMetalMachineRunDataExtractsContent)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(StorageApplianceRunReadCommandsContent)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StorageApplianceRunReadCommandsContent.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StorageApplianceRunReadCommandsContent.cs new file mode 100644 index 000000000000..5ebe79eb2886 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StorageApplianceRunReadCommandsContent.cs @@ -0,0 +1,82 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + /// StorageApplianceRunReadCommandsParameters represents the body of request containing list of read-only commands to run on the storage appliance. + public partial class StorageApplianceRunReadCommandsContent + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The list of read-only commands to be executed directly against the target storage appliance. + /// The maximum time the commands are allowed to run. + /// is null. + public StorageApplianceRunReadCommandsContent(IEnumerable commands, long limitTimeSeconds) + { + Argument.AssertNotNull(commands, nameof(commands)); + + Commands = commands.ToList(); + LimitTimeSeconds = limitTimeSeconds; + } + + /// Initializes a new instance of . + /// The list of read-only commands to be executed directly against the target storage appliance. + /// The maximum time the commands are allowed to run. + /// Keeps track of any properties unknown to the library. + internal StorageApplianceRunReadCommandsContent(IList commands, long limitTimeSeconds, IDictionary serializedAdditionalRawData) + { + Commands = commands; + LimitTimeSeconds = limitTimeSeconds; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal StorageApplianceRunReadCommandsContent() + { + } + + /// The list of read-only commands to be executed directly against the target storage appliance. + public IList Commands { get; } + /// The maximum time the commands are allowed to run. + public long LimitTimeSeconds { get; } + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/VirtualMachineAssignRelayContent.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/VirtualMachineAssignRelayContent.Serialization.cs new file mode 100644 index 000000000000..a6bd75a9dc58 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/VirtualMachineAssignRelayContent.Serialization.cs @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + public partial class VirtualMachineAssignRelayContent : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(VirtualMachineAssignRelayContent)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("machineId"u8); + writer.WriteStringValue(MachineId); + if (Optional.IsDefined(RelayType)) + { + writer.WritePropertyName("relayType"u8); + writer.WriteStringValue(RelayType.Value.ToString()); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + VirtualMachineAssignRelayContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(VirtualMachineAssignRelayContent)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeVirtualMachineAssignRelayContent(document.RootElement, options); + } + + internal static VirtualMachineAssignRelayContent DeserializeVirtualMachineAssignRelayContent(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceIdentifier machineId = default; + RelayType? relayType = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("machineId"u8)) + { + machineId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("relayType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + relayType = new RelayType(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new VirtualMachineAssignRelayContent(machineId, relayType, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerNetworkCloudContext.Default); + default: + throw new FormatException($"The model {nameof(VirtualMachineAssignRelayContent)} does not support writing '{options.Format}' format."); + } + } + + VirtualMachineAssignRelayContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeVirtualMachineAssignRelayContent(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(VirtualMachineAssignRelayContent)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/VirtualMachineAssignRelayContent.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/VirtualMachineAssignRelayContent.cs new file mode 100644 index 000000000000..26cd7d1273df --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/VirtualMachineAssignRelayContent.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + /// VirtualMachineAssignRelayParameters represents the body of the request to update the relay used for a Microsoft.HybridCompute machine associated with the virtual machine. + public partial class VirtualMachineAssignRelayContent + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The resourceId of the Microsoft.HybridCompute machine resource to assign relay usage. + /// is null. + public VirtualMachineAssignRelayContent(ResourceIdentifier machineId) + { + Argument.AssertNotNull(machineId, nameof(machineId)); + + MachineId = machineId; + } + + /// Initializes a new instance of . + /// The resourceId of the Microsoft.HybridCompute machine resource to assign relay usage. + /// The indicator of which relay type the machine should be assigned to use. Platform indicates the use of a platform-dedicated relay. Public indicates the use of the standard public relay for Arc services. + /// Keeps track of any properties unknown to the library. + internal VirtualMachineAssignRelayContent(ResourceIdentifier machineId, RelayType? relayType, IDictionary serializedAdditionalRawData) + { + MachineId = machineId; + RelayType = relayType; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal VirtualMachineAssignRelayContent() + { + } + + /// The resourceId of the Microsoft.HybridCompute machine resource to assign relay usage. + public ResourceIdentifier MachineId { get; } + /// The indicator of which relay type the machine should be assigned to use. Platform indicates the use of a platform-dedicated relay. Public indicates the use of the standard public relay for Arc services. + public RelayType? RelayType { get; set; } + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudAgentPoolCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudAgentPoolCollection.cs index ef6b10cb79fb..d4d73d721fa3 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudAgentPoolCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudAgentPoolCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string agentPoolName, /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -264,12 +264,14 @@ public virtual Response Get(string agentPoolName, /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudAgentPoolAgentPoolsRestClient.CreateListByKubernetesClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudAgentPoolAgentPoolsRestClient.CreateListByKubernetesClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudAgentPoolAgentPoolsRestClient.CreateListByKubernetesClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudAgentPoolAgentPoolsRestClient.CreateListByKubernetesClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudAgentPoolResource(Client, NetworkCloudAgentPoolData.DeserializeNetworkCloudAgentPoolData(e)), _networkCloudAgentPoolAgentPoolsClientDiagnostics, Pipeline, "NetworkCloudAgentPoolCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -286,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -294,12 +296,14 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudAgentPoolAgentPoolsRestClient.CreateListByKubernetesClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudAgentPoolAgentPoolsRestClient.CreateListByKubernetesClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudAgentPoolAgentPoolsRestClient.CreateListByKubernetesClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudAgentPoolAgentPoolsRestClient.CreateListByKubernetesClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudAgentPoolResource(Client, NetworkCloudAgentPoolData.DeserializeNetworkCloudAgentPoolData(e)), _networkCloudAgentPoolAgentPoolsClientDiagnostics, Pipeline, "NetworkCloudAgentPoolCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -316,7 +320,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -359,7 +363,7 @@ public virtual async Task> ExistsAsync(string agentPoolName, Canc /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -402,7 +406,7 @@ public virtual Response Exists(string agentPoolName, CancellationToken can /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -447,7 +451,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudAgentPoolResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudAgentPoolResource.cs index 02f10a9490a6..9b5a4ee3a612 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudAgentPoolResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudAgentPoolResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task> Delet /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -319,7 +319,7 @@ public virtual async Task> UpdateAsy /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -367,7 +367,7 @@ public virtual ArmOperation Update(WaitUntil wait /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -429,7 +429,7 @@ public virtual async Task> AddTagAsync(s /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -491,7 +491,7 @@ public virtual Response AddTag(string key, string /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -548,7 +548,7 @@ public virtual async Task> SetTagsAsync( /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -605,7 +605,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -665,7 +665,7 @@ public virtual async Task> RemoveTagAsyn /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineCollection.cs index b2b99e96dc2f..cd700dc14bed 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -110,7 +110,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -155,7 +155,7 @@ public virtual Response Get(string bareMet /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -163,12 +163,14 @@ public virtual Response Get(string bareMet /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudBareMetalMachineResource(Client, NetworkCloudBareMetalMachineData.DeserializeNetworkCloudBareMetalMachineData(e)), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, "NetworkCloudBareMetalMachineCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -185,7 +187,7 @@ public virtual AsyncPageable GetAllAsync(C /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -193,12 +195,14 @@ public virtual AsyncPageable GetAllAsync(C /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudBareMetalMachineResource(Client, NetworkCloudBareMetalMachineData.DeserializeNetworkCloudBareMetalMachineData(e)), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, "NetworkCloudBareMetalMachineCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -215,7 +219,7 @@ public virtual Pageable GetAll(Cancellatio /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -258,7 +262,7 @@ public virtual async Task> ExistsAsync(string bareMetalMachineNam /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -301,7 +305,7 @@ public virtual Response Exists(string bareMetalMachineName, CancellationTo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -346,7 +350,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineData.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineData.Serialization.cs index 60cb9a7e9b93..24c93b12fc69 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineData.Serialization.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineData.Serialization.cs @@ -48,6 +48,16 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WriteObjectValue(ExtendedLocation, options); writer.WritePropertyName("properties"u8); writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsCollectionDefined(ActionStates)) + { + writer.WritePropertyName("actionStates"u8); + writer.WriteStartArray(); + foreach (var item in ActionStates) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } if (options.Format != "W" && Optional.IsCollectionDefined(AssociatedResourceIds)) { writer.WritePropertyName("associatedResourceIds"u8); @@ -71,6 +81,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WriteStringValue(BmcMacAddress); writer.WritePropertyName("bootMacAddress"u8); writer.WriteStringValue(BootMacAddress); + if (options.Format != "W" && Optional.IsDefined(CaCertificate)) + { + writer.WritePropertyName("caCertificate"u8); + writer.WriteObjectValue(CaCertificate, options); + } if (options.Format != "W" && Optional.IsDefined(ClusterId)) { writer.WritePropertyName("clusterId"u8); @@ -239,11 +254,13 @@ internal static NetworkCloudBareMetalMachineData DeserializeNetworkCloudBareMeta string name = default; ResourceType type = default; SystemData systemData = default; + IReadOnlyList actionStates = default; IReadOnlyList associatedResourceIds = default; string bmcConnectionString = default; AdministrativeCredentials bmcCredentials = default; string bmcMacAddress = default; string bootMacAddress = default; + CertificateInfo caCertificate = default; ResourceIdentifier clusterId = default; BareMetalMachineCordonStatus? cordonStatus = default; BareMetalMachineDetailedStatus? detailedStatus = default; @@ -341,6 +358,20 @@ internal static NetworkCloudBareMetalMachineData DeserializeNetworkCloudBareMeta } foreach (var property0 in property.Value.EnumerateObject()) { + if (property0.NameEquals("actionStates"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(ActionState.DeserializeActionState(item, options)); + } + actionStates = array; + continue; + } if (property0.NameEquals("associatedResourceIds"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -382,6 +413,15 @@ internal static NetworkCloudBareMetalMachineData DeserializeNetworkCloudBareMeta bootMacAddress = property0.Value.GetString(); continue; } + if (property0.NameEquals("caCertificate"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + caCertificate = CertificateInfo.DeserializeCertificateInfo(property0.Value, options); + continue; + } if (property0.NameEquals("clusterId"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -611,11 +651,13 @@ internal static NetworkCloudBareMetalMachineData DeserializeNetworkCloudBareMeta location, etag, extendedLocation, + actionStates ?? new ChangeTrackingList(), associatedResourceIds ?? new ChangeTrackingList(), bmcConnectionString, bmcCredentials, bmcMacAddress, bootMacAddress, + caCertificate, clusterId, cordonStatus, detailedStatus, diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineData.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineData.cs index 969030fd2382..de7f25dded39 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineData.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineData.cs @@ -80,6 +80,7 @@ public NetworkCloudBareMetalMachineData(AzureLocation location, ExtendedLocation Argument.AssertNotNull(serialNumber, nameof(serialNumber)); ExtendedLocation = extendedLocation; + ActionStates = new ChangeTrackingList(); AssociatedResourceIds = new ChangeTrackingList(); BmcConnectionString = bmcConnectionString; BmcCredentials = bmcCredentials; @@ -106,11 +107,13 @@ public NetworkCloudBareMetalMachineData(AzureLocation location, ExtendedLocation /// The location. /// Resource ETag. /// The extended location of the cluster associated with the resource. + /// The current state of any in progress or completed actions. The most recent known instance of each action type is shown. /// The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network. /// The connection string for the baseboard management controller including IP address and protocol. /// The credentials of the baseboard management controller on this bare metal machine. /// The MAC address of the BMC device. /// The MAC address of a NIC connected to the PXE network. + /// The CA certificate information issued by the platform for connecting to TLS interfaces for the bare metal machine. Callers add this certificate to the trusted CA store on the Kubernetes control plane nodes to allow secure communication with the bare metal machine. /// The resource ID of the cluster this bare metal machine is associated with. /// The cordon status of the bare metal machine. /// The more detailed status of the bare metal machine. @@ -139,15 +142,17 @@ public NetworkCloudBareMetalMachineData(AzureLocation location, ExtendedLocation /// The discovered value of the machine's service tag. /// Field Deprecated. These fields will be empty/omitted. The list of the resource IDs for the VirtualMachines that are hosted on this bare metal machine. /// Keeps track of any properties unknown to the library. - internal NetworkCloudBareMetalMachineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, IReadOnlyList associatedResourceIds, string bmcConnectionString, AdministrativeCredentials bmcCredentials, string bmcMacAddress, string bootMacAddress, ResourceIdentifier clusterId, BareMetalMachineCordonStatus? cordonStatus, BareMetalMachineDetailedStatus? detailedStatus, string detailedStatusMessage, HardwareInventory hardwareInventory, HardwareValidationStatus hardwareValidationStatus, IReadOnlyList hybridAksClustersAssociatedIds, string kubernetesNodeName, string kubernetesVersion, string machineClusterVersion, string machineDetails, string machineName, IReadOnlyList machineRoles, string machineSkuId, IPAddress oamIPv4Address, string oamIPv6Address, string osImage, BareMetalMachinePowerState? powerState, BareMetalMachineProvisioningState? provisioningState, ResourceIdentifier rackId, long rackSlot, BareMetalMachineReadyState? readyState, RuntimeProtectionStatus runtimeProtectionStatus, IReadOnlyList secretRotationStatus, string serialNumber, string serviceTag, IReadOnlyList virtualMachinesAssociatedIds, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal NetworkCloudBareMetalMachineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, IReadOnlyList actionStates, IReadOnlyList associatedResourceIds, string bmcConnectionString, AdministrativeCredentials bmcCredentials, string bmcMacAddress, string bootMacAddress, CertificateInfo caCertificate, ResourceIdentifier clusterId, BareMetalMachineCordonStatus? cordonStatus, BareMetalMachineDetailedStatus? detailedStatus, string detailedStatusMessage, HardwareInventory hardwareInventory, HardwareValidationStatus hardwareValidationStatus, IReadOnlyList hybridAksClustersAssociatedIds, string kubernetesNodeName, string kubernetesVersion, string machineClusterVersion, string machineDetails, string machineName, IReadOnlyList machineRoles, string machineSkuId, IPAddress oamIPv4Address, string oamIPv6Address, string osImage, BareMetalMachinePowerState? powerState, BareMetalMachineProvisioningState? provisioningState, ResourceIdentifier rackId, long rackSlot, BareMetalMachineReadyState? readyState, RuntimeProtectionStatus runtimeProtectionStatus, IReadOnlyList secretRotationStatus, string serialNumber, string serviceTag, IReadOnlyList virtualMachinesAssociatedIds, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; ExtendedLocation = extendedLocation; + ActionStates = actionStates; AssociatedResourceIds = associatedResourceIds; BmcConnectionString = bmcConnectionString; BmcCredentials = bmcCredentials; BmcMacAddress = bmcMacAddress; BootMacAddress = bootMacAddress; + CaCertificate = caCertificate; ClusterId = clusterId; CordonStatus = cordonStatus; DetailedStatus = detailedStatus; @@ -187,6 +192,8 @@ internal NetworkCloudBareMetalMachineData() public ETag? ETag { get; } /// The extended location of the cluster associated with the resource. public ExtendedLocation ExtendedLocation { get; set; } + /// The current state of any in progress or completed actions. The most recent known instance of each action type is shown. + public IReadOnlyList ActionStates { get; } /// The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network. public IReadOnlyList AssociatedResourceIds { get; } /// The connection string for the baseboard management controller including IP address and protocol. @@ -197,6 +204,8 @@ internal NetworkCloudBareMetalMachineData() public string BmcMacAddress { get; set; } /// The MAC address of a NIC connected to the PXE network. public string BootMacAddress { get; set; } + /// The CA certificate information issued by the platform for connecting to TLS interfaces for the bare metal machine. Callers add this certificate to the trusted CA store on the Kubernetes control plane nodes to allow secure communication with the bare metal machine. + public CertificateInfo CaCertificate { get; } /// The resource ID of the cluster this bare metal machine is associated with. public ResourceIdentifier ClusterId { get; } /// The cordon status of the bare metal machine. diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineKeySetCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineKeySetCollection.cs index c8fc7df3e849..0ff0c9148970 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineKeySetCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineKeySetCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOr /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string b /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -264,12 +264,14 @@ public virtual Response Get(string b /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudBareMetalMachineKeySetBareMetalMachineKeySetsRestClient.CreateListByClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudBareMetalMachineKeySetBareMetalMachineKeySetsRestClient.CreateListByClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudBareMetalMachineKeySetBareMetalMachineKeySetsRestClient.CreateListByClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudBareMetalMachineKeySetBareMetalMachineKeySetsRestClient.CreateListByClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudBareMetalMachineKeySetResource(Client, NetworkCloudBareMetalMachineKeySetData.DeserializeNetworkCloudBareMetalMachineKeySetData(e)), _networkCloudBareMetalMachineKeySetBareMetalMachineKeySetsClientDiagnostics, Pipeline, "NetworkCloudBareMetalMachineKeySetCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -286,7 +288,7 @@ public virtual AsyncPageable GetAllA /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -294,12 +296,14 @@ public virtual AsyncPageable GetAllA /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudBareMetalMachineKeySetBareMetalMachineKeySetsRestClient.CreateListByClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudBareMetalMachineKeySetBareMetalMachineKeySetsRestClient.CreateListByClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudBareMetalMachineKeySetBareMetalMachineKeySetsRestClient.CreateListByClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudBareMetalMachineKeySetBareMetalMachineKeySetsRestClient.CreateListByClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudBareMetalMachineKeySetResource(Client, NetworkCloudBareMetalMachineKeySetData.DeserializeNetworkCloudBareMetalMachineKeySetData(e)), _networkCloudBareMetalMachineKeySetBareMetalMachineKeySetsClientDiagnostics, Pipeline, "NetworkCloudBareMetalMachineKeySetCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -316,7 +320,7 @@ public virtual Pageable GetAll(Cance /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -359,7 +363,7 @@ public virtual async Task> ExistsAsync(string bareMetalMachineKey /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -402,7 +406,7 @@ public virtual Response Exists(string bareMetalMachineKeySetName, Cancella /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -447,7 +451,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineKeySetData.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineKeySetData.Serialization.cs index b1f66507b7f9..9d37e11d2eba 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineKeySetData.Serialization.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineKeySetData.Serialization.cs @@ -86,6 +86,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WritePropertyName("privilegeLevel"u8); writer.WriteStringValue(PrivilegeLevel.ToString()); + if (Optional.IsDefined(PrivilegeLevelName)) + { + writer.WritePropertyName("privilegeLevelName"u8); + writer.WriteStringValue(PrivilegeLevelName); + } if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) { writer.WritePropertyName("provisioningState"u8); @@ -147,6 +152,7 @@ internal static NetworkCloudBareMetalMachineKeySetData DeserializeNetworkCloudBa DateTimeOffset? lastValidation = default; string osGroupName = default; BareMetalMachineKeySetPrivilegeLevel privilegeLevel = default; + string privilegeLevelName = default; BareMetalMachineKeySetProvisioningState? provisioningState = default; IList userList = default; IReadOnlyList userListStatus = default; @@ -280,6 +286,11 @@ internal static NetworkCloudBareMetalMachineKeySetData DeserializeNetworkCloudBa privilegeLevel = new BareMetalMachineKeySetPrivilegeLevel(property0.Value.GetString()); continue; } + if (property0.NameEquals("privilegeLevelName"u8)) + { + privilegeLevelName = property0.Value.GetString(); + continue; + } if (property0.NameEquals("provisioningState"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -339,6 +350,7 @@ internal static NetworkCloudBareMetalMachineKeySetData DeserializeNetworkCloudBa lastValidation, osGroupName, privilegeLevel, + privilegeLevelName, provisioningState, userList, userListStatus ?? new ChangeTrackingList(), diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineKeySetData.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineKeySetData.cs index 9e76d81012eb..53a07bb70f75 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineKeySetData.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineKeySetData.cs @@ -95,11 +95,12 @@ public NetworkCloudBareMetalMachineKeySetData(AzureLocation location, ExtendedLo /// The last time this key set was validated. /// The name of the group that users will be assigned to on the operating system of the machines. /// The access level allowed for the users in this key set. + /// The name of the access level to apply when the privilege level is set to Other. /// The provisioning state of the bare metal machine key set. /// The unique list of permitted users. /// The status evaluation of each user. /// Keeps track of any properties unknown to the library. - internal NetworkCloudBareMetalMachineKeySetData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, string azureGroupId, BareMetalMachineKeySetDetailedStatus? detailedStatus, string detailedStatusMessage, DateTimeOffset expireOn, IList jumpHostsAllowed, DateTimeOffset? lastValidatedOn, string osGroupName, BareMetalMachineKeySetPrivilegeLevel privilegeLevel, BareMetalMachineKeySetProvisioningState? provisioningState, IList userList, IReadOnlyList userListStatus, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal NetworkCloudBareMetalMachineKeySetData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, string azureGroupId, BareMetalMachineKeySetDetailedStatus? detailedStatus, string detailedStatusMessage, DateTimeOffset expireOn, IList jumpHostsAllowed, DateTimeOffset? lastValidatedOn, string osGroupName, BareMetalMachineKeySetPrivilegeLevel privilegeLevel, string privilegeLevelName, BareMetalMachineKeySetProvisioningState? provisioningState, IList userList, IReadOnlyList userListStatus, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; ExtendedLocation = extendedLocation; @@ -111,6 +112,7 @@ internal NetworkCloudBareMetalMachineKeySetData(ResourceIdentifier id, string na LastValidatedOn = lastValidatedOn; OSGroupName = osGroupName; PrivilegeLevel = privilegeLevel; + PrivilegeLevelName = privilegeLevelName; ProvisioningState = provisioningState; UserList = userList; UserListStatus = userListStatus; @@ -142,6 +144,8 @@ internal NetworkCloudBareMetalMachineKeySetData() public string OSGroupName { get; set; } /// The access level allowed for the users in this key set. public BareMetalMachineKeySetPrivilegeLevel PrivilegeLevel { get; set; } + /// The name of the access level to apply when the privilege level is set to Other. + public string PrivilegeLevelName { get; set; } /// The provisioning state of the bare metal machine key set. public BareMetalMachineKeySetProvisioningState? ProvisioningState { get; } /// The unique list of permitted users. diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineKeySetResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineKeySetResource.cs index d2e7787255d7..26236e14631e 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineKeySetResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineKeySetResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(Cancella /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task> Delet /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -319,7 +319,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -367,7 +367,7 @@ public virtual ArmOperation Update(W /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -429,7 +429,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -491,7 +491,7 @@ public virtual Response AddTag(strin /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -548,7 +548,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -605,7 +605,7 @@ public virtual Response SetTags(IDic /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -665,7 +665,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineResource.cs index 0a10fd1bbfc2..ec2b3b681f89 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationTo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -231,7 +231,7 @@ public virtual async Task> Up /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -279,7 +279,7 @@ public virtual ArmOperation Update(WaitUnt /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -322,7 +322,7 @@ public virtual async Task> Cordo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -365,7 +365,7 @@ public virtual ArmOperation Cordon(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -408,7 +408,7 @@ public virtual async Task> Power /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -451,7 +451,7 @@ public virtual ArmOperation PowerOff(WaitUnti /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -493,7 +493,7 @@ public virtual async Task> Reima /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -535,7 +535,7 @@ public virtual ArmOperation Reimage(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -578,7 +578,7 @@ public virtual async Task> Repla /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -621,7 +621,7 @@ public virtual ArmOperation Replace(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -663,7 +663,7 @@ public virtual async Task> Resta /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -705,7 +705,7 @@ public virtual ArmOperation Restart(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -751,7 +751,7 @@ public virtual async Task> RunCo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -797,7 +797,7 @@ public virtual ArmOperation RunCommand(WaitUn /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -806,19 +806,19 @@ public virtual ArmOperation RunCommand(WaitUn /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The request body. + /// The request body. /// The cancellation token to use. - /// is null. - public virtual async Task> RunDataExtractsAsync(WaitUntil waitUntil, BareMetalMachineRunDataExtractsContent content, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> RunDataExtractsAsync(WaitUntil waitUntil, BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsParameters, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(bareMetalMachineRunDataExtractsParameters, nameof(bareMetalMachineRunDataExtractsParameters)); using var scope = _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics.CreateScope("NetworkCloudBareMetalMachineResource.RunDataExtracts"); scope.Start(); try { - var response = await _networkCloudBareMetalMachineBareMetalMachinesRestClient.RunDataExtractsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRunDataExtractsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = await _networkCloudBareMetalMachineBareMetalMachinesRestClient.RunDataExtractsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, bareMetalMachineRunDataExtractsParameters, cancellationToken).ConfigureAwait(false); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRunDataExtractsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, bareMetalMachineRunDataExtractsParameters).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -843,7 +843,7 @@ public virtual async Task> RunDa /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -852,19 +852,111 @@ public virtual async Task> RunDa /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The request body. + /// The request body. /// The cancellation token to use. - /// is null. - public virtual ArmOperation RunDataExtracts(WaitUntil waitUntil, BareMetalMachineRunDataExtractsContent content, CancellationToken cancellationToken = default) + /// is null. + public virtual ArmOperation RunDataExtracts(WaitUntil waitUntil, BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsParameters, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(bareMetalMachineRunDataExtractsParameters, nameof(bareMetalMachineRunDataExtractsParameters)); using var scope = _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics.CreateScope("NetworkCloudBareMetalMachineResource.RunDataExtracts"); scope.Start(); try { - var response = _networkCloudBareMetalMachineBareMetalMachinesRestClient.RunDataExtracts(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRunDataExtractsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = _networkCloudBareMetalMachineBareMetalMachinesRestClient.RunDataExtracts(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, bareMetalMachineRunDataExtractsParameters, cancellationToken); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRunDataExtractsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, bareMetalMachineRunDataExtractsParameters).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Run one or more restricted data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/runDataExtractsRestricted + /// + /// + /// Operation Id + /// BareMetalMachines_RunDataExtractsRestricted + /// + /// + /// Default Api Version + /// 2025-07-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The request body. + /// The cancellation token to use. + /// is null. + public virtual async Task> RunDataExtractsRestrictedAsync(WaitUntil waitUntil, BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsRestrictedParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(bareMetalMachineRunDataExtractsRestrictedParameters, nameof(bareMetalMachineRunDataExtractsRestrictedParameters)); + + using var scope = _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics.CreateScope("NetworkCloudBareMetalMachineResource.RunDataExtractsRestricted"); + scope.Start(); + try + { + var response = await _networkCloudBareMetalMachineBareMetalMachinesRestClient.RunDataExtractsRestrictedAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, bareMetalMachineRunDataExtractsRestrictedParameters, cancellationToken).ConfigureAwait(false); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRunDataExtractsRestrictedRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, bareMetalMachineRunDataExtractsRestrictedParameters).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Run one or more restricted data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/runDataExtractsRestricted + /// + /// + /// Operation Id + /// BareMetalMachines_RunDataExtractsRestricted + /// + /// + /// Default Api Version + /// 2025-07-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The request body. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation RunDataExtractsRestricted(WaitUntil waitUntil, BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsRestrictedParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(bareMetalMachineRunDataExtractsRestrictedParameters, nameof(bareMetalMachineRunDataExtractsRestrictedParameters)); + + using var scope = _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics.CreateScope("NetworkCloudBareMetalMachineResource.RunDataExtractsRestricted"); + scope.Start(); + try + { + var response = _networkCloudBareMetalMachineBareMetalMachinesRestClient.RunDataExtractsRestricted(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, bareMetalMachineRunDataExtractsRestrictedParameters, cancellationToken); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRunDataExtractsRestrictedRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, bareMetalMachineRunDataExtractsRestrictedParameters).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -889,7 +981,7 @@ public virtual ArmOperation RunDataExtracts(W /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -935,7 +1027,7 @@ public virtual async Task> RunRe /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -981,7 +1073,7 @@ public virtual ArmOperation RunReadCommands(W /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1023,7 +1115,7 @@ public virtual async Task> Start /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1065,7 +1157,7 @@ public virtual ArmOperation Start(WaitUntil w /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1107,7 +1199,7 @@ public virtual async Task> Uncor /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1149,7 +1241,7 @@ public virtual ArmOperation Uncordon(WaitUnti /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1211,7 +1303,7 @@ public virtual async Task> AddTag /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1273,7 +1365,7 @@ public virtual Response AddTag(string key, /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1330,7 +1422,7 @@ public virtual async Task> SetTag /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1387,7 +1479,7 @@ public virtual Response SetTags(IDictionar /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1447,7 +1539,7 @@ public virtual async Task> Remove /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBmcKeySetCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBmcKeySetCollection.cs index eba2b7f33c50..9a6305b9adc6 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBmcKeySetCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBmcKeySetCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string bmcKeySetName, /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -264,12 +264,14 @@ public virtual Response Get(string bmcKeySetName, /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudBmcKeySetBmcKeySetsRestClient.CreateListByClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudBmcKeySetBmcKeySetsRestClient.CreateListByClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudBmcKeySetBmcKeySetsRestClient.CreateListByClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudBmcKeySetBmcKeySetsRestClient.CreateListByClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudBmcKeySetResource(Client, NetworkCloudBmcKeySetData.DeserializeNetworkCloudBmcKeySetData(e)), _networkCloudBmcKeySetBmcKeySetsClientDiagnostics, Pipeline, "NetworkCloudBmcKeySetCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -286,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -294,12 +296,14 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudBmcKeySetBmcKeySetsRestClient.CreateListByClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudBmcKeySetBmcKeySetsRestClient.CreateListByClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudBmcKeySetBmcKeySetsRestClient.CreateListByClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudBmcKeySetBmcKeySetsRestClient.CreateListByClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudBmcKeySetResource(Client, NetworkCloudBmcKeySetData.DeserializeNetworkCloudBmcKeySetData(e)), _networkCloudBmcKeySetBmcKeySetsClientDiagnostics, Pipeline, "NetworkCloudBmcKeySetCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -316,7 +320,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -359,7 +363,7 @@ public virtual async Task> ExistsAsync(string bmcKeySetName, Canc /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -402,7 +406,7 @@ public virtual Response Exists(string bmcKeySetName, CancellationToken can /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -447,7 +451,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBmcKeySetResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBmcKeySetResource.cs index ba9bdf46c4e8..1cd7a9016913 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBmcKeySetResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBmcKeySetResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task> Delet /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -319,7 +319,7 @@ public virtual async Task> UpdateAsy /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -367,7 +367,7 @@ public virtual ArmOperation Update(WaitUntil wait /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -429,7 +429,7 @@ public virtual async Task> AddTagAsync(s /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -491,7 +491,7 @@ public virtual Response AddTag(string key, string /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -548,7 +548,7 @@ public virtual async Task> SetTagsAsync( /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -605,7 +605,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -665,7 +665,7 @@ public virtual async Task> RemoveTagAsyn /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudCloudServicesNetworkCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudCloudServicesNetworkCollection.cs index 866314c9dbb9..518701221cb1 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudCloudServicesNetworkCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudCloudServicesNetworkCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUp /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string clo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -265,12 +265,14 @@ public virtual Response Get(string clo /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudCloudServicesNetworkCloudServicesNetworksRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudCloudServicesNetworkCloudServicesNetworksRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudCloudServicesNetworkCloudServicesNetworksRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudCloudServicesNetworkCloudServicesNetworksRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudCloudServicesNetworkResource(Client, NetworkCloudCloudServicesNetworkData.DeserializeNetworkCloudCloudServicesNetworkData(e)), _networkCloudCloudServicesNetworkCloudServicesNetworksClientDiagnostics, Pipeline, "NetworkCloudCloudServicesNetworkCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -287,7 +289,7 @@ public virtual AsyncPageable GetAllAsy /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -295,12 +297,14 @@ public virtual AsyncPageable GetAllAsy /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudCloudServicesNetworkCloudServicesNetworksRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudCloudServicesNetworkCloudServicesNetworksRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudCloudServicesNetworkCloudServicesNetworksRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudCloudServicesNetworkCloudServicesNetworksRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudCloudServicesNetworkResource(Client, NetworkCloudCloudServicesNetworkData.DeserializeNetworkCloudCloudServicesNetworkData(e)), _networkCloudCloudServicesNetworkCloudServicesNetworksClientDiagnostics, Pipeline, "NetworkCloudCloudServicesNetworkCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -317,7 +321,7 @@ public virtual Pageable GetAll(Cancell /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -360,7 +364,7 @@ public virtual async Task> ExistsAsync(string cloudServicesNetwor /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -403,7 +407,7 @@ public virtual Response Exists(string cloudServicesNetworkName, Cancellati /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -448,7 +452,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudCloudServicesNetworkData.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudCloudServicesNetworkData.Serialization.cs index 1734955003ad..a9af26c7615f 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudCloudServicesNetworkData.Serialization.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudCloudServicesNetworkData.Serialization.cs @@ -127,6 +127,16 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("provisioningState"u8); writer.WriteStringValue(ProvisioningState.Value.ToString()); } + if (Optional.IsDefined(StorageOptions)) + { + writer.WritePropertyName("storageOptions"u8); + writer.WriteObjectValue(StorageOptions, options); + } + if (options.Format != "W" && Optional.IsDefined(StorageStatus)) + { + writer.WritePropertyName("storageStatus"u8); + writer.WriteObjectValue(StorageStatus, options); + } if (options.Format != "W" && Optional.IsCollectionDefined(VirtualMachinesAssociatedIds)) { writer.WritePropertyName("virtualMachinesAssociatedIds"u8); @@ -183,6 +193,8 @@ internal static NetworkCloudCloudServicesNetworkData DeserializeNetworkCloudClou IReadOnlyList hybridAksClustersAssociatedIds = default; string interfaceName = default; CloudServicesNetworkProvisioningState? provisioningState = default; + CloudServicesNetworkStorageOptions storageOptions = default; + CloudServicesNetworkStorageStatus storageStatus = default; IReadOnlyList virtualMachinesAssociatedIds = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -370,6 +382,24 @@ internal static NetworkCloudCloudServicesNetworkData DeserializeNetworkCloudClou provisioningState = new CloudServicesNetworkProvisioningState(property0.Value.GetString()); continue; } + if (property0.NameEquals("storageOptions"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + storageOptions = CloudServicesNetworkStorageOptions.DeserializeCloudServicesNetworkStorageOptions(property0.Value, options); + continue; + } + if (property0.NameEquals("storageStatus"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + storageStatus = CloudServicesNetworkStorageStatus.DeserializeCloudServicesNetworkStorageStatus(property0.Value, options); + continue; + } if (property0.NameEquals("virtualMachinesAssociatedIds"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -419,6 +449,8 @@ internal static NetworkCloudCloudServicesNetworkData DeserializeNetworkCloudClou hybridAksClustersAssociatedIds ?? new ChangeTrackingList(), interfaceName, provisioningState, + storageOptions, + storageStatus, virtualMachinesAssociatedIds ?? new ChangeTrackingList(), serializedAdditionalRawData); } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudCloudServicesNetworkData.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudCloudServicesNetworkData.cs index 1745b1f02054..1f47b4aed21a 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudCloudServicesNetworkData.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudCloudServicesNetworkData.cs @@ -89,9 +89,11 @@ public NetworkCloudCloudServicesNetworkData(AzureLocation location, ExtendedLoca /// Field Deprecated. These fields will be empty/omitted. The list of Hybrid AKS cluster resource IDs that are associated with this cloud services network. /// The name of the interface that will be present in the virtual machine to represent this network. /// The provisioning state of the cloud services network. + /// The storage options for the cloud services network. + /// The storage status for the cloud services network. /// Field Deprecated. These fields will be empty/omitted. The list of virtual machine resource IDs, excluding any Hybrid AKS virtual machines, that are currently using this cloud services network. /// Keeps track of any properties unknown to the library. - internal NetworkCloudCloudServicesNetworkData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, IList additionalEgressEndpoints, IReadOnlyList associatedResourceIds, ResourceIdentifier clusterId, CloudServicesNetworkDetailedStatus? detailedStatus, string detailedStatusMessage, CloudServicesNetworkEnableDefaultEgressEndpoint? enableDefaultEgressEndpoints, IReadOnlyList enabledEgressEndpoints, IReadOnlyList hybridAksClustersAssociatedIds, string interfaceName, CloudServicesNetworkProvisioningState? provisioningState, IReadOnlyList virtualMachinesAssociatedIds, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal NetworkCloudCloudServicesNetworkData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, IList additionalEgressEndpoints, IReadOnlyList associatedResourceIds, ResourceIdentifier clusterId, CloudServicesNetworkDetailedStatus? detailedStatus, string detailedStatusMessage, CloudServicesNetworkEnableDefaultEgressEndpoint? enableDefaultEgressEndpoints, IReadOnlyList enabledEgressEndpoints, IReadOnlyList hybridAksClustersAssociatedIds, string interfaceName, CloudServicesNetworkProvisioningState? provisioningState, CloudServicesNetworkStorageOptions storageOptions, CloudServicesNetworkStorageStatus storageStatus, IReadOnlyList virtualMachinesAssociatedIds, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; ExtendedLocation = extendedLocation; @@ -105,6 +107,8 @@ internal NetworkCloudCloudServicesNetworkData(ResourceIdentifier id, string name HybridAksClustersAssociatedIds = hybridAksClustersAssociatedIds; InterfaceName = interfaceName; ProvisioningState = provisioningState; + StorageOptions = storageOptions; + StorageStatus = storageStatus; VirtualMachinesAssociatedIds = virtualMachinesAssociatedIds; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -138,6 +142,10 @@ internal NetworkCloudCloudServicesNetworkData() public string InterfaceName { get; } /// The provisioning state of the cloud services network. public CloudServicesNetworkProvisioningState? ProvisioningState { get; } + /// The storage options for the cloud services network. + public CloudServicesNetworkStorageOptions StorageOptions { get; set; } + /// The storage status for the cloud services network. + public CloudServicesNetworkStorageStatus StorageStatus { get; } /// Field Deprecated. These fields will be empty/omitted. The list of virtual machine resource IDs, excluding any Hybrid AKS virtual machines, that are currently using this cloud services network. public IReadOnlyList VirtualMachinesAssociatedIds { get; } } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudCloudServicesNetworkResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudCloudServicesNetworkResource.cs index 52be145b07a8..362183123a12 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudCloudServicesNetworkResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudCloudServicesNetworkResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(Cancellati /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task> Delet /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -319,7 +319,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -367,7 +367,7 @@ public virtual ArmOperation Update(Wai /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -429,7 +429,7 @@ public virtual async Task> Ad /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -491,7 +491,7 @@ public virtual Response AddTag(string /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -548,7 +548,7 @@ public virtual async Task> Se /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -605,7 +605,7 @@ public virtual Response SetTags(IDicti /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -665,7 +665,7 @@ public virtual async Task> Re /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterCollection.cs index cb8f25c05553..ff7ff0c575ba 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string clusterName, Can /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -265,12 +265,14 @@ public virtual Response Get(string clusterName, Can /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudClusterClustersRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudClusterClustersRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudClusterClustersRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudClusterClustersRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudClusterResource(Client, NetworkCloudClusterData.DeserializeNetworkCloudClusterData(e)), _networkCloudClusterClustersClientDiagnostics, Pipeline, "NetworkCloudClusterCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -287,7 +289,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -295,12 +297,14 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudClusterClustersRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudClusterClustersRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudClusterClustersRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudClusterClustersRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudClusterResource(Client, NetworkCloudClusterData.DeserializeNetworkCloudClusterData(e)), _networkCloudClusterClustersClientDiagnostics, Pipeline, "NetworkCloudClusterCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -317,7 +321,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -360,7 +364,7 @@ public virtual async Task> ExistsAsync(string clusterName, Cancel /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -403,7 +407,7 @@ public virtual Response Exists(string clusterName, CancellationToken cance /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -448,7 +452,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterData.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterData.Serialization.cs index 1fe3eefa7a4b..afffc6908458 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterData.Serialization.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterData.Serialization.cs @@ -52,6 +52,16 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsCollectionDefined(ActionStates)) + { + writer.WritePropertyName("actionStates"u8); + writer.WriteStartArray(); + foreach (var item in ActionStates) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } writer.WritePropertyName("aggregatorOrSingleRackDefinition"u8); writer.WriteObjectValue(AggregatorOrSingleRackDefinition, options); if (Optional.IsDefined(AnalyticsOutputSettings)) @@ -242,6 +252,7 @@ internal static NetworkCloudClusterData DeserializeNetworkCloudClusterData(JsonE string name = default; ResourceType type = default; SystemData systemData = default; + IReadOnlyList actionStates = default; NetworkCloudRackDefinition aggregatorOrSingleRackDefinition = default; AnalyticsOutputSettings analyticsOutputSettings = default; ResourceIdentifier analyticsWorkspaceId = default; @@ -351,6 +362,20 @@ internal static NetworkCloudClusterData DeserializeNetworkCloudClusterData(JsonE } foreach (var property0 in property.Value.EnumerateObject()) { + if (property0.NameEquals("actionStates"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(ActionState.DeserializeActionState(item, options)); + } + actionStates = array; + continue; + } if (property0.NameEquals("aggregatorOrSingleRackDefinition"u8)) { aggregatorOrSingleRackDefinition = NetworkCloudRackDefinition.DeserializeNetworkCloudRackDefinition(property0.Value, options); @@ -638,6 +663,7 @@ internal static NetworkCloudClusterData DeserializeNetworkCloudClusterData(JsonE etag, extendedLocation, identity, + actionStates ?? new ChangeTrackingList(), aggregatorOrSingleRackDefinition, analyticsOutputSettings, analyticsWorkspaceId, diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterData.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterData.cs index 28d8e5679399..980db0a6e5d5 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterData.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterData.cs @@ -67,6 +67,7 @@ public NetworkCloudClusterData(AzureLocation location, ExtendedLocation extended Argument.AssertNotNull(networkFabricId, nameof(networkFabricId)); ExtendedLocation = extendedLocation; + ActionStates = new ChangeTrackingList(); AggregatorOrSingleRackDefinition = aggregatorOrSingleRackDefinition; AvailableUpgradeVersions = new ChangeTrackingList(); ClusterType = clusterType; @@ -86,6 +87,7 @@ public NetworkCloudClusterData(AzureLocation location, ExtendedLocation extended /// Resource ETag. /// The extended location of the cluster manager associated with the cluster. /// The identity for the resource. + /// The current state of any in progress or completed actions. The most recent known instance of each action type is shown. /// The rack definition that is intended to reflect only a single rack in a single rack cluster, or an aggregator rack in a multi-rack cluster. /// The settings for the log analytics workspace used for output of logs from this cluster. /// Field Deprecated. The resource ID of the Log Analytics Workspace that will be used for storing relevant logs. @@ -96,7 +98,7 @@ public NetworkCloudClusterData(AzureLocation location, ExtendedLocation extended /// The customer-provided location information to identify where the cluster resides. /// The latest connectivity status between cluster manager and the cluster. /// The resource ID of the cluster manager that manages this cluster. This is set by the Cluster Manager when the cluster is created. - /// The service principal to be used by the cluster during Arc Appliance installation. + /// Deprecated: Use managed identity to provide cluster privileges. The service principal to be used by the cluster during Arc Appliance installation. /// The type of rack configuration for the cluster. /// The current runtime version of the cluster. /// The settings for commands run in this cluster, such as bare metal machine run read only commands and data extracts. @@ -120,11 +122,12 @@ public NetworkCloudClusterData(AzureLocation location, ExtendedLocation extended /// The settings for how security vulnerability scanning is applied to the cluster. /// The list of workload resource IDs that are hosted within this cluster. /// Keeps track of any properties unknown to the library. - internal NetworkCloudClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, ManagedServiceIdentity identity, NetworkCloudRackDefinition aggregatorOrSingleRackDefinition, AnalyticsOutputSettings analyticsOutputSettings, ResourceIdentifier analyticsWorkspaceId, IReadOnlyList availableUpgradeVersions, ClusterCapacity clusterCapacity, ClusterConnectionStatus? clusterConnectionStatus, ExtendedLocation clusterExtendedLocation, string clusterLocation, ClusterManagerConnectionStatus? clusterManagerConnectionStatus, ResourceIdentifier clusterManagerId, ServicePrincipalInformation clusterServicePrincipal, ClusterType clusterType, string clusterVersion, CommandOutputSettings commandOutputSettings, ValidationThreshold computeDeploymentThreshold, IList computeRackDefinitions, ClusterDetailedStatus? detailedStatus, string detailedStatusMessage, ExtendedLocation hybridAksExtendedLocation, ManagedResourceGroupConfiguration managedResourceGroupConfiguration, long? manualActionCount, ResourceIdentifier networkFabricId, ClusterProvisioningState? provisioningState, RuntimeProtectionConfiguration runtimeProtectionConfiguration, ClusterSecretArchive secretArchive, SecretArchiveSettings secretArchiveSettings, DateTimeOffset? supportExpireOn, ClusterUpdateStrategy updateStrategy, VulnerabilityScanningSettings vulnerabilityScanningSettings, IReadOnlyList workloadResourceIds, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal NetworkCloudClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, ManagedServiceIdentity identity, IReadOnlyList actionStates, NetworkCloudRackDefinition aggregatorOrSingleRackDefinition, AnalyticsOutputSettings analyticsOutputSettings, ResourceIdentifier analyticsWorkspaceId, IReadOnlyList availableUpgradeVersions, ClusterCapacity clusterCapacity, ClusterConnectionStatus? clusterConnectionStatus, ExtendedLocation clusterExtendedLocation, string clusterLocation, ClusterManagerConnectionStatus? clusterManagerConnectionStatus, ResourceIdentifier clusterManagerId, ServicePrincipalInformation clusterServicePrincipal, ClusterType clusterType, string clusterVersion, CommandOutputSettings commandOutputSettings, ValidationThreshold computeDeploymentThreshold, IList computeRackDefinitions, ClusterDetailedStatus? detailedStatus, string detailedStatusMessage, ExtendedLocation hybridAksExtendedLocation, ManagedResourceGroupConfiguration managedResourceGroupConfiguration, long? manualActionCount, ResourceIdentifier networkFabricId, ClusterProvisioningState? provisioningState, RuntimeProtectionConfiguration runtimeProtectionConfiguration, ClusterSecretArchive secretArchive, SecretArchiveSettings secretArchiveSettings, DateTimeOffset? supportExpireOn, ClusterUpdateStrategy updateStrategy, VulnerabilityScanningSettings vulnerabilityScanningSettings, IReadOnlyList workloadResourceIds, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; ExtendedLocation = extendedLocation; Identity = identity; + ActionStates = actionStates; AggregatorOrSingleRackDefinition = aggregatorOrSingleRackDefinition; AnalyticsOutputSettings = analyticsOutputSettings; AnalyticsWorkspaceId = analyticsWorkspaceId; @@ -169,6 +172,8 @@ internal NetworkCloudClusterData() public ExtendedLocation ExtendedLocation { get; set; } /// The identity for the resource. public ManagedServiceIdentity Identity { get; set; } + /// The current state of any in progress or completed actions. The most recent known instance of each action type is shown. + public IReadOnlyList ActionStates { get; } /// The rack definition that is intended to reflect only a single rack in a single rack cluster, or an aggregator rack in a multi-rack cluster. public NetworkCloudRackDefinition AggregatorOrSingleRackDefinition { get; set; } /// The settings for the log analytics workspace used for output of logs from this cluster. @@ -189,7 +194,7 @@ internal NetworkCloudClusterData() public ClusterManagerConnectionStatus? ClusterManagerConnectionStatus { get; } /// The resource ID of the cluster manager that manages this cluster. This is set by the Cluster Manager when the cluster is created. public ResourceIdentifier ClusterManagerId { get; } - /// The service principal to be used by the cluster during Arc Appliance installation. + /// Deprecated: Use managed identity to provide cluster privileges. The service principal to be used by the cluster during Arc Appliance installation. public ServicePrincipalInformation ClusterServicePrincipal { get; set; } /// The type of rack configuration for the cluster. public ClusterType ClusterType { get; set; } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterManagerCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterManagerCollection.cs index 3b11e2c977ed..acccbae9b221 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterManagerCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterManagerCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> Crea /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(W /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string clusterMa /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -265,12 +265,14 @@ public virtual Response Get(string clusterMa /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudClusterManagerClusterManagersRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudClusterManagerClusterManagersRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudClusterManagerClusterManagersRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudClusterManagerClusterManagersRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudClusterManagerResource(Client, NetworkCloudClusterManagerData.DeserializeNetworkCloudClusterManagerData(e)), _networkCloudClusterManagerClusterManagersClientDiagnostics, Pipeline, "NetworkCloudClusterManagerCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -287,7 +289,7 @@ public virtual AsyncPageable GetAllAsync(Can /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -295,12 +297,14 @@ public virtual AsyncPageable GetAllAsync(Can /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudClusterManagerClusterManagersRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudClusterManagerClusterManagersRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudClusterManagerClusterManagersRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudClusterManagerClusterManagersRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudClusterManagerResource(Client, NetworkCloudClusterManagerData.DeserializeNetworkCloudClusterManagerData(e)), _networkCloudClusterManagerClusterManagersClientDiagnostics, Pipeline, "NetworkCloudClusterManagerCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -317,7 +321,7 @@ public virtual Pageable GetAll(CancellationT /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -360,7 +364,7 @@ public virtual async Task> ExistsAsync(string clusterManagerName, /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -403,7 +407,7 @@ public virtual Response Exists(string clusterManagerName, CancellationToke /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -448,7 +452,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterManagerData.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterManagerData.cs index 17f0e09b80e9..1e7d80f059fa 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterManagerData.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterManagerData.cs @@ -74,7 +74,7 @@ public NetworkCloudClusterManagerData(AzureLocation location, ResourceIdentifier /// Resource ETag. /// The identity of the cluster manager. /// The resource ID of the Log Analytics workspace that is used for the logs collection. - /// Field deprecated, this value will no longer influence the cluster manager allocation process and will be removed in a future version. The Azure availability zones within the region that will be used to support the cluster manager resource. + /// The Azure availability zones within the region that will be used to support the cluster manager resource. /// The list of the cluster versions the manager supports. It is used as input in clusterVersion property of a cluster resource. /// The detailed status that provides additional information about the cluster manager. /// The descriptive message about the current detailed status. @@ -82,7 +82,7 @@ public NetworkCloudClusterManagerData(AzureLocation location, ResourceIdentifier /// The configuration of the managed resource group associated with the resource. /// The extended location (custom location) that represents the cluster manager's control plane location. This extended location is used when creating cluster and rack manifest resources. /// The provisioning state of the cluster manager. - /// Field deprecated, this value will no longer influence the cluster manager allocation process and will be removed in a future version. The size of the Azure virtual machines to use for hosting the cluster manager resource. + /// The size of the Azure virtual machines to use for hosting the cluster manager resource. /// Keeps track of any properties unknown to the library. internal NetworkCloudClusterManagerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ManagedServiceIdentity identity, ResourceIdentifier analyticsWorkspaceId, IList availabilityZones, IReadOnlyList clusterVersions, ClusterManagerDetailedStatus? detailedStatus, string detailedStatusMessage, ResourceIdentifier fabricControllerId, ManagedResourceGroupConfiguration managedResourceGroupConfiguration, ExtendedLocation managerExtendedLocation, ClusterManagerProvisioningState? provisioningState, string vmSize, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { @@ -112,7 +112,7 @@ internal NetworkCloudClusterManagerData() public ManagedServiceIdentity Identity { get; set; } /// The resource ID of the Log Analytics workspace that is used for the logs collection. public ResourceIdentifier AnalyticsWorkspaceId { get; set; } - /// Field deprecated, this value will no longer influence the cluster manager allocation process and will be removed in a future version. The Azure availability zones within the region that will be used to support the cluster manager resource. + /// The Azure availability zones within the region that will be used to support the cluster manager resource. public IList AvailabilityZones { get; } /// The list of the cluster versions the manager supports. It is used as input in clusterVersion property of a cluster resource. public IReadOnlyList ClusterVersions { get; } @@ -128,7 +128,7 @@ internal NetworkCloudClusterManagerData() public ExtendedLocation ManagerExtendedLocation { get; } /// The provisioning state of the cluster manager. public ClusterManagerProvisioningState? ProvisioningState { get; } - /// Field deprecated, this value will no longer influence the cluster manager allocation process and will be removed in a future version. The size of the Azure virtual machines to use for hosting the cluster manager resource. + /// The size of the Azure virtual machines to use for hosting the cluster manager resource. public string VmSize { get; set; } } } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterManagerResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterManagerResource.cs index b2ccb9721fda..6d3dc5c6a0cd 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterManagerResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterManagerResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToke /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task> Delet /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -315,7 +315,7 @@ public virtual async Task> UpdateAs /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -359,7 +359,7 @@ public virtual Response Update(NetworkCloudC /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -421,7 +421,7 @@ public virtual async Task> AddTagAs /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -483,7 +483,7 @@ public virtual Response AddTag(string key, s /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -540,7 +540,7 @@ public virtual async Task> SetTagsA /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -597,7 +597,7 @@ public virtual Response SetTags(IDictionary< /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -657,7 +657,7 @@ public virtual async Task> RemoveTa /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterMetricsConfigurationCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterMetricsConfigurationCollection.cs index 486dae8e5ef3..47e6933b274e 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterMetricsConfigurationCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterMetricsConfigurationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation Cre /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(str /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -264,12 +264,14 @@ public virtual Response Get(str /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudClusterMetricsConfigurationMetricsConfigurationsRestClient.CreateListByClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudClusterMetricsConfigurationMetricsConfigurationsRestClient.CreateListByClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudClusterMetricsConfigurationMetricsConfigurationsRestClient.CreateListByClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudClusterMetricsConfigurationMetricsConfigurationsRestClient.CreateListByClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudClusterMetricsConfigurationResource(Client, NetworkCloudClusterMetricsConfigurationData.DeserializeNetworkCloudClusterMetricsConfigurationData(e)), _networkCloudClusterMetricsConfigurationMetricsConfigurationsClientDiagnostics, Pipeline, "NetworkCloudClusterMetricsConfigurationCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -286,7 +288,7 @@ public virtual AsyncPageable Ge /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -294,12 +296,14 @@ public virtual AsyncPageable Ge /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudClusterMetricsConfigurationMetricsConfigurationsRestClient.CreateListByClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudClusterMetricsConfigurationMetricsConfigurationsRestClient.CreateListByClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudClusterMetricsConfigurationMetricsConfigurationsRestClient.CreateListByClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudClusterMetricsConfigurationMetricsConfigurationsRestClient.CreateListByClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudClusterMetricsConfigurationResource(Client, NetworkCloudClusterMetricsConfigurationData.DeserializeNetworkCloudClusterMetricsConfigurationData(e)), _networkCloudClusterMetricsConfigurationMetricsConfigurationsClientDiagnostics, Pipeline, "NetworkCloudClusterMetricsConfigurationCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -316,7 +320,7 @@ public virtual Pageable GetAll( /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -359,7 +363,7 @@ public virtual async Task> ExistsAsync(string metricsConfiguratio /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -402,7 +406,7 @@ public virtual Response Exists(string metricsConfigurationName, Cancellati /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -447,7 +451,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterMetricsConfigurationResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterMetricsConfigurationResource.cs index f8e2f2de3a84..e88ac4c05c37 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterMetricsConfigurationResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterMetricsConfigurationResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(Can /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task> Delet /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -319,7 +319,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -367,7 +367,7 @@ public virtual ArmOperation Upd /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -429,7 +429,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -491,7 +491,7 @@ public virtual Response AddTag( /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -548,7 +548,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -605,7 +605,7 @@ public virtual Response SetTags /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -665,7 +665,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterResource.cs index dacc1e63cb4d..cfa216b6e6e2 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterResource.cs @@ -110,7 +110,7 @@ public virtual NetworkCloudBareMetalMachineKeySetCollection GetNetworkCloudBareM /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -179,7 +179,7 @@ public virtual NetworkCloudBmcKeySetCollection GetNetworkCloudBmcKeySets() /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetNetworkClo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -248,7 +248,7 @@ public virtual NetworkCloudClusterMetricsConfigurationCollection GetNetworkCloud /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -279,7 +279,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Response GetNetw /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -350,7 +350,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -390,7 +390,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -434,7 +434,7 @@ public virtual async Task> Delet /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -478,7 +478,7 @@ public virtual ArmOperation Delete(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -526,7 +526,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -574,7 +574,7 @@ public virtual ArmOperation Update(WaitUntil waitUn /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -620,7 +620,7 @@ public virtual async Task> Conti /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -666,7 +666,7 @@ public virtual ArmOperation ContinueUpdateVer /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -709,7 +709,7 @@ public virtual async Task> Deplo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -752,7 +752,7 @@ public virtual ArmOperation Deploy(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -795,7 +795,7 @@ public virtual async Task> ScanR /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -838,7 +838,7 @@ public virtual ArmOperation ScanRuntime(WaitU /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -884,7 +884,7 @@ public virtual async Task> Updat /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -930,7 +930,7 @@ public virtual ArmOperation UpdateVersion(Wai /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -992,7 +992,7 @@ public virtual async Task> AddTagAsync(str /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1054,7 +1054,7 @@ public virtual Response AddTag(string key, string v /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1111,7 +1111,7 @@ public virtual async Task> SetTagsAsync(ID /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1168,7 +1168,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1228,7 +1228,7 @@ public virtual async Task> RemoveTagAsync( /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudKubernetesClusterCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudKubernetesClusterCollection.cs index 50f383336f84..5f354249c774 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudKubernetesClusterCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudKubernetesClusterCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> C /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdat /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string kubern /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -265,12 +265,14 @@ public virtual Response Get(string kubern /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudKubernetesClusterKubernetesClustersRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudKubernetesClusterKubernetesClustersRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudKubernetesClusterKubernetesClustersRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudKubernetesClusterKubernetesClustersRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudKubernetesClusterResource(Client, NetworkCloudKubernetesClusterData.DeserializeNetworkCloudKubernetesClusterData(e)), _networkCloudKubernetesClusterKubernetesClustersClientDiagnostics, Pipeline, "NetworkCloudKubernetesClusterCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -287,7 +289,7 @@ public virtual AsyncPageable GetAllAsync( /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -295,12 +297,14 @@ public virtual AsyncPageable GetAllAsync( /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudKubernetesClusterKubernetesClustersRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudKubernetesClusterKubernetesClustersRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudKubernetesClusterKubernetesClustersRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudKubernetesClusterKubernetesClustersRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudKubernetesClusterResource(Client, NetworkCloudKubernetesClusterData.DeserializeNetworkCloudKubernetesClusterData(e)), _networkCloudKubernetesClusterKubernetesClustersClientDiagnostics, Pipeline, "NetworkCloudKubernetesClusterCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -317,7 +321,7 @@ public virtual Pageable GetAll(Cancellati /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -360,7 +364,7 @@ public virtual async Task> ExistsAsync(string kubernetesClusterNa /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -403,7 +407,7 @@ public virtual Response Exists(string kubernetesClusterName, CancellationT /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -448,7 +452,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudKubernetesClusterFeatureCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudKubernetesClusterFeatureCollection.cs index 633814c7bfe9..b46e77c2b20e 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudKubernetesClusterFeatureCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudKubernetesClusterFeatureCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation Create /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -264,12 +264,14 @@ public virtual Response Get(string /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudKubernetesClusterFeatureKubernetesClusterFeaturesRestClient.CreateListByKubernetesClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudKubernetesClusterFeatureKubernetesClusterFeaturesRestClient.CreateListByKubernetesClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudKubernetesClusterFeatureKubernetesClusterFeaturesRestClient.CreateListByKubernetesClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudKubernetesClusterFeatureKubernetesClusterFeaturesRestClient.CreateListByKubernetesClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudKubernetesClusterFeatureResource(Client, NetworkCloudKubernetesClusterFeatureData.DeserializeNetworkCloudKubernetesClusterFeatureData(e)), _networkCloudKubernetesClusterFeatureKubernetesClusterFeaturesClientDiagnostics, Pipeline, "NetworkCloudKubernetesClusterFeatureCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -286,7 +288,7 @@ public virtual AsyncPageable GetAl /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -294,12 +296,14 @@ public virtual AsyncPageable GetAl /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudKubernetesClusterFeatureKubernetesClusterFeaturesRestClient.CreateListByKubernetesClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudKubernetesClusterFeatureKubernetesClusterFeaturesRestClient.CreateListByKubernetesClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudKubernetesClusterFeatureKubernetesClusterFeaturesRestClient.CreateListByKubernetesClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudKubernetesClusterFeatureKubernetesClusterFeaturesRestClient.CreateListByKubernetesClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudKubernetesClusterFeatureResource(Client, NetworkCloudKubernetesClusterFeatureData.DeserializeNetworkCloudKubernetesClusterFeatureData(e)), _networkCloudKubernetesClusterFeatureKubernetesClusterFeaturesClientDiagnostics, Pipeline, "NetworkCloudKubernetesClusterFeatureCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -316,7 +320,7 @@ public virtual Pageable GetAll(Can /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -359,7 +363,7 @@ public virtual async Task> ExistsAsync(string featureName, Cancel /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -402,7 +406,7 @@ public virtual Response Exists(string featureName, CancellationToken cance /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -447,7 +451,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudKubernetesClusterFeatureResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudKubernetesClusterFeatureResource.cs index 72125b08c686..63b4874d79e2 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudKubernetesClusterFeatureResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudKubernetesClusterFeatureResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(Cancel /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task> Delet /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -319,7 +319,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -367,7 +367,7 @@ public virtual ArmOperation Update /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -429,7 +429,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -491,7 +491,7 @@ public virtual Response AddTag(str /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -548,7 +548,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -605,7 +605,7 @@ public virtual Response SetTags(ID /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -665,7 +665,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudKubernetesClusterResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudKubernetesClusterResource.cs index 68f3b95a09fb..4c186aae48c6 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudKubernetesClusterResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudKubernetesClusterResource.cs @@ -110,7 +110,7 @@ public virtual NetworkCloudAgentPoolCollection GetNetworkCloudAgentPools() /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetNetworkClo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -179,7 +179,7 @@ public virtual NetworkCloudKubernetesClusterFeatureCollection GetNetworkCloudKub /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -241,7 +241,7 @@ public virtual Response GetNetwork /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -281,7 +281,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -321,7 +321,7 @@ public virtual Response Get(CancellationT /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -365,7 +365,7 @@ public virtual async Task> Delet /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -409,7 +409,7 @@ public virtual ArmOperation Delete(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -457,7 +457,7 @@ public virtual async Task> U /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -505,7 +505,7 @@ public virtual ArmOperation Update(WaitUn /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -551,7 +551,7 @@ public virtual async Task> Resta /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -597,7 +597,7 @@ public virtual ArmOperation RestartNode(WaitU /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -659,7 +659,7 @@ public virtual async Task> AddTa /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -721,7 +721,7 @@ public virtual Response AddTag(string key /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -778,7 +778,7 @@ public virtual async Task> SetTa /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -835,7 +835,7 @@ public virtual Response SetTags(IDictiona /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -895,7 +895,7 @@ public virtual async Task> Remov /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudL2NetworkCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudL2NetworkCollection.cs index f607ebee54d3..7e993cd0d8ae 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudL2NetworkCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudL2NetworkCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string l2NetworkName, /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -265,12 +265,14 @@ public virtual Response Get(string l2NetworkName, /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudL2NetworkL2NetworksRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudL2NetworkL2NetworksRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudL2NetworkL2NetworksRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudL2NetworkL2NetworksRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudL2NetworkResource(Client, NetworkCloudL2NetworkData.DeserializeNetworkCloudL2NetworkData(e)), _networkCloudL2NetworkL2NetworksClientDiagnostics, Pipeline, "NetworkCloudL2NetworkCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -287,7 +289,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -295,12 +297,14 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudL2NetworkL2NetworksRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudL2NetworkL2NetworksRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudL2NetworkL2NetworksRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudL2NetworkL2NetworksRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudL2NetworkResource(Client, NetworkCloudL2NetworkData.DeserializeNetworkCloudL2NetworkData(e)), _networkCloudL2NetworkL2NetworksClientDiagnostics, Pipeline, "NetworkCloudL2NetworkCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -317,7 +321,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -360,7 +364,7 @@ public virtual async Task> ExistsAsync(string l2NetworkName, Canc /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -403,7 +407,7 @@ public virtual Response Exists(string l2NetworkName, CancellationToken can /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -448,7 +452,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudL2NetworkResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudL2NetworkResource.cs index cd4f857cf228..dd6a97e2d3f0 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudL2NetworkResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudL2NetworkResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task> Delet /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -315,7 +315,7 @@ public virtual async Task> UpdateAsync(N /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -359,7 +359,7 @@ public virtual Response Update(NetworkCloudL2Netw /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -421,7 +421,7 @@ public virtual async Task> AddTagAsync(s /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -483,7 +483,7 @@ public virtual Response AddTag(string key, string /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -540,7 +540,7 @@ public virtual async Task> SetTagsAsync( /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -597,7 +597,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -657,7 +657,7 @@ public virtual async Task> RemoveTagAsyn /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudL3NetworkCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudL3NetworkCollection.cs index 73e944a2464d..af4089affd14 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudL3NetworkCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudL3NetworkCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string l3NetworkName, /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -265,12 +265,14 @@ public virtual Response Get(string l3NetworkName, /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudL3NetworkL3NetworksRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudL3NetworkL3NetworksRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudL3NetworkL3NetworksRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudL3NetworkL3NetworksRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudL3NetworkResource(Client, NetworkCloudL3NetworkData.DeserializeNetworkCloudL3NetworkData(e)), _networkCloudL3NetworkL3NetworksClientDiagnostics, Pipeline, "NetworkCloudL3NetworkCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -287,7 +289,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -295,12 +297,14 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudL3NetworkL3NetworksRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudL3NetworkL3NetworksRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudL3NetworkL3NetworksRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudL3NetworkL3NetworksRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudL3NetworkResource(Client, NetworkCloudL3NetworkData.DeserializeNetworkCloudL3NetworkData(e)), _networkCloudL3NetworkL3NetworksClientDiagnostics, Pipeline, "NetworkCloudL3NetworkCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -317,7 +321,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -360,7 +364,7 @@ public virtual async Task> ExistsAsync(string l3NetworkName, Canc /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -403,7 +407,7 @@ public virtual Response Exists(string l3NetworkName, CancellationToken can /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -448,7 +452,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudL3NetworkResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudL3NetworkResource.cs index 1c98c56e1fe4..298d3dbd2f23 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudL3NetworkResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudL3NetworkResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task> Delet /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -315,7 +315,7 @@ public virtual async Task> UpdateAsync(N /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -359,7 +359,7 @@ public virtual Response Update(NetworkCloudL3Netw /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -421,7 +421,7 @@ public virtual async Task> AddTagAsync(s /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -483,7 +483,7 @@ public virtual Response AddTag(string key, string /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -540,7 +540,7 @@ public virtual async Task> SetTagsAsync( /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -597,7 +597,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -657,7 +657,7 @@ public virtual async Task> RemoveTagAsyn /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudRackCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudRackCollection.cs index 866fbd16af19..a031f9244575 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudRackCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudRackCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -110,7 +110,7 @@ public virtual async Task> GetAsync(string ra /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -155,7 +155,7 @@ public virtual Response Get(string rackName, Cancellat /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -163,12 +163,14 @@ public virtual Response Get(string rackName, Cancellat /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudRackRacksRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudRackRacksRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudRackRacksRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudRackRacksRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudRackResource(Client, NetworkCloudRackData.DeserializeNetworkCloudRackData(e)), _networkCloudRackRacksClientDiagnostics, Pipeline, "NetworkCloudRackCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -185,7 +187,7 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -193,12 +195,14 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudRackRacksRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudRackRacksRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudRackRacksRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudRackRacksRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudRackResource(Client, NetworkCloudRackData.DeserializeNetworkCloudRackData(e)), _networkCloudRackRacksClientDiagnostics, Pipeline, "NetworkCloudRackCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -215,7 +219,7 @@ public virtual Pageable GetAll(CancellationToken cance /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -258,7 +262,7 @@ public virtual async Task> ExistsAsync(string rackName, Cancellat /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -301,7 +305,7 @@ public virtual Response Exists(string rackName, CancellationToken cancella /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -346,7 +350,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudRackResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudRackResource.cs index fb3649f764f0..1cf7986f5062 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudRackResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudRackResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancella /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -231,7 +231,7 @@ public virtual async Task> UpdateAsync(Wa /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -279,7 +279,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -341,7 +341,7 @@ public virtual async Task> AddTagAsync(string /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response AddTag(string key, string valu /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -460,7 +460,7 @@ public virtual async Task> SetTagsAsync(IDict /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -517,7 +517,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -577,7 +577,7 @@ public virtual async Task> RemoveTagAsync(str /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudRackSkuCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudRackSkuCollection.cs index c328ac0d50f9..13b45ce2dd8e 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudRackSkuCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudRackSkuCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -110,7 +110,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -155,7 +155,7 @@ public virtual Response Get(string rackSkuName, Can /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -185,7 +185,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -215,7 +215,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -258,7 +258,7 @@ public virtual async Task> ExistsAsync(string rackSkuName, Cancel /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -301,7 +301,7 @@ public virtual Response Exists(string rackSkuName, CancellationToken cance /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -346,7 +346,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudRackSkuResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudRackSkuResource.cs index 10bb5638e865..13ca030226c5 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudRackSkuResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudRackSkuResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudStorageApplianceCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudStorageApplianceCollection.cs index 659a2eae82b8..9d6e5dfc6be3 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudStorageApplianceCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudStorageApplianceCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -110,7 +110,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -155,7 +155,7 @@ public virtual Response Get(string storage /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -163,12 +163,14 @@ public virtual Response Get(string storage /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudStorageApplianceStorageAppliancesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudStorageApplianceStorageAppliancesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudStorageApplianceStorageAppliancesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudStorageApplianceStorageAppliancesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudStorageApplianceResource(Client, NetworkCloudStorageApplianceData.DeserializeNetworkCloudStorageApplianceData(e)), _networkCloudStorageApplianceStorageAppliancesClientDiagnostics, Pipeline, "NetworkCloudStorageApplianceCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -185,7 +187,7 @@ public virtual AsyncPageable GetAllAsync(C /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -193,12 +195,14 @@ public virtual AsyncPageable GetAllAsync(C /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudStorageApplianceStorageAppliancesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudStorageApplianceStorageAppliancesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudStorageApplianceStorageAppliancesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudStorageApplianceStorageAppliancesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudStorageApplianceResource(Client, NetworkCloudStorageApplianceData.DeserializeNetworkCloudStorageApplianceData(e)), _networkCloudStorageApplianceStorageAppliancesClientDiagnostics, Pipeline, "NetworkCloudStorageApplianceCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -215,7 +219,7 @@ public virtual Pageable GetAll(Cancellatio /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -258,7 +262,7 @@ public virtual async Task> ExistsAsync(string storageApplianceNam /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -301,7 +305,7 @@ public virtual Response Exists(string storageApplianceName, CancellationTo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -346,7 +350,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudStorageApplianceData.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudStorageApplianceData.Serialization.cs index b4d5cebd79e8..aa6a7e94e63b 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudStorageApplianceData.Serialization.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudStorageApplianceData.Serialization.cs @@ -50,6 +50,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WriteStartObject(); writer.WritePropertyName("administratorCredentials"u8); writer.WriteObjectValue(AdministratorCredentials, options); + if (options.Format != "W" && Optional.IsDefined(CaCertificate)) + { + writer.WritePropertyName("caCertificate"u8); + writer.WriteObjectValue(CaCertificate, options); + } if (options.Format != "W" && Optional.IsDefined(Capacity)) { writer.WritePropertyName("capacity"u8); @@ -160,6 +165,7 @@ internal static NetworkCloudStorageApplianceData DeserializeNetworkCloudStorageA ResourceType type = default; SystemData systemData = default; AdministrativeCredentials administratorCredentials = default; + CertificateInfo caCertificate = default; long? capacity = default; long? capacityUsed = default; ResourceIdentifier clusterId = default; @@ -252,6 +258,15 @@ internal static NetworkCloudStorageApplianceData DeserializeNetworkCloudStorageA administratorCredentials = AdministrativeCredentials.DeserializeAdministrativeCredentials(property0.Value, options); continue; } + if (property0.NameEquals("caCertificate"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + caCertificate = CertificateInfo.DeserializeCertificateInfo(property0.Value, options); + continue; + } if (property0.NameEquals("capacity"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -397,6 +412,7 @@ internal static NetworkCloudStorageApplianceData DeserializeNetworkCloudStorageA etag, extendedLocation, administratorCredentials, + caCertificate, capacity, capacityUsed, clusterId, diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudStorageApplianceData.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudStorageApplianceData.cs index e3b8727c6555..10869036c7e4 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudStorageApplianceData.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudStorageApplianceData.cs @@ -88,9 +88,10 @@ public NetworkCloudStorageApplianceData(AzureLocation location, ExtendedLocation /// Resource ETag. /// The extended location of the cluster associated with the resource. /// The credentials of the administrative interface on this storage appliance. + /// The CA certificate information issued by the platform for connecting to TLS interfaces for the storage appliance. Callers add this certificate to their trusted CA store to allow secure communication with the storage appliance. /// The total capacity of the storage appliance. Measured in GiB. - /// The amount of storage consumed. - /// The resource ID of the cluster this storage appliance is associated with. Measured in GiB. + /// The amount of storage consumed. Measured in GiB. + /// The resource ID of the cluster this storage appliance is associated with. /// The detailed status of the storage appliance. /// The descriptive message about the current detailed status. /// The endpoint for the management interface of the storage appliance. @@ -106,11 +107,12 @@ public NetworkCloudStorageApplianceData(AzureLocation location, ExtendedLocation /// The SKU for the storage appliance. /// The version of the storage appliance. /// Keeps track of any properties unknown to the library. - internal NetworkCloudStorageApplianceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, AdministrativeCredentials administratorCredentials, long? capacity, long? capacityUsed, ResourceIdentifier clusterId, StorageApplianceDetailedStatus? detailedStatus, string detailedStatusMessage, IPAddress managementIPv4Address, string manufacturer, string model, StorageApplianceProvisioningState? provisioningState, ResourceIdentifier rackId, long rackSlot, RemoteVendorManagementFeature? remoteVendorManagementFeature, RemoteVendorManagementStatus? remoteVendorManagementStatus, IReadOnlyList secretRotationStatus, string serialNumber, string storageApplianceSkuId, string version, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal NetworkCloudStorageApplianceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, AdministrativeCredentials administratorCredentials, CertificateInfo caCertificate, long? capacity, long? capacityUsed, ResourceIdentifier clusterId, StorageApplianceDetailedStatus? detailedStatus, string detailedStatusMessage, IPAddress managementIPv4Address, string manufacturer, string model, StorageApplianceProvisioningState? provisioningState, ResourceIdentifier rackId, long rackSlot, RemoteVendorManagementFeature? remoteVendorManagementFeature, RemoteVendorManagementStatus? remoteVendorManagementStatus, IReadOnlyList secretRotationStatus, string serialNumber, string storageApplianceSkuId, string version, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; ExtendedLocation = extendedLocation; AdministratorCredentials = administratorCredentials; + CaCertificate = caCertificate; Capacity = capacity; CapacityUsed = capacityUsed; ClusterId = clusterId; @@ -142,11 +144,13 @@ internal NetworkCloudStorageApplianceData() public ExtendedLocation ExtendedLocation { get; set; } /// The credentials of the administrative interface on this storage appliance. public AdministrativeCredentials AdministratorCredentials { get; set; } + /// The CA certificate information issued by the platform for connecting to TLS interfaces for the storage appliance. Callers add this certificate to their trusted CA store to allow secure communication with the storage appliance. + public CertificateInfo CaCertificate { get; } /// The total capacity of the storage appliance. Measured in GiB. public long? Capacity { get; } - /// The amount of storage consumed. + /// The amount of storage consumed. Measured in GiB. public long? CapacityUsed { get; } - /// The resource ID of the cluster this storage appliance is associated with. Measured in GiB. + /// The resource ID of the cluster this storage appliance is associated with. public ResourceIdentifier ClusterId { get; } /// The detailed status of the storage appliance. public StorageApplianceDetailedStatus? DetailedStatus { get; } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudStorageApplianceResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudStorageApplianceResource.cs index fc7d3d2aa2cc..10c55e2ef601 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudStorageApplianceResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudStorageApplianceResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationTo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -231,7 +231,7 @@ public virtual async Task> Up /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -279,7 +279,7 @@ public virtual ArmOperation Update(WaitUnt /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -321,7 +321,7 @@ public virtual async Task> Disab /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -363,7 +363,7 @@ public virtual ArmOperation DisableRemoteVend /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -406,7 +406,7 @@ public virtual async Task> Enabl /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -436,6 +436,98 @@ public virtual ArmOperation EnableRemoteVendo } } + /// + /// Run one or more read-only commands on the provided storage appliance. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}/runReadCommands + /// + /// + /// Operation Id + /// StorageAppliances_RunReadCommands + /// + /// + /// Default Api Version + /// 2025-07-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The request body. + /// The cancellation token to use. + /// is null. + public virtual async Task> RunReadCommandsAsync(WaitUntil waitUntil, StorageApplianceRunReadCommandsContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _networkCloudStorageApplianceStorageAppliancesClientDiagnostics.CreateScope("NetworkCloudStorageApplianceResource.RunReadCommands"); + scope.Start(); + try + { + var response = await _networkCloudStorageApplianceStorageAppliancesRestClient.RunReadCommandsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudStorageApplianceStorageAppliancesClientDiagnostics, Pipeline, _networkCloudStorageApplianceStorageAppliancesRestClient.CreateRunReadCommandsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Run one or more read-only commands on the provided storage appliance. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}/runReadCommands + /// + /// + /// Operation Id + /// StorageAppliances_RunReadCommands + /// + /// + /// Default Api Version + /// 2025-07-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The request body. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation RunReadCommands(WaitUntil waitUntil, StorageApplianceRunReadCommandsContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _networkCloudStorageApplianceStorageAppliancesClientDiagnostics.CreateScope("NetworkCloudStorageApplianceResource.RunReadCommands"); + scope.Start(); + try + { + var response = _networkCloudStorageApplianceStorageAppliancesRestClient.RunReadCommands(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudStorageApplianceStorageAppliancesClientDiagnostics, Pipeline, _networkCloudStorageApplianceStorageAppliancesRestClient.CreateRunReadCommandsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Add a tag to the current resource. /// @@ -449,7 +541,7 @@ public virtual ArmOperation EnableRemoteVendo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -511,7 +603,7 @@ public virtual async Task> AddTag /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -573,7 +665,7 @@ public virtual Response AddTag(string key, /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -630,7 +722,7 @@ public virtual async Task> SetTag /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -687,7 +779,7 @@ public virtual Response SetTags(IDictionar /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -747,7 +839,7 @@ public virtual async Task> Remove /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudTrunkedNetworkCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudTrunkedNetworkCollection.cs index 49149aed5bb0..cf4d0397df30 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudTrunkedNetworkCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudTrunkedNetworkCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> Crea /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(W /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string trunkedNe /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -265,12 +265,14 @@ public virtual Response Get(string trunkedNe /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudTrunkedNetworkTrunkedNetworksRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudTrunkedNetworkTrunkedNetworksRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudTrunkedNetworkTrunkedNetworksRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudTrunkedNetworkTrunkedNetworksRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudTrunkedNetworkResource(Client, NetworkCloudTrunkedNetworkData.DeserializeNetworkCloudTrunkedNetworkData(e)), _networkCloudTrunkedNetworkTrunkedNetworksClientDiagnostics, Pipeline, "NetworkCloudTrunkedNetworkCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -287,7 +289,7 @@ public virtual AsyncPageable GetAllAsync(Can /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -295,12 +297,14 @@ public virtual AsyncPageable GetAllAsync(Can /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudTrunkedNetworkTrunkedNetworksRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudTrunkedNetworkTrunkedNetworksRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudTrunkedNetworkTrunkedNetworksRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudTrunkedNetworkTrunkedNetworksRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudTrunkedNetworkResource(Client, NetworkCloudTrunkedNetworkData.DeserializeNetworkCloudTrunkedNetworkData(e)), _networkCloudTrunkedNetworkTrunkedNetworksClientDiagnostics, Pipeline, "NetworkCloudTrunkedNetworkCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -317,7 +321,7 @@ public virtual Pageable GetAll(CancellationT /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -360,7 +364,7 @@ public virtual async Task> ExistsAsync(string trunkedNetworkName, /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -403,7 +407,7 @@ public virtual Response Exists(string trunkedNetworkName, CancellationToke /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -448,7 +452,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudTrunkedNetworkResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudTrunkedNetworkResource.cs index 9ff3c0ef2cb2..af2fd7b0a91c 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudTrunkedNetworkResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudTrunkedNetworkResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToke /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task> Delet /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -315,7 +315,7 @@ public virtual async Task> UpdateAs /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -359,7 +359,7 @@ public virtual Response Update(NetworkCloudT /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -421,7 +421,7 @@ public virtual async Task> AddTagAs /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -483,7 +483,7 @@ public virtual Response AddTag(string key, s /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -540,7 +540,7 @@ public virtual async Task> SetTagsA /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -597,7 +597,7 @@ public virtual Response SetTags(IDictionary< /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -657,7 +657,7 @@ public virtual async Task> RemoveTa /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineCollection.cs index 71f54f4422a9..53d67e6d9151 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> Crea /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(W /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string virtualMa /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -265,12 +265,14 @@ public virtual Response Get(string virtualMa /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudVirtualMachineVirtualMachinesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudVirtualMachineVirtualMachinesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudVirtualMachineVirtualMachinesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudVirtualMachineVirtualMachinesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudVirtualMachineResource(Client, NetworkCloudVirtualMachineData.DeserializeNetworkCloudVirtualMachineData(e)), _networkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, "NetworkCloudVirtualMachineCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -287,7 +289,7 @@ public virtual AsyncPageable GetAllAsync(Can /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -295,12 +297,14 @@ public virtual AsyncPageable GetAllAsync(Can /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudVirtualMachineVirtualMachinesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudVirtualMachineVirtualMachinesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudVirtualMachineVirtualMachinesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudVirtualMachineVirtualMachinesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudVirtualMachineResource(Client, NetworkCloudVirtualMachineData.DeserializeNetworkCloudVirtualMachineData(e)), _networkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, "NetworkCloudVirtualMachineCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -317,7 +321,7 @@ public virtual Pageable GetAll(CancellationT /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -360,7 +364,7 @@ public virtual async Task> ExistsAsync(string virtualMachineName, /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -403,7 +407,7 @@ public virtual Response Exists(string virtualMachineName, CancellationToke /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -448,7 +452,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineConsoleCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineConsoleCollection.cs index 98ac7fc08b00..46346fbe3c75 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineConsoleCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineConsoleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrU /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string co /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -264,12 +264,14 @@ public virtual Response Get(string co /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudVirtualMachineConsoleConsolesRestClient.CreateListByVirtualMachineRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudVirtualMachineConsoleConsolesRestClient.CreateListByVirtualMachineNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudVirtualMachineConsoleConsolesRestClient.CreateListByVirtualMachineRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudVirtualMachineConsoleConsolesRestClient.CreateListByVirtualMachineNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudVirtualMachineConsoleResource(Client, NetworkCloudVirtualMachineConsoleData.DeserializeNetworkCloudVirtualMachineConsoleData(e)), _networkCloudVirtualMachineConsoleConsolesClientDiagnostics, Pipeline, "NetworkCloudVirtualMachineConsoleCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -286,7 +288,7 @@ public virtual AsyncPageable GetAllAs /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -294,12 +296,14 @@ public virtual AsyncPageable GetAllAs /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudVirtualMachineConsoleConsolesRestClient.CreateListByVirtualMachineRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudVirtualMachineConsoleConsolesRestClient.CreateListByVirtualMachineNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudVirtualMachineConsoleConsolesRestClient.CreateListByVirtualMachineRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudVirtualMachineConsoleConsolesRestClient.CreateListByVirtualMachineNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudVirtualMachineConsoleResource(Client, NetworkCloudVirtualMachineConsoleData.DeserializeNetworkCloudVirtualMachineConsoleData(e)), _networkCloudVirtualMachineConsoleConsolesClientDiagnostics, Pipeline, "NetworkCloudVirtualMachineConsoleCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -316,7 +320,7 @@ public virtual Pageable GetAll(Cancel /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -359,7 +363,7 @@ public virtual async Task> ExistsAsync(string consoleName, Cancel /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -402,7 +406,7 @@ public virtual Response Exists(string consoleName, CancellationToken cance /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -447,7 +451,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineConsoleResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineConsoleResource.cs index 75bbd791fc76..dea419b384f8 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineConsoleResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineConsoleResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(Cancellat /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task> Delet /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -319,7 +319,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -367,7 +367,7 @@ public virtual ArmOperation Update(Wa /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -429,7 +429,7 @@ public virtual async Task> A /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -491,7 +491,7 @@ public virtual Response AddTag(string /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -548,7 +548,7 @@ public virtual async Task> S /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -605,7 +605,7 @@ public virtual Response SetTags(IDict /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -665,7 +665,7 @@ public virtual async Task> R /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineData.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineData.Serialization.cs index 1db1ba64de79..02e0f7019430 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineData.Serialization.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineData.Serialization.cs @@ -45,6 +45,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WritePropertyName("extendedLocation"u8); writer.WriteObjectValue(ExtendedLocation, options); + if (Optional.IsDefined(Identity)) + { + writer.WritePropertyName("identity"u8); + ((IJsonModel)Identity).Write(writer, ModelSerializationExtensions.WireV3Options); + } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); writer.WritePropertyName("adminUsername"u8); @@ -110,6 +115,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("networkData"u8); writer.WriteStringValue(NetworkData); } + if (Optional.IsDefined(NetworkDataContent)) + { + writer.WritePropertyName("networkDataContent"u8); + writer.WriteStringValue(NetworkDataContent); + } if (Optional.IsCollectionDefined(PlacementHints)) { writer.WritePropertyName("placementHints"u8); @@ -147,6 +157,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("userData"u8); writer.WriteStringValue(UserData); } + if (Optional.IsDefined(UserDataContent)) + { + writer.WritePropertyName("userDataContent"u8); + writer.WriteStringValue(UserDataContent); + } if (Optional.IsDefined(VirtioInterface)) { writer.WritePropertyName("virtioInterface"u8); @@ -204,6 +219,7 @@ internal static NetworkCloudVirtualMachineData DeserializeNetworkCloudVirtualMac } ETag? etag = default; ExtendedLocation extendedLocation = default; + ManagedServiceIdentity identity = default; IDictionary tags = default; AzureLocation location = default; ResourceIdentifier id = default; @@ -224,12 +240,14 @@ internal static NetworkCloudVirtualMachineData DeserializeNetworkCloudVirtualMac long memorySizeGB = default; IList networkAttachments = default; string networkData = default; + string networkDataContent = default; IList placementHints = default; VirtualMachinePowerState? powerState = default; VirtualMachineProvisioningState? provisioningState = default; IList sshPublicKeys = default; NetworkCloudStorageProfile storageProfile = default; string userData = default; + string userDataContent = default; VirtualMachineVirtioInterfaceType? virtioInterface = default; VirtualMachineDeviceModelType? vmDeviceModel = default; string vmImage = default; @@ -253,6 +271,15 @@ internal static NetworkCloudVirtualMachineData DeserializeNetworkCloudVirtualMac extendedLocation = ExtendedLocation.DeserializeExtendedLocation(property.Value, options); continue; } + if (property.NameEquals("identity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + identity = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireV3Options, AzureResourceManagerNetworkCloudContext.Default); + continue; + } if (property.NameEquals("tags"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -408,6 +435,11 @@ internal static NetworkCloudVirtualMachineData DeserializeNetworkCloudVirtualMac networkData = property0.Value.GetString(); continue; } + if (property0.NameEquals("networkDataContent"u8)) + { + networkDataContent = property0.Value.GetString(); + continue; + } if (property0.NameEquals("placementHints"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -464,6 +496,11 @@ internal static NetworkCloudVirtualMachineData DeserializeNetworkCloudVirtualMac userData = property0.Value.GetString(); continue; } + if (property0.NameEquals("userDataContent"u8)) + { + userDataContent = property0.Value.GetString(); + continue; + } if (property0.NameEquals("virtioInterface"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -535,6 +572,7 @@ internal static NetworkCloudVirtualMachineData DeserializeNetworkCloudVirtualMac location, etag, extendedLocation, + identity, adminUsername, availabilityZone, bareMetalMachineId, @@ -549,12 +587,14 @@ internal static NetworkCloudVirtualMachineData DeserializeNetworkCloudVirtualMac memorySizeGB, networkAttachments ?? new ChangeTrackingList(), networkData, + networkDataContent, placementHints ?? new ChangeTrackingList(), powerState, provisioningState, sshPublicKeys ?? new ChangeTrackingList(), storageProfile, userData, + userDataContent, virtioInterface, vmDeviceModel, vmImage, diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineData.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineData.cs index f89036ddc736..6559a62a5924 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineData.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineData.cs @@ -91,6 +91,7 @@ public NetworkCloudVirtualMachineData(AzureLocation location, ExtendedLocation e /// The location. /// Resource ETag. /// The extended location of the cluster associated with the resource. + /// The identity for the resource. /// The name of the administrator to which the ssh public keys will be added into the authorized keys. /// The cluster availability zone containing this virtual machine. /// The resource ID of the bare metal machine that hosts the virtual machine. @@ -104,23 +105,26 @@ public NetworkCloudVirtualMachineData(AzureLocation location, ExtendedLocation e /// Field Deprecated, the value will be ignored if provided. The indicator of whether one of the specified CPU cores is isolated to run the emulator thread for this virtual machine. /// The memory size of the virtual machine. Allocations are measured in gibibytes. /// The list of network attachments to the virtual machine. - /// The Base64 encoded cloud-init network data. + /// Deprecated: The Base64 encoded cloud-init network data. The networkDataContent property will be used in preference to this property. + /// The Base64 encoded cloud-init network data. /// The scheduling hints for the virtual machine. /// The power state of the virtual machine. /// The provisioning state of the virtual machine. /// The list of ssh public keys. Each key will be added to the virtual machine using the cloud-init ssh_authorized_keys mechanism for the adminUsername. /// The storage profile that specifies size and other parameters about the disks related to the virtual machine. - /// The Base64 encoded cloud-init user data. + /// Deprecated: The Base64 encoded cloud-init user data. The userDataContent property will be used in preference to this property. + /// The Base64 encoded cloud-init user data. /// Field Deprecated, use virtualizationModel instead. The type of the virtio interface. /// The type of the device model to use. /// The virtual machine image that is currently provisioned to the OS disk, using the full url and tag notation used to pull the image. /// The credentials used to login to the image repository that has access to the specified image. /// The resource IDs of volumes that are attached to the virtual machine. /// Keeps track of any properties unknown to the library. - internal NetworkCloudVirtualMachineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, string adminUsername, string availabilityZone, ResourceIdentifier bareMetalMachineId, VirtualMachineBootMethod? bootMethod, NetworkAttachment cloudServicesNetworkAttachment, ResourceIdentifier clusterId, ExtendedLocation consoleExtendedLocation, long cpuCores, VirtualMachineDetailedStatus? detailedStatus, string detailedStatusMessage, VirtualMachineIsolateEmulatorThread? isolateEmulatorThread, long memorySizeInGB, IList networkAttachments, string networkData, IList placementHints, VirtualMachinePowerState? powerState, VirtualMachineProvisioningState? provisioningState, IList sshPublicKeys, NetworkCloudStorageProfile storageProfile, string userData, VirtualMachineVirtioInterfaceType? virtioInterface, VirtualMachineDeviceModelType? vmDeviceModel, string vmImage, ImageRepositoryCredentials vmImageRepositoryCredentials, IReadOnlyList volumes, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal NetworkCloudVirtualMachineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, ManagedServiceIdentity identity, string adminUsername, string availabilityZone, ResourceIdentifier bareMetalMachineId, VirtualMachineBootMethod? bootMethod, NetworkAttachment cloudServicesNetworkAttachment, ResourceIdentifier clusterId, ExtendedLocation consoleExtendedLocation, long cpuCores, VirtualMachineDetailedStatus? detailedStatus, string detailedStatusMessage, VirtualMachineIsolateEmulatorThread? isolateEmulatorThread, long memorySizeInGB, IList networkAttachments, string networkData, string networkDataContent, IList placementHints, VirtualMachinePowerState? powerState, VirtualMachineProvisioningState? provisioningState, IList sshPublicKeys, NetworkCloudStorageProfile storageProfile, string userData, string userDataContent, VirtualMachineVirtioInterfaceType? virtioInterface, VirtualMachineDeviceModelType? vmDeviceModel, string vmImage, ImageRepositoryCredentials vmImageRepositoryCredentials, IReadOnlyList volumes, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; ExtendedLocation = extendedLocation; + Identity = identity; AdminUsername = adminUsername; AvailabilityZone = availabilityZone; BareMetalMachineId = bareMetalMachineId; @@ -135,12 +139,14 @@ internal NetworkCloudVirtualMachineData(ResourceIdentifier id, string name, Reso MemorySizeInGB = memorySizeInGB; NetworkAttachments = networkAttachments; NetworkData = networkData; + NetworkDataContent = networkDataContent; PlacementHints = placementHints; PowerState = powerState; ProvisioningState = provisioningState; SshPublicKeys = sshPublicKeys; StorageProfile = storageProfile; UserData = userData; + UserDataContent = userDataContent; VirtioInterface = virtioInterface; VmDeviceModel = vmDeviceModel; VmImage = vmImage; @@ -158,6 +164,8 @@ internal NetworkCloudVirtualMachineData() public ETag? ETag { get; } /// The extended location of the cluster associated with the resource. public ExtendedLocation ExtendedLocation { get; set; } + /// The identity for the resource. + public ManagedServiceIdentity Identity { get; set; } /// The name of the administrator to which the ssh public keys will be added into the authorized keys. public string AdminUsername { get; set; } /// The cluster availability zone containing this virtual machine. @@ -184,8 +192,10 @@ internal NetworkCloudVirtualMachineData() public long MemorySizeInGB { get; set; } /// The list of network attachments to the virtual machine. public IList NetworkAttachments { get; } - /// The Base64 encoded cloud-init network data. + /// Deprecated: The Base64 encoded cloud-init network data. The networkDataContent property will be used in preference to this property. public string NetworkData { get; set; } + /// The Base64 encoded cloud-init network data. + public string NetworkDataContent { get; set; } /// The scheduling hints for the virtual machine. public IList PlacementHints { get; } /// The power state of the virtual machine. @@ -196,8 +206,10 @@ internal NetworkCloudVirtualMachineData() public IList SshPublicKeys { get; } /// The storage profile that specifies size and other parameters about the disks related to the virtual machine. public NetworkCloudStorageProfile StorageProfile { get; set; } - /// The Base64 encoded cloud-init user data. + /// Deprecated: The Base64 encoded cloud-init user data. The userDataContent property will be used in preference to this property. public string UserData { get; set; } + /// The Base64 encoded cloud-init user data. + public string UserDataContent { get; set; } /// Field Deprecated, use virtualizationModel instead. The type of the virtio interface. public VirtualMachineVirtioInterfaceType? VirtioInterface { get; set; } /// The type of the device model to use. diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineResource.cs index 730e0b38c863..baba9177ea0f 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineResource.cs @@ -110,7 +110,7 @@ public virtual NetworkCloudVirtualMachineConsoleCollection GetNetworkCloudVirtua /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetNetworkClo /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(CancellationToke /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task> Delet /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -340,7 +340,7 @@ public virtual ArmOperation Delete(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -388,7 +388,7 @@ public virtual async Task> Upda /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -423,6 +423,92 @@ public virtual ArmOperation Update(WaitUntil } } + /// + /// Assigns a relay to the specified Microsoft.HybridCompute machine associated with the provided virtual machine. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/assignRelay + /// + /// + /// Operation Id + /// VirtualMachines_AssignRelay + /// + /// + /// Default Api Version + /// 2025-07-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The request body. + /// The cancellation token to use. + public virtual async Task> AssignRelayAsync(WaitUntil waitUntil, VirtualMachineAssignRelayContent content = null, CancellationToken cancellationToken = default) + { + using var scope = _networkCloudVirtualMachineVirtualMachinesClientDiagnostics.CreateScope("NetworkCloudVirtualMachineResource.AssignRelay"); + scope.Start(); + try + { + var response = await _networkCloudVirtualMachineVirtualMachinesRestClient.AssignRelayAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, _networkCloudVirtualMachineVirtualMachinesRestClient.CreateAssignRelayRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Assigns a relay to the specified Microsoft.HybridCompute machine associated with the provided virtual machine. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/assignRelay + /// + /// + /// Operation Id + /// VirtualMachines_AssignRelay + /// + /// + /// Default Api Version + /// 2025-07-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The request body. + /// The cancellation token to use. + public virtual ArmOperation AssignRelay(WaitUntil waitUntil, VirtualMachineAssignRelayContent content = null, CancellationToken cancellationToken = default) + { + using var scope = _networkCloudVirtualMachineVirtualMachinesClientDiagnostics.CreateScope("NetworkCloudVirtualMachineResource.AssignRelay"); + scope.Start(); + try + { + var response = _networkCloudVirtualMachineVirtualMachinesRestClient.AssignRelay(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, _networkCloudVirtualMachineVirtualMachinesRestClient.CreateAssignRelayRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Power off the provided virtual machine. /// @@ -436,7 +522,7 @@ public virtual ArmOperation Update(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -479,7 +565,7 @@ public virtual async Task> Power /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -522,7 +608,7 @@ public virtual ArmOperation PowerOff(WaitUnti /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -564,7 +650,7 @@ public virtual async Task> Reima /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -606,7 +692,7 @@ public virtual ArmOperation Reimage(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -648,7 +734,7 @@ public virtual async Task> Resta /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -690,7 +776,7 @@ public virtual ArmOperation Restart(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -732,7 +818,7 @@ public virtual async Task> Start /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -774,7 +860,7 @@ public virtual ArmOperation Start(WaitUntil w /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -836,7 +922,7 @@ public virtual async Task> AddTagAs /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -898,7 +984,7 @@ public virtual Response AddTag(string key, s /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -955,7 +1041,7 @@ public virtual async Task> SetTagsA /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1012,7 +1098,7 @@ public virtual Response SetTags(IDictionary< /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -1072,7 +1158,7 @@ public virtual async Task> RemoveTa /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVolumeCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVolumeCollection.cs index 3f32efff0bbe..da057a5125d8 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVolumeCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVolumeCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string volumeName, Cance /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -265,12 +265,14 @@ public virtual Response Get(string volumeName, Cance /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudVolumeVolumesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudVolumeVolumesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudVolumeVolumesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudVolumeVolumesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudVolumeResource(Client, NetworkCloudVolumeData.DeserializeNetworkCloudVolumeData(e)), _networkCloudVolumeVolumesClientDiagnostics, Pipeline, "NetworkCloudVolumeCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -287,7 +289,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -295,12 +297,14 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudVolumeVolumesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudVolumeVolumesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkCloudVolumeVolumesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkCloudVolumeVolumesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, top, skipToken); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkCloudVolumeResource(Client, NetworkCloudVolumeData.DeserializeNetworkCloudVolumeData(e)), _networkCloudVolumeVolumesClientDiagnostics, Pipeline, "NetworkCloudVolumeCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -317,7 +321,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -360,7 +364,7 @@ public virtual async Task> ExistsAsync(string volumeName, Cancell /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -403,7 +407,7 @@ public virtual Response Exists(string volumeName, CancellationToken cancel /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -448,7 +452,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVolumeData.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVolumeData.Serialization.cs index 64c57076393d..ed26ce436952 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVolumeData.Serialization.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVolumeData.Serialization.cs @@ -47,6 +47,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WriteObjectValue(ExtendedLocation, options); writer.WritePropertyName("properties"u8); writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsDefined(AllocatedSizeMiB)) + { + writer.WritePropertyName("allocatedSizeMiB"u8); + writer.WriteNumberValue(AllocatedSizeMiB.Value); + } if (options.Format != "W" && Optional.IsCollectionDefined(AttachedTo)) { writer.WritePropertyName("attachedTo"u8); @@ -79,6 +84,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WritePropertyName("sizeMiB"u8); writer.WriteNumberValue(SizeInMiB); + if (Optional.IsDefined(StorageApplianceId)) + { + writer.WritePropertyName("storageApplianceId"u8); + writer.WriteStringValue(StorageApplianceId); + } writer.WriteEndObject(); } @@ -110,12 +120,14 @@ internal static NetworkCloudVolumeData DeserializeNetworkCloudVolumeData(JsonEle string name = default; ResourceType type = default; SystemData systemData = default; + long? allocatedSizeMiB = default; IReadOnlyList attachedTo = default; VolumeDetailedStatus? detailedStatus = default; string detailedStatusMessage = default; VolumeProvisioningState? provisioningState = default; string serialNumber = default; long sizeMiB = default; + ResourceIdentifier storageApplianceId = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -186,6 +198,15 @@ internal static NetworkCloudVolumeData DeserializeNetworkCloudVolumeData(JsonEle } foreach (var property0 in property.Value.EnumerateObject()) { + if (property0.NameEquals("allocatedSizeMiB"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + allocatedSizeMiB = property0.Value.GetInt64(); + continue; + } if (property0.NameEquals("attachedTo"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -233,6 +254,15 @@ internal static NetworkCloudVolumeData DeserializeNetworkCloudVolumeData(JsonEle sizeMiB = property0.Value.GetInt64(); continue; } + if (property0.NameEquals("storageApplianceId"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + storageApplianceId = new ResourceIdentifier(property0.Value.GetString()); + continue; + } } continue; } @@ -251,12 +281,14 @@ internal static NetworkCloudVolumeData DeserializeNetworkCloudVolumeData(JsonEle location, etag, extendedLocation, + allocatedSizeMiB, attachedTo ?? new ChangeTrackingList(), detailedStatus, detailedStatusMessage, provisioningState, serialNumber, sizeMiB, + storageApplianceId, serializedAdditionalRawData); } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVolumeData.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVolumeData.cs index e33c9a40b1b5..3e28b2865b7c 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVolumeData.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVolumeData.cs @@ -54,7 +54,7 @@ public partial class NetworkCloudVolumeData : TrackedResourceData /// Initializes a new instance of . /// The location. /// The extended location of the cluster associated with the resource. - /// The size of the allocation for this volume in Mebibytes. + /// The requested storage allocation for the volume in Mebibytes. /// is null. public NetworkCloudVolumeData(AzureLocation location, ExtendedLocation extendedLocation, long sizeInMiB) : base(location) { @@ -74,23 +74,27 @@ public NetworkCloudVolumeData(AzureLocation location, ExtendedLocation extendedL /// The location. /// Resource ETag. /// The extended location of the cluster associated with the resource. + /// The allocated size of the volume in Mebibytes. /// The list of resource IDs that attach the volume. It may include virtual machines and Hybrid AKS clusters. /// The more detailed status of the volume. /// The descriptive message about the current detailed status. /// The provisioning state of the volume. /// The unique identifier of the volume. - /// The size of the allocation for this volume in Mebibytes. + /// The requested storage allocation for the volume in Mebibytes. + /// The resource ID of the storage appliance that hosts the volume. /// Keeps track of any properties unknown to the library. - internal NetworkCloudVolumeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, IReadOnlyList attachedTo, VolumeDetailedStatus? detailedStatus, string detailedStatusMessage, VolumeProvisioningState? provisioningState, string serialNumber, long sizeInMiB, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal NetworkCloudVolumeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ExtendedLocation extendedLocation, long? allocatedSizeMiB, IReadOnlyList attachedTo, VolumeDetailedStatus? detailedStatus, string detailedStatusMessage, VolumeProvisioningState? provisioningState, string serialNumber, long sizeInMiB, ResourceIdentifier storageApplianceId, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; ExtendedLocation = extendedLocation; + AllocatedSizeMiB = allocatedSizeMiB; AttachedTo = attachedTo; DetailedStatus = detailedStatus; DetailedStatusMessage = detailedStatusMessage; ProvisioningState = provisioningState; SerialNumber = serialNumber; SizeInMiB = sizeInMiB; + StorageApplianceId = storageApplianceId; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -103,6 +107,8 @@ internal NetworkCloudVolumeData() public ETag? ETag { get; } /// The extended location of the cluster associated with the resource. public ExtendedLocation ExtendedLocation { get; set; } + /// The allocated size of the volume in Mebibytes. + public long? AllocatedSizeMiB { get; } /// The list of resource IDs that attach the volume. It may include virtual machines and Hybrid AKS clusters. public IReadOnlyList AttachedTo { get; } /// The more detailed status of the volume. @@ -113,7 +119,9 @@ internal NetworkCloudVolumeData() public VolumeProvisioningState? ProvisioningState { get; } /// The unique identifier of the volume. public string SerialNumber { get; } - /// The size of the allocation for this volume in Mebibytes. + /// The requested storage allocation for the volume in Mebibytes. public long SizeInMiB { get; set; } + /// The resource ID of the storage appliance that hosts the volume. + public ResourceIdentifier StorageApplianceId { get; set; } } } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVolumeResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVolumeResource.cs index 336d0ff300c9..c7be5e2dc340 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVolumeResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVolumeResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task> Delet /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -315,7 +315,7 @@ public virtual async Task> UpdateAsync(Netw /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -359,7 +359,7 @@ public virtual Response Update(NetworkCloudVolumePat /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -421,7 +421,7 @@ public virtual async Task> AddTagAsync(stri /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -483,7 +483,7 @@ public virtual Response AddTag(string key, string va /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -540,7 +540,7 @@ public virtual async Task> SetTagsAsync(IDi /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -597,7 +597,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource @@ -657,7 +657,7 @@ public virtual async Task> RemoveTagAsync(s /// /// /// Default Api Version - /// 2025-02-01 + /// 2025-07-01-preview /// /// /// Resource diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/AgentPoolsRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/AgentPoolsRestOperations.cs index abce4828f735..caa9317852fb 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/AgentPoolsRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/AgentPoolsRestOperations.cs @@ -32,11 +32,11 @@ public AgentPoolsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-02-01"; + _apiVersion = apiVersion ?? "2025-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListByKubernetesClusterRequestUri(string subscriptionId, string resourceGroupName, string kubernetesClusterName) + internal RequestUriBuilder CreateListByKubernetesClusterRequestUri(string subscriptionId, string resourceGroupName, string kubernetesClusterName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -48,10 +48,18 @@ internal RequestUriBuilder CreateListByKubernetesClusterRequestUri(string subscr uri.AppendPath(kubernetesClusterName, true); uri.AppendPath("/agentPools", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListByKubernetesClusterRequest(string subscriptionId, string resourceGroupName, string kubernetesClusterName) + internal HttpMessage CreateListByKubernetesClusterRequest(string subscriptionId, string resourceGroupName, string kubernetesClusterName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -66,6 +74,14 @@ internal HttpMessage CreateListByKubernetesClusterRequest(string subscriptionId, uri.AppendPath(kubernetesClusterName, true); uri.AppendPath("/agentPools", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -76,16 +92,18 @@ internal HttpMessage CreateListByKubernetesClusterRequest(string subscriptionId, /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the Kubernetes cluster. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByKubernetesClusterAsync(string subscriptionId, string resourceGroupName, string kubernetesClusterName, CancellationToken cancellationToken = default) + public async Task> ListByKubernetesClusterAsync(string subscriptionId, string resourceGroupName, string kubernetesClusterName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(kubernetesClusterName, nameof(kubernetesClusterName)); - using var message = CreateListByKubernetesClusterRequest(subscriptionId, resourceGroupName, kubernetesClusterName); + using var message = CreateListByKubernetesClusterRequest(subscriptionId, resourceGroupName, kubernetesClusterName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -105,16 +123,18 @@ public async Task> ListByKubernetesClusterAsync(string s /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the Kubernetes cluster. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByKubernetesCluster(string subscriptionId, string resourceGroupName, string kubernetesClusterName, CancellationToken cancellationToken = default) + public Response ListByKubernetesCluster(string subscriptionId, string resourceGroupName, string kubernetesClusterName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(kubernetesClusterName, nameof(kubernetesClusterName)); - using var message = CreateListByKubernetesClusterRequest(subscriptionId, resourceGroupName, kubernetesClusterName); + using var message = CreateListByKubernetesClusterRequest(subscriptionId, resourceGroupName, kubernetesClusterName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -564,7 +584,7 @@ public Response Update(string subscriptionId, string resourceGroupName, string k } } - internal RequestUriBuilder CreateListByKubernetesClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string kubernetesClusterName) + internal RequestUriBuilder CreateListByKubernetesClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string kubernetesClusterName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -572,7 +592,7 @@ internal RequestUriBuilder CreateListByKubernetesClusterNextPageRequestUri(strin return uri; } - internal HttpMessage CreateListByKubernetesClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string kubernetesClusterName) + internal HttpMessage CreateListByKubernetesClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string kubernetesClusterName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -591,17 +611,19 @@ internal HttpMessage CreateListByKubernetesClusterNextPageRequest(string nextLin /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the Kubernetes cluster. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByKubernetesClusterNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string kubernetesClusterName, CancellationToken cancellationToken = default) + public async Task> ListByKubernetesClusterNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string kubernetesClusterName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(kubernetesClusterName, nameof(kubernetesClusterName)); - using var message = CreateListByKubernetesClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, kubernetesClusterName); + using var message = CreateListByKubernetesClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, kubernetesClusterName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -622,17 +644,19 @@ public async Task> ListByKubernetesClusterNextPageAsync( /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the Kubernetes cluster. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByKubernetesClusterNextPage(string nextLink, string subscriptionId, string resourceGroupName, string kubernetesClusterName, CancellationToken cancellationToken = default) + public Response ListByKubernetesClusterNextPage(string nextLink, string subscriptionId, string resourceGroupName, string kubernetesClusterName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(kubernetesClusterName, nameof(kubernetesClusterName)); - using var message = CreateListByKubernetesClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, kubernetesClusterName); + using var message = CreateListByKubernetesClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, kubernetesClusterName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BareMetalMachineKeySetsRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BareMetalMachineKeySetsRestOperations.cs index b8ae9cc1ed5c..79a44959902d 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BareMetalMachineKeySetsRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BareMetalMachineKeySetsRestOperations.cs @@ -32,11 +32,11 @@ public BareMetalMachineKeySetsRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-02-01"; + _apiVersion = apiVersion ?? "2025-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -48,10 +48,18 @@ internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, uri.AppendPath(clusterName, true); uri.AppendPath("/bareMetalMachineKeySets", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -66,6 +74,14 @@ internal HttpMessage CreateListByClusterRequest(string subscriptionId, string re uri.AppendPath(clusterName, true); uri.AppendPath("/bareMetalMachineKeySets", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -76,16 +92,18 @@ internal HttpMessage CreateListByClusterRequest(string subscriptionId, string re /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the cluster. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByClusterAsync(string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) + public async Task> ListByClusterAsync(string subscriptionId, string resourceGroupName, string clusterName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - using var message = CreateListByClusterRequest(subscriptionId, resourceGroupName, clusterName); + using var message = CreateListByClusterRequest(subscriptionId, resourceGroupName, clusterName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -105,16 +123,18 @@ public async Task> ListByClusterAsync(strin /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the cluster. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByCluster(string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) + public Response ListByCluster(string subscriptionId, string resourceGroupName, string clusterName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - using var message = CreateListByClusterRequest(subscriptionId, resourceGroupName, clusterName); + using var message = CreateListByClusterRequest(subscriptionId, resourceGroupName, clusterName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -564,7 +584,7 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } - internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -572,7 +592,7 @@ internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink return uri; } - internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -591,17 +611,19 @@ internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the cluster. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByClusterNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) + public async Task> ListByClusterNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - using var message = CreateListByClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, clusterName); + using var message = CreateListByClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, clusterName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -622,17 +644,19 @@ public async Task> ListByClusterNextPageAsy /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the cluster. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByClusterNextPage(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) + public Response ListByClusterNextPage(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - using var message = CreateListByClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, clusterName); + using var message = CreateListByClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, clusterName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BareMetalMachinesRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BareMetalMachinesRestOperations.cs index 89132b5ecddd..ba063e4a8dca 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BareMetalMachinesRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BareMetalMachinesRestOperations.cs @@ -32,11 +32,11 @@ public BareMetalMachinesRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-02-01"; + _apiVersion = apiVersion ?? "2025-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -44,10 +44,18 @@ internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptio uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/bareMetalMachines", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -58,6 +66,14 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/bareMetalMachines", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -66,14 +82,16 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) /// Get a list of bare metal machines in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionAsync(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -91,14 +109,16 @@ public async Task> ListBySubscriptionAsync(string /// Get a list of bare metal machines in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscription(string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscription(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -114,7 +134,7 @@ public Response ListBySubscription(string subscriptionId, } } - internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -124,10 +144,18 @@ internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscripti uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/bareMetalMachines", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -140,6 +168,14 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/bareMetalMachines", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -149,15 +185,17 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str /// Get a list of bare metal machines in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -176,15 +214,17 @@ public async Task> ListByResourceGroupAsync(strin /// Get a list of bare metal machines in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -951,7 +991,7 @@ public Response RunCommand(string subscriptionId, string resourceGroupName, stri } } - internal RequestUriBuilder CreateRunDataExtractsRequestUri(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineRunDataExtractsContent content) + internal RequestUriBuilder CreateRunDataExtractsRequestUri(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsParameters) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -966,7 +1006,7 @@ internal RequestUriBuilder CreateRunDataExtractsRequestUri(string subscriptionId return uri; } - internal HttpMessage CreateRunDataExtractsRequest(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineRunDataExtractsContent content) + internal HttpMessage CreateRunDataExtractsRequest(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsParameters) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -984,9 +1024,9 @@ internal HttpMessage CreateRunDataExtractsRequest(string subscriptionId, string request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); - request.Content = content0; + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(bareMetalMachineRunDataExtractsParameters, ModelSerializationExtensions.WireOptions); + request.Content = content; _userAgent.Apply(message); return message; } @@ -995,18 +1035,18 @@ internal HttpMessage CreateRunDataExtractsRequest(string subscriptionId, string /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the bare metal machine. - /// The request body. + /// The request body. /// The cancellation token to use. - /// , , or is null. + /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task RunDataExtractsAsync(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineRunDataExtractsContent content, CancellationToken cancellationToken = default) + public async Task RunDataExtractsAsync(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(bareMetalMachineName, nameof(bareMetalMachineName)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(bareMetalMachineRunDataExtractsParameters, nameof(bareMetalMachineRunDataExtractsParameters)); - using var message = CreateRunDataExtractsRequest(subscriptionId, resourceGroupName, bareMetalMachineName, content); + using var message = CreateRunDataExtractsRequest(subscriptionId, resourceGroupName, bareMetalMachineName, bareMetalMachineRunDataExtractsParameters); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1022,18 +1062,112 @@ public async Task RunDataExtractsAsync(string subscriptionId, string r /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the bare metal machine. - /// The request body. + /// The request body. /// The cancellation token to use. - /// , , or is null. + /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response RunDataExtracts(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineRunDataExtractsContent content, CancellationToken cancellationToken = default) + public Response RunDataExtracts(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(bareMetalMachineName, nameof(bareMetalMachineName)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(bareMetalMachineRunDataExtractsParameters, nameof(bareMetalMachineRunDataExtractsParameters)); + + using var message = CreateRunDataExtractsRequest(subscriptionId, resourceGroupName, bareMetalMachineName, bareMetalMachineRunDataExtractsParameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateRunDataExtractsRestrictedRequestUri(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsRestrictedParameters) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/bareMetalMachines/", false); + uri.AppendPath(bareMetalMachineName, true); + uri.AppendPath("/runDataExtractsRestricted", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateRunDataExtractsRestrictedRequest(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsRestrictedParameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/bareMetalMachines/", false); + uri.AppendPath(bareMetalMachineName, true); + uri.AppendPath("/runDataExtractsRestricted", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(bareMetalMachineRunDataExtractsRestrictedParameters, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Run one or more restricted data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the bare metal machine. + /// The request body. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task RunDataExtractsRestrictedAsync(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsRestrictedParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(bareMetalMachineName, nameof(bareMetalMachineName)); + Argument.AssertNotNull(bareMetalMachineRunDataExtractsRestrictedParameters, nameof(bareMetalMachineRunDataExtractsRestrictedParameters)); + + using var message = CreateRunDataExtractsRestrictedRequest(subscriptionId, resourceGroupName, bareMetalMachineName, bareMetalMachineRunDataExtractsRestrictedParameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Run one or more restricted data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the bare metal machine. + /// The request body. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response RunDataExtractsRestricted(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsRestrictedParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(bareMetalMachineName, nameof(bareMetalMachineName)); + Argument.AssertNotNull(bareMetalMachineRunDataExtractsRestrictedParameters, nameof(bareMetalMachineRunDataExtractsRestrictedParameters)); - using var message = CreateRunDataExtractsRequest(subscriptionId, resourceGroupName, bareMetalMachineName, content); + using var message = CreateRunDataExtractsRestrictedRequest(subscriptionId, resourceGroupName, bareMetalMachineName, bareMetalMachineRunDataExtractsRestrictedParameters); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -1311,7 +1445,7 @@ public Response Uncordon(string subscriptionId, string resourceGroupName, string } } - internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1319,7 +1453,7 @@ internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nex return uri; } - internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1336,15 +1470,17 @@ internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, st /// Get a list of bare metal machines in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1363,15 +1499,17 @@ public async Task> ListBySubscriptionNextPageAsyn /// Get a list of bare metal machines in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -1387,7 +1525,7 @@ public Response ListBySubscriptionNextPage(string nextLink } } - internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1395,7 +1533,7 @@ internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string ne return uri; } - internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1413,16 +1551,18 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1442,16 +1582,18 @@ public async Task> ListByResourceGroupNextPageAsy /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BmcKeySetsRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BmcKeySetsRestOperations.cs index dfaab54525c4..deeee54ba0f2 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BmcKeySetsRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BmcKeySetsRestOperations.cs @@ -32,11 +32,11 @@ public BmcKeySetsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-02-01"; + _apiVersion = apiVersion ?? "2025-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -48,10 +48,18 @@ internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, uri.AppendPath(clusterName, true); uri.AppendPath("/bmcKeySets", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -66,6 +74,14 @@ internal HttpMessage CreateListByClusterRequest(string subscriptionId, string re uri.AppendPath(clusterName, true); uri.AppendPath("/bmcKeySets", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -76,16 +92,18 @@ internal HttpMessage CreateListByClusterRequest(string subscriptionId, string re /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the cluster. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByClusterAsync(string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) + public async Task> ListByClusterAsync(string subscriptionId, string resourceGroupName, string clusterName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - using var message = CreateListByClusterRequest(subscriptionId, resourceGroupName, clusterName); + using var message = CreateListByClusterRequest(subscriptionId, resourceGroupName, clusterName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -105,16 +123,18 @@ public async Task> ListByClusterAsync(string subscriptio /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the cluster. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByCluster(string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) + public Response ListByCluster(string subscriptionId, string resourceGroupName, string clusterName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - using var message = CreateListByClusterRequest(subscriptionId, resourceGroupName, clusterName); + using var message = CreateListByClusterRequest(subscriptionId, resourceGroupName, clusterName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -564,7 +584,7 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } - internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -572,7 +592,7 @@ internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink return uri; } - internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -591,17 +611,19 @@ internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the cluster. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByClusterNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) + public async Task> ListByClusterNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - using var message = CreateListByClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, clusterName); + using var message = CreateListByClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, clusterName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -622,17 +644,19 @@ public async Task> ListByClusterNextPageAsync(string nex /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the cluster. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByClusterNextPage(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) + public Response ListByClusterNextPage(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - using var message = CreateListByClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, clusterName); + using var message = CreateListByClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, clusterName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/CloudServicesNetworksRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/CloudServicesNetworksRestOperations.cs index e68291224849..6788e741fba8 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/CloudServicesNetworksRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/CloudServicesNetworksRestOperations.cs @@ -32,11 +32,11 @@ public CloudServicesNetworksRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-02-01"; + _apiVersion = apiVersion ?? "2025-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -44,10 +44,18 @@ internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptio uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/cloudServicesNetworks", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -58,6 +66,14 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/cloudServicesNetworks", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -66,14 +82,16 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) /// Get a list of cloud services networks in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionAsync(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -91,14 +109,16 @@ public async Task> ListBySubscriptionAsync(st /// Get a list of cloud services networks in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscription(string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscription(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -114,7 +134,7 @@ public Response ListBySubscription(string subscription } } - internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -124,10 +144,18 @@ internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscripti uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/cloudServicesNetworks", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -140,6 +168,14 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/cloudServicesNetworks", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -149,15 +185,17 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str /// Get a list of cloud services networks in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -176,15 +214,17 @@ public async Task> ListByResourceGroupAsync(s /// Get a list of cloud services networks in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -602,7 +642,7 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } - internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -610,7 +650,7 @@ internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nex return uri; } - internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -627,15 +667,17 @@ internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, st /// Get a list of cloud services networks in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -654,15 +696,17 @@ public async Task> ListBySubscriptionNextPage /// Get a list of cloud services networks in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -678,7 +722,7 @@ public Response ListBySubscriptionNextPage(string next } } - internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -686,7 +730,7 @@ internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string ne return uri; } - internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -704,16 +748,18 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -733,16 +779,18 @@ public async Task> ListByResourceGroupNextPag /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ClusterManagersRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ClusterManagersRestOperations.cs index b415cb66cd68..255367b6c75f 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ClusterManagersRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ClusterManagersRestOperations.cs @@ -32,11 +32,11 @@ public ClusterManagersRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-02-01"; + _apiVersion = apiVersion ?? "2025-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -44,10 +44,18 @@ internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptio uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/clusterManagers", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -58,6 +66,14 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/clusterManagers", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -66,14 +82,16 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) /// Get a list of cluster managers in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionAsync(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -91,14 +109,16 @@ public async Task> ListBySubscriptionAsync(string s /// Get a list of cluster managers in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscription(string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscription(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -114,7 +134,7 @@ public Response ListBySubscription(string subscriptionId, Ca } } - internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -124,10 +144,18 @@ internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscripti uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/clusterManagers", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -140,6 +168,14 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/clusterManagers", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -149,15 +185,17 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str /// Get a list of cluster managers in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -176,15 +214,17 @@ public async Task> ListByResourceGroupAsync(string /// Get a list of cluster managers in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -610,7 +650,7 @@ public Response Update(string subscriptionId, st } } - internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -618,7 +658,7 @@ internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nex return uri; } - internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -635,15 +675,17 @@ internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, st /// Get a list of cluster managers in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -662,15 +704,17 @@ public async Task> ListBySubscriptionNextPageAsync( /// Get a list of cluster managers in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -686,7 +730,7 @@ public Response ListBySubscriptionNextPage(string nextLink, } } - internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -694,7 +738,7 @@ internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string ne return uri; } - internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -712,16 +756,18 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -741,16 +787,18 @@ public async Task> ListByResourceGroupNextPageAsync /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ClustersRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ClustersRestOperations.cs index 4237466de295..4153924d37d8 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ClustersRestOperations.cs @@ -32,11 +32,11 @@ public ClustersRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-02-01"; + _apiVersion = apiVersion ?? "2025-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -44,10 +44,18 @@ internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptio uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/clusters", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -58,6 +66,14 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/clusters", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -66,14 +82,16 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) /// Get a list of clusters in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionAsync(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -91,14 +109,16 @@ public async Task> ListBySubscriptionAsync(string subscrip /// Get a list of clusters in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscription(string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscription(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -114,7 +134,7 @@ public Response ListBySubscription(string subscriptionId, Cancellat } } - internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -124,10 +144,18 @@ internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscripti uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/clusters", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -140,6 +168,14 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/clusters", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -149,15 +185,17 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str /// Get a list of clusters in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -176,15 +214,17 @@ public async Task> ListByResourceGroupAsync(string subscri /// Get a list of clusters in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -980,7 +1020,7 @@ public Response UpdateVersion(string subscriptionId, string resourceGroupName, s } } - internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -988,7 +1028,7 @@ internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nex return uri; } - internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1005,15 +1045,17 @@ internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, st /// Get a list of clusters in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1032,15 +1074,17 @@ public async Task> ListBySubscriptionNextPageAsync(string /// Get a list of clusters in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -1056,7 +1100,7 @@ public Response ListBySubscriptionNextPage(string nextLink, string } } - internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1064,7 +1108,7 @@ internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string ne return uri; } - internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1082,16 +1126,18 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1111,16 +1157,18 @@ public async Task> ListByResourceGroupNextPageAsync(string /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ConsolesRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ConsolesRestOperations.cs index e8250ec1194a..37529f9b6b97 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ConsolesRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ConsolesRestOperations.cs @@ -32,11 +32,11 @@ public ConsolesRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-02-01"; + _apiVersion = apiVersion ?? "2025-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListByVirtualMachineRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName) + internal RequestUriBuilder CreateListByVirtualMachineRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -48,10 +48,18 @@ internal RequestUriBuilder CreateListByVirtualMachineRequestUri(string subscript uri.AppendPath(virtualMachineName, true); uri.AppendPath("/consoles", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListByVirtualMachineRequest(string subscriptionId, string resourceGroupName, string virtualMachineName) + internal HttpMessage CreateListByVirtualMachineRequest(string subscriptionId, string resourceGroupName, string virtualMachineName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -66,6 +74,14 @@ internal HttpMessage CreateListByVirtualMachineRequest(string subscriptionId, st uri.AppendPath(virtualMachineName, true); uri.AppendPath("/consoles", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -76,16 +92,18 @@ internal HttpMessage CreateListByVirtualMachineRequest(string subscriptionId, st /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the virtual machine. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByVirtualMachineAsync(string subscriptionId, string resourceGroupName, string virtualMachineName, CancellationToken cancellationToken = default) + public async Task> ListByVirtualMachineAsync(string subscriptionId, string resourceGroupName, string virtualMachineName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(virtualMachineName, nameof(virtualMachineName)); - using var message = CreateListByVirtualMachineRequest(subscriptionId, resourceGroupName, virtualMachineName); + using var message = CreateListByVirtualMachineRequest(subscriptionId, resourceGroupName, virtualMachineName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -105,16 +123,18 @@ public async Task> ListByVirtualMachineAsync(string subscr /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the virtual machine. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByVirtualMachine(string subscriptionId, string resourceGroupName, string virtualMachineName, CancellationToken cancellationToken = default) + public Response ListByVirtualMachine(string subscriptionId, string resourceGroupName, string virtualMachineName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(virtualMachineName, nameof(virtualMachineName)); - using var message = CreateListByVirtualMachineRequest(subscriptionId, resourceGroupName, virtualMachineName); + using var message = CreateListByVirtualMachineRequest(subscriptionId, resourceGroupName, virtualMachineName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -564,7 +584,7 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } - internal RequestUriBuilder CreateListByVirtualMachineNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineName) + internal RequestUriBuilder CreateListByVirtualMachineNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -572,7 +592,7 @@ internal RequestUriBuilder CreateListByVirtualMachineNextPageRequestUri(string n return uri; } - internal HttpMessage CreateListByVirtualMachineNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineName) + internal HttpMessage CreateListByVirtualMachineNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -591,17 +611,19 @@ internal HttpMessage CreateListByVirtualMachineNextPageRequest(string nextLink, /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the virtual machine. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByVirtualMachineNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineName, CancellationToken cancellationToken = default) + public async Task> ListByVirtualMachineNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(virtualMachineName, nameof(virtualMachineName)); - using var message = CreateListByVirtualMachineNextPageRequest(nextLink, subscriptionId, resourceGroupName, virtualMachineName); + using var message = CreateListByVirtualMachineNextPageRequest(nextLink, subscriptionId, resourceGroupName, virtualMachineName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -622,17 +644,19 @@ public async Task> ListByVirtualMachineNextPageAsync(strin /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the virtual machine. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByVirtualMachineNextPage(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineName, CancellationToken cancellationToken = default) + public Response ListByVirtualMachineNextPage(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(virtualMachineName, nameof(virtualMachineName)); - using var message = CreateListByVirtualMachineNextPageRequest(nextLink, subscriptionId, resourceGroupName, virtualMachineName); + using var message = CreateListByVirtualMachineNextPageRequest(nextLink, subscriptionId, resourceGroupName, virtualMachineName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/KubernetesClusterFeaturesRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/KubernetesClusterFeaturesRestOperations.cs index 6a5ea1fa6d5f..9f6023d9121a 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/KubernetesClusterFeaturesRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/KubernetesClusterFeaturesRestOperations.cs @@ -32,11 +32,11 @@ public KubernetesClusterFeaturesRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-02-01"; + _apiVersion = apiVersion ?? "2025-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListByKubernetesClusterRequestUri(string subscriptionId, string resourceGroupName, string kubernetesClusterName) + internal RequestUriBuilder CreateListByKubernetesClusterRequestUri(string subscriptionId, string resourceGroupName, string kubernetesClusterName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -48,10 +48,18 @@ internal RequestUriBuilder CreateListByKubernetesClusterRequestUri(string subscr uri.AppendPath(kubernetesClusterName, true); uri.AppendPath("/features", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListByKubernetesClusterRequest(string subscriptionId, string resourceGroupName, string kubernetesClusterName) + internal HttpMessage CreateListByKubernetesClusterRequest(string subscriptionId, string resourceGroupName, string kubernetesClusterName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -66,6 +74,14 @@ internal HttpMessage CreateListByKubernetesClusterRequest(string subscriptionId, uri.AppendPath(kubernetesClusterName, true); uri.AppendPath("/features", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -76,16 +92,18 @@ internal HttpMessage CreateListByKubernetesClusterRequest(string subscriptionId, /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the Kubernetes cluster. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByKubernetesClusterAsync(string subscriptionId, string resourceGroupName, string kubernetesClusterName, CancellationToken cancellationToken = default) + public async Task> ListByKubernetesClusterAsync(string subscriptionId, string resourceGroupName, string kubernetesClusterName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(kubernetesClusterName, nameof(kubernetesClusterName)); - using var message = CreateListByKubernetesClusterRequest(subscriptionId, resourceGroupName, kubernetesClusterName); + using var message = CreateListByKubernetesClusterRequest(subscriptionId, resourceGroupName, kubernetesClusterName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -105,16 +123,18 @@ public async Task> ListByKubernetesCluste /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the Kubernetes cluster. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByKubernetesCluster(string subscriptionId, string resourceGroupName, string kubernetesClusterName, CancellationToken cancellationToken = default) + public Response ListByKubernetesCluster(string subscriptionId, string resourceGroupName, string kubernetesClusterName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(kubernetesClusterName, nameof(kubernetesClusterName)); - using var message = CreateListByKubernetesClusterRequest(subscriptionId, resourceGroupName, kubernetesClusterName); + using var message = CreateListByKubernetesClusterRequest(subscriptionId, resourceGroupName, kubernetesClusterName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -564,7 +584,7 @@ public Response Update(string subscriptionId, string resourceGroupName, string k } } - internal RequestUriBuilder CreateListByKubernetesClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string kubernetesClusterName) + internal RequestUriBuilder CreateListByKubernetesClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string kubernetesClusterName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -572,7 +592,7 @@ internal RequestUriBuilder CreateListByKubernetesClusterNextPageRequestUri(strin return uri; } - internal HttpMessage CreateListByKubernetesClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string kubernetesClusterName) + internal HttpMessage CreateListByKubernetesClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string kubernetesClusterName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -591,17 +611,19 @@ internal HttpMessage CreateListByKubernetesClusterNextPageRequest(string nextLin /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the Kubernetes cluster. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByKubernetesClusterNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string kubernetesClusterName, CancellationToken cancellationToken = default) + public async Task> ListByKubernetesClusterNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string kubernetesClusterName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(kubernetesClusterName, nameof(kubernetesClusterName)); - using var message = CreateListByKubernetesClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, kubernetesClusterName); + using var message = CreateListByKubernetesClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, kubernetesClusterName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -622,17 +644,19 @@ public async Task> ListByKubernetesCluste /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the Kubernetes cluster. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByKubernetesClusterNextPage(string nextLink, string subscriptionId, string resourceGroupName, string kubernetesClusterName, CancellationToken cancellationToken = default) + public Response ListByKubernetesClusterNextPage(string nextLink, string subscriptionId, string resourceGroupName, string kubernetesClusterName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(kubernetesClusterName, nameof(kubernetesClusterName)); - using var message = CreateListByKubernetesClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, kubernetesClusterName); + using var message = CreateListByKubernetesClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, kubernetesClusterName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/KubernetesClustersRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/KubernetesClustersRestOperations.cs index c618fe0c8dc5..fce28438ebf7 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/KubernetesClustersRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/KubernetesClustersRestOperations.cs @@ -32,11 +32,11 @@ public KubernetesClustersRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-02-01"; + _apiVersion = apiVersion ?? "2025-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -44,10 +44,18 @@ internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptio uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/kubernetesClusters", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -58,6 +66,14 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/kubernetesClusters", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -66,14 +82,16 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) /// Get a list of Kubernetes clusters in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionAsync(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -91,14 +109,16 @@ public async Task> ListBySubscriptionAsync(strin /// Get a list of Kubernetes clusters in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscription(string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscription(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -114,7 +134,7 @@ public Response ListBySubscription(string subscriptionId, } } - internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -124,10 +144,18 @@ internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscripti uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/kubernetesClusters", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -140,6 +168,14 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/kubernetesClusters", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -149,15 +185,17 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str /// Get a list of Kubernetes clusters in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -176,15 +214,17 @@ public async Task> ListByResourceGroupAsync(stri /// Get a list of Kubernetes clusters in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -696,7 +736,7 @@ public Response RestartNode(string subscriptionId, string resourceGroupName, str } } - internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -704,7 +744,7 @@ internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nex return uri; } - internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -721,15 +761,17 @@ internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, st /// Get a list of Kubernetes clusters in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -748,15 +790,17 @@ public async Task> ListBySubscriptionNextPageAsy /// Get a list of Kubernetes clusters in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -772,7 +816,7 @@ public Response ListBySubscriptionNextPage(string nextLin } } - internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -780,7 +824,7 @@ internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string ne return uri; } - internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -798,16 +842,18 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -827,16 +873,18 @@ public async Task> ListByResourceGroupNextPageAs /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/L2NetworksRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/L2NetworksRestOperations.cs index 481fc34a5505..55f4a35eb3bf 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/L2NetworksRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/L2NetworksRestOperations.cs @@ -32,11 +32,11 @@ public L2NetworksRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-02-01"; + _apiVersion = apiVersion ?? "2025-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -44,10 +44,18 @@ internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptio uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/l2Networks", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -58,6 +66,14 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/l2Networks", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -66,14 +82,16 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) /// Get a list of layer 2 (L2) networks in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionAsync(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -91,14 +109,16 @@ public async Task> ListBySubscriptionAsync(string subscr /// Get a list of layer 2 (L2) networks in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscription(string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscription(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -114,7 +134,7 @@ public Response ListBySubscription(string subscriptionId, Cancell } } - internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -124,10 +144,18 @@ internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscripti uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/l2Networks", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -140,6 +168,14 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/l2Networks", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -149,15 +185,17 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str /// Get a list of layer 2 (L2) networks in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -176,15 +214,17 @@ public async Task> ListByResourceGroupAsync(string subsc /// Get a list of layer 2 (L2) networks in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -610,7 +650,7 @@ public Response Update(string subscriptionId, string } } - internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -618,7 +658,7 @@ internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nex return uri; } - internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -635,15 +675,17 @@ internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, st /// Get a list of layer 2 (L2) networks in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -662,15 +704,17 @@ public async Task> ListBySubscriptionNextPageAsync(strin /// Get a list of layer 2 (L2) networks in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -686,7 +730,7 @@ public Response ListBySubscriptionNextPage(string nextLink, strin } } - internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -694,7 +738,7 @@ internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string ne return uri; } - internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -712,16 +756,18 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -741,16 +787,18 @@ public async Task> ListByResourceGroupNextPageAsync(stri /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/L3NetworksRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/L3NetworksRestOperations.cs index e20fe6a07fb3..827f09307860 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/L3NetworksRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/L3NetworksRestOperations.cs @@ -32,11 +32,11 @@ public L3NetworksRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-02-01"; + _apiVersion = apiVersion ?? "2025-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -44,10 +44,18 @@ internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptio uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/l3Networks", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -58,6 +66,14 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/l3Networks", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -66,14 +82,16 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) /// Get a list of layer 3 (L3) networks in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionAsync(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -91,14 +109,16 @@ public async Task> ListBySubscriptionAsync(string subscr /// Get a list of layer 3 (L3) networks in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscription(string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscription(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -114,7 +134,7 @@ public Response ListBySubscription(string subscriptionId, Cancell } } - internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -124,10 +144,18 @@ internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscripti uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/l3Networks", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -140,6 +168,14 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/l3Networks", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -149,15 +185,17 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str /// Get a list of layer 3 (L3) networks in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -176,15 +214,17 @@ public async Task> ListByResourceGroupAsync(string subsc /// Get a list of layer 3 (L3) networks in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -610,7 +650,7 @@ public Response Update(string subscriptionId, string } } - internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -618,7 +658,7 @@ internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nex return uri; } - internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -635,15 +675,17 @@ internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, st /// Get a list of layer 3 (L3) networks in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -662,15 +704,17 @@ public async Task> ListBySubscriptionNextPageAsync(strin /// Get a list of layer 3 (L3) networks in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -686,7 +730,7 @@ public Response ListBySubscriptionNextPage(string nextLink, strin } } - internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -694,7 +738,7 @@ internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string ne return uri; } - internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -712,16 +756,18 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -741,16 +787,18 @@ public async Task> ListByResourceGroupNextPageAsync(stri /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/MetricsConfigurationsRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/MetricsConfigurationsRestOperations.cs index cc1f23b582da..6ec100674eab 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/MetricsConfigurationsRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/MetricsConfigurationsRestOperations.cs @@ -32,11 +32,11 @@ public MetricsConfigurationsRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-02-01"; + _apiVersion = apiVersion ?? "2025-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -48,10 +48,18 @@ internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, uri.AppendPath(clusterName, true); uri.AppendPath("/metricsConfigurations", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -66,6 +74,14 @@ internal HttpMessage CreateListByClusterRequest(string subscriptionId, string re uri.AppendPath(clusterName, true); uri.AppendPath("/metricsConfigurations", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -76,16 +92,18 @@ internal HttpMessage CreateListByClusterRequest(string subscriptionId, string re /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the cluster. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByClusterAsync(string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) + public async Task> ListByClusterAsync(string subscriptionId, string resourceGroupName, string clusterName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - using var message = CreateListByClusterRequest(subscriptionId, resourceGroupName, clusterName); + using var message = CreateListByClusterRequest(subscriptionId, resourceGroupName, clusterName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -105,16 +123,18 @@ public async Task> ListByClusterAsync( /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the cluster. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByCluster(string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) + public Response ListByCluster(string subscriptionId, string resourceGroupName, string clusterName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - using var message = CreateListByClusterRequest(subscriptionId, resourceGroupName, clusterName); + using var message = CreateListByClusterRequest(subscriptionId, resourceGroupName, clusterName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -564,7 +584,7 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } - internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -572,7 +592,7 @@ internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink return uri; } - internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -591,17 +611,19 @@ internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the cluster. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByClusterNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) + public async Task> ListByClusterNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - using var message = CreateListByClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, clusterName); + using var message = CreateListByClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, clusterName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -622,17 +644,19 @@ public async Task> ListByClusterNextPa /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the cluster. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByClusterNextPage(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) + public Response ListByClusterNextPage(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - using var message = CreateListByClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, clusterName); + using var message = CreateListByClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, clusterName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/RackSkusRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/RackSkusRestOperations.cs index 5f251fbdc184..811abcb4568f 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/RackSkusRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/RackSkusRestOperations.cs @@ -32,7 +32,7 @@ public RackSkusRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-02-01"; + _apiVersion = apiVersion ?? "2025-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/RacksRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/RacksRestOperations.cs index 882bf07daa80..fff349eb97e2 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/RacksRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/RacksRestOperations.cs @@ -32,11 +32,11 @@ public RacksRestOperations(HttpPipeline pipeline, string applicationId, Uri endp { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-02-01"; + _apiVersion = apiVersion ?? "2025-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -44,10 +44,18 @@ internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptio uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/racks", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -58,6 +66,14 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/racks", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -66,14 +82,16 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) /// Get a list of racks in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionAsync(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -91,14 +109,16 @@ public async Task> ListBySubscriptionAsync(string subscriptio /// Get a list of racks in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscription(string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscription(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -114,7 +134,7 @@ public Response ListBySubscription(string subscriptionId, Cancellation } } - internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -124,10 +144,18 @@ internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscripti uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/racks", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -140,6 +168,14 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/racks", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -149,15 +185,17 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str /// Get a list of racks in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -176,15 +214,17 @@ public async Task> ListByResourceGroupAsync(string subscripti /// Get a list of racks in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -400,7 +440,7 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } - internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -408,7 +448,7 @@ internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nex return uri; } - internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -425,15 +465,17 @@ internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, st /// Get a list of racks in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -452,15 +494,17 @@ public async Task> ListBySubscriptionNextPageAsync(string nex /// Get a list of racks in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -476,7 +520,7 @@ public Response ListBySubscriptionNextPage(string nextLink, string sub } } - internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -484,7 +528,7 @@ internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string ne return uri; } - internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -502,16 +546,18 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -531,16 +577,18 @@ public async Task> ListByResourceGroupNextPageAsync(string ne /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/StorageAppliancesRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/StorageAppliancesRestOperations.cs index 26ec39cf7a86..39a26aa68d4c 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/StorageAppliancesRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/StorageAppliancesRestOperations.cs @@ -32,11 +32,11 @@ public StorageAppliancesRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-02-01"; + _apiVersion = apiVersion ?? "2025-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -44,10 +44,18 @@ internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptio uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/storageAppliances", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -58,6 +66,14 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/storageAppliances", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -66,14 +82,16 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) /// Get a list of storage appliances in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionAsync(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -91,14 +109,16 @@ public async Task> ListBySubscriptionAsync(string /// Get a list of storage appliances in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscription(string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscription(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -114,7 +134,7 @@ public Response ListBySubscription(string subscriptionId, } } - internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -124,10 +144,18 @@ internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscripti uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/storageAppliances", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -140,6 +168,14 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/storageAppliances", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -149,15 +185,17 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str /// Get a list of storage appliances in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -176,15 +214,17 @@ public async Task> ListByResourceGroupAsync(strin /// Get a list of storage appliances in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -581,7 +621,101 @@ public Response EnableRemoteVendorManagement(string subscriptionId, string resou } } - internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + internal RequestUriBuilder CreateRunReadCommandsRequestUri(string subscriptionId, string resourceGroupName, string storageApplianceName, StorageApplianceRunReadCommandsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/storageAppliances/", false); + uri.AppendPath(storageApplianceName, true); + uri.AppendPath("/runReadCommands", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateRunReadCommandsRequest(string subscriptionId, string resourceGroupName, string storageApplianceName, StorageApplianceRunReadCommandsContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/storageAppliances/", false); + uri.AppendPath(storageApplianceName, true); + uri.AppendPath("/runReadCommands", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// Run one or more read-only commands on the provided storage appliance. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the storage appliance. + /// The request body. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task RunReadCommandsAsync(string subscriptionId, string resourceGroupName, string storageApplianceName, StorageApplianceRunReadCommandsContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(storageApplianceName, nameof(storageApplianceName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateRunReadCommandsRequest(subscriptionId, resourceGroupName, storageApplianceName, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Run one or more read-only commands on the provided storage appliance. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the storage appliance. + /// The request body. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response RunReadCommands(string subscriptionId, string resourceGroupName, string storageApplianceName, StorageApplianceRunReadCommandsContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(storageApplianceName, nameof(storageApplianceName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateRunReadCommandsRequest(subscriptionId, resourceGroupName, storageApplianceName, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -589,7 +723,7 @@ internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nex return uri; } - internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -606,15 +740,17 @@ internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, st /// Get a list of storage appliances in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -633,15 +769,17 @@ public async Task> ListBySubscriptionNextPageAsyn /// Get a list of storage appliances in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -657,7 +795,7 @@ public Response ListBySubscriptionNextPage(string nextLink } } - internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -665,7 +803,7 @@ internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string ne return uri; } - internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -683,16 +821,18 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -712,16 +852,18 @@ public async Task> ListByResourceGroupNextPageAsy /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/TrunkedNetworksRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/TrunkedNetworksRestOperations.cs index ab4c4ce3b242..fa4312efac52 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/TrunkedNetworksRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/TrunkedNetworksRestOperations.cs @@ -32,11 +32,11 @@ public TrunkedNetworksRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-02-01"; + _apiVersion = apiVersion ?? "2025-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -44,10 +44,18 @@ internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptio uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/trunkedNetworks", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -58,6 +66,14 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/trunkedNetworks", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -66,14 +82,16 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) /// Get a list of trunked networks in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionAsync(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -91,14 +109,16 @@ public async Task> ListBySubscriptionAsync(string s /// Get a list of trunked networks in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscription(string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscription(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -114,7 +134,7 @@ public Response ListBySubscription(string subscriptionId, Ca } } - internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -124,10 +144,18 @@ internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscripti uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/trunkedNetworks", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -140,6 +168,14 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/trunkedNetworks", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -149,15 +185,17 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str /// Get a list of trunked networks in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -176,15 +214,17 @@ public async Task> ListByResourceGroupAsync(string /// Get a list of trunked networks in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -610,7 +650,7 @@ public Response Update(string subscriptionId, st } } - internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -618,7 +658,7 @@ internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nex return uri; } - internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -635,15 +675,17 @@ internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, st /// Get a list of trunked networks in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -662,15 +704,17 @@ public async Task> ListBySubscriptionNextPageAsync( /// Get a list of trunked networks in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -686,7 +730,7 @@ public Response ListBySubscriptionNextPage(string nextLink, } } - internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -694,7 +738,7 @@ internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string ne return uri; } - internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -712,16 +756,18 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -741,16 +787,18 @@ public async Task> ListByResourceGroupNextPageAsync /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/VirtualMachinesRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/VirtualMachinesRestOperations.cs index 8e8178533718..1d789316b772 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/VirtualMachinesRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/VirtualMachinesRestOperations.cs @@ -32,11 +32,11 @@ public VirtualMachinesRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-02-01"; + _apiVersion = apiVersion ?? "2025-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -44,10 +44,18 @@ internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptio uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/virtualMachines", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -58,6 +66,14 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/virtualMachines", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -66,14 +82,16 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) /// Get a list of virtual machines in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionAsync(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -91,14 +109,16 @@ public async Task> ListBySubscriptionAsync(string s /// Get a list of virtual machines in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscription(string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscription(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -114,7 +134,7 @@ public Response ListBySubscription(string subscriptionId, Ca } } - internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -124,10 +144,18 @@ internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscripti uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/virtualMachines", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -140,6 +168,14 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/virtualMachines", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -149,15 +185,17 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str /// Get a list of virtual machines in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -176,15 +214,17 @@ public async Task> ListByResourceGroupAsync(string /// Get a list of virtual machines in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -602,6 +642,101 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateAssignRelayRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName, VirtualMachineAssignRelayContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/assignRelay", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateAssignRelayRequest(string subscriptionId, string resourceGroupName, string virtualMachineName, VirtualMachineAssignRelayContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/assignRelay", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + if (content != null) + { + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); + request.Content = content0; + } + _userAgent.Apply(message); + return message; + } + + /// Assigns a relay to the specified Microsoft.HybridCompute machine associated with the provided virtual machine. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the virtual machine. + /// The request body. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task AssignRelayAsync(string subscriptionId, string resourceGroupName, string virtualMachineName, VirtualMachineAssignRelayContent content = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(virtualMachineName, nameof(virtualMachineName)); + + using var message = CreateAssignRelayRequest(subscriptionId, resourceGroupName, virtualMachineName, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Assigns a relay to the specified Microsoft.HybridCompute machine associated with the provided virtual machine. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the virtual machine. + /// The request body. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response AssignRelay(string subscriptionId, string resourceGroupName, string virtualMachineName, VirtualMachineAssignRelayContent content = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(virtualMachineName, nameof(virtualMachineName)); + + using var message = CreateAssignRelayRequest(subscriptionId, resourceGroupName, virtualMachineName, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + internal RequestUriBuilder CreatePowerOffRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName, VirtualMachinePowerOffContent content) { var uri = new RawRequestUriBuilder(); @@ -955,7 +1090,7 @@ public Response Start(string subscriptionId, string resourceGroupName, string vi } } - internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -963,7 +1098,7 @@ internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nex return uri; } - internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -980,15 +1115,17 @@ internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, st /// Get a list of virtual machines in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1007,15 +1144,17 @@ public async Task> ListBySubscriptionNextPageAsync( /// Get a list of virtual machines in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -1031,7 +1170,7 @@ public Response ListBySubscriptionNextPage(string nextLink, } } - internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1039,7 +1178,7 @@ internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string ne return uri; } - internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1057,16 +1196,18 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1086,16 +1227,18 @@ public async Task> ListByResourceGroupNextPageAsync /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/VolumesRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/VolumesRestOperations.cs index cf8c2c8bdb28..136f78cca292 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/VolumesRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/VolumesRestOperations.cs @@ -32,11 +32,11 @@ public VolumesRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-02-01"; + _apiVersion = apiVersion ?? "2025-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -44,10 +44,18 @@ internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptio uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/volumes", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -58,6 +66,14 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/volumes", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -66,14 +82,16 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) /// Get a list of volumes in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionAsync(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -91,14 +109,16 @@ public async Task> ListBySubscriptionAsync(string subscript /// Get a list of volumes in the provided subscription. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscription(string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscription(string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -114,7 +134,7 @@ public Response ListBySubscription(string subscriptionId, Cancellati } } - internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -124,10 +144,18 @@ internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscripti uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/volumes", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } return uri; } - internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -140,6 +168,14 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetworkCloud/volumes", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -149,15 +185,17 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str /// Get a list of volumes in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -176,15 +214,17 @@ public async Task> ListByResourceGroupAsync(string subscrip /// Get a list of volumes in the provided resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -610,7 +650,7 @@ public Response Update(string subscriptionId, string res } } - internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -618,7 +658,7 @@ internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nex return uri; } - internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -635,15 +675,17 @@ internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, st /// Get a list of volumes in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -662,15 +704,17 @@ public async Task> ListBySubscriptionNextPageAsync(string n /// Get a list of volumes in the provided subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -686,7 +730,7 @@ public Response ListBySubscriptionNextPage(string nextLink, string s } } - internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -694,7 +738,7 @@ internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string ne return uri; } - internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -712,16 +756,18 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -741,16 +787,18 @@ public async Task> ListByResourceGroupNextPageAsync(string /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, int? top = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, top, skipToken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/autorest.md b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/autorest.md index 8cfc81c7bcc7..50fc6c2f2e2a 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/autorest.md +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/autorest.md @@ -7,8 +7,8 @@ azure-arm: true csharp: true library-name: NetworkCloud namespace: Azure.ResourceManager.NetworkCloud -require: https://github.com/Azure/azure-rest-api-specs/blob/08973141b0d31a7e75d4dc43a5224a1814a0994f/specification/networkcloud/resource-manager/readme.md -#tag: package-2025-02-01 +require: https://github.com/Azure/azure-rest-api-specs/blob/a83122b78a412ed2733042cb468a98484d99ecc2/specification/networkcloud/resource-manager/readme.md +#tag: package-2025-07-01-preview output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudAgentPoolCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudAgentPoolCollection.cs index 0ff20fc9b9ad..cd58c1b99ed4 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudAgentPoolCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudAgentPoolCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudAgentPoolCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateKubernetesClusterAgentPool() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/AgentPools_Create.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/AgentPools_Create.json // this example is just showing the usage of "AgentPools_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 @@ -96,7 +96,7 @@ public async Task CreateOrUpdate_CreateOrUpdateKubernetesClusterAgentPool() [Ignore("Only validating compilation of examples")] public async Task Get_GetKubernetesClusterAgentPool() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/AgentPools_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/AgentPools_Get.json // this example is just showing the usage of "AgentPools_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 @@ -130,7 +130,7 @@ public async Task Get_GetKubernetesClusterAgentPool() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAgentPoolsOfTheKubernetesCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/AgentPools_ListByKubernetesCluster.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/AgentPools_ListByKubernetesCluster.json // this example is just showing the usage of "AgentPools_ListByKubernetesCluster" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task GetAll_ListAgentPoolsOfTheKubernetesCluster() [Ignore("Only validating compilation of examples")] public async Task Exists_GetKubernetesClusterAgentPool() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/AgentPools_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/AgentPools_Get.json // this example is just showing the usage of "AgentPools_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 @@ -196,7 +196,7 @@ public async Task Exists_GetKubernetesClusterAgentPool() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetKubernetesClusterAgentPool() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/AgentPools_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/AgentPools_Get.json // this example is just showing the usage of "AgentPools_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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudAgentPoolResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudAgentPoolResource.cs index 172d5be4483c..c0737bf3544d 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudAgentPoolResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudAgentPoolResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudAgentPoolResource [Ignore("Only validating compilation of examples")] public async Task Get_GetKubernetesClusterAgentPool() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/AgentPools_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/AgentPools_Get.json // this example is just showing the usage of "AgentPools_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 @@ -51,7 +51,7 @@ public async Task Get_GetKubernetesClusterAgentPool() [Ignore("Only validating compilation of examples")] public async Task Update_PatchKubernetesClusterAgentPool() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/AgentPools_Patch.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/AgentPools_Patch.json // this example is just showing the usage of "AgentPools_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBareMetalMachineCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBareMetalMachineCollection.cs index 35c4c92a6f11..131461eba1d6 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBareMetalMachineCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBareMetalMachineCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudBareMetalMachineCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetBareMetalMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachines_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Get.json // this example is just showing the usage of "BareMetalMachines_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,7 +53,7 @@ public async Task Get_GetBareMetalMachine() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListBareMetalMachinesForResourceGroup() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachines_ListByResourceGroup.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_ListByResourceGroup.json // this example is just showing the usage of "BareMetalMachines_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 @@ -88,7 +88,7 @@ public async Task GetAll_ListBareMetalMachinesForResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetBareMetalMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachines_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Get.json // this example is just showing the usage of "BareMetalMachines_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 @@ -117,7 +117,7 @@ public async Task Exists_GetBareMetalMachine() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetBareMetalMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachines_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Get.json // this example is just showing the usage of "BareMetalMachines_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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBareMetalMachineKeySetCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBareMetalMachineKeySetCollection.cs index b4e95d193974..143e9e70c54f 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBareMetalMachineKeySetCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBareMetalMachineKeySetCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkCloudBareMetalMachineKeySetCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateBareMetalMachineKeySetOfCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachineKeySets_Create.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachineKeySets_Create.json // this example is just showing the usage of "BareMetalMachineKeySets_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 @@ -48,7 +48,7 @@ public async Task CreateOrUpdate_CreateOrUpdateBareMetalMachineKeySetOfCluster() "f110271b-XXXX-4163-9b99-214d91660f0e", DateTimeOffset.Parse("2022-12-31T23:59:59.008Z"), new IPAddress[] { IPAddress.Parse("192.0.2.1"), IPAddress.Parse("192.0.2.5") }, - BareMetalMachineKeySetPrivilegeLevel.Standard, + BareMetalMachineKeySetPrivilegeLevel.Other, new KeySetUser[] { new KeySetUser("userABC", new NetworkCloudSshPublicKey("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm")) @@ -64,6 +64,7 @@ public async Task CreateOrUpdate_CreateOrUpdateBareMetalMachineKeySetOfCluster() }) { OSGroupName = "standardAccessGroup", + PrivilegeLevelName = "SecurityScanner", Tags = { ["key1"] = "myvalue1", @@ -84,7 +85,7 @@ public async Task CreateOrUpdate_CreateOrUpdateBareMetalMachineKeySetOfCluster() [Ignore("Only validating compilation of examples")] public async Task Get_GetBareMetalMachineKeySetOfCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachineKeySets_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachineKeySets_Get.json // this example is just showing the usage of "BareMetalMachineKeySets_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 @@ -118,7 +119,7 @@ public async Task Get_GetBareMetalMachineKeySetOfCluster() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListBareMetalMachineKeySetsOfTheCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachineKeySets_ListByCluster.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachineKeySets_ListByCluster.json // this example is just showing the usage of "BareMetalMachineKeySets_ListByCluster" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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,7 +155,7 @@ public async Task GetAll_ListBareMetalMachineKeySetsOfTheCluster() [Ignore("Only validating compilation of examples")] public async Task Exists_GetBareMetalMachineKeySetOfCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachineKeySets_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachineKeySets_Get.json // this example is just showing the usage of "BareMetalMachineKeySets_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 @@ -184,7 +185,7 @@ public async Task Exists_GetBareMetalMachineKeySetOfCluster() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetBareMetalMachineKeySetOfCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachineKeySets_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachineKeySets_Get.json // this example is just showing the usage of "BareMetalMachineKeySets_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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBareMetalMachineKeySetResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBareMetalMachineKeySetResource.cs index 1d69e379574a..7ef77ae944b3 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBareMetalMachineKeySetResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBareMetalMachineKeySetResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkCloudBareMetalMachineKeySetResource [Ignore("Only validating compilation of examples")] public async Task Get_GetBareMetalMachineKeySetOfCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachineKeySets_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachineKeySets_Get.json // this example is just showing the usage of "BareMetalMachineKeySets_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 @@ -52,7 +52,7 @@ public async Task Get_GetBareMetalMachineKeySetOfCluster() [Ignore("Only validating compilation of examples")] public async Task Update_PatchBareMetalMachineKeySetOfCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachineKeySets_Patch.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachineKeySets_Patch.json // this example is just showing the usage of "BareMetalMachineKeySets_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBareMetalMachineResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBareMetalMachineResource.cs index e3446cc3e8f6..467d5ccbdc01 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBareMetalMachineResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBareMetalMachineResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudBareMetalMachineResource [Ignore("Only validating compilation of examples")] public async Task Get_GetBareMetalMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachines_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Get.json // this example is just showing the usage of "BareMetalMachines_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 @@ -50,7 +50,7 @@ public async Task Get_GetBareMetalMachine() [Ignore("Only validating compilation of examples")] public async Task Update_PatchBareMetalMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachines_Patch.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Patch.json // this example is just showing the usage of "BareMetalMachines_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 @@ -90,7 +90,7 @@ public async Task Update_PatchBareMetalMachine() [Ignore("Only validating compilation of examples")] public async Task Cordon_CordonBareMetalMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachines_Cordon.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Cordon.json // this example is just showing the usage of "BareMetalMachines_Cordon" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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,7 +121,7 @@ public async Task Cordon_CordonBareMetalMachine() [Ignore("Only validating compilation of examples")] public async Task PowerOff_PowerOffBareMetalMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachines_PowerOff.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_PowerOff.json // this example is just showing the usage of "BareMetalMachines_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 @@ -152,7 +152,7 @@ public async Task PowerOff_PowerOffBareMetalMachine() [Ignore("Only validating compilation of examples")] public async Task Reimage_ReimageBareMetalMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachines_Reimage.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Reimage.json // this example is just showing the usage of "BareMetalMachines_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 @@ -179,7 +179,7 @@ public async Task Reimage_ReimageBareMetalMachine() [Ignore("Only validating compilation of examples")] public async Task Replace_ReplaceBareMetalMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachines_Replace.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Replace.json // this example is just showing the usage of "BareMetalMachines_Replace" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -205,7 +205,9 @@ public async Task Replace_ReplaceBareMetalMachine() BmcMacAddress = "00:00:4f:00:57:ad", BootMacAddress = "00:00:4e:00:58:af", MachineName = "name", + SafeguardMode = BareMetalMachineReplaceSafeguardMode.All, SerialNumber = "BM1219XXX", + StoragePolicy = BareMetalMachineReplaceStoragePolicy.DiscardAll, }; ArmOperation lro = await networkCloudBareMetalMachine.ReplaceAsync(WaitUntil.Completed, content: content); NetworkCloudOperationStatusResult result = lro.Value; @@ -217,7 +219,7 @@ public async Task Replace_ReplaceBareMetalMachine() [Ignore("Only validating compilation of examples")] public async Task Restart_RestartBareMetalMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachines_Restart.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Restart.json // this example is just showing the usage of "BareMetalMachines_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 @@ -244,7 +246,7 @@ public async Task Restart_RestartBareMetalMachine() [Ignore("Only validating compilation of examples")] public async Task RunCommand_RunCommandOnBareMetalMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachines_RunCommand.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_RunCommand.json // this example is just showing the usage of "BareMetalMachines_RunCommand" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -275,7 +277,7 @@ public async Task RunCommand_RunCommandOnBareMetalMachine() [Ignore("Only validating compilation of examples")] public async Task RunDataExtracts_RunDataExtractionOnBareMetalMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachines_RunDataExtracts.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_RunDataExtracts.json // this example is just showing the usage of "BareMetalMachines_RunDataExtracts" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -292,14 +294,79 @@ public async Task RunDataExtracts_RunDataExtractionOnBareMetalMachine() NetworkCloudBareMetalMachineResource networkCloudBareMetalMachine = client.GetNetworkCloudBareMetalMachineResource(networkCloudBareMetalMachineResourceId); // invoke the operation - BareMetalMachineRunDataExtractsContent content = new BareMetalMachineRunDataExtractsContent(new BareMetalMachineCommandSpecification[] + BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsParameters = new BareMetalMachineRunDataExtractsParameters(new BareMetalMachineCommandSpecification[] { new BareMetalMachineCommandSpecification("hardware-support-data-collection") { Arguments = {"SysInfo", "TTYLog"}, } }, 60L); - ArmOperation lro = await networkCloudBareMetalMachine.RunDataExtractsAsync(WaitUntil.Completed, content); + ArmOperation lro = await networkCloudBareMetalMachine.RunDataExtractsAsync(WaitUntil.Completed, bareMetalMachineRunDataExtractsParameters); + NetworkCloudOperationStatusResult result = lro.Value; + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task RunDataExtractsRestricted_RunRestrictedDataExtractionOnBareMetalMachine() + { + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_RunDataExtractsRestricted.json + // this example is just showing the usage of "BareMetalMachines_RunDataExtractsRestricted" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkCloudBareMetalMachineResource created on azure + // for more information of creating NetworkCloudBareMetalMachineResource, please refer to the document of NetworkCloudBareMetalMachineResource + string subscriptionId = "123e4567-e89b-12d3-a456-426655440000"; + string resourceGroupName = "resourceGroupName"; + string bareMetalMachineName = "bareMetalMachineName"; + ResourceIdentifier networkCloudBareMetalMachineResourceId = NetworkCloudBareMetalMachineResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, bareMetalMachineName); + NetworkCloudBareMetalMachineResource networkCloudBareMetalMachine = client.GetNetworkCloudBareMetalMachineResource(networkCloudBareMetalMachineResourceId); + + // invoke the operation + BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsRestrictedParameters = new BareMetalMachineRunDataExtractsParameters(new BareMetalMachineCommandSpecification[] + { +new BareMetalMachineCommandSpecification("cluster-cve-report") +{ +Arguments = {"--min-severity=8"}, +} + }, 60L); + ArmOperation lro = await networkCloudBareMetalMachine.RunDataExtractsRestrictedAsync(WaitUntil.Completed, bareMetalMachineRunDataExtractsRestrictedParameters); + NetworkCloudOperationStatusResult result = lro.Value; + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task RunReadCommands_RunAndRetrieveOutputFromASingleReadOnlyCommandOnBareMetalMachine() + { + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_RunReadCommands_Hostname.json + // this example is just showing the usage of "BareMetalMachines_RunReadCommands" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkCloudBareMetalMachineResource created on azure + // for more information of creating NetworkCloudBareMetalMachineResource, please refer to the document of NetworkCloudBareMetalMachineResource + string subscriptionId = "123e4567-e89b-12d3-a456-426655440000"; + string resourceGroupName = "resourceGroupName"; + string bareMetalMachineName = "bareMetalMachineName"; + ResourceIdentifier networkCloudBareMetalMachineResourceId = NetworkCloudBareMetalMachineResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, bareMetalMachineName); + NetworkCloudBareMetalMachineResource networkCloudBareMetalMachine = client.GetNetworkCloudBareMetalMachineResource(networkCloudBareMetalMachineResourceId); + + // invoke the operation + BareMetalMachineRunReadCommandsContent content = new BareMetalMachineRunReadCommandsContent(new BareMetalMachineCommandSpecification[] + { +new BareMetalMachineCommandSpecification("hostname") + }, 60L); + ArmOperation lro = await networkCloudBareMetalMachine.RunReadCommandsAsync(WaitUntil.Completed, content); NetworkCloudOperationStatusResult result = lro.Value; Console.WriteLine($"Succeeded: {result}"); @@ -309,7 +376,7 @@ public async Task RunDataExtracts_RunDataExtractionOnBareMetalMachine() [Ignore("Only validating compilation of examples")] public async Task RunReadCommands_RunAndRetrieveOutputFromReadOnlyCommandsOnBareMetalMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachines_RunReadCommands.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_RunReadCommands_Multiple.json // this example is just showing the usage of "BareMetalMachines_RunReadCommands" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -347,7 +414,7 @@ public async Task RunReadCommands_RunAndRetrieveOutputFromReadOnlyCommandsOnBare [Ignore("Only validating compilation of examples")] public async Task Start_StartBareMetalMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachines_Start.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Start.json // this example is just showing the usage of "BareMetalMachines_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 @@ -374,7 +441,7 @@ public async Task Start_StartBareMetalMachine() [Ignore("Only validating compilation of examples")] public async Task Uncordon_UncordonBareMetalMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachines_Uncordon.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Uncordon.json // this example is just showing the usage of "BareMetalMachines_Uncordon" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBmcKeySetCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBmcKeySetCollection.cs index 401115df5409..0c686bb58717 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBmcKeySetCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBmcKeySetCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudBmcKeySetCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateBaseboardManagementControllerKeySetOfCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BmcKeySets_Create.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BmcKeySets_Create.json // this example is just showing the usage of "BmcKeySets_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 @@ -81,7 +81,7 @@ public async Task CreateOrUpdate_CreateOrUpdateBaseboardManagementControllerKeyS [Ignore("Only validating compilation of examples")] public async Task Get_GetBaseboardManagementControllerKeySetOfCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BmcKeySets_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BmcKeySets_Get.json // this example is just showing the usage of "BmcKeySets_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 @@ -115,7 +115,7 @@ public async Task Get_GetBaseboardManagementControllerKeySetOfCluster() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListBaseboardManagementControllerKeySetsOfTheCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BmcKeySets_ListByCluster.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BmcKeySets_ListByCluster.json // this example is just showing the usage of "BmcKeySets_ListByCluster" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -151,7 +151,7 @@ public async Task GetAll_ListBaseboardManagementControllerKeySetsOfTheCluster() [Ignore("Only validating compilation of examples")] public async Task Exists_GetBaseboardManagementControllerKeySetOfCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BmcKeySets_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BmcKeySets_Get.json // this example is just showing the usage of "BmcKeySets_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 @@ -181,7 +181,7 @@ public async Task Exists_GetBaseboardManagementControllerKeySetOfCluster() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetBaseboardManagementControllerKeySetOfCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BmcKeySets_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BmcKeySets_Get.json // this example is just showing the usage of "BmcKeySets_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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBmcKeySetResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBmcKeySetResource.cs index 4f4acb4736ce..8cd3f7f62422 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBmcKeySetResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudBmcKeySetResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudBmcKeySetResource [Ignore("Only validating compilation of examples")] public async Task Get_GetBaseboardManagementControllerKeySetOfCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BmcKeySets_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BmcKeySets_Get.json // this example is just showing the usage of "BmcKeySets_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 @@ -51,7 +51,7 @@ public async Task Get_GetBaseboardManagementControllerKeySetOfCluster() [Ignore("Only validating compilation of examples")] public async Task Update_PatchBaseboardManagementControllerKeySetOfCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BmcKeySets_Patch.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BmcKeySets_Patch.json // this example is just showing the usage of "BmcKeySets_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudCloudServicesNetworkCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudCloudServicesNetworkCollection.cs index 2641e042f2e6..0b61967ab453 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudCloudServicesNetworkCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudCloudServicesNetworkCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkCloudCloudServicesNetworkCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateCloudServicesNetwork() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/CloudServicesNetworks_Create.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/CloudServicesNetworks_Create.json // this example is just showing the usage of "CloudServicesNetworks_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 @@ -51,6 +51,12 @@ public async Task CreateOrUpdate_CreateOrUpdateCloudServicesNetwork() } })}, EnableDefaultEgressEndpoints = CloudServicesNetworkEnableDefaultEgressEndpoint.False, + StorageOptions = new CloudServicesNetworkStorageOptions + { + Mode = CloudServicesNetworkStorageMode.Standard, + SizeMiB = 1048576L, + StorageApplianceId = new ResourceIdentifier("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/StorageAppliances/storageApplianceName"), + }, Tags = { ["key1"] = "myvalue1", @@ -71,7 +77,7 @@ public async Task CreateOrUpdate_CreateOrUpdateCloudServicesNetwork() [Ignore("Only validating compilation of examples")] public async Task Get_GetCloudServicesNetwork() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/CloudServicesNetworks_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/CloudServicesNetworks_Get.json // this example is just showing the usage of "CloudServicesNetworks_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 @@ -104,7 +110,7 @@ public async Task Get_GetCloudServicesNetwork() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListCloudServicesNetworksForResourceGroup() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/CloudServicesNetworks_ListByResourceGroup.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/CloudServicesNetworks_ListByResourceGroup.json // this example is just showing the usage of "CloudServicesNetworks_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 @@ -139,7 +145,7 @@ public async Task GetAll_ListCloudServicesNetworksForResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetCloudServicesNetwork() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/CloudServicesNetworks_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/CloudServicesNetworks_Get.json // this example is just showing the usage of "CloudServicesNetworks_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 @@ -168,7 +174,7 @@ public async Task Exists_GetCloudServicesNetwork() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetCloudServicesNetwork() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/CloudServicesNetworks_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/CloudServicesNetworks_Get.json // this example is just showing the usage of "CloudServicesNetworks_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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudCloudServicesNetworkResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudCloudServicesNetworkResource.cs index 5df28f43ba1e..758620551225 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudCloudServicesNetworkResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudCloudServicesNetworkResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudCloudServicesNetworkResource [Ignore("Only validating compilation of examples")] public async Task Get_GetCloudServicesNetwork() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/CloudServicesNetworks_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/CloudServicesNetworks_Get.json // this example is just showing the usage of "CloudServicesNetworks_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 @@ -50,7 +50,7 @@ public async Task Get_GetCloudServicesNetwork() [Ignore("Only validating compilation of examples")] public async Task Update_PatchCloudServicesNetwork() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/CloudServicesNetworks_Patch.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/CloudServicesNetworks_Patch.json // this example is just showing the usage of "CloudServicesNetworks_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 @@ -82,6 +82,12 @@ public async Task Update_PatchCloudServicesNetwork() } })}, EnableDefaultEgressEndpoints = CloudServicesNetworkEnableDefaultEgressEndpoint.False, + StorageOptions = new CloudServicesNetworkStorageOptionsPatch + { + Mode = CloudServicesNetworkStorageMode.Standard, + SizeMiB = 1048576L, + StorageApplianceId = new ResourceIdentifier("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/StorageAppliances/storageApplianceName"), + }, }; ArmOperation lro = await networkCloudCloudServicesNetwork.UpdateAsync(WaitUntil.Completed, patch); NetworkCloudCloudServicesNetworkResource result = lro.Value; diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterCollection.cs index d72a2016c6b5..513a8fa57fc3 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_NetworkCloudClusterCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Clusters_Create.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Create.json // this example is just showing the usage of "Clusters_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 @@ -92,10 +92,6 @@ public async Task CreateOrUpdate_CreateOrUpdateCluster() }, }, ClusterLocation = "Foo Street, 3rd Floor, row 9", - ClusterServicePrincipal = new ServicePrincipalInformation("12345678-1234-1234-1234-123456789012", "00000008-0004-0004-0004-000000000012", "80000000-4000-4000-4000-120000000000") - { - Password = "{password}", - }, CommandOutputSettings = new CommandOutputSettings { AssociatedIdentity = new ManagedServiceIdentitySelector @@ -104,6 +100,16 @@ public async Task CreateOrUpdate_CreateOrUpdateCluster() UserAssignedIdentityResourceId = new ResourceIdentifier("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1"), }, ContainerUri = new Uri("https://myaccount.blob.core.windows.net/mycontainer?restype=container"), + Overrides = {new CommandOutputOverride +{ +AssociatedIdentity = new ManagedServiceIdentitySelector +{ +IdentityType = ManagedServiceIdentitySelectorType.UserAssignedIdentity, +UserAssignedIdentityResourceId = new ResourceIdentifier("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2"), +}, +CommandOutputType = CommandOutputType.StorageRunReadCommands, +ContainerUri = new Uri("https://myaccount.blob.core.windows.net/myContainer2?restype=container"), +}}, }, ComputeDeploymentThreshold = new ValidationThreshold(ValidationThresholdGrouping.PerCluster, ValidationThresholdType.PercentSuccess, 90L), ComputeRackDefinitions = {new NetworkCloudRackDefinition(new ResourceIdentifier("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName"), "AA1234", new ResourceIdentifier("/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName")) @@ -173,7 +179,7 @@ public async Task CreateOrUpdate_CreateOrUpdateCluster() [Ignore("Only validating compilation of examples")] public async Task Get_GetCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Clusters_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Get.json // this example is just showing the usage of "Clusters_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 @@ -206,7 +212,7 @@ public async Task Get_GetCluster() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListClustersForResourceGroup() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Clusters_ListByResourceGroup.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_ListByResourceGroup.json // this example is just showing the usage of "Clusters_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 @@ -241,7 +247,7 @@ public async Task GetAll_ListClustersForResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Clusters_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Get.json // this example is just showing the usage of "Clusters_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 @@ -270,7 +276,7 @@ public async Task Exists_GetCluster() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Clusters_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Get.json // this example is just showing the usage of "Clusters_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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterManagerCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterManagerCollection.cs index 770f27f757fb..cadbef65dbab 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterManagerCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterManagerCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_NetworkCloudClusterManagerCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateClusterManager() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/ClusterManagers_Create.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterManagers_Create.json // this example is just showing the usage of "ClusterManagers_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_CreateOrUpdateClusterManager() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateClusterManagerWithUserAssignedIdentity() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/ClusterManagers_Create_Uami.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterManagers_Create_Uami.json // this example is just showing the usage of "ClusterManagers_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 @@ -126,7 +126,7 @@ public async Task CreateOrUpdate_CreateOrUpdateClusterManagerWithUserAssignedIde [Ignore("Only validating compilation of examples")] public async Task Get_GetClusterManager() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/ClusterManagers_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterManagers_Get.json // this example is just showing the usage of "ClusterManagers_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 @@ -159,7 +159,7 @@ public async Task Get_GetClusterManager() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListClusterManagersForResourceGroup() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/ClusterManagers_ListByResourceGroup.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterManagers_ListByResourceGroup.json // this example is just showing the usage of "ClusterManagers_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 @@ -194,7 +194,7 @@ public async Task GetAll_ListClusterManagersForResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetClusterManager() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/ClusterManagers_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterManagers_Get.json // this example is just showing the usage of "ClusterManagers_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 @@ -223,7 +223,7 @@ public async Task Exists_GetClusterManager() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetClusterManager() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/ClusterManagers_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterManagers_Get.json // this example is just showing the usage of "ClusterManagers_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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterManagerResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterManagerResource.cs index 7dc4b589c4b4..5de35f4cf0cc 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterManagerResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterManagerResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkCloudClusterManagerResource [Ignore("Only validating compilation of examples")] public async Task Get_GetClusterManager() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/ClusterManagers_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterManagers_Get.json // this example is just showing the usage of "ClusterManagers_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 @@ -51,7 +51,7 @@ public async Task Get_GetClusterManager() [Ignore("Only validating compilation of examples")] public async Task Update_PatchClusterManager() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/ClusterManagers_Patch.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterManagers_Patch.json // this example is just showing the usage of "ClusterManagers_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterMetricsConfigurationCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterMetricsConfigurationCollection.cs index e00b3fcce471..a2630038d70f 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterMetricsConfigurationCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterMetricsConfigurationCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudClusterMetricsConfigurationCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateMetricsConfigurationOfCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/ClusterMetricsConfigurations_Create.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterMetricsConfigurations_Create.json // this example is just showing the usage of "MetricsConfigurations_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 @@ -64,7 +64,7 @@ public async Task CreateOrUpdate_CreateOrUpdateMetricsConfigurationOfCluster() [Ignore("Only validating compilation of examples")] public async Task Get_GetMetricsConfigurationOfCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/ClusterMetricsConfigurations_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterMetricsConfigurations_Get.json // this example is just showing the usage of "MetricsConfigurations_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 @@ -98,7 +98,7 @@ public async Task Get_GetMetricsConfigurationOfCluster() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListMetricsConfigurationsOfTheCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/ClusterMetricsConfigurations_ListByCluster.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterMetricsConfigurations_ListByCluster.json // this example is just showing the usage of "MetricsConfigurations_ListByCluster" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -134,7 +134,7 @@ public async Task GetAll_ListMetricsConfigurationsOfTheCluster() [Ignore("Only validating compilation of examples")] public async Task Exists_GetMetricsConfigurationOfCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/ClusterMetricsConfigurations_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterMetricsConfigurations_Get.json // this example is just showing the usage of "MetricsConfigurations_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 @@ -164,7 +164,7 @@ public async Task Exists_GetMetricsConfigurationOfCluster() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetMetricsConfigurationOfCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/ClusterMetricsConfigurations_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterMetricsConfigurations_Get.json // this example is just showing the usage of "MetricsConfigurations_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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterMetricsConfigurationResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterMetricsConfigurationResource.cs index a96b6f33f6b4..bdc2fb01d5fd 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterMetricsConfigurationResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterMetricsConfigurationResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudClusterMetricsConfigurationResource [Ignore("Only validating compilation of examples")] public async Task Get_GetMetricsConfigurationOfCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/ClusterMetricsConfigurations_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterMetricsConfigurations_Get.json // this example is just showing the usage of "MetricsConfigurations_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 @@ -51,7 +51,7 @@ public async Task Get_GetMetricsConfigurationOfCluster() [Ignore("Only validating compilation of examples")] public async Task Update_PatchMetricsConfigurationOfCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/ClusterMetricsConfigurations_Patch.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterMetricsConfigurations_Patch.json // this example is just showing the usage of "MetricsConfigurations_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterResource.cs index 78c01675954d..23830e93897e 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudClusterResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkCloudClusterResource [Ignore("Only validating compilation of examples")] public async Task Get_GetCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Clusters_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Get.json // this example is just showing the usage of "Clusters_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 @@ -51,7 +51,7 @@ public async Task Get_GetCluster() [Ignore("Only validating compilation of examples")] public async Task Update_PatchClusterAggregatorOrSingleRackDefinition() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json // this example is just showing the usage of "Clusters_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 @@ -117,7 +117,7 @@ public async Task Update_PatchClusterAggregatorOrSingleRackDefinition() [Ignore("Only validating compilation of examples")] public async Task Update_PatchClusterAnalyticsOutput() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Clusters_Patch_AnalyticsOutput.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Patch_AnalyticsOutput.json // this example is just showing the usage of "Clusters_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 @@ -173,7 +173,7 @@ public async Task Update_PatchClusterAnalyticsOutput() [Ignore("Only validating compilation of examples")] public async Task Update_PatchClusterCommandOutput() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Clusters_Patch_CommandOutput.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Patch_CommandOutput.json // this example is just showing the usage of "Clusters_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 @@ -213,6 +213,16 @@ public async Task Update_PatchClusterCommandOutput() UserAssignedIdentityResourceId = new ResourceIdentifier("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2"), }, ContainerUri = new Uri("https://myaccount.blob.core.windows.net/mycontainer?restype=container"), + Overrides = {new CommandOutputOverride +{ +AssociatedIdentity = new ManagedServiceIdentitySelector +{ +IdentityType = ManagedServiceIdentitySelectorType.UserAssignedIdentity, +UserAssignedIdentityResourceId = new ResourceIdentifier("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2"), +}, +CommandOutputType = CommandOutputType.StorageRunReadCommands, +ContainerUri = new Uri("https://myaccount.blob.core.windows.net/myContainer2?restype=container"), +}}, }, }; ArmOperation lro = await networkCloudCluster.UpdateAsync(WaitUntil.Completed, patch); @@ -229,7 +239,7 @@ public async Task Update_PatchClusterCommandOutput() [Ignore("Only validating compilation of examples")] public async Task Update_PatchClusterLocation() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Clusters_Patch_Location.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Patch_Location.json // this example is just showing the usage of "Clusters_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 @@ -269,7 +279,7 @@ public async Task Update_PatchClusterLocation() [Ignore("Only validating compilation of examples")] public async Task Update_PatchRuntimeProtectionConfiguration() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Clusters_Patch_RuntimeProtectionConfiguration.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Patch_RuntimeProtectionConfiguration.json // this example is just showing the usage of "Clusters_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 @@ -309,7 +319,7 @@ public async Task Update_PatchRuntimeProtectionConfiguration() [Ignore("Only validating compilation of examples")] public async Task Update_PatchSecretArchive() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Clusters_Patch_SecretArchive.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Patch_SecretArchive.json // this example is just showing the usage of "Clusters_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 @@ -357,7 +367,7 @@ public async Task Update_PatchSecretArchive() [Ignore("Only validating compilation of examples")] public async Task Update_PatchUpdateStrategy() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Clusters_Patch_UpdateStrategy.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Patch_UpdateStrategy.json // this example is just showing the usage of "Clusters_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 @@ -401,7 +411,7 @@ public async Task Update_PatchUpdateStrategy() [Ignore("Only validating compilation of examples")] public async Task Update_PatchVulnerabilityScanning() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Clusters_Patch_VulnerabilityScanning.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Patch_VulnerabilityScanning.json // this example is just showing the usage of "Clusters_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 @@ -441,7 +451,7 @@ public async Task Update_PatchVulnerabilityScanning() [Ignore("Only validating compilation of examples")] public async Task ContinueUpdateVersion_ContinueUpdateClusterVersion() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Clusters_ContinueUpdateVersion.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_ContinueUpdateVersion.json // this example is just showing the usage of "Clusters_ContinueUpdateVersion" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -472,7 +482,7 @@ public async Task ContinueUpdateVersion_ContinueUpdateClusterVersion() [Ignore("Only validating compilation of examples")] public async Task Deploy_DeployCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Clusters_Deploy.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Deploy.json // this example is just showing the usage of "Clusters_Deploy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -500,7 +510,7 @@ public async Task Deploy_DeployCluster() [Ignore("Only validating compilation of examples")] public async Task Deploy_DeployClusterSkippingValidation() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Clusters_Deploy_SkipValidation.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Deploy_SkipValidation.json // this example is just showing the usage of "Clusters_Deploy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -531,7 +541,7 @@ public async Task Deploy_DeployClusterSkippingValidation() [Ignore("Only validating compilation of examples")] public async Task ScanRuntime_ExecuteARuntimeProtectionScanOnTheCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Clusters_ScanRuntime.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_ScanRuntime.json // this example is just showing the usage of "Clusters_ScanRuntime" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -562,7 +572,7 @@ public async Task ScanRuntime_ExecuteARuntimeProtectionScanOnTheCluster() [Ignore("Only validating compilation of examples")] public async Task UpdateVersion_UpdateClusterVersion() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Clusters_UpdateVersion.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_UpdateVersion.json // this example is just showing the usage of "Clusters_UpdateVersion" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudKubernetesClusterCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudKubernetesClusterCollection.cs index 2817c9658b1c..50d3c5a78981 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudKubernetesClusterCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudKubernetesClusterCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_NetworkCloudKubernetesClusterCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateKubernetesCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/KubernetesClusters_Create.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusters_Create.json // this example is just showing the usage of "KubernetesClusters_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 @@ -171,7 +171,7 @@ public async Task CreateOrUpdate_CreateOrUpdateKubernetesCluster() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateKubernetesClusterWithALayer2LoadBalancer() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/KubernetesClusters_L2LoadBalancer_Create.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusters_L2LoadBalancer_Create.json // this example is just showing the usage of "KubernetesClusters_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 @@ -300,7 +300,7 @@ public async Task CreateOrUpdate_CreateOrUpdateKubernetesClusterWithALayer2LoadB [Ignore("Only validating compilation of examples")] public async Task Get_GetKubernetesCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/KubernetesClusters_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusters_Get.json // this example is just showing the usage of "KubernetesClusters_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 @@ -333,7 +333,7 @@ public async Task Get_GetKubernetesCluster() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListKubernetesClustersForResourceGroup() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/KubernetesClusters_ListByResourceGroup.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusters_ListByResourceGroup.json // this example is just showing the usage of "KubernetesClusters_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 @@ -368,7 +368,7 @@ public async Task GetAll_ListKubernetesClustersForResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetKubernetesCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/KubernetesClusters_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusters_Get.json // this example is just showing the usage of "KubernetesClusters_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 @@ -397,7 +397,7 @@ public async Task Exists_GetKubernetesCluster() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetKubernetesCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/KubernetesClusters_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusters_Get.json // this example is just showing the usage of "KubernetesClusters_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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudKubernetesClusterFeatureCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudKubernetesClusterFeatureCollection.cs index fb04af23789e..40b90c859fbc 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudKubernetesClusterFeatureCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudKubernetesClusterFeatureCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudKubernetesClusterFeatureCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateKubernetesClusterFeature() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/KubernetesClusterFeatures_Create.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusterFeatures_Create.json // this example is just showing the usage of "KubernetesClusterFeatures_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 @@ -64,7 +64,7 @@ public async Task CreateOrUpdate_CreateOrUpdateKubernetesClusterFeature() [Ignore("Only validating compilation of examples")] public async Task Get_GetKubernetesClusterFeature() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/KubernetesClusterFeatures_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusterFeatures_Get.json // this example is just showing the usage of "KubernetesClusterFeatures_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 @@ -98,7 +98,7 @@ public async Task Get_GetKubernetesClusterFeature() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListFeaturesForTheKubernetesCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/KubernetesClusterFeatures_ListByKubernetesCluster.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusterFeatures_ListByKubernetesCluster.json // this example is just showing the usage of "KubernetesClusterFeatures_ListByKubernetesCluster" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -134,7 +134,7 @@ public async Task GetAll_ListFeaturesForTheKubernetesCluster() [Ignore("Only validating compilation of examples")] public async Task Exists_GetKubernetesClusterFeature() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/KubernetesClusterFeatures_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusterFeatures_Get.json // this example is just showing the usage of "KubernetesClusterFeatures_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 @@ -164,7 +164,7 @@ public async Task Exists_GetKubernetesClusterFeature() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetKubernetesClusterFeature() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/KubernetesClusterFeatures_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusterFeatures_Get.json // this example is just showing the usage of "KubernetesClusterFeatures_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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudKubernetesClusterFeatureResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudKubernetesClusterFeatureResource.cs index 040a80662eb3..07309fcf0583 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudKubernetesClusterFeatureResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudKubernetesClusterFeatureResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudKubernetesClusterFeatureResource [Ignore("Only validating compilation of examples")] public async Task Get_GetKubernetesClusterFeature() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/KubernetesClusterFeatures_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusterFeatures_Get.json // this example is just showing the usage of "KubernetesClusterFeatures_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 @@ -51,7 +51,7 @@ public async Task Get_GetKubernetesClusterFeature() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteKubernetesClusterFeature() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/KubernetesClusterFeatures_Delete.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusterFeatures_Delete.json // this example is just showing the usage of "KubernetesClusterFeatures_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 @@ -79,7 +79,7 @@ public async Task Delete_DeleteKubernetesClusterFeature() [Ignore("Only validating compilation of examples")] public async Task Update_PatchKubernetesClusterFeature() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/KubernetesClusterFeatures_Patch.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusterFeatures_Patch.json // this example is just showing the usage of "KubernetesClusterFeatures_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudKubernetesClusterResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudKubernetesClusterResource.cs index fb8cdb3590d7..a78af29182a5 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudKubernetesClusterResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudKubernetesClusterResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudKubernetesClusterResource [Ignore("Only validating compilation of examples")] public async Task Get_GetKubernetesCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/KubernetesClusters_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusters_Get.json // this example is just showing the usage of "KubernetesClusters_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 @@ -50,7 +50,7 @@ public async Task Get_GetKubernetesCluster() [Ignore("Only validating compilation of examples")] public async Task Update_PatchKubernetesCluster() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/KubernetesClusters_Patch.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusters_Patch.json // this example is just showing the usage of "KubernetesClusters_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 @@ -96,7 +96,7 @@ public async Task Update_PatchKubernetesCluster() [Ignore("Only validating compilation of examples")] public async Task RestartNode_RestartAKubernetesClusterNode() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/KubernetesClusters_RestartNode.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusters_RestartNode.json // this example is just showing the usage of "KubernetesClusters_RestartNode" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudL2NetworkCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudL2NetworkCollection.cs index b329dbb935c8..1268ae3a3777 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudL2NetworkCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudL2NetworkCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkCloudL2NetworkCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateL2Network() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/L2Networks_Create.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L2Networks_Create.json // this example is just showing the usage of "L2Networks_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 @@ -65,7 +65,7 @@ public async Task CreateOrUpdate_CreateOrUpdateL2Network() [Ignore("Only validating compilation of examples")] public async Task Get_GetL2Network() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/L2Networks_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L2Networks_Get.json // this example is just showing the usage of "L2Networks_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 @@ -98,7 +98,7 @@ public async Task Get_GetL2Network() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListL2NetworksForResourceGroup() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/L2Networks_ListByResourceGroup.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L2Networks_ListByResourceGroup.json // this example is just showing the usage of "L2Networks_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 @@ -133,7 +133,7 @@ public async Task GetAll_ListL2NetworksForResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetL2Network() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/L2Networks_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L2Networks_Get.json // this example is just showing the usage of "L2Networks_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 @@ -162,7 +162,7 @@ public async Task Exists_GetL2Network() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetL2Network() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/L2Networks_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L2Networks_Get.json // this example is just showing the usage of "L2Networks_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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudL2NetworkResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudL2NetworkResource.cs index cdbef3faf289..0ed7576eb5b7 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudL2NetworkResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudL2NetworkResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudL2NetworkResource [Ignore("Only validating compilation of examples")] public async Task Get_GetL2Network() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/L2Networks_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L2Networks_Get.json // this example is just showing the usage of "L2Networks_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 @@ -50,7 +50,7 @@ public async Task Get_GetL2Network() [Ignore("Only validating compilation of examples")] public async Task Update_PatchL2Network() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/L2Networks_Patch.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L2Networks_Patch.json // this example is just showing the usage of "L2Networks_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudL3NetworkCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudL3NetworkCollection.cs index bde0e8e54344..929584971c4d 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudL3NetworkCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudL3NetworkCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkCloudL3NetworkCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateL3Network() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/L3Networks_Create.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L3Networks_Create.json // this example is just showing the usage of "L3Networks_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 @@ -67,7 +67,7 @@ public async Task CreateOrUpdate_CreateOrUpdateL3Network() [Ignore("Only validating compilation of examples")] public async Task Get_GetL3network() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/L3Networks_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L3Networks_Get.json // this example is just showing the usage of "L3Networks_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 @@ -100,7 +100,7 @@ public async Task Get_GetL3network() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListL3NetworksForResourceGroup() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/L3Networks_ListByResourceGroup.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L3Networks_ListByResourceGroup.json // this example is just showing the usage of "L3Networks_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 @@ -135,7 +135,7 @@ public async Task GetAll_ListL3NetworksForResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetL3network() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/L3Networks_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L3Networks_Get.json // this example is just showing the usage of "L3Networks_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 @@ -164,7 +164,7 @@ public async Task Exists_GetL3network() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetL3network() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/L3Networks_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L3Networks_Get.json // this example is just showing the usage of "L3Networks_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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudL3NetworkResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudL3NetworkResource.cs index 55251efa487b..cbf64032a952 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudL3NetworkResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudL3NetworkResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudL3NetworkResource [Ignore("Only validating compilation of examples")] public async Task Get_GetL3network() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/L3Networks_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L3Networks_Get.json // this example is just showing the usage of "L3Networks_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 @@ -50,7 +50,7 @@ public async Task Get_GetL3network() [Ignore("Only validating compilation of examples")] public async Task Update_PatchL3Network() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/L3Networks_Patch.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L3Networks_Patch.json // this example is just showing the usage of "L3Networks_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudRackCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudRackCollection.cs index de11e1289077..248e6bb02f47 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudRackCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudRackCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudRackCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetRack() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Racks_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Racks_Get.json // this example is just showing the usage of "Racks_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,7 +53,7 @@ public async Task Get_GetRack() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListRacksForResourceGroup() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Racks_ListByResourceGroup.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Racks_ListByResourceGroup.json // this example is just showing the usage of "Racks_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 @@ -88,7 +88,7 @@ public async Task GetAll_ListRacksForResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetRack() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Racks_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Racks_Get.json // this example is just showing the usage of "Racks_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 @@ -117,7 +117,7 @@ public async Task Exists_GetRack() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetRack() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Racks_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Racks_Get.json // this example is just showing the usage of "Racks_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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudRackResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudRackResource.cs index 01f9c4e62be6..baf191043550 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudRackResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudRackResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudRackResource [Ignore("Only validating compilation of examples")] public async Task Get_GetRack() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Racks_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Racks_Get.json // this example is just showing the usage of "Racks_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 @@ -50,7 +50,7 @@ public async Task Get_GetRack() [Ignore("Only validating compilation of examples")] public async Task Update_PatchRack() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Racks_Patch.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Racks_Patch.json // this example is just showing the usage of "Racks_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudRackSkuCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudRackSkuCollection.cs index 09bdf676e750..782ebc4574a1 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudRackSkuCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudRackSkuCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudRackSkuCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetRackSKUResource() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/RackSkus_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/RackSkus_Get.json // this example is just showing the usage of "RackSkus_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 @@ -52,7 +52,7 @@ public async Task Get_GetRackSKUResource() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListRackSKUsForSubscription() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/RackSkus_ListBySubscription.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/RackSkus_ListBySubscription.json // this example is just showing the usage of "RackSkus_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 @@ -86,7 +86,7 @@ public async Task GetAll_ListRackSKUsForSubscription() [Ignore("Only validating compilation of examples")] public async Task Exists_GetRackSKUResource() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/RackSkus_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/RackSkus_Get.json // this example is just showing the usage of "RackSkus_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 @@ -114,7 +114,7 @@ public async Task Exists_GetRackSKUResource() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetRackSKUResource() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/RackSkus_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/RackSkus_Get.json // this example is just showing the usage of "RackSkus_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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudRackSkuResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudRackSkuResource.cs index f829c9ed4a7f..918c0fdb5911 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudRackSkuResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudRackSkuResource.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkCloudRackSkuResource [Ignore("Only validating compilation of examples")] public async Task Get_GetRackSKUResource() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/RackSkus_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/RackSkus_Get.json // this example is just showing the usage of "RackSkus_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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudStorageApplianceCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudStorageApplianceCollection.cs index 8b0545d6487a..d262e2147252 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudStorageApplianceCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudStorageApplianceCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudStorageApplianceCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetStorageAppliance() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/StorageAppliances_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/StorageAppliances_Get.json // this example is just showing the usage of "StorageAppliances_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,7 +53,7 @@ public async Task Get_GetStorageAppliance() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListStorageAppliancesForResourceGroup() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/StorageAppliances_ListByResourceGroup.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/StorageAppliances_ListByResourceGroup.json // this example is just showing the usage of "StorageAppliances_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 @@ -88,7 +88,7 @@ public async Task GetAll_ListStorageAppliancesForResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetStorageAppliance() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/StorageAppliances_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/StorageAppliances_Get.json // this example is just showing the usage of "StorageAppliances_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 @@ -117,7 +117,7 @@ public async Task Exists_GetStorageAppliance() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetStorageAppliance() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/StorageAppliances_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/StorageAppliances_Get.json // this example is just showing the usage of "StorageAppliances_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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudStorageApplianceResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudStorageApplianceResource.cs index 450f64628906..28c39923ab34 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudStorageApplianceResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudStorageApplianceResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudStorageApplianceResource [Ignore("Only validating compilation of examples")] public async Task Get_GetStorageAppliance() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/StorageAppliances_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/StorageAppliances_Get.json // this example is just showing the usage of "StorageAppliances_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 @@ -50,7 +50,7 @@ public async Task Get_GetStorageAppliance() [Ignore("Only validating compilation of examples")] public async Task Update_PatchStorageAppliance() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/StorageAppliances_Patch.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/StorageAppliances_Patch.json // this example is just showing the usage of "StorageAppliances_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 @@ -90,7 +90,7 @@ public async Task Update_PatchStorageAppliance() [Ignore("Only validating compilation of examples")] public async Task DisableRemoteVendorManagement_TurnOffRemoteVendorManagementForStorageAppliance() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/StorageAppliances_DisableRemoteVendorManagement.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/StorageAppliances_DisableRemoteVendorManagement.json // this example is just showing the usage of "StorageAppliances_DisableRemoteVendorManagement" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -117,7 +117,7 @@ public async Task DisableRemoteVendorManagement_TurnOffRemoteVendorManagementFor [Ignore("Only validating compilation of examples")] public async Task EnableRemoteVendorManagement_TurnOnRemoteVendorManagementForStorageAppliance() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/StorageAppliances_EnableRemoteVendorManagement.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/StorageAppliances_EnableRemoteVendorManagement.json // this example is just showing the usage of "StorageAppliances_EnableRemoteVendorManagement" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -143,5 +143,39 @@ public async Task EnableRemoteVendorManagement_TurnOnRemoteVendorManagementForSt Console.WriteLine($"Succeeded: {result}"); } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task RunReadCommands_RunAndRetrieveOutputFromReadOnlyCommandsOnStorageAppliance() + { + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/StorageAppliances_RunReadCommands.json + // this example is just showing the usage of "StorageAppliances_RunReadCommands" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkCloudStorageApplianceResource created on azure + // for more information of creating NetworkCloudStorageApplianceResource, please refer to the document of NetworkCloudStorageApplianceResource + string subscriptionId = "123e4567-e89b-12d3-a456-426655440000"; + string resourceGroupName = "resourceGroupName"; + string storageApplianceName = "storageApplianceName"; + ResourceIdentifier networkCloudStorageApplianceResourceId = NetworkCloudStorageApplianceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, storageApplianceName); + NetworkCloudStorageApplianceResource networkCloudStorageAppliance = client.GetNetworkCloudStorageApplianceResource(networkCloudStorageApplianceResourceId); + + // invoke the operation + StorageApplianceRunReadCommandsContent content = new StorageApplianceRunReadCommandsContent(new StorageApplianceCommandSpecification[] + { +new StorageApplianceCommandSpecification("purealert") +{ +Arguments = {"list", "--filter", "state='open'"}, +} + }, 60L); + ArmOperation lro = await networkCloudStorageAppliance.RunReadCommandsAsync(WaitUntil.Completed, content); + NetworkCloudOperationStatusResult result = lro.Value; + + Console.WriteLine($"Succeeded: {result}"); + } } } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudTrunkedNetworkCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudTrunkedNetworkCollection.cs index 97f17ec24c8d..cd161a602e8b 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudTrunkedNetworkCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudTrunkedNetworkCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkCloudTrunkedNetworkCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateTrunkedNetwork() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/TrunkedNetworks_Create.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/TrunkedNetworks_Create.json // this example is just showing the usage of "TrunkedNetworks_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 @@ -64,7 +64,7 @@ public async Task CreateOrUpdate_CreateOrUpdateTrunkedNetwork() [Ignore("Only validating compilation of examples")] public async Task Get_GetTrunkedNetwork() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/TrunkedNetworks_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/TrunkedNetworks_Get.json // this example is just showing the usage of "TrunkedNetworks_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 @@ -97,7 +97,7 @@ public async Task Get_GetTrunkedNetwork() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListTrunkedNetworksForResourceGroup() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/TrunkedNetworks_ListByResourceGroup.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/TrunkedNetworks_ListByResourceGroup.json // this example is just showing the usage of "TrunkedNetworks_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 @@ -132,7 +132,7 @@ public async Task GetAll_ListTrunkedNetworksForResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetTrunkedNetwork() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/TrunkedNetworks_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/TrunkedNetworks_Get.json // this example is just showing the usage of "TrunkedNetworks_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 @@ -161,7 +161,7 @@ public async Task Exists_GetTrunkedNetwork() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetTrunkedNetwork() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/TrunkedNetworks_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/TrunkedNetworks_Get.json // this example is just showing the usage of "TrunkedNetworks_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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudTrunkedNetworkResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudTrunkedNetworkResource.cs index ba145b4953a0..997627e0cf27 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudTrunkedNetworkResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudTrunkedNetworkResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudTrunkedNetworkResource [Ignore("Only validating compilation of examples")] public async Task Get_GetTrunkedNetwork() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/TrunkedNetworks_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/TrunkedNetworks_Get.json // this example is just showing the usage of "TrunkedNetworks_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 @@ -50,7 +50,7 @@ public async Task Get_GetTrunkedNetwork() [Ignore("Only validating compilation of examples")] public async Task Update_PatchTrunkedNetwork() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/TrunkedNetworks_Patch.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/TrunkedNetworks_Patch.json // this example is just showing the usage of "TrunkedNetworks_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVirtualMachineCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVirtualMachineCollection.cs index 830c2ecb1775..fdd1896367eb 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVirtualMachineCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVirtualMachineCollection.cs @@ -9,6 +9,7 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Identity; +using Azure.ResourceManager.Models; using Azure.ResourceManager.NetworkCloud.Models; using Azure.ResourceManager.Resources; using NUnit.Framework; @@ -21,7 +22,7 @@ public partial class Sample_NetworkCloudVirtualMachineCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateVirtualMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/VirtualMachines_Create.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_Create.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 @@ -58,6 +59,13 @@ public async Task CreateOrUpdate_CreateOrUpdateVirtualMachine() }, "myacr.azurecr.io/foobar:latest") { + Identity = new ManagedServiceIdentity("UserAssigned") + { + UserAssignedIdentities = +{ +[new ResourceIdentifier("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1")] = new UserAssignedIdentity() +}, + }, BootMethod = VirtualMachineBootMethod.Uefi, NetworkAttachments = {new NetworkAttachment(new ResourceIdentifier("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName"), VirtualMachineIPAllocationMethod.Dynamic) { @@ -66,10 +74,10 @@ public async Task CreateOrUpdate_CreateOrUpdateVirtualMachine() IPv6Address = "2001:0db8:0000:0000:0000:0000:0000:0000", NetworkAttachmentName = "netAttachName01", }}, - NetworkData = "bmV0d29ya0RhdGVTYW1wbGU=", + NetworkDataContent = "bmV0d29ya0RhdGVTYW1wbGU=", PlacementHints = { new VirtualMachinePlacementHint(VirtualMachinePlacementHintType.Affinity, new ResourceIdentifier("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName"), VirtualMachineSchedulingExecution.Hard, new VirtualMachinePlacementHintPodAffinityScope("")) }, SshPublicKeys = { new NetworkCloudSshPublicKey("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm") }, - UserData = "dXNlckRhdGVTYW1wbGU=", + UserDataContent = "dXNlckRhdGVTYW1wbGU=", VmDeviceModel = VirtualMachineDeviceModelType.T2, VmImageRepositoryCredentials = new ImageRepositoryCredentials("myacr.azurecr.io", "myuser") { @@ -95,7 +103,7 @@ public async Task CreateOrUpdate_CreateOrUpdateVirtualMachine() [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/VirtualMachines_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_Get.json // this example is just showing the usage of "VirtualMachines_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 @@ -128,7 +136,7 @@ public async Task Get_GetVirtualMachine() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListVirtualMachinesForResourceGroup() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/VirtualMachines_ListByResourceGroup.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_ListByResourceGroup.json // this example is just showing the usage of "VirtualMachines_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 @@ -163,7 +171,7 @@ public async Task GetAll_ListVirtualMachinesForResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetVirtualMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/VirtualMachines_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_Get.json // this example is just showing the usage of "VirtualMachines_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 @@ -192,7 +200,7 @@ public async Task Exists_GetVirtualMachine() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetVirtualMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/VirtualMachines_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_Get.json // this example is just showing the usage of "VirtualMachines_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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVirtualMachineConsoleCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVirtualMachineConsoleCollection.cs index abbf95e6b884..59ab9e1b5356 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVirtualMachineConsoleCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVirtualMachineConsoleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudVirtualMachineConsoleCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateVirtualMachineConsole() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Consoles_Create.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Consoles_Create.json // this example is just showing the usage of "Consoles_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 @@ -64,7 +64,7 @@ public async Task CreateOrUpdate_CreateOrUpdateVirtualMachineConsole() [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualMachineConsole() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Consoles_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Consoles_Get.json // this example is just showing the usage of "Consoles_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 @@ -98,7 +98,7 @@ public async Task Get_GetVirtualMachineConsole() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListConsolesOfTheVirtualMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Consoles_ListByVirtualMachine.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Consoles_ListByVirtualMachine.json // this example is just showing the usage of "Consoles_ListByVirtualMachine" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -134,7 +134,7 @@ public async Task GetAll_ListConsolesOfTheVirtualMachine() [Ignore("Only validating compilation of examples")] public async Task Exists_GetVirtualMachineConsole() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Consoles_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Consoles_Get.json // this example is just showing the usage of "Consoles_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 @@ -164,7 +164,7 @@ public async Task Exists_GetVirtualMachineConsole() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetVirtualMachineConsole() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Consoles_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Consoles_Get.json // this example is just showing the usage of "Consoles_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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVirtualMachineConsoleResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVirtualMachineConsoleResource.cs index 4f314c40f114..2ce55b7fe91b 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVirtualMachineConsoleResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVirtualMachineConsoleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudVirtualMachineConsoleResource [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualMachineConsole() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Consoles_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Consoles_Get.json // this example is just showing the usage of "Consoles_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 @@ -51,7 +51,7 @@ public async Task Get_GetVirtualMachineConsole() [Ignore("Only validating compilation of examples")] public async Task Update_PatchVirtualMachineConsole() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Consoles_Patch.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Consoles_Patch.json // this example is just showing the usage of "Consoles_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVirtualMachineResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVirtualMachineResource.cs index 7ec2aefcf877..a0f838c2d6dc 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVirtualMachineResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVirtualMachineResource.cs @@ -9,6 +9,7 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Identity; +using Azure.ResourceManager.Models; using Azure.ResourceManager.NetworkCloud.Models; using NUnit.Framework; @@ -20,7 +21,7 @@ public partial class Sample_NetworkCloudVirtualMachineResource [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/VirtualMachines_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_Get.json // this example is just showing the usage of "VirtualMachines_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 @@ -50,7 +51,7 @@ public async Task Get_GetVirtualMachine() [Ignore("Only validating compilation of examples")] public async Task Update_PatchVirtualMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/VirtualMachines_Patch.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_Patch.json // this example is just showing the usage of "VirtualMachines_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,6 +70,13 @@ public async Task Update_PatchVirtualMachine() // invoke the operation NetworkCloudVirtualMachinePatch patch = new NetworkCloudVirtualMachinePatch { + Identity = new ManagedServiceIdentity("UserAssigned") + { + UserAssignedIdentities = +{ +[new ResourceIdentifier("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1")] = new UserAssignedIdentity() +}, + }, Tags = { ["key1"] = "myvalue1", @@ -89,11 +97,42 @@ public async Task Update_PatchVirtualMachine() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task AssignRelay_AssignRelayToTheMicrosoftHybridComputeMachineForAVirtualMachine() + { + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_AssignRelay.json + // this example is just showing the usage of "VirtualMachines_AssignRelay" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetworkCloudVirtualMachineResource created on azure + // for more information of creating NetworkCloudVirtualMachineResource, please refer to the document of NetworkCloudVirtualMachineResource + string subscriptionId = "123e4567-e89b-12d3-a456-426655440000"; + string resourceGroupName = "resourceGroupName"; + string virtualMachineName = "virtualMachineName"; + ResourceIdentifier networkCloudVirtualMachineResourceId = NetworkCloudVirtualMachineResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, virtualMachineName); + NetworkCloudVirtualMachineResource networkCloudVirtualMachine = client.GetNetworkCloudVirtualMachineResource(networkCloudVirtualMachineResourceId); + + // invoke the operation + VirtualMachineAssignRelayContent content = new VirtualMachineAssignRelayContent(new ResourceIdentifier("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.HybridCompute/machines/machineName")) + { + RelayType = RelayType.Platform, + }; + ArmOperation lro = await networkCloudVirtualMachine.AssignRelayAsync(WaitUntil.Completed, content: content); + NetworkCloudOperationStatusResult result = lro.Value; + + Console.WriteLine($"Succeeded: {result}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task PowerOff_PowerOffVirtualMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/VirtualMachines_PowerOff.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_PowerOff.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 @@ -124,7 +163,7 @@ public async Task PowerOff_PowerOffVirtualMachine() [Ignore("Only validating compilation of examples")] public async Task Reimage_ReimageVirtualMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/VirtualMachines_Reimage.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_Reimage.json // this example is just showing the usage of "VirtualMachines_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 @@ -151,7 +190,7 @@ public async Task Reimage_ReimageVirtualMachine() [Ignore("Only validating compilation of examples")] public async Task Restart_RestartVirtualMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/VirtualMachines_Restart.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_Restart.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 @@ -178,7 +217,7 @@ public async Task Restart_RestartVirtualMachine() [Ignore("Only validating compilation of examples")] public async Task Start_StartVirtualMachine() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/VirtualMachines_Start.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_Start.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 diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVolumeCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVolumeCollection.cs index 65478deaa864..80246e4d3596 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVolumeCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVolumeCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkCloudVolumeCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateVolume() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Volumes_Create.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Volumes_Create.json // this example is just showing the usage of "Volumes_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 @@ -41,8 +41,9 @@ public async Task CreateOrUpdate_CreateOrUpdateVolume() // invoke the operation string volumeName = "volumeName"; - NetworkCloudVolumeData data = new NetworkCloudVolumeData(new AzureLocation("location"), new ExtendedLocation("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", "CustomLocation"), 10000L) + NetworkCloudVolumeData data = new NetworkCloudVolumeData(new AzureLocation("location"), new ExtendedLocation("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", "CustomLocation"), 1048576L) { + StorageApplianceId = new ResourceIdentifier("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/StorageAppliances/storageApplianceName"), Tags = { ["key1"] = "myvalue1", @@ -63,7 +64,7 @@ public async Task CreateOrUpdate_CreateOrUpdateVolume() [Ignore("Only validating compilation of examples")] public async Task Get_GetVolume() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Volumes_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Volumes_Get.json // this example is just showing the usage of "Volumes_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 @@ -96,7 +97,7 @@ public async Task Get_GetVolume() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListVolumesForResourceGroup() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Volumes_ListByResourceGroup.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Volumes_ListByResourceGroup.json // this example is just showing the usage of "Volumes_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 @@ -131,7 +132,7 @@ public async Task GetAll_ListVolumesForResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetVolume() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Volumes_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Volumes_Get.json // this example is just showing the usage of "Volumes_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 @@ -160,7 +161,7 @@ public async Task Exists_GetVolume() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetVolume() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Volumes_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Volumes_Get.json // this example is just showing the usage of "Volumes_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/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVolumeResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVolumeResource.cs index 408e01159d9c..c257c8739e24 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVolumeResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_NetworkCloudVolumeResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkCloudVolumeResource [Ignore("Only validating compilation of examples")] public async Task Get_GetVolume() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Volumes_Get.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Volumes_Get.json // this example is just showing the usage of "Volumes_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 @@ -50,7 +50,7 @@ public async Task Get_GetVolume() [Ignore("Only validating compilation of examples")] public async Task Update_PatchVolume() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Volumes_Patch.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Volumes_Patch.json // this example is just showing the usage of "Volumes_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 096adbbc2faf..c18dda42b711 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -20,7 +20,7 @@ public partial class Sample_SubscriptionResourceExtensions [Ignore("Only validating compilation of examples")] public async Task GetNetworkCloudBareMetalMachines_ListBareMetalMachinesForSubscription() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/BareMetalMachines_ListBySubscription.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_ListBySubscription.json // this example is just showing the usage of "BareMetalMachines_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,7 +51,7 @@ public async Task GetNetworkCloudBareMetalMachines_ListBareMetalMachinesForSubsc [Ignore("Only validating compilation of examples")] public async Task GetNetworkCloudCloudServicesNetworks_ListCloudServicesNetworksForSubscription() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/CloudServicesNetworks_ListBySubscription.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/CloudServicesNetworks_ListBySubscription.json // this example is just showing the usage of "CloudServicesNetworks_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 @@ -82,7 +82,7 @@ public async Task GetNetworkCloudCloudServicesNetworks_ListCloudServicesNetworks [Ignore("Only validating compilation of examples")] public async Task GetNetworkCloudClusterManagers_ListClusterManagersForSubscription() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/ClusterManagers_ListBySubscription.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterManagers_ListBySubscription.json // this example is just showing the usage of "ClusterManagers_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 @@ -113,7 +113,7 @@ public async Task GetNetworkCloudClusterManagers_ListClusterManagersForSubscript [Ignore("Only validating compilation of examples")] public async Task GetNetworkCloudClusters_ListClustersForSubscription() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Clusters_ListBySubscription.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_ListBySubscription.json // this example is just showing the usage of "Clusters_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 @@ -144,7 +144,7 @@ public async Task GetNetworkCloudClusters_ListClustersForSubscription() [Ignore("Only validating compilation of examples")] public async Task GetNetworkCloudKubernetesClusters_ListKubernetesClustersForSubscription() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/KubernetesClusters_ListBySubscription.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusters_ListBySubscription.json // this example is just showing the usage of "KubernetesClusters_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 @@ -175,7 +175,7 @@ public async Task GetNetworkCloudKubernetesClusters_ListKubernetesClustersForSub [Ignore("Only validating compilation of examples")] public async Task GetNetworkCloudL2Networks_ListL2NetworksForSubscription() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/L2Networks_ListBySubscription.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L2Networks_ListBySubscription.json // this example is just showing the usage of "L2Networks_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 @@ -206,7 +206,7 @@ public async Task GetNetworkCloudL2Networks_ListL2NetworksForSubscription() [Ignore("Only validating compilation of examples")] public async Task GetNetworkCloudL3Networks_ListL3NetworksForSubscription() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/L3Networks_ListBySubscription.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L3Networks_ListBySubscription.json // this example is just showing the usage of "L3Networks_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 @@ -237,7 +237,7 @@ public async Task GetNetworkCloudL3Networks_ListL3NetworksForSubscription() [Ignore("Only validating compilation of examples")] public async Task GetNetworkCloudRacks_ListRacksForSubscription() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Racks_ListBySubscription.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Racks_ListBySubscription.json // this example is just showing the usage of "Racks_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 @@ -268,7 +268,7 @@ public async Task GetNetworkCloudRacks_ListRacksForSubscription() [Ignore("Only validating compilation of examples")] public async Task GetNetworkCloudStorageAppliances_ListStorageAppliancesForSubscription() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/StorageAppliances_ListBySubscription.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/StorageAppliances_ListBySubscription.json // this example is just showing the usage of "StorageAppliances_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 @@ -299,7 +299,7 @@ public async Task GetNetworkCloudStorageAppliances_ListStorageAppliancesForSubsc [Ignore("Only validating compilation of examples")] public async Task GetNetworkCloudTrunkedNetworks_ListTrunkedNetworksForSubscription() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/TrunkedNetworks_ListBySubscription.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/TrunkedNetworks_ListBySubscription.json // this example is just showing the usage of "TrunkedNetworks_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 @@ -330,7 +330,7 @@ public async Task GetNetworkCloudTrunkedNetworks_ListTrunkedNetworksForSubscript [Ignore("Only validating compilation of examples")] public async Task GetNetworkCloudVirtualMachines_ListVirtualMachinesForSubscription() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/VirtualMachines_ListBySubscription.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_ListBySubscription.json // this example is just showing the usage of "VirtualMachines_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 @@ -361,7 +361,7 @@ public async Task GetNetworkCloudVirtualMachines_ListVirtualMachinesForSubscript [Ignore("Only validating compilation of examples")] public async Task GetNetworkCloudVolumes_ListVolumeForSubscription() { - // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/examples/Volumes_ListBySubscription.json + // Generated from example definition: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Volumes_ListBySubscription.json // this example is just showing the usage of "Volumes_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