diff --git a/src/SDKs/Batch/DataPlane/AzSdk.RP.props b/src/SDKs/Batch/DataPlane/AzSdk.RP.props
new file mode 100644
index 000000000000..847b88398ad8
--- /dev/null
+++ b/src/SDKs/Batch/DataPlane/AzSdk.RP.props
@@ -0,0 +1,7 @@
+
+
+
+ BatchService_2018-03-01.6.1;
+ $(PackageTags);$(CommonTags);$(AzureApiTag);
+
+
\ No newline at end of file
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch.IntegrationTests/CloudPoolIntegrationTests.cs b/src/SDKs/Batch/DataPlane/Azure.Batch.IntegrationTests/CloudPoolIntegrationTests.cs
index 402dec1062c7..dc955929b6a3 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch.IntegrationTests/CloudPoolIntegrationTests.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch.IntegrationTests/CloudPoolIntegrationTests.cs
@@ -1000,6 +1000,38 @@ await pool.ResizeAsync(
await SynchronizationContextHelper.RunTestAsync(test, TestTimeout);
}
+ [Fact]
+ [Trait(TestTraits.Duration.TraitName, TestTraits.Duration.Values.ShortDuration)]
+ public void PoolStateCount_IsReturnedFromServer()
+ {
+ Action test = () =>
+ {
+ using (BatchClient batchCli = TestUtilities.OpenBatchClientFromEnvironmentAsync().Result)
+ {
+ var nodeCounts = batchCli.PoolOperations.ListPoolNodeCounts();
+
+ Assert.NotEmpty(nodeCounts);
+ var poolId = nodeCounts.First().PoolId;
+
+ foreach (var poolNodeCount in nodeCounts)
+ {
+ Assert.NotEmpty(poolNodeCount.PoolId);
+ Assert.NotNull(poolNodeCount.Dedicated);
+ Assert.NotNull(poolNodeCount.LowPriority);
+
+ // Check a few properties at random
+ Assert.Equal(0, poolNodeCount.LowPriority.Unusable);
+ Assert.Equal(0, poolNodeCount.LowPriority.Offline);
+ }
+
+ var filteredNodeCounts = batchCli.PoolOperations.ListPoolNodeCounts(new ODATADetailLevel(filterClause: $"poolId eq '{poolId}'")).ToList();
+ Assert.Single(filteredNodeCounts);
+ }
+ };
+
+ SynchronizationContextHelper.RunTest(test, LongTestTimeout);
+ }
+
#region Test helpers
///
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch.IntegrationTests/ComputeNodeIntegrationTests.cs b/src/SDKs/Batch/DataPlane/Azure.Batch.IntegrationTests/ComputeNodeIntegrationTests.cs
index 2a1409745057..4655db0dea7b 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch.IntegrationTests/ComputeNodeIntegrationTests.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch.IntegrationTests/ComputeNodeIntegrationTests.cs
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
-namespace BatchClientIntegrationTests
+namespace BatchClientIntegrationTests
{
using System;
using System.Collections.Generic;
@@ -13,6 +13,9 @@
using Fixtures;
using Microsoft.Azure.Batch;
using Microsoft.Azure.Batch.Common;
+ using Microsoft.WindowsAzure.Storage;
+ using Microsoft.WindowsAzure.Storage.Auth;
+ using Microsoft.WindowsAzure.Storage.Blob;
using IntegrationTestUtilities;
using Microsoft.Azure.Batch.Protocol.BatchRequests;
using Microsoft.Rest.Azure;
@@ -677,6 +680,77 @@ await TestUtilities.RefreshBasedPollingWithTimeoutAsync(
TestTimeout);
}
+ [Fact]
+ [Trait(TestTraits.Duration.TraitName, TestTraits.Duration.Values.ShortDuration)]
+ public void ComputeNodeUploadLogs()
+ {
+ Action test = () =>
+ {
+ using (BatchClient batchCli = TestUtilities.OpenBatchClientFromEnvironmentAsync().Result)
+ {
+ var node = batchCli.PoolOperations.ListComputeNodes(this.poolFixture.PoolId).First();
+
+ // Generate a storage container URL
+ StagingStorageAccount storageAccount = TestUtilities.GetStorageCredentialsFromEnvironment();
+ CloudStorageAccount cloudStorageAccount = new CloudStorageAccount(
+ new StorageCredentials(storageAccount.StorageAccount, storageAccount.StorageAccountKey),
+ blobEndpoint: storageAccount.BlobUri,
+ queueEndpoint: null,
+ tableEndpoint: null,
+ fileEndpoint: null);
+ CloudBlobClient blobClient = cloudStorageAccount.CreateCloudBlobClient();
+ const string containerName = "computenodelogscontainer";
+ var container = blobClient.GetContainerReference(containerName);
+
+ try
+ {
+ container.CreateIfNotExists();
+
+ // Ensure that there are no items in the container to begin with
+ var blobs = container.ListBlobs();
+ Assert.Empty(blobs);
+
+ var sas = container.GetSharedAccessSignature(new SharedAccessBlobPolicy()
+ {
+ Permissions = SharedAccessBlobPermissions.Write,
+ SharedAccessExpiryTime = DateTime.UtcNow.AddDays(1)
+ });
+ var fullSas = container.Uri + sas;
+
+ var startTime = DateTime.UtcNow.Subtract(TimeSpan.FromMinutes(5));
+
+ var result = batchCli.PoolOperations.UploadComputeNodeBatchServiceLogs(
+ this.poolFixture.PoolId,
+ node.Id,
+ fullSas,
+ startTime);
+
+ Assert.NotEqual(0, result.NumberOfFilesUploaded);
+ Assert.NotEmpty(result.VirtualDirectoryName);
+
+ // Allow up to 2m for files to get uploaded
+ DateTime timeoutAt = DateTime.UtcNow.AddMinutes(2);
+ while (DateTime.UtcNow < timeoutAt)
+ {
+ blobs = container.ListBlobs();
+ if (blobs.Any())
+ {
+ break;
+ }
+ }
+
+ Assert.NotEmpty(blobs);
+ }
+ finally
+ {
+ container.DeleteIfExists();
+ }
+ }
+ };
+
+ SynchronizationContextHelper.RunTest(test, TestTimeout);
+ }
+
#region Test helpers
private static void CompareComputeNodeObjects(ComputeNode first, ComputeNode second)
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/AssemblyAttributes.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/AssemblyAttributes.cs
index 6f9d7130da31..f829a03f40a3 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/AssemblyAttributes.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/AssemblyAttributes.cs
@@ -10,7 +10,7 @@
[assembly: AssemblyDescription("Client library for interacting with the Azure Batch service.")]
[assembly: AssemblyVersion("8.0.0.0")]
-[assembly: AssemblyFileVersion("8.0.1.0")]
+[assembly: AssemblyFileVersion("8.1.0.0")]
[assembly: AssemblyCompany("Microsoft Corporation")]
[assembly: AssemblyProduct("Microsoft Azure")]
[assembly: AssemblyCopyright("Copyright (c) Microsoft Corporation. All rights reserved.")]
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/AsyncListPoolNodeCounts.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/AsyncListPoolNodeCounts.cs
new file mode 100644
index 000000000000..98c92d3426cb
--- /dev/null
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/AsyncListPoolNodeCounts.cs
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+
+namespace Microsoft.Azure.Batch
+{
+ using System.Diagnostics;
+ using System.Linq;
+ using System.Threading;
+ using Models = Microsoft.Azure.Batch.Protocol.Models;
+
+ internal class AsyncListPoolNodeCountsEnumerator : PagedEnumeratorBase
+ {
+ private readonly PoolOperations _parentPoolOperations;
+ private readonly BehaviorManager _behaviorMgr;
+ private readonly DetailLevel _detailLevel;
+
+#region // constructors
+
+ internal AsyncListPoolNodeCountsEnumerator(
+ PoolOperations parentPoolOperations,
+ BehaviorManager behaviorMgr,
+ DetailLevel detailLevel)
+ {
+ _parentPoolOperations = parentPoolOperations;
+ _behaviorMgr = behaviorMgr;
+ _detailLevel = detailLevel;
+ }
+
+#endregion // constructors
+
+ public override PoolNodeCounts Current // for IPagedEnumerator and IEnumerator
+ {
+ get
+ {
+ // start with the current object off of base
+ object curObj = base._currentBatch[base._currentIndex];
+
+ // it must be a protocol object from previous call
+ Models.PoolNodeCounts protocolObj = curObj as Models.PoolNodeCounts;
+
+ Debug.Assert(null != protocolObj);
+
+ // wrap protocol object
+ PoolNodeCounts wrapped = new PoolNodeCounts(protocolObj);
+
+ return wrapped;
+ }
+ }
+
+ ///
+ /// fetch another batch of objects from the server
+ ///
+ protected override async System.Threading.Tasks.Task GetNextBatchFromServerAsync(SkipTokenHandler skipHandler, CancellationToken cancellationToken)
+ {
+ do
+ {
+ // start the protocol layer call
+ var asyncTask = _parentPoolOperations.ParentBatchClient.ProtocolLayer.ListPoolNodeCounts(
+ skipHandler.SkipToken,
+ _behaviorMgr,
+ _detailLevel,
+ cancellationToken);
+
+ var response = await asyncTask.ConfigureAwait(continueOnCapturedContext: false);
+
+ // remember any skiptoken returned. This also sets the bool
+ skipHandler.SkipToken = response.Body.NextPageLink;
+
+ // remember the protocol tasks returned
+ base._currentBatch = null;
+
+ if (null != response.Body.GetEnumerator())
+ {
+ base._currentBatch = response.Body.ToArray();
+ }
+ }
+ // it is possible for there to be no results so we keep trying
+ while (skipHandler.ThereIsMoreData && ((null == _currentBatch) || _currentBatch.Length <= 0));
+ }
+ }
+}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/Azure.Batch.csproj b/src/SDKs/Batch/DataPlane/Azure.Batch/Azure.Batch.csproj
index 39f975c4cef8..1f18d20bb6f2 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/Azure.Batch.csproj
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/Azure.Batch.csproj
@@ -10,7 +10,7 @@
false
Azure.Batch
This client library provides access to the Microsoft Azure Batch service.
- 8.0.1
+ 8.1.0
$(DefineConstants);CODESIGN
true
Microsoft.Azure.Batch
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/ComputeNode.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/ComputeNode.cs
index 73db11205871..e4892d372264 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/ComputeNode.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/ComputeNode.cs
@@ -375,9 +375,84 @@ public void DisableScheduling(
asyncTask.WaitAndUnaggregateException(this.CustomBehaviors, additionalBehaviors);
}
-#endregion ComputeNode
+ ///
+ /// Upload Azure Batch service log files from the compute node.
+ ///
+ ///
+ /// The URL of the container within Azure Blob Storage to which to upload the Batch Service log file(s). The URL must include a Shared Access Signature (SAS) granting write permissions to the container.
+ ///
+ ///
+ /// The start of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded.
+ /// This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded.
+ ///
+ ///
+ /// The end of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded.
+ /// This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded. If this is omitted, the default is the current time.
+ ///
+ /// A collection of instances that are applied to the Batch service request after the .
+ /// A for controlling the lifetime of the asynchronous operation.
+ /// A that represents the asynchronous operation.
+ ///
+ /// This is for gathering Azure Batch service log files in an automated fashion from nodes if you are experiencing an error and wish to escalate to Azure support.
+ /// The Azure Batch service log files should be shared with Azure support to aid in debugging issues with the Batch service.
+ ///
+ public System.Threading.Tasks.Task UploadComputeNodeBatchServiceLogsAsync(
+ string containerUrl,
+ DateTime startTime,
+ DateTime? endTime = null,
+ IEnumerable additionalBehaviors = null,
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // craft the behavior manager for this call
+ BehaviorManager bhMgr = new BehaviorManager(this.CustomBehaviors, additionalBehaviors);
+
+ return this.parentBatchClient.PoolOperations.UploadComputeNodeBatchServiceLogsAsyncImpl(
+ this.parentPoolId,
+ this.Id,
+ containerUrl,
+ startTime,
+ endTime,
+ bhMgr,
+ cancellationToken);
+ }
+
+ ///
+ /// Upload Azure Batch service log files from the specified compute node.
+ ///
+ ///
+ /// The URL of the container within Azure Blob Storage to which to upload the Batch Service log file(s). The URL must include a Shared Access Signature (SAS) granting write permissions to the container.
+ ///
+ ///
+ /// The start of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded.
+ /// This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded.
+ ///
+ ///
+ /// The end of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded.
+ /// This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded. If this is omitted, the default is the current time.
+ ///
+ /// A collection of instances that are applied to the Batch service request after the .
+ ///
+ /// This is for gathering Azure Batch service log files in an automated fashion from nodes if you are experiencing an error and wish to escalate to Azure support.
+ /// The Azure Batch service log files should be shared with Azure support to aid in debugging issues with the Batch service.
+ ///
+ /// The result of uploading the batch service logs.
+ public UploadBatchServiceLogsResult UploadComputeNodeBatchServiceLogs(
+ string containerUrl,
+ DateTime startTime,
+ DateTime? endTime = null,
+ IEnumerable additionalBehaviors = null)
+ {
+ var asyncTask = this.UploadComputeNodeBatchServiceLogsAsync(
+ containerUrl,
+ startTime,
+ endTime,
+ additionalBehaviors);
+ return asyncTask.WaitAndUnaggregateException(this.CustomBehaviors, additionalBehaviors);
+ }
+
+ #endregion ComputeNode
-#region IRefreshable
+ #region IRefreshable
///
/// Refreshes the current .
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/Generated/NodeCounts.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/Generated/NodeCounts.cs
new file mode 100644
index 000000000000..1117be299f45
--- /dev/null
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/Generated/NodeCounts.cs
@@ -0,0 +1,134 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+
+//
+// This file was autogenerated by a tool.
+// Do not modify it.
+//
+
+namespace Microsoft.Azure.Batch
+{
+ using Models = Microsoft.Azure.Batch.Protocol.Models;
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// The number of nodes in each node state.
+ ///
+ public partial class NodeCounts : IPropertyMetadata
+ {
+ #region Constructors
+
+ internal NodeCounts(Models.NodeCounts protocolObject)
+ {
+ this.Creating = protocolObject.Creating;
+ this.Idle = protocolObject.Idle;
+ this.Offline = protocolObject.Offline;
+ this.Preempted = protocolObject.Preempted;
+ this.Rebooting = protocolObject.Rebooting;
+ this.Reimaging = protocolObject.Reimaging;
+ this.Running = protocolObject.Running;
+ this.Starting = protocolObject.Starting;
+ this.StartTaskFailed = protocolObject.StartTaskFailed;
+ this.Total = protocolObject.Total;
+ this.Unknown = protocolObject.Unknown;
+ this.Unusable = protocolObject.Unusable;
+ this.WaitingForStartTask = protocolObject.WaitingForStartTask;
+ }
+
+ #endregion Constructors
+
+ #region NodeCounts
+
+ ///
+ /// Gets the number of nodes in .
+ ///
+ public int Creating { get; }
+
+ ///
+ /// Gets the number of nodes in .
+ ///
+ public int Idle { get; }
+
+ ///
+ /// Gets the number of nodes in .
+ ///
+ public int Offline { get; }
+
+ ///
+ /// Gets the number of nodes in .
+ ///
+ public int Preempted { get; }
+
+ ///
+ /// Gets the number of nodes in .
+ ///
+ public int Rebooting { get; }
+
+ ///
+ /// Gets the number of nodes in .
+ ///
+ public int Reimaging { get; }
+
+ ///
+ /// Gets the number of nodes in .
+ ///
+ public int Running { get; }
+
+ ///
+ /// Gets the number of nodes in .
+ ///
+ public int Starting { get; }
+
+ ///
+ /// Gets the number of nodes in .
+ ///
+ public int StartTaskFailed { get; }
+
+ ///
+ /// Gets the total number of nodes.
+ ///
+ public int Total { get; }
+
+ ///
+ /// Gets the number of nodes in .
+ ///
+ public int Unknown { get; }
+
+ ///
+ /// Gets the number of nodes in .
+ ///
+ public int Unusable { get; }
+
+ ///
+ /// Gets the number of nodes in .
+ ///
+ public int WaitingForStartTask { get; }
+
+ #endregion // NodeCounts
+
+ #region IPropertyMetadata
+
+ bool IModifiable.HasBeenModified
+ {
+ //This class is compile time readonly so it cannot have been modified
+ get { return false; }
+ }
+
+ bool IReadOnly.IsReadOnly
+ {
+ get { return true; }
+ set
+ {
+ // This class is compile time readonly already
+ }
+ }
+
+ #endregion // IPropertyMetadata
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/Generated/PoolNodeCounts.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/Generated/PoolNodeCounts.cs
new file mode 100644
index 000000000000..25f2a70e1ce9
--- /dev/null
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/Generated/PoolNodeCounts.cs
@@ -0,0 +1,74 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+
+//
+// This file was autogenerated by a tool.
+// Do not modify it.
+//
+
+namespace Microsoft.Azure.Batch
+{
+ using Models = Microsoft.Azure.Batch.Protocol.Models;
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// A pool in the Azure Batch service.
+ ///
+ public partial class PoolNodeCounts : IPropertyMetadata
+ {
+ #region Constructors
+
+ internal PoolNodeCounts(Models.PoolNodeCounts protocolObject)
+ {
+ this.Dedicated = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.Dedicated, o => new NodeCounts(o).Freeze());
+ this.LowPriority = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.LowPriority, o => new NodeCounts(o).Freeze());
+ this.PoolId = protocolObject.PoolId;
+ }
+
+ #endregion Constructors
+
+ #region PoolNodeCounts
+
+ ///
+ /// Gets the number of dedicated nodes in each state.
+ ///
+ public NodeCounts Dedicated { get; }
+
+ ///
+ /// Gets the number of low-priority nodes in each state.
+ ///
+ public NodeCounts LowPriority { get; }
+
+ ///
+ /// Gets the ID of the pool.
+ ///
+ public string PoolId { get; }
+
+ #endregion // PoolNodeCounts
+
+ #region IPropertyMetadata
+
+ bool IModifiable.HasBeenModified
+ {
+ //This class is compile time readonly so it cannot have been modified
+ get { return false; }
+ }
+
+ bool IReadOnly.IsReadOnly
+ {
+ get { return true; }
+ set
+ {
+ // This class is compile time readonly already
+ }
+ }
+
+ #endregion // IPropertyMetadata
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/Generated/UploadBatchServiceLogsResult.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/Generated/UploadBatchServiceLogsResult.cs
new file mode 100644
index 000000000000..b48b50e1b927
--- /dev/null
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/Generated/UploadBatchServiceLogsResult.cs
@@ -0,0 +1,72 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+
+//
+// This file was autogenerated by a tool.
+// Do not modify it.
+//
+
+namespace Microsoft.Azure.Batch
+{
+ using Models = Microsoft.Azure.Batch.Protocol.Models;
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// The result of uploading batch service log files from a specific compute node.
+ ///
+ public partial class UploadBatchServiceLogsResult : IPropertyMetadata
+ {
+ #region Constructors
+
+ internal UploadBatchServiceLogsResult(Models.UploadBatchServiceLogsResult protocolObject)
+ {
+ this.NumberOfFilesUploaded = protocolObject.NumberOfFilesUploaded;
+ this.VirtualDirectoryName = protocolObject.VirtualDirectoryName;
+ }
+
+ #endregion Constructors
+
+ #region UploadBatchServiceLogsResult
+
+ ///
+ /// Gets the number of log files which will be uploaded.
+ ///
+ public int NumberOfFilesUploaded { get; }
+
+ ///
+ /// Gets the virtual directory within the Azure Blob Storage container to which the Batch Service log file(s) will
+ /// be uploaded.
+ ///
+ ///
+ /// The virtual directory name is part of the blob name for each log file uploaded.
+ ///
+ public string VirtualDirectoryName { get; }
+
+ #endregion // UploadBatchServiceLogsResult
+
+ #region IPropertyMetadata
+
+ bool IModifiable.HasBeenModified
+ {
+ //This class is compile time readonly so it cannot have been modified
+ get { return false; }
+ }
+
+ bool IReadOnly.IsReadOnly
+ {
+ get { return true; }
+ set
+ {
+ // This class is compile time readonly already
+ }
+ }
+
+ #endregion // IPropertyMetadata
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/AccountOperations.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/AccountOperations.cs
index 83d374783c6a..1a9147827e80 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/AccountOperations.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/AccountOperations.cs
@@ -307,6 +307,262 @@ internal AccountOperations(BatchServiceClient client)
return _result;
}
+ ///
+ /// Gets the number of nodes in each state, grouped by pool.
+ ///
+ ///
+ /// Additional parameters for the operation
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task,AccountListPoolNodeCountsHeaders>> ListPoolNodeCountsWithHttpMessagesAsync(AccountListPoolNodeCountsOptions accountListPoolNodeCountsOptions = default(AccountListPoolNodeCountsOptions), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ string filter = default(string);
+ if (accountListPoolNodeCountsOptions != null)
+ {
+ filter = accountListPoolNodeCountsOptions.Filter;
+ }
+ int? maxResults = default(int?);
+ if (accountListPoolNodeCountsOptions != null)
+ {
+ maxResults = accountListPoolNodeCountsOptions.MaxResults;
+ }
+ int? timeout = default(int?);
+ if (accountListPoolNodeCountsOptions != null)
+ {
+ timeout = accountListPoolNodeCountsOptions.Timeout;
+ }
+ System.Guid? clientRequestId = default(System.Guid?);
+ if (accountListPoolNodeCountsOptions != null)
+ {
+ clientRequestId = accountListPoolNodeCountsOptions.ClientRequestId;
+ }
+ bool? returnClientRequestId = default(bool?);
+ if (accountListPoolNodeCountsOptions != null)
+ {
+ returnClientRequestId = accountListPoolNodeCountsOptions.ReturnClientRequestId;
+ }
+ System.DateTime? ocpDate = default(System.DateTime?);
+ if (accountListPoolNodeCountsOptions != null)
+ {
+ ocpDate = accountListPoolNodeCountsOptions.OcpDate;
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("filter", filter);
+ tracingParameters.Add("maxResults", maxResults);
+ tracingParameters.Add("timeout", timeout);
+ tracingParameters.Add("clientRequestId", clientRequestId);
+ tracingParameters.Add("returnClientRequestId", returnClientRequestId);
+ tracingParameters.Add("ocpDate", ocpDate);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListPoolNodeCounts", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "nodecounts").ToString();
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (filter != null)
+ {
+ _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter)));
+ }
+ if (maxResults != null)
+ {
+ _queryParameters.Add(string.Format("maxresults={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxResults, Client.SerializationSettings).Trim('"'))));
+ }
+ if (timeout != null)
+ {
+ _queryParameters.Add(string.Format("timeout={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeout, Client.SerializationSettings).Trim('"'))));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+ if (clientRequestId != null)
+ {
+ if (_httpRequest.Headers.Contains("client-request-id"))
+ {
+ _httpRequest.Headers.Remove("client-request-id");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("client-request-id", SafeJsonConvert.SerializeObject(clientRequestId, Client.SerializationSettings).Trim('"'));
+ }
+ if (returnClientRequestId != null)
+ {
+ if (_httpRequest.Headers.Contains("return-client-request-id"))
+ {
+ _httpRequest.Headers.Remove("return-client-request-id");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("return-client-request-id", SafeJsonConvert.SerializeObject(returnClientRequestId, Client.SerializationSettings).Trim('"'));
+ }
+ if (ocpDate != null)
+ {
+ if (_httpRequest.Headers.Contains("ocp-date"))
+ {
+ _httpRequest.Headers.Remove("ocp-date");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("ocp-date", SafeJsonConvert.SerializeObject(ocpDate, new DateTimeRfc1123JsonConverter()).Trim('"'));
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new BatchErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ BatchError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse,AccountListPoolNodeCountsHeaders>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ try
+ {
+ _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings));
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex);
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
///
/// Lists all node agent SKUs supported by the Azure Batch service.
///
@@ -533,5 +789,231 @@ internal AccountOperations(BatchServiceClient client)
return _result;
}
+ ///
+ /// Gets the number of nodes in each state, grouped by pool.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// Additional parameters for the operation
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task,AccountListPoolNodeCountsHeaders>> ListPoolNodeCountsNextWithHttpMessagesAsync(string nextPageLink, AccountListPoolNodeCountsNextOptions accountListPoolNodeCountsNextOptions = default(AccountListPoolNodeCountsNextOptions), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (nextPageLink == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
+ }
+ System.Guid? clientRequestId = default(System.Guid?);
+ if (accountListPoolNodeCountsNextOptions != null)
+ {
+ clientRequestId = accountListPoolNodeCountsNextOptions.ClientRequestId;
+ }
+ bool? returnClientRequestId = default(bool?);
+ if (accountListPoolNodeCountsNextOptions != null)
+ {
+ returnClientRequestId = accountListPoolNodeCountsNextOptions.ReturnClientRequestId;
+ }
+ System.DateTime? ocpDate = default(System.DateTime?);
+ if (accountListPoolNodeCountsNextOptions != null)
+ {
+ ocpDate = accountListPoolNodeCountsNextOptions.OcpDate;
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("nextPageLink", nextPageLink);
+ tracingParameters.Add("clientRequestId", clientRequestId);
+ tracingParameters.Add("returnClientRequestId", returnClientRequestId);
+ tracingParameters.Add("ocpDate", ocpDate);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListPoolNodeCountsNext", tracingParameters);
+ }
+ // Construct URL
+ string _url = "{nextLink}";
+ _url = _url.Replace("{nextLink}", nextPageLink);
+ List _queryParameters = new List();
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+ if (clientRequestId != null)
+ {
+ if (_httpRequest.Headers.Contains("client-request-id"))
+ {
+ _httpRequest.Headers.Remove("client-request-id");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("client-request-id", SafeJsonConvert.SerializeObject(clientRequestId, Client.SerializationSettings).Trim('"'));
+ }
+ if (returnClientRequestId != null)
+ {
+ if (_httpRequest.Headers.Contains("return-client-request-id"))
+ {
+ _httpRequest.Headers.Remove("return-client-request-id");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("return-client-request-id", SafeJsonConvert.SerializeObject(returnClientRequestId, Client.SerializationSettings).Trim('"'));
+ }
+ if (ocpDate != null)
+ {
+ if (_httpRequest.Headers.Contains("ocp-date"))
+ {
+ _httpRequest.Headers.Remove("ocp-date");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("ocp-date", SafeJsonConvert.SerializeObject(ocpDate, new DateTimeRfc1123JsonConverter()).Trim('"'));
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new BatchErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ BatchError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse,AccountListPoolNodeCountsHeaders>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ try
+ {
+ _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings));
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex);
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
}
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/AccountOperationsExtensions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/AccountOperationsExtensions.cs
index 787f12adcdc3..b7f763e6a7d8 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/AccountOperationsExtensions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/AccountOperationsExtensions.cs
@@ -55,6 +55,40 @@ public static partial class AccountOperationsExtensions
}
}
+ ///
+ /// Gets the number of nodes in each state, grouped by pool.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Additional parameters for the operation
+ ///
+ public static IPage ListPoolNodeCounts(this IAccountOperations operations, AccountListPoolNodeCountsOptions accountListPoolNodeCountsOptions = default(AccountListPoolNodeCountsOptions))
+ {
+ return operations.ListPoolNodeCountsAsync(accountListPoolNodeCountsOptions).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets the number of nodes in each state, grouped by pool.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Additional parameters for the operation
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListPoolNodeCountsAsync(this IAccountOperations operations, AccountListPoolNodeCountsOptions accountListPoolNodeCountsOptions = default(AccountListPoolNodeCountsOptions), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListPoolNodeCountsWithHttpMessagesAsync(accountListPoolNodeCountsOptions, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Lists all node agent SKUs supported by the Azure Batch service.
///
@@ -95,5 +129,45 @@ public static partial class AccountOperationsExtensions
}
}
+ ///
+ /// Gets the number of nodes in each state, grouped by pool.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// Additional parameters for the operation
+ ///
+ public static IPage ListPoolNodeCountsNext(this IAccountOperations operations, string nextPageLink, AccountListPoolNodeCountsNextOptions accountListPoolNodeCountsNextOptions = default(AccountListPoolNodeCountsNextOptions))
+ {
+ return operations.ListPoolNodeCountsNextAsync(nextPageLink, accountListPoolNodeCountsNextOptions).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets the number of nodes in each state, grouped by pool.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// Additional parameters for the operation
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListPoolNodeCountsNextAsync(this IAccountOperations operations, string nextPageLink, AccountListPoolNodeCountsNextOptions accountListPoolNodeCountsNextOptions = default(AccountListPoolNodeCountsNextOptions), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListPoolNodeCountsNextWithHttpMessagesAsync(nextPageLink, accountListPoolNodeCountsNextOptions, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
}
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/BatchServiceClient.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/BatchServiceClient.cs
index 1868bba0d1b9..a8c62c0beb58 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/BatchServiceClient.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/BatchServiceClient.cs
@@ -324,7 +324,7 @@ private void Initialize()
Task = new TaskOperations(this);
ComputeNode = new ComputeNodeOperations(this);
BaseUri = new System.Uri("https://batch.core.windows.net");
- ApiVersion = "2017-09-01.6.0";
+ ApiVersion = "2018-03-01.6.1";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/ComputeNodeOperations.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/ComputeNodeOperations.cs
index e9600e13e7dd..c4664cb24c19 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/ComputeNodeOperations.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/ComputeNodeOperations.cs
@@ -2590,6 +2590,286 @@ internal ComputeNodeOperations(BatchServiceClient client)
return _result;
}
+ ///
+ /// Upload Azure Batch service log files from the specified compute node to
+ /// Azure Blob Storage.
+ ///
+ ///
+ /// This is for gathering Azure Batch service log files in an automated fashion
+ /// from nodes if you are experiencing an error and wish to escalate to Azure
+ /// support. The Azure Batch service log files should be shared with Azure
+ /// support to aid in debugging issues with the Batch service.
+ ///
+ ///
+ /// The ID of the pool that contains the compute node.
+ ///
+ ///
+ /// The ID of the compute node from which you want to upload the Azure Batch
+ /// service log files.
+ ///
+ ///
+ /// The Azure Batch service log files upload configuration.
+ ///
+ ///
+ /// Additional parameters for the operation
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> UploadBatchServiceLogsWithHttpMessagesAsync(string poolId, string nodeId, UploadBatchServiceLogsConfiguration uploadBatchServiceLogsConfiguration, ComputeNodeUploadBatchServiceLogsOptions computeNodeUploadBatchServiceLogsOptions = default(ComputeNodeUploadBatchServiceLogsOptions), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (poolId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "poolId");
+ }
+ if (nodeId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "nodeId");
+ }
+ if (uploadBatchServiceLogsConfiguration == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "uploadBatchServiceLogsConfiguration");
+ }
+ if (uploadBatchServiceLogsConfiguration != null)
+ {
+ uploadBatchServiceLogsConfiguration.Validate();
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ int? timeout = default(int?);
+ if (computeNodeUploadBatchServiceLogsOptions != null)
+ {
+ timeout = computeNodeUploadBatchServiceLogsOptions.Timeout;
+ }
+ System.Guid? clientRequestId = default(System.Guid?);
+ if (computeNodeUploadBatchServiceLogsOptions != null)
+ {
+ clientRequestId = computeNodeUploadBatchServiceLogsOptions.ClientRequestId;
+ }
+ bool? returnClientRequestId = default(bool?);
+ if (computeNodeUploadBatchServiceLogsOptions != null)
+ {
+ returnClientRequestId = computeNodeUploadBatchServiceLogsOptions.ReturnClientRequestId;
+ }
+ System.DateTime? ocpDate = default(System.DateTime?);
+ if (computeNodeUploadBatchServiceLogsOptions != null)
+ {
+ ocpDate = computeNodeUploadBatchServiceLogsOptions.OcpDate;
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("poolId", poolId);
+ tracingParameters.Add("nodeId", nodeId);
+ tracingParameters.Add("uploadBatchServiceLogsConfiguration", uploadBatchServiceLogsConfiguration);
+ tracingParameters.Add("timeout", timeout);
+ tracingParameters.Add("clientRequestId", clientRequestId);
+ tracingParameters.Add("returnClientRequestId", returnClientRequestId);
+ tracingParameters.Add("ocpDate", ocpDate);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "UploadBatchServiceLogs", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "pools/{poolId}/nodes/{nodeId}/uploadbatchservicelogs").ToString();
+ _url = _url.Replace("{poolId}", System.Uri.EscapeDataString(poolId));
+ _url = _url.Replace("{nodeId}", System.Uri.EscapeDataString(nodeId));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (timeout != null)
+ {
+ _queryParameters.Add(string.Format("timeout={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeout, Client.SerializationSettings).Trim('"'))));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+ if (clientRequestId != null)
+ {
+ if (_httpRequest.Headers.Contains("client-request-id"))
+ {
+ _httpRequest.Headers.Remove("client-request-id");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("client-request-id", SafeJsonConvert.SerializeObject(clientRequestId, Client.SerializationSettings).Trim('"'));
+ }
+ if (returnClientRequestId != null)
+ {
+ if (_httpRequest.Headers.Contains("return-client-request-id"))
+ {
+ _httpRequest.Headers.Remove("return-client-request-id");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("return-client-request-id", SafeJsonConvert.SerializeObject(returnClientRequestId, Client.SerializationSettings).Trim('"'));
+ }
+ if (ocpDate != null)
+ {
+ if (_httpRequest.Headers.Contains("ocp-date"))
+ {
+ _httpRequest.Headers.Remove("ocp-date");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("ocp-date", SafeJsonConvert.SerializeObject(ocpDate, new DateTimeRfc1123JsonConverter()).Trim('"'));
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ if(uploadBatchServiceLogsConfiguration != null)
+ {
+ _requestContent = SafeJsonConvert.SerializeObject(uploadBatchServiceLogsConfiguration, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; odata=minimalmetadata; charset=utf-8");
+ }
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new BatchErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ BatchError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ try
+ {
+ _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings));
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex);
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
///
/// Lists the compute nodes in the specified pool.
///
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/ComputeNodeOperationsExtensions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/ComputeNodeOperationsExtensions.cs
index cb0675321f28..e14bacd0ee94 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/ComputeNodeOperationsExtensions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/ComputeNodeOperationsExtensions.cs
@@ -623,6 +623,74 @@ public static partial class ComputeNodeOperationsExtensions
return _result.Body;
}
+ ///
+ /// Upload Azure Batch service log files from the specified compute node to
+ /// Azure Blob Storage.
+ ///
+ ///
+ /// This is for gathering Azure Batch service log files in an automated fashion
+ /// from nodes if you are experiencing an error and wish to escalate to Azure
+ /// support. The Azure Batch service log files should be shared with Azure
+ /// support to aid in debugging issues with the Batch service.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The ID of the pool that contains the compute node.
+ ///
+ ///
+ /// The ID of the compute node from which you want to upload the Azure Batch
+ /// service log files.
+ ///
+ ///
+ /// The Azure Batch service log files upload configuration.
+ ///
+ ///
+ /// Additional parameters for the operation
+ ///
+ public static UploadBatchServiceLogsResult UploadBatchServiceLogs(this IComputeNodeOperations operations, string poolId, string nodeId, UploadBatchServiceLogsConfiguration uploadBatchServiceLogsConfiguration, ComputeNodeUploadBatchServiceLogsOptions computeNodeUploadBatchServiceLogsOptions = default(ComputeNodeUploadBatchServiceLogsOptions))
+ {
+ return operations.UploadBatchServiceLogsAsync(poolId, nodeId, uploadBatchServiceLogsConfiguration, computeNodeUploadBatchServiceLogsOptions).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Upload Azure Batch service log files from the specified compute node to
+ /// Azure Blob Storage.
+ ///
+ ///
+ /// This is for gathering Azure Batch service log files in an automated fashion
+ /// from nodes if you are experiencing an error and wish to escalate to Azure
+ /// support. The Azure Batch service log files should be shared with Azure
+ /// support to aid in debugging issues with the Batch service.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The ID of the pool that contains the compute node.
+ ///
+ ///
+ /// The ID of the compute node from which you want to upload the Azure Batch
+ /// service log files.
+ ///
+ ///
+ /// The Azure Batch service log files upload configuration.
+ ///
+ ///
+ /// Additional parameters for the operation
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task UploadBatchServiceLogsAsync(this IComputeNodeOperations operations, string poolId, string nodeId, UploadBatchServiceLogsConfiguration uploadBatchServiceLogsConfiguration, ComputeNodeUploadBatchServiceLogsOptions computeNodeUploadBatchServiceLogsOptions = default(ComputeNodeUploadBatchServiceLogsOptions), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.UploadBatchServiceLogsWithHttpMessagesAsync(poolId, nodeId, uploadBatchServiceLogsConfiguration, computeNodeUploadBatchServiceLogsOptions, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Lists the compute nodes in the specified pool.
///
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/IAccountOperations.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/IAccountOperations.cs
index 72a0c5047415..67f43c60e3b4 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/IAccountOperations.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/IAccountOperations.cs
@@ -46,6 +46,28 @@ public partial interface IAccountOperations
///
Task,AccountListNodeAgentSkusHeaders>> ListNodeAgentSkusWithHttpMessagesAsync(AccountListNodeAgentSkusOptions accountListNodeAgentSkusOptions = default(AccountListNodeAgentSkusOptions), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Gets the number of nodes in each state, grouped by pool.
+ ///
+ ///
+ /// Additional parameters for the operation
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task,AccountListPoolNodeCountsHeaders>> ListPoolNodeCountsWithHttpMessagesAsync(AccountListPoolNodeCountsOptions accountListPoolNodeCountsOptions = default(AccountListPoolNodeCountsOptions), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Lists all node agent SKUs supported by the Azure Batch service.
///
///
@@ -70,5 +92,30 @@ public partial interface IAccountOperations
/// Thrown when a required parameter is null
///
Task,AccountListNodeAgentSkusHeaders>> ListNodeAgentSkusNextWithHttpMessagesAsync(string nextPageLink, AccountListNodeAgentSkusNextOptions accountListNodeAgentSkusNextOptions = default(AccountListNodeAgentSkusNextOptions), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets the number of nodes in each state, grouped by pool.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// Additional parameters for the operation
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task,AccountListPoolNodeCountsHeaders>> ListPoolNodeCountsNextWithHttpMessagesAsync(string nextPageLink, AccountListPoolNodeCountsNextOptions accountListPoolNodeCountsNextOptions = default(AccountListPoolNodeCountsNextOptions), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/IComputeNodeOperations.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/IComputeNodeOperations.cs
index 9c956f7f9e5d..352ba7ccbaef 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/IComputeNodeOperations.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/IComputeNodeOperations.cs
@@ -362,6 +362,46 @@ public partial interface IComputeNodeOperations
///
Task> GetRemoteDesktopWithHttpMessagesAsync(string poolId, string nodeId, ComputeNodeGetRemoteDesktopOptions computeNodeGetRemoteDesktopOptions = default(ComputeNodeGetRemoteDesktopOptions), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Upload Azure Batch service log files from the specified compute
+ /// node to Azure Blob Storage.
+ ///
+ ///
+ /// This is for gathering Azure Batch service log files in an automated
+ /// fashion from nodes if you are experiencing an error and wish to
+ /// escalate to Azure support. The Azure Batch service log files should
+ /// be shared with Azure support to aid in debugging issues with the
+ /// Batch service.
+ ///
+ ///
+ /// The ID of the pool that contains the compute node.
+ ///
+ ///
+ /// The ID of the compute node from which you want to upload the Azure
+ /// Batch service log files.
+ ///
+ ///
+ /// The Azure Batch service log files upload configuration.
+ ///
+ ///
+ /// Additional parameters for the operation
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> UploadBatchServiceLogsWithHttpMessagesAsync(string poolId, string nodeId, UploadBatchServiceLogsConfiguration uploadBatchServiceLogsConfiguration, ComputeNodeUploadBatchServiceLogsOptions computeNodeUploadBatchServiceLogsOptions = default(ComputeNodeUploadBatchServiceLogsOptions), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Lists the compute nodes in the specified pool.
///
///
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AccountListNodeAgentSkusNextOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AccountListNodeAgentSkusNextOptions.cs
index cddd1dfba75c..25147874fc0b 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AccountListNodeAgentSkusNextOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AccountListNodeAgentSkusNextOptions.cs
@@ -59,14 +59,14 @@ public AccountListNodeAgentSkusNextOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -75,7 +75,7 @@ public AccountListNodeAgentSkusNextOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AccountListNodeAgentSkusOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AccountListNodeAgentSkusOptions.cs
index a2a0a14b1a6a..3771cd164f65 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AccountListNodeAgentSkusOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AccountListNodeAgentSkusOptions.cs
@@ -70,21 +70,21 @@ public AccountListNodeAgentSkusOptions()
/// constructing this filter, see
/// https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-node-agent-skus.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Filter { get; set; }
///
/// Gets or sets the maximum number of items to return in the response.
/// A maximum of 1000 results will be returned.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? MaxResults { get; set; }
///
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -92,14 +92,14 @@ public AccountListNodeAgentSkusOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -108,7 +108,7 @@ public AccountListNodeAgentSkusOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AccountListPoolNodeCountsHeaders.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AccountListPoolNodeCountsHeaders.cs
new file mode 100644
index 000000000000..e844db92a650
--- /dev/null
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AccountListPoolNodeCountsHeaders.cs
@@ -0,0 +1,77 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Batch.Protocol.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Defines headers for ListPoolNodeCounts operation.
+ ///
+ public partial class AccountListPoolNodeCountsHeaders
+ {
+ ///
+ /// Initializes a new instance of the AccountListPoolNodeCountsHeaders
+ /// class.
+ ///
+ public AccountListPoolNodeCountsHeaders()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the AccountListPoolNodeCountsHeaders
+ /// class.
+ ///
+ /// The client-request-id provided by the
+ /// client during the request. This will be returned only if the
+ /// return-client-request-id parameter was set to true.
+ /// A unique identifier for the request that
+ /// was made to the Batch service. If a request is consistently failing
+ /// and you have verified that the request is properly formulated, you
+ /// may use this value to report the error to Microsoft. In your
+ /// report, include the value of this request ID, the approximate time
+ /// that the request was made, the Batch account against which the
+ /// request was made, and the region that account resides in.
+ public AccountListPoolNodeCountsHeaders(System.Guid? clientRequestId = default(System.Guid?), System.Guid? requestId = default(System.Guid?))
+ {
+ ClientRequestId = clientRequestId;
+ RequestId = requestId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the client-request-id provided by the client during
+ /// the request. This will be returned only if the
+ /// return-client-request-id parameter was set to true.
+ ///
+ [JsonProperty(PropertyName = "client-request-id")]
+ public System.Guid? ClientRequestId { get; set; }
+
+ ///
+ /// Gets or sets a unique identifier for the request that was made to
+ /// the Batch service. If a request is consistently failing and you
+ /// have verified that the request is properly formulated, you may use
+ /// this value to report the error to Microsoft. In your report,
+ /// include the value of this request ID, the approximate time that the
+ /// request was made, the Batch account against which the request was
+ /// made, and the region that account resides in.
+ ///
+ [JsonProperty(PropertyName = "request-id")]
+ public System.Guid? RequestId { get; set; }
+
+ }
+}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AccountListPoolNodeCountsNextOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AccountListPoolNodeCountsNextOptions.cs
new file mode 100644
index 000000000000..4f18f8f0a77e
--- /dev/null
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AccountListPoolNodeCountsNextOptions.cs
@@ -0,0 +1,82 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Batch.Protocol.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Additional parameters for ListPoolNodeCountsNext operation.
+ ///
+ public partial class AccountListPoolNodeCountsNextOptions
+ {
+ ///
+ /// Initializes a new instance of the
+ /// AccountListPoolNodeCountsNextOptions class.
+ ///
+ public AccountListPoolNodeCountsNextOptions()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// AccountListPoolNodeCountsNextOptions class.
+ ///
+ /// The caller-generated request
+ /// identity, in the form of a GUID with no decoration such as curly
+ /// braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
+ /// Whether the server should
+ /// return the client-request-id in the response.
+ /// The time the request was issued. Client
+ /// libraries typically set this to the current system clock time; set
+ /// it explicitly if you are calling the REST API directly.
+ public AccountListPoolNodeCountsNextOptions(System.Guid? clientRequestId = default(System.Guid?), bool? returnClientRequestId = default(bool?), System.DateTime? ocpDate = default(System.DateTime?))
+ {
+ ClientRequestId = clientRequestId;
+ ReturnClientRequestId = returnClientRequestId;
+ OcpDate = ocpDate;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the caller-generated request identity, in the form of
+ /// a GUID with no decoration such as curly braces, e.g.
+ /// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
+ ///
+ [Newtonsoft.Json.JsonIgnore]
+ public System.Guid? ClientRequestId { get; set; }
+
+ ///
+ /// Gets or sets whether the server should return the client-request-id
+ /// in the response.
+ ///
+ [Newtonsoft.Json.JsonIgnore]
+ public bool? ReturnClientRequestId { get; set; }
+
+ ///
+ /// Gets or sets the time the request was issued. Client libraries
+ /// typically set this to the current system clock time; set it
+ /// explicitly if you are calling the REST API directly.
+ ///
+ [JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
+ [Newtonsoft.Json.JsonIgnore]
+ public System.DateTime? OcpDate { get; set; }
+
+ }
+}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AccountListPoolNodeCountsOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AccountListPoolNodeCountsOptions.cs
new file mode 100644
index 000000000000..b59b21aac2a5
--- /dev/null
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AccountListPoolNodeCountsOptions.cs
@@ -0,0 +1,110 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Batch.Protocol.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Additional parameters for ListPoolNodeCounts operation.
+ ///
+ public partial class AccountListPoolNodeCountsOptions
+ {
+ ///
+ /// Initializes a new instance of the AccountListPoolNodeCountsOptions
+ /// class.
+ ///
+ public AccountListPoolNodeCountsOptions()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the AccountListPoolNodeCountsOptions
+ /// class.
+ ///
+ /// An OData $filter clause.
+ /// The maximum number of items to return in
+ /// the response.
+ /// The maximum time that the server can spend
+ /// processing the request, in seconds. The default is 30
+ /// seconds.
+ /// The caller-generated request
+ /// identity, in the form of a GUID with no decoration such as curly
+ /// braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
+ /// Whether the server should
+ /// return the client-request-id in the response.
+ /// The time the request was issued. Client
+ /// libraries typically set this to the current system clock time; set
+ /// it explicitly if you are calling the REST API directly.
+ public AccountListPoolNodeCountsOptions(string filter = default(string), int? maxResults = default(int?), int? timeout = default(int?), System.Guid? clientRequestId = default(System.Guid?), bool? returnClientRequestId = default(bool?), System.DateTime? ocpDate = default(System.DateTime?))
+ {
+ Filter = filter;
+ MaxResults = maxResults;
+ Timeout = timeout;
+ ClientRequestId = clientRequestId;
+ ReturnClientRequestId = returnClientRequestId;
+ OcpDate = ocpDate;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets an OData $filter clause.
+ ///
+ [Newtonsoft.Json.JsonIgnore]
+ public string Filter { get; set; }
+
+ ///
+ /// Gets or sets the maximum number of items to return in the response.
+ ///
+ [Newtonsoft.Json.JsonIgnore]
+ public int? MaxResults { get; set; }
+
+ ///
+ /// Gets or sets the maximum time that the server can spend processing
+ /// the request, in seconds. The default is 30 seconds.
+ ///
+ [Newtonsoft.Json.JsonIgnore]
+ public int? Timeout { get; set; }
+
+ ///
+ /// Gets or sets the caller-generated request identity, in the form of
+ /// a GUID with no decoration such as curly braces, e.g.
+ /// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
+ ///
+ [Newtonsoft.Json.JsonIgnore]
+ public System.Guid? ClientRequestId { get; set; }
+
+ ///
+ /// Gets or sets whether the server should return the client-request-id
+ /// in the response.
+ ///
+ [Newtonsoft.Json.JsonIgnore]
+ public bool? ReturnClientRequestId { get; set; }
+
+ ///
+ /// Gets or sets the time the request was issued. Client libraries
+ /// typically set this to the current system clock time; set it
+ /// explicitly if you are calling the REST API directly.
+ ///
+ [JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
+ [Newtonsoft.Json.JsonIgnore]
+ public System.DateTime? OcpDate { get; set; }
+
+ }
+}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ApplicationGetOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ApplicationGetOptions.cs
index aa706b63ed2c..5cf7a3c81397 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ApplicationGetOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ApplicationGetOptions.cs
@@ -60,7 +60,7 @@ public ApplicationGetOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -68,14 +68,14 @@ public ApplicationGetOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -84,7 +84,7 @@ public ApplicationGetOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ApplicationListNextOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ApplicationListNextOptions.cs
index 3da5b89f6b79..88b1a33edb16 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ApplicationListNextOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ApplicationListNextOptions.cs
@@ -57,14 +57,14 @@ public ApplicationListNextOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -73,7 +73,7 @@ public ApplicationListNextOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ApplicationListOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ApplicationListOptions.cs
index 35aebb854471..8eca133b075f 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ApplicationListOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ApplicationListOptions.cs
@@ -64,14 +64,14 @@ public ApplicationListOptions()
/// Gets or sets the maximum number of items to return in the response.
/// A maximum of 1000 applications can be returned.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? MaxResults { get; set; }
///
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -79,14 +79,14 @@ public ApplicationListOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -95,7 +95,7 @@ public ApplicationListOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AutoUserSpecification.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AutoUserSpecification.cs
index 42cacb34b054..e4bd45c308c7 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AutoUserSpecification.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/AutoUserSpecification.cs
@@ -58,10 +58,8 @@ public AutoUserSpecification()
/// Gets or sets the elevation level of the auto user.
///
///
- /// 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. Possible values include: 'nonAdmin', 'admin'
+ /// The default value is nonAdmin. Possible values include: 'nonAdmin',
+ /// 'admin'
///
[JsonProperty(PropertyName = "elevationLevel")]
public ElevationLevel? ElevationLevel { get; set; }
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateAddOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateAddOptions.cs
index 356ade0f0360..6a548ab84b07 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateAddOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateAddOptions.cs
@@ -60,7 +60,7 @@ public CertificateAddOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -68,14 +68,14 @@ public CertificateAddOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -84,7 +84,7 @@ public CertificateAddOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateCancelDeletionOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateCancelDeletionOptions.cs
index a18e8e1dd8ca..fdc38eedf107 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateCancelDeletionOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateCancelDeletionOptions.cs
@@ -62,7 +62,7 @@ public CertificateCancelDeletionOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -70,14 +70,14 @@ public CertificateCancelDeletionOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -86,7 +86,7 @@ public CertificateCancelDeletionOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateDeleteOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateDeleteOptions.cs
index e903b67e2b6a..dfdf89981546 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateDeleteOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateDeleteOptions.cs
@@ -60,7 +60,7 @@ public CertificateDeleteOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -68,14 +68,14 @@ public CertificateDeleteOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -84,7 +84,7 @@ public CertificateDeleteOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateGetOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateGetOptions.cs
index f79c53ff180f..34768d2787a6 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateGetOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateGetOptions.cs
@@ -61,14 +61,14 @@ public CertificateGetOptions()
///
/// Gets or sets an OData $select clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Select { get; set; }
///
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -76,14 +76,14 @@ public CertificateGetOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -92,7 +92,7 @@ public CertificateGetOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateListNextOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateListNextOptions.cs
index 1df9accbb9a6..6cead6a18543 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateListNextOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateListNextOptions.cs
@@ -57,14 +57,14 @@ public CertificateListNextOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -73,7 +73,7 @@ public CertificateListNextOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateListOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateListOptions.cs
index cc16676e23fe..f0c978fb8a4b 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateListOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CertificateListOptions.cs
@@ -71,27 +71,27 @@ public CertificateListOptions()
/// constructing this filter, see
/// https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-certificates.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Filter { get; set; }
///
/// Gets or sets an OData $select clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Select { get; set; }
///
/// Gets or sets the maximum number of items to return in the response.
/// A maximum of 1000 certificates can be returned.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? MaxResults { get; set; }
///
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -99,14 +99,14 @@ public CertificateListOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -115,7 +115,7 @@ public CertificateListOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CloudJob.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CloudJob.cs
index 98e7af3b45bb..10fe7b26ce5f 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CloudJob.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/CloudJob.cs
@@ -266,10 +266,8 @@ public CloudJob()
/// tasks in the job are in the completed state.
///
///
- /// noAction - do nothing. The job remains active unless terminated or
- /// disabled by some other means. terminateJob - terminate the job. The
- /// job's terminateReason is set to 'AllTasksComplete'. The default is
- /// noAction. Possible values include: 'noAction', 'terminateJob'
+ /// The default is noaction. Possible values include: 'noAction',
+ /// 'terminateJob'
///
[JsonProperty(PropertyName = "onAllTasksComplete")]
public OnAllTasksComplete? OnAllTasksComplete { get; set; }
@@ -282,12 +280,8 @@ public CloudJob()
/// A task is considered to have failed if has a failureInfo. A
/// failureInfo is set if the task completes with a non-zero exit code
/// after exhausting its retry count, or if there was an error starting
- /// the task, for example due to a resource file download error.
- /// noAction - do nothing. performExitOptionsJobAction - take the
- /// action associated with the task exit condition in the task's
- /// exitConditions collection. (This may still result in no action
- /// being taken, if that is what the task specifies.) The default is
- /// noAction. Possible values include: 'noAction',
+ /// the task, for example due to a resource file download error. The
+ /// default is noaction. Possible values include: 'noAction',
/// 'performExitOptionsJobAction'
///
[JsonProperty(PropertyName = "onTaskFailure")]
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeAddUserOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeAddUserOptions.cs
index 6071fc16c1fc..ac8be34d6735 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeAddUserOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeAddUserOptions.cs
@@ -60,7 +60,7 @@ public ComputeNodeAddUserOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -68,14 +68,14 @@ public ComputeNodeAddUserOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -84,7 +84,7 @@ public ComputeNodeAddUserOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeDeleteUserOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeDeleteUserOptions.cs
index 029ba8a90a51..8296894b4882 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeDeleteUserOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeDeleteUserOptions.cs
@@ -62,7 +62,7 @@ public ComputeNodeDeleteUserOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -70,14 +70,14 @@ public ComputeNodeDeleteUserOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -86,7 +86,7 @@ public ComputeNodeDeleteUserOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeDisableSchedulingOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeDisableSchedulingOptions.cs
index dbce0c1fc5bc..bad65c03e08c 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeDisableSchedulingOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeDisableSchedulingOptions.cs
@@ -62,7 +62,7 @@ public ComputeNodeDisableSchedulingOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -70,14 +70,14 @@ public ComputeNodeDisableSchedulingOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -86,7 +86,7 @@ public ComputeNodeDisableSchedulingOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeEnableSchedulingOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeEnableSchedulingOptions.cs
index 8c98aa2a3d00..7915de02578a 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeEnableSchedulingOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeEnableSchedulingOptions.cs
@@ -62,7 +62,7 @@ public ComputeNodeEnableSchedulingOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -70,14 +70,14 @@ public ComputeNodeEnableSchedulingOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -86,7 +86,7 @@ public ComputeNodeEnableSchedulingOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeGetOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeGetOptions.cs
index 680c00f454d4..ce44f02a28cb 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeGetOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeGetOptions.cs
@@ -61,14 +61,14 @@ public ComputeNodeGetOptions()
///
/// Gets or sets an OData $select clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Select { get; set; }
///
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -76,14 +76,14 @@ public ComputeNodeGetOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -92,7 +92,7 @@ public ComputeNodeGetOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeGetRemoteDesktopOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeGetRemoteDesktopOptions.cs
index 589c7a05b1c3..e2d2a5951691 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeGetRemoteDesktopOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeGetRemoteDesktopOptions.cs
@@ -62,7 +62,7 @@ public ComputeNodeGetRemoteDesktopOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -70,14 +70,14 @@ public ComputeNodeGetRemoteDesktopOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -86,7 +86,7 @@ public ComputeNodeGetRemoteDesktopOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeGetRemoteLoginSettingsOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeGetRemoteLoginSettingsOptions.cs
index 269b54bb6527..c516720ae96d 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeGetRemoteLoginSettingsOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeGetRemoteLoginSettingsOptions.cs
@@ -62,7 +62,7 @@ public ComputeNodeGetRemoteLoginSettingsOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -70,14 +70,14 @@ public ComputeNodeGetRemoteLoginSettingsOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -86,7 +86,7 @@ public ComputeNodeGetRemoteLoginSettingsOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeListNextOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeListNextOptions.cs
index 81b58b986852..bf6ffb0f8e0f 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeListNextOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeListNextOptions.cs
@@ -57,14 +57,14 @@ public ComputeNodeListNextOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -73,7 +73,7 @@ public ComputeNodeListNextOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeListOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeListOptions.cs
index 36d147b5e119..cc1ec97cbe71 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeListOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeListOptions.cs
@@ -70,27 +70,27 @@ public ComputeNodeListOptions()
/// constructing this filter, see
/// https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Filter { get; set; }
///
/// Gets or sets an OData $select clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Select { get; set; }
///
/// Gets or sets the maximum number of items to return in the response.
/// A maximum of 1000 nodes can be returned.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? MaxResults { get; set; }
///
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -98,14 +98,14 @@ public ComputeNodeListOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -114,7 +114,7 @@ public ComputeNodeListOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeRebootOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeRebootOptions.cs
index 20613dd4813d..c496dfa81c01 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeRebootOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeRebootOptions.cs
@@ -60,7 +60,7 @@ public ComputeNodeRebootOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -68,14 +68,14 @@ public ComputeNodeRebootOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -84,7 +84,7 @@ public ComputeNodeRebootOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeReimageOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeReimageOptions.cs
index 6020ba55efdd..d06bed4fe75f 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeReimageOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeReimageOptions.cs
@@ -60,7 +60,7 @@ public ComputeNodeReimageOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -68,14 +68,14 @@ public ComputeNodeReimageOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -84,7 +84,7 @@ public ComputeNodeReimageOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeState.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeState.cs
index 7d1b9e7b47b4..4f108e3b3758 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeState.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeState.cs
@@ -61,7 +61,7 @@ public enum ComputeNodeState
/// The start task has started running on the compute node, but
/// waitForSuccess is set and the start task has not yet completed.
///
- [EnumMember(Value = "waitingForStartTask")]
+ [EnumMember(Value = "waitingforstarttask")]
WaitingForStartTask,
///
/// The start task has failed on the compute node (and exhausted all
@@ -122,7 +122,7 @@ internal static string ToSerializedValue(this ComputeNodeState value)
case ComputeNodeState.Starting:
return "starting";
case ComputeNodeState.WaitingForStartTask:
- return "waitingForStartTask";
+ return "waitingforstarttask";
case ComputeNodeState.StartTaskFailed:
return "starttaskfailed";
case ComputeNodeState.Unknown:
@@ -155,7 +155,7 @@ internal static string ToSerializedValue(this ComputeNodeState value)
return ComputeNodeState.Creating;
case "starting":
return ComputeNodeState.Starting;
- case "waitingForStartTask":
+ case "waitingforstarttask":
return ComputeNodeState.WaitingForStartTask;
case "starttaskfailed":
return ComputeNodeState.StartTaskFailed;
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeUpdateUserOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeUpdateUserOptions.cs
index bd3c59ebc585..3583a6df97f4 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeUpdateUserOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeUpdateUserOptions.cs
@@ -62,7 +62,7 @@ public ComputeNodeUpdateUserOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -70,14 +70,14 @@ public ComputeNodeUpdateUserOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -86,7 +86,7 @@ public ComputeNodeUpdateUserOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeUploadBatchServiceLogsHeaders.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeUploadBatchServiceLogsHeaders.cs
new file mode 100644
index 000000000000..0f0bd8044ecb
--- /dev/null
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeUploadBatchServiceLogsHeaders.cs
@@ -0,0 +1,77 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Batch.Protocol.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Defines headers for UploadBatchServiceLogs operation.
+ ///
+ public partial class ComputeNodeUploadBatchServiceLogsHeaders
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ComputeNodeUploadBatchServiceLogsHeaders class.
+ ///
+ public ComputeNodeUploadBatchServiceLogsHeaders()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ComputeNodeUploadBatchServiceLogsHeaders class.
+ ///
+ /// The client-request-id provided by the
+ /// client during the request. This will be returned only if the
+ /// return-client-request-id parameter was set to true.
+ /// A unique identifier for the request that
+ /// was made to the Batch service. If a request is consistently failing
+ /// and you have verified that the request is properly formulated, you
+ /// may use this value to report the error to Microsoft. In your
+ /// report, include the value of this request ID, the approximate time
+ /// that the request was made, the Batch account against which the
+ /// request was made, and the region that account resides in.
+ public ComputeNodeUploadBatchServiceLogsHeaders(System.Guid? clientRequestId = default(System.Guid?), System.Guid? requestId = default(System.Guid?))
+ {
+ ClientRequestId = clientRequestId;
+ RequestId = requestId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the client-request-id provided by the client during
+ /// the request. This will be returned only if the
+ /// return-client-request-id parameter was set to true.
+ ///
+ [JsonProperty(PropertyName = "client-request-id")]
+ public System.Guid? ClientRequestId { get; set; }
+
+ ///
+ /// Gets or sets a unique identifier for the request that was made to
+ /// the Batch service. If a request is consistently failing and you
+ /// have verified that the request is properly formulated, you may use
+ /// this value to report the error to Microsoft. In your report,
+ /// include the value of this request ID, the approximate time that the
+ /// request was made, the Batch account against which the request was
+ /// made, and the region that account resides in.
+ ///
+ [JsonProperty(PropertyName = "request-id")]
+ public System.Guid? RequestId { get; set; }
+
+ }
+}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeUploadBatchServiceLogsOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeUploadBatchServiceLogsOptions.cs
new file mode 100644
index 000000000000..f60178f688bd
--- /dev/null
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ComputeNodeUploadBatchServiceLogsOptions.cs
@@ -0,0 +1,93 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Batch.Protocol.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Additional parameters for UploadBatchServiceLogs operation.
+ ///
+ public partial class ComputeNodeUploadBatchServiceLogsOptions
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ComputeNodeUploadBatchServiceLogsOptions class.
+ ///
+ public ComputeNodeUploadBatchServiceLogsOptions()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ComputeNodeUploadBatchServiceLogsOptions class.
+ ///
+ /// The maximum time that the server can spend
+ /// processing the request, in seconds. The default is 30
+ /// seconds.
+ /// The caller-generated request
+ /// identity, in the form of a GUID with no decoration such as curly
+ /// braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
+ /// Whether the server should
+ /// return the client-request-id in the response.
+ /// The time the request was issued. Client
+ /// libraries typically set this to the current system clock time; set
+ /// it explicitly if you are calling the REST API directly.
+ public ComputeNodeUploadBatchServiceLogsOptions(int? timeout = default(int?), System.Guid? clientRequestId = default(System.Guid?), bool? returnClientRequestId = default(bool?), System.DateTime? ocpDate = default(System.DateTime?))
+ {
+ Timeout = timeout;
+ ClientRequestId = clientRequestId;
+ ReturnClientRequestId = returnClientRequestId;
+ OcpDate = ocpDate;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the maximum time that the server can spend processing
+ /// the request, in seconds. The default is 30 seconds.
+ ///
+ [Newtonsoft.Json.JsonIgnore]
+ public int? Timeout { get; set; }
+
+ ///
+ /// Gets or sets the caller-generated request identity, in the form of
+ /// a GUID with no decoration such as curly braces, e.g.
+ /// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
+ ///
+ [Newtonsoft.Json.JsonIgnore]
+ public System.Guid? ClientRequestId { get; set; }
+
+ ///
+ /// Gets or sets whether the server should return the client-request-id
+ /// in the response.
+ ///
+ [Newtonsoft.Json.JsonIgnore]
+ public bool? ReturnClientRequestId { get; set; }
+
+ ///
+ /// Gets or sets the time the request was issued. Client libraries
+ /// typically set this to the current system clock time; set it
+ /// explicitly if you are calling the REST API directly.
+ ///
+ [JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
+ [Newtonsoft.Json.JsonIgnore]
+ public System.DateTime? OcpDate { get; set; }
+
+ }
+}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ExitOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ExitOptions.cs
index 44eae07a7a09..0184422e799e 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ExitOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/ExitOptions.cs
@@ -55,7 +55,7 @@ public ExitOptions()
///
///
/// The default is none for exit code 0 and terminate for all other
- /// exit conditions. If the job's onTaskFailed property is noAction,
+ /// exit conditions. If the job's onTaskFailed property is noaction,
/// then specifying this property returns an error and the add task
/// request fails with an invalid property value error; if you are
/// calling the REST API directly, the HTTP status code is 400 (Bad
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileDeleteFromComputeNodeOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileDeleteFromComputeNodeOptions.cs
index 28951185f109..589416364b20 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileDeleteFromComputeNodeOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileDeleteFromComputeNodeOptions.cs
@@ -62,7 +62,7 @@ public FileDeleteFromComputeNodeOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -70,14 +70,14 @@ public FileDeleteFromComputeNodeOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -86,7 +86,7 @@ public FileDeleteFromComputeNodeOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileDeleteFromTaskOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileDeleteFromTaskOptions.cs
index bfd02e7bb688..da21be55d391 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileDeleteFromTaskOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileDeleteFromTaskOptions.cs
@@ -60,7 +60,7 @@ public FileDeleteFromTaskOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -68,14 +68,14 @@ public FileDeleteFromTaskOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -84,7 +84,7 @@ public FileDeleteFromTaskOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileGetFromComputeNodeOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileGetFromComputeNodeOptions.cs
index 5d89dc667704..8b8c867dd2d8 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileGetFromComputeNodeOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileGetFromComputeNodeOptions.cs
@@ -76,7 +76,7 @@ public FileGetFromComputeNodeOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -84,14 +84,14 @@ public FileGetFromComputeNodeOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -100,14 +100,14 @@ public FileGetFromComputeNodeOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
/// Gets or sets the byte range to be retrieved. The default is to
/// retrieve the entire file. The format is bytes=startRange-endRange.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string OcpRange { get; set; }
///
@@ -117,7 +117,7 @@ public FileGetFromComputeNodeOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -127,7 +127,7 @@ public FileGetFromComputeNodeOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileGetFromTaskOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileGetFromTaskOptions.cs
index 92384499d176..4143845ea97f 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileGetFromTaskOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileGetFromTaskOptions.cs
@@ -74,7 +74,7 @@ public FileGetFromTaskOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -82,14 +82,14 @@ public FileGetFromTaskOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -98,14 +98,14 @@ public FileGetFromTaskOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
/// Gets or sets the byte range to be retrieved. The default is to
/// retrieve the entire file. The format is bytes=startRange-endRange.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string OcpRange { get; set; }
///
@@ -115,7 +115,7 @@ public FileGetFromTaskOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -125,7 +125,7 @@ public FileGetFromTaskOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileGetPropertiesFromComputeNodeOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileGetPropertiesFromComputeNodeOptions.cs
index 806c025302b9..ba1567ea12d9 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileGetPropertiesFromComputeNodeOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileGetPropertiesFromComputeNodeOptions.cs
@@ -72,7 +72,7 @@ public FileGetPropertiesFromComputeNodeOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -80,14 +80,14 @@ public FileGetPropertiesFromComputeNodeOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -96,7 +96,7 @@ public FileGetPropertiesFromComputeNodeOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -106,7 +106,7 @@ public FileGetPropertiesFromComputeNodeOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -116,7 +116,7 @@ public FileGetPropertiesFromComputeNodeOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileGetPropertiesFromTaskOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileGetPropertiesFromTaskOptions.cs
index c550118341c2..a4453838ee57 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileGetPropertiesFromTaskOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileGetPropertiesFromTaskOptions.cs
@@ -72,7 +72,7 @@ public FileGetPropertiesFromTaskOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -80,14 +80,14 @@ public FileGetPropertiesFromTaskOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -96,7 +96,7 @@ public FileGetPropertiesFromTaskOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -106,7 +106,7 @@ public FileGetPropertiesFromTaskOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -116,7 +116,7 @@ public FileGetPropertiesFromTaskOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileListFromComputeNodeNextOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileListFromComputeNodeNextOptions.cs
index 1b27c2927900..970d947f5269 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileListFromComputeNodeNextOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileListFromComputeNodeNextOptions.cs
@@ -59,14 +59,14 @@ public FileListFromComputeNodeNextOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -75,7 +75,7 @@ public FileListFromComputeNodeNextOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileListFromComputeNodeOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileListFromComputeNodeOptions.cs
index 96aa6168e956..7ef69bbe557a 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileListFromComputeNodeOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileListFromComputeNodeOptions.cs
@@ -70,21 +70,21 @@ public FileListFromComputeNodeOptions()
/// constructing this filter, see
/// https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Filter { get; set; }
///
/// Gets or sets the maximum number of items to return in the response.
/// A maximum of 1000 files can be returned.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? MaxResults { get; set; }
///
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -92,14 +92,14 @@ public FileListFromComputeNodeOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -108,7 +108,7 @@ public FileListFromComputeNodeOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileListFromTaskNextOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileListFromTaskNextOptions.cs
index 0d2646af33d1..9f5d3e4e7806 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileListFromTaskNextOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileListFromTaskNextOptions.cs
@@ -59,14 +59,14 @@ public FileListFromTaskNextOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -75,7 +75,7 @@ public FileListFromTaskNextOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileListFromTaskOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileListFromTaskOptions.cs
index 9d369ac9fff0..8ccd82e221d4 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileListFromTaskOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/FileListFromTaskOptions.cs
@@ -68,21 +68,21 @@ public FileListFromTaskOptions()
/// constructing this filter, see
/// https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-task-files.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Filter { get; set; }
///
/// Gets or sets the maximum number of items to return in the response.
/// A maximum of 1000 files can be returned.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? MaxResults { get; set; }
///
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -90,14 +90,14 @@ public FileListFromTaskOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -106,7 +106,7 @@ public FileListFromTaskOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobAddOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobAddOptions.cs
index d5540cfde2e8..d06aa9fc9854 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobAddOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobAddOptions.cs
@@ -60,7 +60,7 @@ public JobAddOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -68,14 +68,14 @@ public JobAddOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -84,7 +84,7 @@ public JobAddOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobAddParameter.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobAddParameter.cs
index b2aab1a178af..3e5e26306048 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobAddParameter.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobAddParameter.cs
@@ -198,9 +198,9 @@ public JobAddParameter()
/// complete. This option is therefore most commonly used with a Job
/// Manager task; if you want to use automatic job termination without
/// a Job Manager, you should initially set onAllTasksComplete to
- /// noAction and update the job properties to set onAllTasksComplete to
- /// terminateJob once you have finished adding tasks. The default is
- /// noAction. Possible values include: 'noAction', 'terminateJob'
+ /// noaction and update the job properties to set onAllTasksComplete to
+ /// terminatejob once you have finished adding tasks. The default is
+ /// noaction. Possible values include: 'noAction', 'terminateJob'
///
[JsonProperty(PropertyName = "onAllTasksComplete")]
public OnAllTasksComplete? OnAllTasksComplete { get; set; }
@@ -214,7 +214,7 @@ public JobAddParameter()
/// failureInfo is set if the task completes with a non-zero exit code
/// after exhausting its retry count, or if there was an error starting
/// the task, for example due to a resource file download error. The
- /// default is noAction. Possible values include: 'noAction',
+ /// default is noaction. Possible values include: 'noAction',
/// 'performExitOptionsJobAction'
///
[JsonProperty(PropertyName = "onTaskFailure")]
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobDeleteOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobDeleteOptions.cs
index 9f2e25afaad7..b3953c8afe17 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobDeleteOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobDeleteOptions.cs
@@ -80,7 +80,7 @@ public JobDeleteOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public JobDeleteOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public JobDeleteOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public JobDeleteOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public JobDeleteOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public JobDeleteOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public JobDeleteOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobDisableOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobDisableOptions.cs
index 8fc49d0c4598..2d73f65d7524 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobDisableOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobDisableOptions.cs
@@ -80,7 +80,7 @@ public JobDisableOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public JobDisableOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public JobDisableOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public JobDisableOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public JobDisableOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public JobDisableOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public JobDisableOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobEnableOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobEnableOptions.cs
index 16a41c671640..4959164684f2 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobEnableOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobEnableOptions.cs
@@ -80,7 +80,7 @@ public JobEnableOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public JobEnableOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public JobEnableOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public JobEnableOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public JobEnableOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public JobEnableOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public JobEnableOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobExecutionInformation.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobExecutionInformation.cs
index a6c23d7d28a1..ce9ef971aff7 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobExecutionInformation.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobExecutionInformation.cs
@@ -107,10 +107,10 @@ public JobExecutionInformation()
/// job reached its maxWallClockTime constraint. TerminateJobSchedule -
/// the job ran as part of a schedule, and the schedule terminated.
/// AllTasksComplete - the job's onAllTasksComplete attribute is set to
- /// terminateJob, and all tasks in the job are complete. TaskFailed -
+ /// terminatejob, and all tasks in the job are complete. TaskFailed -
/// the job's onTaskFailure attribute is set to
/// performExitOptionsJobAction, and a task in the job failed with an
- /// exit condition that specified a jobAction of terminateJob. Any
+ /// exit condition that specified a jobAction of terminatejob. Any
/// other string is a user-defined reason specified in a call to the
/// 'Terminate a job' operation.
///
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobGetAllLifetimeStatisticsOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobGetAllLifetimeStatisticsOptions.cs
index bc2521d596b6..7c01211f13b5 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobGetAllLifetimeStatisticsOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobGetAllLifetimeStatisticsOptions.cs
@@ -62,7 +62,7 @@ public JobGetAllLifetimeStatisticsOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -70,14 +70,14 @@ public JobGetAllLifetimeStatisticsOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -86,7 +86,7 @@ public JobGetAllLifetimeStatisticsOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobGetOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobGetOptions.cs
index 1ef742d9afb4..2365a0ac862c 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobGetOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobGetOptions.cs
@@ -83,20 +83,20 @@ public JobGetOptions()
///
/// Gets or sets an OData $select clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Select { get; set; }
///
/// Gets or sets an OData $expand clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Expand { get; set; }
///
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -104,14 +104,14 @@ public JobGetOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -120,7 +120,7 @@ public JobGetOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -129,7 +129,7 @@ public JobGetOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -138,7 +138,7 @@ public JobGetOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -148,7 +148,7 @@ public JobGetOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -158,7 +158,7 @@ public JobGetOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobGetTaskCountsOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobGetTaskCountsOptions.cs
index 1f0aecffeb40..0cf2dbc6b6e2 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobGetTaskCountsOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobGetTaskCountsOptions.cs
@@ -60,7 +60,7 @@ public JobGetTaskCountsOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -68,14 +68,14 @@ public JobGetTaskCountsOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -84,7 +84,7 @@ public JobGetTaskCountsOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListFromJobScheduleNextOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListFromJobScheduleNextOptions.cs
index 7de5847b420f..006c7227fa17 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListFromJobScheduleNextOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListFromJobScheduleNextOptions.cs
@@ -59,14 +59,14 @@ public JobListFromJobScheduleNextOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -75,7 +75,7 @@ public JobListFromJobScheduleNextOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListFromJobScheduleOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListFromJobScheduleOptions.cs
index 26c0fd670b35..30672477ce96 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListFromJobScheduleOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListFromJobScheduleOptions.cs
@@ -74,33 +74,33 @@ public JobListFromJobScheduleOptions()
/// constructing this filter, see
/// https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Filter { get; set; }
///
/// Gets or sets an OData $select clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Select { get; set; }
///
/// Gets or sets an OData $expand clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Expand { get; set; }
///
/// Gets or sets the maximum number of items to return in the response.
/// A maximum of 1000 jobs can be returned.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? MaxResults { get; set; }
///
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -108,14 +108,14 @@ public JobListFromJobScheduleOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -124,7 +124,7 @@ public JobListFromJobScheduleOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListNextOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListNextOptions.cs
index d67bc2f39a5d..823c89a62c57 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListNextOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListNextOptions.cs
@@ -57,14 +57,14 @@ public JobListNextOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -73,7 +73,7 @@ public JobListNextOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListOptions.cs
index c456b1405a41..7f85af06c1f8 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListOptions.cs
@@ -72,33 +72,33 @@ public JobListOptions()
/// constructing this filter, see
/// https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Filter { get; set; }
///
/// Gets or sets an OData $select clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Select { get; set; }
///
/// Gets or sets an OData $expand clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Expand { get; set; }
///
/// Gets or sets the maximum number of items to return in the response.
/// A maximum of 1000 jobs can be returned.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? MaxResults { get; set; }
///
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -106,14 +106,14 @@ public JobListOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -122,7 +122,7 @@ public JobListOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListPreparationAndReleaseTaskStatusNextOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListPreparationAndReleaseTaskStatusNextOptions.cs
index e992a677d90d..7644a1d03a48 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListPreparationAndReleaseTaskStatusNextOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListPreparationAndReleaseTaskStatusNextOptions.cs
@@ -60,14 +60,14 @@ public JobListPreparationAndReleaseTaskStatusNextOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -76,7 +76,7 @@ public JobListPreparationAndReleaseTaskStatusNextOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListPreparationAndReleaseTaskStatusOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListPreparationAndReleaseTaskStatusOptions.cs
index 9318a682e076..477da9f0b380 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListPreparationAndReleaseTaskStatusOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobListPreparationAndReleaseTaskStatusOptions.cs
@@ -73,27 +73,27 @@ public JobListPreparationAndReleaseTaskStatusOptions()
/// constructing this filter, see
/// https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Filter { get; set; }
///
/// Gets or sets an OData $select clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Select { get; set; }
///
/// Gets or sets the maximum number of items to return in the response.
/// A maximum of 1000 tasks can be returned.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? MaxResults { get; set; }
///
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -101,14 +101,14 @@ public JobListPreparationAndReleaseTaskStatusOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -117,7 +117,7 @@ public JobListPreparationAndReleaseTaskStatusOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobPatchOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobPatchOptions.cs
index 64b4c962a560..c30ea762b86e 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobPatchOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobPatchOptions.cs
@@ -80,7 +80,7 @@ public JobPatchOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public JobPatchOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public JobPatchOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public JobPatchOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public JobPatchOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public JobPatchOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public JobPatchOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobPatchParameter.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobPatchParameter.cs
index fe584e1df638..5a8bbb40fb23 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobPatchParameter.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobPatchParameter.cs
@@ -73,7 +73,7 @@ public JobPatchParameter()
///
///
/// If omitted, the completion behavior is left unchanged. You may not
- /// change the value from terminateJob to noAction - that is, once you
+ /// change the value from terminatejob to noaction - that is, once you
/// have engaged automatic job termination, you cannot turn it off
/// again. If you try to do this, the request fails with an 'invalid
/// property value' error response; if you are calling the REST API
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleAddOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleAddOptions.cs
index 912f2152867b..dd9d4d209a0a 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleAddOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleAddOptions.cs
@@ -60,7 +60,7 @@ public JobScheduleAddOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -68,14 +68,14 @@ public JobScheduleAddOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -84,7 +84,7 @@ public JobScheduleAddOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleDeleteOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleDeleteOptions.cs
index f2b153298738..f0c5ffe73389 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleDeleteOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleDeleteOptions.cs
@@ -80,7 +80,7 @@ public JobScheduleDeleteOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public JobScheduleDeleteOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public JobScheduleDeleteOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public JobScheduleDeleteOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public JobScheduleDeleteOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public JobScheduleDeleteOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public JobScheduleDeleteOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleDisableOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleDisableOptions.cs
index 7807af06a590..97a434f45c59 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleDisableOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleDisableOptions.cs
@@ -80,7 +80,7 @@ public JobScheduleDisableOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public JobScheduleDisableOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public JobScheduleDisableOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public JobScheduleDisableOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public JobScheduleDisableOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public JobScheduleDisableOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public JobScheduleDisableOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleEnableOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleEnableOptions.cs
index 951e42940098..951a2044beb9 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleEnableOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleEnableOptions.cs
@@ -80,7 +80,7 @@ public JobScheduleEnableOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public JobScheduleEnableOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public JobScheduleEnableOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public JobScheduleEnableOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public JobScheduleEnableOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public JobScheduleEnableOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public JobScheduleEnableOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleExistsOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleExistsOptions.cs
index fd00abb655d4..0b5335c01a67 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleExistsOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleExistsOptions.cs
@@ -80,7 +80,7 @@ public JobScheduleExistsOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public JobScheduleExistsOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public JobScheduleExistsOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public JobScheduleExistsOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public JobScheduleExistsOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public JobScheduleExistsOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public JobScheduleExistsOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleGetOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleGetOptions.cs
index ac7fe13196d8..ac15aa359bf5 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleGetOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleGetOptions.cs
@@ -83,20 +83,20 @@ public JobScheduleGetOptions()
///
/// Gets or sets an OData $select clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Select { get; set; }
///
/// Gets or sets an OData $expand clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Expand { get; set; }
///
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -104,14 +104,14 @@ public JobScheduleGetOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -120,7 +120,7 @@ public JobScheduleGetOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -129,7 +129,7 @@ public JobScheduleGetOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -138,7 +138,7 @@ public JobScheduleGetOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -148,7 +148,7 @@ public JobScheduleGetOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -158,7 +158,7 @@ public JobScheduleGetOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleListNextOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleListNextOptions.cs
index 167006155b3f..8520ce44dc4f 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleListNextOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleListNextOptions.cs
@@ -57,14 +57,14 @@ public JobScheduleListNextOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -73,7 +73,7 @@ public JobScheduleListNextOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleListOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleListOptions.cs
index 011e211127df..fb4b7f084dfc 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleListOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleListOptions.cs
@@ -73,33 +73,33 @@ public JobScheduleListOptions()
/// constructing this filter, see
/// https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-schedules.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Filter { get; set; }
///
/// Gets or sets an OData $select clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Select { get; set; }
///
/// Gets or sets an OData $expand clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Expand { get; set; }
///
/// Gets or sets the maximum number of items to return in the response.
/// A maximum of 1000 job schedules can be returned.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? MaxResults { get; set; }
///
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -107,14 +107,14 @@ public JobScheduleListOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -123,7 +123,7 @@ public JobScheduleListOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobSchedulePatchOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobSchedulePatchOptions.cs
index 92680b25860c..6e1243a6e531 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobSchedulePatchOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobSchedulePatchOptions.cs
@@ -80,7 +80,7 @@ public JobSchedulePatchOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public JobSchedulePatchOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public JobSchedulePatchOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public JobSchedulePatchOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public JobSchedulePatchOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public JobSchedulePatchOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public JobSchedulePatchOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleTerminateOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleTerminateOptions.cs
index 1c7e7947fed6..62f0a621f448 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleTerminateOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleTerminateOptions.cs
@@ -82,7 +82,7 @@ public JobScheduleTerminateOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -90,14 +90,14 @@ public JobScheduleTerminateOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -106,7 +106,7 @@ public JobScheduleTerminateOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -115,7 +115,7 @@ public JobScheduleTerminateOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -124,7 +124,7 @@ public JobScheduleTerminateOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -134,7 +134,7 @@ public JobScheduleTerminateOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -144,7 +144,7 @@ public JobScheduleTerminateOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleUpdateOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleUpdateOptions.cs
index 53fe13f36e33..27efb49d0e8e 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleUpdateOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobScheduleUpdateOptions.cs
@@ -80,7 +80,7 @@ public JobScheduleUpdateOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public JobScheduleUpdateOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public JobScheduleUpdateOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public JobScheduleUpdateOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public JobScheduleUpdateOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public JobScheduleUpdateOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public JobScheduleUpdateOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobSpecification.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobSpecification.cs
index 93d060d0d0c8..443c496ad4a2 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobSpecification.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobSpecification.cs
@@ -127,9 +127,9 @@ public JobSpecification()
/// complete. This option is therefore most commonly used with a Job
/// Manager task; if you want to use automatic job termination without
/// a Job Manager, you should initially set onAllTasksComplete to
- /// noAction and update the job properties to set onAllTasksComplete to
- /// terminateJob once you have finished adding tasks. The default is
- /// noAction. Possible values include: 'noAction', 'terminateJob'
+ /// noaction and update the job properties to set onAllTasksComplete to
+ /// terminatejob once you have finished adding tasks. The default is
+ /// noaction. Possible values include: 'noAction', 'terminateJob'
///
[JsonProperty(PropertyName = "onAllTasksComplete")]
public OnAllTasksComplete? OnAllTasksComplete { get; set; }
@@ -143,7 +143,7 @@ public JobSpecification()
/// task, for example due to a resource file download error.
///
///
- /// The default is noAction. Possible values include: 'noAction',
+ /// The default is noaction. Possible values include: 'noAction',
/// 'performExitOptionsJobAction'
///
[JsonProperty(PropertyName = "onTaskFailure")]
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobTerminateOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobTerminateOptions.cs
index 69f9ea31b135..d9fc220b0f4c 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobTerminateOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobTerminateOptions.cs
@@ -80,7 +80,7 @@ public JobTerminateOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public JobTerminateOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public JobTerminateOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public JobTerminateOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public JobTerminateOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public JobTerminateOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public JobTerminateOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobUpdateOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobUpdateOptions.cs
index 61076e48538d..87aef15220d9 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobUpdateOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobUpdateOptions.cs
@@ -80,7 +80,7 @@ public JobUpdateOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public JobUpdateOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public JobUpdateOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public JobUpdateOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public JobUpdateOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public JobUpdateOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public JobUpdateOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobUpdateParameter.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobUpdateParameter.cs
index f45b3306fc02..774cc57af242 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobUpdateParameter.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobUpdateParameter.cs
@@ -109,10 +109,10 @@ public JobUpdateParameter()
/// tasks in the job are in the completed state.
///
///
- /// If omitted, the completion behavior is set to noAction. If the
- /// current value is terminateJob, this is an error because a job's
- /// completion behavior may not be changed from terminateJob to
- /// noAction. You may not change the value from terminatejob to
+ /// If omitted, the completion behavior is set to noaction. If the
+ /// current value is terminatejob, this is an error because a job's
+ /// completion behavior may not be changed from terminatejob to
+ /// noaction. You may not change the value from terminatejob to
/// noaction - that is, once you have engaged automatic job
/// termination, you cannot turn it off again. If you try to do this,
/// the request fails and Batch returns status code 400 (Bad Request)
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/NodeCounts.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/NodeCounts.cs
new file mode 100644
index 000000000000..7f956690d3e5
--- /dev/null
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/NodeCounts.cs
@@ -0,0 +1,168 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Batch.Protocol.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The number of nodes in each node state.
+ ///
+ public partial class NodeCounts
+ {
+ ///
+ /// Initializes a new instance of the NodeCounts class.
+ ///
+ public NodeCounts()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the NodeCounts class.
+ ///
+ /// The number of nodes in the creating
+ /// state.
+ /// The number of nodes in the idle state.
+ /// The number of nodes in the offline
+ /// state.
+ /// The number of nodes in the preempted
+ /// state.
+ /// The count of nodes in the rebooting
+ /// state.
+ /// The number of nodes in the reimaging
+ /// state.
+ /// The number of nodes in the running
+ /// state.
+ /// The number of nodes in the starting
+ /// state.
+ /// The number of nodes in the
+ /// startTaskFailed state.
+ /// The number of nodes in the unknown
+ /// state.
+ /// The number of nodes in the unusable
+ /// state.
+ /// The number of nodes in the
+ /// waitingForStartTask state.
+ /// The total number of nodes.
+ public NodeCounts(int creating, int idle, int offline, int preempted, int rebooting, int reimaging, int running, int starting, int startTaskFailed, int unknown, int unusable, int waitingForStartTask, int total)
+ {
+ Creating = creating;
+ Idle = idle;
+ Offline = offline;
+ Preempted = preempted;
+ Rebooting = rebooting;
+ Reimaging = reimaging;
+ Running = running;
+ Starting = starting;
+ StartTaskFailed = startTaskFailed;
+ Unknown = unknown;
+ Unusable = unusable;
+ WaitingForStartTask = waitingForStartTask;
+ Total = total;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the number of nodes in the creating state.
+ ///
+ [JsonProperty(PropertyName = "creating")]
+ public int Creating { get; set; }
+
+ ///
+ /// Gets or sets the number of nodes in the idle state.
+ ///
+ [JsonProperty(PropertyName = "idle")]
+ public int Idle { get; set; }
+
+ ///
+ /// Gets or sets the number of nodes in the offline state.
+ ///
+ [JsonProperty(PropertyName = "offline")]
+ public int Offline { get; set; }
+
+ ///
+ /// Gets or sets the number of nodes in the preempted state.
+ ///
+ [JsonProperty(PropertyName = "preempted")]
+ public int Preempted { get; set; }
+
+ ///
+ /// Gets or sets the count of nodes in the rebooting state.
+ ///
+ [JsonProperty(PropertyName = "rebooting")]
+ public int Rebooting { get; set; }
+
+ ///
+ /// Gets or sets the number of nodes in the reimaging state.
+ ///
+ [JsonProperty(PropertyName = "reimaging")]
+ public int Reimaging { get; set; }
+
+ ///
+ /// Gets or sets the number of nodes in the running state.
+ ///
+ [JsonProperty(PropertyName = "running")]
+ public int Running { get; set; }
+
+ ///
+ /// Gets or sets the number of nodes in the starting state.
+ ///
+ [JsonProperty(PropertyName = "starting")]
+ public int Starting { get; set; }
+
+ ///
+ /// Gets or sets the number of nodes in the startTaskFailed state.
+ ///
+ [JsonProperty(PropertyName = "startTaskFailed")]
+ public int StartTaskFailed { get; set; }
+
+ ///
+ /// Gets or sets the number of nodes in the unknown state.
+ ///
+ [JsonProperty(PropertyName = "unknown")]
+ public int Unknown { get; set; }
+
+ ///
+ /// Gets or sets the number of nodes in the unusable state.
+ ///
+ [JsonProperty(PropertyName = "unusable")]
+ public int Unusable { get; set; }
+
+ ///
+ /// Gets or sets the number of nodes in the waitingForStartTask state.
+ ///
+ [JsonProperty(PropertyName = "waitingForStartTask")]
+ public int WaitingForStartTask { get; set; }
+
+ ///
+ /// Gets or sets the total number of nodes.
+ ///
+ [JsonProperty(PropertyName = "total")]
+ public int Total { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ //Nothing to validate
+ }
+ }
+}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/OutputFileUploadOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/OutputFileUploadOptions.cs
index 04f1faa29a25..f2b27409e78a 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/OutputFileUploadOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/OutputFileUploadOptions.cs
@@ -48,7 +48,7 @@ public OutputFileUploadOptions(OutputFileUploadCondition uploadCondition)
/// of files should be uploaded.
///
///
- /// The default is taskCompletion. Possible values include:
+ /// The default is taskcompletion. Possible values include:
/// 'taskSuccess', 'taskFailure', 'taskCompletion'
///
[JsonProperty(PropertyName = "uploadCondition")]
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolAddOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolAddOptions.cs
index 8260929d1415..f2300a353d3a 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolAddOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolAddOptions.cs
@@ -60,7 +60,7 @@ public PoolAddOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -68,14 +68,14 @@ public PoolAddOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -84,7 +84,7 @@ public PoolAddOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolDeleteOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolDeleteOptions.cs
index 0a9bedd943a0..9a641e2bcc5d 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolDeleteOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolDeleteOptions.cs
@@ -80,7 +80,7 @@ public PoolDeleteOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public PoolDeleteOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public PoolDeleteOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public PoolDeleteOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public PoolDeleteOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public PoolDeleteOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public PoolDeleteOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolDisableAutoScaleOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolDisableAutoScaleOptions.cs
index 051640c1c987..a7eb996b8f62 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolDisableAutoScaleOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolDisableAutoScaleOptions.cs
@@ -62,7 +62,7 @@ public PoolDisableAutoScaleOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -70,14 +70,14 @@ public PoolDisableAutoScaleOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -86,7 +86,7 @@ public PoolDisableAutoScaleOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolEnableAutoScaleOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolEnableAutoScaleOptions.cs
index 48701855c279..e3464a78eaa0 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolEnableAutoScaleOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolEnableAutoScaleOptions.cs
@@ -80,7 +80,7 @@ public PoolEnableAutoScaleOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public PoolEnableAutoScaleOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public PoolEnableAutoScaleOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public PoolEnableAutoScaleOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public PoolEnableAutoScaleOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public PoolEnableAutoScaleOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public PoolEnableAutoScaleOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolEvaluateAutoScaleOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolEvaluateAutoScaleOptions.cs
index 8c9d97e03e37..5cee6b08dcd3 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolEvaluateAutoScaleOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolEvaluateAutoScaleOptions.cs
@@ -62,7 +62,7 @@ public PoolEvaluateAutoScaleOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -70,14 +70,14 @@ public PoolEvaluateAutoScaleOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -86,7 +86,7 @@ public PoolEvaluateAutoScaleOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolExistsOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolExistsOptions.cs
index e3d0a85c1531..ccb8bffbbea0 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolExistsOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolExistsOptions.cs
@@ -80,7 +80,7 @@ public PoolExistsOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public PoolExistsOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public PoolExistsOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public PoolExistsOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public PoolExistsOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public PoolExistsOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public PoolExistsOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolGetAllLifetimeStatisticsOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolGetAllLifetimeStatisticsOptions.cs
index 09feb96d8faa..3f87cbec5258 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolGetAllLifetimeStatisticsOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolGetAllLifetimeStatisticsOptions.cs
@@ -62,7 +62,7 @@ public PoolGetAllLifetimeStatisticsOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -70,14 +70,14 @@ public PoolGetAllLifetimeStatisticsOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -86,7 +86,7 @@ public PoolGetAllLifetimeStatisticsOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolGetOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolGetOptions.cs
index f0916a215228..4032d3e4eeac 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolGetOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolGetOptions.cs
@@ -83,20 +83,20 @@ public PoolGetOptions()
///
/// Gets or sets an OData $select clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Select { get; set; }
///
/// Gets or sets an OData $expand clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Expand { get; set; }
///
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -104,14 +104,14 @@ public PoolGetOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -120,7 +120,7 @@ public PoolGetOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -129,7 +129,7 @@ public PoolGetOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -138,7 +138,7 @@ public PoolGetOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -148,7 +148,7 @@ public PoolGetOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -158,7 +158,7 @@ public PoolGetOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolListNextOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolListNextOptions.cs
index 2fbc36c07015..ca300142b0fe 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolListNextOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolListNextOptions.cs
@@ -57,14 +57,14 @@ public PoolListNextOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -73,7 +73,7 @@ public PoolListNextOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolListOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolListOptions.cs
index 79563ebbc997..61a27d4ce342 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolListOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolListOptions.cs
@@ -72,33 +72,33 @@ public PoolListOptions()
/// constructing this filter, see
/// https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-pools.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Filter { get; set; }
///
/// Gets or sets an OData $select clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Select { get; set; }
///
/// Gets or sets an OData $expand clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Expand { get; set; }
///
/// Gets or sets the maximum number of items to return in the response.
/// A maximum of 1000 pools can be returned.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? MaxResults { get; set; }
///
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -106,14 +106,14 @@ public PoolListOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -122,7 +122,7 @@ public PoolListOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolListUsageMetricsNextOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolListUsageMetricsNextOptions.cs
index 2199edf2df4c..687f18e75884 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolListUsageMetricsNextOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolListUsageMetricsNextOptions.cs
@@ -59,14 +59,14 @@ public PoolListUsageMetricsNextOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -75,7 +75,7 @@ public PoolListUsageMetricsNextOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolListUsageMetricsOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolListUsageMetricsOptions.cs
index c39d03278d18..f8a4dadf02b5 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolListUsageMetricsOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolListUsageMetricsOptions.cs
@@ -81,7 +81,7 @@ public PoolListUsageMetricsOptions()
/// not specified this defaults to the start time of the last
/// aggregation interval currently available.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? StartTime { get; set; }
///
@@ -90,7 +90,7 @@ public PoolListUsageMetricsOptions()
/// specified this defaults to the end time of the last aggregation
/// interval currently available.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? EndTime { get; set; }
///
@@ -98,21 +98,21 @@ public PoolListUsageMetricsOptions()
/// constructing this filter, see
/// https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Filter { get; set; }
///
/// Gets or sets the maximum number of items to return in the response.
/// A maximum of 1000 results will be returned.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? MaxResults { get; set; }
///
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -120,14 +120,14 @@ public PoolListUsageMetricsOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -136,7 +136,7 @@ public PoolListUsageMetricsOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolNodeCounts.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolNodeCounts.cs
new file mode 100644
index 000000000000..31c62e3263c1
--- /dev/null
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolNodeCounts.cs
@@ -0,0 +1,91 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Batch.Protocol.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The number of nodes in each state for a pool.
+ ///
+ public partial class PoolNodeCounts
+ {
+ ///
+ /// Initializes a new instance of the PoolNodeCounts class.
+ ///
+ public PoolNodeCounts()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PoolNodeCounts class.
+ ///
+ /// The ID of the pool.
+ /// The number of dedicated nodes in each
+ /// state.
+ /// The number of low priority nodes in each
+ /// state.
+ public PoolNodeCounts(string poolId, NodeCounts dedicated = default(NodeCounts), NodeCounts lowPriority = default(NodeCounts))
+ {
+ PoolId = poolId;
+ Dedicated = dedicated;
+ LowPriority = lowPriority;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the ID of the pool.
+ ///
+ [JsonProperty(PropertyName = "poolId")]
+ public string PoolId { get; set; }
+
+ ///
+ /// Gets or sets the number of dedicated nodes in each state.
+ ///
+ [JsonProperty(PropertyName = "dedicated")]
+ public NodeCounts Dedicated { get; set; }
+
+ ///
+ /// Gets or sets the number of low priority nodes in each state.
+ ///
+ [JsonProperty(PropertyName = "lowPriority")]
+ public NodeCounts LowPriority { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (PoolId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "PoolId");
+ }
+ if (Dedicated != null)
+ {
+ Dedicated.Validate();
+ }
+ if (LowPriority != null)
+ {
+ LowPriority.Validate();
+ }
+ }
+ }
+}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolPatchOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolPatchOptions.cs
index 1c797c0fd3df..36f69af97f9c 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolPatchOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolPatchOptions.cs
@@ -80,7 +80,7 @@ public PoolPatchOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public PoolPatchOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public PoolPatchOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public PoolPatchOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public PoolPatchOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public PoolPatchOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public PoolPatchOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolRemoveNodesOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolRemoveNodesOptions.cs
index 779a857635f2..394ed2ded1ff 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolRemoveNodesOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolRemoveNodesOptions.cs
@@ -80,7 +80,7 @@ public PoolRemoveNodesOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public PoolRemoveNodesOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public PoolRemoveNodesOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public PoolRemoveNodesOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public PoolRemoveNodesOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public PoolRemoveNodesOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public PoolRemoveNodesOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolResizeOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolResizeOptions.cs
index 512de7d7378e..8225aa723e81 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolResizeOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolResizeOptions.cs
@@ -80,7 +80,7 @@ public PoolResizeOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public PoolResizeOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public PoolResizeOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public PoolResizeOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public PoolResizeOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public PoolResizeOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public PoolResizeOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolStopResizeOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolStopResizeOptions.cs
index 14ca409beaaa..7fb35615ced9 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolStopResizeOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolStopResizeOptions.cs
@@ -80,7 +80,7 @@ public PoolStopResizeOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public PoolStopResizeOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public PoolStopResizeOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public PoolStopResizeOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public PoolStopResizeOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public PoolStopResizeOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public PoolStopResizeOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolUpdatePropertiesOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolUpdatePropertiesOptions.cs
index 56386f2fcfb0..9dc92b2ef64e 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolUpdatePropertiesOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolUpdatePropertiesOptions.cs
@@ -62,7 +62,7 @@ public PoolUpdatePropertiesOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -70,14 +70,14 @@ public PoolUpdatePropertiesOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -86,7 +86,7 @@ public PoolUpdatePropertiesOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolUpgradeOSOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolUpgradeOSOptions.cs
index 8dc27c02ae8c..8693fecf50b6 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolUpgradeOSOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolUpgradeOSOptions.cs
@@ -80,7 +80,7 @@ public PoolUpgradeOSOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public PoolUpgradeOSOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public PoolUpgradeOSOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public PoolUpgradeOSOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public PoolUpgradeOSOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public PoolUpgradeOSOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public PoolUpgradeOSOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolUsageMetrics.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolUsageMetrics.cs
index fec272a0842b..721bebc2fabf 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolUsageMetrics.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/PoolUsageMetrics.cs
@@ -87,11 +87,10 @@ public PoolUsageMetrics(string poolId, System.DateTime startTime, System.DateTim
/// pool are the same size.
///
///
- /// For information about available sizes of virtual machines for Cloud
- /// Services pools (pools created with cloudServiceConfiguration), see
- /// Sizes for Cloud Services
- /// (http://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/).
- /// Batch supports all Cloud Services VM sizes except ExtraSmall,
+ /// For information about available sizes of virtual machines in pools,
+ /// see Choose a VM size for compute nodes in an Azure Batch pool
+ /// (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes). Batch
+ /// supports all Cloud Services VM sizes except ExtraSmall,
/// STANDARD_A1_V2 and STANDARD_A2_V2. For information about available
/// VM sizes for pools using images from the Virtual Machines
/// Marketplace (pools created with virtualMachineConfiguration) see
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskAddCollectionOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskAddCollectionOptions.cs
index 0fa656821736..5b9d6603599f 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskAddCollectionOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskAddCollectionOptions.cs
@@ -60,7 +60,7 @@ public TaskAddCollectionOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -68,14 +68,14 @@ public TaskAddCollectionOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -84,7 +84,7 @@ public TaskAddCollectionOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskAddOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskAddOptions.cs
index 783e3cbd82b2..651c15f11949 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskAddOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskAddOptions.cs
@@ -60,7 +60,7 @@ public TaskAddOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -68,14 +68,14 @@ public TaskAddOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -84,7 +84,7 @@ public TaskAddOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskDeleteOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskDeleteOptions.cs
index fe77a34cef7b..adc2d1665007 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskDeleteOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskDeleteOptions.cs
@@ -80,7 +80,7 @@ public TaskDeleteOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public TaskDeleteOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public TaskDeleteOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public TaskDeleteOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public TaskDeleteOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public TaskDeleteOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public TaskDeleteOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskGetOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskGetOptions.cs
index ccfefac3eb70..be4b39c14ad1 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskGetOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskGetOptions.cs
@@ -83,20 +83,20 @@ public TaskGetOptions()
///
/// Gets or sets an OData $select clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Select { get; set; }
///
/// Gets or sets an OData $expand clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Expand { get; set; }
///
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -104,14 +104,14 @@ public TaskGetOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -120,7 +120,7 @@ public TaskGetOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -129,7 +129,7 @@ public TaskGetOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -138,7 +138,7 @@ public TaskGetOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -148,7 +148,7 @@ public TaskGetOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -158,7 +158,7 @@ public TaskGetOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskListNextOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskListNextOptions.cs
index 90b2dcd7cb61..7c21e6210242 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskListNextOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskListNextOptions.cs
@@ -57,14 +57,14 @@ public TaskListNextOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -73,7 +73,7 @@ public TaskListNextOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskListOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskListOptions.cs
index 85e2b721ccb1..6890d06d0e55 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskListOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskListOptions.cs
@@ -72,33 +72,33 @@ public TaskListOptions()
/// constructing this filter, see
/// https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-tasks.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Filter { get; set; }
///
/// Gets or sets an OData $select clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Select { get; set; }
///
/// Gets or sets an OData $expand clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Expand { get; set; }
///
/// Gets or sets the maximum number of items to return in the response.
/// A maximum of 1000 tasks can be returned.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? MaxResults { get; set; }
///
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -106,14 +106,14 @@ public TaskListOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -122,7 +122,7 @@ public TaskListOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskListSubtasksOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskListSubtasksOptions.cs
index a45cca126d1a..b619a4f7b990 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskListSubtasksOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskListSubtasksOptions.cs
@@ -61,14 +61,14 @@ public TaskListSubtasksOptions()
///
/// Gets or sets an OData $select clause.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string Select { get; set; }
///
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -76,14 +76,14 @@ public TaskListSubtasksOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -92,7 +92,7 @@ public TaskListSubtasksOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskReactivateOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskReactivateOptions.cs
index 3d7252226e0d..a17a81b75949 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskReactivateOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskReactivateOptions.cs
@@ -80,7 +80,7 @@ public TaskReactivateOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public TaskReactivateOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public TaskReactivateOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public TaskReactivateOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public TaskReactivateOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public TaskReactivateOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public TaskReactivateOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskTerminateOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskTerminateOptions.cs
index 6f78010ee786..c5bab79aeddc 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskTerminateOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskTerminateOptions.cs
@@ -80,7 +80,7 @@ public TaskTerminateOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public TaskTerminateOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public TaskTerminateOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public TaskTerminateOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public TaskTerminateOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public TaskTerminateOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public TaskTerminateOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskUpdateOptions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskUpdateOptions.cs
index 18104dd567bd..e6e15a8403d2 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskUpdateOptions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/TaskUpdateOptions.cs
@@ -80,7 +80,7 @@ public TaskUpdateOptions()
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
///
@@ -88,14 +88,14 @@ public TaskUpdateOptions()
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
///
/// Gets or sets whether the server should return the client-request-id
/// in the response.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
///
@@ -104,7 +104,7 @@ public TaskUpdateOptions()
/// explicitly if you are calling the REST API directly.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
///
@@ -113,7 +113,7 @@ public TaskUpdateOptions()
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
///
@@ -122,7 +122,7 @@ public TaskUpdateOptions()
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
///
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
///
@@ -132,7 +132,7 @@ public TaskUpdateOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
///
@@ -142,7 +142,7 @@ public TaskUpdateOptions()
/// specified time.
///
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
- [JsonProperty(PropertyName = "")]
+ [Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/UploadBatchServiceLogsConfiguration.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/UploadBatchServiceLogsConfiguration.cs
new file mode 100644
index 000000000000..4820b3b4929b
--- /dev/null
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/UploadBatchServiceLogsConfiguration.cs
@@ -0,0 +1,112 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Batch.Protocol.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The Azure Batch service log files upload configuration for a compute
+ /// node.
+ ///
+ public partial class UploadBatchServiceLogsConfiguration
+ {
+ ///
+ /// Initializes a new instance of the
+ /// UploadBatchServiceLogsConfiguration class.
+ ///
+ public UploadBatchServiceLogsConfiguration()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// UploadBatchServiceLogsConfiguration class.
+ ///
+ /// The URL of the container within Azure
+ /// Blob Storage to which to upload the Batch Service log
+ /// file(s).
+ /// The start of the time range from which to
+ /// upload Batch Service log file(s).
+ /// The end of the time range from which to
+ /// upload Batch Service log file(s).
+ public UploadBatchServiceLogsConfiguration(string containerUrl, System.DateTime startTime, System.DateTime? endTime = default(System.DateTime?))
+ {
+ ContainerUrl = containerUrl;
+ StartTime = startTime;
+ EndTime = endTime;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the URL of the container within Azure Blob Storage to
+ /// which to upload the Batch Service log file(s).
+ ///
+ ///
+ /// The URL must include a Shared Access Signature (SAS) granting write
+ /// permissions to the container. The SAS duration must allow enough
+ /// time for the upload to finish. The start time for SAS is optional
+ /// and recommended to not be specified.
+ ///
+ [JsonProperty(PropertyName = "containerUrl")]
+ public string ContainerUrl { get; set; }
+
+ ///
+ /// Gets or sets the start of the time range from which to upload Batch
+ /// Service log file(s).
+ ///
+ ///
+ /// Any log file containing a log message in the time range will be
+ /// uploaded. This means that the operation might retrieve more logs
+ /// than have been requested since the entire log file is always
+ /// uploaded, but the operation should not retrieve fewer logs than
+ /// have been requested.
+ ///
+ [JsonProperty(PropertyName = "startTime")]
+ public System.DateTime StartTime { get; set; }
+
+ ///
+ /// Gets or sets the end of the time range from which to upload Batch
+ /// Service log file(s).
+ ///
+ ///
+ /// Any log file containing a log message in the time range will be
+ /// uploaded. This means that the operation might retrieve more logs
+ /// than have been requested since the entire log file is always
+ /// uploaded, but the operation should not retrieve fewer logs than
+ /// have been requested. If omitted, the default is to upload all logs
+ /// available after the startTime.
+ ///
+ [JsonProperty(PropertyName = "endTime")]
+ public System.DateTime? EndTime { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (ContainerUrl == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "ContainerUrl");
+ }
+ }
+ }
+}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/UploadBatchServiceLogsResult.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/UploadBatchServiceLogsResult.cs
new file mode 100644
index 000000000000..50c73a1f75d0
--- /dev/null
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/UploadBatchServiceLogsResult.cs
@@ -0,0 +1,85 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Batch.Protocol.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The result of uploading Batch service log files from a specific compute
+ /// node.
+ ///
+ public partial class UploadBatchServiceLogsResult
+ {
+ ///
+ /// Initializes a new instance of the UploadBatchServiceLogsResult
+ /// class.
+ ///
+ public UploadBatchServiceLogsResult()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the UploadBatchServiceLogsResult
+ /// class.
+ ///
+ /// The virtual directory within
+ /// Azure Blob Storage container to which the Batch Service log file(s)
+ /// will be uploaded.
+ /// The number of log files which
+ /// will be uploaded.
+ public UploadBatchServiceLogsResult(string virtualDirectoryName, int numberOfFilesUploaded)
+ {
+ VirtualDirectoryName = virtualDirectoryName;
+ NumberOfFilesUploaded = numberOfFilesUploaded;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the virtual directory within Azure Blob Storage
+ /// container to which the Batch Service log file(s) will be uploaded.
+ ///
+ ///
+ /// The virtual directory name is part of the blob name for each log
+ /// file uploaded, and it is built based poolId, nodeId and a unique
+ /// identifier.
+ ///
+ [JsonProperty(PropertyName = "virtualDirectoryName")]
+ public string VirtualDirectoryName { get; set; }
+
+ ///
+ /// Gets or sets the number of log files which will be uploaded.
+ ///
+ [JsonProperty(PropertyName = "numberOfFilesUploaded")]
+ public int NumberOfFilesUploaded { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (VirtualDirectoryName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "VirtualDirectoryName");
+ }
+ }
+ }
+}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/SdkInfo_BatchService.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/SdkInfo_BatchService.cs
new file mode 100644
index 000000000000..0c67781b59de
--- /dev/null
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/SdkInfo_BatchService.cs
@@ -0,0 +1,26 @@
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+internal static partial class SdkInfo
+{
+ public static IEnumerable> ApiInfo_BatchService
+ {
+ get
+ {
+ return new Tuple[]
+ {
+ new Tuple("BatchService", "Account", "2018-03-01.6.1"),
+ new Tuple("BatchService", "Application", "2018-03-01.6.1"),
+ new Tuple("BatchService", "Certificate", "2018-03-01.6.1"),
+ new Tuple("BatchService", "ComputeNode", "2018-03-01.6.1"),
+ new Tuple("BatchService", "File", "2018-03-01.6.1"),
+ new Tuple("BatchService", "Job", "2018-03-01.6.1"),
+ new Tuple("BatchService", "JobSchedule", "2018-03-01.6.1"),
+ new Tuple("BatchService", "Pool", "2018-03-01.6.1"),
+ new Tuple("BatchService", "Task", "2018-03-01.6.1"),
+ }.AsEnumerable();
+ }
+ }
+}
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/IProtocolLayer.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/IProtocolLayer.cs
index 5d3963dd7f90..e9e0c3f0ce71 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/IProtocolLayer.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/IProtocolLayer.cs
@@ -230,6 +230,15 @@ internal interface IProtocolLayer : IDisposable
Task> UpgradePoolOS(string poolId, string targetOSVersion, BehaviorManager bhMgr, CancellationToken cancellationToken);
+ Task> UploadBatchServiceLogs(
+ string poolId,
+ string nodeId,
+ string containerUrl,
+ DateTime startTime,
+ DateTime? endTime,
+ BehaviorManager bhMgr,
+ CancellationToken cancellationToken);
+
Task> DeleteNodeFileByTask(string jobId, string taskId, string filePath, bool? recursive, BehaviorManager bhMgr, CancellationToken cancellationToken);
Task> GetComputeNode(string poolId, string nodeId, BehaviorManager bhMgr, CancellationToken cancellationToken);
@@ -290,7 +299,13 @@ internal interface IProtocolLayer : IDisposable
BehaviorManager bhMgr,
DetailLevel detailLevel,
CancellationToken cancellationToken);
-
+
+ Task, Models.AccountListPoolNodeCountsHeaders>> ListPoolNodeCounts(
+ string skipToken,
+ BehaviorManager bhMgr,
+ DetailLevel detailLevel,
+ CancellationToken cancellationToken);
+
Task> GetApplicationSummary(string applicationId, BehaviorManager bhMgr, CancellationToken cancellationToken);
Task, Models.ApplicationListHeaders>> ListApplicationSummaries(string skipToken, BehaviorManager bhMgr, DetailLevel detailLevel, CancellationToken cancellationToken);
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/PoolOperations.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/PoolOperations.cs
index 094bfa80a0b7..5ae8f3c0e05e 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/PoolOperations.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/PoolOperations.cs
@@ -1827,6 +1827,138 @@ public IPagedEnumerable ListNodeAgentSkus(DetailLevel detailLevel
return enumerable;
}
-#endregion // PoolOperations
+ internal async System.Threading.Tasks.Task UploadComputeNodeBatchServiceLogsAsyncImpl(
+ string poolId,
+ string computeNodeId,
+ string containerUrl,
+ DateTime startTime,
+ DateTime? endTime,
+ BehaviorManager bhMgr,
+ CancellationToken cancellationToken)
+ {
+ var task = _parentBatchClient.ProtocolLayer.UploadBatchServiceLogs(
+ poolId,
+ computeNodeId,
+ containerUrl,
+ startTime,
+ endTime,
+ bhMgr,
+ cancellationToken);
+
+ var result = await task.ConfigureAwait(false);
+
+ return new UploadBatchServiceLogsResult(result.Body);
+ }
+
+ ///
+ /// Upload Azure Batch service log files from the specified compute node.
+ ///
+ /// The id of the pool that contains the compute node.
+ /// The id of the compute node.
+ ///
+ /// The URL of the container within Azure Blob Storage to which to upload the Batch Service log file(s). The URL must include a Shared Access Signature (SAS) granting write permissions to the container.
+ ///
+ ///
+ /// The start of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded.
+ /// This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded.
+ ///
+ ///
+ /// The end of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded.
+ /// This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded. If this is omitted, the default is the current time.
+ ///
+ /// A collection of instances that are applied to the Batch service request after the .
+ /// A for controlling the lifetime of the asynchronous operation.
+ /// A that represents the asynchronous operation.
+ ///
+ /// This is for gathering Azure Batch service log files in an automated fashion from nodes if you are experiencing an error and wish to escalate to Azure support.
+ /// The Azure Batch service log files should be shared with Azure support to aid in debugging issues with the Batch service.
+ ///
+ public System.Threading.Tasks.Task UploadComputeNodeBatchServiceLogsAsync(
+ string poolId,
+ string computeNodeId,
+ string containerUrl,
+ DateTime startTime,
+ DateTime? endTime = null,
+ IEnumerable additionalBehaviors = null,
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // craft the behavior manager for this call
+ BehaviorManager bhMgr = new BehaviorManager(this.CustomBehaviors, additionalBehaviors);
+
+ return UploadComputeNodeBatchServiceLogsAsyncImpl(
+ poolId,
+ computeNodeId,
+ containerUrl,
+ startTime,
+ endTime,
+ bhMgr,
+ cancellationToken);
+ }
+
+ ///
+ /// Upload Azure Batch service log files from the specified compute node.
+ ///
+ /// The id of the pool that contains the compute node.
+ /// The id of the compute node.
+ ///
+ /// The URL of the container within Azure Blob Storage to which to upload the Batch Service log file(s). The URL must include a Shared Access Signature (SAS) granting write permissions to the container.
+ ///
+ ///
+ /// The start of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded.
+ /// This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded.
+ ///
+ ///
+ /// The end of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded.
+ /// This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded. If this is omitted, the default is the current time.
+ ///
+ /// A collection of instances that are applied to the Batch service request after the .
+ ///
+ /// This is for gathering Azure Batch service log files in an automated fashion from nodes if you are experiencing an error and wish to escalate to Azure support.
+ /// The Azure Batch service log files should be shared with Azure support to aid in debugging issues with the Batch service.
+ ///
+ /// The result of uploading the batch service logs.
+ public UploadBatchServiceLogsResult UploadComputeNodeBatchServiceLogs(
+ string poolId,
+ string computeNodeId,
+ string containerUrl,
+ DateTime startTime,
+ DateTime? endTime = null,
+ IEnumerable additionalBehaviors = null)
+ {
+ var asyncTask = this.UploadComputeNodeBatchServiceLogsAsync(
+ poolId,
+ computeNodeId,
+ containerUrl,
+ startTime,
+ endTime,
+ additionalBehaviors);
+ return asyncTask.WaitAndUnaggregateException(this.CustomBehaviors, additionalBehaviors);
+ }
+
+ ///
+ /// Lists the number of nodes in each state, grouped by pool.
+ ///
+ /// A used for filtering the list and for controlling which properties are retrieved from the service.
+ /// A collection of instances that are applied to the Batch service request after the and .
+ /// An that can be used to enumerate pool node count details asynchronously or synchronously.
+ /// This method returns immediately; the pool counts are retrieved from the Batch service only when the collection is enumerated.
+ /// Retrieval is non-atomic; pool counts are retrieved in pages during enumeration of the collection.
+ public IPagedEnumerable ListPoolNodeCounts(DetailLevel detailLevel = null, IEnumerable additionalBehaviors = null)
+ {
+ // craft the behavior manager for this call
+ BehaviorManager bhMgr = new BehaviorManager(this.CustomBehaviors, additionalBehaviors);
+
+ PagedEnumerable enumerable = new PagedEnumerable( // the lamda will be the enumerator factory
+ () =>
+ {
+ // here is the actual strongly typed enumerator
+ AsyncListPoolNodeCountsEnumerator typedEnumerator = new AsyncListPoolNodeCountsEnumerator(this, bhMgr, detailLevel);
+ return typedEnumerator;
+ });
+
+ return enumerable;
+ }
+
+ #endregion // PoolOperations
}
}
\ No newline at end of file
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/Protocol/BatchRequests/NamedBatchRequests.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/Protocol/BatchRequests/NamedBatchRequests.cs
index ecd1d4c5eb64..aba7c366b4ce 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/Protocol/BatchRequests/NamedBatchRequests.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/Protocol/BatchRequests/NamedBatchRequests.cs
@@ -46,6 +46,44 @@ public AccountListNodeAgentSkusNextBatchRequest(
}
}
+ ///
+ /// An for the AccountListPoolNodeCounts operation.
+ ///
+ public class AccountListPoolNodeCountsBatchRequest : Protocol.BatchRequest<
+ AccountListPoolNodeCountsOptions,
+ AzureOperationResponse, AccountListPoolNodeCountsHeaders>>
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The service client to use.
+ /// A controlling the request lifetime.
+ public AccountListPoolNodeCountsBatchRequest(
+ BatchServiceClient serviceClient,
+ CancellationToken cancellationToken) : base(serviceClient, cancellationToken)
+ {
+ }
+ }
+
+ ///
+ /// An for the AccountListPoolNodeCountsNext operation.
+ ///
+ public class AccountListPoolNodeCountsNextBatchRequest : Protocol.BatchRequest<
+ AccountListPoolNodeCountsNextOptions,
+ AzureOperationResponse, AccountListPoolNodeCountsHeaders>>
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The service client to use.
+ /// A controlling the request lifetime.
+ public AccountListPoolNodeCountsNextBatchRequest(
+ BatchServiceClient serviceClient,
+ CancellationToken cancellationToken) : base(serviceClient, cancellationToken)
+ {
+ }
+ }
+
#endregion
#region Application
@@ -295,6 +333,25 @@ public ComputeNodeUpdateUserBatchRequest(
}
}
+ ///
+ /// An for the ComputeNodeUploadBatchServiceLogsBatchRequest operation.
+ ///
+ public class ComputeNodeUploadBatchServiceLogsBatchRequest : Protocol.BatchRequest<
+ ComputeNodeUploadBatchServiceLogsOptions,
+ AzureOperationResponse>
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The service client to use.
+ /// A controlling the request lifetime.
+ public ComputeNodeUploadBatchServiceLogsBatchRequest(
+ BatchServiceClient serviceClient,
+ CancellationToken cancellationToken) : base(serviceClient, cancellationToken)
+ {
+ }
+ }
+
///
/// An for the ComputeNodeGet operation.
///
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/Protocol/Models/ParameterExtensions.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/Protocol/Models/ParameterExtensions.cs
index a29973deece0..788774d4ad55 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/Protocol/Models/ParameterExtensions.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/Protocol/Models/ParameterExtensions.cs
@@ -2,6 +2,8 @@
{
public partial class AccountListNodeAgentSkusOptions : ITimeoutOptions, IODataFilter { }
public partial class AccountListNodeAgentSkusNextOptions : IOptions { }
+ public partial class AccountListPoolNodeCountsOptions : ITimeoutOptions, IODataFilter { }
+ public partial class AccountListPoolNodeCountsNextOptions : IOptions { }
public partial class ApplicationGetOptions : ITimeoutOptions { }
public partial class ApplicationListOptions : ITimeoutOptions { }
public partial class ApplicationListNextOptions : IOptions { }
@@ -22,6 +24,7 @@ public partial class ComputeNodeRebootOptions : ITimeoutOptions { }
public partial class ComputeNodeReimageOptions : ITimeoutOptions { }
public partial class PoolRemoveNodesOptions : ITimeoutOptions { }
public partial class ComputeNodeUpdateUserOptions : ITimeoutOptions { }
+ public partial class ComputeNodeUploadBatchServiceLogsOptions : ITimeoutOptions { }
public partial class FileDeleteFromComputeNodeOptions : ITimeoutOptions { }
public partial class FileDeleteFromTaskOptions : ITimeoutOptions { }
public partial class FileGetFromComputeNodeOptions : ITimeoutOptions { }
diff --git a/src/SDKs/Batch/DataPlane/Azure.Batch/ProtocolLayer.cs b/src/SDKs/Batch/DataPlane/Azure.Batch/ProtocolLayer.cs
index 598606477f2a..a6f85b974eed 100644
--- a/src/SDKs/Batch/DataPlane/Azure.Batch/ProtocolLayer.cs
+++ b/src/SDKs/Batch/DataPlane/Azure.Batch/ProtocolLayer.cs
@@ -1159,6 +1159,31 @@ internal ProtocolLayer(Protocol.BatchServiceClient clientToUse)
return asyncTask;
}
+ public Task> UploadBatchServiceLogs(
+ string poolId,
+ string nodeId,
+ string containerUrl,
+ DateTime startTime,
+ DateTime? endTime,
+ BehaviorManager bhMgr,
+ CancellationToken cancellationToken)
+ {
+ var parameters = new Models.UploadBatchServiceLogsConfiguration(containerUrl, startTime, endTime);
+ var request = new ComputeNodeUploadBatchServiceLogsBatchRequest(this._client, cancellationToken);
+
+ request.ServiceRequestFunc = (lambdaCancelToken) => request.RestClient.ComputeNode.UploadBatchServiceLogsWithHttpMessagesAsync(
+ poolId,
+ nodeId,
+ parameters,
+ request.Options,
+ request.CustomHeaders,
+ lambdaCancelToken);
+
+ var asyncTask = ProcessAndExecuteBatchRequest(request, bhMgr);
+
+ return asyncTask;
+ }
+
public async Task> GetComputeNodeRDPFile(string poolId, string computeNodeId, Stream rdpStream, BehaviorManager bhMgr, CancellationToken cancellationToken)
{
var request = new ComputeNodeGetRemoteDesktopBatchRequest(this._client, cancellationToken);
@@ -1732,9 +1757,45 @@ internal ProtocolLayer(Protocol.BatchServiceClient clientToUse)
return asyncTask;
}
- #endregion // IProtocolLayer
+ public Task, Models.AccountListPoolNodeCountsHeaders>> ListPoolNodeCounts(
+ string skipToken,
+ BehaviorManager bhMgr,
+ DetailLevel detailLevel,
+ CancellationToken cancellationToken)
+ {
+ Task, Models.AccountListPoolNodeCountsHeaders>> asyncTask;
+
+ if (string.IsNullOrEmpty(skipToken))
+ {
+ var request = new AccountListPoolNodeCountsBatchRequest(this._client, cancellationToken);
+
+ bhMgr = bhMgr.CreateBehaviorManagerWithDetailLevel(detailLevel);
+
+ request.ServiceRequestFunc = (lambdaCancelToken) => request.RestClient.Account.ListPoolNodeCountsWithHttpMessagesAsync(
+ request.Options,
+ request.CustomHeaders,
+ lambdaCancelToken);
+
+ asyncTask = ProcessAndExecuteBatchRequest(request, bhMgr);
+ }
+ else
+ {
+ var request = new AccountListPoolNodeCountsNextBatchRequest(this._client, cancellationToken);
+ request.ServiceRequestFunc = (lambdaCancelToken) => request.RestClient.Account.ListPoolNodeCountsNextWithHttpMessagesAsync(
+ skipToken,
+ request.Options,
+ request.CustomHeaders,
+ lambdaCancelToken);
+
+ asyncTask = ProcessAndExecuteBatchRequest(request, bhMgr);
+ }
+
+ return asyncTask;
+ }
+
+ #endregion // IProtocolLayer
-#region // internal/private
+ #region // internal/private
private static async Task CopyStreamAsync(Stream inputStream, Stream outputStream, CancellationToken cancellationToken)
{
diff --git a/src/SDKs/Batch/DataPlane/Tools/ObjectModelCodeGeneration/ObjectModelCodeGenerator/Program.cs b/src/SDKs/Batch/DataPlane/Tools/ObjectModelCodeGeneration/ObjectModelCodeGenerator/Program.cs
index b03acecf1872..0589d88798b1 100644
--- a/src/SDKs/Batch/DataPlane/Tools/ObjectModelCodeGeneration/ObjectModelCodeGenerator/Program.cs
+++ b/src/SDKs/Batch/DataPlane/Tools/ObjectModelCodeGeneration/ObjectModelCodeGenerator/Program.cs
@@ -15,7 +15,7 @@ public static void Main(string[] args)
{
GenerateModelFiles();
- //GenerateSomeRoslynFiles(); TODO: Temporarily disabled, see: https://github.com/dotnet/roslyn/issues/16886
+ // GenerateSomeRoslynFiles(); Temporarily disabled, see: https://github.com/dotnet/roslyn/issues/17974
}
private static void GenerateModelFiles()
diff --git a/src/SDKs/Batch/DataPlane/Tools/ObjectModelCodeGeneration/ObjectModelCodeGenerator/Spec/NodeCounts.json b/src/SDKs/Batch/DataPlane/Tools/ObjectModelCodeGeneration/ObjectModelCodeGenerator/Spec/NodeCounts.json
new file mode 100644
index 000000000000..369550379a84
--- /dev/null
+++ b/src/SDKs/Batch/DataPlane/Tools/ObjectModelCodeGeneration/ObjectModelCodeGenerator/Spec/NodeCounts.json
@@ -0,0 +1,151 @@
+{
+ "Name": "NodeCounts",
+ "ProtocolName": "Models.NodeCounts",
+ "Comment": "The number of nodes in each node state.",
+ "IsConstructorPublic": false,
+ "Properties": [
+ {
+ "Key": {
+ "Type": "int",
+ "Name": "Creating",
+ "SummaryComment": "The number of nodes in .",
+ "RemarksComment": null,
+ "BoundAccess": "read",
+ "UnboundAccess": "none"
+ },
+ "Value": null
+ },
+ {
+ "Key": {
+ "Type": "int",
+ "Name": "Idle",
+ "SummaryComment": "The number of nodes in .",
+ "RemarksComment": null,
+ "BoundAccess": "read",
+ "UnboundAccess": "none"
+ },
+ "Value": null
+ },
+ {
+ "Key": {
+ "Type": "int",
+ "Name": "Offline",
+ "SummaryComment": "The number of nodes in .",
+ "RemarksComment": null,
+ "BoundAccess": "read",
+ "UnboundAccess": "none"
+ },
+ "Value": null
+ },
+ {
+ "Key": {
+ "Type": "int",
+ "Name": "Preempted",
+ "SummaryComment": "The number of nodes in .",
+ "RemarksComment": null,
+ "BoundAccess": "read",
+ "UnboundAccess": "none"
+ },
+ "Value": null
+ },
+ {
+ "Key": {
+ "Type": "int",
+ "Name": "Rebooting",
+ "SummaryComment": "The number of nodes in .",
+ "RemarksComment": null,
+ "BoundAccess": "read",
+ "UnboundAccess": "none"
+ },
+ "Value": null
+ },
+ {
+ "Key": {
+ "Type": "int",
+ "Name": "Reimaging",
+ "SummaryComment": "The number of nodes in .",
+ "RemarksComment": null,
+ "BoundAccess": "read",
+ "UnboundAccess": "none"
+ },
+ "Value": null
+ },
+ {
+ "Key": {
+ "Type": "int",
+ "Name": "Running",
+ "SummaryComment": "The number of nodes in .",
+ "RemarksComment": null,
+ "BoundAccess": "read",
+ "UnboundAccess": "none"
+ },
+ "Value": null
+ },
+ {
+ "Key": {
+ "Type": "int",
+ "Name": "Starting",
+ "SummaryComment": "The number of nodes in .",
+ "RemarksComment": null,
+ "BoundAccess": "read",
+ "UnboundAccess": "none"
+ },
+ "Value": null
+ },
+ {
+ "Key": {
+ "Type": "int",
+ "Name": "StartTaskFailed",
+ "SummaryComment": "The number of nodes in .",
+ "RemarksComment": null,
+ "BoundAccess": "read",
+ "UnboundAccess": "none"
+ },
+ "Value": null
+ },
+ {
+ "Key": {
+ "Type": "int",
+ "Name": "Unknown",
+ "SummaryComment": "The number of nodes in .",
+ "RemarksComment": null,
+ "BoundAccess": "read",
+ "UnboundAccess": "none"
+ },
+ "Value": null
+ },
+ {
+ "Key": {
+ "Type": "int",
+ "Name": "Unusable",
+ "SummaryComment": "The number of nodes in .",
+ "RemarksComment": null,
+ "BoundAccess": "read",
+ "UnboundAccess": "none"
+ },
+ "Value": null
+ },
+ {
+ "Key": {
+ "Type": "int",
+ "Name": "WaitingForStartTask",
+ "SummaryComment": "The number of nodes in .",
+ "RemarksComment": null,
+ "BoundAccess": "read",
+ "UnboundAccess": "none"
+ },
+ "Value": null
+ },
+ {
+ "Key": {
+ "Type": "int",
+ "Name": "Total",
+ "SummaryComment": "The total number of nodes.",
+ "RemarksComment": null,
+ "BoundAccess": "read",
+ "UnboundAccess": "none"
+ },
+ "Value": null
+ }
+ ]
+}
diff --git a/src/SDKs/Batch/DataPlane/Tools/ObjectModelCodeGeneration/ObjectModelCodeGenerator/Spec/PoolNodeCounts.json b/src/SDKs/Batch/DataPlane/Tools/ObjectModelCodeGeneration/ObjectModelCodeGenerator/Spec/PoolNodeCounts.json
new file mode 100644
index 000000000000..b384914325bd
--- /dev/null
+++ b/src/SDKs/Batch/DataPlane/Tools/ObjectModelCodeGeneration/ObjectModelCodeGenerator/Spec/PoolNodeCounts.json
@@ -0,0 +1,41 @@
+{
+ "Name": "PoolNodeCounts",
+ "ProtocolName": "Models.PoolNodeCounts",
+ "Comment": "A pool in the Azure Batch service.",
+ "IsConstructorPublic": false,
+ "Properties": [
+ {
+ "Key": {
+ "Type": "string",
+ "Name": "PoolId",
+ "SummaryComment": "The ID of the pool.",
+ "RemarksComment": null,
+ "BoundAccess": "read",
+ "UnboundAccess": "none"
+ },
+ "Value": null
+ },
+ {
+ "Key": {
+ "Type": "NodeCounts",
+ "Name": "Dedicated",
+ "SummaryComment": "The number of dedicated nodes in each state.",
+ "RemarksComment": null,
+ "BoundAccess": "read",
+ "UnboundAccess": "none"
+ },
+ "Value": null
+ },
+ {
+ "Key": {
+ "Type": "NodeCounts",
+ "Name": "LowPriority",
+ "SummaryComment": "The number of low-priority nodes in each state.",
+ "RemarksComment": null,
+ "BoundAccess": "read",
+ "UnboundAccess": "none"
+ },
+ "Value": null
+ }
+ ]
+}
diff --git a/src/SDKs/Batch/DataPlane/Tools/ObjectModelCodeGeneration/ObjectModelCodeGenerator/Spec/UploadBatchServiceLogsResult.json b/src/SDKs/Batch/DataPlane/Tools/ObjectModelCodeGeneration/ObjectModelCodeGenerator/Spec/UploadBatchServiceLogsResult.json
new file mode 100644
index 000000000000..56e1626d63c1
--- /dev/null
+++ b/src/SDKs/Batch/DataPlane/Tools/ObjectModelCodeGeneration/ObjectModelCodeGenerator/Spec/UploadBatchServiceLogsResult.json
@@ -0,0 +1,30 @@
+{
+ "Name": "UploadBatchServiceLogsResult",
+ "ProtocolName": "Models.UploadBatchServiceLogsResult",
+ "Comment": "The result of uploading batch service log files from a specific compute node.",
+ "IsConstructorPublic": false,
+ "Properties": [
+ {
+ "Key": {
+ "Type": "string",
+ "Name": "VirtualDirectoryName",
+ "SummaryComment": "The virtual directory within the Azure Blob Storage container to which the Batch Service log file(s) will be uploaded.",
+ "RemarksComment": "The virtual directory name is part of the blob name for each log file uploaded.",
+ "BoundAccess": "read",
+ "UnboundAccess": "none"
+ },
+ "Value": null
+ },
+ {
+ "Key": {
+ "Type": "int",
+ "Name": "NumberOfFilesUploaded",
+ "SummaryComment": "The number of log files which will be uploaded.",
+ "RemarksComment": null,
+ "BoundAccess": "read",
+ "UnboundAccess": "none"
+ },
+ "Value": null
+ }
+ ]
+}
diff --git a/src/SDKs/Batch/DataPlane/Tools/ObjectModelCodeGeneration/RoslynParser/ProxyLayerParser.csproj b/src/SDKs/Batch/DataPlane/Tools/ObjectModelCodeGeneration/RoslynParser/ProxyLayerParser.csproj
index f04fe146a1f2..59a1b5691a84 100644
--- a/src/SDKs/Batch/DataPlane/Tools/ObjectModelCodeGeneration/RoslynParser/ProxyLayerParser.csproj
+++ b/src/SDKs/Batch/DataPlane/Tools/ObjectModelCodeGeneration/RoslynParser/ProxyLayerParser.csproj
@@ -14,9 +14,9 @@
-
-
-
+
+
+
diff --git a/src/SDKs/Batch/DataPlane/changelog.md b/src/SDKs/Batch/DataPlane/changelog.md
index ba68ef2a86d0..ca03ba99b960 100644
--- a/src/SDKs/Batch/DataPlane/changelog.md
+++ b/src/SDKs/Batch/DataPlane/changelog.md
@@ -1,5 +1,14 @@
# Azure.Batch release notes
+## Changes in 8.1.0
+### Features
+ - Added the ability to query pool node counts by state, via the new `ListPoolNodeCounts` method on `PoolOperations`.
+ - Added the ability to upload Azure Batch node agent logs from a particular node, via the `UploadComputeNodeBatchServiceLogs` method on `PoolOperations` and `ComputeNode`.
+ - This is intended for use in debugging by Microsoft support when there are problems on a node.
+
+### REST API version
+This version of the Batch .NET client library targets version 2018-02-01.6.1 of the Azure Batch REST API.
+
## Changes in 8.0.1
### Bug fixes
- Fixed a bug where deserializing some enum properties could fail if using Newtonsoft 10.
diff --git a/src/SDKs/Batch/Management/AzSdk.RP.props b/src/SDKs/Batch/Management/AzSdk.RP.props
new file mode 100644
index 000000000000..39645fa6dc05
--- /dev/null
+++ b/src/SDKs/Batch/Management/AzSdk.RP.props
@@ -0,0 +1,7 @@
+
+
+
+
+ $(PackageTags);$(CommonTags);$(AzureApiTag);
+
+
\ No newline at end of file
diff --git a/src/SDKs/_metadata/batch_data-plane.txt b/src/SDKs/_metadata/batch_data-plane.txt
index e1365ba25011..9fecf9643f93 100644
--- a/src/SDKs/_metadata/batch_data-plane.txt
+++ b/src/SDKs/_metadata/batch_data-plane.txt
@@ -1,11 +1,11 @@
-2017-11-15 17:05:24 UTC
+2018-02-05 22:01:00 UTC
1) azure-rest-api-specs repository information
-GitHub user: matthchr
-Branch: feature/batch-enum-fixes
-Commit: 9b56f851f9d33cdf831a172037dfdda1ad4f9351
+GitHub user: xingwu1
+Branch: master
+Commit: 8461020530ea9797845d73617e52bb42ccb4c0ca
2) AutoRest information
Requested version: latest
-Bootstrapper version: C:\Users\matthchr\AppData\Roaming\npm `-- autorest@2.0.4166
-Latest installed version: 2.0.4168
+Bootstrapper version: C:\Users\matthchr\AppData\Roaming\npm `-- autorest@2.0.4245
+Latest installed version: