From 119534f7611fd7d8b983f3bf006dd8b6f95e54d8 Mon Sep 17 00:00:00 2001 From: wiboris Date: Fri, 9 Feb 2024 10:37:56 -0800 Subject: [PATCH] Adding support for 2024-02-01 api --- .../Azure.ResourceManager.Batch/CHANGELOG.md | 11 +- ...re.ResourceManager.Batch.netstandard2.0.cs | 57 ++++- .../Azure.ResourceManager.Batch/assets.json | 2 +- .../src/Azure.ResourceManager.Batch.csproj | 2 +- .../src/Generated/ArmBatchModelFactory.cs | 66 +++++- .../BatchAccountCertificateCollection.cs | 20 +- .../BatchAccountCertificateResource.cs | 16 +- .../src/Generated/BatchAccountCollection.cs | 20 +- .../BatchAccountDetectorCollection.cs | 16 +- .../Generated/BatchAccountDetectorResource.cs | 4 +- .../Generated/BatchAccountPoolCollection.cs | 20 +- .../src/Generated/BatchAccountPoolData.cs | 6 +- .../src/Generated/BatchAccountPoolResource.cs | 20 +- .../src/Generated/BatchAccountResource.cs | 64 +++--- .../Generated/BatchApplicationCollection.cs | 20 +- .../BatchApplicationPackageCollection.cs | 20 +- .../BatchApplicationPackageResource.cs | 16 +- .../src/Generated/BatchApplicationResource.cs | 16 +- ...atchPrivateEndpointConnectionCollection.cs | 16 +- .../BatchPrivateEndpointConnectionResource.cs | 12 +- .../src/Generated/BatchPrivateLinkResource.cs | 4 +- .../BatchPrivateLinkResourceCollection.cs | 16 +- .../Generated/Extensions/BatchExtensions.cs | 24 +- .../MockableBatchResourceGroupResource.cs | 4 +- .../MockableBatchSubscriptionResource.cs | 20 +- .../AutomaticOSUpgradePolicy.Serialization.cs | 171 ++++++++++++++ .../Models/AutomaticOSUpgradePolicy.cs | 77 +++++++ .../BatchAccountPoolData.Serialization.cs | 17 +- .../Models/BatchSupportedSku.Serialization.cs | 17 +- .../src/Generated/Models/BatchSupportedSku.cs | 6 +- .../RollingUpgradePolicy.Serialization.cs | 212 ++++++++++++++++++ .../Generated/Models/RollingUpgradePolicy.cs | 89 ++++++++ .../Models/UpgradeMode.Serialization.cs | 30 +++ .../src/Generated/Models/UpgradeMode.cs | 20 ++ .../Models/UpgradePolicy.Serialization.cs | 149 ++++++++++++ .../src/Generated/Models/UpgradePolicy.cs | 80 +++++++ .../ApplicationPackageRestOperations.cs | 2 +- .../ApplicationRestOperations.cs | 2 +- .../BatchAccountRestOperations.cs | 2 +- .../CertificateRestOperations.cs | 2 +- .../RestOperations/LocationRestOperations.cs | 2 +- .../RestOperations/PoolRestOperations.cs | 2 +- ...PrivateEndpointConnectionRestOperations.cs | 2 +- .../PrivateLinkResourceRestOperations.cs | 2 +- .../src/autorest.md | 2 +- ...ample_BatchAccountCertificateCollection.cs | 18 +- .../Sample_BatchAccountCertificateResource.cs | 10 +- .../Samples/Sample_BatchAccountCollection.cs | 20 +- .../Sample_BatchAccountDetectorCollection.cs | 6 +- .../Sample_BatchAccountDetectorResource.cs | 2 +- .../Sample_BatchAccountPoolCollection.cs | 36 +-- .../Sample_BatchAccountPoolResource.cs | 20 +- .../Samples/Sample_BatchAccountResource.cs | 18 +- .../Sample_BatchApplicationCollection.cs | 8 +- ...ample_BatchApplicationPackageCollection.cs | 8 +- .../Sample_BatchApplicationPackageResource.cs | 8 +- .../Sample_BatchApplicationResource.cs | 6 +- ...atchPrivateEndpointConnectionCollection.cs | 6 +- ..._BatchPrivateEndpointConnectionResource.cs | 6 +- .../Sample_BatchPrivateLinkResource.cs | 2 +- ...mple_BatchPrivateLinkResourceCollection.cs | 6 +- .../Sample_SubscriptionResourceExtensions.cs | 10 +- .../BatchAccountCertificateOperationTests.cs | 4 + 63 files changed, 1277 insertions(+), 295 deletions(-) create mode 100644 sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/AutomaticOSUpgradePolicy.Serialization.cs create mode 100644 sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/AutomaticOSUpgradePolicy.cs create mode 100644 sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/RollingUpgradePolicy.Serialization.cs create mode 100644 sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/RollingUpgradePolicy.cs create mode 100644 sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/UpgradeMode.Serialization.cs create mode 100644 sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/UpgradeMode.cs create mode 100644 sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/UpgradePolicy.Serialization.cs create mode 100644 sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/UpgradePolicy.cs diff --git a/sdk/batch/Azure.ResourceManager.Batch/CHANGELOG.md b/sdk/batch/Azure.ResourceManager.Batch/CHANGELOG.md index 1296ee381ecd1..4389e7baf67cf 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/CHANGELOG.md +++ b/sdk/batch/Azure.ResourceManager.Batch/CHANGELOG.md @@ -1,14 +1,15 @@ # Release History -## 1.4.0-beta.1 (Unreleased) +## 1.4.0 (2024-03-01) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Add `UpgradePolicy` support to Pool Creation + - Added `UpgradePolicy` definition + - Added `AutomaticOSUpgradePolicy` definition + - Added `RollingUpgradePolicy` definition -### Other Changes +- Added `BatchSupportEndOfLife` property to `BatchSupportedSku` definition ## 1.3.0 (2024-01-18) diff --git a/sdk/batch/Azure.ResourceManager.Batch/api/Azure.ResourceManager.Batch.netstandard2.0.cs b/sdk/batch/Azure.ResourceManager.Batch/api/Azure.ResourceManager.Batch.netstandard2.0.cs index 7784bdbb28f88..a01599194d0fc 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/api/Azure.ResourceManager.Batch.netstandard2.0.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/api/Azure.ResourceManager.Batch.netstandard2.0.cs @@ -185,6 +185,7 @@ public BatchAccountPoolData() { } public Azure.ResourceManager.Batch.Models.NodeCommunicationMode? TargetNodeCommunicationMode { get { throw null; } set { } } public Azure.ResourceManager.Batch.Models.BatchNodeFillType? TaskSchedulingNodeFillType { get { throw null; } set { } } public int? TaskSlotsPerNode { get { throw null; } set { } } + public Azure.ResourceManager.Batch.Models.UpgradePolicy UpgradePolicy { get { throw null; } set { } } public System.Collections.Generic.IList UserAccounts { get { throw null; } } public string VmSize { get { throw null; } set { } } Azure.ResourceManager.Batch.BatchAccountPoolData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -507,7 +508,9 @@ public static partial class ArmBatchModelFactory public static Azure.ResourceManager.Batch.Models.BatchAccountKeys BatchAccountKeys(string accountName = null, string primary = null, string secondary = null) { throw null; } public static Azure.ResourceManager.Batch.Models.BatchAccountOutboundEnvironmentEndpoint BatchAccountOutboundEnvironmentEndpoint(string category = null, System.Collections.Generic.IEnumerable endpoints = null) { throw null; } public static Azure.ResourceManager.Batch.Models.BatchAccountPoolAutoScaleRun BatchAccountPoolAutoScaleRun(System.DateTimeOffset evaluationOn = default(System.DateTimeOffset), string results = null, Azure.ResponseError error = null) { throw null; } - public static Azure.ResourceManager.Batch.BatchAccountPoolData BatchAccountPoolData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string displayName = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Batch.Models.BatchAccountPoolProvisioningState? provisioningState = default(Azure.ResourceManager.Batch.Models.BatchAccountPoolProvisioningState?), System.DateTimeOffset? provisioningStateTransitOn = default(System.DateTimeOffset?), Azure.ResourceManager.Batch.Models.BatchAccountPoolAllocationState? allocationState = default(Azure.ResourceManager.Batch.Models.BatchAccountPoolAllocationState?), System.DateTimeOffset? allocationStateTransitionOn = default(System.DateTimeOffset?), string vmSize = null, Azure.ResourceManager.Batch.Models.BatchDeploymentConfiguration deploymentConfiguration = null, int? currentDedicatedNodes = default(int?), int? currentLowPriorityNodes = default(int?), Azure.ResourceManager.Batch.Models.BatchAccountPoolScaleSettings scaleSettings = null, Azure.ResourceManager.Batch.Models.BatchAccountPoolAutoScaleRun autoScaleRun = null, Azure.ResourceManager.Batch.Models.InterNodeCommunicationState? interNodeCommunication = default(Azure.ResourceManager.Batch.Models.InterNodeCommunicationState?), Azure.ResourceManager.Batch.Models.BatchNetworkConfiguration networkConfiguration = null, int? taskSlotsPerNode = default(int?), Azure.ResourceManager.Batch.Models.BatchNodeFillType? taskSchedulingNodeFillType = default(Azure.ResourceManager.Batch.Models.BatchNodeFillType?), System.Collections.Generic.IEnumerable userAccounts = null, System.Collections.Generic.IEnumerable metadata = null, Azure.ResourceManager.Batch.Models.BatchAccountPoolStartTask startTask = null, System.Collections.Generic.IEnumerable certificates = null, System.Collections.Generic.IEnumerable applicationPackages = null, System.Collections.Generic.IEnumerable applicationLicenses = null, Azure.ResourceManager.Batch.Models.BatchResizeOperationStatus resizeOperationStatus = null, System.Collections.Generic.IEnumerable mountConfiguration = null, Azure.ResourceManager.Batch.Models.NodeCommunicationMode? targetNodeCommunicationMode = default(Azure.ResourceManager.Batch.Models.NodeCommunicationMode?), Azure.ResourceManager.Batch.Models.NodeCommunicationMode? currentNodeCommunicationMode = default(Azure.ResourceManager.Batch.Models.NodeCommunicationMode?), System.Collections.Generic.IDictionary resourceTags = null, Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.ResourceManager.Batch.BatchAccountPoolData BatchAccountPoolData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string displayName = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Batch.Models.BatchAccountPoolProvisioningState? provisioningState = default(Azure.ResourceManager.Batch.Models.BatchAccountPoolProvisioningState?), System.DateTimeOffset? provisioningStateTransitOn = default(System.DateTimeOffset?), Azure.ResourceManager.Batch.Models.BatchAccountPoolAllocationState? allocationState = default(Azure.ResourceManager.Batch.Models.BatchAccountPoolAllocationState?), System.DateTimeOffset? allocationStateTransitionOn = default(System.DateTimeOffset?), string vmSize = null, Azure.ResourceManager.Batch.Models.BatchDeploymentConfiguration deploymentConfiguration = null, int? currentDedicatedNodes = default(int?), int? currentLowPriorityNodes = default(int?), Azure.ResourceManager.Batch.Models.BatchAccountPoolScaleSettings scaleSettings = null, Azure.ResourceManager.Batch.Models.BatchAccountPoolAutoScaleRun autoScaleRun = null, Azure.ResourceManager.Batch.Models.InterNodeCommunicationState? interNodeCommunication = default(Azure.ResourceManager.Batch.Models.InterNodeCommunicationState?), Azure.ResourceManager.Batch.Models.BatchNetworkConfiguration networkConfiguration = null, int? taskSlotsPerNode = default(int?), Azure.ResourceManager.Batch.Models.BatchNodeFillType? taskSchedulingNodeFillType = default(Azure.ResourceManager.Batch.Models.BatchNodeFillType?), System.Collections.Generic.IEnumerable userAccounts = null, System.Collections.Generic.IEnumerable metadata = null, Azure.ResourceManager.Batch.Models.BatchAccountPoolStartTask startTask = null, System.Collections.Generic.IEnumerable certificates = null, System.Collections.Generic.IEnumerable applicationPackages = null, System.Collections.Generic.IEnumerable applicationLicenses = null, Azure.ResourceManager.Batch.Models.BatchResizeOperationStatus resizeOperationStatus = null, System.Collections.Generic.IEnumerable mountConfiguration = null, Azure.ResourceManager.Batch.Models.NodeCommunicationMode? targetNodeCommunicationMode = default(Azure.ResourceManager.Batch.Models.NodeCommunicationMode?), Azure.ResourceManager.Batch.Models.NodeCommunicationMode? currentNodeCommunicationMode = default(Azure.ResourceManager.Batch.Models.NodeCommunicationMode?), Azure.ResourceManager.Batch.Models.UpgradePolicy upgradePolicy = null, System.Collections.Generic.IDictionary resourceTags = null, Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Batch.BatchAccountPoolData BatchAccountPoolData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ResourceManager.Models.ManagedServiceIdentity identity, string displayName, System.DateTimeOffset? lastModifiedOn, System.DateTimeOffset? createdOn, Azure.ResourceManager.Batch.Models.BatchAccountPoolProvisioningState? provisioningState, System.DateTimeOffset? provisioningStateTransitOn, Azure.ResourceManager.Batch.Models.BatchAccountPoolAllocationState? allocationState, System.DateTimeOffset? allocationStateTransitionOn, string vmSize, Azure.ResourceManager.Batch.Models.BatchDeploymentConfiguration deploymentConfiguration, int? currentDedicatedNodes, int? currentLowPriorityNodes, Azure.ResourceManager.Batch.Models.BatchAccountPoolScaleSettings scaleSettings, Azure.ResourceManager.Batch.Models.BatchAccountPoolAutoScaleRun autoScaleRun, Azure.ResourceManager.Batch.Models.InterNodeCommunicationState? interNodeCommunication, Azure.ResourceManager.Batch.Models.BatchNetworkConfiguration networkConfiguration, int? taskSlotsPerNode, Azure.ResourceManager.Batch.Models.BatchNodeFillType? taskSchedulingNodeFillType, System.Collections.Generic.IEnumerable userAccounts, System.Collections.Generic.IEnumerable metadata, Azure.ResourceManager.Batch.Models.BatchAccountPoolStartTask startTask, System.Collections.Generic.IEnumerable certificates, System.Collections.Generic.IEnumerable applicationPackages, System.Collections.Generic.IEnumerable applicationLicenses, Azure.ResourceManager.Batch.Models.BatchResizeOperationStatus resizeOperationStatus, System.Collections.Generic.IEnumerable mountConfiguration, Azure.ResourceManager.Batch.Models.NodeCommunicationMode? targetNodeCommunicationMode, Azure.ResourceManager.Batch.Models.NodeCommunicationMode? currentNodeCommunicationMode, System.Collections.Generic.IDictionary resourceTags, Azure.ETag? etag) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.Batch.BatchAccountPoolData BatchAccountPoolData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ResourceManager.Models.ManagedServiceIdentity identity, string displayName, System.DateTimeOffset? lastModifiedOn, System.DateTimeOffset? createdOn, Azure.ResourceManager.Batch.Models.BatchAccountPoolProvisioningState? provisioningState, System.DateTimeOffset? provisioningStateTransitOn, Azure.ResourceManager.Batch.Models.BatchAccountPoolAllocationState? allocationState, System.DateTimeOffset? allocationStateTransitionOn, string vmSize, Azure.ResourceManager.Batch.Models.BatchDeploymentConfiguration deploymentConfiguration, int? currentDedicatedNodes, int? currentLowPriorityNodes, Azure.ResourceManager.Batch.Models.BatchAccountPoolScaleSettings scaleSettings, Azure.ResourceManager.Batch.Models.BatchAccountPoolAutoScaleRun autoScaleRun, Azure.ResourceManager.Batch.Models.InterNodeCommunicationState? interNodeCommunication, Azure.ResourceManager.Batch.Models.BatchNetworkConfiguration networkConfiguration, int? taskSlotsPerNode, Azure.ResourceManager.Batch.Models.BatchNodeFillType? taskSchedulingNodeFillType, System.Collections.Generic.IEnumerable userAccounts, System.Collections.Generic.IEnumerable metadata, Azure.ResourceManager.Batch.Models.BatchAccountPoolStartTask startTask, System.Collections.Generic.IEnumerable certificates, System.Collections.Generic.IEnumerable applicationPackages, System.Collections.Generic.IEnumerable applicationLicenses, Azure.ResourceManager.Batch.Models.BatchResizeOperationStatus resizeOperationStatus, System.Collections.Generic.IEnumerable mountConfiguration, Azure.ResourceManager.Batch.Models.NodeCommunicationMode? targetNodeCommunicationMode, Azure.ResourceManager.Batch.Models.NodeCommunicationMode? currentNodeCommunicationMode, Azure.ETag? etag) { throw null; } public static Azure.ResourceManager.Batch.BatchApplicationData BatchApplicationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, bool? allowUpdates = default(bool?), string defaultVersion = null, Azure.ETag? etag = default(Azure.ETag?)) { throw null; } @@ -522,9 +525,24 @@ public static partial class ArmBatchModelFactory public static Azure.ResourceManager.Batch.Models.BatchPrivateLinkServiceConnectionState BatchPrivateLinkServiceConnectionState(Azure.ResourceManager.Batch.Models.BatchPrivateLinkServiceConnectionStatus status = Azure.ResourceManager.Batch.Models.BatchPrivateLinkServiceConnectionStatus.Approved, string description = null, string actionRequired = null) { throw null; } public static Azure.ResourceManager.Batch.Models.BatchResizeOperationStatus BatchResizeOperationStatus(int? targetDedicatedNodes = default(int?), int? targetLowPriorityNodes = default(int?), System.TimeSpan? resizeTimeout = default(System.TimeSpan?), Azure.ResourceManager.Batch.Models.BatchNodeDeallocationOption? nodeDeallocationOption = default(Azure.ResourceManager.Batch.Models.BatchNodeDeallocationOption?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable errors = null) { throw null; } public static Azure.ResourceManager.Batch.Models.BatchSkuCapability BatchSkuCapability(string name = null, string value = null) { throw null; } - public static Azure.ResourceManager.Batch.Models.BatchSupportedSku BatchSupportedSku(string name = null, string familyName = null, System.Collections.Generic.IEnumerable capabilities = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Batch.Models.BatchSupportedSku BatchSupportedSku(string name, string familyName, System.Collections.Generic.IEnumerable capabilities) { throw null; } + public static Azure.ResourceManager.Batch.Models.BatchSupportedSku BatchSupportedSku(string name = null, string familyName = null, System.Collections.Generic.IEnumerable capabilities = null, System.DateTimeOffset? batchSupportEndOfLife = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Batch.Models.BatchVmFamilyCoreQuota BatchVmFamilyCoreQuota(string name = null, int? coreQuota = default(int?)) { throw null; } } + public partial class AutomaticOSUpgradePolicy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AutomaticOSUpgradePolicy() { } + public bool? DisableAutomaticRollback { get { throw null; } set { } } + public bool? EnableAutomaticOSUpgrade { get { throw null; } set { } } + public bool? OSRollingUpgradeDeferral { get { throw null; } set { } } + public bool? UseRollingUpgradePolicy { get { throw null; } set { } } + Azure.ResourceManager.Batch.Models.AutomaticOSUpgradePolicy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Batch.Models.AutomaticOSUpgradePolicy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class BatchAccountAutoScaleSettings : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public BatchAccountAutoScaleSettings(string formula) { } @@ -1393,6 +1411,7 @@ public enum BatchStorageAccountType public partial class BatchSupportedSku : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal BatchSupportedSku() { } + public System.DateTimeOffset? BatchSupportEndOfLife { get { throw null; } } public System.Collections.Generic.IReadOnlyList Capabilities { get { throw null; } } public string FamilyName { get { throw null; } } public string Name { get { throw null; } } @@ -1585,4 +1604,38 @@ public enum NodeCommunicationMode Classic = 1, Simplified = 2, } + public partial class RollingUpgradePolicy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RollingUpgradePolicy() { } + public bool? EnableCrossZoneUpgrade { get { throw null; } set { } } + public int? MaxBatchInstancePercent { get { throw null; } set { } } + public int? MaxUnhealthyInstancePercent { get { throw null; } set { } } + public int? MaxUnhealthyUpgradedInstancePercent { get { throw null; } set { } } + public string PauseTimeBetweenBatches { get { throw null; } set { } } + public bool? PrioritizeUnhealthyInstances { get { throw null; } set { } } + public bool? RollbackFailedInstancesOnPolicyBreach { get { throw null; } set { } } + Azure.ResourceManager.Batch.Models.RollingUpgradePolicy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Batch.Models.RollingUpgradePolicy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public enum UpgradeMode + { + Automatic = 0, + Manual = 1, + Rolling = 2, + } + public partial class UpgradePolicy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public UpgradePolicy(Azure.ResourceManager.Batch.Models.UpgradeMode mode) { } + public Azure.ResourceManager.Batch.Models.AutomaticOSUpgradePolicy AutomaticOSUpgradePolicy { get { throw null; } set { } } + public Azure.ResourceManager.Batch.Models.UpgradeMode Mode { get { throw null; } set { } } + public Azure.ResourceManager.Batch.Models.RollingUpgradePolicy RollingUpgradePolicy { get { throw null; } set { } } + Azure.ResourceManager.Batch.Models.UpgradePolicy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Batch.Models.UpgradePolicy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/assets.json b/sdk/batch/Azure.ResourceManager.Batch/assets.json index ae21c1dd2182f..b2dcb6f210f93 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/assets.json +++ b/sdk/batch/Azure.ResourceManager.Batch/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/batch/Azure.ResourceManager.Batch", - "Tag": "net/batch/Azure.ResourceManager.Batch_85f4115982" + "Tag": "net/batch/Azure.ResourceManager.Batch_fffdd531ea" } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Azure.ResourceManager.Batch.csproj b/sdk/batch/Azure.ResourceManager.Batch/src/Azure.ResourceManager.Batch.csproj index ab8d14074ad58..915d7318af2f3 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Azure.ResourceManager.Batch.csproj +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Azure.ResourceManager.Batch.csproj @@ -1,6 +1,6 @@ - 1.4.0-beta.1 + 1.4.0 1.3.0 Azure.ResourceManager.Batch diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/ArmBatchModelFactory.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/ArmBatchModelFactory.cs index aba8f1c41a0f9..c6ed9663a1e94 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/ArmBatchModelFactory.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/ArmBatchModelFactory.cs @@ -175,12 +175,13 @@ public static BatchLocationQuota BatchLocationQuota(int? accountQuota = null) /// The name of the SKU. /// The family name of the SKU. /// A collection of capabilities which this SKU supports. + /// The time when Azure Batch service will retire this SKU. /// A new instance for mocking. - public static BatchSupportedSku BatchSupportedSku(string name = null, string familyName = null, IEnumerable capabilities = null) + public static BatchSupportedSku BatchSupportedSku(string name = null, string familyName = null, IEnumerable capabilities = null, DateTimeOffset? batchSupportEndOfLife = null) { capabilities ??= new List(); - return new BatchSupportedSku(name, familyName, capabilities?.ToList(), serializedAdditionalRawData: null); + return new BatchSupportedSku(name, familyName, capabilities?.ToList(), batchSupportEndOfLife, serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -317,10 +318,11 @@ public static BatchPrivateLinkResourceData BatchPrivateLinkResourceData(Resource /// This supports Azure Files, NFS, CIFS/SMB, and Blobfuse. /// If omitted, the default value is Default. /// Determines how a pool communicates with the Batch service. + /// Describes an upgrade policy - automatic, manual, or rolling. /// The user-defined tags to be associated with the Azure Batch Pool. When specified, these tags are propagated to the backing Azure resources associated with the pool. This property can only be specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'. /// The ETag of the resource, used for concurrency statements. /// A new instance for mocking. - public static BatchAccountPoolData BatchAccountPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ManagedServiceIdentity identity = null, string displayName = null, DateTimeOffset? lastModifiedOn = null, DateTimeOffset? createdOn = null, BatchAccountPoolProvisioningState? provisioningState = null, DateTimeOffset? provisioningStateTransitOn = null, BatchAccountPoolAllocationState? allocationState = null, DateTimeOffset? allocationStateTransitionOn = null, string vmSize = null, BatchDeploymentConfiguration deploymentConfiguration = null, int? currentDedicatedNodes = null, int? currentLowPriorityNodes = null, BatchAccountPoolScaleSettings scaleSettings = null, BatchAccountPoolAutoScaleRun autoScaleRun = null, InterNodeCommunicationState? interNodeCommunication = null, BatchNetworkConfiguration networkConfiguration = null, int? taskSlotsPerNode = null, BatchNodeFillType? taskSchedulingNodeFillType = null, IEnumerable userAccounts = null, IEnumerable metadata = null, BatchAccountPoolStartTask startTask = null, IEnumerable certificates = null, IEnumerable applicationPackages = null, IEnumerable applicationLicenses = null, BatchResizeOperationStatus resizeOperationStatus = null, IEnumerable mountConfiguration = null, NodeCommunicationMode? targetNodeCommunicationMode = null, NodeCommunicationMode? currentNodeCommunicationMode = null, IDictionary resourceTags = null, ETag? etag = null) + public static BatchAccountPoolData BatchAccountPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ManagedServiceIdentity identity = null, string displayName = null, DateTimeOffset? lastModifiedOn = null, DateTimeOffset? createdOn = null, BatchAccountPoolProvisioningState? provisioningState = null, DateTimeOffset? provisioningStateTransitOn = null, BatchAccountPoolAllocationState? allocationState = null, DateTimeOffset? allocationStateTransitionOn = null, string vmSize = null, BatchDeploymentConfiguration deploymentConfiguration = null, int? currentDedicatedNodes = null, int? currentLowPriorityNodes = null, BatchAccountPoolScaleSettings scaleSettings = null, BatchAccountPoolAutoScaleRun autoScaleRun = null, InterNodeCommunicationState? interNodeCommunication = null, BatchNetworkConfiguration networkConfiguration = null, int? taskSlotsPerNode = null, BatchNodeFillType? taskSchedulingNodeFillType = null, IEnumerable userAccounts = null, IEnumerable metadata = null, BatchAccountPoolStartTask startTask = null, IEnumerable certificates = null, IEnumerable applicationPackages = null, IEnumerable applicationLicenses = null, BatchResizeOperationStatus resizeOperationStatus = null, IEnumerable mountConfiguration = null, NodeCommunicationMode? targetNodeCommunicationMode = null, NodeCommunicationMode? currentNodeCommunicationMode = null, UpgradePolicy upgradePolicy = null, IDictionary resourceTags = null, ETag? etag = null) { userAccounts ??= new List(); metadata ??= new List(); @@ -330,7 +332,7 @@ public static BatchAccountPoolData BatchAccountPoolData(ResourceIdentifier id = mountConfiguration ??= new List(); resourceTags ??= new Dictionary(); - return new BatchAccountPoolData(id, name, resourceType, systemData, identity, displayName, lastModifiedOn, createdOn, provisioningState, provisioningStateTransitOn, allocationState, allocationStateTransitionOn, vmSize, deploymentConfiguration, currentDedicatedNodes, currentLowPriorityNodes, scaleSettings, autoScaleRun, interNodeCommunication, networkConfiguration, taskSlotsPerNode, taskSchedulingNodeFillType.HasValue ? new TaskSchedulingPolicy(taskSchedulingNodeFillType.Value, serializedAdditionalRawData: null) : null, userAccounts?.ToList(), metadata?.ToList(), startTask, certificates?.ToList(), applicationPackages?.ToList(), applicationLicenses?.ToList(), resizeOperationStatus, mountConfiguration?.ToList(), targetNodeCommunicationMode, currentNodeCommunicationMode, resourceTags, etag, serializedAdditionalRawData: null); + return new BatchAccountPoolData(id, name, resourceType, systemData, identity, displayName, lastModifiedOn, createdOn, provisioningState, provisioningStateTransitOn, allocationState, allocationStateTransitionOn, vmSize, deploymentConfiguration, currentDedicatedNodes, currentLowPriorityNodes, scaleSettings, autoScaleRun, interNodeCommunication, networkConfiguration, taskSlotsPerNode, taskSchedulingNodeFillType.HasValue ? new TaskSchedulingPolicy(taskSchedulingNodeFillType.Value, serializedAdditionalRawData: null) : null, userAccounts?.ToList(), metadata?.ToList(), startTask, certificates?.ToList(), applicationPackages?.ToList(), applicationLicenses?.ToList(), resizeOperationStatus, mountConfiguration?.ToList(), targetNodeCommunicationMode, currentNodeCommunicationMode, upgradePolicy, resourceTags, etag, serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -388,5 +390,61 @@ public static BatchEndpointDetail BatchEndpointDetail(int? port = null) { return new BatchEndpointDetail(port, serializedAdditionalRawData: null); } + + /// Initializes a new instance of . + /// The name of the SKU. + /// The family name of the SKU. + /// A collection of capabilities which this SKU supports. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static BatchSupportedSku BatchSupportedSku(string name, string familyName, IEnumerable capabilities) + { + return BatchSupportedSku(name: name, familyName: familyName, capabilities: capabilities, batchSupportEndOfLife: default); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The type of identity used for the Batch Pool. Current supported identity types: UserAssigned, None. + /// The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024. + /// This is the last time at which the pool level data, such as the targetDedicatedNodes or autoScaleSettings, changed. It does not factor in node-level changes such as a compute node changing state. + /// The creation time of the pool. + /// The current state of the pool. + /// The time at which the pool entered its current state. + /// Whether the pool is resizing. + /// The time at which the pool entered its current allocation state. + /// For information about available sizes of virtual machines for Cloud Services pools (pools created with cloudServiceConfiguration), see Sizes for Cloud Services (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). Batch supports all Cloud Services VM sizes except ExtraSmall. For information about available VM sizes for pools using images from the Virtual Machines Marketplace (pools created with virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). + /// Using CloudServiceConfiguration specifies that the nodes should be creating using Azure Cloud Services (PaaS), while VirtualMachineConfiguration uses Azure Virtual Machines (IaaS). + /// The number of dedicated compute nodes currently in the pool. + /// The number of Spot/low-priority compute nodes currently in the pool. + /// Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes is specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not specified, the pool will have a fixed scale with 0 targetDedicatedNodes. + /// This property is set only if the pool automatically scales, i.e. autoScaleSettings are used. + /// This imposes restrictions on which nodes can be assigned to the pool. Enabling this value can reduce the chance of the requested number of nodes to be allocated in the pool. If not specified, this value defaults to 'Disabled'. + /// The network configuration for a pool. + /// The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256. + /// If not specified, the default is spread. + /// The list of user accounts to be created on each node in the pool. + /// The Batch service does not assign any meaning to metadata; it is solely for the use of user code. + /// In an PATCH (update) operation, this property can be set to an empty object to remove the start task from the pool. + /// + /// For Windows compute nodes, the Batch service installs the certificates to the specified certificate store and location. For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory. + /// Warning: This property is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. + /// + /// Changes to application package references affect all new compute nodes joining the pool, but do not affect compute nodes that are already in the pool until they are rebooted or reimaged. There is a maximum of 10 application package references on any given pool. + /// The list of application licenses must be a subset of available Batch service application licenses. If a license is requested which is not supported, pool creation will fail. + /// Describes either the current operation (if the pool AllocationState is Resizing) or the previously completed operation (if the AllocationState is Steady). + /// This supports Azure Files, NFS, CIFS/SMB, and Blobfuse. + /// If omitted, the default value is Default. + /// Determines how a pool communicates with the Batch service. + /// The user-defined tags to be associated with the Azure Batch Pool. When specified, these tags are propagated to the backing Azure resources associated with the pool. This property can only be specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'. + /// The ETag of the resource, used for concurrency statements. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static BatchAccountPoolData BatchAccountPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ManagedServiceIdentity identity, string displayName, DateTimeOffset? lastModifiedOn, DateTimeOffset? createdOn, BatchAccountPoolProvisioningState? provisioningState, DateTimeOffset? provisioningStateTransitOn, BatchAccountPoolAllocationState? allocationState, DateTimeOffset? allocationStateTransitionOn, string vmSize, BatchDeploymentConfiguration deploymentConfiguration, int? currentDedicatedNodes, int? currentLowPriorityNodes, BatchAccountPoolScaleSettings scaleSettings, BatchAccountPoolAutoScaleRun autoScaleRun, InterNodeCommunicationState? interNodeCommunication, BatchNetworkConfiguration networkConfiguration, int? taskSlotsPerNode, BatchNodeFillType? taskSchedulingNodeFillType, IEnumerable userAccounts, IEnumerable metadata, BatchAccountPoolStartTask startTask, IEnumerable certificates, IEnumerable applicationPackages, IEnumerable applicationLicenses, BatchResizeOperationStatus resizeOperationStatus, IEnumerable mountConfiguration, NodeCommunicationMode? targetNodeCommunicationMode, NodeCommunicationMode? currentNodeCommunicationMode, IDictionary resourceTags, ETag? etag) + { + return BatchAccountPoolData(id: id, name: name, resourceType: resourceType, systemData: systemData, identity: identity, displayName: displayName, lastModifiedOn: lastModifiedOn, createdOn: createdOn, provisioningState: provisioningState, provisioningStateTransitOn: provisioningStateTransitOn, allocationState: allocationState, allocationStateTransitionOn: allocationStateTransitionOn, vmSize: vmSize, deploymentConfiguration: deploymentConfiguration, currentDedicatedNodes: currentDedicatedNodes, currentLowPriorityNodes: currentLowPriorityNodes, scaleSettings: scaleSettings, autoScaleRun: autoScaleRun, interNodeCommunication: interNodeCommunication, networkConfiguration: networkConfiguration, taskSlotsPerNode: taskSlotsPerNode, taskSchedulingNodeFillType: taskSchedulingNodeFillType, userAccounts: userAccounts, metadata: metadata, startTask: startTask, certificates: certificates, applicationPackages: applicationPackages, applicationLicenses: applicationLicenses, resizeOperationStatus: resizeOperationStatus, mountConfiguration: mountConfiguration, targetNodeCommunicationMode: targetNodeCommunicationMode, currentNodeCommunicationMode: currentNodeCommunicationMode, upgradePolicy: default, resourceTags: resourceTags, etag: etag); + } } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCertificateCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCertificateCollection.cs index 0c7fe73e5bbc7..1c8d11f64d802 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCertificateCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCertificateCollection.cs @@ -67,7 +67,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -118,7 +118,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -259,7 +259,7 @@ public virtual Response Get(string certificateN /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -292,7 +292,7 @@ public virtual AsyncPageable GetAllAsync(int? m /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -325,7 +325,7 @@ public virtual Pageable GetAll(int? maxresults /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -368,7 +368,7 @@ public virtual async Task> ExistsAsync(string certificateName, Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -411,7 +411,7 @@ public virtual Response Exists(string certificateName, CancellationToken c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -456,7 +456,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCertificateResource.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCertificateResource.cs index b85efe9f15bce..79381542cc0ad 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCertificateResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCertificateResource.cs @@ -104,7 +104,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -268,7 +268,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual Response Update(BatchAccountCert /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -396,7 +396,7 @@ public virtual async Task> CancelDelet /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCollection.cs index 4598bcf3aa1c5..de361811e93db 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCollection.cs @@ -68,7 +68,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -117,7 +117,7 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string accoun /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string accountName, Cancellati /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string accountName, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string accountName, CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountDetectorCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountDetectorCollection.cs index 456dcba8ca645..5b1b02b06fcde 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountDetectorCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountDetectorCollection.cs @@ -66,7 +66,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -111,7 +111,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -156,7 +156,7 @@ public virtual Response Get(string detectorId, Can /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -186,7 +186,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -216,7 +216,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -259,7 +259,7 @@ public virtual async Task> ExistsAsync(string detectorId, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -302,7 +302,7 @@ public virtual Response Exists(string detectorId, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -347,7 +347,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountDetectorResource.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountDetectorResource.cs index c25ee8fd08101..913c99e5e3fba 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountDetectorResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountDetectorResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountPoolCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountPoolCollection.cs index c02075abd6176..177c3a73a7e62 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountPoolCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountPoolCollection.cs @@ -66,7 +66,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -117,7 +117,7 @@ public virtual async Task> CreateOrUpdate /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -168,7 +168,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(string po /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -258,7 +258,7 @@ public virtual Response Get(string poolName, Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -305,7 +305,7 @@ public virtual AsyncPageable GetAllAsync(int? maxresul /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -352,7 +352,7 @@ public virtual Pageable GetAll(int? maxresults = null, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -395,7 +395,7 @@ public virtual async Task> ExistsAsync(string poolName, Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -438,7 +438,7 @@ public virtual Response Exists(string poolName, CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -483,7 +483,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountPoolData.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountPoolData.cs index 7c7f8c8378bda..996052add2356 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountPoolData.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountPoolData.cs @@ -101,10 +101,11 @@ public BatchAccountPoolData() /// This supports Azure Files, NFS, CIFS/SMB, and Blobfuse. /// If omitted, the default value is Default. /// Determines how a pool communicates with the Batch service. + /// Describes an upgrade policy - automatic, manual, or rolling. /// The user-defined tags to be associated with the Azure Batch Pool. When specified, these tags are propagated to the backing Azure resources associated with the pool. This property can only be specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'. /// The ETag of the resource, used for concurrency statements. /// Keeps track of any properties unknown to the library. - internal BatchAccountPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ManagedServiceIdentity identity, string displayName, DateTimeOffset? lastModifiedOn, DateTimeOffset? createdOn, BatchAccountPoolProvisioningState? provisioningState, DateTimeOffset? provisioningStateTransitOn, BatchAccountPoolAllocationState? allocationState, DateTimeOffset? allocationStateTransitionOn, string vmSize, BatchDeploymentConfiguration deploymentConfiguration, int? currentDedicatedNodes, int? currentLowPriorityNodes, BatchAccountPoolScaleSettings scaleSettings, BatchAccountPoolAutoScaleRun autoScaleRun, InterNodeCommunicationState? interNodeCommunication, BatchNetworkConfiguration networkConfiguration, int? taskSlotsPerNode, TaskSchedulingPolicy taskSchedulingPolicy, IList userAccounts, IList metadata, BatchAccountPoolStartTask startTask, IList certificates, IList applicationPackages, IList applicationLicenses, BatchResizeOperationStatus resizeOperationStatus, IList mountConfiguration, NodeCommunicationMode? targetNodeCommunicationMode, NodeCommunicationMode? currentNodeCommunicationMode, IDictionary resourceTags, ETag? etag, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal BatchAccountPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ManagedServiceIdentity identity, string displayName, DateTimeOffset? lastModifiedOn, DateTimeOffset? createdOn, BatchAccountPoolProvisioningState? provisioningState, DateTimeOffset? provisioningStateTransitOn, BatchAccountPoolAllocationState? allocationState, DateTimeOffset? allocationStateTransitionOn, string vmSize, BatchDeploymentConfiguration deploymentConfiguration, int? currentDedicatedNodes, int? currentLowPriorityNodes, BatchAccountPoolScaleSettings scaleSettings, BatchAccountPoolAutoScaleRun autoScaleRun, InterNodeCommunicationState? interNodeCommunication, BatchNetworkConfiguration networkConfiguration, int? taskSlotsPerNode, TaskSchedulingPolicy taskSchedulingPolicy, IList userAccounts, IList metadata, BatchAccountPoolStartTask startTask, IList certificates, IList applicationPackages, IList applicationLicenses, BatchResizeOperationStatus resizeOperationStatus, IList mountConfiguration, NodeCommunicationMode? targetNodeCommunicationMode, NodeCommunicationMode? currentNodeCommunicationMode, UpgradePolicy upgradePolicy, IDictionary resourceTags, ETag? etag, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Identity = identity; DisplayName = displayName; @@ -134,6 +135,7 @@ internal BatchAccountPoolData(ResourceIdentifier id, string name, ResourceType r MountConfiguration = mountConfiguration; TargetNodeCommunicationMode = targetNodeCommunicationMode; CurrentNodeCommunicationMode = currentNodeCommunicationMode; + UpgradePolicy = upgradePolicy; ResourceTags = resourceTags; ETag = etag; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -209,6 +211,8 @@ public BatchNodeFillType? TaskSchedulingNodeFillType public NodeCommunicationMode? TargetNodeCommunicationMode { get; set; } /// Determines how a pool communicates with the Batch service. public NodeCommunicationMode? CurrentNodeCommunicationMode { get; } + /// Describes an upgrade policy - automatic, manual, or rolling. + public UpgradePolicy UpgradePolicy { get; set; } /// The user-defined tags to be associated with the Azure Batch Pool. When specified, these tags are propagated to the backing Azure resources associated with the pool. This property can only be specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'. public IDictionary ResourceTags { get; } /// The ETag of the resource, used for concurrency statements. diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountPoolResource.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountPoolResource.cs index 3222aef73d4aa..c1c94bc6978a1 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountPoolResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountPoolResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual async Task> UpdateAsync(BatchA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual Response Update(BatchAccountPoolData da /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -391,7 +391,7 @@ public virtual async Task> DisableAutoScaleAs /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -429,7 +429,7 @@ public virtual Response DisableAutoScale(CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -467,7 +467,7 @@ public virtual async Task> StopResizeAsync(Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountResource.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountResource.cs index bf591d9bee3fa..4c2c8db5215cc 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountResource.cs @@ -113,7 +113,7 @@ public virtual BatchAccountDetectorCollection GetBatchAccountDetectors() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetBatchAccoun /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual BatchApplicationCollection GetBatchApplications() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetBatchApplicatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -251,7 +251,7 @@ public virtual BatchAccountCertificateCollection GetBatchAccountCertificates() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual async Task> GetBatchAcc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual BatchPrivateLinkResourceCollection GetBatchPrivateLinkResources() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual async Task> GetBatchPrivateLin /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -389,7 +389,7 @@ public virtual BatchPrivateEndpointConnectionCollection GetBatchPrivateEndpointC /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -420,7 +420,7 @@ public virtual async Task> GetB /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -458,7 +458,7 @@ public virtual BatchAccountPoolCollection GetBatchAccountPools() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -489,7 +489,7 @@ public virtual async Task> GetBatchAccountPoo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -520,7 +520,7 @@ public virtual Response GetBatchAccountPool(string poo /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -560,7 +560,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -600,7 +600,7 @@ public virtual Response Get(CancellationToken cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -642,7 +642,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -684,7 +684,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -726,7 +726,7 @@ public virtual async Task> UpdateAsync(BatchAccou /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -768,7 +768,7 @@ public virtual Response Update(BatchAccountPatch patch, Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -806,7 +806,7 @@ public virtual async Task SynchronizeAutoStorageKeysAsync(Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -844,7 +844,7 @@ public virtual Response SynchronizeAutoStorageKeys(CancellationToken cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -886,7 +886,7 @@ public virtual async Task> RegenerateKeyAsync(BatchAc /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -928,7 +928,7 @@ public virtual Response RegenerateKey(BatchAccountRegenerateKe /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -966,7 +966,7 @@ public virtual async Task> GetKeysAsync(CancellationT /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -1004,7 +1004,7 @@ public virtual Response GetKeys(CancellationToken cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -1034,7 +1034,7 @@ public virtual AsyncPageable GetOutboun /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -1064,7 +1064,7 @@ public virtual Pageable GetOutboundNetw /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -1126,7 +1126,7 @@ public virtual async Task> AddTagAsync(string key /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -1188,7 +1188,7 @@ public virtual Response AddTag(string key, string value, C /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -1245,7 +1245,7 @@ public virtual async Task> SetTagsAsync(IDictiona /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -1302,7 +1302,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -1362,7 +1362,7 @@ public virtual async Task> RemoveTagAsync(string /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationCollection.cs index 3e9007005c84b..7c94695288cc6 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationCollection.cs @@ -66,7 +66,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdate /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -164,7 +164,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string ap /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(string applicationName, Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(int? maxresul /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(int? maxresults = null, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string applicationName, Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string applicationName, CancellationToken c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationPackageCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationPackageCollection.cs index 9045ed042f5ac..32c80397de83d 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationPackageCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationPackageCollection.cs @@ -66,7 +66,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -164,7 +164,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(string versionName, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(int? m /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(int? maxresults /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string versionName, Cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string versionName, CancellationToken cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationPackageResource.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationPackageResource.cs index e7e263af869b2..083adfb810371 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationPackageResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationPackageResource.cs @@ -105,7 +105,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -145,7 +145,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual async Task> UpdateA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -361,7 +361,7 @@ public virtual ArmOperation Update(WaitUntil wa /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual async Task> ActivateAsy /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationResource.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationResource.cs index 1f9f7fc31cfa3..26a5769c3c50e 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationResource.cs @@ -110,7 +110,7 @@ public virtual BatchApplicationPackageCollection GetBatchApplicationPackages() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetBatchApp /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetBatchApplicationPack /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(CancellationToken cancella /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -378,7 +378,7 @@ public virtual async Task> UpdateAsync(BatchA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchPrivateEndpointConnectionCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchPrivateEndpointConnectionCollection.cs index 50e473e3ea5ce..cbafd6a950e01 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchPrivateEndpointConnectionCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchPrivateEndpointConnectionCollection.cs @@ -66,7 +66,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -111,7 +111,7 @@ public virtual async Task> GetA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -156,7 +156,7 @@ public virtual Response Get(string priva /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual AsyncPageable GetAllAsync /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -218,7 +218,7 @@ public virtual Pageable GetAll(int? maxr /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -261,7 +261,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -304,7 +304,7 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -349,7 +349,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchPrivateEndpointConnectionResource.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchPrivateEndpointConnectionResource.cs index 8f9f48c594004..32e5dc444e784 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchPrivateEndpointConnectionResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchPrivateEndpointConnectionResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(Cancellation /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchPrivateLinkResource.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchPrivateLinkResource.cs index c1c37553e23a3..54f0c8c599a9f 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchPrivateLinkResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchPrivateLinkResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchPrivateLinkResourceCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchPrivateLinkResourceCollection.cs index f14ec95d8a46d..28857b4fd00ce 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchPrivateLinkResourceCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchPrivateLinkResourceCollection.cs @@ -66,7 +66,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -111,7 +111,7 @@ public virtual async Task> GetAsync(string pr /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -156,7 +156,7 @@ public virtual Response Get(string privateLinkResource /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual AsyncPageable GetAllAsync(int? maxresul /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -218,7 +218,7 @@ public virtual Pageable GetAll(int? maxresults = null, /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -261,7 +261,7 @@ public virtual async Task> ExistsAsync(string privateLinkResource /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -304,7 +304,7 @@ public virtual Response Exists(string privateLinkResourceName, Cancellatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -349,7 +349,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Extensions/BatchExtensions.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Extensions/BatchExtensions.cs index e18178f5f183a..05b2c33ab153a 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Extensions/BatchExtensions.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Extensions/BatchExtensions.cs @@ -217,7 +217,7 @@ public static BatchAccountCollection GetBatchAccounts(this ResourceGroupResource /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -255,7 +255,7 @@ public static async Task> GetBatchAccountAsync(th /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -293,7 +293,7 @@ public static Response GetBatchAccount(this ResourceGroupR /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -329,7 +329,7 @@ public static AsyncPageable GetBatchAccountsAsync(this Sub /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -365,7 +365,7 @@ public static Pageable GetBatchAccounts(this SubscriptionR /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// @@ -397,7 +397,7 @@ public static async Task> GetBatchQuotasAsync(this /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// @@ -429,7 +429,7 @@ public static Response GetBatchQuotas(this SubscriptionResou /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// @@ -464,7 +464,7 @@ public static AsyncPageable GetBatchSupportedVirtualMachineSk /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// @@ -499,7 +499,7 @@ public static Pageable GetBatchSupportedVirtualMachineSkus(th /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// @@ -534,7 +534,7 @@ public static AsyncPageable GetBatchSupportedCloudServiceSkus /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// @@ -569,7 +569,7 @@ public static Pageable GetBatchSupportedCloudServiceSkus(this /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// @@ -602,7 +602,7 @@ public static async Task> CheckBatchNameAv /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Extensions/MockableBatchResourceGroupResource.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Extensions/MockableBatchResourceGroupResource.cs index 1e8e3bf96b6e5..7bb9c8ecdbaee 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Extensions/MockableBatchResourceGroupResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Extensions/MockableBatchResourceGroupResource.cs @@ -56,7 +56,7 @@ public virtual BatchAccountCollection GetBatchAccounts() /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -87,7 +87,7 @@ public virtual async Task> GetBatchAccountAsync(s /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Extensions/MockableBatchSubscriptionResource.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Extensions/MockableBatchSubscriptionResource.cs index 2ff9aa5c85c64..9a635319e2998 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Extensions/MockableBatchSubscriptionResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Extensions/MockableBatchSubscriptionResource.cs @@ -62,7 +62,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -92,7 +92,7 @@ public virtual AsyncPageable GetBatchAccountsAsync(Cancell /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// Resource @@ -122,7 +122,7 @@ public virtual Pageable GetBatchAccounts(CancellationToken /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// @@ -157,7 +157,7 @@ public virtual async Task> GetBatchQuotasAsync(Azur /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// @@ -192,7 +192,7 @@ public virtual Response GetBatchQuotas(AzureLocation locatio /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// @@ -221,7 +221,7 @@ public virtual AsyncPageable GetBatchSupportedVirtualMachineS /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// @@ -250,7 +250,7 @@ public virtual Pageable GetBatchSupportedVirtualMachineSkus(A /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// @@ -279,7 +279,7 @@ public virtual AsyncPageable GetBatchSupportedCloudServiceSku /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// @@ -308,7 +308,7 @@ public virtual Pageable GetBatchSupportedCloudServiceSkus(Azu /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// @@ -347,7 +347,7 @@ public virtual async Task> CheckBatchNameA /// /// /// Default Api Version - /// 2023-11-01 + /// 2024-02-01 /// /// /// diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/AutomaticOSUpgradePolicy.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/AutomaticOSUpgradePolicy.Serialization.cs new file mode 100644 index 0000000000000..89f8f711c2d80 --- /dev/null +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/AutomaticOSUpgradePolicy.Serialization.cs @@ -0,0 +1,171 @@ +// 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.Batch.Models +{ + public partial class AutomaticOSUpgradePolicy : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, new ModelReaderWriterOptions("W")); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AutomaticOSUpgradePolicy)} does not support '{format}' format."); + } + + writer.WriteStartObject(); + if (Optional.IsDefined(DisableAutomaticRollback)) + { + writer.WritePropertyName("disableAutomaticRollback"u8); + writer.WriteBooleanValue(DisableAutomaticRollback.Value); + } + if (Optional.IsDefined(EnableAutomaticOSUpgrade)) + { + writer.WritePropertyName("enableAutomaticOSUpgrade"u8); + writer.WriteBooleanValue(EnableAutomaticOSUpgrade.Value); + } + if (Optional.IsDefined(UseRollingUpgradePolicy)) + { + writer.WritePropertyName("useRollingUpgradePolicy"u8); + writer.WriteBooleanValue(UseRollingUpgradePolicy.Value); + } + if (Optional.IsDefined(OSRollingUpgradeDeferral)) + { + writer.WritePropertyName("osRollingUpgradeDeferral"u8); + writer.WriteBooleanValue(OSRollingUpgradeDeferral.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)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + AutomaticOSUpgradePolicy 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(AutomaticOSUpgradePolicy)} does not support '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAutomaticOSUpgradePolicy(document.RootElement, options); + } + + internal static AutomaticOSUpgradePolicy DeserializeAutomaticOSUpgradePolicy(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= new ModelReaderWriterOptions("W"); + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional disableAutomaticRollback = default; + Optional enableAutomaticOSUpgrade = default; + Optional useRollingUpgradePolicy = default; + Optional osRollingUpgradeDeferral = default; + IDictionary serializedAdditionalRawData = default; + Dictionary additionalPropertiesDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("disableAutomaticRollback"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + disableAutomaticRollback = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("enableAutomaticOSUpgrade"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enableAutomaticOSUpgrade = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("useRollingUpgradePolicy"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + useRollingUpgradePolicy = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("osRollingUpgradeDeferral"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + osRollingUpgradeDeferral = property.Value.GetBoolean(); + continue; + } + if (options.Format != "W") + { + additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = additionalPropertiesDictionary; + return new AutomaticOSUpgradePolicy(Optional.ToNullable(disableAutomaticRollback), Optional.ToNullable(enableAutomaticOSUpgrade), Optional.ToNullable(useRollingUpgradePolicy), Optional.ToNullable(osRollingUpgradeDeferral), 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); + default: + throw new FormatException($"The model {nameof(AutomaticOSUpgradePolicy)} does not support '{options.Format}' format."); + } + } + + AutomaticOSUpgradePolicy 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); + return DeserializeAutomaticOSUpgradePolicy(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AutomaticOSUpgradePolicy)} does not support '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/AutomaticOSUpgradePolicy.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/AutomaticOSUpgradePolicy.cs new file mode 100644 index 0000000000000..2a35975bc69c2 --- /dev/null +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/AutomaticOSUpgradePolicy.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Batch.Models +{ + /// The configuration parameters used for performing automatic OS upgrade. + public partial class AutomaticOSUpgradePolicy + { + /// + /// 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 AutomaticOSUpgradePolicy() + { + } + + /// Initializes a new instance of . + /// Whether OS image rollback feature should be disabled. + /// Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. <br /><br /> If this is set to true for Windows based pools, [WindowsConfiguration.enableAutomaticUpdates](https://learn.microsoft.com/en-us/rest/api/batchmanagement/pool/create?tabs=HTTP#windowsconfiguration) cannot be set to true. + /// Indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Auto OS Upgrade will fallback to the default policy if no policy is defined on the VMSS. + /// Defer OS upgrades on the TVMs if they are running tasks. + /// Keeps track of any properties unknown to the library. + internal AutomaticOSUpgradePolicy(bool? disableAutomaticRollback, bool? enableAutomaticOSUpgrade, bool? useRollingUpgradePolicy, bool? osRollingUpgradeDeferral, IDictionary serializedAdditionalRawData) + { + DisableAutomaticRollback = disableAutomaticRollback; + EnableAutomaticOSUpgrade = enableAutomaticOSUpgrade; + UseRollingUpgradePolicy = useRollingUpgradePolicy; + OSRollingUpgradeDeferral = osRollingUpgradeDeferral; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Whether OS image rollback feature should be disabled. + public bool? DisableAutomaticRollback { get; set; } + /// Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. <br /><br /> If this is set to true for Windows based pools, [WindowsConfiguration.enableAutomaticUpdates](https://learn.microsoft.com/en-us/rest/api/batchmanagement/pool/create?tabs=HTTP#windowsconfiguration) cannot be set to true. + public bool? EnableAutomaticOSUpgrade { get; set; } + /// Indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Auto OS Upgrade will fallback to the default policy if no policy is defined on the VMSS. + public bool? UseRollingUpgradePolicy { get; set; } + /// Defer OS upgrades on the TVMs if they are running tasks. + public bool? OSRollingUpgradeDeferral { get; set; } + } +} diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPoolData.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPoolData.Serialization.cs index b9b660712ae0e..bbaa6de9a821d 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPoolData.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPoolData.Serialization.cs @@ -233,6 +233,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWr writer.WriteNull("currentNodeCommunicationMode"); } } + if (Optional.IsDefined(UpgradePolicy)) + { + writer.WritePropertyName("upgradePolicy"u8); + writer.WriteObjectValue(UpgradePolicy); + } if (Optional.IsCollectionDefined(ResourceTags)) { writer.WritePropertyName("resourceTags"u8); @@ -316,6 +321,7 @@ internal static BatchAccountPoolData DeserializeBatchAccountPoolData(JsonElement Optional> mountConfiguration = default; Optional targetNodeCommunicationMode = default; Optional currentNodeCommunicationMode = default; + Optional upgradePolicy = default; Optional> resourceTags = default; IDictionary serializedAdditionalRawData = default; Dictionary additionalPropertiesDictionary = new Dictionary(); @@ -638,6 +644,15 @@ internal static BatchAccountPoolData DeserializeBatchAccountPoolData(JsonElement currentNodeCommunicationMode = property0.Value.GetString().ToNodeCommunicationMode(); continue; } + if (property0.NameEquals("upgradePolicy"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + upgradePolicy = UpgradePolicy.DeserializeUpgradePolicy(property0.Value); + continue; + } if (property0.NameEquals("resourceTags"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -661,7 +676,7 @@ internal static BatchAccountPoolData DeserializeBatchAccountPoolData(JsonElement } } serializedAdditionalRawData = additionalPropertiesDictionary; - return new BatchAccountPoolData(id, name, type, systemData.Value, identity, displayName.Value, Optional.ToNullable(lastModified), Optional.ToNullable(creationTime), Optional.ToNullable(provisioningState), Optional.ToNullable(provisioningStateTransitionTime), Optional.ToNullable(allocationState), Optional.ToNullable(allocationStateTransitionTime), vmSize.Value, deploymentConfiguration.Value, Optional.ToNullable(currentDedicatedNodes), Optional.ToNullable(currentLowPriorityNodes), scaleSettings.Value, autoScaleRun.Value, Optional.ToNullable(interNodeCommunication), networkConfiguration.Value, Optional.ToNullable(taskSlotsPerNode), taskSchedulingPolicy.Value, Optional.ToList(userAccounts), Optional.ToList(metadata), startTask.Value, Optional.ToList(certificates), Optional.ToList(applicationPackages), Optional.ToList(applicationLicenses), resizeOperationStatus.Value, Optional.ToList(mountConfiguration), Optional.ToNullable(targetNodeCommunicationMode), Optional.ToNullable(currentNodeCommunicationMode), Optional.ToDictionary(resourceTags), Optional.ToNullable(etag), serializedAdditionalRawData); + return new BatchAccountPoolData(id, name, type, systemData.Value, identity, displayName.Value, Optional.ToNullable(lastModified), Optional.ToNullable(creationTime), Optional.ToNullable(provisioningState), Optional.ToNullable(provisioningStateTransitionTime), Optional.ToNullable(allocationState), Optional.ToNullable(allocationStateTransitionTime), vmSize.Value, deploymentConfiguration.Value, Optional.ToNullable(currentDedicatedNodes), Optional.ToNullable(currentLowPriorityNodes), scaleSettings.Value, autoScaleRun.Value, Optional.ToNullable(interNodeCommunication), networkConfiguration.Value, Optional.ToNullable(taskSlotsPerNode), taskSchedulingPolicy.Value, Optional.ToList(userAccounts), Optional.ToList(metadata), startTask.Value, Optional.ToList(certificates), Optional.ToList(applicationPackages), Optional.ToList(applicationLicenses), resizeOperationStatus.Value, Optional.ToList(mountConfiguration), Optional.ToNullable(targetNodeCommunicationMode), Optional.ToNullable(currentNodeCommunicationMode), upgradePolicy.Value, Optional.ToDictionary(resourceTags), Optional.ToNullable(etag), serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchSupportedSku.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchSupportedSku.Serialization.cs index cb613b13516f8..366f1e6a3b99e 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchSupportedSku.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchSupportedSku.Serialization.cs @@ -46,6 +46,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWrite } writer.WriteEndArray(); } + if (options.Format != "W" && Optional.IsDefined(BatchSupportEndOfLife)) + { + writer.WritePropertyName("batchSupportEndOfLife"u8); + writer.WriteStringValue(BatchSupportEndOfLife.Value, "O"); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -87,6 +92,7 @@ internal static BatchSupportedSku DeserializeBatchSupportedSku(JsonElement eleme Optional name = default; Optional familyName = default; Optional> capabilities = default; + Optional batchSupportEndOfLife = default; IDictionary serializedAdditionalRawData = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -115,13 +121,22 @@ internal static BatchSupportedSku DeserializeBatchSupportedSku(JsonElement eleme capabilities = array; continue; } + if (property.NameEquals("batchSupportEndOfLife"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + batchSupportEndOfLife = property.Value.GetDateTimeOffset("O"); + continue; + } if (options.Format != "W") { additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = additionalPropertiesDictionary; - return new BatchSupportedSku(name.Value, familyName.Value, Optional.ToList(capabilities), serializedAdditionalRawData); + return new BatchSupportedSku(name.Value, familyName.Value, Optional.ToList(capabilities), Optional.ToNullable(batchSupportEndOfLife), serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchSupportedSku.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchSupportedSku.cs index 88b5214d9c1d5..f2b7a0161f0a6 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchSupportedSku.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchSupportedSku.cs @@ -56,12 +56,14 @@ internal BatchSupportedSku() /// The name of the SKU. /// The family name of the SKU. /// A collection of capabilities which this SKU supports. + /// The time when Azure Batch service will retire this SKU. /// Keeps track of any properties unknown to the library. - internal BatchSupportedSku(string name, string familyName, IReadOnlyList capabilities, IDictionary serializedAdditionalRawData) + internal BatchSupportedSku(string name, string familyName, IReadOnlyList capabilities, DateTimeOffset? batchSupportEndOfLife, IDictionary serializedAdditionalRawData) { Name = name; FamilyName = familyName; Capabilities = capabilities; + BatchSupportEndOfLife = batchSupportEndOfLife; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -71,5 +73,7 @@ internal BatchSupportedSku(string name, string familyName, IReadOnlyList A collection of capabilities which this SKU supports. public IReadOnlyList Capabilities { get; } + /// The time when Azure Batch service will retire this SKU. + public DateTimeOffset? BatchSupportEndOfLife { get; } } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/RollingUpgradePolicy.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/RollingUpgradePolicy.Serialization.cs new file mode 100644 index 0000000000000..7fa30b3e155f5 --- /dev/null +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/RollingUpgradePolicy.Serialization.cs @@ -0,0 +1,212 @@ +// 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.Batch.Models +{ + public partial class RollingUpgradePolicy : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, new ModelReaderWriterOptions("W")); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RollingUpgradePolicy)} does not support '{format}' format."); + } + + writer.WriteStartObject(); + if (Optional.IsDefined(EnableCrossZoneUpgrade)) + { + writer.WritePropertyName("enableCrossZoneUpgrade"u8); + writer.WriteBooleanValue(EnableCrossZoneUpgrade.Value); + } + if (Optional.IsDefined(MaxBatchInstancePercent)) + { + writer.WritePropertyName("maxBatchInstancePercent"u8); + writer.WriteNumberValue(MaxBatchInstancePercent.Value); + } + if (Optional.IsDefined(MaxUnhealthyInstancePercent)) + { + writer.WritePropertyName("maxUnhealthyInstancePercent"u8); + writer.WriteNumberValue(MaxUnhealthyInstancePercent.Value); + } + if (Optional.IsDefined(MaxUnhealthyUpgradedInstancePercent)) + { + writer.WritePropertyName("maxUnhealthyUpgradedInstancePercent"u8); + writer.WriteNumberValue(MaxUnhealthyUpgradedInstancePercent.Value); + } + if (Optional.IsDefined(PauseTimeBetweenBatches)) + { + writer.WritePropertyName("pauseTimeBetweenBatches"u8); + writer.WriteStringValue(PauseTimeBetweenBatches); + } + if (Optional.IsDefined(PrioritizeUnhealthyInstances)) + { + writer.WritePropertyName("prioritizeUnhealthyInstances"u8); + writer.WriteBooleanValue(PrioritizeUnhealthyInstances.Value); + } + if (Optional.IsDefined(RollbackFailedInstancesOnPolicyBreach)) + { + writer.WritePropertyName("rollbackFailedInstancesOnPolicyBreach"u8); + writer.WriteBooleanValue(RollbackFailedInstancesOnPolicyBreach.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)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + RollingUpgradePolicy 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(RollingUpgradePolicy)} does not support '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeRollingUpgradePolicy(document.RootElement, options); + } + + internal static RollingUpgradePolicy DeserializeRollingUpgradePolicy(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= new ModelReaderWriterOptions("W"); + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional enableCrossZoneUpgrade = default; + Optional maxBatchInstancePercent = default; + Optional maxUnhealthyInstancePercent = default; + Optional maxUnhealthyUpgradedInstancePercent = default; + Optional pauseTimeBetweenBatches = default; + Optional prioritizeUnhealthyInstances = default; + Optional rollbackFailedInstancesOnPolicyBreach = default; + IDictionary serializedAdditionalRawData = default; + Dictionary additionalPropertiesDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("enableCrossZoneUpgrade"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enableCrossZoneUpgrade = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("maxBatchInstancePercent"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + maxBatchInstancePercent = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("maxUnhealthyInstancePercent"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + maxUnhealthyInstancePercent = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("maxUnhealthyUpgradedInstancePercent"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + maxUnhealthyUpgradedInstancePercent = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("pauseTimeBetweenBatches"u8)) + { + pauseTimeBetweenBatches = property.Value.GetString(); + continue; + } + if (property.NameEquals("prioritizeUnhealthyInstances"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + prioritizeUnhealthyInstances = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("rollbackFailedInstancesOnPolicyBreach"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rollbackFailedInstancesOnPolicyBreach = property.Value.GetBoolean(); + continue; + } + if (options.Format != "W") + { + additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = additionalPropertiesDictionary; + return new RollingUpgradePolicy(Optional.ToNullable(enableCrossZoneUpgrade), Optional.ToNullable(maxBatchInstancePercent), Optional.ToNullable(maxUnhealthyInstancePercent), Optional.ToNullable(maxUnhealthyUpgradedInstancePercent), pauseTimeBetweenBatches.Value, Optional.ToNullable(prioritizeUnhealthyInstances), Optional.ToNullable(rollbackFailedInstancesOnPolicyBreach), 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); + default: + throw new FormatException($"The model {nameof(RollingUpgradePolicy)} does not support '{options.Format}' format."); + } + } + + RollingUpgradePolicy 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); + return DeserializeRollingUpgradePolicy(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(RollingUpgradePolicy)} does not support '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/RollingUpgradePolicy.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/RollingUpgradePolicy.cs new file mode 100644 index 0000000000000..c834278d06ab6 --- /dev/null +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/RollingUpgradePolicy.cs @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Batch.Models +{ + /// The configuration parameters used while performing a rolling upgrade. + public partial class RollingUpgradePolicy + { + /// + /// 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 RollingUpgradePolicy() + { + } + + /// Initializes a new instance of . + /// Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size. If this field is not set, Azure Azure Batch will not set its default value. The value of enableCrossZoneUpgrade on the created VirtualMachineScaleSet will be decided by the default configurations on VirtualMachineScaleSet. This field is able to be set to true or false only when using NodePlacementConfiguration as Zonal. + /// The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent. + /// The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent. + /// The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The value of this field should be between 0 and 100, inclusive. + /// The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. + /// Upgrade all unhealthy instances in a scale set before any healthy instances. + /// Rollback failed instances to previous model if the Rolling Upgrade policy is violated. + /// Keeps track of any properties unknown to the library. + internal RollingUpgradePolicy(bool? enableCrossZoneUpgrade, int? maxBatchInstancePercent, int? maxUnhealthyInstancePercent, int? maxUnhealthyUpgradedInstancePercent, string pauseTimeBetweenBatches, bool? prioritizeUnhealthyInstances, bool? rollbackFailedInstancesOnPolicyBreach, IDictionary serializedAdditionalRawData) + { + EnableCrossZoneUpgrade = enableCrossZoneUpgrade; + MaxBatchInstancePercent = maxBatchInstancePercent; + MaxUnhealthyInstancePercent = maxUnhealthyInstancePercent; + MaxUnhealthyUpgradedInstancePercent = maxUnhealthyUpgradedInstancePercent; + PauseTimeBetweenBatches = pauseTimeBetweenBatches; + PrioritizeUnhealthyInstances = prioritizeUnhealthyInstances; + RollbackFailedInstancesOnPolicyBreach = rollbackFailedInstancesOnPolicyBreach; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size. If this field is not set, Azure Azure Batch will not set its default value. The value of enableCrossZoneUpgrade on the created VirtualMachineScaleSet will be decided by the default configurations on VirtualMachineScaleSet. This field is able to be set to true or false only when using NodePlacementConfiguration as Zonal. + public bool? EnableCrossZoneUpgrade { get; set; } + /// The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent. + public int? MaxBatchInstancePercent { get; set; } + /// The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent. + public int? MaxUnhealthyInstancePercent { get; set; } + /// The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The value of this field should be between 0 and 100, inclusive. + public int? MaxUnhealthyUpgradedInstancePercent { get; set; } + /// The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. + public string PauseTimeBetweenBatches { get; set; } + /// Upgrade all unhealthy instances in a scale set before any healthy instances. + public bool? PrioritizeUnhealthyInstances { get; set; } + /// Rollback failed instances to previous model if the Rolling Upgrade policy is violated. + public bool? RollbackFailedInstancesOnPolicyBreach { get; set; } + } +} diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/UpgradeMode.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/UpgradeMode.Serialization.cs new file mode 100644 index 0000000000000..1a408c278e6c5 --- /dev/null +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/UpgradeMode.Serialization.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Batch.Models +{ + internal static partial class UpgradeModeExtensions + { + public static string ToSerialString(this UpgradeMode value) => value switch + { + UpgradeMode.Automatic => "automatic", + UpgradeMode.Manual => "manual", + UpgradeMode.Rolling => "rolling", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown UpgradeMode value.") + }; + + public static UpgradeMode ToUpgradeMode(this string value) + { + if (StringComparer.OrdinalIgnoreCase.Equals(value, "automatic")) return UpgradeMode.Automatic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "manual")) return UpgradeMode.Manual; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "rolling")) return UpgradeMode.Rolling; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown UpgradeMode value."); + } + } +} diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/UpgradeMode.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/UpgradeMode.cs new file mode 100644 index 0000000000000..77365854eee4f --- /dev/null +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/UpgradeMode.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Batch.Models +{ + /// Specifies the mode of an upgrade to virtual machines in the scale set.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> **Automatic** - All virtual machines in the scale set are automatically updated at the same time.<br /><br /> **Rolling** - Scale set performs updates in batches with an optional pause time in between. + public enum UpgradeMode + { + /// All virtual machines in the scale set are automatically updated at the same time. + Automatic, + /// You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action. + Manual, + /// The existing instances in a scale set are brought down in batches to be upgraded. Once the upgraded batch is complete, the instances will begin taking traffic again and the next batch will begin. This continues until all instances brought up-to-date. + Rolling + } +} diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/UpgradePolicy.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/UpgradePolicy.Serialization.cs new file mode 100644 index 0000000000000..b74db6ed96f67 --- /dev/null +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/UpgradePolicy.Serialization.cs @@ -0,0 +1,149 @@ +// 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.Batch.Models +{ + public partial class UpgradePolicy : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, new ModelReaderWriterOptions("W")); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(UpgradePolicy)} does not support '{format}' format."); + } + + writer.WriteStartObject(); + writer.WritePropertyName("mode"u8); + writer.WriteStringValue(Mode.ToSerialString()); + if (Optional.IsDefined(AutomaticOSUpgradePolicy)) + { + writer.WritePropertyName("automaticOSUpgradePolicy"u8); + writer.WriteObjectValue(AutomaticOSUpgradePolicy); + } + if (Optional.IsDefined(RollingUpgradePolicy)) + { + writer.WritePropertyName("rollingUpgradePolicy"u8); + writer.WriteObjectValue(RollingUpgradePolicy); + } + 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)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + UpgradePolicy 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(UpgradePolicy)} does not support '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeUpgradePolicy(document.RootElement, options); + } + + internal static UpgradePolicy DeserializeUpgradePolicy(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= new ModelReaderWriterOptions("W"); + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + UpgradeMode mode = default; + Optional automaticOSUpgradePolicy = default; + Optional rollingUpgradePolicy = default; + IDictionary serializedAdditionalRawData = default; + Dictionary additionalPropertiesDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("mode"u8)) + { + mode = property.Value.GetString().ToUpgradeMode(); + continue; + } + if (property.NameEquals("automaticOSUpgradePolicy"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + automaticOSUpgradePolicy = AutomaticOSUpgradePolicy.DeserializeAutomaticOSUpgradePolicy(property.Value); + continue; + } + if (property.NameEquals("rollingUpgradePolicy"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rollingUpgradePolicy = RollingUpgradePolicy.DeserializeRollingUpgradePolicy(property.Value); + continue; + } + if (options.Format != "W") + { + additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = additionalPropertiesDictionary; + return new UpgradePolicy(mode, automaticOSUpgradePolicy.Value, rollingUpgradePolicy.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); + default: + throw new FormatException($"The model {nameof(UpgradePolicy)} does not support '{options.Format}' format."); + } + } + + UpgradePolicy 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); + return DeserializeUpgradePolicy(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(UpgradePolicy)} does not support '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/UpgradePolicy.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/UpgradePolicy.cs new file mode 100644 index 0000000000000..8471c9e7eccba --- /dev/null +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/UpgradePolicy.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.Batch.Models +{ + /// Describes an upgrade policy - automatic, manual, or rolling. + public partial class UpgradePolicy + { + /// + /// 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 . + /// Specifies the mode of an upgrade to virtual machines in the scale set.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> **Automatic** - All virtual machines in the scale set are automatically updated at the same time.<br /><br /> **Rolling** - Scale set performs updates in batches with an optional pause time in between. + public UpgradePolicy(UpgradeMode mode) + { + Mode = mode; + } + + /// Initializes a new instance of . + /// Specifies the mode of an upgrade to virtual machines in the scale set.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> **Automatic** - All virtual machines in the scale set are automatically updated at the same time.<br /><br /> **Rolling** - Scale set performs updates in batches with an optional pause time in between. + /// The configuration parameters used for performing automatic OS upgrade. + /// This property is only supported on Pools with the virtualMachineConfiguration property. + /// Keeps track of any properties unknown to the library. + internal UpgradePolicy(UpgradeMode mode, AutomaticOSUpgradePolicy automaticOSUpgradePolicy, RollingUpgradePolicy rollingUpgradePolicy, IDictionary serializedAdditionalRawData) + { + Mode = mode; + AutomaticOSUpgradePolicy = automaticOSUpgradePolicy; + RollingUpgradePolicy = rollingUpgradePolicy; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal UpgradePolicy() + { + } + + /// Specifies the mode of an upgrade to virtual machines in the scale set.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> **Automatic** - All virtual machines in the scale set are automatically updated at the same time.<br /><br /> **Rolling** - Scale set performs updates in batches with an optional pause time in between. + public UpgradeMode Mode { get; set; } + /// The configuration parameters used for performing automatic OS upgrade. + public AutomaticOSUpgradePolicy AutomaticOSUpgradePolicy { get; set; } + /// This property is only supported on Pools with the virtualMachineConfiguration property. + public RollingUpgradePolicy RollingUpgradePolicy { get; set; } + } +} diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/ApplicationPackageRestOperations.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/ApplicationPackageRestOperations.cs index 40c5a5e900eb1..0b72043635a24 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/ApplicationPackageRestOperations.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/ApplicationPackageRestOperations.cs @@ -33,7 +33,7 @@ public ApplicationPackageRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/ApplicationRestOperations.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/ApplicationRestOperations.cs index 162b3eb29db3e..2e156ab79f587 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/ApplicationRestOperations.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/ApplicationRestOperations.cs @@ -33,7 +33,7 @@ public ApplicationRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/BatchAccountRestOperations.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/BatchAccountRestOperations.cs index 8248825dea5bc..0be3a95318b8f 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/BatchAccountRestOperations.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/BatchAccountRestOperations.cs @@ -33,7 +33,7 @@ public BatchAccountRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/CertificateRestOperations.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/CertificateRestOperations.cs index 811e53342732a..4fac312c64cf5 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/CertificateRestOperations.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/CertificateRestOperations.cs @@ -33,7 +33,7 @@ public CertificateRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/LocationRestOperations.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/LocationRestOperations.cs index cb9e0ba905623..ab87fbbca8d0a 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/LocationRestOperations.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/LocationRestOperations.cs @@ -33,7 +33,7 @@ public LocationRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PoolRestOperations.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PoolRestOperations.cs index f1318e5015af3..6a703fed9203c 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PoolRestOperations.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PoolRestOperations.cs @@ -33,7 +33,7 @@ public PoolRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs index d4d884ad6847e..821e5b5baa8a6 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs @@ -33,7 +33,7 @@ public PrivateEndpointConnectionRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PrivateLinkResourceRestOperations.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PrivateLinkResourceRestOperations.cs index e31653a213091..0f169a0d9380d 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PrivateLinkResourceRestOperations.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PrivateLinkResourceRestOperations.cs @@ -33,7 +33,7 @@ public PrivateLinkResourceRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-11-01"; + _apiVersion = apiVersion ?? "2024-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/autorest.md b/sdk/batch/Azure.ResourceManager.Batch/src/autorest.md index d0daf1cfb78b5..11f8650c30089 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/autorest.md +++ b/sdk/batch/Azure.ResourceManager.Batch/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: Batch namespace: Azure.ResourceManager.Batch -require: https://github.com/Azure/azure-rest-api-specs/blob/408db257fe67fc66d8c66c10881be8d414d5e5f3/specification/batch/resource-manager/readme.md +require: https://github.com/Azure/azure-rest-api-specs/blob/d1435fde816ebc8297b246b886ab3edefd78a98e/specification/batch/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true diff --git a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountCertificateCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountCertificateCollection.cs index d16b744fc227a..9b5b415c80930 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountCertificateCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountCertificateCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_BatchAccountCertificateCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListCertificates() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateList.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json // this example is just showing the usage of "Certificate_ListByBatchAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListCertificates() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListCertificatesFilterAndSelect() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateListWithFilter.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateListWithFilter.json // this example is just showing the usage of "Certificate_ListByBatchAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -99,7 +99,7 @@ public async Task GetAll_ListCertificatesFilterAndSelect() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateCertificateFull() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Full.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json // this example is just showing the usage of "Certificate_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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,7 +143,7 @@ public async Task CreateOrUpdate_CreateCertificateFull() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateCertificateMinimalCer() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_MinimalCer.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_MinimalCer.json // this example is just showing the usage of "Certificate_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 +184,7 @@ public async Task CreateOrUpdate_CreateCertificateMinimalCer() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateCertificateMinimalPfx() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Minimal.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Minimal.json // this example is just showing the usage of "Certificate_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -225,7 +225,7 @@ public async Task CreateOrUpdate_CreateCertificateMinimalPfx() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCertificate() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json // this example is just showing the usage of "Certificate_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -260,7 +260,7 @@ public async Task Get_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetCertificate() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json // this example is just showing the usage of "Certificate_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 @@ -291,7 +291,7 @@ public async Task Exists_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCertificateWithDeletionError() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGetWithDeletionError.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGetWithDeletionError.json // this example is just showing the usage of "Certificate_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 @@ -326,7 +326,7 @@ public async Task Get_GetCertificateWithDeletionError() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetCertificateWithDeletionError() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGetWithDeletionError.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGetWithDeletionError.json // this example is just showing the usage of "Certificate_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/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountCertificateResource.cs b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountCertificateResource.cs index 062b4d2affd8d..1d7b9e2523454 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountCertificateResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountCertificateResource.cs @@ -23,7 +23,7 @@ public partial class Sample_BatchAccountCertificateResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateCertificate() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateUpdate.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json // this example is just showing the usage of "Certificate_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 @@ -60,7 +60,7 @@ public async Task Update_UpdateCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_CertificateDelete() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateDelete.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json // this example is just showing the usage of "Certificate_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 @@ -88,7 +88,7 @@ public async Task Delete_CertificateDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCertificate() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json // this example is just showing the usage of "Certificate_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 @@ -120,7 +120,7 @@ public async Task Get_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCertificateWithDeletionError() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGetWithDeletionError.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGetWithDeletionError.json // this example is just showing the usage of "Certificate_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 @@ -152,7 +152,7 @@ public async Task Get_GetCertificateWithDeletionError() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CancelDeletion_CertificateCancelDeletion() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCancelDeletion.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json // this example is just showing the usage of "Certificate_CancelDeletion" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountCollection.cs index e18edf46f47d5..c0b5093329e34 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountCollection.cs @@ -25,7 +25,7 @@ public partial class Sample_BatchAccountCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_BatchAccountCreateBYOS() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_BYOS.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json // this example is just showing the usage of "BatchAccount_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -66,7 +66,7 @@ public async Task CreateOrUpdate_BatchAccountCreateBYOS() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_BatchAccountCreateDefault() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_Default.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_Default.json // this example is just showing the usage of "BatchAccount_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -105,7 +105,7 @@ public async Task CreateOrUpdate_BatchAccountCreateDefault() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_BatchAccountCreateSystemAssignedIdentity() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_SystemAssignedIdentity.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_SystemAssignedIdentity.json // this example is just showing the usage of "BatchAccount_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -145,7 +145,7 @@ public async Task CreateOrUpdate_BatchAccountCreateSystemAssignedIdentity() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_BatchAccountCreateUserAssignedIdentity() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_UserAssignedIdentity.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_UserAssignedIdentity.json // this example is just showing the usage of "BatchAccount_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -191,7 +191,7 @@ public async Task CreateOrUpdate_BatchAccountCreateUserAssignedIdentity() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_PrivateBatchAccountCreate() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountCreate.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountCreate.json // this example is just showing the usage of "BatchAccount_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -232,7 +232,7 @@ public async Task CreateOrUpdate_PrivateBatchAccountCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_BatchAccountGet() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json // this example is just showing the usage of "BatchAccount_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 @@ -266,7 +266,7 @@ public async Task Get_BatchAccountGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_BatchAccountGet() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json // this example is just showing the usage of "BatchAccount_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 @@ -296,7 +296,7 @@ public async Task Exists_BatchAccountGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_PrivateBatchAccountGet() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountGet.json // this example is just showing the usage of "BatchAccount_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 @@ -330,7 +330,7 @@ public async Task Get_PrivateBatchAccountGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_PrivateBatchAccountGet() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountGet.json // this example is just showing the usage of "BatchAccount_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 @@ -360,7 +360,7 @@ public async Task Exists_PrivateBatchAccountGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_BatchAccountListByResourceGroup() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListByResourceGroup.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json // this example is just showing the usage of "BatchAccount_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountDetectorCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountDetectorCollection.cs index 5033a8816b2a3..555560b606756 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountDetectorCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountDetectorCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_BatchAccountDetectorCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListDetectors() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorList.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json // this example is just showing the usage of "BatchAccount_ListDetectors" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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,7 +58,7 @@ public async Task GetAll_ListDetectors() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDetector() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json // this example is just showing the usage of "BatchAccount_GetDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetDetector() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetDetector() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json // this example is just showing the usage of "BatchAccount_GetDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountDetectorResource.cs b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountDetectorResource.cs index 5249cc5c956c0..8a0dd4dd5686d 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountDetectorResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountDetectorResource.cs @@ -21,7 +21,7 @@ public partial class Sample_BatchAccountDetectorResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDetector() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json // this example is just showing the usage of "BatchAccount_GetDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountPoolCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountPoolCollection.cs index d2fe892514432..0956f37b631f0 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountPoolCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountPoolCollection.cs @@ -26,7 +26,7 @@ public partial class Sample_BatchAccountPoolCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPool() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolList.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolList.json // this example is just showing the usage of "Pool_ListByBatchAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -63,7 +63,7 @@ public async Task GetAll_ListPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPoolWithFilter() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolListWithFilter.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolListWithFilter.json // this example is just showing the usage of "Pool_ListByBatchAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -102,7 +102,7 @@ public async Task GetAll_ListPoolWithFilter() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePoolCustomImage() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SharedImageGallery.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SharedImageGallery.json // this example is just showing the usage of "Pool_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -149,7 +149,7 @@ public async Task CreateOrUpdate_CreatePoolCustomImage() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePoolFullCloudServiceConfiguration() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_CloudServiceConfiguration.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_CloudServiceConfiguration.json // this example is just showing the usage of "Pool_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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,7 +292,7 @@ public async Task CreateOrUpdate_CreatePoolFullCloudServiceConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePoolFullVirtualMachineConfiguration() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration.json // this example is just showing the usage of "Pool_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -396,7 +396,7 @@ public async Task CreateOrUpdate_CreatePoolFullVirtualMachineConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePoolMinimalCloudServiceConfiguration() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json // this example is just showing the usage of "Pool_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -447,7 +447,7 @@ public async Task CreateOrUpdate_CreatePoolMinimalCloudServiceConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePoolMinimalVirtualMachineConfiguration() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json // this example is just showing the usage of "Pool_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -504,7 +504,7 @@ public async Task CreateOrUpdate_CreatePoolMinimalVirtualMachineConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePoolNoPublicIP() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_NoPublicIPAddresses.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_NoPublicIPAddresses.json // this example is just showing the usage of "Pool_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -559,7 +559,7 @@ public async Task CreateOrUpdate_CreatePoolNoPublicIP() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePoolPublicIPs() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_PublicIPs.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_PublicIPs.json // this example is just showing the usage of "Pool_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -618,7 +618,7 @@ public async Task CreateOrUpdate_CreatePoolPublicIPs() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePoolUserAssignedIdentities() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_UserAssignedIdentities.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UserAssignedIdentities.json // this example is just showing the usage of "Pool_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -683,7 +683,7 @@ public async Task CreateOrUpdate_CreatePoolUserAssignedIdentities() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePoolVirtualMachineConfigurationExtensions() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json // this example is just showing the usage of "Pool_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -755,7 +755,7 @@ public async Task CreateOrUpdate_CreatePoolVirtualMachineConfigurationExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePoolAcceleratedNetworking() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_AcceleratedNetworking.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_AcceleratedNetworking.json // this example is just showing the usage of "Pool_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -818,7 +818,7 @@ public async Task CreateOrUpdate_CreatePoolAcceleratedNetworking() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPool() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json // this example is just showing the usage of "Pool_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 @@ -853,7 +853,7 @@ public async Task Get_GetPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPool() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json // this example is just showing the usage of "Pool_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 @@ -884,7 +884,7 @@ public async Task Exists_GetPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPoolAcceleratedNetworking() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_AcceleratedNetworking.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_AcceleratedNetworking.json // this example is just showing the usage of "Pool_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 @@ -919,7 +919,7 @@ public async Task Get_GetPoolAcceleratedNetworking() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPoolAcceleratedNetworking() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_AcceleratedNetworking.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_AcceleratedNetworking.json // this example is just showing the usage of "Pool_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 @@ -950,7 +950,7 @@ public async Task Exists_GetPoolAcceleratedNetworking() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPoolVirtualMachineConfigurationExtensions() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json // this example is just showing the usage of "Pool_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 @@ -985,7 +985,7 @@ public async Task Get_GetPoolVirtualMachineConfigurationExtensions() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPoolVirtualMachineConfigurationExtensions() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json // this example is just showing the usage of "Pool_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/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountPoolResource.cs b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountPoolResource.cs index 573065c5c5944..ea56def64e989 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountPoolResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountPoolResource.cs @@ -24,7 +24,7 @@ public partial class Sample_BatchAccountPoolResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdatePoolEnableAutoscale() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_EnableAutoScale.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_EnableAutoScale.json // this example is just showing the usage of "Pool_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -63,7 +63,7 @@ public async Task Update_UpdatePoolEnableAutoscale() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdatePoolOtherProperties() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_OtherProperties.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_OtherProperties.json // this example is just showing the usage of "Pool_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 @@ -118,7 +118,7 @@ public async Task Update_UpdatePoolOtherProperties() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdatePoolRemoveStartTask() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_RemoveStartTask.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_RemoveStartTask.json // this example is just showing the usage of "Pool_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -154,7 +154,7 @@ public async Task Update_UpdatePoolRemoveStartTask() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdatePoolResizePool() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_ResizePool.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_ResizePool.json // this example is just showing the usage of "Pool_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 @@ -199,7 +199,7 @@ public async Task Update_UpdatePoolResizePool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletePool() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDelete.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDelete.json // this example is just showing the usage of "Pool_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 @@ -227,7 +227,7 @@ public async Task Delete_DeletePool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPool() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json // this example is just showing the usage of "Pool_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 @@ -259,7 +259,7 @@ public async Task Get_GetPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPoolAcceleratedNetworking() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_AcceleratedNetworking.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_AcceleratedNetworking.json // this example is just showing the usage of "Pool_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 @@ -291,7 +291,7 @@ public async Task Get_GetPoolAcceleratedNetworking() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPoolVirtualMachineConfigurationExtensions() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json // this example is just showing the usage of "Pool_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 @@ -323,7 +323,7 @@ public async Task Get_GetPoolVirtualMachineConfigurationExtensions() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task DisableAutoScale_DisableAutoScale() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDisableAutoScale.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDisableAutoScale.json // this example is just showing the usage of "Pool_DisableAutoScale" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -355,7 +355,7 @@ public async Task DisableAutoScale_DisableAutoScale() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StopResize_StopPoolResize() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolStopResize.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolStopResize.json // this example is just showing the usage of "Pool_StopResize" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountResource.cs b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountResource.cs index f8803692ef08f..3e91be456e58d 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchAccountResource.cs @@ -24,7 +24,7 @@ public partial class Sample_BatchAccountResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_BatchAccountUpdate() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountUpdate.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json // this example is just showing the usage of "BatchAccount_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 @@ -59,7 +59,7 @@ public async Task Update_BatchAccountUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_BatchAccountDelete() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountDelete.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json // this example is just showing the usage of "BatchAccount_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 @@ -86,7 +86,7 @@ public async Task Delete_BatchAccountDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_BatchAccountGet() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json // this example is just showing the usage of "BatchAccount_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 Get_BatchAccountGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_PrivateBatchAccountGet() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountGet.json // this example is just showing the usage of "BatchAccount_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 @@ -148,7 +148,7 @@ public async Task Get_PrivateBatchAccountGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetBatchAccounts_BatchAccountList() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountList.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json // this example is just showing the usage of "BatchAccount_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -180,7 +180,7 @@ public async Task GetBatchAccounts_BatchAccountList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task SynchronizeAutoStorageKeys_BatchAccountSynchronizeAutoStorageKeys() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountSynchronizeAutoStorageKeys.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json // this example is just showing the usage of "BatchAccount_SynchronizeAutoStorageKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -207,7 +207,7 @@ public async Task SynchronizeAutoStorageKeys_BatchAccountSynchronizeAutoStorageK [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task RegenerateKey_BatchAccountRegenerateKey() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountRegenerateKey.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json // this example is just showing the usage of "BatchAccount_RegenerateKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -235,7 +235,7 @@ public async Task RegenerateKey_BatchAccountRegenerateKey() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetKeys_BatchAccountGetKeys() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGetKeys.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json // this example is just showing the usage of "BatchAccount_GetKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -262,7 +262,7 @@ public async Task GetKeys_BatchAccountGetKeys() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetOutboundNetworkDependenciesEndpoints_ListOutboundNetworkDependencies() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json // this example is just showing the usage of "BatchAccount_ListOutboundNetworkDependenciesEndpoints" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchApplicationCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchApplicationCollection.cs index c7aa029a54567..d0f63d25e6280 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchApplicationCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchApplicationCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_BatchApplicationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ApplicationCreate() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationCreate.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationCreate.json // this example is just showing the usage of "Application_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -63,7 +63,7 @@ public async Task CreateOrUpdate_ApplicationCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ApplicationGet() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json // this example is just showing the usage of "Application_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_ApplicationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ApplicationGet() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json // this example is just showing the usage of "Application_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 @@ -129,7 +129,7 @@ public async Task Exists_ApplicationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ApplicationList() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationList.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationList.json // this example is just showing the usage of "Application_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchApplicationPackageCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchApplicationPackageCollection.cs index a20566ed0b3d0..79f10b660b746 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchApplicationPackageCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchApplicationPackageCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_BatchApplicationPackageCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ApplicationPackageCreate() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageCreate.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json // this example is just showing the usage of "ApplicationPackage_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task CreateOrUpdate_ApplicationPackageCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ApplicationPackageGet() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json // this example is just showing the usage of "ApplicationPackage_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 +96,7 @@ public async Task Get_ApplicationPackageGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ApplicationPackageGet() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json // this example is just showing the usage of "ApplicationPackage_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 +128,7 @@ public async Task Exists_ApplicationPackageGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ApplicationPackageList() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageList.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json // this example is just showing the usage of "ApplicationPackage_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchApplicationPackageResource.cs b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchApplicationPackageResource.cs index 5224bb6f86816..979b507a2a598 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchApplicationPackageResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchApplicationPackageResource.cs @@ -23,7 +23,7 @@ public partial class Sample_BatchApplicationPackageResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Activate_ApplicationPackageActivate() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageActivate.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json // this example is just showing the usage of "ApplicationPackage_Activate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Activate_ApplicationPackageActivate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ApplicationPackageCreate() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageCreate.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json // this example is just showing the usage of "ApplicationPackage_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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,7 +92,7 @@ public async Task Update_ApplicationPackageCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ApplicationPackageDelete() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageDelete.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json // this example is just showing the usage of "ApplicationPackage_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 @@ -121,7 +121,7 @@ public async Task Delete_ApplicationPackageDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ApplicationPackageGet() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json // this example is just showing the usage of "ApplicationPackage_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/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchApplicationResource.cs b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchApplicationResource.cs index 32216f7480bec..50d72089c453f 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchApplicationResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchApplicationResource.cs @@ -22,7 +22,7 @@ public partial class Sample_BatchApplicationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ApplicationDelete() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationDelete.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationDelete.json // this example is just showing the usage of "Application_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 @@ -50,7 +50,7 @@ public async Task Delete_ApplicationDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ApplicationGet() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json // this example is just showing the usage of "Application_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 @@ -82,7 +82,7 @@ public async Task Get_ApplicationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ApplicationUpdate() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationUpdate.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json // this example is just showing the usage of "Application_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/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchPrivateEndpointConnectionCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchPrivateEndpointConnectionCollection.cs index 875f4ff36a50a..72c78a8ce8613 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchPrivateEndpointConnectionCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchPrivateEndpointConnectionCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_BatchPrivateEndpointConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPrivateEndpointConnections() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionsList.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json // this example is just showing the usage of "PrivateEndpointConnection_ListByBatchAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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,7 +58,7 @@ public async Task GetAll_ListPrivateEndpointConnections() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateEndpointConnection() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json // this example is just showing the usage of "PrivateEndpointConnection_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 @@ -93,7 +93,7 @@ public async Task Get_GetPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPrivateEndpointConnection() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json // this example is just showing the usage of "PrivateEndpointConnection_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/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchPrivateEndpointConnectionResource.cs b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchPrivateEndpointConnectionResource.cs index 2a1be66f47cf8..a7fe703aae498 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchPrivateEndpointConnectionResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchPrivateEndpointConnectionResource.cs @@ -23,7 +23,7 @@ public partial class Sample_BatchPrivateEndpointConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateEndpointConnection() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json // this example is just showing the usage of "PrivateEndpointConnection_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 @@ -55,7 +55,7 @@ public async Task Get_GetPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdatePrivateEndpointConnection() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionUpdate.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionUpdate.json // this example is just showing the usage of "PrivateEndpointConnection_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Update_UpdatePrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_PrivateEndpointConnectionDelete() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionDelete.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionDelete.json // this example is just showing the usage of "PrivateEndpointConnection_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchPrivateLinkResource.cs b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchPrivateLinkResource.cs index d997275c3438e..b03d412908de2 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchPrivateLinkResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchPrivateLinkResource.cs @@ -21,7 +21,7 @@ public partial class Sample_BatchPrivateLinkResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateLinkResource() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourceGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json // this example is just showing the usage of "PrivateLinkResource_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/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchPrivateLinkResourceCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchPrivateLinkResourceCollection.cs index c0a4a5fb6e346..21f92104c2882 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchPrivateLinkResourceCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_BatchPrivateLinkResourceCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_BatchPrivateLinkResourceCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPrivateLinkResource() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourcesList.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourcesList.json // this example is just showing the usage of "PrivateLinkResource_ListByBatchAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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,7 +58,7 @@ public async Task GetAll_ListPrivateLinkResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateLinkResource() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourceGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json // this example is just showing the usage of "PrivateLinkResource_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 @@ -93,7 +93,7 @@ public async Task Get_GetPrivateLinkResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPrivateLinkResource() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourceGet.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json // this example is just showing the usage of "PrivateLinkResource_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/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 16e8effb3cb3f..f1ce25496eb37 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -23,7 +23,7 @@ public partial class Sample_SubscriptionResourceExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetBatchQuotas_LocationGetQuotas() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationGetQuotas.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json // this example is just showing the usage of "Location_GetQuotas" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -49,7 +49,7 @@ public async Task GetBatchQuotas_LocationGetQuotas() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetBatchSupportedVirtualMachineSkus_LocationListVirtualMachineSkus() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListVirtualMachineSkus.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json // this example is just showing the usage of "Location_ListSupportedVirtualMachineSkus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task GetBatchSupportedVirtualMachineSkus_LocationListVirtualMachine [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetBatchSupportedCloudServiceSkus_LocationListCloudServiceSkus() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListCloudServiceSkus.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json // this example is just showing the usage of "Location_ListSupportedCloudServiceSkus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -107,7 +107,7 @@ public async Task GetBatchSupportedCloudServiceSkus_LocationListCloudServiceSkus [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckBatchNameAvailability_LocationCheckNameAvailabilityAlreadyExists() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_AlreadyExists.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json // this example is just showing the usage of "Location_CheckNameAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 CheckBatchNameAvailability_LocationCheckNameAvailabilityAlread [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckBatchNameAvailability_LocationCheckNameAvailabilityAvailable() { - // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_Available.json + // Generated from example definition: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_Available.json // this example is just showing the usage of "Location_CheckNameAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/batch/Azure.ResourceManager.Batch/tests/TestCase/BatchAccountCertificateOperationTests.cs b/sdk/batch/Azure.ResourceManager.Batch/tests/TestCase/BatchAccountCertificateOperationTests.cs index 026fc66416a98..ab086d09832c9 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/tests/TestCase/BatchAccountCertificateOperationTests.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/tests/TestCase/BatchAccountCertificateOperationTests.cs @@ -1,8 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; using System.Threading.Tasks; +using Azure.Core; using Azure.Core.TestFramework; +using Azure.Identity; +using Azure.ResourceManager.Batch.Models; using Azure.ResourceManager.Batch.Tests.Helpers; using NUnit.Framework;