From 1a73274168eab62e04ca60fb6285e8dfa70cdcd8 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 25 Oct 2022 05:26:40 +0000 Subject: [PATCH] CodeGen from PR 21195 in Azure/azure-rest-api-specs Merge a9c86076164bb13fe54750aa9aacde1a0716ad37 into fdd4e5c9b9225698c7f26c75c4b26be5c57e60f8 --- ...re.ResourceManager.Batch.netstandard2.0.cs | 18 ++++++--- .../BatchAccountCertificateCollection.cs | 12 +++--- .../BatchAccountCertificateResource.cs | 16 +++++--- .../src/Generated/BatchAccountPoolData.cs | 26 ++++++++++--- .../src/Generated/BatchAccountResource.cs | 4 +- .../Models/BatchAccountData.Serialization.cs | 2 +- .../BatchAccountPoolData.Serialization.cs | 29 +++++++++++++- .../Models/BatchCertificateReference.cs | 2 +- ...tchCifsMountConfiguration.Serialization.cs | 15 +++++--- .../Models/BatchCifsMountConfiguration.cs | 18 +++------ ...tchFileShareConfiguration.Serialization.cs | 11 ++++-- .../Models/BatchFileShareConfiguration.cs | 10 +---- ...BatchNetworkConfiguration.Serialization.cs | 14 +++---- .../Models/BatchNetworkConfiguration.cs | 8 ++-- ...inkServiceConnectionState.Serialization.cs | 8 ++-- .../BatchPrivateLinkServiceConnectionState.cs | 8 ++-- .../src/Generated/Models/BatchUserAccount.cs | 6 +-- .../NodeCommunicationMode.Serialization.cs | 30 +++++++++++++++ .../Generated/Models/NodeCommunicationMode.cs | 20 ++++++++++ .../ApplicationPackageRestOperations.cs | 2 +- .../ApplicationRestOperations.cs | 2 +- .../BatchAccountRestOperations.cs | 2 +- .../CertificateRestOperations.cs | 38 +++++++++++-------- .../RestOperations/LocationRestOperations.cs | 2 +- .../RestOperations/PoolRestOperations.cs | 2 +- ...PrivateEndpointConnectionRestOperations.cs | 4 +- .../PrivateLinkResourceRestOperations.cs | 2 +- .../src/autorest.md | 2 +- 28 files changed, 209 insertions(+), 104 deletions(-) create mode 100644 sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/NodeCommunicationMode.Serialization.cs create mode 100644 sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/NodeCommunicationMode.cs 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 a677df20ccc5..ef6f8a7161e0 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 @@ -140,6 +140,7 @@ public BatchAccountPoolData() { } public System.DateTimeOffset? CreatedOn { get { throw null; } } public int? CurrentDedicatedNodes { get { throw null; } } public int? CurrentLowPriorityNodes { get { throw null; } } + public Azure.ResourceManager.Batch.Models.NodeCommunicationMode? CurrentNodeCommunicationMode { get { throw null; } } public Azure.ResourceManager.Batch.Models.BatchDeploymentConfiguration DeploymentConfiguration { get { throw null; } set { } } public string DisplayName { get { throw null; } set { } } public Azure.ETag? ETag { get { throw null; } } @@ -154,6 +155,7 @@ public BatchAccountPoolData() { } public Azure.ResourceManager.Batch.Models.BatchResizeOperationStatus ResizeOperationStatus { get { throw null; } } public Azure.ResourceManager.Batch.Models.BatchAccountPoolScaleSettings ScaleSettings { get { throw null; } set { } } public Azure.ResourceManager.Batch.Models.BatchAccountPoolStartTask StartTask { get { throw null; } set { } } + 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 System.Collections.Generic.IList UserAccounts { get { throw null; } } @@ -653,12 +655,12 @@ public enum BatchCertificateVisibility } public partial class BatchCifsMountConfiguration { - public BatchCifsMountConfiguration(string username, string source, string relativeMountPath, string password) { } + public BatchCifsMountConfiguration(string source, string relativeMountPath, string password) { } public string MountOptions { get { throw null; } set { } } public string Password { get { throw null; } set { } } public string RelativeMountPath { get { throw null; } set { } } public string Source { get { throw null; } set { } } - public string Username { get { throw null; } set { } } + public string UserName { get { throw null; } set { } } } public partial class BatchCloudServiceConfiguration { @@ -729,7 +731,7 @@ public BatchEnvironmentSetting(string name) { } } public partial class BatchFileShareConfiguration { - public BatchFileShareConfiguration(string accountName, System.Uri fileUri, string accountKey, string relativeMountPath) { } + public BatchFileShareConfiguration(string accountName, System.Uri fileUri, string relativeMountPath) { } public string AccountKey { get { throw null; } set { } } public string AccountName { get { throw null; } set { } } public System.Uri FileUri { get { throw null; } set { } } @@ -836,7 +838,7 @@ public enum BatchNameUnavailableReason public partial class BatchNetworkConfiguration { public BatchNetworkConfiguration() { } - public Azure.ResourceManager.Batch.Models.DynamicVNetAssignmentScope? DynamicVNetAssignmentScope { get { throw null; } set { } } + public Azure.ResourceManager.Batch.Models.DynamicVNetAssignmentScope? DynamicVnetAssignmentScope { get { throw null; } set { } } public System.Collections.Generic.IList EndpointInboundNatPools { get { throw null; } set { } } public Azure.ResourceManager.Batch.Models.BatchPublicIPAddressConfiguration PublicIPAddressConfiguration { get { throw null; } set { } } public Azure.Core.ResourceIdentifier SubnetId { get { throw null; } set { } } @@ -909,7 +911,7 @@ public enum BatchNodePlacementPolicyType public partial class BatchPrivateLinkServiceConnectionState { public BatchPrivateLinkServiceConnectionState(Azure.ResourceManager.Batch.Models.BatchPrivateLinkServiceConnectionStatus status) { } - public string ActionRequired { get { throw null; } } + public string ActionsRequired { get { throw null; } } public string Description { get { throw null; } set { } } public Azure.ResourceManager.Batch.Models.BatchPrivateLinkServiceConnectionStatus Status { get { throw null; } set { } } } @@ -1107,4 +1109,10 @@ public enum InterNodeCommunicationState Enabled = 0, Disabled = 1, } + public enum NodeCommunicationMode + { + Default = 0, + Classic = 1, + Simplified = 2, + } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCertificateCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCertificateCollection.cs index 402f069b8b95..7736699b2df8 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCertificateCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCertificateCollection.cs @@ -55,7 +55,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Creates a new certificate inside the specified account. + /// Warning: This operation 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. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName} /// Operation Id: Certificate_Create /// @@ -90,7 +90,7 @@ public virtual async Task> CreateO } /// - /// Creates a new certificate inside the specified account. + /// Warning: This operation 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. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName} /// Operation Id: Certificate_Create /// @@ -125,7 +125,7 @@ public virtual ArmOperation CreateOrUpdate(Wait } /// - /// Gets information about the specified certificate. + /// Warning: This operation 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. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName} /// Operation Id: Certificate_Get /// @@ -154,7 +154,7 @@ public virtual async Task> GetAsync(st } /// - /// Gets information about the specified certificate. + /// Warning: This operation 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. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName} /// Operation Id: Certificate_Get /// @@ -183,7 +183,7 @@ public virtual Response Get(string certificateN } /// - /// Lists all of the certificates in the specified account. + /// Warning: This operation 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. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates /// Operation Id: Certificate_ListByBatchAccount /// @@ -228,7 +228,7 @@ async Task> NextPageFunc(string nextLink, } /// - /// Lists all of the certificates in the specified account. + /// Warning: This operation 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. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates /// Operation Id: Certificate_ListByBatchAccount /// diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCertificateResource.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCertificateResource.cs index 384633176cb0..14ff8ccfe3e3 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCertificateResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCertificateResource.cs @@ -88,7 +88,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Gets information about the specified certificate. + /// Warning: This operation 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. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName} /// Operation Id: Certificate_Get /// @@ -112,7 +112,7 @@ public virtual async Task> GetAsync(Ca } /// - /// Gets information about the specified certificate. + /// Warning: This operation 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. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName} /// Operation Id: Certificate_Get /// @@ -136,7 +136,7 @@ public virtual Response Get(CancellationToken c } /// - /// Deletes the specified certificate. + /// Warning: This operation 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. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName} /// Operation Id: Certificate_Delete /// @@ -162,7 +162,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Deletes the specified certificate. + /// Warning: This operation 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. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName} /// Operation Id: Certificate_Delete /// @@ -188,7 +188,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Updates the properties of an existing certificate. + /// Warning: This operation 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. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName} /// Operation Id: Certificate_Update /// @@ -215,7 +215,7 @@ public virtual async Task> UpdateAsync } /// - /// Updates the properties of an existing certificate. + /// Warning: This operation 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. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName} /// Operation Id: Certificate_Update /// @@ -243,6 +243,8 @@ public virtual Response Update(BatchAccountCert /// /// If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. + /// + /// Warning: This operation 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. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete /// Operation Id: Certificate_CancelDeletion /// @@ -265,6 +267,8 @@ public virtual async Task> CancelDelet /// /// If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. + /// + /// Warning: This operation 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. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete /// Operation Id: Certificate_CancelDeletion /// diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountPoolData.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountPoolData.cs index 2412cec28fef..015f136a5b7e 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountPoolData.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountPoolData.cs @@ -43,7 +43,7 @@ public BatchAccountPoolData() /// 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 compute nodes currently in the pool. + /// 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. @@ -54,13 +54,19 @@ public BatchAccountPoolData() /// 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. + /// + /// 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 ETag of the resource, used for concurrency statements. - 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, ETag? etag) : 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, ETag? etag) : base(id, name, resourceType, systemData) { Identity = identity; DisplayName = displayName; @@ -88,6 +94,8 @@ internal BatchAccountPoolData(ResourceIdentifier id, string name, ResourceType r ApplicationLicenses = applicationLicenses; ResizeOperationStatus = resizeOperationStatus; MountConfiguration = mountConfiguration; + TargetNodeCommunicationMode = targetNodeCommunicationMode; + CurrentNodeCommunicationMode = currentNodeCommunicationMode; ETag = etag; } @@ -111,7 +119,7 @@ internal BatchAccountPoolData(ResourceIdentifier id, string name, ResourceType r public string VmSize { get; set; } /// Using CloudServiceConfiguration specifies that the nodes should be creating using Azure Cloud Services (PaaS), while VirtualMachineConfiguration uses Azure Virtual Machines (IaaS). public BatchDeploymentConfiguration DeploymentConfiguration { get; set; } - /// The number of compute nodes currently in the pool. + /// The number of dedicated compute nodes currently in the pool. public int? CurrentDedicatedNodes { get; } /// The number of Spot/low-priority compute nodes currently in the pool. public int? CurrentLowPriorityNodes { get; } @@ -143,7 +151,11 @@ public BatchNodeFillType? TaskSchedulingNodeFillType public IList Metadata { get; } /// In an PATCH (update) operation, this property can be set to an empty object to remove the start task from the pool. public BatchAccountPoolStartTask StartTask { get; set; } - /// 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. + /// + /// 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. + /// public IList Certificates { get; } /// 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. public IList ApplicationPackages { get; } @@ -153,6 +165,10 @@ public BatchNodeFillType? TaskSchedulingNodeFillType public BatchResizeOperationStatus ResizeOperationStatus { get; } /// This supports Azure Files, NFS, CIFS/SMB, and Blobfuse. public IList MountConfiguration { get; } + /// If omitted, the default value is Default. + public NodeCommunicationMode? TargetNodeCommunicationMode { get; set; } + /// Determines how a pool communicates with the Batch service. + public NodeCommunicationMode? CurrentNodeCommunicationMode { get; } /// The ETag of the resource, used for concurrency statements. public ETag? ETag { get; } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountResource.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountResource.cs index 4731a89dd030..f3473a625114 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountResource.cs @@ -171,7 +171,7 @@ public virtual BatchAccountCertificateCollection GetBatchAccountCertificates() } /// - /// Gets information about the specified certificate. + /// Warning: This operation 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. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName} /// Operation Id: Certificate_Get /// @@ -186,7 +186,7 @@ public virtual async Task> GetBatchAcc } /// - /// Gets information about the specified certificate. + /// Warning: This operation 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. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName} /// Operation Id: Certificate_Get /// diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountData.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountData.Serialization.cs index 22759bfe5d52..e0416971c884 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountData.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountData.Serialization.cs @@ -325,7 +325,7 @@ internal static BatchAccountData DeserializeBatchAccountData(JsonElement element { if (property0.Value.ValueKind == JsonValueKind.Null) { - property0.ThrowNonNullablePropertyIsNull(); + allowedAuthenticationModes = null; continue; } List array = new List(); 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 3004b7b3bd63..8f85336fc75b 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 @@ -132,6 +132,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } + if (Optional.IsDefined(TargetNodeCommunicationMode)) + { + writer.WritePropertyName("targetNodeCommunicationMode"); + writer.WriteStringValue(TargetNodeCommunicationMode.Value.ToSerialString()); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -169,6 +174,8 @@ internal static BatchAccountPoolData DeserializeBatchAccountPoolData(JsonElement Optional> applicationLicenses = default; Optional resizeOperationStatus = default; Optional> mountConfiguration = default; + Optional targetNodeCommunicationMode = default; + Optional currentNodeCommunicationMode = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("identity")) @@ -495,11 +502,31 @@ internal static BatchAccountPoolData DeserializeBatchAccountPoolData(JsonElement mountConfiguration = array; continue; } + if (property0.NameEquals("targetNodeCommunicationMode")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + targetNodeCommunicationMode = property0.Value.GetString().ToNodeCommunicationMode(); + continue; + } + if (property0.NameEquals("currentNodeCommunicationMode")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + currentNodeCommunicationMode = null; + continue; + } + currentNodeCommunicationMode = property0.Value.GetString().ToNodeCommunicationMode(); + continue; + } } continue; } } - 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(etag)); + 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.ToNullable(etag)); } } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCertificateReference.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCertificateReference.cs index 1c651933075c..8eeada990a29 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCertificateReference.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCertificateReference.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Batch.Models { - /// A reference to a certificate to be installed on compute nodes in a pool. This must exist inside the same account as the pool. + /// Warning: This object 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. public partial class BatchCertificateReference { /// Initializes a new instance of BatchCertificateReference. diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCifsMountConfiguration.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCifsMountConfiguration.Serialization.cs index f280ca2bd69c..a3ef16524e93 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCifsMountConfiguration.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCifsMountConfiguration.Serialization.cs @@ -15,8 +15,11 @@ public partial class BatchCifsMountConfiguration : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - writer.WritePropertyName("username"); - writer.WriteStringValue(Username); + if (Optional.IsDefined(UserName)) + { + writer.WritePropertyName("userName"); + writer.WriteStringValue(UserName); + } writer.WritePropertyName("source"); writer.WriteStringValue(Source); writer.WritePropertyName("relativeMountPath"); @@ -33,16 +36,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static BatchCifsMountConfiguration DeserializeBatchCifsMountConfiguration(JsonElement element) { - string username = default; + Optional userName = default; string source = default; string relativeMountPath = default; Optional mountOptions = default; string password = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("username")) + if (property.NameEquals("userName")) { - username = property.Value.GetString(); + userName = property.Value.GetString(); continue; } if (property.NameEquals("source")) @@ -66,7 +69,7 @@ internal static BatchCifsMountConfiguration DeserializeBatchCifsMountConfigurati continue; } } - return new BatchCifsMountConfiguration(username, source, relativeMountPath, mountOptions.Value, password); + return new BatchCifsMountConfiguration(userName.Value, source, relativeMountPath, mountOptions.Value, password); } } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCifsMountConfiguration.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCifsMountConfiguration.cs index 5b422f6c7db9..ca17d3a9a7db 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCifsMountConfiguration.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCifsMountConfiguration.cs @@ -13,17 +13,12 @@ namespace Azure.ResourceManager.Batch.Models public partial class BatchCifsMountConfiguration { /// Initializes a new instance of BatchCifsMountConfiguration. - /// The user to use for authentication against the CIFS file system. /// The URI of the file system to mount. /// All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable. /// The password to use for authentication against the CIFS file system. - /// , , or is null. - public BatchCifsMountConfiguration(string username, string source, string relativeMountPath, string password) + /// , or is null. + public BatchCifsMountConfiguration(string source, string relativeMountPath, string password) { - if (username == null) - { - throw new ArgumentNullException(nameof(username)); - } if (source == null) { throw new ArgumentNullException(nameof(source)); @@ -37,21 +32,20 @@ public BatchCifsMountConfiguration(string username, string source, string relati throw new ArgumentNullException(nameof(password)); } - Username = username; Source = source; RelativeMountPath = relativeMountPath; Password = password; } /// Initializes a new instance of BatchCifsMountConfiguration. - /// The user to use for authentication against the CIFS file system. + /// The user to use for authentication against the CIFS file system. /// The URI of the file system to mount. /// All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable. /// These are 'net use' options in Windows and 'mount' options in Linux. /// The password to use for authentication against the CIFS file system. - internal BatchCifsMountConfiguration(string username, string source, string relativeMountPath, string mountOptions, string password) + internal BatchCifsMountConfiguration(string userName, string source, string relativeMountPath, string mountOptions, string password) { - Username = username; + UserName = userName; Source = source; RelativeMountPath = relativeMountPath; MountOptions = mountOptions; @@ -59,7 +53,7 @@ internal BatchCifsMountConfiguration(string username, string source, string rela } /// The user to use for authentication against the CIFS file system. - public string Username { get; set; } + public string UserName { get; set; } /// The URI of the file system to mount. public string Source { get; set; } /// All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable. diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchFileShareConfiguration.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchFileShareConfiguration.Serialization.cs index 637eb54d0ae4..ee699e6a324d 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchFileShareConfiguration.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchFileShareConfiguration.Serialization.cs @@ -20,8 +20,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(AccountName); writer.WritePropertyName("azureFileUrl"); writer.WriteStringValue(FileUri.AbsoluteUri); - writer.WritePropertyName("accountKey"); - writer.WriteStringValue(AccountKey); + if (Optional.IsDefined(AccountKey)) + { + writer.WritePropertyName("accountKey"); + writer.WriteStringValue(AccountKey); + } writer.WritePropertyName("relativeMountPath"); writer.WriteStringValue(RelativeMountPath); if (Optional.IsDefined(MountOptions)) @@ -36,7 +39,7 @@ internal static BatchFileShareConfiguration DeserializeBatchFileShareConfigurati { string accountName = default; Uri azureFileUrl = default; - string accountKey = default; + Optional accountKey = default; string relativeMountPath = default; Optional mountOptions = default; foreach (var property in element.EnumerateObject()) @@ -67,7 +70,7 @@ internal static BatchFileShareConfiguration DeserializeBatchFileShareConfigurati continue; } } - return new BatchFileShareConfiguration(accountName, azureFileUrl, accountKey, relativeMountPath, mountOptions.Value); + return new BatchFileShareConfiguration(accountName, azureFileUrl, accountKey.Value, relativeMountPath, mountOptions.Value); } } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchFileShareConfiguration.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchFileShareConfiguration.cs index 25b5c4740f50..2761d82b8c84 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchFileShareConfiguration.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchFileShareConfiguration.cs @@ -15,10 +15,9 @@ public partial class BatchFileShareConfiguration /// Initializes a new instance of BatchFileShareConfiguration. /// The Azure Storage account name. /// This is of the form 'https://{account}.file.core.windows.net/'. - /// The Azure Storage account key. /// All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable. - /// , , or is null. - public BatchFileShareConfiguration(string accountName, Uri fileUri, string accountKey, string relativeMountPath) + /// , or is null. + public BatchFileShareConfiguration(string accountName, Uri fileUri, string relativeMountPath) { if (accountName == null) { @@ -28,10 +27,6 @@ public BatchFileShareConfiguration(string accountName, Uri fileUri, string accou { throw new ArgumentNullException(nameof(fileUri)); } - if (accountKey == null) - { - throw new ArgumentNullException(nameof(accountKey)); - } if (relativeMountPath == null) { throw new ArgumentNullException(nameof(relativeMountPath)); @@ -39,7 +34,6 @@ public BatchFileShareConfiguration(string accountName, Uri fileUri, string accou AccountName = accountName; FileUri = fileUri; - AccountKey = accountKey; RelativeMountPath = relativeMountPath; } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNetworkConfiguration.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNetworkConfiguration.Serialization.cs index d35603c8ca90..b1f03bb1af8e 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNetworkConfiguration.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNetworkConfiguration.Serialization.cs @@ -20,10 +20,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("subnetId"); writer.WriteStringValue(SubnetId); } - if (Optional.IsDefined(DynamicVNetAssignmentScope)) + if (Optional.IsDefined(DynamicVnetAssignmentScope)) { - writer.WritePropertyName("dynamicVNetAssignmentScope"); - writer.WriteStringValue(DynamicVNetAssignmentScope.Value.ToSerialString()); + writer.WritePropertyName("dynamicVnetAssignmentScope"); + writer.WriteStringValue(DynamicVnetAssignmentScope.Value.ToSerialString()); } if (Optional.IsDefined(EndpointConfiguration)) { @@ -41,7 +41,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static BatchNetworkConfiguration DeserializeBatchNetworkConfiguration(JsonElement element) { Optional subnetId = default; - Optional dynamicVNetAssignmentScope = default; + Optional dynamicVnetAssignmentScope = default; Optional endpointConfiguration = default; Optional publicIPAddressConfiguration = default; foreach (var property in element.EnumerateObject()) @@ -56,14 +56,14 @@ internal static BatchNetworkConfiguration DeserializeBatchNetworkConfiguration(J subnetId = new ResourceIdentifier(property.Value.GetString()); continue; } - if (property.NameEquals("dynamicVNetAssignmentScope")) + if (property.NameEquals("dynamicVnetAssignmentScope")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } - dynamicVNetAssignmentScope = property.Value.GetString().ToDynamicVNetAssignmentScope(); + dynamicVnetAssignmentScope = property.Value.GetString().ToDynamicVNetAssignmentScope(); continue; } if (property.NameEquals("endpointConfiguration")) @@ -87,7 +87,7 @@ internal static BatchNetworkConfiguration DeserializeBatchNetworkConfiguration(J continue; } } - return new BatchNetworkConfiguration(subnetId.Value, Optional.ToNullable(dynamicVNetAssignmentScope), endpointConfiguration.Value, publicIPAddressConfiguration.Value); + return new BatchNetworkConfiguration(subnetId.Value, Optional.ToNullable(dynamicVnetAssignmentScope), endpointConfiguration.Value, publicIPAddressConfiguration.Value); } } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNetworkConfiguration.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNetworkConfiguration.cs index 5e7506c5ff50..6143c3fba6f5 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNetworkConfiguration.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNetworkConfiguration.cs @@ -20,13 +20,13 @@ public BatchNetworkConfiguration() /// Initializes a new instance of BatchNetworkConfiguration. /// The virtual network must be in the same region and subscription as the Azure Batch account. The specified subnet should have enough free IP addresses to accommodate the number of nodes in the pool. If the subnet doesn't have enough free IP addresses, the pool will partially allocate compute nodes and a resize error will occur. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow communication from the Azure Batch service to be able to schedule tasks on the compute nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the compute nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the compute nodes to unusable. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication. For pools created with a virtual machine configuration, enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. For pools created with a cloud service configuration, enable ports 10100, 20100, and 30100. Also enable outbound connections to Azure Storage on port 443. For cloudServiceConfiguration pools, only 'classic' VNETs are supported. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. - /// The scope of dynamic vnet assignment. + /// The scope of dynamic vnet assignment. /// Pool endpoint configuration is only supported on pools with the virtualMachineConfiguration property. /// This property is only supported on Pools with the virtualMachineConfiguration property. - internal BatchNetworkConfiguration(ResourceIdentifier subnetId, DynamicVNetAssignmentScope? dynamicVNetAssignmentScope, PoolEndpointConfiguration endpointConfiguration, BatchPublicIPAddressConfiguration publicIPAddressConfiguration) + internal BatchNetworkConfiguration(ResourceIdentifier subnetId, DynamicVNetAssignmentScope? dynamicVnetAssignmentScope, PoolEndpointConfiguration endpointConfiguration, BatchPublicIPAddressConfiguration publicIPAddressConfiguration) { SubnetId = subnetId; - DynamicVNetAssignmentScope = dynamicVNetAssignmentScope; + DynamicVnetAssignmentScope = dynamicVnetAssignmentScope; EndpointConfiguration = endpointConfiguration; PublicIPAddressConfiguration = publicIPAddressConfiguration; } @@ -34,7 +34,7 @@ internal BatchNetworkConfiguration(ResourceIdentifier subnetId, DynamicVNetAssig /// The virtual network must be in the same region and subscription as the Azure Batch account. The specified subnet should have enough free IP addresses to accommodate the number of nodes in the pool. If the subnet doesn't have enough free IP addresses, the pool will partially allocate compute nodes and a resize error will occur. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow communication from the Azure Batch service to be able to schedule tasks on the compute nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the compute nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the compute nodes to unusable. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication. For pools created with a virtual machine configuration, enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. For pools created with a cloud service configuration, enable ports 10100, 20100, and 30100. Also enable outbound connections to Azure Storage on port 443. For cloudServiceConfiguration pools, only 'classic' VNETs are supported. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. public ResourceIdentifier SubnetId { get; set; } /// The scope of dynamic vnet assignment. - public DynamicVNetAssignmentScope? DynamicVNetAssignmentScope { get; set; } + public DynamicVNetAssignmentScope? DynamicVnetAssignmentScope { get; set; } /// Pool endpoint configuration is only supported on pools with the virtualMachineConfiguration property. internal PoolEndpointConfiguration EndpointConfiguration { get; set; } /// The maximum number of inbound NAT pools per Batch pool is 5. If the maximum number of inbound NAT pools is exceeded the request fails with HTTP status code 400. This cannot be specified if the IPAddressProvisioningType is NoPublicIPAddresses. diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPrivateLinkServiceConnectionState.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPrivateLinkServiceConnectionState.Serialization.cs index 159e0e07fdeb..0b13a4be814a 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPrivateLinkServiceConnectionState.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPrivateLinkServiceConnectionState.Serialization.cs @@ -29,7 +29,7 @@ internal static BatchPrivateLinkServiceConnectionState DeserializeBatchPrivateLi { BatchPrivateLinkServiceConnectionStatus status = default; Optional description = default; - Optional actionRequired = default; + Optional actionsRequired = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("status")) @@ -42,13 +42,13 @@ internal static BatchPrivateLinkServiceConnectionState DeserializeBatchPrivateLi description = property.Value.GetString(); continue; } - if (property.NameEquals("actionRequired")) + if (property.NameEquals("actionsRequired")) { - actionRequired = property.Value.GetString(); + actionsRequired = property.Value.GetString(); continue; } } - return new BatchPrivateLinkServiceConnectionState(status, description.Value, actionRequired.Value); + return new BatchPrivateLinkServiceConnectionState(status, description.Value, actionsRequired.Value); } } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPrivateLinkServiceConnectionState.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPrivateLinkServiceConnectionState.cs index 22152b91a553..f3cd2a0bde75 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPrivateLinkServiceConnectionState.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPrivateLinkServiceConnectionState.cs @@ -20,12 +20,12 @@ public BatchPrivateLinkServiceConnectionState(BatchPrivateLinkServiceConnectionS /// Initializes a new instance of BatchPrivateLinkServiceConnectionState. /// The status of the Batch private endpoint connection. /// Description of the private Connection state. - /// Action required on the private connection state. - internal BatchPrivateLinkServiceConnectionState(BatchPrivateLinkServiceConnectionStatus status, string description, string actionRequired) + /// Action required on the private connection state. + internal BatchPrivateLinkServiceConnectionState(BatchPrivateLinkServiceConnectionStatus status, string description, string actionsRequired) { Status = status; Description = description; - ActionRequired = actionRequired; + ActionsRequired = actionsRequired; } /// The status of the Batch private endpoint connection. @@ -33,6 +33,6 @@ internal BatchPrivateLinkServiceConnectionState(BatchPrivateLinkServiceConnectio /// Description of the private Connection state. public string Description { get; set; } /// Action required on the private connection state. - public string ActionRequired { get; } + public string ActionsRequired { get; } } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchUserAccount.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchUserAccount.cs index a022125a00c3..95c6f15f81f1 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchUserAccount.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchUserAccount.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.Batch.Models public partial class BatchUserAccount { /// Initializes a new instance of BatchUserAccount. - /// The name of the user account. + /// The name of the user account. Names can contain any Unicode characters up to a maximum length of 20. /// The password for the user account. /// or is null. public BatchUserAccount(string name, string password) @@ -32,7 +32,7 @@ public BatchUserAccount(string name, string password) } /// Initializes a new instance of BatchUserAccount. - /// The name of the user account. + /// The name of the user account. Names can contain any Unicode characters up to a maximum length of 20. /// The password for the user account. /// nonAdmin - The auto user is a standard user without elevated access. admin - The auto user is a user with elevated access and operates with full Administrator permissions. The default value is nonAdmin. /// This property is ignored if specified on a Windows pool. If not specified, the user is created with the default options. @@ -46,7 +46,7 @@ internal BatchUserAccount(string name, string password, BatchUserAccountElevatio WindowsUserConfiguration = windowsUserConfiguration; } - /// The name of the user account. + /// The name of the user account. Names can contain any Unicode characters up to a maximum length of 20. public string Name { get; set; } /// The password for the user account. public string Password { get; set; } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/NodeCommunicationMode.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/NodeCommunicationMode.Serialization.cs new file mode 100644 index 000000000000..940468b251e7 --- /dev/null +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/NodeCommunicationMode.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 NodeCommunicationModeExtensions + { + public static string ToSerialString(this NodeCommunicationMode value) => value switch + { + NodeCommunicationMode.Default => "Default", + NodeCommunicationMode.Classic => "Classic", + NodeCommunicationMode.Simplified => "Simplified", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown NodeCommunicationMode value.") + }; + + public static NodeCommunicationMode ToNodeCommunicationMode(this string value) + { + if (string.Equals(value, "Default", StringComparison.InvariantCultureIgnoreCase)) return NodeCommunicationMode.Default; + if (string.Equals(value, "Classic", StringComparison.InvariantCultureIgnoreCase)) return NodeCommunicationMode.Classic; + if (string.Equals(value, "Simplified", StringComparison.InvariantCultureIgnoreCase)) return NodeCommunicationMode.Simplified; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown NodeCommunicationMode value."); + } + } +} diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/NodeCommunicationMode.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/NodeCommunicationMode.cs new file mode 100644 index 000000000000..abedc2381839 --- /dev/null +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/NodeCommunicationMode.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Batch.Models +{ + /// Determines how a pool communicates with the Batch service. + public enum NodeCommunicationMode + { + /// The node communication mode is automatically set by the Batch service. + Default, + /// Nodes using the Classic communication mode require inbound TCP communication on ports 29876 and 29877 from the "BatchNodeManagement.{region}" service tag and outbound TCP communication on port 443 to the "Storage.region" and "BatchNodeManagement.{region}" service tags. + Classic, + /// Nodes using the Simplified communication mode require outbound TCP communication on port 443 to the "BatchNodeManagement.{region}" service tag. No open inbound ports are required. + Simplified + } +} 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 67ea1b81e08d..66e9f699ac75 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 ?? "2022-06-01"; + _apiVersion = apiVersion ?? "2022-10-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 ab43f9e288e2..edc1a4206d55 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 ?? "2022-06-01"; + _apiVersion = apiVersion ?? "2022-10-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 71265919871a..d74628e04102 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 ?? "2022-06-01"; + _apiVersion = apiVersion ?? "2022-10-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 aa56b45b715b..1a548655bff0 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 ?? "2022-06-01"; + _apiVersion = apiVersion ?? "2022-10-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -70,7 +70,7 @@ internal HttpMessage CreateListByBatchAccountRequest(string subscriptionId, stri return message; } - /// Lists all of the certificates in the specified account. + /// Warning: This operation 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. /// The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). /// The name of the resource group that contains the Batch account. /// The name of the Batch account. @@ -102,7 +102,7 @@ public async Task> ListByBatchAccountAsync(stri } } - /// Lists all of the certificates in the specified account. + /// Warning: This operation 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. /// The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). /// The name of the resource group that contains the Batch account. /// The name of the Batch account. @@ -168,7 +168,7 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceG return message; } - /// Creates a new certificate inside the specified account. + /// Warning: This operation 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. /// The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). /// The name of the resource group that contains the Batch account. /// The name of the Batch account. @@ -203,7 +203,7 @@ public async Task> CreateAsync(string subs } } - /// Creates a new certificate inside the specified account. + /// Warning: This operation 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. /// The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). /// The name of the resource group that contains the Batch account. /// The name of the Batch account. @@ -268,7 +268,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG return message; } - /// Updates the properties of an existing certificate. + /// Warning: This operation 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. /// The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). /// The name of the resource group that contains the Batch account. /// The name of the Batch account. @@ -302,7 +302,7 @@ public async Task> UpdateAsync(string subs } } - /// Updates the properties of an existing certificate. + /// Warning: This operation 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. /// The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). /// The name of the resource group that contains the Batch account. /// The name of the Batch account. @@ -358,7 +358,7 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } - /// Deletes the specified certificate. + /// Warning: This operation 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. /// The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). /// The name of the resource group that contains the Batch account. /// The name of the Batch account. @@ -386,7 +386,7 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } - /// Deletes the specified certificate. + /// Warning: This operation 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. /// The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). /// The name of the resource group that contains the Batch account. /// The name of the Batch account. @@ -436,7 +436,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Gets information about the specified certificate. + /// Warning: This operation 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. /// The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). /// The name of the resource group that contains the Batch account. /// The name of the Batch account. @@ -469,7 +469,7 @@ public async Task> GetAsync(string subscri } } - /// Gets information about the specified certificate. + /// Warning: This operation 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. /// The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). /// The name of the resource group that contains the Batch account. /// The name of the Batch account. @@ -525,7 +525,11 @@ internal HttpMessage CreateCancelDeletionRequest(string subscriptionId, string r return message; } - /// If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. + /// + /// If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. + /// + /// Warning: This operation 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. + /// /// The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). /// The name of the resource group that contains the Batch account. /// The name of the Batch account. @@ -556,7 +560,11 @@ public async Task> CancelDeletionAsync(str } } - /// If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. + /// + /// If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. + /// + /// Warning: This operation 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. + /// /// The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). /// The name of the resource group that contains the Batch account. /// The name of the Batch account. @@ -601,7 +609,7 @@ internal HttpMessage CreateListByBatchAccountNextPageRequest(string nextLink, st return message; } - /// Lists all of the certificates in the specified account. + /// Warning: This operation 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. /// The URL to the next page of results. /// The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). /// The name of the resource group that contains the Batch account. @@ -635,7 +643,7 @@ public async Task> ListByBatchAccountNextPageAs } } - /// Lists all of the certificates in the specified account. + /// Warning: This operation 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. /// The URL to the next page of results. /// The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). /// The name of the resource group that contains the Batch account. 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 a3b5aca8ab2b..cbd4bb5417e4 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 ?? "2022-06-01"; + _apiVersion = apiVersion ?? "2022-10-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 37b924ec890c..9860ba8dd21a 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 ?? "2022-06-01"; + _apiVersion = apiVersion ?? "2022-10-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 237c1e9f7573..4bee3f6e0c4f 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 ?? "2022-06-01"; + _apiVersion = apiVersion ?? "2022-10-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -264,7 +264,6 @@ public async Task UpdateAsync(string subscriptionId, string resourceGr { case 200: case 202: - case 204: return message.Response; default: throw new RequestFailedException(message.Response); @@ -295,7 +294,6 @@ public Response Update(string subscriptionId, string resourceGroupName, string a { case 200: case 202: - case 204: return message.Response; default: throw new RequestFailedException(message.Response); 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 446ab91a6cfc..bf2acf0f1050 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 ?? "2022-06-01"; + _apiVersion = apiVersion ?? "2022-10-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 3bd855fabf0d..95c358516fad 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/bab2f4389eb5ca73cdf366ec0a4af3f3eb6e1f6d/specification/batch/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/batch/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true