diff --git a/sdk/batch/Azure.Compute.Batch/src/Generated/AccessScope.cs b/sdk/batch/Azure.Compute.Batch/src/Generated/AccessScope.cs
deleted file mode 100644
index 82f23d054230..000000000000
--- a/sdk/batch/Azure.Compute.Batch/src/Generated/AccessScope.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.Compute.Batch
-{
- /// AccessScope enums.
- public readonly partial struct AccessScope : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public AccessScope(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string JobValue = "job";
-
- /// Grants access to perform all operations on the Job containing the Task.
- public static AccessScope Job { get; } = new AccessScope(JobValue);
- /// Determines if two values are the same.
- public static bool operator ==(AccessScope left, AccessScope right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(AccessScope left, AccessScope right) => !left.Equals(right);
- /// Converts a to a .
- public static implicit operator AccessScope(string value) => new AccessScope(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is AccessScope other && Equals(other);
- ///
- public bool Equals(AccessScope other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/sdk/batch/Azure.Compute.Batch/src/Generated/AuthenticationTokenSettings.Serialization.cs b/sdk/batch/Azure.Compute.Batch/src/Generated/AuthenticationTokenSettings.Serialization.cs
index 1c9308bd4f8b..8f8d0d8793cb 100644
--- a/sdk/batch/Azure.Compute.Batch/src/Generated/AuthenticationTokenSettings.Serialization.cs
+++ b/sdk/batch/Azure.Compute.Batch/src/Generated/AuthenticationTokenSettings.Serialization.cs
@@ -81,7 +81,7 @@ internal static AuthenticationTokenSettings DeserializeAuthenticationTokenSettin
{
return null;
}
- IList access = default;
+ IList access = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
@@ -92,10 +92,10 @@ internal static AuthenticationTokenSettings DeserializeAuthenticationTokenSettin
{
continue;
}
- List array = new List();
+ List array = new List();
foreach (var item in property.Value.EnumerateArray())
{
- array.Add(new AccessScope(item.GetString()));
+ array.Add(new BatchAccessScope(item.GetString()));
}
access = array;
continue;
@@ -106,7 +106,7 @@ internal static AuthenticationTokenSettings DeserializeAuthenticationTokenSettin
}
}
serializedAdditionalRawData = rawDataDictionary;
- return new AuthenticationTokenSettings(access ?? new ChangeTrackingList(), serializedAdditionalRawData);
+ return new AuthenticationTokenSettings(access ?? new ChangeTrackingList(), serializedAdditionalRawData);
}
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
diff --git a/sdk/batch/Azure.Compute.Batch/src/Generated/AuthenticationTokenSettings.cs b/sdk/batch/Azure.Compute.Batch/src/Generated/AuthenticationTokenSettings.cs
index 400d876d185f..03248ad8055a 100644
--- a/sdk/batch/Azure.Compute.Batch/src/Generated/AuthenticationTokenSettings.cs
+++ b/sdk/batch/Azure.Compute.Batch/src/Generated/AuthenticationTokenSettings.cs
@@ -51,19 +51,19 @@ public partial class AuthenticationTokenSettings
/// Initializes a new instance of .
public AuthenticationTokenSettings()
{
- Access = new ChangeTrackingList();
+ Access = new ChangeTrackingList();
}
/// Initializes a new instance of .
/// The Batch resources to which the token grants access. The authentication token grants access to a limited set of Batch service operations. Currently the only supported value for the access property is 'job', which grants access to all operations related to the Job which contains the Task.
/// Keeps track of any properties unknown to the library.
- internal AuthenticationTokenSettings(IList access, IDictionary serializedAdditionalRawData)
+ internal AuthenticationTokenSettings(IList access, IDictionary serializedAdditionalRawData)
{
Access = access;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
/// The Batch resources to which the token grants access. The authentication token grants access to a limited set of Batch service operations. Currently the only supported value for the access property is 'job', which grants access to all operations related to the Job which contains the Task.
- public IList Access { get; }
+ public IList Access { get; }
}
}
diff --git a/sdk/batch/Azure.Compute.Batch/src/Generated/AzureFileShareConfiguration.Serialization.cs b/sdk/batch/Azure.Compute.Batch/src/Generated/AzureFileShareConfiguration.Serialization.cs
index 7ac9dff41aa4..fcd866a843d3 100644
--- a/sdk/batch/Azure.Compute.Batch/src/Generated/AzureFileShareConfiguration.Serialization.cs
+++ b/sdk/batch/Azure.Compute.Batch/src/Generated/AzureFileShareConfiguration.Serialization.cs
@@ -36,10 +36,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WritePropertyName("accountName"u8);
writer.WriteStringValue(AccountName);
- writer.WritePropertyName("azureFileUrl"u8);
- writer.WriteStringValue(AzureFileUrl);
writer.WritePropertyName("accountKey"u8);
writer.WriteStringValue(AccountKey);
+ writer.WritePropertyName("azureFileUrl"u8);
+ writer.WriteStringValue(AzureFileUri.AbsoluteUri);
writer.WritePropertyName("relativeMountPath"u8);
writer.WriteStringValue(RelativeMountPath);
if (Optional.IsDefined(MountOptions))
@@ -85,8 +85,8 @@ internal static AzureFileShareConfiguration DeserializeAzureFileShareConfigurati
return null;
}
string accountName = default;
- string azureFileUrl = default;
string accountKey = default;
+ Uri azureFileUrl = default;
string relativeMountPath = default;
string mountOptions = default;
IDictionary serializedAdditionalRawData = default;
@@ -98,14 +98,14 @@ internal static AzureFileShareConfiguration DeserializeAzureFileShareConfigurati
accountName = property.Value.GetString();
continue;
}
- if (property.NameEquals("azureFileUrl"u8))
+ if (property.NameEquals("accountKey"u8))
{
- azureFileUrl = property.Value.GetString();
+ accountKey = property.Value.GetString();
continue;
}
- if (property.NameEquals("accountKey"u8))
+ if (property.NameEquals("azureFileUrl"u8))
{
- accountKey = property.Value.GetString();
+ azureFileUrl = new Uri(property.Value.GetString());
continue;
}
if (property.NameEquals("relativeMountPath"u8))
@@ -126,8 +126,8 @@ internal static AzureFileShareConfiguration DeserializeAzureFileShareConfigurati
serializedAdditionalRawData = rawDataDictionary;
return new AzureFileShareConfiguration(
accountName,
- azureFileUrl,
accountKey,
+ azureFileUrl,
relativeMountPath,
mountOptions,
serializedAdditionalRawData);
diff --git a/sdk/batch/Azure.Compute.Batch/src/Generated/AzureFileShareConfiguration.cs b/sdk/batch/Azure.Compute.Batch/src/Generated/AzureFileShareConfiguration.cs
index 76049a45e428..ebb2140fc899 100644
--- a/sdk/batch/Azure.Compute.Batch/src/Generated/AzureFileShareConfiguration.cs
+++ b/sdk/batch/Azure.Compute.Batch/src/Generated/AzureFileShareConfiguration.cs
@@ -47,35 +47,35 @@ public partial class AzureFileShareConfiguration
/// Initializes a new instance of .
/// The Azure Storage account name.
- /// The Azure Files URL. This is of the form 'https://{account}.file.core.windows.net/'.
/// The Azure Storage account key.
+ /// The Azure Files URL. This is of the form 'https://{account}.file.core.windows.net/'.
/// The relative path on the compute node where the file system will be mounted. All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.
- /// , , or is null.
- public AzureFileShareConfiguration(string accountName, string azureFileUrl, string accountKey, string relativeMountPath)
+ /// , , or is null.
+ public AzureFileShareConfiguration(string accountName, string accountKey, Uri azureFileUri, string relativeMountPath)
{
Argument.AssertNotNull(accountName, nameof(accountName));
- Argument.AssertNotNull(azureFileUrl, nameof(azureFileUrl));
Argument.AssertNotNull(accountKey, nameof(accountKey));
+ Argument.AssertNotNull(azureFileUri, nameof(azureFileUri));
Argument.AssertNotNull(relativeMountPath, nameof(relativeMountPath));
AccountName = accountName;
- AzureFileUrl = azureFileUrl;
AccountKey = accountKey;
+ AzureFileUri = azureFileUri;
RelativeMountPath = relativeMountPath;
}
/// Initializes a new instance of .
/// The Azure Storage account name.
- /// The Azure Files URL. This is of the form 'https://{account}.file.core.windows.net/'.
/// The Azure Storage account key.
+ /// The Azure Files URL. This is of the form 'https://{account}.file.core.windows.net/'.
/// The relative path on the compute node where the file system will be mounted. All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.
/// Additional command line options to pass to the mount command. These are 'net use' options in Windows and 'mount' options in Linux.
/// Keeps track of any properties unknown to the library.
- internal AzureFileShareConfiguration(string accountName, string azureFileUrl, string accountKey, string relativeMountPath, string mountOptions, IDictionary serializedAdditionalRawData)
+ internal AzureFileShareConfiguration(string accountName, string accountKey, Uri azureFileUri, string relativeMountPath, string mountOptions, IDictionary serializedAdditionalRawData)
{
AccountName = accountName;
- AzureFileUrl = azureFileUrl;
AccountKey = accountKey;
+ AzureFileUri = azureFileUri;
RelativeMountPath = relativeMountPath;
MountOptions = mountOptions;
_serializedAdditionalRawData = serializedAdditionalRawData;
@@ -88,10 +88,10 @@ internal AzureFileShareConfiguration()
/// The Azure Storage account name.
public string AccountName { get; set; }
- /// The Azure Files URL. This is of the form 'https://{account}.file.core.windows.net/'.
- public string AzureFileUrl { get; set; }
/// The Azure Storage account key.
public string AccountKey { get; set; }
+ /// The Azure Files URL. This is of the form 'https://{account}.file.core.windows.net/'.
+ public Uri AzureFileUri { get; set; }
/// The relative path on the compute node where the file system will be mounted. All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.
public string RelativeMountPath { get; set; }
/// Additional command line options to pass to the mount command. These are 'net use' options in Windows and 'mount' options in Linux.
diff --git a/sdk/batch/Azure.Compute.Batch/src/Generated/BatchAccessScope.cs b/sdk/batch/Azure.Compute.Batch/src/Generated/BatchAccessScope.cs
new file mode 100644
index 000000000000..a8cd89965ae6
--- /dev/null
+++ b/sdk/batch/Azure.Compute.Batch/src/Generated/BatchAccessScope.cs
@@ -0,0 +1,48 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.Compute.Batch
+{
+ /// BatchAccessScope enums.
+ public readonly partial struct BatchAccessScope : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public BatchAccessScope(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string JobValue = "job";
+
+ /// Grants access to perform all operations on the Job containing the Task.
+ public static BatchAccessScope Job { get; } = new BatchAccessScope(JobValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(BatchAccessScope left, BatchAccessScope right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(BatchAccessScope left, BatchAccessScope right) => !left.Equals(right);
+ /// Converts a to a .
+ public static implicit operator BatchAccessScope(string value) => new BatchAccessScope(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is BatchAccessScope other && Equals(other);
+ ///
+ public bool Equals(BatchAccessScope other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/batch/Azure.Compute.Batch/src/Generated/AffinityInfo.Serialization.cs b/sdk/batch/Azure.Compute.Batch/src/Generated/BatchAffinityInfo.Serialization.cs
similarity index 67%
rename from sdk/batch/Azure.Compute.Batch/src/Generated/AffinityInfo.Serialization.cs
rename to sdk/batch/Azure.Compute.Batch/src/Generated/BatchAffinityInfo.Serialization.cs
index 6ca014a7fed0..371d5c9e3b36 100644
--- a/sdk/batch/Azure.Compute.Batch/src/Generated/AffinityInfo.Serialization.cs
+++ b/sdk/batch/Azure.Compute.Batch/src/Generated/BatchAffinityInfo.Serialization.cs
@@ -13,11 +13,11 @@
namespace Azure.Compute.Batch
{
- public partial class AffinityInfo : IUtf8JsonSerializable, IJsonModel
+ public partial class BatchAffinityInfo : IUtf8JsonSerializable, IJsonModel
{
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
- void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
writer.WriteStartObject();
JsonModelWriteCore(writer, options);
@@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpti
/// The client options for reading and writing models.
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
if (format != "J")
{
- throw new FormatException($"The model {nameof(AffinityInfo)} does not support writing '{format}' format.");
+ throw new FormatException($"The model {nameof(BatchAffinityInfo)} does not support writing '{format}' format.");
}
writer.WritePropertyName("affinityId"u8);
@@ -53,19 +53,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
}
- AffinityInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ BatchAffinityInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
if (format != "J")
{
- throw new FormatException($"The model {nameof(AffinityInfo)} does not support reading '{format}' format.");
+ throw new FormatException($"The model {nameof(BatchAffinityInfo)} does not support reading '{format}' format.");
}
using JsonDocument document = JsonDocument.ParseValue(ref reader);
- return DeserializeAffinityInfo(document.RootElement, options);
+ return DeserializeBatchAffinityInfo(document.RootElement, options);
}
- internal static AffinityInfo DeserializeAffinityInfo(JsonElement element, ModelReaderWriterOptions options = null)
+ internal static BatchAffinityInfo DeserializeBatchAffinityInfo(JsonElement element, ModelReaderWriterOptions options = null)
{
options ??= ModelSerializationExtensions.WireOptions;
@@ -89,46 +89,46 @@ internal static AffinityInfo DeserializeAffinityInfo(JsonElement element, ModelR
}
}
serializedAdditionalRawData = rawDataDictionary;
- return new AffinityInfo(affinityId, serializedAdditionalRawData);
+ return new BatchAffinityInfo(affinityId, serializedAdditionalRawData);
}
- BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
switch (format)
{
case "J":
return ModelReaderWriter.Write(this, options, AzureComputeBatchContext.Default);
default:
- throw new FormatException($"The model {nameof(AffinityInfo)} does not support writing '{options.Format}' format.");
+ throw new FormatException($"The model {nameof(BatchAffinityInfo)} does not support writing '{options.Format}' format.");
}
}
- AffinityInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ BatchAffinityInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
switch (format)
{
case "J":
{
using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
- return DeserializeAffinityInfo(document.RootElement, options);
+ return DeserializeBatchAffinityInfo(document.RootElement, options);
}
default:
- throw new FormatException($"The model {nameof(AffinityInfo)} does not support reading '{options.Format}' format.");
+ throw new FormatException($"The model {nameof(BatchAffinityInfo)} does not support reading '{options.Format}' format.");
}
}
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
/// Deserializes the model from a raw response.
/// The response to deserialize the model from.
- internal static AffinityInfo FromResponse(Response response)
+ internal static BatchAffinityInfo FromResponse(Response response)
{
using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
- return DeserializeAffinityInfo(document.RootElement);
+ return DeserializeBatchAffinityInfo(document.RootElement);
}
/// Convert into a .
diff --git a/sdk/batch/Azure.Compute.Batch/src/Generated/AffinityInfo.cs b/sdk/batch/Azure.Compute.Batch/src/Generated/BatchAffinityInfo.cs
similarity index 86%
rename from sdk/batch/Azure.Compute.Batch/src/Generated/AffinityInfo.cs
rename to sdk/batch/Azure.Compute.Batch/src/Generated/BatchAffinityInfo.cs
index 340f6ac3f4eb..b5de8d985ca3 100644
--- a/sdk/batch/Azure.Compute.Batch/src/Generated/AffinityInfo.cs
+++ b/sdk/batch/Azure.Compute.Batch/src/Generated/BatchAffinityInfo.cs
@@ -14,7 +14,7 @@ namespace Azure.Compute.Batch
/// A locality hint that can be used by the Batch service to select a Compute Node
/// on which to start a Task.
///
- public partial class AffinityInfo
+ public partial class BatchAffinityInfo
{
///
/// Keeps track of any properties unknown to the library.
@@ -48,27 +48,27 @@ public partial class AffinityInfo
///
private IDictionary _serializedAdditionalRawData;
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// An opaque string representing the location of a Compute Node or a Task that has run previously. You can pass the affinityId of a Node to indicate that this Task needs to run on that Compute Node. Note that this is just a soft affinity. If the target Compute Node is busy or unavailable at the time the Task is scheduled, then the Task will be scheduled elsewhere.
/// is null.
- public AffinityInfo(string affinityId)
+ public BatchAffinityInfo(string affinityId)
{
Argument.AssertNotNull(affinityId, nameof(affinityId));
AffinityId = affinityId;
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// An opaque string representing the location of a Compute Node or a Task that has run previously. You can pass the affinityId of a Node to indicate that this Task needs to run on that Compute Node. Note that this is just a soft affinity. If the target Compute Node is busy or unavailable at the time the Task is scheduled, then the Task will be scheduled elsewhere.
/// Keeps track of any properties unknown to the library.
- internal AffinityInfo(string affinityId, IDictionary serializedAdditionalRawData)
+ internal BatchAffinityInfo(string affinityId, IDictionary serializedAdditionalRawData)
{
AffinityId = affinityId;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
- /// Initializes a new instance of for deserialization.
- internal AffinityInfo()
+ /// Initializes a new instance of for deserialization.
+ internal BatchAffinityInfo()
{
}
diff --git a/sdk/batch/Azure.Compute.Batch/src/Generated/OnAllBatchTasksComplete.cs b/sdk/batch/Azure.Compute.Batch/src/Generated/BatchAllTasksCompleteMode.cs
similarity index 50%
rename from sdk/batch/Azure.Compute.Batch/src/Generated/OnAllBatchTasksComplete.cs
rename to sdk/batch/Azure.Compute.Batch/src/Generated/BatchAllTasksCompleteMode.cs
index e4be41307326..069ea7c44ad1 100644
--- a/sdk/batch/Azure.Compute.Batch/src/Generated/OnAllBatchTasksComplete.cs
+++ b/sdk/batch/Azure.Compute.Batch/src/Generated/BatchAllTasksCompleteMode.cs
@@ -11,13 +11,13 @@
namespace Azure.Compute.Batch
{
/// The action the Batch service should take when all Tasks in the Job are in the completed state.
- public readonly partial struct OnAllBatchTasksComplete : IEquatable
+ public readonly partial struct BatchAllTasksCompleteMode : IEquatable
{
private readonly string _value;
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// is null.
- public OnAllBatchTasksComplete(string value)
+ public BatchAllTasksCompleteMode(string value)
{
_value = value ?? throw new ArgumentNullException(nameof(value));
}
@@ -26,21 +26,21 @@ public OnAllBatchTasksComplete(string value)
private const string TerminateJobValue = "terminatejob";
/// Do nothing. The Job remains active unless terminated or disabled by some other means.
- public static OnAllBatchTasksComplete NoAction { get; } = new OnAllBatchTasksComplete(NoActionValue);
+ public static BatchAllTasksCompleteMode NoAction { get; } = new BatchAllTasksCompleteMode(NoActionValue);
/// Terminate the Job. The Job's terminationReason is set to 'AllTasksComplete'.
- public static OnAllBatchTasksComplete TerminateJob { get; } = new OnAllBatchTasksComplete(TerminateJobValue);
- /// Determines if two values are the same.
- public static bool operator ==(OnAllBatchTasksComplete left, OnAllBatchTasksComplete right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(OnAllBatchTasksComplete left, OnAllBatchTasksComplete right) => !left.Equals(right);
- /// Converts a to a .
- public static implicit operator OnAllBatchTasksComplete(string value) => new OnAllBatchTasksComplete(value);
+ public static BatchAllTasksCompleteMode TerminateJob { get; } = new BatchAllTasksCompleteMode(TerminateJobValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(BatchAllTasksCompleteMode left, BatchAllTasksCompleteMode right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(BatchAllTasksCompleteMode left, BatchAllTasksCompleteMode right) => !left.Equals(right);
+ /// Converts a to a .
+ public static implicit operator BatchAllTasksCompleteMode(string value) => new BatchAllTasksCompleteMode(value);
///
[EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is OnAllBatchTasksComplete other && Equals(other);
+ public override bool Equals(object obj) => obj is BatchAllTasksCompleteMode other && Equals(other);
///
- public bool Equals(OnAllBatchTasksComplete other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+ public bool Equals(BatchAllTasksCompleteMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
///
[EditorBrowsable(EditorBrowsableState.Never)]
diff --git a/sdk/batch/Azure.Compute.Batch/src/Generated/BatchCertificate.Serialization.cs b/sdk/batch/Azure.Compute.Batch/src/Generated/BatchCertificate.Serialization.cs
index 175d08f2924d..7ebcdc4fd7b8 100644
--- a/sdk/batch/Azure.Compute.Batch/src/Generated/BatchCertificate.Serialization.cs
+++ b/sdk/batch/Azure.Compute.Batch/src/Generated/BatchCertificate.Serialization.cs
@@ -38,10 +38,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WriteStringValue(Thumbprint);
writer.WritePropertyName("thumbprintAlgorithm"u8);
writer.WriteStringValue(ThumbprintAlgorithm);
- if (options.Format != "W" && Optional.IsDefined(Url))
+ if (options.Format != "W" && Optional.IsDefined(Uri))
{
writer.WritePropertyName("url"u8);
- writer.WriteStringValue(Url);
+ writer.WriteStringValue(Uri.AbsoluteUri);
}
if (options.Format != "W" && Optional.IsDefined(State))
{
@@ -74,7 +74,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WriteObjectValue(DeleteCertificateError, options);
}
writer.WritePropertyName("data"u8);
- writer.WriteStringValue(Data);
+ writer.WriteBase64StringValue(Data.ToArray(), "D");
if (Optional.IsDefined(CertificateFormat))
{
writer.WritePropertyName("certificateFormat"u8);
@@ -124,14 +124,14 @@ internal static BatchCertificate DeserializeBatchCertificate(JsonElement element
}
string thumbprint = default;
string thumbprintAlgorithm = default;
- string url = default;
+ Uri url = default;
BatchCertificateState? state = default;
DateTimeOffset? stateTransitionTime = default;
BatchCertificateState? previousState = default;
DateTimeOffset? previousStateTransitionTime = default;
string publicData = default;
- DeleteBatchCertificateError deleteCertificateError = default;
- string data = default;
+ BatchCertificateDeleteError deleteCertificateError = default;
+ BinaryData data = default;
BatchCertificateFormat? certificateFormat = default;
string password = default;
IDictionary serializedAdditionalRawData = default;
@@ -150,7 +150,11 @@ internal static BatchCertificate DeserializeBatchCertificate(JsonElement element
}
if (property.NameEquals("url"u8))
{
- url = property.Value.GetString();
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ url = new Uri(property.Value.GetString());
continue;
}
if (property.NameEquals("state"u8))
@@ -200,12 +204,12 @@ internal static BatchCertificate DeserializeBatchCertificate(JsonElement element
{
continue;
}
- deleteCertificateError = DeleteBatchCertificateError.DeserializeDeleteBatchCertificateError(property.Value, options);
+ deleteCertificateError = BatchCertificateDeleteError.DeserializeBatchCertificateDeleteError(property.Value, options);
continue;
}
if (property.NameEquals("data"u8))
{
- data = property.Value.GetString();
+ data = BinaryData.FromBytes(property.Value.GetBytesFromBase64("D"));
continue;
}
if (property.NameEquals("certificateFormat"u8))
diff --git a/sdk/batch/Azure.Compute.Batch/src/Generated/BatchCertificate.cs b/sdk/batch/Azure.Compute.Batch/src/Generated/BatchCertificate.cs
index 6e858116505e..1f9cc653afbe 100644
--- a/sdk/batch/Azure.Compute.Batch/src/Generated/BatchCertificate.cs
+++ b/sdk/batch/Azure.Compute.Batch/src/Generated/BatchCertificate.cs
@@ -53,7 +53,7 @@ public partial class BatchCertificate
/// The algorithm used to derive the thumbprint. This must be sha1.
/// The base64-encoded contents of the Certificate. The maximum size is 10KB.
/// , or is null.
- public BatchCertificate(string thumbprint, string thumbprintAlgorithm, string data)
+ public BatchCertificate(string thumbprint, string thumbprintAlgorithm, BinaryData data)
{
Argument.AssertNotNull(thumbprint, nameof(thumbprint));
Argument.AssertNotNull(thumbprintAlgorithm, nameof(thumbprintAlgorithm));
@@ -67,7 +67,7 @@ public BatchCertificate(string thumbprint, string thumbprintAlgorithm, string da
/// Initializes a new instance of .
/// The X.509 thumbprint of the Certificate. This is a sequence of up to 40 hex digits (it may include spaces but these are removed).
/// The algorithm used to derive the thumbprint. This must be sha1.
- /// The URL of the Certificate.
+ /// The URL of the Certificate.
/// The state of the Certificate.
/// The time at which the Certificate entered its current state.
/// The previous state of the Certificate. This property is not set if the Certificate is in its initial active state.
@@ -78,11 +78,11 @@ public BatchCertificate(string thumbprint, string thumbprintAlgorithm, string da
/// The format of the Certificate data.
/// The password to access the Certificate's private key. This must be omitted if the Certificate format is cer.
/// Keeps track of any properties unknown to the library.
- internal BatchCertificate(string thumbprint, string thumbprintAlgorithm, string url, BatchCertificateState? state, DateTimeOffset? stateTransitionTime, BatchCertificateState? previousState, DateTimeOffset? previousStateTransitionTime, string publicData, DeleteBatchCertificateError deleteCertificateError, string data, BatchCertificateFormat? certificateFormat, string password, IDictionary serializedAdditionalRawData)
+ internal BatchCertificate(string thumbprint, string thumbprintAlgorithm, Uri uri, BatchCertificateState? state, DateTimeOffset? stateTransitionTime, BatchCertificateState? previousState, DateTimeOffset? previousStateTransitionTime, string publicData, BatchCertificateDeleteError deleteCertificateError, BinaryData data, BatchCertificateFormat? certificateFormat, string password, IDictionary serializedAdditionalRawData)
{
Thumbprint = thumbprint;
ThumbprintAlgorithm = thumbprintAlgorithm;
- Url = url;
+ Uri = uri;
State = state;
StateTransitionTime = stateTransitionTime;
PreviousState = previousState;
@@ -105,7 +105,7 @@ internal BatchCertificate()
/// The algorithm used to derive the thumbprint. This must be sha1.
public string ThumbprintAlgorithm { get; set; }
/// The URL of the Certificate.
- public string Url { get; }
+ public Uri Uri { get; }
/// The state of the Certificate.
public BatchCertificateState? State { get; }
/// The time at which the Certificate entered its current state.
@@ -117,9 +117,24 @@ internal BatchCertificate()
/// The public part of the Certificate as a base-64 encoded .cer file.
public string PublicData { get; }
/// The error that occurred on the last attempt to delete this Certificate. This property is set only if the Certificate is in the DeleteFailed state.
- public DeleteBatchCertificateError DeleteCertificateError { get; }
- /// The base64-encoded contents of the Certificate. The maximum size is 10KB.
- public string Data { get; set; }
+ public BatchCertificateDeleteError DeleteCertificateError { get; }
+ ///
+ /// The base64-encoded contents of the Certificate. The maximum size is 10KB.
+ ///
+ /// To assign a byte[] to this property use .
+ /// The byte[] will be serialized to a Base64 encoded string.
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromBytes(new byte[] { 1, 2, 3 })
+ /// Creates a payload of "AQID".
+ ///
+ ///
+ ///
+ ///
+ public BinaryData Data { get; set; }
/// The format of the Certificate data.
public BatchCertificateFormat? CertificateFormat { get; set; }
/// The password to access the Certificate's private key. This must be omitted if the Certificate format is cer.
diff --git a/sdk/batch/Azure.Compute.Batch/src/Generated/DeleteBatchCertificateError.Serialization.cs b/sdk/batch/Azure.Compute.Batch/src/Generated/BatchCertificateDeleteError.Serialization.cs
similarity index 78%
rename from sdk/batch/Azure.Compute.Batch/src/Generated/DeleteBatchCertificateError.Serialization.cs
rename to sdk/batch/Azure.Compute.Batch/src/Generated/BatchCertificateDeleteError.Serialization.cs
index 0c139eeb767a..bff448acedbe 100644
--- a/sdk/batch/Azure.Compute.Batch/src/Generated/DeleteBatchCertificateError.Serialization.cs
+++ b/sdk/batch/Azure.Compute.Batch/src/Generated/BatchCertificateDeleteError.Serialization.cs
@@ -13,11 +13,11 @@
namespace Azure.Compute.Batch
{
- public partial class DeleteBatchCertificateError : IUtf8JsonSerializable, IJsonModel
+ public partial class BatchCertificateDeleteError : IUtf8JsonSerializable, IJsonModel
{
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
- void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
writer.WriteStartObject();
JsonModelWriteCore(writer, options);
@@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelR
/// The client options for reading and writing models.
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
if (format != "J")
{
- throw new FormatException($"The model {nameof(DeleteBatchCertificateError)} does not support writing '{format}' format.");
+ throw new FormatException($"The model {nameof(BatchCertificateDeleteError)} does not support writing '{format}' format.");
}
if (Optional.IsDefined(Code))
@@ -71,19 +71,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
}
- DeleteBatchCertificateError IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ BatchCertificateDeleteError IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
if (format != "J")
{
- throw new FormatException($"The model {nameof(DeleteBatchCertificateError)} does not support reading '{format}' format.");
+ throw new FormatException($"The model {nameof(BatchCertificateDeleteError)} does not support reading '{format}' format.");
}
using JsonDocument document = JsonDocument.ParseValue(ref reader);
- return DeserializeDeleteBatchCertificateError(document.RootElement, options);
+ return DeserializeBatchCertificateDeleteError(document.RootElement, options);
}
- internal static DeleteBatchCertificateError DeserializeDeleteBatchCertificateError(JsonElement element, ModelReaderWriterOptions options = null)
+ internal static BatchCertificateDeleteError DeserializeBatchCertificateDeleteError(JsonElement element, ModelReaderWriterOptions options = null)
{
options ??= ModelSerializationExtensions.WireOptions;
@@ -128,46 +128,46 @@ internal static DeleteBatchCertificateError DeserializeDeleteBatchCertificateErr
}
}
serializedAdditionalRawData = rawDataDictionary;
- return new DeleteBatchCertificateError(code, message, values ?? new ChangeTrackingList(), serializedAdditionalRawData);
+ return new BatchCertificateDeleteError(code, message, values ?? new ChangeTrackingList(), serializedAdditionalRawData);
}
- BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
switch (format)
{
case "J":
return ModelReaderWriter.Write(this, options, AzureComputeBatchContext.Default);
default:
- throw new FormatException($"The model {nameof(DeleteBatchCertificateError)} does not support writing '{options.Format}' format.");
+ throw new FormatException($"The model {nameof(BatchCertificateDeleteError)} does not support writing '{options.Format}' format.");
}
}
- DeleteBatchCertificateError IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ BatchCertificateDeleteError IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
switch (format)
{
case "J":
{
using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
- return DeserializeDeleteBatchCertificateError(document.RootElement, options);
+ return DeserializeBatchCertificateDeleteError(document.RootElement, options);
}
default:
- throw new FormatException($"The model {nameof(DeleteBatchCertificateError)} does not support reading '{options.Format}' format.");
+ throw new FormatException($"The model {nameof(BatchCertificateDeleteError)} does not support reading '{options.Format}' format.");
}
}
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
/// Deserializes the model from a raw response.
/// The response to deserialize the model from.
- internal static DeleteBatchCertificateError FromResponse(Response response)
+ internal static BatchCertificateDeleteError FromResponse(Response response)
{
using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
- return DeserializeDeleteBatchCertificateError(document.RootElement);
+ return DeserializeBatchCertificateDeleteError(document.RootElement);
}
/// Convert into a .
diff --git a/sdk/batch/Azure.Compute.Batch/src/Generated/DeleteBatchCertificateError.cs b/sdk/batch/Azure.Compute.Batch/src/Generated/BatchCertificateDeleteError.cs
similarity index 90%
rename from sdk/batch/Azure.Compute.Batch/src/Generated/DeleteBatchCertificateError.cs
rename to sdk/batch/Azure.Compute.Batch/src/Generated/BatchCertificateDeleteError.cs
index 78ecee1fc422..a731bc507c15 100644
--- a/sdk/batch/Azure.Compute.Batch/src/Generated/DeleteBatchCertificateError.cs
+++ b/sdk/batch/Azure.Compute.Batch/src/Generated/BatchCertificateDeleteError.cs
@@ -11,7 +11,7 @@
namespace Azure.Compute.Batch
{
/// An error encountered by the Batch service when deleting a Certificate.
- public partial class DeleteBatchCertificateError
+ public partial class BatchCertificateDeleteError
{
///
/// Keeps track of any properties unknown to the library.
@@ -45,18 +45,18 @@ public partial class DeleteBatchCertificateError
///
private IDictionary _serializedAdditionalRawData;
- /// Initializes a new instance of .
- internal DeleteBatchCertificateError()
+ /// Initializes a new instance of .
+ internal BatchCertificateDeleteError()
{
Values = new ChangeTrackingList();
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// An identifier for the Certificate deletion error. Codes are invariant and are intended to be consumed programmatically.
/// A message describing the Certificate deletion error, intended to be suitable for display in a user interface.
/// A list of additional error details related to the Certificate deletion error. This list includes details such as the active Pools and Compute Nodes referencing this Certificate. However, if a large number of resources reference the Certificate, the list contains only about the first hundred.
/// Keeps track of any properties unknown to the library.
- internal DeleteBatchCertificateError(string code, string message, IReadOnlyList values, IDictionary serializedAdditionalRawData)
+ internal BatchCertificateDeleteError(string code, string message, IReadOnlyList values, IDictionary serializedAdditionalRawData)
{
Code = code;
Message = message;
diff --git a/sdk/batch/Azure.Compute.Batch/src/Generated/BatchClient.cs b/sdk/batch/Azure.Compute.Batch/src/Generated/BatchClient.cs
index a206ff327f1e..db61c05082a9 100644
--- a/sdk/batch/Azure.Compute.Batch/src/Generated/BatchClient.cs
+++ b/sdk/batch/Azure.Compute.Batch/src/Generated/BatchClient.cs
@@ -65,7 +65,7 @@ public BatchClient(Uri endpoint, TokenCredential credential, BatchClientOptions
/// Gets information about the specified Application.
/// The ID of the Application.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -80,20 +80,20 @@ public BatchClient(Uri endpoint, TokenCredential credential, BatchClientOptions
/// available to Compute Nodes, use the Azure portal or the Azure Resource Manager
/// API.
///
- ///
- public virtual async Task> GetApplicationAsync(string applicationId, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, CancellationToken cancellationToken = default)
+ ///
+ public virtual async Task> GetApplicationAsync(string applicationId, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(applicationId, nameof(applicationId));
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = await GetApplicationAsync(applicationId, timeOutInSeconds, ocpdate, context).ConfigureAwait(false);
+ Response response = await GetApplicationAsync(applicationId, timeOutInSeconds, ocpDate, context).ConfigureAwait(false);
return Response.FromValue(BatchApplication.FromResponse(response), response);
}
/// Gets information about the specified Application.
/// The ID of the Application.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -108,13 +108,13 @@ public virtual async Task> GetApplicationAsync(string
/// available to Compute Nodes, use the Azure portal or the Azure Resource Manager
/// API.
///
- ///
- public virtual Response GetApplication(string applicationId, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, CancellationToken cancellationToken = default)
+ ///
+ public virtual Response GetApplication(string applicationId, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(applicationId, nameof(applicationId));
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = GetApplication(applicationId, timeOutInSeconds, ocpdate, context);
+ Response response = GetApplication(applicationId, timeOutInSeconds, ocpDate, context);
return Response.FromValue(BatchApplication.FromResponse(response), response);
}
@@ -128,14 +128,14 @@ public virtual Response GetApplication(string applicationId, i
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
///
/// The ID of the Application.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -145,8 +145,8 @@ public virtual Response GetApplication(string applicationId, i
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual async Task GetApplicationAsync(string applicationId, int? timeOutInSeconds, DateTimeOffset? ocpdate, RequestContext context)
+ ///
+ public virtual async Task GetApplicationAsync(string applicationId, TimeSpan? timeOutInSeconds, DateTimeOffset? ocpDate, RequestContext context)
{
Argument.AssertNotNullOrEmpty(applicationId, nameof(applicationId));
@@ -154,7 +154,7 @@ public virtual async Task GetApplicationAsync(string applicationId, in
scope.Start();
try
{
- using HttpMessage message = CreateGetApplicationRequest(applicationId, timeOutInSeconds, ocpdate, context);
+ using HttpMessage message = CreateGetApplicationRequest(applicationId, timeOutInSeconds, ocpDate, context);
return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
catch (Exception e)
@@ -174,14 +174,14 @@ public virtual async Task GetApplicationAsync(string applicationId, in
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
///
/// The ID of the Application.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -191,8 +191,8 @@ public virtual async Task GetApplicationAsync(string applicationId, in
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual Response GetApplication(string applicationId, int? timeOutInSeconds, DateTimeOffset? ocpdate, RequestContext context)
+ ///
+ public virtual Response GetApplication(string applicationId, TimeSpan? timeOutInSeconds, DateTimeOffset? ocpDate, RequestContext context)
{
Argument.AssertNotNullOrEmpty(applicationId, nameof(applicationId));
@@ -200,7 +200,7 @@ public virtual Response GetApplication(string applicationId, int? timeOutInSecon
scope.Start();
try
{
- using HttpMessage message = CreateGetApplicationRequest(applicationId, timeOutInSeconds, ocpdate, context);
+ using HttpMessage message = CreateGetApplicationRequest(applicationId, timeOutInSeconds, ocpDate, context);
return _pipeline.ProcessMessage(message, context);
}
catch (Exception e)
@@ -213,7 +213,7 @@ public virtual Response GetApplication(string applicationId, int? timeOutInSecon
/// Creates a Pool to the specified Account.
/// The Pool to be created.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -225,21 +225,21 @@ public virtual Response GetApplication(string applicationId, int? timeOutInSecon
/// secret project names. This information may appear in telemetry logs accessible
/// to Microsoft Support engineers.
///
- ///
- public virtual async Task CreatePoolAsync(BatchPoolCreateContent pool, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, CancellationToken cancellationToken = default)
+ ///
+ public virtual async Task CreatePoolAsync(BatchPoolCreateOptions pool, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(pool, nameof(pool));
using RequestContent content = pool.ToRequestContent();
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = await CreatePoolAsync(content, timeOutInSeconds, ocpdate, context).ConfigureAwait(false);
+ Response response = await CreatePoolAsync(content, timeOutInSeconds, ocpDate, context).ConfigureAwait(false);
return response;
}
/// Creates a Pool to the specified Account.
/// The Pool to be created.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -251,14 +251,14 @@ public virtual async Task CreatePoolAsync(BatchPoolCreateContent pool,
/// secret project names. This information may appear in telemetry logs accessible
/// to Microsoft Support engineers.
///
- ///
- public virtual Response CreatePool(BatchPoolCreateContent pool, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, CancellationToken cancellationToken = default)
+ ///
+ public virtual Response CreatePool(BatchPoolCreateOptions pool, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(pool, nameof(pool));
using RequestContent content = pool.ToRequestContent();
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = CreatePool(content, timeOutInSeconds, ocpdate, context);
+ Response response = CreatePool(content, timeOutInSeconds, ocpDate, context);
return response;
}
@@ -272,14 +272,14 @@ public virtual Response CreatePool(BatchPoolCreateContent pool, int? timeOutInSe
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
///
/// The content to send as the body of the request.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -288,8 +288,8 @@ public virtual Response CreatePool(BatchPoolCreateContent pool, int? timeOutInSe
/// is null.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual async Task CreatePoolAsync(RequestContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestContext context = null)
+ ///
+ public virtual async Task CreatePoolAsync(RequestContent content, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
{
Argument.AssertNotNull(content, nameof(content));
@@ -297,7 +297,7 @@ public virtual async Task CreatePoolAsync(RequestContent content, int?
scope.Start();
try
{
- using HttpMessage message = CreateCreatePoolRequest(content, timeOutInSeconds, ocpdate, context);
+ using HttpMessage message = CreateCreatePoolRequest(content, timeOutInSeconds, ocpDate, context);
return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
catch (Exception e)
@@ -317,14 +317,14 @@ public virtual async Task CreatePoolAsync(RequestContent content, int?
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
///
/// The content to send as the body of the request.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -333,8 +333,8 @@ public virtual async Task CreatePoolAsync(RequestContent content, int?
/// is null.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual Response CreatePool(RequestContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestContext context = null)
+ ///
+ public virtual Response CreatePool(RequestContent content, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
{
Argument.AssertNotNull(content, nameof(content));
@@ -342,7 +342,7 @@ public virtual Response CreatePool(RequestContent content, int? timeOutInSeconds
scope.Start();
try
{
- using HttpMessage message = CreateCreatePoolRequest(content, timeOutInSeconds, ocpdate, context);
+ using HttpMessage message = CreateCreatePoolRequest(content, timeOutInSeconds, ocpDate, context);
return _pipeline.ProcessMessage(message, context);
}
catch (Exception e)
@@ -365,7 +365,7 @@ public virtual Response CreatePool(RequestContent content, int? timeOutInSeconds
///
/// The ID of the Pool to get.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -376,16 +376,15 @@ public virtual Response CreatePool(RequestContent content, int? timeOutInSeconds
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual async Task DeletePoolAsync(string poolId, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, RequestContext context = null)
+ internal virtual async Task DeletePoolInternalAsync(string poolId, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
- using var scope = ClientDiagnostics.CreateScope("BatchClient.DeletePool");
+ using var scope = ClientDiagnostics.CreateScope("BatchClient.DeletePoolInternal");
scope.Start();
try
{
- using HttpMessage message = CreateDeletePoolRequest(poolId, timeOutInSeconds, ocpdate, requestConditions, context);
+ using HttpMessage message = CreateDeletePoolInternalRequest(poolId, timeOutInSeconds, ocpDate, requestConditions, context);
return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
catch (Exception e)
@@ -408,7 +407,7 @@ public virtual async Task DeletePoolAsync(string poolId, int? timeOutI
///
/// The ID of the Pool to get.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -419,16 +418,99 @@ public virtual async Task DeletePoolAsync(string poolId, int? timeOutI
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual Response DeletePool(string poolId, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, RequestContext context = null)
+ internal virtual Response DeletePoolInternal(string poolId, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
- using var scope = ClientDiagnostics.CreateScope("BatchClient.DeletePool");
+ using var scope = ClientDiagnostics.CreateScope("BatchClient.DeletePoolInternal");
scope.Start();
try
{
- using HttpMessage message = CreateDeletePoolRequest(poolId, timeOutInSeconds, ocpdate, requestConditions, context);
+ using HttpMessage message = CreateDeletePoolInternalRequest(poolId, timeOutInSeconds, ocpDate, requestConditions, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method
+ ///
+ /// [Protocol Method] Gets basic properties of a Pool.
+ ///
+ /// -
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool to get.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
+ ///
+ /// 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.
+ ///
+ /// The content to send as the request conditions of the request.
+ /// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ /// Service returned a non-success status code.
+ /// The response returned from the service.
+ internal virtual async Task PoolExistsAsync(string poolId, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+
+ using var scope = ClientDiagnostics.CreateScope("BatchClient.PoolExists");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreatePoolExistsRequest(poolId, timeOutInSeconds, ocpDate, requestConditions, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method
+ ///
+ /// [Protocol Method] Gets basic properties of a Pool.
+ ///
+ /// -
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool to get.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
+ ///
+ /// 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.
+ ///
+ /// The content to send as the request conditions of the request.
+ /// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ /// Service returned a non-success status code.
+ /// The response returned from the service.
+ internal virtual Response PoolExists(string poolId, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+
+ using var scope = ClientDiagnostics.CreateScope("BatchClient.PoolExists");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreatePoolExistsRequest(poolId, timeOutInSeconds, ocpDate, requestConditions, context);
return _pipeline.ProcessMessage(message, context);
}
catch (Exception e)
@@ -441,7 +523,7 @@ public virtual Response DeletePool(string poolId, int? timeOutInSeconds = null,
/// Gets information about the specified Pool.
/// The ID of the Pool to get.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -452,20 +534,20 @@ public virtual Response DeletePool(string poolId, int? timeOutInSeconds = null,
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
- ///
- public virtual async Task> GetPoolAsync(string poolId, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, IEnumerable select = null, IEnumerable expand = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
+ ///
+ public virtual async Task> GetPoolAsync(string poolId, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, IEnumerable select = null, IEnumerable expand = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = await GetPoolAsync(poolId, timeOutInSeconds, ocpdate, select, expand, requestConditions, context).ConfigureAwait(false);
+ Response response = await GetPoolAsync(poolId, timeOutInSeconds, ocpDate, select, expand, requestConditions, context).ConfigureAwait(false);
return Response.FromValue(BatchPool.FromResponse(response), response);
}
/// Gets information about the specified Pool.
/// The ID of the Pool to get.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -476,13 +558,13 @@ public virtual async Task> GetPoolAsync(string poolId, int?
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
- ///
- public virtual Response GetPool(string poolId, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, IEnumerable select = null, IEnumerable expand = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
+ ///
+ public virtual Response GetPool(string poolId, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, IEnumerable select = null, IEnumerable expand = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = GetPool(poolId, timeOutInSeconds, ocpdate, select, expand, requestConditions, context);
+ Response response = GetPool(poolId, timeOutInSeconds, ocpDate, select, expand, requestConditions, context);
return Response.FromValue(BatchPool.FromResponse(response), response);
}
@@ -496,14 +578,14 @@ public virtual Response GetPool(string poolId, int? timeOutInSeconds
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
///
/// The ID of the Pool to get.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -516,8 +598,8 @@ public virtual Response GetPool(string poolId, int? timeOutInSeconds
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual async Task GetPoolAsync(string poolId, int? timeOutInSeconds, DateTimeOffset? ocpdate, IEnumerable select, IEnumerable expand, RequestConditions requestConditions, RequestContext context)
+ ///
+ public virtual async Task GetPoolAsync(string poolId, TimeSpan? timeOutInSeconds, DateTimeOffset? ocpDate, IEnumerable select, IEnumerable expand, RequestConditions requestConditions, RequestContext context)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
@@ -525,7 +607,7 @@ public virtual async Task GetPoolAsync(string poolId, int? timeOutInSe
scope.Start();
try
{
- using HttpMessage message = CreateGetPoolRequest(poolId, timeOutInSeconds, ocpdate, select, expand, requestConditions, context);
+ using HttpMessage message = CreateGetPoolRequest(poolId, timeOutInSeconds, ocpDate, select, expand, requestConditions, context);
return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
catch (Exception e)
@@ -545,14 +627,14 @@ public virtual async Task GetPoolAsync(string poolId, int? timeOutInSe
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
///
/// The ID of the Pool to get.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -565,8 +647,8 @@ public virtual async Task GetPoolAsync(string poolId, int? timeOutInSe
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual Response GetPool(string poolId, int? timeOutInSeconds, DateTimeOffset? ocpdate, IEnumerable select, IEnumerable expand, RequestConditions requestConditions, RequestContext context)
+ ///
+ public virtual Response GetPool(string poolId, TimeSpan? timeOutInSeconds, DateTimeOffset? ocpDate, IEnumerable select, IEnumerable expand, RequestConditions requestConditions, RequestContext context)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
@@ -574,7 +656,7 @@ public virtual Response GetPool(string poolId, int? timeOutInSeconds, DateTimeOf
scope.Start();
try
{
- using HttpMessage message = CreateGetPoolRequest(poolId, timeOutInSeconds, ocpdate, select, expand, requestConditions, context);
+ using HttpMessage message = CreateGetPoolRequest(poolId, timeOutInSeconds, ocpDate, select, expand, requestConditions, context);
return _pipeline.ProcessMessage(message, context);
}
catch (Exception e)
@@ -597,7 +679,7 @@ public virtual Response GetPool(string poolId, int? timeOutInSeconds, DateTimeOf
/// The ID of the Pool to get.
/// The content to send as the body of the request.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -608,8 +690,8 @@ public virtual Response GetPool(string poolId, int? timeOutInSeconds, DateTimeOf
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual async Task UpdatePoolAsync(string poolId, RequestContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, RequestContext context = null)
+ ///
+ public virtual async Task UpdatePoolAsync(string poolId, RequestContent content, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
Argument.AssertNotNull(content, nameof(content));
@@ -618,7 +700,7 @@ public virtual async Task UpdatePoolAsync(string poolId, RequestConten
scope.Start();
try
{
- using HttpMessage message = CreateUpdatePoolRequest(poolId, content, timeOutInSeconds, ocpdate, requestConditions, context);
+ using HttpMessage message = CreateUpdatePoolRequest(poolId, content, timeOutInSeconds, ocpDate, requestConditions, context);
return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
catch (Exception e)
@@ -641,7 +723,7 @@ public virtual async Task UpdatePoolAsync(string poolId, RequestConten
/// The ID of the Pool to get.
/// The content to send as the body of the request.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -652,8 +734,8 @@ public virtual async Task UpdatePoolAsync(string poolId, RequestConten
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual Response UpdatePool(string poolId, RequestContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, RequestContext context = null)
+ ///
+ public virtual Response UpdatePool(string poolId, RequestContent content, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
Argument.AssertNotNull(content, nameof(content));
@@ -662,7 +744,7 @@ public virtual Response UpdatePool(string poolId, RequestContent content, int? t
scope.Start();
try
{
- using HttpMessage message = CreateUpdatePoolRequest(poolId, content, timeOutInSeconds, ocpdate, requestConditions, context);
+ using HttpMessage message = CreateUpdatePoolRequest(poolId, content, timeOutInSeconds, ocpDate, requestConditions, context);
return _pipeline.ProcessMessage(message, context);
}
catch (Exception e)
@@ -685,7 +767,7 @@ public virtual Response UpdatePool(string poolId, RequestContent content, int? t
///
/// The ID of the Pool on which to disable automatic scaling.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -695,8 +777,8 @@ public virtual Response UpdatePool(string poolId, RequestContent content, int? t
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual async Task DisablePoolAutoScaleAsync(string poolId, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestContext context = null)
+ ///
+ public virtual async Task DisablePoolAutoScaleAsync(string poolId, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
@@ -704,7 +786,7 @@ public virtual async Task DisablePoolAutoScaleAsync(string poolId, int
scope.Start();
try
{
- using HttpMessage message = CreateDisablePoolAutoScaleRequest(poolId, timeOutInSeconds, ocpdate, context);
+ using HttpMessage message = CreateDisablePoolAutoScaleRequest(poolId, timeOutInSeconds, ocpDate, context);
return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
catch (Exception e)
@@ -727,7 +809,7 @@ public virtual async Task DisablePoolAutoScaleAsync(string poolId, int
///
/// The ID of the Pool on which to disable automatic scaling.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -737,8 +819,8 @@ public virtual async Task DisablePoolAutoScaleAsync(string poolId, int
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual Response DisablePoolAutoScale(string poolId, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestContext context = null)
+ ///
+ public virtual Response DisablePoolAutoScale(string poolId, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
@@ -746,7 +828,7 @@ public virtual Response DisablePoolAutoScale(string poolId, int? timeOutInSecond
scope.Start();
try
{
- using HttpMessage message = CreateDisablePoolAutoScaleRequest(poolId, timeOutInSeconds, ocpdate, context);
+ using HttpMessage message = CreateDisablePoolAutoScaleRequest(poolId, timeOutInSeconds, ocpDate, context);
return _pipeline.ProcessMessage(message, context);
}
catch (Exception e)
@@ -758,16 +840,16 @@ public virtual Response DisablePoolAutoScale(string poolId, int? timeOutInSecond
/// Enables automatic scaling for a Pool.
/// The ID of the Pool to get.
- /// The options to use for enabling automatic scaling.
+ /// The options to use for enabling automatic scaling.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
///
/// The content to send as the request conditions of the request.
/// The cancellation token to use.
- /// or is null.
+ /// or is null.
/// is an empty string, and was expected to be non-empty.
///
/// You cannot enable automatic scaling on a Pool if a resize operation is in
@@ -777,30 +859,30 @@ public virtual Response DisablePoolAutoScale(string poolId, int? timeOutInSecond
/// and/or a new evaluation interval. You cannot call this API for the same Pool
/// more than once every 30 seconds.
///
- ///
- public virtual async Task EnablePoolAutoScaleAsync(string poolId, BatchPoolEnableAutoScaleContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
+ ///
+ public virtual async Task EnablePoolAutoScaleAsync(string poolId, BatchPoolAutoScaleEnableOptions enableAutoScaleOptions, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
- Argument.AssertNotNull(content, nameof(content));
+ Argument.AssertNotNull(enableAutoScaleOptions, nameof(enableAutoScaleOptions));
- using RequestContent content0 = content.ToRequestContent();
+ using RequestContent content = enableAutoScaleOptions.ToRequestContent();
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = await EnablePoolAutoScaleAsync(poolId, content0, timeOutInSeconds, ocpdate, requestConditions, context).ConfigureAwait(false);
+ Response response = await EnablePoolAutoScaleAsync(poolId, content, timeOutInSeconds, ocpDate, requestConditions, context).ConfigureAwait(false);
return response;
}
/// Enables automatic scaling for a Pool.
/// The ID of the Pool to get.
- /// The options to use for enabling automatic scaling.
+ /// The options to use for enabling automatic scaling.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
///
/// The content to send as the request conditions of the request.
/// The cancellation token to use.
- /// or is null.
+ /// or is null.
/// is an empty string, and was expected to be non-empty.
///
/// You cannot enable automatic scaling on a Pool if a resize operation is in
@@ -810,15 +892,15 @@ public virtual async Task EnablePoolAutoScaleAsync(string poolId, Batc
/// and/or a new evaluation interval. You cannot call this API for the same Pool
/// more than once every 30 seconds.
///
- ///
- public virtual Response EnablePoolAutoScale(string poolId, BatchPoolEnableAutoScaleContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
+ ///
+ public virtual Response EnablePoolAutoScale(string poolId, BatchPoolAutoScaleEnableOptions enableAutoScaleOptions, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
- Argument.AssertNotNull(content, nameof(content));
+ Argument.AssertNotNull(enableAutoScaleOptions, nameof(enableAutoScaleOptions));
- using RequestContent content0 = content.ToRequestContent();
+ using RequestContent content = enableAutoScaleOptions.ToRequestContent();
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = EnablePoolAutoScale(poolId, content0, timeOutInSeconds, ocpdate, requestConditions, context);
+ Response response = EnablePoolAutoScale(poolId, content, timeOutInSeconds, ocpDate, requestConditions, context);
return response;
}
@@ -832,7 +914,7 @@ public virtual Response EnablePoolAutoScale(string poolId, BatchPoolEnableAutoSc
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
@@ -840,7 +922,7 @@ public virtual Response EnablePoolAutoScale(string poolId, BatchPoolEnableAutoSc
/// The ID of the Pool to get.
/// The content to send as the body of the request.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -851,8 +933,8 @@ public virtual Response EnablePoolAutoScale(string poolId, BatchPoolEnableAutoSc
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual async Task EnablePoolAutoScaleAsync(string poolId, RequestContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, RequestContext context = null)
+ ///
+ public virtual async Task EnablePoolAutoScaleAsync(string poolId, RequestContent content, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
Argument.AssertNotNull(content, nameof(content));
@@ -861,7 +943,7 @@ public virtual async Task EnablePoolAutoScaleAsync(string poolId, Requ
scope.Start();
try
{
- using HttpMessage message = CreateEnablePoolAutoScaleRequest(poolId, content, timeOutInSeconds, ocpdate, requestConditions, context);
+ using HttpMessage message = CreateEnablePoolAutoScaleRequest(poolId, content, timeOutInSeconds, ocpDate, requestConditions, context);
return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
catch (Exception e)
@@ -881,7 +963,7 @@ public virtual async Task EnablePoolAutoScaleAsync(string poolId, Requ
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
@@ -889,7 +971,7 @@ public virtual async Task EnablePoolAutoScaleAsync(string poolId, Requ
/// The ID of the Pool to get.
/// The content to send as the body of the request.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -900,8 +982,8 @@ public virtual async Task EnablePoolAutoScaleAsync(string poolId, Requ
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual Response EnablePoolAutoScale(string poolId, RequestContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, RequestContext context = null)
+ ///
+ public virtual Response EnablePoolAutoScale(string poolId, RequestContent content, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
Argument.AssertNotNull(content, nameof(content));
@@ -910,7 +992,7 @@ public virtual Response EnablePoolAutoScale(string poolId, RequestContent conten
scope.Start();
try
{
- using HttpMessage message = CreateEnablePoolAutoScaleRequest(poolId, content, timeOutInSeconds, ocpdate, requestConditions, context);
+ using HttpMessage message = CreateEnablePoolAutoScaleRequest(poolId, content, timeOutInSeconds, ocpDate, requestConditions, context);
return _pipeline.ProcessMessage(message, context);
}
catch (Exception e)
@@ -922,59 +1004,59 @@ public virtual Response EnablePoolAutoScale(string poolId, RequestContent conten
/// Gets the result of evaluating an automatic scaling formula on the Pool.
/// The ID of the Pool on which to evaluate the automatic scaling formula.
- /// The options to use for evaluating the automatic scaling formula.
+ /// The options to use for evaluating the automatic scaling formula.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
///
/// The cancellation token to use.
- /// or is null.
+ /// or is null.
/// is an empty string, and was expected to be non-empty.
///
/// This API is primarily for validating an autoscale formula, as it simply returns
/// the result without applying the formula to the Pool. The Pool must have auto
/// scaling enabled in order to evaluate a formula.
///
- ///
- public virtual async Task> EvaluatePoolAutoScaleAsync(string poolId, BatchPoolEvaluateAutoScaleContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, CancellationToken cancellationToken = default)
+ ///
+ public virtual async Task> EvaluatePoolAutoScaleAsync(string poolId, BatchPoolAutoScaleEvaluateOptions evaluateAutoScaleOptions, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
- Argument.AssertNotNull(content, nameof(content));
+ Argument.AssertNotNull(evaluateAutoScaleOptions, nameof(evaluateAutoScaleOptions));
- using RequestContent content0 = content.ToRequestContent();
+ using RequestContent content = evaluateAutoScaleOptions.ToRequestContent();
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = await EvaluatePoolAutoScaleAsync(poolId, content0, timeOutInSeconds, ocpdate, context).ConfigureAwait(false);
+ Response response = await EvaluatePoolAutoScaleAsync(poolId, content, timeOutInSeconds, ocpDate, context).ConfigureAwait(false);
return Response.FromValue(AutoScaleRun.FromResponse(response), response);
}
/// Gets the result of evaluating an automatic scaling formula on the Pool.
/// The ID of the Pool on which to evaluate the automatic scaling formula.
- /// The options to use for evaluating the automatic scaling formula.
+ /// The options to use for evaluating the automatic scaling formula.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
///
/// The cancellation token to use.
- /// or is null.
+ /// or is null.
/// is an empty string, and was expected to be non-empty.
///
/// This API is primarily for validating an autoscale formula, as it simply returns
/// the result without applying the formula to the Pool. The Pool must have auto
/// scaling enabled in order to evaluate a formula.
///
- ///
- public virtual Response EvaluatePoolAutoScale(string poolId, BatchPoolEvaluateAutoScaleContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, CancellationToken cancellationToken = default)
+ ///
+ public virtual Response EvaluatePoolAutoScale(string poolId, BatchPoolAutoScaleEvaluateOptions evaluateAutoScaleOptions, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
- Argument.AssertNotNull(content, nameof(content));
+ Argument.AssertNotNull(evaluateAutoScaleOptions, nameof(evaluateAutoScaleOptions));
- using RequestContent content0 = content.ToRequestContent();
+ using RequestContent content = evaluateAutoScaleOptions.ToRequestContent();
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = EvaluatePoolAutoScale(poolId, content0, timeOutInSeconds, ocpdate, context);
+ Response response = EvaluatePoolAutoScale(poolId, content, timeOutInSeconds, ocpDate, context);
return Response.FromValue(AutoScaleRun.FromResponse(response), response);
}
@@ -988,7 +1070,7 @@ public virtual Response EvaluatePoolAutoScale(string poolId, Batch
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
@@ -996,7 +1078,7 @@ public virtual Response EvaluatePoolAutoScale(string poolId, Batch
/// The ID of the Pool on which to evaluate the automatic scaling formula.
/// The content to send as the body of the request.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1006,8 +1088,8 @@ public virtual Response EvaluatePoolAutoScale(string poolId, Batch
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual async Task EvaluatePoolAutoScaleAsync(string poolId, RequestContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestContext context = null)
+ ///
+ public virtual async Task EvaluatePoolAutoScaleAsync(string poolId, RequestContent content, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
Argument.AssertNotNull(content, nameof(content));
@@ -1016,7 +1098,7 @@ public virtual async Task EvaluatePoolAutoScaleAsync(string poolId, Re
scope.Start();
try
{
- using HttpMessage message = CreateEvaluatePoolAutoScaleRequest(poolId, content, timeOutInSeconds, ocpdate, context);
+ using HttpMessage message = CreateEvaluatePoolAutoScaleRequest(poolId, content, timeOutInSeconds, ocpDate, context);
return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
catch (Exception e)
@@ -1036,7 +1118,7 @@ public virtual async Task EvaluatePoolAutoScaleAsync(string poolId, Re
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
@@ -1044,7 +1126,7 @@ public virtual async Task EvaluatePoolAutoScaleAsync(string poolId, Re
/// The ID of the Pool on which to evaluate the automatic scaling formula.
/// The content to send as the body of the request.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1054,8 +1136,8 @@ public virtual async Task EvaluatePoolAutoScaleAsync(string poolId, Re
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual Response EvaluatePoolAutoScale(string poolId, RequestContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestContext context = null)
+ ///
+ public virtual Response EvaluatePoolAutoScale(string poolId, RequestContent content, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
Argument.AssertNotNull(content, nameof(content));
@@ -1064,7 +1146,7 @@ public virtual Response EvaluatePoolAutoScale(string poolId, RequestContent cont
scope.Start();
try
{
- using HttpMessage message = CreateEvaluatePoolAutoScaleRequest(poolId, content, timeOutInSeconds, ocpdate, context);
+ using HttpMessage message = CreateEvaluatePoolAutoScaleRequest(poolId, content, timeOutInSeconds, ocpDate, context);
return _pipeline.ProcessMessage(message, context);
}
catch (Exception e)
@@ -1076,16 +1158,16 @@ public virtual Response EvaluatePoolAutoScale(string poolId, RequestContent cont
/// Changes the number of Compute Nodes that are assigned to a Pool.
/// The ID of the Pool to get.
- /// The options to use for resizing the pool.
+ /// The options to use for resizing the pool.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
///
/// The content to send as the request conditions of the request.
/// The cancellation token to use.
- /// or is null.
+ /// or is null.
/// is an empty string, and was expected to be non-empty.
///
/// You can only resize a Pool when its allocation state is steady. If the Pool is
@@ -1096,30 +1178,29 @@ public virtual Response EvaluatePoolAutoScale(string poolId, RequestContent cont
/// Batch service chooses which Compute Nodes to remove. To remove specific Compute
/// Nodes, use the Pool remove Compute Nodes API instead.
///
- ///
- public virtual async Task ResizePoolAsync(string poolId, BatchPoolResizeContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
+ internal virtual async Task ResizePoolInternalAsync(string poolId, BatchPoolResizeOptions resizeOptions, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
- Argument.AssertNotNull(content, nameof(content));
+ Argument.AssertNotNull(resizeOptions, nameof(resizeOptions));
- using RequestContent content0 = content.ToRequestContent();
+ using RequestContent content = resizeOptions.ToRequestContent();
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = await ResizePoolAsync(poolId, content0, timeOutInSeconds, ocpdate, requestConditions, context).ConfigureAwait(false);
+ Response response = await ResizePoolInternalAsync(poolId, content, timeOutInSeconds, ocpDate, requestConditions, context).ConfigureAwait(false);
return response;
}
/// Changes the number of Compute Nodes that are assigned to a Pool.
/// The ID of the Pool to get.
- /// The options to use for resizing the pool.
+ /// The options to use for resizing the pool.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
///
/// The content to send as the request conditions of the request.
/// The cancellation token to use.
- /// or is null.
+ /// or is null.
/// is an empty string, and was expected to be non-empty.
///
/// You can only resize a Pool when its allocation state is steady. If the Pool is
@@ -1130,15 +1211,14 @@ public virtual async Task ResizePoolAsync(string poolId, BatchPoolResi
/// Batch service chooses which Compute Nodes to remove. To remove specific Compute
/// Nodes, use the Pool remove Compute Nodes API instead.
///
- ///
- public virtual Response ResizePool(string poolId, BatchPoolResizeContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
+ internal virtual Response ResizePoolInternal(string poolId, BatchPoolResizeOptions resizeOptions, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
- Argument.AssertNotNull(content, nameof(content));
+ Argument.AssertNotNull(resizeOptions, nameof(resizeOptions));
- using RequestContent content0 = content.ToRequestContent();
+ using RequestContent content = resizeOptions.ToRequestContent();
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = ResizePool(poolId, content0, timeOutInSeconds, ocpdate, requestConditions, context);
+ Response response = ResizePoolInternal(poolId, content, timeOutInSeconds, ocpDate, requestConditions, context);
return response;
}
@@ -1152,7 +1232,7 @@ public virtual Response ResizePool(string poolId, BatchPoolResizeContent content
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
@@ -1160,7 +1240,7 @@ public virtual Response ResizePool(string poolId, BatchPoolResizeContent content
/// The ID of the Pool to get.
/// The content to send as the body of the request.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1171,17 +1251,16 @@ public virtual Response ResizePool(string poolId, BatchPoolResizeContent content
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual async Task ResizePoolAsync(string poolId, RequestContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, RequestContext context = null)
+ internal virtual async Task ResizePoolInternalAsync(string poolId, RequestContent content, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
Argument.AssertNotNull(content, nameof(content));
- using var scope = ClientDiagnostics.CreateScope("BatchClient.ResizePool");
+ using var scope = ClientDiagnostics.CreateScope("BatchClient.ResizePoolInternal");
scope.Start();
try
{
- using HttpMessage message = CreateResizePoolRequest(poolId, content, timeOutInSeconds, ocpdate, requestConditions, context);
+ using HttpMessage message = CreateResizePoolInternalRequest(poolId, content, timeOutInSeconds, ocpDate, requestConditions, context);
return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
catch (Exception e)
@@ -1201,7 +1280,7 @@ public virtual async Task ResizePoolAsync(string poolId, RequestConten
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
@@ -1209,7 +1288,7 @@ public virtual async Task ResizePoolAsync(string poolId, RequestConten
/// The ID of the Pool to get.
/// The content to send as the body of the request.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1220,17 +1299,16 @@ public virtual async Task ResizePoolAsync(string poolId, RequestConten
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual Response ResizePool(string poolId, RequestContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, RequestContext context = null)
+ internal virtual Response ResizePoolInternal(string poolId, RequestContent content, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
Argument.AssertNotNull(content, nameof(content));
- using var scope = ClientDiagnostics.CreateScope("BatchClient.ResizePool");
+ using var scope = ClientDiagnostics.CreateScope("BatchClient.ResizePoolInternal");
scope.Start();
try
{
- using HttpMessage message = CreateResizePoolRequest(poolId, content, timeOutInSeconds, ocpdate, requestConditions, context);
+ using HttpMessage message = CreateResizePoolInternalRequest(poolId, content, timeOutInSeconds, ocpDate, requestConditions, context);
return _pipeline.ProcessMessage(message, context);
}
catch (Exception e)
@@ -1253,7 +1331,7 @@ public virtual Response ResizePool(string poolId, RequestContent content, int? t
///
/// The ID of the Pool to get.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1264,16 +1342,15 @@ public virtual Response ResizePool(string poolId, RequestContent content, int? t
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual async Task StopPoolResizeAsync(string poolId, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, RequestContext context = null)
+ internal virtual async Task StopPoolResizeInternalAsync(string poolId, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
- using var scope = ClientDiagnostics.CreateScope("BatchClient.StopPoolResize");
+ using var scope = ClientDiagnostics.CreateScope("BatchClient.StopPoolResizeInternal");
scope.Start();
try
{
- using HttpMessage message = CreateStopPoolResizeRequest(poolId, timeOutInSeconds, ocpdate, requestConditions, context);
+ using HttpMessage message = CreateStopPoolResizeInternalRequest(poolId, timeOutInSeconds, ocpDate, requestConditions, context);
return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
catch (Exception e)
@@ -1296,7 +1373,7 @@ public virtual async Task StopPoolResizeAsync(string poolId, int? time
///
/// The ID of the Pool to get.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1307,16 +1384,15 @@ public virtual async Task StopPoolResizeAsync(string poolId, int? time
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual Response StopPoolResize(string poolId, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, RequestContext context = null)
+ internal virtual Response StopPoolResizeInternal(string poolId, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
- using var scope = ClientDiagnostics.CreateScope("BatchClient.StopPoolResize");
+ using var scope = ClientDiagnostics.CreateScope("BatchClient.StopPoolResizeInternal");
scope.Start();
try
{
- using HttpMessage message = CreateStopPoolResizeRequest(poolId, timeOutInSeconds, ocpdate, requestConditions, context);
+ using HttpMessage message = CreateStopPoolResizeInternalRequest(poolId, timeOutInSeconds, ocpDate, requestConditions, context);
return _pipeline.ProcessMessage(message, context);
}
catch (Exception e)
@@ -1330,7 +1406,7 @@ public virtual Response StopPoolResize(string poolId, int? timeOutInSeconds = nu
/// The ID of the Pool to update.
/// The options to use for replacing properties on the pool.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1343,15 +1419,15 @@ public virtual Response StopPoolResize(string poolId, int? timeOutInSeconds = nu
/// the Pool has a StartTask associated with it and if StartTask is not specified
/// with this request, then the Batch service will remove the existing StartTask.
///
- ///
- public virtual async Task ReplacePoolPropertiesAsync(string poolId, BatchPoolReplaceContent pool, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, CancellationToken cancellationToken = default)
+ ///
+ public virtual async Task ReplacePoolPropertiesAsync(string poolId, BatchPoolReplaceOptions pool, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
Argument.AssertNotNull(pool, nameof(pool));
using RequestContent content = pool.ToRequestContent();
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = await ReplacePoolPropertiesAsync(poolId, content, timeOutInSeconds, ocpdate, context).ConfigureAwait(false);
+ Response response = await ReplacePoolPropertiesAsync(poolId, content, timeOutInSeconds, ocpDate, context).ConfigureAwait(false);
return response;
}
@@ -1359,7 +1435,7 @@ public virtual async Task ReplacePoolPropertiesAsync(string poolId, Ba
/// The ID of the Pool to update.
/// The options to use for replacing properties on the pool.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1372,15 +1448,15 @@ public virtual async Task ReplacePoolPropertiesAsync(string poolId, Ba
/// the Pool has a StartTask associated with it and if StartTask is not specified
/// with this request, then the Batch service will remove the existing StartTask.
///
- ///
- public virtual Response ReplacePoolProperties(string poolId, BatchPoolReplaceContent pool, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, CancellationToken cancellationToken = default)
+ ///
+ public virtual Response ReplacePoolProperties(string poolId, BatchPoolReplaceOptions pool, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
Argument.AssertNotNull(pool, nameof(pool));
using RequestContent content = pool.ToRequestContent();
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = ReplacePoolProperties(poolId, content, timeOutInSeconds, ocpdate, context);
+ Response response = ReplacePoolProperties(poolId, content, timeOutInSeconds, ocpDate, context);
return response;
}
@@ -1394,7 +1470,7 @@ public virtual Response ReplacePoolProperties(string poolId, BatchPoolReplaceCon
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
@@ -1402,7 +1478,7 @@ public virtual Response ReplacePoolProperties(string poolId, BatchPoolReplaceCon
/// The ID of the Pool to update.
/// The content to send as the body of the request.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1412,8 +1488,8 @@ public virtual Response ReplacePoolProperties(string poolId, BatchPoolReplaceCon
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual async Task ReplacePoolPropertiesAsync(string poolId, RequestContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestContext context = null)
+ ///
+ public virtual async Task ReplacePoolPropertiesAsync(string poolId, RequestContent content, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
Argument.AssertNotNull(content, nameof(content));
@@ -1422,7 +1498,7 @@ public virtual async Task ReplacePoolPropertiesAsync(string poolId, Re
scope.Start();
try
{
- using HttpMessage message = CreateReplacePoolPropertiesRequest(poolId, content, timeOutInSeconds, ocpdate, context);
+ using HttpMessage message = CreateReplacePoolPropertiesRequest(poolId, content, timeOutInSeconds, ocpDate, context);
return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
catch (Exception e)
@@ -1442,7 +1518,7 @@ public virtual async Task ReplacePoolPropertiesAsync(string poolId, Re
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
@@ -1450,7 +1526,7 @@ public virtual async Task ReplacePoolPropertiesAsync(string poolId, Re
/// The ID of the Pool to update.
/// The content to send as the body of the request.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1460,8 +1536,8 @@ public virtual async Task ReplacePoolPropertiesAsync(string poolId, Re
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual Response ReplacePoolProperties(string poolId, RequestContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestContext context = null)
+ ///
+ public virtual Response ReplacePoolProperties(string poolId, RequestContent content, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
Argument.AssertNotNull(content, nameof(content));
@@ -1470,7 +1546,7 @@ public virtual Response ReplacePoolProperties(string poolId, RequestContent cont
scope.Start();
try
{
- using HttpMessage message = CreateReplacePoolPropertiesRequest(poolId, content, timeOutInSeconds, ocpdate, context);
+ using HttpMessage message = CreateReplacePoolPropertiesRequest(poolId, content, timeOutInSeconds, ocpDate, context);
return _pipeline.ProcessMessage(message, context);
}
catch (Exception e)
@@ -1482,61 +1558,59 @@ public virtual Response ReplacePoolProperties(string poolId, RequestContent cont
/// Removes Compute Nodes from the specified Pool.
/// The ID of the Pool to get.
- /// The options to use for removing the node.
+ /// The options to use for removing the node.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
///
/// The content to send as the request conditions of the request.
/// The cancellation token to use.
- /// or is null.
+ /// or is null.
/// is an empty string, and was expected to be non-empty.
///
/// This operation can only run when the allocation state of the Pool is steady.
/// When this operation runs, the allocation state changes from steady to resizing.
/// Each request may remove up to 100 nodes.
///
- ///
- public virtual async Task RemoveNodesAsync(string poolId, BatchNodeRemoveContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
+ internal virtual async Task RemoveNodesInternalAsync(string poolId, BatchNodeRemoveOptions removeOptions, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
- Argument.AssertNotNull(content, nameof(content));
+ Argument.AssertNotNull(removeOptions, nameof(removeOptions));
- using RequestContent content0 = content.ToRequestContent();
+ using RequestContent content = removeOptions.ToRequestContent();
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = await RemoveNodesAsync(poolId, content0, timeOutInSeconds, ocpdate, requestConditions, context).ConfigureAwait(false);
+ Response response = await RemoveNodesInternalAsync(poolId, content, timeOutInSeconds, ocpDate, requestConditions, context).ConfigureAwait(false);
return response;
}
/// Removes Compute Nodes from the specified Pool.
/// The ID of the Pool to get.
- /// The options to use for removing the node.
+ /// The options to use for removing the node.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
///
/// The content to send as the request conditions of the request.
/// The cancellation token to use.
- /// or is null.
+ /// or is null.
/// is an empty string, and was expected to be non-empty.
///
/// This operation can only run when the allocation state of the Pool is steady.
/// When this operation runs, the allocation state changes from steady to resizing.
/// Each request may remove up to 100 nodes.
///
- ///
- public virtual Response RemoveNodes(string poolId, BatchNodeRemoveContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
+ internal virtual Response RemoveNodesInternal(string poolId, BatchNodeRemoveOptions removeOptions, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
- Argument.AssertNotNull(content, nameof(content));
+ Argument.AssertNotNull(removeOptions, nameof(removeOptions));
- using RequestContent content0 = content.ToRequestContent();
+ using RequestContent content = removeOptions.ToRequestContent();
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = RemoveNodes(poolId, content0, timeOutInSeconds, ocpdate, requestConditions, context);
+ Response response = RemoveNodesInternal(poolId, content, timeOutInSeconds, ocpDate, requestConditions, context);
return response;
}
@@ -1550,7 +1624,7 @@ public virtual Response RemoveNodes(string poolId, BatchNodeRemoveContent conten
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
@@ -1558,7 +1632,7 @@ public virtual Response RemoveNodes(string poolId, BatchNodeRemoveContent conten
/// The ID of the Pool to get.
/// The content to send as the body of the request.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1569,17 +1643,16 @@ public virtual Response RemoveNodes(string poolId, BatchNodeRemoveContent conten
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual async Task RemoveNodesAsync(string poolId, RequestContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, RequestContext context = null)
+ internal virtual async Task RemoveNodesInternalAsync(string poolId, RequestContent content, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
Argument.AssertNotNull(content, nameof(content));
- using var scope = ClientDiagnostics.CreateScope("BatchClient.RemoveNodes");
+ using var scope = ClientDiagnostics.CreateScope("BatchClient.RemoveNodesInternal");
scope.Start();
try
{
- using HttpMessage message = CreateRemoveNodesRequest(poolId, content, timeOutInSeconds, ocpdate, requestConditions, context);
+ using HttpMessage message = CreateRemoveNodesInternalRequest(poolId, content, timeOutInSeconds, ocpDate, requestConditions, context);
return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
catch (Exception e)
@@ -1599,7 +1672,7 @@ public virtual async Task RemoveNodesAsync(string poolId, RequestConte
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
@@ -1607,7 +1680,7 @@ public virtual async Task RemoveNodesAsync(string poolId, RequestConte
/// The ID of the Pool to get.
/// The content to send as the body of the request.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1618,17 +1691,16 @@ public virtual async Task RemoveNodesAsync(string poolId, RequestConte
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual Response RemoveNodes(string poolId, RequestContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, RequestContext context = null)
+ internal virtual Response RemoveNodesInternal(string poolId, RequestContent content, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
Argument.AssertNotNull(content, nameof(content));
- using var scope = ClientDiagnostics.CreateScope("BatchClient.RemoveNodes");
+ using var scope = ClientDiagnostics.CreateScope("BatchClient.RemoveNodesInternal");
scope.Start();
try
{
- using HttpMessage message = CreateRemoveNodesRequest(poolId, content, timeOutInSeconds, ocpdate, requestConditions, context);
+ using HttpMessage message = CreateRemoveNodesInternalRequest(poolId, content, timeOutInSeconds, ocpDate, requestConditions, context);
return _pipeline.ProcessMessage(message, context);
}
catch (Exception e)
@@ -1651,7 +1723,7 @@ public virtual Response RemoveNodes(string poolId, RequestContent content, int?
///
/// The ID of the Job to delete.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1663,16 +1735,15 @@ public virtual Response RemoveNodes(string poolId, RequestContent content, int?
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual async Task DeleteJobAsync(string jobId, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, bool? force = null, RequestConditions requestConditions = null, RequestContext context = null)
+ internal virtual async Task DeleteJobInternalAsync(string jobId, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, bool? force = null, RequestConditions requestConditions = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
- using var scope = ClientDiagnostics.CreateScope("BatchClient.DeleteJob");
+ using var scope = ClientDiagnostics.CreateScope("BatchClient.DeleteJobInternal");
scope.Start();
try
{
- using HttpMessage message = CreateDeleteJobRequest(jobId, timeOutInSeconds, ocpdate, force, requestConditions, context);
+ using HttpMessage message = CreateDeleteJobInternalRequest(jobId, timeOutInSeconds, ocpDate, force, requestConditions, context);
return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
catch (Exception e)
@@ -1695,7 +1766,7 @@ public virtual async Task DeleteJobAsync(string jobId, int? timeOutInS
///
/// The ID of the Job to delete.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1707,16 +1778,15 @@ public virtual async Task DeleteJobAsync(string jobId, int? timeOutInS
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual Response DeleteJob(string jobId, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, bool? force = null, RequestConditions requestConditions = null, RequestContext context = null)
+ internal virtual Response DeleteJobInternal(string jobId, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, bool? force = null, RequestConditions requestConditions = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
- using var scope = ClientDiagnostics.CreateScope("BatchClient.DeleteJob");
+ using var scope = ClientDiagnostics.CreateScope("BatchClient.DeleteJobInternal");
scope.Start();
try
{
- using HttpMessage message = CreateDeleteJobRequest(jobId, timeOutInSeconds, ocpdate, force, requestConditions, context);
+ using HttpMessage message = CreateDeleteJobInternalRequest(jobId, timeOutInSeconds, ocpDate, force, requestConditions, context);
return _pipeline.ProcessMessage(message, context);
}
catch (Exception e)
@@ -1729,7 +1799,7 @@ public virtual Response DeleteJob(string jobId, int? timeOutInSeconds = null, Da
/// Gets information about the specified Job.
/// The ID of the Job.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1740,20 +1810,20 @@ public virtual Response DeleteJob(string jobId, int? timeOutInSeconds = null, Da
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
- ///
- public virtual async Task> GetJobAsync(string jobId, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, IEnumerable select = null, IEnumerable expand = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
+ ///
+ public virtual async Task> GetJobAsync(string jobId, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, IEnumerable select = null, IEnumerable expand = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = await GetJobAsync(jobId, timeOutInSeconds, ocpdate, select, expand, requestConditions, context).ConfigureAwait(false);
+ Response response = await GetJobAsync(jobId, timeOutInSeconds, ocpDate, select, expand, requestConditions, context).ConfigureAwait(false);
return Response.FromValue(BatchJob.FromResponse(response), response);
}
/// Gets information about the specified Job.
/// The ID of the Job.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1764,13 +1834,13 @@ public virtual async Task> GetJobAsync(string jobId, int? tim
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
- ///
- public virtual Response GetJob(string jobId, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, IEnumerable select = null, IEnumerable expand = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
+ ///
+ public virtual Response GetJob(string jobId, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, IEnumerable select = null, IEnumerable expand = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = GetJob(jobId, timeOutInSeconds, ocpdate, select, expand, requestConditions, context);
+ Response response = GetJob(jobId, timeOutInSeconds, ocpDate, select, expand, requestConditions, context);
return Response.FromValue(BatchJob.FromResponse(response), response);
}
@@ -1784,14 +1854,14 @@ public virtual Response GetJob(string jobId, int? timeOutInSeconds = n
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
///
/// The ID of the Job.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1804,8 +1874,8 @@ public virtual Response GetJob(string jobId, int? timeOutInSeconds = n
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual async Task GetJobAsync(string jobId, int? timeOutInSeconds, DateTimeOffset? ocpdate, IEnumerable select, IEnumerable expand, RequestConditions requestConditions, RequestContext context)
+ ///
+ public virtual async Task GetJobAsync(string jobId, TimeSpan? timeOutInSeconds, DateTimeOffset? ocpDate, IEnumerable select, IEnumerable expand, RequestConditions requestConditions, RequestContext context)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
@@ -1813,7 +1883,7 @@ public virtual async Task GetJobAsync(string jobId, int? timeOutInSeco
scope.Start();
try
{
- using HttpMessage message = CreateGetJobRequest(jobId, timeOutInSeconds, ocpdate, select, expand, requestConditions, context);
+ using HttpMessage message = CreateGetJobRequest(jobId, timeOutInSeconds, ocpDate, select, expand, requestConditions, context);
return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
catch (Exception e)
@@ -1833,14 +1903,14 @@ public virtual async Task GetJobAsync(string jobId, int? timeOutInSeco
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
///
/// The ID of the Job.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1853,8 +1923,8 @@ public virtual async Task GetJobAsync(string jobId, int? timeOutInSeco
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual Response GetJob(string jobId, int? timeOutInSeconds, DateTimeOffset? ocpdate, IEnumerable select, IEnumerable expand, RequestConditions requestConditions, RequestContext context)
+ ///
+ public virtual Response GetJob(string jobId, TimeSpan? timeOutInSeconds, DateTimeOffset? ocpDate, IEnumerable select, IEnumerable expand, RequestConditions requestConditions, RequestContext context)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
@@ -1862,7 +1932,7 @@ public virtual Response GetJob(string jobId, int? timeOutInSeconds, DateTimeOffs
scope.Start();
try
{
- using HttpMessage message = CreateGetJobRequest(jobId, timeOutInSeconds, ocpdate, select, expand, requestConditions, context);
+ using HttpMessage message = CreateGetJobRequest(jobId, timeOutInSeconds, ocpDate, select, expand, requestConditions, context);
return _pipeline.ProcessMessage(message, context);
}
catch (Exception e)
@@ -1885,7 +1955,7 @@ public virtual Response GetJob(string jobId, int? timeOutInSeconds, DateTimeOffs
/// The ID of the Job whose properties you want to update.
/// The content to send as the body of the request.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1896,8 +1966,8 @@ public virtual Response GetJob(string jobId, int? timeOutInSeconds, DateTimeOffs
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual async Task UpdateJobAsync(string jobId, RequestContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, RequestContext context = null)
+ ///
+ public virtual async Task UpdateJobAsync(string jobId, RequestContent content, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
Argument.AssertNotNull(content, nameof(content));
@@ -1906,7 +1976,7 @@ public virtual async Task UpdateJobAsync(string jobId, RequestContent
scope.Start();
try
{
- using HttpMessage message = CreateUpdateJobRequest(jobId, content, timeOutInSeconds, ocpdate, requestConditions, context);
+ using HttpMessage message = CreateUpdateJobRequest(jobId, content, timeOutInSeconds, ocpDate, requestConditions, context);
return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
catch (Exception e)
@@ -1929,7 +1999,7 @@ public virtual async Task UpdateJobAsync(string jobId, RequestContent
/// The ID of the Job whose properties you want to update.
/// The content to send as the body of the request.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1940,8 +2010,8 @@ public virtual async Task UpdateJobAsync(string jobId, RequestContent
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual Response UpdateJob(string jobId, RequestContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, RequestContext context = null)
+ ///
+ public virtual Response UpdateJob(string jobId, RequestContent content, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
Argument.AssertNotNull(content, nameof(content));
@@ -1950,7 +2020,7 @@ public virtual Response UpdateJob(string jobId, RequestContent content, int? tim
scope.Start();
try
{
- using HttpMessage message = CreateUpdateJobRequest(jobId, content, timeOutInSeconds, ocpdate, requestConditions, context);
+ using HttpMessage message = CreateUpdateJobRequest(jobId, content, timeOutInSeconds, ocpDate, requestConditions, context);
return _pipeline.ProcessMessage(message, context);
}
catch (Exception e)
@@ -1964,7 +2034,7 @@ public virtual Response UpdateJob(string jobId, RequestContent content, int? tim
/// The ID of the Job whose properties you want to update.
/// A job with updated properties.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -1978,15 +2048,15 @@ public virtual Response UpdateJob(string jobId, RequestContent content, int? tim
/// the Job has constraints associated with it and if constraints is not specified
/// with this request, then the Batch service will remove the existing constraints.
///
- ///
- public virtual async Task ReplaceJobAsync(string jobId, BatchJob job, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
+ ///
+ public virtual async Task ReplaceJobAsync(string jobId, BatchJob job, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
Argument.AssertNotNull(job, nameof(job));
using RequestContent content = job.ToRequestContent();
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = await ReplaceJobAsync(jobId, content, timeOutInSeconds, ocpdate, requestConditions, context).ConfigureAwait(false);
+ Response response = await ReplaceJobAsync(jobId, content, timeOutInSeconds, ocpDate, requestConditions, context).ConfigureAwait(false);
return response;
}
@@ -1994,7 +2064,7 @@ public virtual async Task ReplaceJobAsync(string jobId, BatchJob job,
/// The ID of the Job whose properties you want to update.
/// A job with updated properties.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -2008,15 +2078,15 @@ public virtual async Task ReplaceJobAsync(string jobId, BatchJob job,
/// the Job has constraints associated with it and if constraints is not specified
/// with this request, then the Batch service will remove the existing constraints.
///
- ///
- public virtual Response ReplaceJob(string jobId, BatchJob job, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
+ ///
+ public virtual Response ReplaceJob(string jobId, BatchJob job, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
Argument.AssertNotNull(job, nameof(job));
using RequestContent content = job.ToRequestContent();
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = ReplaceJob(jobId, content, timeOutInSeconds, ocpdate, requestConditions, context);
+ Response response = ReplaceJob(jobId, content, timeOutInSeconds, ocpDate, requestConditions, context);
return response;
}
@@ -2030,7 +2100,7 @@ public virtual Response ReplaceJob(string jobId, BatchJob job, int? timeOutInSec
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
@@ -2038,7 +2108,7 @@ public virtual Response ReplaceJob(string jobId, BatchJob job, int? timeOutInSec
/// The ID of the Job whose properties you want to update.
/// The content to send as the body of the request.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -2049,8 +2119,8 @@ public virtual Response ReplaceJob(string jobId, BatchJob job, int? timeOutInSec
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual async Task ReplaceJobAsync(string jobId, RequestContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, RequestContext context = null)
+ ///
+ public virtual async Task ReplaceJobAsync(string jobId, RequestContent content, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
Argument.AssertNotNull(content, nameof(content));
@@ -2059,7 +2129,7 @@ public virtual async Task ReplaceJobAsync(string jobId, RequestContent
scope.Start();
try
{
- using HttpMessage message = CreateReplaceJobRequest(jobId, content, timeOutInSeconds, ocpdate, requestConditions, context);
+ using HttpMessage message = CreateReplaceJobRequest(jobId, content, timeOutInSeconds, ocpDate, requestConditions, context);
return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
catch (Exception e)
@@ -2079,7 +2149,7 @@ public virtual async Task ReplaceJobAsync(string jobId, RequestContent
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
@@ -2087,7 +2157,7 @@ public virtual async Task ReplaceJobAsync(string jobId, RequestContent
/// The ID of the Job whose properties you want to update.
/// The content to send as the body of the request.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -2098,8 +2168,8 @@ public virtual async Task ReplaceJobAsync(string jobId, RequestContent
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual Response ReplaceJob(string jobId, RequestContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, RequestContext context = null)
+ ///
+ public virtual Response ReplaceJob(string jobId, RequestContent content, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
Argument.AssertNotNull(content, nameof(content));
@@ -2108,7 +2178,7 @@ public virtual Response ReplaceJob(string jobId, RequestContent content, int? ti
scope.Start();
try
{
- using HttpMessage message = CreateReplaceJobRequest(jobId, content, timeOutInSeconds, ocpdate, requestConditions, context);
+ using HttpMessage message = CreateReplaceJobRequest(jobId, content, timeOutInSeconds, ocpDate, requestConditions, context);
return _pipeline.ProcessMessage(message, context);
}
catch (Exception e)
@@ -2120,16 +2190,16 @@ public virtual Response ReplaceJob(string jobId, RequestContent content, int? ti
/// Disables the specified Job, preventing new Tasks from running.
/// The ID of the Job to disable.
- /// The options to use for disabling the Job.
+ /// The options to use for disabling the Job.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
///
/// The content to send as the request conditions of the request.
/// The cancellation token to use.
- /// or is null.
+ /// or is null.
/// is an empty string, and was expected to be non-empty.
///
/// The Batch Service immediately moves the Job to the disabling state. Batch then
@@ -2141,30 +2211,29 @@ public virtual Response ReplaceJob(string jobId, RequestContent content, int? ti
/// disable a Job that is in any state other than active, disabling, or disabled,
/// the request fails with status code 409.
///
- ///
- public virtual async Task DisableJobAsync(string jobId, BatchJobDisableContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
+ internal virtual async Task DisableJobInternalAsync(string jobId, BatchJobDisableOptions disableOptions, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
- Argument.AssertNotNull(content, nameof(content));
+ Argument.AssertNotNull(disableOptions, nameof(disableOptions));
- using RequestContent content0 = content.ToRequestContent();
+ using RequestContent content = disableOptions.ToRequestContent();
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = await DisableJobAsync(jobId, content0, timeOutInSeconds, ocpdate, requestConditions, context).ConfigureAwait(false);
+ Response response = await DisableJobInternalAsync(jobId, content, timeOutInSeconds, ocpDate, requestConditions, context).ConfigureAwait(false);
return response;
}
/// Disables the specified Job, preventing new Tasks from running.
/// The ID of the Job to disable.
- /// The options to use for disabling the Job.
+ /// The options to use for disabling the Job.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
///
/// The content to send as the request conditions of the request.
/// The cancellation token to use.
- /// or is null.
+ /// or is null.
/// is an empty string, and was expected to be non-empty.
///
/// The Batch Service immediately moves the Job to the disabling state. Batch then
@@ -2176,15 +2245,14 @@ public virtual async Task DisableJobAsync(string jobId, BatchJobDisabl
/// disable a Job that is in any state other than active, disabling, or disabled,
/// the request fails with status code 409.
///
- ///
- public virtual Response DisableJob(string jobId, BatchJobDisableContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
+ internal virtual Response DisableJobInternal(string jobId, BatchJobDisableOptions disableOptions, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
- Argument.AssertNotNull(content, nameof(content));
+ Argument.AssertNotNull(disableOptions, nameof(disableOptions));
- using RequestContent content0 = content.ToRequestContent();
+ using RequestContent content = disableOptions.ToRequestContent();
RequestContext context = FromCancellationToken(cancellationToken);
- Response response = DisableJob(jobId, content0, timeOutInSeconds, ocpdate, requestConditions, context);
+ Response response = DisableJobInternal(jobId, content, timeOutInSeconds, ocpDate, requestConditions, context);
return response;
}
@@ -2198,7 +2266,7 @@ public virtual Response DisableJob(string jobId, BatchJobDisableContent content,
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
@@ -2206,7 +2274,7 @@ public virtual Response DisableJob(string jobId, BatchJobDisableContent content,
/// The ID of the Job to disable.
/// The content to send as the body of the request.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -2217,17 +2285,16 @@ public virtual Response DisableJob(string jobId, BatchJobDisableContent content,
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
- ///
- public virtual async Task DisableJobAsync(string jobId, RequestContent content, int? timeOutInSeconds = null, DateTimeOffset? ocpdate = null, RequestConditions requestConditions = null, RequestContext context = null)
+ internal virtual async Task DisableJobInternalAsync(string jobId, RequestContent content, TimeSpan? timeOutInSeconds = null, DateTimeOffset? ocpDate = null, RequestConditions requestConditions = null, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
Argument.AssertNotNull(content, nameof(content));
- using var scope = ClientDiagnostics.CreateScope("BatchClient.DisableJob");
+ using var scope = ClientDiagnostics.CreateScope("BatchClient.DisableJobInternal");
scope.Start();
try
{
- using HttpMessage message = CreateDisableJobRequest(jobId, content, timeOutInSeconds, ocpdate, requestConditions, context);
+ using HttpMessage message = CreateDisableJobInternalRequest(jobId, content, timeOutInSeconds, ocpDate, requestConditions, context);
return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
catch (Exception e)
@@ -2247,7 +2314,7 @@ public virtual async Task DisableJobAsync(string jobId, RequestContent
///
/// -
///
- /// Please try the simpler convenience overload with strongly typed models first.
+ /// Please try the simpler convenience overload with strongly typed models first.
///
///
///
@@ -2255,7 +2322,7 @@ public virtual async Task DisableJobAsync(string jobId, RequestContent
/// The ID of the Job to disable.
/// The content to send as the body of the request.
/// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ///
+ ///
/// 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.
@@ -2266,17 +2333,16 @@ public virtual async Task DisableJobAsync(string jobId, RequestContent
///