diff --git a/sdk/batch/Azure.Temp.Batch/Azure.Temp.Batch.sln b/sdk/batch/Azure.Temp.Batch/Azure.Temp.Batch.sln
new file mode 100644
index 000000000000..fa3ca3cc2134
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/Azure.Temp.Batch.sln
@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.6.33829.357
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{ECC730C1-4AEA-420C-916A-66B19B79E4DC}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Temp.Batch", "src\Azure.Temp.Batch.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE}
+ EndGlobalSection
+EndGlobal
diff --git a/sdk/batch/Azure.Temp.Batch/CHANGELOG.md b/sdk/batch/Azure.Temp.Batch/CHANGELOG.md
new file mode 100644
index 000000000000..0e50c409dcfa
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/CHANGELOG.md
@@ -0,0 +1,112 @@
+# Release History
+
+## 1.0.3-beta.20 (2022-04-26)
+
+### Other Changes
+- Release DPG library
+- Add Grow-up story
+
+## 1.0.3-beta.19 (2020-09-24)
+- Test Submit-PR
+
+## 1.0.3-beta.18 (2020-09-24)
+- Test Submit-PR
+
+## 1.0.3-beta.17 (2020-09-16)
+- Package Artifacts directory restructure, attempt 7
+
+## 1.0.3-beta.16 (2020-09-15)
+- Package Artifacts directory restructure, attempt 6
+
+## 1.0.3-beta.15 (2020-09-15)
+- Package Artifacts directory restructure, attempt 5
+
+## 1.0.3-beta.14 (2020-09-14)
+- Package Artifacts directory restructure, attempt 4
+
+## 1.0.3-beta.13 (2020-09-14)
+- Package Artifacts directory restructure, attempt 3
+
+## 1.0.3-beta.12 (2020-09-11)
+- Package Artifacts directory restructure, attempt 2
+
+## 1.0.3-beta.11 (2020-09-10)
+- Package Artifacts directory restructure
+
+## 1.0.3-beta.10 (2020-09-09)
+- Enable the master link replacement feature, attempt 3
+
+## 1.0.3-beta.9 (2020-09-09)
+- Enable the master link replacement feature, attempt 2
+
+## 1.0.3-beta.8 (2020-09-09)
+- Enable the master link replacement feature, attempt 1
+
+## 1.0.3-beta.7 (2020-09-04)
+- Test release tag replacement
+
+## 1.0.3-beta.6 (2020-09-03)
+- Test new alpha beta versioning
+
+## 1.0.3-beta.5 (2020-09-03)
+- Test new alpha beta versioning
+
+## 1.0.3-beta.4 (2020-09-01)
+- Test new alpha beta versioning
+
+## 1.0.3-beta.3 (2020-08-31)
+- Test new alpha beta versioning
+
+## 1.0.3-beta.2 (2020-08-30)
+- Test new alpha beta versioning
+
+## 1.0.3-beta.1 (2020-08-27)
+- Test new alpha beta versioning
+
+## 1.0.2-preview.17 (2020-07-24)
+- Test release pipeline
+
+## 1.0.2-preview.15 (2020-06-29)
+- Test release pipeline
+
+## 1.0.2-preview.14 (2020-06-02)
+- Test release pipeline
+
+## 1.0.2-preview.13 (2020-03-23)
+- Test release pipeline
+
+## 1.0.2-preview.12 (2020-03-23)
+- Test release pipeline
+
+## 1.0.2-preview.11 (2020-03-23)
+- Test release pipeline
+
+## 1.0.2-preview.10 (2020-03-23)
+- Test release pipeline
+
+## 1.0.2-preview.9 (2020-03-17)
+- Test release pipeline
+
+## 1.0.2-preview.8 (2020-03-10)
+- Testing out release pipeline
+
+## 1.0.2-preview.7 (2020-03-06)
+- Testing out release pipeline
+
+## 1.0.2-preview.6 (2020-02-24)
+### Added
+- Testing Changelog added section
+- Testing Links [Project Site](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/template/Azure.Template/README.md)
+- Test `Highlighted Code`
+
+## 1.0.2-preview.5 (2020-02-24)
+### Added
+- Testing Changelog added section
+- Testing Links [Project Site](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/template/Azure.Template/README.md)
+- Test `Highlighted Code`
+
+## 1.0.2-preview.4 (2019-12-17)
+- Version Bump
+
+## 1.0.2-preview.3 (2019-12-17)
+- Started changelog to capture release notes.
\ No newline at end of file
diff --git a/sdk/batch/Azure.Temp.Batch/Directory.Build.props b/sdk/batch/Azure.Temp.Batch/Directory.Build.props
new file mode 100644
index 000000000000..1a9611bd4924
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/Directory.Build.props
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/sdk/batch/Azure.Temp.Batch/README.md b/sdk/batch/Azure.Temp.Batch/README.md
new file mode 100644
index 000000000000..0122323fb117
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/README.md
@@ -0,0 +1,102 @@
+# Azure Template client library for .NET
+
+Azure Template is a managed service that helps developers get secret simply and securely.
+
+Use the client library for to:
+
+* [Get secret](https://docs.microsoft.com/azure)
+
+[Source code][source_root] | [Package (NuGet)][package] | [API reference documentation][reference_docs] | [Product documentation][azconfig_docs] | [Samples][source_samples]
+
+ [Source code](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/template/Azure.Template/src) | [Package (NuGet)](https://www.nuget.org/packages) | [API reference documentation](https://azure.github.io/azure-sdk-for-net) | [Product documentation](https://docs.microsoft.com/azure)
+
+## Getting started
+
+This section should include everything a developer needs to do to install and create their first client connection *very quickly*.
+
+### Install the package
+
+First, provide instruction for obtaining and installing the package or library. This section might include only a single line of code, like `dotnet add package package-name`, but should enable a developer to successfully install the package from NuGet, npm, or even cloning a GitHub repository.
+
+Install the client library for .NET with [NuGet](https://www.nuget.org/ ):
+
+```dotnetcli
+dotnet add package Azure.Template --prerelease
+```
+
+### Prerequisites
+
+Include a section after the install command that details any requirements that must be satisfied before a developer can [authenticate](#authenticate-the-client) and test all of the snippets in the [Examples](#examples) section. For example, for Cosmos DB:
+
+> You must have an [Azure subscription](https://azure.microsoft.com/free/dotnet/) and [Cosmos DB account](https://docs.microsoft.com/azure/cosmos-db/account-overview) (SQL API). In order to take advantage of the C# 8.0 syntax, it is recommended that you compile using the [.NET Core SDK](https://dotnet.microsoft.com/download) 3.0 or higher with a [language version](https://docs.microsoft.com/dotnet/csharp/language-reference/configure-language-version#override-a-default) of `latest`. It is also possible to compile with the .NET Core SDK 2.1.x using a language version of `preview`.
+
+### Authenticate the client
+
+If your library requires authentication for use, such as for Azure services, include instructions and example code needed for initializing and authenticating.
+
+For example, include details on obtaining an account key and endpoint URI, setting environment variables for each, and initializing the client object.
+
+## Key concepts
+
+The *Key concepts* section should describe the functionality of the main classes. Point out the most important and useful classes in the package (with links to their reference pages) and explain how those classes work together. Feel free to use bulleted lists, tables, code blocks, or even diagrams for clarity.
+
+Include the *Thread safety* and *Additional concepts* sections below at the end of your *Key concepts* section. You may remove or add links depending on what your library makes use of:
+
+### Thread safety
+
+We guarantee that all client instance methods are thread-safe and independent of each other ([guideline](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-service-methods-thread-safety)). This ensures that the recommendation of reusing client instances is always safe, even across threads.
+
+### Additional concepts
+
+[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) |
+[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) |
+[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) |
+[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) |
+[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) |
+[Mocking](https://learn.microsoft.com/dotnet/azure/sdk/unit-testing-mocking) |
+[Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/)
+
+
+## Examples
+
+You can familiarize yourself with different APIs using [Samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/template/Azure.Template/samples).
+
+### Get secret
+
+The `GetSecret` method retrieves a secret from the service.
+
+```C# Snippet:Azure_Template_GetSecret
+string endpoint = "https://myvault.vault.azure.net";
+var credential = new DefaultAzureCredential();
+var client = new TemplateClient(endpoint, credential);
+
+SecretBundle secret = client.GetSecretValue("TestSecret");
+
+Console.WriteLine(secret.Value);
+```Python
+things = client.list_things()
+```
+
+## Troubleshooting
+
+Describe common errors and exceptions, how to "unpack" them if necessary, and include guidance for graceful handling and recovery.
+
+Provide information to help developers avoid throttling or other service-enforced errors they might encounter. For example, provide guidance and examples for using retry or connection policies in the API.
+
+If the package or a related package supports it, include tips for logging or enabling instrumentation to help them debug their code.
+
+## Next steps
+
+* Provide a link to additional code examples, ideally to those sitting alongside the README in the package's `/samples` directory.
+* If appropriate, point users to other packages that might be useful.
+* If you think there's a good chance that developers might stumble across your package in error (because they're searching for specific functionality and mistakenly think the package provides that functionality), point them to the packages they might be looking for.
+
+## Contributing
+
+This is a template, but your SDK readme should include details on how to contribute code to the repo/package.
+
+
+[style-guide-msft]: https://docs.microsoft.com/style-guide/capitalization
+[style-guide-cloud]: https://aka.ms/azsdk/cloud-style-guide
+
+
diff --git a/sdk/batch/Azure.Temp.Batch/api/Azure.Temp.Batch.netstandard2.0.cs b/sdk/batch/Azure.Temp.Batch/api/Azure.Temp.Batch.netstandard2.0.cs
new file mode 100644
index 000000000000..96032aac4c14
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/api/Azure.Temp.Batch.netstandard2.0.cs
@@ -0,0 +1,2513 @@
+namespace Azure.Temp.Batch.Models
+{
+ public partial class AccountListPoolNodeCountsOptions
+ {
+ public AccountListPoolNodeCountsOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string Filter { get { throw null; } set { } }
+ public int? MaxResults { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class AccountListSupportedImagesOptions
+ {
+ public AccountListSupportedImagesOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string Filter { get { throw null; } set { } }
+ public int? MaxResults { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class AffinityInformation
+ {
+ public AffinityInformation(string affinityId) { }
+ public string AffinityId { get { throw null; } set { } }
+ }
+ public enum AllocationState
+ {
+ Steady = 0,
+ Resizing = 1,
+ Stopping = 2,
+ }
+ public partial class ApplicationGetOptions
+ {
+ public ApplicationGetOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class ApplicationListOptions
+ {
+ public ApplicationListOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public int? MaxResults { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class ApplicationPackageReference
+ {
+ public ApplicationPackageReference(string applicationId) { }
+ public string ApplicationId { get { throw null; } set { } }
+ public string Version { get { throw null; } set { } }
+ }
+ public partial class ApplicationSummary
+ {
+ internal ApplicationSummary() { }
+ public string DisplayName { get { throw null; } }
+ public string Id { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList Versions { get { throw null; } }
+ }
+ public partial class AuthenticationTokenSettings
+ {
+ public AuthenticationTokenSettings() { }
+ public System.Collections.Generic.IList Access { get { throw null; } }
+ }
+ public partial class AutoPoolSpecification
+ {
+ public AutoPoolSpecification(Azure.Temp.Batch.Models.PoolLifetimeOption poolLifetimeOption) { }
+ public string AutoPoolIdPrefix { get { throw null; } set { } }
+ public bool? KeepAlive { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.PoolSpecification Pool { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.PoolLifetimeOption PoolLifetimeOption { get { throw null; } set { } }
+ }
+ public partial class AutoScaleRun
+ {
+ internal AutoScaleRun() { }
+ public Azure.Temp.Batch.Models.AutoScaleRunError Error { get { throw null; } }
+ public string Results { get { throw null; } }
+ public System.DateTimeOffset Timestamp { get { throw null; } }
+ }
+ public partial class AutoScaleRunError
+ {
+ internal AutoScaleRunError() { }
+ public string Code { get { throw null; } }
+ public string Message { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList Values { get { throw null; } }
+ }
+ public enum AutoUserScope
+ {
+ Task = 0,
+ Pool = 1,
+ }
+ public partial class AutoUserSpecification
+ {
+ public AutoUserSpecification() { }
+ public Azure.Temp.Batch.Models.ElevationLevel? ElevationLevel { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.AutoUserScope? Scope { get { throw null; } set { } }
+ }
+ public partial class AzureBlobFileSystemConfiguration
+ {
+ public AzureBlobFileSystemConfiguration(string accountName, string containerName, string relativeMountPath) { }
+ public string AccountKey { get { throw null; } set { } }
+ public string AccountName { get { throw null; } set { } }
+ public string BlobfuseOptions { get { throw null; } set { } }
+ public string ContainerName { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.ComputeNodeIdentityReference IdentityReference { get { throw null; } set { } }
+ public string RelativeMountPath { get { throw null; } set { } }
+ public string SasKey { get { throw null; } set { } }
+ }
+ public partial class AzureFileShareConfiguration
+ {
+ public AzureFileShareConfiguration(string accountName, string azureFileUrl, string accountKey, string relativeMountPath) { }
+ public string AccountKey { get { throw null; } set { } }
+ public string AccountName { get { throw null; } set { } }
+ public string AzureFileUrl { get { throw null; } set { } }
+ public string MountOptions { get { throw null; } set { } }
+ public string RelativeMountPath { get { throw null; } set { } }
+ }
+ public partial class BatchError
+ {
+ internal BatchError() { }
+ public string Code { get { throw null; } }
+ public Azure.Temp.Batch.Models.ErrorMessage Message { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList Values { get { throw null; } }
+ }
+ public partial class BatchErrorDetail
+ {
+ internal BatchErrorDetail() { }
+ public string Key { get { throw null; } }
+ public string Value { get { throw null; } }
+ }
+ public partial class BatchPoolIdentity
+ {
+ internal BatchPoolIdentity() { }
+ public Azure.Temp.Batch.Models.PoolIdentityType Type { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList UserAssignedIdentities { get { throw null; } }
+ }
+ public enum CachingType
+ {
+ None = 0,
+ ReadOnly = 1,
+ ReadWrite = 2,
+ }
+ public partial class Certificate
+ {
+ internal Certificate() { }
+ public Azure.Temp.Batch.Models.DeleteCertificateError DeleteCertificateError { get { throw null; } }
+ public Azure.Temp.Batch.Models.CertificateState? PreviousState { get { throw null; } }
+ public System.DateTimeOffset? PreviousStateTransitionTime { get { throw null; } }
+ public string PublicData { get { throw null; } }
+ public Azure.Temp.Batch.Models.CertificateState? State { get { throw null; } }
+ public System.DateTimeOffset? StateTransitionTime { get { throw null; } }
+ public string Thumbprint { get { throw null; } }
+ public string ThumbprintAlgorithm { get { throw null; } }
+ public string Url { get { throw null; } }
+ }
+ public partial class CertificateAddOptions
+ {
+ public CertificateAddOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class CertificateAddParameter
+ {
+ public CertificateAddParameter(string thumbprint, string thumbprintAlgorithm, string data) { }
+ public Azure.Temp.Batch.Models.CertificateFormat? CertificateFormat { get { throw null; } set { } }
+ public string Data { get { throw null; } }
+ public string Password { get { throw null; } set { } }
+ public string Thumbprint { get { throw null; } }
+ public string ThumbprintAlgorithm { get { throw null; } }
+ }
+ public partial class CertificateCancelDeletionOptions
+ {
+ public CertificateCancelDeletionOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class CertificateDeleteOptions
+ {
+ public CertificateDeleteOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public enum CertificateFormat
+ {
+ Pfx = 0,
+ Cer = 1,
+ }
+ public partial class CertificateGetOptions
+ {
+ public CertificateGetOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public string Select { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class CertificateListOptions
+ {
+ public CertificateListOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string Filter { get { throw null; } set { } }
+ public int? MaxResults { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public string Select { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class CertificateReference
+ {
+ public CertificateReference(string thumbprint, string thumbprintAlgorithm) { }
+ public Azure.Temp.Batch.Models.CertificateStoreLocation? StoreLocation { get { throw null; } set { } }
+ public string StoreName { get { throw null; } set { } }
+ public string Thumbprint { get { throw null; } set { } }
+ public string ThumbprintAlgorithm { get { throw null; } set { } }
+ public System.Collections.Generic.IList Visibility { get { throw null; } }
+ }
+ public enum CertificateState
+ {
+ Active = 0,
+ Deleting = 1,
+ DeleteFailed = 2,
+ }
+ public enum CertificateStoreLocation
+ {
+ CurrentUser = 0,
+ LocalMachine = 1,
+ }
+ public enum CertificateVisibility
+ {
+ StartTask = 0,
+ Task = 1,
+ RemoteUser = 2,
+ }
+ public partial class CifsMountConfiguration
+ {
+ public CifsMountConfiguration(string username, string source, string relativeMountPath, string password) { }
+ public string MountOptions { get { throw null; } set { } }
+ public string Password { get { throw null; } set { } }
+ public string RelativeMountPath { get { throw null; } set { } }
+ public string Source { get { throw null; } set { } }
+ public string Username { get { throw null; } set { } }
+ }
+ public partial class CloudJob
+ {
+ internal CloudJob() { }
+ public bool? AllowTaskPreemption { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList CommonEnvironmentSettings { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobConstraints Constraints { get { throw null; } }
+ public System.DateTimeOffset? CreationTime { get { throw null; } }
+ public string DisplayName { get { throw null; } }
+ public string ETag { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobExecutionInformation ExecutionInfo { get { throw null; } }
+ public string Id { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobManagerTask JobManagerTask { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobPreparationTask JobPreparationTask { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobReleaseTask JobReleaseTask { get { throw null; } }
+ public System.DateTimeOffset? LastModified { get { throw null; } }
+ public int? MaxParallelTasks { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList Metadata { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobNetworkConfiguration NetworkConfiguration { get { throw null; } }
+ public Azure.Temp.Batch.Models.OnAllTasksComplete? OnAllTasksComplete { get { throw null; } }
+ public Azure.Temp.Batch.Models.OnTaskFailure? OnTaskFailure { get { throw null; } }
+ public Azure.Temp.Batch.Models.PoolInformation PoolInfo { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobState? PreviousState { get { throw null; } }
+ public System.DateTimeOffset? PreviousStateTransitionTime { get { throw null; } }
+ public int? Priority { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobState? State { get { throw null; } }
+ public System.DateTimeOffset? StateTransitionTime { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobStatistics Stats { get { throw null; } }
+ public string Url { get { throw null; } }
+ public bool? UsesTaskDependencies { get { throw null; } }
+ }
+ public partial class CloudJobSchedule
+ {
+ internal CloudJobSchedule() { }
+ public System.DateTimeOffset? CreationTime { get { throw null; } }
+ public string DisplayName { get { throw null; } }
+ public string ETag { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobScheduleExecutionInformation ExecutionInfo { get { throw null; } }
+ public string Id { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobSpecification JobSpecification { get { throw null; } }
+ public System.DateTimeOffset? LastModified { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList Metadata { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobScheduleState? PreviousState { get { throw null; } }
+ public System.DateTimeOffset? PreviousStateTransitionTime { get { throw null; } }
+ public Azure.Temp.Batch.Models.Schedule Schedule { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobScheduleState? State { get { throw null; } }
+ public System.DateTimeOffset? StateTransitionTime { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobScheduleStatistics Stats { get { throw null; } }
+ public string Url { get { throw null; } }
+ }
+ public partial class CloudPool
+ {
+ internal CloudPool() { }
+ public Azure.Temp.Batch.Models.AllocationState? AllocationState { get { throw null; } }
+ public System.DateTimeOffset? AllocationStateTransitionTime { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList ApplicationLicenses { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList ApplicationPackageReferences { get { throw null; } }
+ public System.TimeSpan? AutoScaleEvaluationInterval { get { throw null; } }
+ public string AutoScaleFormula { get { throw null; } }
+ public Azure.Temp.Batch.Models.AutoScaleRun AutoScaleRun { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList CertificateReferences { get { throw null; } }
+ public Azure.Temp.Batch.Models.CloudServiceConfiguration CloudServiceConfiguration { get { throw null; } }
+ public System.DateTimeOffset? CreationTime { get { throw null; } }
+ public int? CurrentDedicatedNodes { get { throw null; } }
+ public int? CurrentLowPriorityNodes { get { throw null; } }
+ public Azure.Temp.Batch.Models.NodeCommunicationMode? CurrentNodeCommunicationMode { get { throw null; } }
+ public string DisplayName { get { throw null; } }
+ public bool? EnableAutoScale { get { throw null; } }
+ public bool? EnableInterNodeCommunication { get { throw null; } }
+ public string ETag { get { throw null; } }
+ public string Id { get { throw null; } }
+ public Azure.Temp.Batch.Models.BatchPoolIdentity Identity { get { throw null; } }
+ public System.DateTimeOffset? LastModified { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList Metadata { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList MountConfiguration { get { throw null; } }
+ public Azure.Temp.Batch.Models.NetworkConfiguration NetworkConfiguration { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList ResizeErrors { get { throw null; } }
+ public System.TimeSpan? ResizeTimeout { get { throw null; } }
+ public Azure.Temp.Batch.Models.StartTask StartTask { get { throw null; } }
+ public Azure.Temp.Batch.Models.PoolState? State { get { throw null; } }
+ public System.DateTimeOffset? StateTransitionTime { get { throw null; } }
+ public Azure.Temp.Batch.Models.PoolStatistics Stats { get { throw null; } }
+ public int? TargetDedicatedNodes { get { throw null; } }
+ public int? TargetLowPriorityNodes { get { throw null; } }
+ public Azure.Temp.Batch.Models.NodeCommunicationMode? TargetNodeCommunicationMode { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskSchedulingPolicy TaskSchedulingPolicy { get { throw null; } }
+ public int? TaskSlotsPerNode { get { throw null; } }
+ public string Url { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList UserAccounts { get { throw null; } }
+ public Azure.Temp.Batch.Models.VirtualMachineConfiguration VirtualMachineConfiguration { get { throw null; } }
+ public string VmSize { get { throw null; } }
+ }
+ public partial class CloudServiceConfiguration
+ {
+ public CloudServiceConfiguration(string osFamily) { }
+ public string OsFamily { get { throw null; } set { } }
+ public string OsVersion { get { throw null; } set { } }
+ }
+ public partial class CloudTask
+ {
+ internal CloudTask() { }
+ public Azure.Temp.Batch.Models.AffinityInformation AffinityInfo { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList ApplicationPackageReferences { get { throw null; } }
+ public Azure.Temp.Batch.Models.AuthenticationTokenSettings AuthenticationTokenSettings { get { throw null; } }
+ public string CommandLine { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskConstraints Constraints { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskContainerSettings ContainerSettings { get { throw null; } }
+ public System.DateTimeOffset? CreationTime { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskDependencies DependsOn { get { throw null; } }
+ public string DisplayName { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList EnvironmentSettings { get { throw null; } }
+ public string ETag { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskExecutionInformation ExecutionInfo { get { throw null; } }
+ public Azure.Temp.Batch.Models.ExitConditions ExitConditions { get { throw null; } }
+ public string Id { get { throw null; } }
+ public System.DateTimeOffset? LastModified { get { throw null; } }
+ public Azure.Temp.Batch.Models.MultiInstanceSettings MultiInstanceSettings { get { throw null; } }
+ public Azure.Temp.Batch.Models.ComputeNodeInformation NodeInfo { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList OutputFiles { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskState? PreviousState { get { throw null; } }
+ public System.DateTimeOffset? PreviousStateTransitionTime { get { throw null; } }
+ public int? RequiredSlots { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList ResourceFiles { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskState? State { get { throw null; } }
+ public System.DateTimeOffset? StateTransitionTime { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskStatistics Stats { get { throw null; } }
+ public string Url { get { throw null; } }
+ public Azure.Temp.Batch.Models.UserIdentity UserIdentity { get { throw null; } }
+ }
+ public partial class CloudTaskListSubtasksResult
+ {
+ internal CloudTaskListSubtasksResult() { }
+ public System.Collections.Generic.IReadOnlyList Value { get { throw null; } }
+ }
+ public partial class ComputeNode
+ {
+ internal ComputeNode() { }
+ public string AffinityId { get { throw null; } }
+ public System.DateTimeOffset? AllocationTime { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList CertificateReferences { get { throw null; } }
+ public Azure.Temp.Batch.Models.ComputeNodeEndpointConfiguration EndpointConfiguration { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList Errors { get { throw null; } }
+ public string Id { get { throw null; } }
+ public string IpAddress { get { throw null; } }
+ public bool? IsDedicated { get { throw null; } }
+ public System.DateTimeOffset? LastBootTime { get { throw null; } }
+ public Azure.Temp.Batch.Models.NodeAgentInformation NodeAgentInfo { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList RecentTasks { get { throw null; } }
+ public int? RunningTasksCount { get { throw null; } }
+ public int? RunningTaskSlotsCount { get { throw null; } }
+ public Azure.Temp.Batch.Models.SchedulingState? SchedulingState { get { throw null; } }
+ public Azure.Temp.Batch.Models.StartTask StartTask { get { throw null; } }
+ public Azure.Temp.Batch.Models.StartTaskInformation StartTaskInfo { get { throw null; } }
+ public Azure.Temp.Batch.Models.ComputeNodeState? State { get { throw null; } }
+ public System.DateTimeOffset? StateTransitionTime { get { throw null; } }
+ public int? TotalTasksRun { get { throw null; } }
+ public int? TotalTasksSucceeded { get { throw null; } }
+ public string Url { get { throw null; } }
+ public Azure.Temp.Batch.Models.VirtualMachineInfo VirtualMachineInfo { get { throw null; } }
+ public string VmSize { get { throw null; } }
+ }
+ public partial class ComputeNodeAddUserOptions
+ {
+ public ComputeNodeAddUserOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public enum ComputeNodeDeallocationOption
+ {
+ Requeue = 0,
+ Terminate = 1,
+ TaskCompletion = 2,
+ RetainedData = 3,
+ }
+ public partial class ComputeNodeDeleteUserOptions
+ {
+ public ComputeNodeDeleteUserOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class ComputeNodeDisableSchedulingOptions
+ {
+ public ComputeNodeDisableSchedulingOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class ComputeNodeEnableSchedulingOptions
+ {
+ public ComputeNodeEnableSchedulingOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class ComputeNodeEndpointConfiguration
+ {
+ internal ComputeNodeEndpointConfiguration() { }
+ public System.Collections.Generic.IReadOnlyList InboundEndpoints { get { throw null; } }
+ }
+ public partial class ComputeNodeError
+ {
+ internal ComputeNodeError() { }
+ public string Code { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList ErrorDetails { get { throw null; } }
+ public string Message { get { throw null; } }
+ }
+ public partial class ComputeNodeExtensionGetOptions
+ {
+ public ComputeNodeExtensionGetOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public string Select { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class ComputeNodeExtensionListOptions
+ {
+ public ComputeNodeExtensionListOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public int? MaxResults { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public string Select { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public enum ComputeNodeFillType
+ {
+ Spread = 0,
+ Pack = 1,
+ }
+ public partial class ComputeNodeGetOptions
+ {
+ public ComputeNodeGetOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public string Select { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class ComputeNodeGetRemoteDesktopOptions
+ {
+ public ComputeNodeGetRemoteDesktopOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class ComputeNodeGetRemoteLoginSettingsOptions
+ {
+ public ComputeNodeGetRemoteLoginSettingsOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class ComputeNodeGetRemoteLoginSettingsResult
+ {
+ internal ComputeNodeGetRemoteLoginSettingsResult() { }
+ public string RemoteLoginIPAddress { get { throw null; } }
+ public int RemoteLoginPort { get { throw null; } }
+ }
+ public partial class ComputeNodeIdentityReference
+ {
+ public ComputeNodeIdentityReference() { }
+ public string ResourceId { get { throw null; } set { } }
+ }
+ public partial class ComputeNodeInformation
+ {
+ internal ComputeNodeInformation() { }
+ public string AffinityId { get { throw null; } }
+ public string NodeId { get { throw null; } }
+ public string NodeUrl { get { throw null; } }
+ public string PoolId { get { throw null; } }
+ public string TaskRootDirectory { get { throw null; } }
+ public string TaskRootDirectoryUrl { get { throw null; } }
+ }
+ public partial class ComputeNodeListOptions
+ {
+ public ComputeNodeListOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string Filter { get { throw null; } set { } }
+ public int? MaxResults { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public string Select { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public enum ComputeNodeRebootOption
+ {
+ Requeue = 0,
+ Terminate = 1,
+ TaskCompletion = 2,
+ RetainedData = 3,
+ }
+ public partial class ComputeNodeRebootOptions
+ {
+ public ComputeNodeRebootOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public enum ComputeNodeReimageOption
+ {
+ Requeue = 0,
+ Terminate = 1,
+ TaskCompletion = 2,
+ RetainedData = 3,
+ }
+ public partial class ComputeNodeReimageOptions
+ {
+ public ComputeNodeReimageOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public enum ComputeNodeState
+ {
+ Idle = 0,
+ Rebooting = 1,
+ Reimaging = 2,
+ Running = 3,
+ Unusable = 4,
+ Creating = 5,
+ Starting = 6,
+ WaitingForStartTask = 7,
+ StartTaskFailed = 8,
+ Unknown = 9,
+ LeavingPool = 10,
+ Offline = 11,
+ Preempted = 12,
+ }
+ public partial class ComputeNodeUpdateUserOptions
+ {
+ public ComputeNodeUpdateUserOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class ComputeNodeUploadBatchServiceLogsOptions
+ {
+ public ComputeNodeUploadBatchServiceLogsOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class ComputeNodeUser
+ {
+ public ComputeNodeUser(string name) { }
+ public System.DateTimeOffset? ExpiryTime { get { throw null; } set { } }
+ public bool? IsAdmin { get { throw null; } set { } }
+ public string Name { get { throw null; } }
+ public string Password { get { throw null; } set { } }
+ public string SshPublicKey { get { throw null; } set { } }
+ }
+ public partial class ContainerConfiguration
+ {
+ public ContainerConfiguration(Azure.Temp.Batch.Models.ContainerType type) { }
+ public System.Collections.Generic.IList ContainerImageNames { get { throw null; } }
+ public System.Collections.Generic.IList ContainerRegistries { get { throw null; } }
+ public Azure.Temp.Batch.Models.ContainerType Type { get { throw null; } set { } }
+ }
+ public partial class ContainerRegistry
+ {
+ public ContainerRegistry() { }
+ public Azure.Temp.Batch.Models.ComputeNodeIdentityReference IdentityReference { get { throw null; } set { } }
+ public string Password { get { throw null; } set { } }
+ public string RegistryServer { get { throw null; } set { } }
+ public string UserName { get { throw null; } set { } }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct ContainerType : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public ContainerType(string value) { throw null; }
+ public static Azure.Temp.Batch.Models.ContainerType CriCompatible { get { throw null; } }
+ public static Azure.Temp.Batch.Models.ContainerType DockerCompatible { get { throw null; } }
+ public bool Equals(Azure.Temp.Batch.Models.ContainerType other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.Temp.Batch.Models.ContainerType left, Azure.Temp.Batch.Models.ContainerType right) { throw null; }
+ public static implicit operator Azure.Temp.Batch.Models.ContainerType (string value) { throw null; }
+ public static bool operator !=(Azure.Temp.Batch.Models.ContainerType left, Azure.Temp.Batch.Models.ContainerType right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public enum ContainerWorkingDirectory
+ {
+ TaskWorkingDirectory = 0,
+ ContainerImageDefault = 1,
+ }
+ public partial class DataDisk
+ {
+ public DataDisk(int lun, int diskSizeGB) { }
+ public Azure.Temp.Batch.Models.CachingType? Caching { get { throw null; } set { } }
+ public int DiskSizeGB { get { throw null; } set { } }
+ public int Lun { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.StorageAccountType? StorageAccountType { get { throw null; } set { } }
+ }
+ public partial class DeleteCertificateError
+ {
+ internal DeleteCertificateError() { }
+ public string Code { get { throw null; } }
+ public string Message { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList Values { get { throw null; } }
+ }
+ public enum DependencyAction
+ {
+ Satisfy = 0,
+ Block = 1,
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct DiffDiskPlacement : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public DiffDiskPlacement(string value) { throw null; }
+ public static Azure.Temp.Batch.Models.DiffDiskPlacement CacheDisk { get { throw null; } }
+ public bool Equals(Azure.Temp.Batch.Models.DiffDiskPlacement other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.Temp.Batch.Models.DiffDiskPlacement left, Azure.Temp.Batch.Models.DiffDiskPlacement right) { throw null; }
+ public static implicit operator Azure.Temp.Batch.Models.DiffDiskPlacement (string value) { throw null; }
+ public static bool operator !=(Azure.Temp.Batch.Models.DiffDiskPlacement left, Azure.Temp.Batch.Models.DiffDiskPlacement right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class DiffDiskSettings
+ {
+ public DiffDiskSettings() { }
+ public Azure.Temp.Batch.Models.DiffDiskPlacement? Placement { get { throw null; } set { } }
+ }
+ public enum DisableComputeNodeSchedulingOption
+ {
+ Requeue = 0,
+ Terminate = 1,
+ TaskCompletion = 2,
+ }
+ public enum DisableJobOption
+ {
+ Requeue = 0,
+ Terminate = 1,
+ Wait = 2,
+ }
+ public partial class DiskEncryptionConfiguration
+ {
+ public DiskEncryptionConfiguration() { }
+ public System.Collections.Generic.IList Targets { get { throw null; } }
+ }
+ public enum DiskEncryptionTarget
+ {
+ OsDisk = 0,
+ TemporaryDisk = 1,
+ }
+ public enum DynamicVNetAssignmentScope
+ {
+ None = 0,
+ Job = 1,
+ }
+ public enum ElevationLevel
+ {
+ NonAdmin = 0,
+ Admin = 1,
+ }
+ public partial class EnvironmentSetting
+ {
+ public EnvironmentSetting(string name) { }
+ public string Name { get { throw null; } set { } }
+ public string Value { get { throw null; } set { } }
+ }
+ public enum ErrorCategory
+ {
+ UserError = 0,
+ ServerError = 1,
+ }
+ public partial class ErrorMessage
+ {
+ internal ErrorMessage() { }
+ public string Lang { get { throw null; } }
+ public string Value { get { throw null; } }
+ }
+ public partial class ExitCodeMapping
+ {
+ public ExitCodeMapping(int code, Azure.Temp.Batch.Models.ExitOptions exitOptions) { }
+ public int Code { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.ExitOptions ExitOptions { get { throw null; } set { } }
+ }
+ public partial class ExitCodeRangeMapping
+ {
+ public ExitCodeRangeMapping(int start, int end, Azure.Temp.Batch.Models.ExitOptions exitOptions) { }
+ public int End { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.ExitOptions ExitOptions { get { throw null; } set { } }
+ public int Start { get { throw null; } set { } }
+ }
+ public partial class ExitConditions
+ {
+ public ExitConditions() { }
+ public Azure.Temp.Batch.Models.ExitOptions Default { get { throw null; } set { } }
+ public System.Collections.Generic.IList ExitCodeRanges { get { throw null; } }
+ public System.Collections.Generic.IList ExitCodes { get { throw null; } }
+ public Azure.Temp.Batch.Models.ExitOptions FileUploadError { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.ExitOptions PreProcessingError { get { throw null; } set { } }
+ }
+ public partial class ExitOptions
+ {
+ public ExitOptions() { }
+ public Azure.Temp.Batch.Models.DependencyAction? DependencyAction { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.JobAction? JobAction { get { throw null; } set { } }
+ }
+ public partial class FileDeleteFromComputeNodeOptions
+ {
+ public FileDeleteFromComputeNodeOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class FileDeleteFromTaskOptions
+ {
+ public FileDeleteFromTaskOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class FileGetFromComputeNodeOptions
+ {
+ public FileGetFromComputeNodeOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public string OcpRange { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class FileGetFromTaskOptions
+ {
+ public FileGetFromTaskOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public string OcpRange { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class FileGetPropertiesFromComputeNodeOptions
+ {
+ public FileGetPropertiesFromComputeNodeOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class FileGetPropertiesFromTaskOptions
+ {
+ public FileGetPropertiesFromTaskOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class FileListFromComputeNodeOptions
+ {
+ public FileListFromComputeNodeOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string Filter { get { throw null; } set { } }
+ public int? MaxResults { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class FileListFromTaskOptions
+ {
+ public FileListFromTaskOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string Filter { get { throw null; } set { } }
+ public int? MaxResults { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class FileProperties
+ {
+ internal FileProperties() { }
+ public long ContentLength { get { throw null; } }
+ public string ContentType { get { throw null; } }
+ public System.DateTimeOffset? CreationTime { get { throw null; } }
+ public string FileMode { get { throw null; } }
+ public System.DateTimeOffset LastModified { get { throw null; } }
+ }
+ public partial class HttpHeader
+ {
+ public HttpHeader(string name) { }
+ public string Name { get { throw null; } set { } }
+ public string Value { get { throw null; } set { } }
+ }
+ public partial class ImageInformation
+ {
+ internal ImageInformation() { }
+ public System.DateTimeOffset? BatchSupportEndOfLife { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList Capabilities { get { throw null; } }
+ public Azure.Temp.Batch.Models.ImageReference ImageReference { get { throw null; } }
+ public string NodeAgentSKUId { get { throw null; } }
+ public Azure.Temp.Batch.Models.OSType OsType { get { throw null; } }
+ public Azure.Temp.Batch.Models.VerificationType VerificationType { get { throw null; } }
+ }
+ public partial class ImageReference
+ {
+ public ImageReference() { }
+ public string ExactVersion { get { throw null; } }
+ public string Offer { get { throw null; } set { } }
+ public string Publisher { get { throw null; } set { } }
+ public string Sku { get { throw null; } set { } }
+ public string Version { get { throw null; } set { } }
+ public string VirtualMachineImageId { get { throw null; } set { } }
+ }
+ public partial class InboundEndpoint
+ {
+ internal InboundEndpoint() { }
+ public int BackendPort { get { throw null; } }
+ public int FrontendPort { get { throw null; } }
+ public string Name { get { throw null; } }
+ public Azure.Temp.Batch.Models.InboundEndpointProtocol Protocol { get { throw null; } }
+ public string PublicFqdn { get { throw null; } }
+ public string PublicIPAddress { get { throw null; } }
+ }
+ public enum InboundEndpointProtocol
+ {
+ Tcp = 0,
+ Udp = 1,
+ }
+ public partial class InboundNATPool
+ {
+ public InboundNATPool(string name, Azure.Temp.Batch.Models.InboundEndpointProtocol protocol, int backendPort, int frontendPortRangeStart, int frontendPortRangeEnd) { }
+ public int BackendPort { get { throw null; } set { } }
+ public int FrontendPortRangeEnd { get { throw null; } set { } }
+ public int FrontendPortRangeStart { get { throw null; } set { } }
+ public string Name { get { throw null; } set { } }
+ public System.Collections.Generic.IList NetworkSecurityGroupRules { get { throw null; } }
+ public Azure.Temp.Batch.Models.InboundEndpointProtocol Protocol { get { throw null; } set { } }
+ }
+ public partial class InstanceViewStatus
+ {
+ internal InstanceViewStatus() { }
+ public string Code { get { throw null; } }
+ public string DisplayStatus { get { throw null; } }
+ public Azure.Temp.Batch.Models.StatusLevelTypes? Level { get { throw null; } }
+ public string Message { get { throw null; } }
+ public string Time { get { throw null; } }
+ }
+ public enum IPAddressProvisioningType
+ {
+ BatchManaged = 0,
+ UserManaged = 1,
+ NoPublicIPAddresses = 2,
+ }
+ public enum JobAction
+ {
+ None = 0,
+ Disable = 1,
+ Terminate = 2,
+ }
+ public partial class JobAddOptions
+ {
+ public JobAddOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobAddParameter
+ {
+ public JobAddParameter(string id, Azure.Temp.Batch.Models.PoolInformation poolInfo) { }
+ public bool? AllowTaskPreemption { get { throw null; } set { } }
+ public System.Collections.Generic.IList CommonEnvironmentSettings { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobConstraints Constraints { get { throw null; } set { } }
+ public string DisplayName { get { throw null; } set { } }
+ public string Id { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobManagerTask JobManagerTask { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.JobPreparationTask JobPreparationTask { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.JobReleaseTask JobReleaseTask { get { throw null; } set { } }
+ public int? MaxParallelTasks { get { throw null; } set { } }
+ public System.Collections.Generic.IList Metadata { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobNetworkConfiguration NetworkConfiguration { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.OnAllTasksComplete? OnAllTasksComplete { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.OnTaskFailure? OnTaskFailure { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.PoolInformation PoolInfo { get { throw null; } }
+ public int? Priority { get { throw null; } set { } }
+ public bool? UsesTaskDependencies { get { throw null; } set { } }
+ }
+ public partial class JobConstraints
+ {
+ public JobConstraints() { }
+ public int? MaxTaskRetryCount { get { throw null; } set { } }
+ public System.TimeSpan? MaxWallClockTime { get { throw null; } set { } }
+ }
+ public partial class JobDeleteOptions
+ {
+ public JobDeleteOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobDisableOptions
+ {
+ public JobDisableOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobDisableParameter
+ {
+ public JobDisableParameter(Azure.Temp.Batch.Models.DisableJobOption disableTasks) { }
+ public Azure.Temp.Batch.Models.DisableJobOption DisableTasks { get { throw null; } }
+ }
+ public partial class JobEnableOptions
+ {
+ public JobEnableOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobExecutionInformation
+ {
+ internal JobExecutionInformation() { }
+ public System.DateTimeOffset? EndTime { get { throw null; } }
+ public string PoolId { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobSchedulingError SchedulingError { get { throw null; } }
+ public System.DateTimeOffset StartTime { get { throw null; } }
+ public string TerminateReason { get { throw null; } }
+ }
+ public partial class JobGetOptions
+ {
+ public JobGetOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string Expand { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public string Select { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobGetTaskCountsOptions
+ {
+ public JobGetTaskCountsOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobListFromJobScheduleOptions
+ {
+ public JobListFromJobScheduleOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string Expand { get { throw null; } set { } }
+ public string Filter { get { throw null; } set { } }
+ public int? MaxResults { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public string Select { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobListOptions
+ {
+ public JobListOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string Expand { get { throw null; } set { } }
+ public string Filter { get { throw null; } set { } }
+ public int? MaxResults { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public string Select { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobListPreparationAndReleaseTaskStatusOptions
+ {
+ public JobListPreparationAndReleaseTaskStatusOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string Filter { get { throw null; } set { } }
+ public int? MaxResults { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public string Select { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobManagerTask
+ {
+ public JobManagerTask(string id, string commandLine) { }
+ public bool? AllowLowPriorityNode { get { throw null; } set { } }
+ public System.Collections.Generic.IList ApplicationPackageReferences { get { throw null; } }
+ public Azure.Temp.Batch.Models.AuthenticationTokenSettings AuthenticationTokenSettings { get { throw null; } set { } }
+ public string CommandLine { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.TaskConstraints Constraints { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.TaskContainerSettings ContainerSettings { get { throw null; } set { } }
+ public string DisplayName { get { throw null; } set { } }
+ public System.Collections.Generic.IList EnvironmentSettings { get { throw null; } }
+ public string Id { get { throw null; } set { } }
+ public bool? KillJobOnCompletion { get { throw null; } set { } }
+ public System.Collections.Generic.IList OutputFiles { get { throw null; } }
+ public int? RequiredSlots { get { throw null; } set { } }
+ public System.Collections.Generic.IList ResourceFiles { get { throw null; } }
+ public bool? RunExclusive { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.UserIdentity UserIdentity { get { throw null; } set { } }
+ }
+ public partial class JobNetworkConfiguration
+ {
+ public JobNetworkConfiguration(string subnetId) { }
+ public string SubnetId { get { throw null; } set { } }
+ }
+ public partial class JobPatchOptions
+ {
+ public JobPatchOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobPatchParameter
+ {
+ public JobPatchParameter() { }
+ public bool? AllowTaskPreemption { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.JobConstraints Constraints { get { throw null; } set { } }
+ public int? MaxParallelTasks { get { throw null; } set { } }
+ public System.Collections.Generic.IList Metadata { get { throw null; } }
+ public Azure.Temp.Batch.Models.OnAllTasksComplete? OnAllTasksComplete { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.PoolInformation PoolInfo { get { throw null; } set { } }
+ public int? Priority { get { throw null; } set { } }
+ }
+ public partial class JobPreparationAndReleaseTaskExecutionInformation
+ {
+ internal JobPreparationAndReleaseTaskExecutionInformation() { }
+ public Azure.Temp.Batch.Models.JobPreparationTaskExecutionInformation JobPreparationTaskExecutionInfo { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobReleaseTaskExecutionInformation JobReleaseTaskExecutionInfo { get { throw null; } }
+ public string NodeId { get { throw null; } }
+ public string NodeUrl { get { throw null; } }
+ public string PoolId { get { throw null; } }
+ }
+ public partial class JobPreparationTask
+ {
+ public JobPreparationTask(string commandLine) { }
+ public string CommandLine { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.TaskConstraints Constraints { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.TaskContainerSettings ContainerSettings { get { throw null; } set { } }
+ public System.Collections.Generic.IList EnvironmentSettings { get { throw null; } }
+ public string Id { get { throw null; } set { } }
+ public bool? RerunOnNodeRebootAfterSuccess { get { throw null; } set { } }
+ public System.Collections.Generic.IList ResourceFiles { get { throw null; } }
+ public Azure.Temp.Batch.Models.UserIdentity UserIdentity { get { throw null; } set { } }
+ public bool? WaitForSuccess { get { throw null; } set { } }
+ }
+ public partial class JobPreparationTaskExecutionInformation
+ {
+ internal JobPreparationTaskExecutionInformation() { }
+ public Azure.Temp.Batch.Models.TaskContainerExecutionInformation ContainerInfo { get { throw null; } }
+ public System.DateTimeOffset? EndTime { get { throw null; } }
+ public int? ExitCode { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskFailureInformation FailureInfo { get { throw null; } }
+ public System.DateTimeOffset? LastRetryTime { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskExecutionResult? Result { get { throw null; } }
+ public int RetryCount { get { throw null; } }
+ public System.DateTimeOffset StartTime { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobPreparationTaskState State { get { throw null; } }
+ public string TaskRootDirectory { get { throw null; } }
+ public string TaskRootDirectoryUrl { get { throw null; } }
+ }
+ public enum JobPreparationTaskState
+ {
+ Running = 0,
+ Completed = 1,
+ }
+ public partial class JobReleaseTask
+ {
+ public JobReleaseTask(string commandLine) { }
+ public string CommandLine { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.TaskContainerSettings ContainerSettings { get { throw null; } set { } }
+ public System.Collections.Generic.IList EnvironmentSettings { get { throw null; } }
+ public string Id { get { throw null; } set { } }
+ public System.TimeSpan? MaxWallClockTime { get { throw null; } set { } }
+ public System.Collections.Generic.IList ResourceFiles { get { throw null; } }
+ public System.TimeSpan? RetentionTime { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.UserIdentity UserIdentity { get { throw null; } set { } }
+ }
+ public partial class JobReleaseTaskExecutionInformation
+ {
+ internal JobReleaseTaskExecutionInformation() { }
+ public Azure.Temp.Batch.Models.TaskContainerExecutionInformation ContainerInfo { get { throw null; } }
+ public System.DateTimeOffset? EndTime { get { throw null; } }
+ public int? ExitCode { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskFailureInformation FailureInfo { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskExecutionResult? Result { get { throw null; } }
+ public System.DateTimeOffset StartTime { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobReleaseTaskState State { get { throw null; } }
+ public string TaskRootDirectory { get { throw null; } }
+ public string TaskRootDirectoryUrl { get { throw null; } }
+ }
+ public enum JobReleaseTaskState
+ {
+ Running = 0,
+ Completed = 1,
+ }
+ public partial class JobScheduleAddOptions
+ {
+ public JobScheduleAddOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobScheduleAddParameter
+ {
+ public JobScheduleAddParameter(string id, Azure.Temp.Batch.Models.Schedule schedule, Azure.Temp.Batch.Models.JobSpecification jobSpecification) { }
+ public string DisplayName { get { throw null; } set { } }
+ public string Id { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobSpecification JobSpecification { get { throw null; } }
+ public System.Collections.Generic.IList Metadata { get { throw null; } }
+ public Azure.Temp.Batch.Models.Schedule Schedule { get { throw null; } }
+ }
+ public partial class JobScheduleDeleteOptions
+ {
+ public JobScheduleDeleteOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobScheduleDisableOptions
+ {
+ public JobScheduleDisableOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobScheduleEnableOptions
+ {
+ public JobScheduleEnableOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobScheduleExecutionInformation
+ {
+ internal JobScheduleExecutionInformation() { }
+ public System.DateTimeOffset? EndTime { get { throw null; } }
+ public System.DateTimeOffset? NextRunTime { get { throw null; } }
+ public Azure.Temp.Batch.Models.RecentJob RecentJob { get { throw null; } }
+ }
+ public partial class JobScheduleExistsOptions
+ {
+ public JobScheduleExistsOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobScheduleGetOptions
+ {
+ public JobScheduleGetOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string Expand { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public string Select { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobScheduleListOptions
+ {
+ public JobScheduleListOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string Expand { get { throw null; } set { } }
+ public string Filter { get { throw null; } set { } }
+ public int? MaxResults { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public string Select { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobSchedulePatchOptions
+ {
+ public JobSchedulePatchOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobSchedulePatchParameter
+ {
+ public JobSchedulePatchParameter() { }
+ public Azure.Temp.Batch.Models.JobSpecification JobSpecification { get { throw null; } set { } }
+ public System.Collections.Generic.IList Metadata { get { throw null; } }
+ public Azure.Temp.Batch.Models.Schedule Schedule { get { throw null; } set { } }
+ }
+ public enum JobScheduleState
+ {
+ Active = 0,
+ Completed = 1,
+ Disabled = 2,
+ Terminating = 3,
+ Deleting = 4,
+ }
+ public partial class JobScheduleStatistics
+ {
+ internal JobScheduleStatistics() { }
+ public System.TimeSpan KernelCPUTime { get { throw null; } }
+ public System.DateTimeOffset LastUpdateTime { get { throw null; } }
+ public long NumFailedTasks { get { throw null; } }
+ public long NumSucceededTasks { get { throw null; } }
+ public long NumTaskRetries { get { throw null; } }
+ public double ReadIOGiB { get { throw null; } }
+ public long ReadIOps { get { throw null; } }
+ public System.DateTimeOffset StartTime { get { throw null; } }
+ public string Url { get { throw null; } }
+ public System.TimeSpan UserCPUTime { get { throw null; } }
+ public System.TimeSpan WaitTime { get { throw null; } }
+ public System.TimeSpan WallClockTime { get { throw null; } }
+ public double WriteIOGiB { get { throw null; } }
+ public long WriteIOps { get { throw null; } }
+ }
+ public partial class JobScheduleTerminateOptions
+ {
+ public JobScheduleTerminateOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobScheduleUpdateOptions
+ {
+ public JobScheduleUpdateOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobScheduleUpdateParameter
+ {
+ public JobScheduleUpdateParameter(Azure.Temp.Batch.Models.Schedule schedule, Azure.Temp.Batch.Models.JobSpecification jobSpecification) { }
+ public Azure.Temp.Batch.Models.JobSpecification JobSpecification { get { throw null; } }
+ public System.Collections.Generic.IList Metadata { get { throw null; } }
+ public Azure.Temp.Batch.Models.Schedule Schedule { get { throw null; } }
+ }
+ public partial class JobSchedulingError
+ {
+ internal JobSchedulingError() { }
+ public Azure.Temp.Batch.Models.ErrorCategory Category { get { throw null; } }
+ public string Code { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList Details { get { throw null; } }
+ public string Message { get { throw null; } }
+ }
+ public partial class JobSpecification
+ {
+ public JobSpecification(Azure.Temp.Batch.Models.PoolInformation poolInfo) { }
+ public bool? AllowTaskPreemption { get { throw null; } set { } }
+ public System.Collections.Generic.IList CommonEnvironmentSettings { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobConstraints Constraints { get { throw null; } set { } }
+ public string DisplayName { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.JobManagerTask JobManagerTask { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.JobPreparationTask JobPreparationTask { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.JobReleaseTask JobReleaseTask { get { throw null; } set { } }
+ public int? MaxParallelTasks { get { throw null; } set { } }
+ public System.Collections.Generic.IList Metadata { get { throw null; } }
+ public Azure.Temp.Batch.Models.JobNetworkConfiguration NetworkConfiguration { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.OnAllTasksComplete? OnAllTasksComplete { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.OnTaskFailure? OnTaskFailure { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.PoolInformation PoolInfo { get { throw null; } set { } }
+ public int? Priority { get { throw null; } set { } }
+ public bool? UsesTaskDependencies { get { throw null; } set { } }
+ }
+ public enum JobState
+ {
+ Active = 0,
+ Disabling = 1,
+ Disabled = 2,
+ Enabling = 3,
+ Terminating = 4,
+ Completed = 5,
+ Deleting = 6,
+ }
+ public partial class JobStatistics
+ {
+ internal JobStatistics() { }
+ public System.TimeSpan KernelCPUTime { get { throw null; } }
+ public System.DateTimeOffset LastUpdateTime { get { throw null; } }
+ public long NumFailedTasks { get { throw null; } }
+ public long NumSucceededTasks { get { throw null; } }
+ public long NumTaskRetries { get { throw null; } }
+ public double ReadIOGiB { get { throw null; } }
+ public long ReadIOps { get { throw null; } }
+ public System.DateTimeOffset StartTime { get { throw null; } }
+ public string Url { get { throw null; } }
+ public System.TimeSpan UserCPUTime { get { throw null; } }
+ public System.TimeSpan WaitTime { get { throw null; } }
+ public System.TimeSpan WallClockTime { get { throw null; } }
+ public double WriteIOGiB { get { throw null; } }
+ public long WriteIOps { get { throw null; } }
+ }
+ public partial class JobTerminateOptions
+ {
+ public JobTerminateOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobTerminateParameter
+ {
+ public JobTerminateParameter() { }
+ public string TerminateReason { get { throw null; } set { } }
+ }
+ public partial class JobUpdateOptions
+ {
+ public JobUpdateOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class JobUpdateParameter
+ {
+ public JobUpdateParameter(Azure.Temp.Batch.Models.PoolInformation poolInfo) { }
+ public bool? AllowTaskPreemption { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.JobConstraints Constraints { get { throw null; } set { } }
+ public int? MaxParallelTasks { get { throw null; } set { } }
+ public System.Collections.Generic.IList Metadata { get { throw null; } }
+ public Azure.Temp.Batch.Models.OnAllTasksComplete? OnAllTasksComplete { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.PoolInformation PoolInfo { get { throw null; } }
+ public int? Priority { get { throw null; } set { } }
+ }
+ public partial class LinuxUserConfiguration
+ {
+ public LinuxUserConfiguration() { }
+ public int? Gid { get { throw null; } set { } }
+ public string SshPrivateKey { get { throw null; } set { } }
+ public int? Uid { get { throw null; } set { } }
+ }
+ public enum LoginMode
+ {
+ Batch = 0,
+ Interactive = 1,
+ }
+ public partial class MetadataItem
+ {
+ public MetadataItem(string name, string value) { }
+ public string Name { get { throw null; } set { } }
+ public string Value { get { throw null; } set { } }
+ }
+ public partial class MountConfiguration
+ {
+ public MountConfiguration() { }
+ public Azure.Temp.Batch.Models.AzureBlobFileSystemConfiguration AzureBlobFileSystemConfiguration { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.AzureFileShareConfiguration AzureFileShareConfiguration { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.CifsMountConfiguration CifsMountConfiguration { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.NFSMountConfiguration NfsMountConfiguration { get { throw null; } set { } }
+ }
+ public partial class MultiInstanceSettings
+ {
+ public MultiInstanceSettings(string coordinationCommandLine) { }
+ public System.Collections.Generic.IList CommonResourceFiles { get { throw null; } }
+ public string CoordinationCommandLine { get { throw null; } set { } }
+ public int? NumberOfInstances { get { throw null; } set { } }
+ }
+ public partial class NameValuePair
+ {
+ internal NameValuePair() { }
+ public string Name { get { throw null; } }
+ public string Value { get { throw null; } }
+ }
+ public partial class NetworkConfiguration
+ {
+ public NetworkConfiguration() { }
+ public Azure.Temp.Batch.Models.DynamicVNetAssignmentScope? DynamicVNetAssignmentScope { get { throw null; } set { } }
+ public bool? EnableAcceleratedNetworking { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.PoolEndpointConfiguration EndpointConfiguration { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.PublicIPAddressConfiguration PublicIPAddressConfiguration { get { throw null; } set { } }
+ public string SubnetId { get { throw null; } set { } }
+ }
+ public partial class NetworkSecurityGroupRule
+ {
+ public NetworkSecurityGroupRule(int priority, Azure.Temp.Batch.Models.NetworkSecurityGroupRuleAccess access, string sourceAddressPrefix) { }
+ public Azure.Temp.Batch.Models.NetworkSecurityGroupRuleAccess Access { get { throw null; } set { } }
+ public int Priority { get { throw null; } set { } }
+ public string SourceAddressPrefix { get { throw null; } set { } }
+ public System.Collections.Generic.IList SourcePortRanges { get { throw null; } }
+ }
+ public enum NetworkSecurityGroupRuleAccess
+ {
+ Allow = 0,
+ Deny = 1,
+ }
+ public partial class NFSMountConfiguration
+ {
+ public NFSMountConfiguration(string source, string relativeMountPath) { }
+ public string MountOptions { get { throw null; } set { } }
+ public string RelativeMountPath { get { throw null; } set { } }
+ public string Source { get { throw null; } set { } }
+ }
+ public partial class NodeAgentInformation
+ {
+ internal NodeAgentInformation() { }
+ public System.DateTimeOffset LastUpdateTime { get { throw null; } }
+ public string Version { get { throw null; } }
+ }
+ public enum NodeCommunicationMode
+ {
+ Default = 0,
+ Classic = 1,
+ Simplified = 2,
+ }
+ public partial class NodeCounts
+ {
+ internal NodeCounts() { }
+ public int Creating { get { throw null; } }
+ public int Idle { get { throw null; } }
+ public int LeavingPool { get { throw null; } }
+ public int Offline { get { throw null; } }
+ public int Preempted { get { throw null; } }
+ public int Rebooting { get { throw null; } }
+ public int Reimaging { get { throw null; } }
+ public int Running { get { throw null; } }
+ public int Starting { get { throw null; } }
+ public int StartTaskFailed { get { throw null; } }
+ public int Total { get { throw null; } }
+ public int Unknown { get { throw null; } }
+ public int Unusable { get { throw null; } }
+ public int WaitingForStartTask { get { throw null; } }
+ }
+ public partial class NodeDisableSchedulingParameter
+ {
+ public NodeDisableSchedulingParameter() { }
+ public Azure.Temp.Batch.Models.DisableComputeNodeSchedulingOption? NodeDisableSchedulingOption { get { throw null; } set { } }
+ }
+ public partial class NodeFile
+ {
+ internal NodeFile() { }
+ public bool? IsDirectory { get { throw null; } }
+ public string Name { get { throw null; } }
+ public Azure.Temp.Batch.Models.FileProperties Properties { get { throw null; } }
+ public string Url { get { throw null; } }
+ }
+ public partial class NodePlacementConfiguration
+ {
+ public NodePlacementConfiguration() { }
+ public Azure.Temp.Batch.Models.NodePlacementPolicyType? Policy { get { throw null; } set { } }
+ }
+ public enum NodePlacementPolicyType
+ {
+ Regional = 0,
+ Zonal = 1,
+ }
+ public partial class NodeRebootParameter
+ {
+ public NodeRebootParameter() { }
+ public Azure.Temp.Batch.Models.ComputeNodeRebootOption? NodeRebootOption { get { throw null; } set { } }
+ }
+ public partial class NodeReimageParameter
+ {
+ public NodeReimageParameter() { }
+ public Azure.Temp.Batch.Models.ComputeNodeReimageOption? NodeReimageOption { get { throw null; } set { } }
+ }
+ public partial class NodeRemoveParameter
+ {
+ public NodeRemoveParameter(System.Collections.Generic.IEnumerable nodeList) { }
+ public Azure.Temp.Batch.Models.ComputeNodeDeallocationOption? NodeDeallocationOption { get { throw null; } set { } }
+ public System.Collections.Generic.IList NodeList { get { throw null; } }
+ public System.TimeSpan? ResizeTimeout { get { throw null; } set { } }
+ }
+ public partial class NodeUpdateUserParameter
+ {
+ public NodeUpdateUserParameter() { }
+ public System.DateTimeOffset? ExpiryTime { get { throw null; } set { } }
+ public string Password { get { throw null; } set { } }
+ public string SshPublicKey { get { throw null; } set { } }
+ }
+ public partial class NodeVMExtension
+ {
+ internal NodeVMExtension() { }
+ public Azure.Temp.Batch.Models.VMExtensionInstanceView InstanceView { get { throw null; } }
+ public string ProvisioningState { get { throw null; } }
+ public Azure.Temp.Batch.Models.VMExtension VmExtension { get { throw null; } }
+ }
+ public enum OnAllTasksComplete
+ {
+ NoAction = 0,
+ TerminateJob = 1,
+ }
+ public enum OnTaskFailure
+ {
+ NoAction = 0,
+ PerformExitOptionsJobAction = 1,
+ }
+ public partial class OSDisk
+ {
+ public OSDisk() { }
+ public Azure.Temp.Batch.Models.DiffDiskSettings EphemeralOSDiskSettings { get { throw null; } set { } }
+ }
+ public enum OSType
+ {
+ Linux = 0,
+ Windows = 1,
+ }
+ public partial class OutputFile
+ {
+ public OutputFile(string filePattern, Azure.Temp.Batch.Models.OutputFileDestination destination, Azure.Temp.Batch.Models.OutputFileUploadOptions uploadOptions) { }
+ public Azure.Temp.Batch.Models.OutputFileDestination Destination { get { throw null; } set { } }
+ public string FilePattern { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.OutputFileUploadOptions UploadOptions { get { throw null; } set { } }
+ }
+ public partial class OutputFileBlobContainerDestination
+ {
+ public OutputFileBlobContainerDestination(string containerUrl) { }
+ public string ContainerUrl { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.ComputeNodeIdentityReference IdentityReference { get { throw null; } set { } }
+ public string Path { get { throw null; } set { } }
+ public System.Collections.Generic.IList UploadHeaders { get { throw null; } }
+ }
+ public partial class OutputFileDestination
+ {
+ public OutputFileDestination() { }
+ public Azure.Temp.Batch.Models.OutputFileBlobContainerDestination Container { get { throw null; } set { } }
+ }
+ public enum OutputFileUploadCondition
+ {
+ TaskSuccess = 0,
+ TaskFailure = 1,
+ TaskCompletion = 2,
+ }
+ public partial class OutputFileUploadOptions
+ {
+ public OutputFileUploadOptions(Azure.Temp.Batch.Models.OutputFileUploadCondition uploadCondition) { }
+ public Azure.Temp.Batch.Models.OutputFileUploadCondition UploadCondition { get { throw null; } set { } }
+ }
+ public partial class PoolAddOptions
+ {
+ public PoolAddOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class PoolAddParameter
+ {
+ public PoolAddParameter(string id, string vmSize) { }
+ public System.Collections.Generic.IList ApplicationLicenses { get { throw null; } }
+ public System.Collections.Generic.IList ApplicationPackageReferences { get { throw null; } }
+ public System.TimeSpan? AutoScaleEvaluationInterval { get { throw null; } set { } }
+ public string AutoScaleFormula { get { throw null; } set { } }
+ public System.Collections.Generic.IList CertificateReferences { get { throw null; } }
+ public Azure.Temp.Batch.Models.CloudServiceConfiguration CloudServiceConfiguration { get { throw null; } set { } }
+ public string DisplayName { get { throw null; } set { } }
+ public bool? EnableAutoScale { get { throw null; } set { } }
+ public bool? EnableInterNodeCommunication { get { throw null; } set { } }
+ public string Id { get { throw null; } }
+ public System.Collections.Generic.IList Metadata { get { throw null; } }
+ public System.Collections.Generic.IList MountConfiguration { get { throw null; } }
+ public Azure.Temp.Batch.Models.NetworkConfiguration NetworkConfiguration { get { throw null; } set { } }
+ public System.TimeSpan? ResizeTimeout { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.StartTask StartTask { get { throw null; } set { } }
+ public int? TargetDedicatedNodes { get { throw null; } set { } }
+ public int? TargetLowPriorityNodes { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.NodeCommunicationMode? TargetNodeCommunicationMode { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.TaskSchedulingPolicy TaskSchedulingPolicy { get { throw null; } set { } }
+ public int? TaskSlotsPerNode { get { throw null; } set { } }
+ public System.Collections.Generic.IList UserAccounts { get { throw null; } }
+ public Azure.Temp.Batch.Models.VirtualMachineConfiguration VirtualMachineConfiguration { get { throw null; } set { } }
+ public string VmSize { get { throw null; } }
+ }
+ public partial class PoolDeleteOptions
+ {
+ public PoolDeleteOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class PoolDisableAutoScaleOptions
+ {
+ public PoolDisableAutoScaleOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class PoolEnableAutoScaleOptions
+ {
+ public PoolEnableAutoScaleOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class PoolEnableAutoScaleParameter
+ {
+ public PoolEnableAutoScaleParameter() { }
+ public System.TimeSpan? AutoScaleEvaluationInterval { get { throw null; } set { } }
+ public string AutoScaleFormula { get { throw null; } set { } }
+ }
+ public partial class PoolEndpointConfiguration
+ {
+ public PoolEndpointConfiguration(System.Collections.Generic.IEnumerable inboundNATPools) { }
+ public System.Collections.Generic.IList InboundNATPools { get { throw null; } }
+ }
+ public partial class PoolEvaluateAutoScaleOptions
+ {
+ public PoolEvaluateAutoScaleOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class PoolEvaluateAutoScaleParameter
+ {
+ public PoolEvaluateAutoScaleParameter(string autoScaleFormula) { }
+ public string AutoScaleFormula { get { throw null; } }
+ }
+ public partial class PoolExistsOptions
+ {
+ public PoolExistsOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class PoolGetOptions
+ {
+ public PoolGetOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string Expand { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public string Select { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public enum PoolIdentityType
+ {
+ UserAssigned = 0,
+ None = 1,
+ }
+ public partial class PoolInformation
+ {
+ public PoolInformation() { }
+ public Azure.Temp.Batch.Models.AutoPoolSpecification AutoPoolSpecification { get { throw null; } set { } }
+ public string PoolId { get { throw null; } set { } }
+ }
+ public enum PoolLifetimeOption
+ {
+ JobSchedule = 0,
+ Job = 1,
+ }
+ public partial class PoolListOptions
+ {
+ public PoolListOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string Expand { get { throw null; } set { } }
+ public string Filter { get { throw null; } set { } }
+ public int? MaxResults { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public string Select { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class PoolListUsageMetricsOptions
+ {
+ public PoolListUsageMetricsOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? EndTime { get { throw null; } set { } }
+ public string Filter { get { throw null; } set { } }
+ public int? MaxResults { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? StartTime { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class PoolNodeCounts
+ {
+ internal PoolNodeCounts() { }
+ public Azure.Temp.Batch.Models.NodeCounts Dedicated { get { throw null; } }
+ public Azure.Temp.Batch.Models.NodeCounts LowPriority { get { throw null; } }
+ public string PoolId { get { throw null; } }
+ }
+ public partial class PoolPatchOptions
+ {
+ public PoolPatchOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class PoolPatchParameter
+ {
+ public PoolPatchParameter() { }
+ public System.Collections.Generic.IList ApplicationPackageReferences { get { throw null; } }
+ public System.Collections.Generic.IList CertificateReferences { get { throw null; } }
+ public System.Collections.Generic.IList Metadata { get { throw null; } }
+ public Azure.Temp.Batch.Models.StartTask StartTask { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.NodeCommunicationMode? TargetNodeCommunicationMode { get { throw null; } set { } }
+ }
+ public partial class PoolRemoveNodesOptions
+ {
+ public PoolRemoveNodesOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class PoolResizeOptions
+ {
+ public PoolResizeOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class PoolResizeParameter
+ {
+ public PoolResizeParameter() { }
+ public Azure.Temp.Batch.Models.ComputeNodeDeallocationOption? NodeDeallocationOption { get { throw null; } set { } }
+ public System.TimeSpan? ResizeTimeout { get { throw null; } set { } }
+ public int? TargetDedicatedNodes { get { throw null; } set { } }
+ public int? TargetLowPriorityNodes { get { throw null; } set { } }
+ }
+ public partial class PoolSpecification
+ {
+ public PoolSpecification(string vmSize) { }
+ public System.Collections.Generic.IList ApplicationLicenses { get { throw null; } }
+ public System.Collections.Generic.IList ApplicationPackageReferences { get { throw null; } }
+ public System.TimeSpan? AutoScaleEvaluationInterval { get { throw null; } set { } }
+ public string AutoScaleFormula { get { throw null; } set { } }
+ public System.Collections.Generic.IList CertificateReferences { get { throw null; } }
+ public Azure.Temp.Batch.Models.CloudServiceConfiguration CloudServiceConfiguration { get { throw null; } set { } }
+ public string DisplayName { get { throw null; } set { } }
+ public bool? EnableAutoScale { get { throw null; } set { } }
+ public bool? EnableInterNodeCommunication { get { throw null; } set { } }
+ public System.Collections.Generic.IList Metadata { get { throw null; } }
+ public System.Collections.Generic.IList MountConfiguration { get { throw null; } }
+ public Azure.Temp.Batch.Models.NetworkConfiguration NetworkConfiguration { get { throw null; } set { } }
+ public System.TimeSpan? ResizeTimeout { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.StartTask StartTask { get { throw null; } set { } }
+ public int? TargetDedicatedNodes { get { throw null; } set { } }
+ public int? TargetLowPriorityNodes { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.NodeCommunicationMode? TargetNodeCommunicationMode { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.TaskSchedulingPolicy TaskSchedulingPolicy { get { throw null; } set { } }
+ public int? TaskSlotsPerNode { get { throw null; } set { } }
+ public System.Collections.Generic.IList UserAccounts { get { throw null; } }
+ public Azure.Temp.Batch.Models.VirtualMachineConfiguration VirtualMachineConfiguration { get { throw null; } set { } }
+ public string VmSize { get { throw null; } set { } }
+ }
+ public enum PoolState
+ {
+ Active = 0,
+ Deleting = 1,
+ }
+ public partial class PoolStatistics
+ {
+ internal PoolStatistics() { }
+ public System.DateTimeOffset LastUpdateTime { get { throw null; } }
+ public Azure.Temp.Batch.Models.ResourceStatistics ResourceStats { get { throw null; } }
+ public System.DateTimeOffset StartTime { get { throw null; } }
+ public string Url { get { throw null; } }
+ public Azure.Temp.Batch.Models.UsageStatistics UsageStats { get { throw null; } }
+ }
+ public partial class PoolStopResizeOptions
+ {
+ public PoolStopResizeOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class PoolUpdatePropertiesOptions
+ {
+ public PoolUpdatePropertiesOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class PoolUpdatePropertiesParameter
+ {
+ public PoolUpdatePropertiesParameter(System.Collections.Generic.IEnumerable certificateReferences, System.Collections.Generic.IEnumerable applicationPackageReferences, System.Collections.Generic.IEnumerable metadata) { }
+ public System.Collections.Generic.IList ApplicationPackageReferences { get { throw null; } }
+ public System.Collections.Generic.IList CertificateReferences { get { throw null; } }
+ public System.Collections.Generic.IList Metadata { get { throw null; } }
+ public Azure.Temp.Batch.Models.StartTask StartTask { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.NodeCommunicationMode? TargetNodeCommunicationMode { get { throw null; } set { } }
+ }
+ public partial class PoolUsageMetrics
+ {
+ internal PoolUsageMetrics() { }
+ public System.DateTimeOffset EndTime { get { throw null; } }
+ public string PoolId { get { throw null; } }
+ public System.DateTimeOffset StartTime { get { throw null; } }
+ public double TotalCoreHours { get { throw null; } }
+ public string VmSize { get { throw null; } }
+ }
+ public partial class PublicIPAddressConfiguration
+ {
+ public PublicIPAddressConfiguration() { }
+ public System.Collections.Generic.IList IpAddressIds { get { throw null; } }
+ public Azure.Temp.Batch.Models.IPAddressProvisioningType? Provision { get { throw null; } set { } }
+ }
+ public partial class RecentJob
+ {
+ internal RecentJob() { }
+ public string Id { get { throw null; } }
+ public string Url { get { throw null; } }
+ }
+ public partial class ResizeError
+ {
+ internal ResizeError() { }
+ public string Code { get { throw null; } }
+ public string Message { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList Values { get { throw null; } }
+ }
+ public partial class ResourceFile
+ {
+ public ResourceFile() { }
+ public string AutoStorageContainerName { get { throw null; } set { } }
+ public string BlobPrefix { get { throw null; } set { } }
+ public string FileMode { get { throw null; } set { } }
+ public string FilePath { get { throw null; } set { } }
+ public string HttpUrl { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.ComputeNodeIdentityReference IdentityReference { get { throw null; } set { } }
+ public string StorageContainerUrl { get { throw null; } set { } }
+ }
+ public partial class ResourceStatistics
+ {
+ internal ResourceStatistics() { }
+ public double AvgCPUPercentage { get { throw null; } }
+ public double AvgDiskGiB { get { throw null; } }
+ public double AvgMemoryGiB { get { throw null; } }
+ public double DiskReadGiB { get { throw null; } }
+ public long DiskReadIOps { get { throw null; } }
+ public double DiskWriteGiB { get { throw null; } }
+ public long DiskWriteIOps { get { throw null; } }
+ public System.DateTimeOffset LastUpdateTime { get { throw null; } }
+ public double NetworkReadGiB { get { throw null; } }
+ public double NetworkWriteGiB { get { throw null; } }
+ public double PeakDiskGiB { get { throw null; } }
+ public double PeakMemoryGiB { get { throw null; } }
+ public System.DateTimeOffset StartTime { get { throw null; } }
+ }
+ public partial class Schedule
+ {
+ public Schedule() { }
+ public System.DateTimeOffset? DoNotRunAfter { get { throw null; } set { } }
+ public System.DateTimeOffset? DoNotRunUntil { get { throw null; } set { } }
+ public System.TimeSpan? RecurrenceInterval { get { throw null; } set { } }
+ public System.TimeSpan? StartWindow { get { throw null; } set { } }
+ }
+ public enum SchedulingState
+ {
+ Enabled = 0,
+ Disabled = 1,
+ }
+ public partial class StartTask
+ {
+ public StartTask(string commandLine) { }
+ public string CommandLine { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.TaskContainerSettings ContainerSettings { get { throw null; } set { } }
+ public System.Collections.Generic.IList EnvironmentSettings { get { throw null; } }
+ public int? MaxTaskRetryCount { get { throw null; } set { } }
+ public System.Collections.Generic.IList ResourceFiles { get { throw null; } }
+ public Azure.Temp.Batch.Models.UserIdentity UserIdentity { get { throw null; } set { } }
+ public bool? WaitForSuccess { get { throw null; } set { } }
+ }
+ public partial class StartTaskInformation
+ {
+ internal StartTaskInformation() { }
+ public Azure.Temp.Batch.Models.TaskContainerExecutionInformation ContainerInfo { get { throw null; } }
+ public System.DateTimeOffset? EndTime { get { throw null; } }
+ public int? ExitCode { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskFailureInformation FailureInfo { get { throw null; } }
+ public System.DateTimeOffset? LastRetryTime { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskExecutionResult? Result { get { throw null; } }
+ public int RetryCount { get { throw null; } }
+ public System.DateTimeOffset StartTime { get { throw null; } }
+ public Azure.Temp.Batch.Models.StartTaskState State { get { throw null; } }
+ }
+ public enum StartTaskState
+ {
+ Running = 0,
+ Completed = 1,
+ }
+ public enum StatusLevelTypes
+ {
+ Error = 0,
+ Info = 1,
+ Warning = 2,
+ }
+ public enum StorageAccountType
+ {
+ StandardLRS = 0,
+ PremiumLRS = 1,
+ }
+ public partial class SubtaskInformation
+ {
+ internal SubtaskInformation() { }
+ public Azure.Temp.Batch.Models.TaskContainerExecutionInformation ContainerInfo { get { throw null; } }
+ public System.DateTimeOffset? EndTime { get { throw null; } }
+ public int? ExitCode { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskFailureInformation FailureInfo { get { throw null; } }
+ public int? Id { get { throw null; } }
+ public Azure.Temp.Batch.Models.ComputeNodeInformation NodeInfo { get { throw null; } }
+ public Azure.Temp.Batch.Models.SubtaskState? PreviousState { get { throw null; } }
+ public System.DateTimeOffset? PreviousStateTransitionTime { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskExecutionResult? Result { get { throw null; } }
+ public System.DateTimeOffset? StartTime { get { throw null; } }
+ public Azure.Temp.Batch.Models.SubtaskState? State { get { throw null; } }
+ public System.DateTimeOffset? StateTransitionTime { get { throw null; } }
+ }
+ public enum SubtaskState
+ {
+ Preparing = 0,
+ Running = 1,
+ Completed = 2,
+ }
+ public partial class TaskAddCollectionOptions
+ {
+ public TaskAddCollectionOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class TaskAddCollectionParameter
+ {
+ public TaskAddCollectionParameter(System.Collections.Generic.IEnumerable value) { }
+ public System.Collections.Generic.IList Value { get { throw null; } }
+ }
+ public partial class TaskAddCollectionResult
+ {
+ internal TaskAddCollectionResult() { }
+ public System.Collections.Generic.IReadOnlyList Value { get { throw null; } }
+ }
+ public partial class TaskAddOptions
+ {
+ public TaskAddOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class TaskAddParameter
+ {
+ public TaskAddParameter(string id, string commandLine) { }
+ public Azure.Temp.Batch.Models.AffinityInformation AffinityInfo { get { throw null; } set { } }
+ public System.Collections.Generic.IList ApplicationPackageReferences { get { throw null; } }
+ public Azure.Temp.Batch.Models.AuthenticationTokenSettings AuthenticationTokenSettings { get { throw null; } set { } }
+ public string CommandLine { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskConstraints Constraints { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.TaskContainerSettings ContainerSettings { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.TaskDependencies DependsOn { get { throw null; } set { } }
+ public string DisplayName { get { throw null; } set { } }
+ public System.Collections.Generic.IList EnvironmentSettings { get { throw null; } }
+ public Azure.Temp.Batch.Models.ExitConditions ExitConditions { get { throw null; } set { } }
+ public string Id { get { throw null; } }
+ public Azure.Temp.Batch.Models.MultiInstanceSettings MultiInstanceSettings { get { throw null; } set { } }
+ public System.Collections.Generic.IList OutputFiles { get { throw null; } }
+ public int? RequiredSlots { get { throw null; } set { } }
+ public System.Collections.Generic.IList ResourceFiles { get { throw null; } }
+ public Azure.Temp.Batch.Models.UserIdentity UserIdentity { get { throw null; } set { } }
+ }
+ public partial class TaskAddResult
+ {
+ internal TaskAddResult() { }
+ public Azure.Temp.Batch.Models.BatchError Error { get { throw null; } }
+ public string ETag { get { throw null; } }
+ public System.DateTimeOffset? LastModified { get { throw null; } }
+ public string Location { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskAddStatus Status { get { throw null; } }
+ public string TaskId { get { throw null; } }
+ }
+ public enum TaskAddStatus
+ {
+ Success = 0,
+ ClientError = 1,
+ ServerError = 2,
+ }
+ public partial class TaskConstraints
+ {
+ public TaskConstraints() { }
+ public int? MaxTaskRetryCount { get { throw null; } set { } }
+ public System.TimeSpan? MaxWallClockTime { get { throw null; } set { } }
+ public System.TimeSpan? RetentionTime { get { throw null; } set { } }
+ }
+ public partial class TaskContainerExecutionInformation
+ {
+ internal TaskContainerExecutionInformation() { }
+ public string ContainerId { get { throw null; } }
+ public string Error { get { throw null; } }
+ public string State { get { throw null; } }
+ }
+ public partial class TaskContainerSettings
+ {
+ public TaskContainerSettings(string imageName) { }
+ public string ContainerRunOptions { get { throw null; } set { } }
+ public string ImageName { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.ContainerRegistry Registry { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.ContainerWorkingDirectory? WorkingDirectory { get { throw null; } set { } }
+ }
+ public partial class TaskCounts
+ {
+ internal TaskCounts() { }
+ public int Active { get { throw null; } }
+ public int Completed { get { throw null; } }
+ public int Failed { get { throw null; } }
+ public int Running { get { throw null; } }
+ public int Succeeded { get { throw null; } }
+ }
+ public partial class TaskCountsResult
+ {
+ internal TaskCountsResult() { }
+ public Azure.Temp.Batch.Models.TaskCounts TaskCounts { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskSlotCounts TaskSlotCounts { get { throw null; } }
+ }
+ public partial class TaskDeleteOptions
+ {
+ public TaskDeleteOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class TaskDependencies
+ {
+ public TaskDependencies() { }
+ public System.Collections.Generic.IList TaskIdRanges { get { throw null; } }
+ public System.Collections.Generic.IList TaskIds { get { throw null; } }
+ }
+ public partial class TaskExecutionInformation
+ {
+ internal TaskExecutionInformation() { }
+ public Azure.Temp.Batch.Models.TaskContainerExecutionInformation ContainerInfo { get { throw null; } }
+ public System.DateTimeOffset? EndTime { get { throw null; } }
+ public int? ExitCode { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskFailureInformation FailureInfo { get { throw null; } }
+ public System.DateTimeOffset? LastRequeueTime { get { throw null; } }
+ public System.DateTimeOffset? LastRetryTime { get { throw null; } }
+ public int RequeueCount { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskExecutionResult? Result { get { throw null; } }
+ public int RetryCount { get { throw null; } }
+ public System.DateTimeOffset? StartTime { get { throw null; } }
+ }
+ public enum TaskExecutionResult
+ {
+ Success = 0,
+ Failure = 1,
+ }
+ public partial class TaskFailureInformation
+ {
+ internal TaskFailureInformation() { }
+ public Azure.Temp.Batch.Models.ErrorCategory Category { get { throw null; } }
+ public string Code { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList Details { get { throw null; } }
+ public string Message { get { throw null; } }
+ }
+ public partial class TaskGetOptions
+ {
+ public TaskGetOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string Expand { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public string Select { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class TaskIdRange
+ {
+ public TaskIdRange(int start, int end) { }
+ public int End { get { throw null; } set { } }
+ public int Start { get { throw null; } set { } }
+ }
+ public partial class TaskInformation
+ {
+ internal TaskInformation() { }
+ public Azure.Temp.Batch.Models.TaskExecutionInformation ExecutionInfo { get { throw null; } }
+ public string JobId { get { throw null; } }
+ public int? SubtaskId { get { throw null; } }
+ public string TaskId { get { throw null; } }
+ public Azure.Temp.Batch.Models.TaskState TaskState { get { throw null; } }
+ public string TaskUrl { get { throw null; } }
+ }
+ public partial class TaskListOptions
+ {
+ public TaskListOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string Expand { get { throw null; } set { } }
+ public string Filter { get { throw null; } set { } }
+ public int? MaxResults { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public string Select { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class TaskListSubtasksOptions
+ {
+ public TaskListSubtasksOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public string Select { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class TaskReactivateOptions
+ {
+ public TaskReactivateOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class TaskSchedulingPolicy
+ {
+ public TaskSchedulingPolicy(Azure.Temp.Batch.Models.ComputeNodeFillType nodeFillType) { }
+ public Azure.Temp.Batch.Models.ComputeNodeFillType NodeFillType { get { throw null; } set { } }
+ }
+ public partial class TaskSlotCounts
+ {
+ internal TaskSlotCounts() { }
+ public int Active { get { throw null; } }
+ public int Completed { get { throw null; } }
+ public int Failed { get { throw null; } }
+ public int Running { get { throw null; } }
+ public int Succeeded { get { throw null; } }
+ }
+ public enum TaskState
+ {
+ Active = 0,
+ Preparing = 1,
+ Running = 2,
+ Completed = 3,
+ }
+ public partial class TaskStatistics
+ {
+ internal TaskStatistics() { }
+ public System.TimeSpan KernelCPUTime { get { throw null; } }
+ public System.DateTimeOffset LastUpdateTime { get { throw null; } }
+ public double ReadIOGiB { get { throw null; } }
+ public long ReadIOps { get { throw null; } }
+ public System.DateTimeOffset StartTime { get { throw null; } }
+ public string Url { get { throw null; } }
+ public System.TimeSpan UserCPUTime { get { throw null; } }
+ public System.TimeSpan WaitTime { get { throw null; } }
+ public System.TimeSpan WallClockTime { get { throw null; } }
+ public double WriteIOGiB { get { throw null; } }
+ public long WriteIOps { get { throw null; } }
+ }
+ public partial class TaskTerminateOptions
+ {
+ public TaskTerminateOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class TaskUpdateOptions
+ {
+ public TaskUpdateOptions() { }
+ public System.Guid? ClientRequestId { get { throw null; } set { } }
+ public string IfMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
+ public string IfNoneMatch { get { throw null; } set { } }
+ public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
+ public System.DateTimeOffset? OcpDate { get { throw null; } set { } }
+ public bool? ReturnClientRequestId { get { throw null; } set { } }
+ public int? Timeout { get { throw null; } set { } }
+ }
+ public partial class TaskUpdateParameter
+ {
+ public TaskUpdateParameter() { }
+ public Azure.Temp.Batch.Models.TaskConstraints Constraints { get { throw null; } set { } }
+ }
+ public static partial class TempBatchModelFactory
+ {
+ public static Azure.Temp.Batch.Models.ApplicationSummary ApplicationSummary(string id = null, string displayName = null, System.Collections.Generic.IEnumerable versions = null) { throw null; }
+ public static Azure.Temp.Batch.Models.AutoScaleRun AutoScaleRun(System.DateTimeOffset timestamp = default(System.DateTimeOffset), string results = null, Azure.Temp.Batch.Models.AutoScaleRunError error = null) { throw null; }
+ public static Azure.Temp.Batch.Models.AutoScaleRunError AutoScaleRunError(string code = null, string message = null, System.Collections.Generic.IEnumerable values = null) { throw null; }
+ public static Azure.Temp.Batch.Models.BatchError BatchError(string code = null, Azure.Temp.Batch.Models.ErrorMessage message = null, System.Collections.Generic.IEnumerable values = null) { throw null; }
+ public static Azure.Temp.Batch.Models.BatchErrorDetail BatchErrorDetail(string key = null, string value = null) { throw null; }
+ public static Azure.Temp.Batch.Models.BatchPoolIdentity BatchPoolIdentity(Azure.Temp.Batch.Models.PoolIdentityType type = Azure.Temp.Batch.Models.PoolIdentityType.UserAssigned, System.Collections.Generic.IEnumerable userAssignedIdentities = null) { throw null; }
+ public static Azure.Temp.Batch.Models.Certificate Certificate(string thumbprint = null, string thumbprintAlgorithm = null, string url = null, Azure.Temp.Batch.Models.CertificateState? state = default(Azure.Temp.Batch.Models.CertificateState?), System.DateTimeOffset? stateTransitionTime = default(System.DateTimeOffset?), Azure.Temp.Batch.Models.CertificateState? previousState = default(Azure.Temp.Batch.Models.CertificateState?), System.DateTimeOffset? previousStateTransitionTime = default(System.DateTimeOffset?), string publicData = null, Azure.Temp.Batch.Models.DeleteCertificateError deleteCertificateError = null) { throw null; }
+ public static Azure.Temp.Batch.Models.CloudJob CloudJob(string id = null, string displayName = null, bool? usesTaskDependencies = default(bool?), string url = null, string eTag = null, System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), System.DateTimeOffset? creationTime = default(System.DateTimeOffset?), Azure.Temp.Batch.Models.JobState? state = default(Azure.Temp.Batch.Models.JobState?), System.DateTimeOffset? stateTransitionTime = default(System.DateTimeOffset?), Azure.Temp.Batch.Models.JobState? previousState = default(Azure.Temp.Batch.Models.JobState?), System.DateTimeOffset? previousStateTransitionTime = default(System.DateTimeOffset?), int? priority = default(int?), bool? allowTaskPreemption = default(bool?), int? maxParallelTasks = default(int?), Azure.Temp.Batch.Models.JobConstraints constraints = null, Azure.Temp.Batch.Models.JobManagerTask jobManagerTask = null, Azure.Temp.Batch.Models.JobPreparationTask jobPreparationTask = null, Azure.Temp.Batch.Models.JobReleaseTask jobReleaseTask = null, System.Collections.Generic.IEnumerable commonEnvironmentSettings = null, Azure.Temp.Batch.Models.PoolInformation poolInfo = null, Azure.Temp.Batch.Models.OnAllTasksComplete? onAllTasksComplete = default(Azure.Temp.Batch.Models.OnAllTasksComplete?), Azure.Temp.Batch.Models.OnTaskFailure? onTaskFailure = default(Azure.Temp.Batch.Models.OnTaskFailure?), Azure.Temp.Batch.Models.JobNetworkConfiguration networkConfiguration = null, System.Collections.Generic.IEnumerable metadata = null, Azure.Temp.Batch.Models.JobExecutionInformation executionInfo = null, Azure.Temp.Batch.Models.JobStatistics stats = null) { throw null; }
+ public static Azure.Temp.Batch.Models.CloudJobSchedule CloudJobSchedule(string id = null, string displayName = null, string url = null, string eTag = null, System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), System.DateTimeOffset? creationTime = default(System.DateTimeOffset?), Azure.Temp.Batch.Models.JobScheduleState? state = default(Azure.Temp.Batch.Models.JobScheduleState?), System.DateTimeOffset? stateTransitionTime = default(System.DateTimeOffset?), Azure.Temp.Batch.Models.JobScheduleState? previousState = default(Azure.Temp.Batch.Models.JobScheduleState?), System.DateTimeOffset? previousStateTransitionTime = default(System.DateTimeOffset?), Azure.Temp.Batch.Models.Schedule schedule = null, Azure.Temp.Batch.Models.JobSpecification jobSpecification = null, Azure.Temp.Batch.Models.JobScheduleExecutionInformation executionInfo = null, System.Collections.Generic.IEnumerable metadata = null, Azure.Temp.Batch.Models.JobScheduleStatistics stats = null) { throw null; }
+ public static Azure.Temp.Batch.Models.CloudPool CloudPool(string id = null, string displayName = null, string url = null, string eTag = null, System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), System.DateTimeOffset? creationTime = default(System.DateTimeOffset?), Azure.Temp.Batch.Models.PoolState? state = default(Azure.Temp.Batch.Models.PoolState?), System.DateTimeOffset? stateTransitionTime = default(System.DateTimeOffset?), Azure.Temp.Batch.Models.AllocationState? allocationState = default(Azure.Temp.Batch.Models.AllocationState?), System.DateTimeOffset? allocationStateTransitionTime = default(System.DateTimeOffset?), string vmSize = null, Azure.Temp.Batch.Models.CloudServiceConfiguration cloudServiceConfiguration = null, Azure.Temp.Batch.Models.VirtualMachineConfiguration virtualMachineConfiguration = null, System.TimeSpan? resizeTimeout = default(System.TimeSpan?), System.Collections.Generic.IEnumerable resizeErrors = null, int? currentDedicatedNodes = default(int?), int? currentLowPriorityNodes = default(int?), int? targetDedicatedNodes = default(int?), int? targetLowPriorityNodes = default(int?), bool? enableAutoScale = default(bool?), string autoScaleFormula = null, System.TimeSpan? autoScaleEvaluationInterval = default(System.TimeSpan?), Azure.Temp.Batch.Models.AutoScaleRun autoScaleRun = null, bool? enableInterNodeCommunication = default(bool?), Azure.Temp.Batch.Models.NetworkConfiguration networkConfiguration = null, Azure.Temp.Batch.Models.StartTask startTask = null, System.Collections.Generic.IEnumerable certificateReferences = null, System.Collections.Generic.IEnumerable applicationPackageReferences = null, System.Collections.Generic.IEnumerable applicationLicenses = null, int? taskSlotsPerNode = default(int?), Azure.Temp.Batch.Models.TaskSchedulingPolicy taskSchedulingPolicy = null, System.Collections.Generic.IEnumerable userAccounts = null, System.Collections.Generic.IEnumerable metadata = null, Azure.Temp.Batch.Models.PoolStatistics stats = null, System.Collections.Generic.IEnumerable mountConfiguration = null, Azure.Temp.Batch.Models.BatchPoolIdentity identity = null, Azure.Temp.Batch.Models.NodeCommunicationMode? targetNodeCommunicationMode = default(Azure.Temp.Batch.Models.NodeCommunicationMode?), Azure.Temp.Batch.Models.NodeCommunicationMode? currentNodeCommunicationMode = default(Azure.Temp.Batch.Models.NodeCommunicationMode?)) { throw null; }
+ public static Azure.Temp.Batch.Models.CloudTask CloudTask(string id = null, string displayName = null, string url = null, string eTag = null, System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), System.DateTimeOffset? creationTime = default(System.DateTimeOffset?), Azure.Temp.Batch.Models.ExitConditions exitConditions = null, Azure.Temp.Batch.Models.TaskState? state = default(Azure.Temp.Batch.Models.TaskState?), System.DateTimeOffset? stateTransitionTime = default(System.DateTimeOffset?), Azure.Temp.Batch.Models.TaskState? previousState = default(Azure.Temp.Batch.Models.TaskState?), System.DateTimeOffset? previousStateTransitionTime = default(System.DateTimeOffset?), string commandLine = null, Azure.Temp.Batch.Models.TaskContainerSettings containerSettings = null, System.Collections.Generic.IEnumerable resourceFiles = null, System.Collections.Generic.IEnumerable outputFiles = null, System.Collections.Generic.IEnumerable environmentSettings = null, Azure.Temp.Batch.Models.AffinityInformation affinityInfo = null, Azure.Temp.Batch.Models.TaskConstraints constraints = null, int? requiredSlots = default(int?), Azure.Temp.Batch.Models.UserIdentity userIdentity = null, Azure.Temp.Batch.Models.TaskExecutionInformation executionInfo = null, Azure.Temp.Batch.Models.ComputeNodeInformation nodeInfo = null, Azure.Temp.Batch.Models.MultiInstanceSettings multiInstanceSettings = null, Azure.Temp.Batch.Models.TaskStatistics stats = null, Azure.Temp.Batch.Models.TaskDependencies dependsOn = null, System.Collections.Generic.IEnumerable applicationPackageReferences = null, Azure.Temp.Batch.Models.AuthenticationTokenSettings authenticationTokenSettings = null) { throw null; }
+ public static Azure.Temp.Batch.Models.CloudTaskListSubtasksResult CloudTaskListSubtasksResult(System.Collections.Generic.IEnumerable value = null) { throw null; }
+ public static Azure.Temp.Batch.Models.ComputeNode ComputeNode(string id = null, string url = null, Azure.Temp.Batch.Models.ComputeNodeState? state = default(Azure.Temp.Batch.Models.ComputeNodeState?), Azure.Temp.Batch.Models.SchedulingState? schedulingState = default(Azure.Temp.Batch.Models.SchedulingState?), System.DateTimeOffset? stateTransitionTime = default(System.DateTimeOffset?), System.DateTimeOffset? lastBootTime = default(System.DateTimeOffset?), System.DateTimeOffset? allocationTime = default(System.DateTimeOffset?), string ipAddress = null, string affinityId = null, string vmSize = null, int? totalTasksRun = default(int?), int? runningTasksCount = default(int?), int? runningTaskSlotsCount = default(int?), int? totalTasksSucceeded = default(int?), System.Collections.Generic.IEnumerable recentTasks = null, Azure.Temp.Batch.Models.StartTask startTask = null, Azure.Temp.Batch.Models.StartTaskInformation startTaskInfo = null, System.Collections.Generic.IEnumerable certificateReferences = null, System.Collections.Generic.IEnumerable errors = null, bool? isDedicated = default(bool?), Azure.Temp.Batch.Models.ComputeNodeEndpointConfiguration endpointConfiguration = null, Azure.Temp.Batch.Models.NodeAgentInformation nodeAgentInfo = null, Azure.Temp.Batch.Models.VirtualMachineInfo virtualMachineInfo = null) { throw null; }
+ public static Azure.Temp.Batch.Models.ComputeNodeEndpointConfiguration ComputeNodeEndpointConfiguration(System.Collections.Generic.IEnumerable inboundEndpoints = null) { throw null; }
+ public static Azure.Temp.Batch.Models.ComputeNodeError ComputeNodeError(string code = null, string message = null, System.Collections.Generic.IEnumerable errorDetails = null) { throw null; }
+ public static Azure.Temp.Batch.Models.ComputeNodeGetRemoteLoginSettingsResult ComputeNodeGetRemoteLoginSettingsResult(string remoteLoginIPAddress = null, int remoteLoginPort = 0) { throw null; }
+ public static Azure.Temp.Batch.Models.ComputeNodeInformation ComputeNodeInformation(string affinityId = null, string nodeUrl = null, string poolId = null, string nodeId = null, string taskRootDirectory = null, string taskRootDirectoryUrl = null) { throw null; }
+ public static Azure.Temp.Batch.Models.DeleteCertificateError DeleteCertificateError(string code = null, string message = null, System.Collections.Generic.IEnumerable values = null) { throw null; }
+ public static Azure.Temp.Batch.Models.ErrorMessage ErrorMessage(string lang = null, string value = null) { throw null; }
+ public static Azure.Temp.Batch.Models.FileProperties FileProperties(System.DateTimeOffset? creationTime = default(System.DateTimeOffset?), System.DateTimeOffset lastModified = default(System.DateTimeOffset), long contentLength = (long)0, string contentType = null, string fileMode = null) { throw null; }
+ public static Azure.Temp.Batch.Models.ImageInformation ImageInformation(string nodeAgentSKUId = null, Azure.Temp.Batch.Models.ImageReference imageReference = null, Azure.Temp.Batch.Models.OSType osType = Azure.Temp.Batch.Models.OSType.Linux, System.Collections.Generic.IEnumerable capabilities = null, System.DateTimeOffset? batchSupportEndOfLife = default(System.DateTimeOffset?), Azure.Temp.Batch.Models.VerificationType verificationType = Azure.Temp.Batch.Models.VerificationType.Verified) { throw null; }
+ public static Azure.Temp.Batch.Models.ImageReference ImageReference(string publisher = null, string offer = null, string sku = null, string version = null, string virtualMachineImageId = null, string exactVersion = null) { throw null; }
+ public static Azure.Temp.Batch.Models.InboundEndpoint InboundEndpoint(string name = null, Azure.Temp.Batch.Models.InboundEndpointProtocol protocol = Azure.Temp.Batch.Models.InboundEndpointProtocol.Tcp, string publicIPAddress = null, string publicFqdn = null, int frontendPort = 0, int backendPort = 0) { throw null; }
+ public static Azure.Temp.Batch.Models.InstanceViewStatus InstanceViewStatus(string code = null, string displayStatus = null, Azure.Temp.Batch.Models.StatusLevelTypes? level = default(Azure.Temp.Batch.Models.StatusLevelTypes?), string message = null, string time = null) { throw null; }
+ public static Azure.Temp.Batch.Models.JobExecutionInformation JobExecutionInformation(System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string poolId = null, Azure.Temp.Batch.Models.JobSchedulingError schedulingError = null, string terminateReason = null) { throw null; }
+ public static Azure.Temp.Batch.Models.JobPreparationAndReleaseTaskExecutionInformation JobPreparationAndReleaseTaskExecutionInformation(string poolId = null, string nodeId = null, string nodeUrl = null, Azure.Temp.Batch.Models.JobPreparationTaskExecutionInformation jobPreparationTaskExecutionInfo = null, Azure.Temp.Batch.Models.JobReleaseTaskExecutionInformation jobReleaseTaskExecutionInfo = null) { throw null; }
+ public static Azure.Temp.Batch.Models.JobPreparationTaskExecutionInformation JobPreparationTaskExecutionInformation(System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), Azure.Temp.Batch.Models.JobPreparationTaskState state = Azure.Temp.Batch.Models.JobPreparationTaskState.Running, string taskRootDirectory = null, string taskRootDirectoryUrl = null, int? exitCode = default(int?), Azure.Temp.Batch.Models.TaskContainerExecutionInformation containerInfo = null, Azure.Temp.Batch.Models.TaskFailureInformation failureInfo = null, int retryCount = 0, System.DateTimeOffset? lastRetryTime = default(System.DateTimeOffset?), Azure.Temp.Batch.Models.TaskExecutionResult? result = default(Azure.Temp.Batch.Models.TaskExecutionResult?)) { throw null; }
+ public static Azure.Temp.Batch.Models.JobReleaseTaskExecutionInformation JobReleaseTaskExecutionInformation(System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), Azure.Temp.Batch.Models.JobReleaseTaskState state = Azure.Temp.Batch.Models.JobReleaseTaskState.Running, string taskRootDirectory = null, string taskRootDirectoryUrl = null, int? exitCode = default(int?), Azure.Temp.Batch.Models.TaskContainerExecutionInformation containerInfo = null, Azure.Temp.Batch.Models.TaskFailureInformation failureInfo = null, Azure.Temp.Batch.Models.TaskExecutionResult? result = default(Azure.Temp.Batch.Models.TaskExecutionResult?)) { throw null; }
+ public static Azure.Temp.Batch.Models.JobScheduleExecutionInformation JobScheduleExecutionInformation(System.DateTimeOffset? nextRunTime = default(System.DateTimeOffset?), Azure.Temp.Batch.Models.RecentJob recentJob = null, System.DateTimeOffset? endTime = default(System.DateTimeOffset?)) { throw null; }
+ public static Azure.Temp.Batch.Models.JobScheduleStatistics JobScheduleStatistics(string url = null, System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset lastUpdateTime = default(System.DateTimeOffset), System.TimeSpan userCPUTime = default(System.TimeSpan), System.TimeSpan kernelCPUTime = default(System.TimeSpan), System.TimeSpan wallClockTime = default(System.TimeSpan), long readIOps = (long)0, long writeIOps = (long)0, double readIOGiB = 0, double writeIOGiB = 0, long numSucceededTasks = (long)0, long numFailedTasks = (long)0, long numTaskRetries = (long)0, System.TimeSpan waitTime = default(System.TimeSpan)) { throw null; }
+ public static Azure.Temp.Batch.Models.JobSchedulingError JobSchedulingError(Azure.Temp.Batch.Models.ErrorCategory category = Azure.Temp.Batch.Models.ErrorCategory.UserError, string code = null, string message = null, System.Collections.Generic.IEnumerable details = null) { throw null; }
+ public static Azure.Temp.Batch.Models.JobStatistics JobStatistics(string url = null, System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset lastUpdateTime = default(System.DateTimeOffset), System.TimeSpan userCPUTime = default(System.TimeSpan), System.TimeSpan kernelCPUTime = default(System.TimeSpan), System.TimeSpan wallClockTime = default(System.TimeSpan), long readIOps = (long)0, long writeIOps = (long)0, double readIOGiB = 0, double writeIOGiB = 0, long numSucceededTasks = (long)0, long numFailedTasks = (long)0, long numTaskRetries = (long)0, System.TimeSpan waitTime = default(System.TimeSpan)) { throw null; }
+ public static Azure.Temp.Batch.Models.NameValuePair NameValuePair(string name = null, string value = null) { throw null; }
+ public static Azure.Temp.Batch.Models.NodeAgentInformation NodeAgentInformation(string version = null, System.DateTimeOffset lastUpdateTime = default(System.DateTimeOffset)) { throw null; }
+ public static Azure.Temp.Batch.Models.NodeCounts NodeCounts(int creating = 0, int idle = 0, int offline = 0, int preempted = 0, int rebooting = 0, int reimaging = 0, int running = 0, int starting = 0, int startTaskFailed = 0, int leavingPool = 0, int unknown = 0, int unusable = 0, int waitingForStartTask = 0, int total = 0) { throw null; }
+ public static Azure.Temp.Batch.Models.NodeFile NodeFile(string name = null, string url = null, bool? isDirectory = default(bool?), Azure.Temp.Batch.Models.FileProperties properties = null) { throw null; }
+ public static Azure.Temp.Batch.Models.NodeVMExtension NodeVMExtension(string provisioningState = null, Azure.Temp.Batch.Models.VMExtension vmExtension = null, Azure.Temp.Batch.Models.VMExtensionInstanceView instanceView = null) { throw null; }
+ public static Azure.Temp.Batch.Models.PoolNodeCounts PoolNodeCounts(string poolId = null, Azure.Temp.Batch.Models.NodeCounts dedicated = null, Azure.Temp.Batch.Models.NodeCounts lowPriority = null) { throw null; }
+ public static Azure.Temp.Batch.Models.PoolStatistics PoolStatistics(string url = null, System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset lastUpdateTime = default(System.DateTimeOffset), Azure.Temp.Batch.Models.UsageStatistics usageStats = null, Azure.Temp.Batch.Models.ResourceStatistics resourceStats = null) { throw null; }
+ public static Azure.Temp.Batch.Models.PoolUsageMetrics PoolUsageMetrics(string poolId = null, System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset endTime = default(System.DateTimeOffset), string vmSize = null, double totalCoreHours = 0) { throw null; }
+ public static Azure.Temp.Batch.Models.RecentJob RecentJob(string id = null, string url = null) { throw null; }
+ public static Azure.Temp.Batch.Models.ResizeError ResizeError(string code = null, string message = null, System.Collections.Generic.IEnumerable values = null) { throw null; }
+ public static Azure.Temp.Batch.Models.ResourceStatistics ResourceStatistics(System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset lastUpdateTime = default(System.DateTimeOffset), double avgCPUPercentage = 0, double avgMemoryGiB = 0, double peakMemoryGiB = 0, double avgDiskGiB = 0, double peakDiskGiB = 0, long diskReadIOps = (long)0, long diskWriteIOps = (long)0, double diskReadGiB = 0, double diskWriteGiB = 0, double networkReadGiB = 0, double networkWriteGiB = 0) { throw null; }
+ public static Azure.Temp.Batch.Models.StartTaskInformation StartTaskInformation(Azure.Temp.Batch.Models.StartTaskState state = Azure.Temp.Batch.Models.StartTaskState.Running, System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), int? exitCode = default(int?), Azure.Temp.Batch.Models.TaskContainerExecutionInformation containerInfo = null, Azure.Temp.Batch.Models.TaskFailureInformation failureInfo = null, int retryCount = 0, System.DateTimeOffset? lastRetryTime = default(System.DateTimeOffset?), Azure.Temp.Batch.Models.TaskExecutionResult? result = default(Azure.Temp.Batch.Models.TaskExecutionResult?)) { throw null; }
+ public static Azure.Temp.Batch.Models.SubtaskInformation SubtaskInformation(int? id = default(int?), Azure.Temp.Batch.Models.ComputeNodeInformation nodeInfo = null, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), int? exitCode = default(int?), Azure.Temp.Batch.Models.TaskContainerExecutionInformation containerInfo = null, Azure.Temp.Batch.Models.TaskFailureInformation failureInfo = null, Azure.Temp.Batch.Models.SubtaskState? state = default(Azure.Temp.Batch.Models.SubtaskState?), System.DateTimeOffset? stateTransitionTime = default(System.DateTimeOffset?), Azure.Temp.Batch.Models.SubtaskState? previousState = default(Azure.Temp.Batch.Models.SubtaskState?), System.DateTimeOffset? previousStateTransitionTime = default(System.DateTimeOffset?), Azure.Temp.Batch.Models.TaskExecutionResult? result = default(Azure.Temp.Batch.Models.TaskExecutionResult?)) { throw null; }
+ public static Azure.Temp.Batch.Models.TaskAddCollectionResult TaskAddCollectionResult(System.Collections.Generic.IEnumerable value = null) { throw null; }
+ public static Azure.Temp.Batch.Models.TaskAddResult TaskAddResult(Azure.Temp.Batch.Models.TaskAddStatus status = Azure.Temp.Batch.Models.TaskAddStatus.Success, string taskId = null, string eTag = null, System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), string location = null, Azure.Temp.Batch.Models.BatchError error = null) { throw null; }
+ public static Azure.Temp.Batch.Models.TaskContainerExecutionInformation TaskContainerExecutionInformation(string containerId = null, string state = null, string error = null) { throw null; }
+ public static Azure.Temp.Batch.Models.TaskCounts TaskCounts(int active = 0, int running = 0, int completed = 0, int succeeded = 0, int failed = 0) { throw null; }
+ public static Azure.Temp.Batch.Models.TaskCountsResult TaskCountsResult(Azure.Temp.Batch.Models.TaskCounts taskCounts = null, Azure.Temp.Batch.Models.TaskSlotCounts taskSlotCounts = null) { throw null; }
+ public static Azure.Temp.Batch.Models.TaskExecutionInformation TaskExecutionInformation(System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), int? exitCode = default(int?), Azure.Temp.Batch.Models.TaskContainerExecutionInformation containerInfo = null, Azure.Temp.Batch.Models.TaskFailureInformation failureInfo = null, int retryCount = 0, System.DateTimeOffset? lastRetryTime = default(System.DateTimeOffset?), int requeueCount = 0, System.DateTimeOffset? lastRequeueTime = default(System.DateTimeOffset?), Azure.Temp.Batch.Models.TaskExecutionResult? result = default(Azure.Temp.Batch.Models.TaskExecutionResult?)) { throw null; }
+ public static Azure.Temp.Batch.Models.TaskFailureInformation TaskFailureInformation(Azure.Temp.Batch.Models.ErrorCategory category = Azure.Temp.Batch.Models.ErrorCategory.UserError, string code = null, string message = null, System.Collections.Generic.IEnumerable details = null) { throw null; }
+ public static Azure.Temp.Batch.Models.TaskInformation TaskInformation(string taskUrl = null, string jobId = null, string taskId = null, int? subtaskId = default(int?), Azure.Temp.Batch.Models.TaskState taskState = Azure.Temp.Batch.Models.TaskState.Active, Azure.Temp.Batch.Models.TaskExecutionInformation executionInfo = null) { throw null; }
+ public static Azure.Temp.Batch.Models.TaskSlotCounts TaskSlotCounts(int active = 0, int running = 0, int completed = 0, int succeeded = 0, int failed = 0) { throw null; }
+ public static Azure.Temp.Batch.Models.TaskStatistics TaskStatistics(string url = null, System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset lastUpdateTime = default(System.DateTimeOffset), System.TimeSpan userCPUTime = default(System.TimeSpan), System.TimeSpan kernelCPUTime = default(System.TimeSpan), System.TimeSpan wallClockTime = default(System.TimeSpan), long readIOps = (long)0, long writeIOps = (long)0, double readIOGiB = 0, double writeIOGiB = 0, System.TimeSpan waitTime = default(System.TimeSpan)) { throw null; }
+ public static Azure.Temp.Batch.Models.UploadBatchServiceLogsResult UploadBatchServiceLogsResult(string virtualDirectoryName = null, int numberOfFilesUploaded = 0) { throw null; }
+ public static Azure.Temp.Batch.Models.UsageStatistics UsageStatistics(System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset lastUpdateTime = default(System.DateTimeOffset), System.TimeSpan dedicatedCoreTime = default(System.TimeSpan)) { throw null; }
+ public static Azure.Temp.Batch.Models.UserAssignedIdentity UserAssignedIdentity(string resourceId = null, string clientId = null, string principalId = null) { throw null; }
+ public static Azure.Temp.Batch.Models.VirtualMachineInfo VirtualMachineInfo(Azure.Temp.Batch.Models.ImageReference imageReference = null) { throw null; }
+ public static Azure.Temp.Batch.Models.VMExtensionInstanceView VMExtensionInstanceView(string name = null, System.Collections.Generic.IEnumerable statuses = null, System.Collections.Generic.IEnumerable subStatuses = null) { throw null; }
+ }
+ public partial class UploadBatchServiceLogsConfiguration
+ {
+ public UploadBatchServiceLogsConfiguration(string containerUrl, System.DateTimeOffset startTime) { }
+ public string ContainerUrl { get { throw null; } }
+ public System.DateTimeOffset? EndTime { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.ComputeNodeIdentityReference IdentityReference { get { throw null; } set { } }
+ public System.DateTimeOffset StartTime { get { throw null; } }
+ }
+ public partial class UploadBatchServiceLogsResult
+ {
+ internal UploadBatchServiceLogsResult() { }
+ public int NumberOfFilesUploaded { get { throw null; } }
+ public string VirtualDirectoryName { get { throw null; } }
+ }
+ public partial class UsageStatistics
+ {
+ internal UsageStatistics() { }
+ public System.TimeSpan DedicatedCoreTime { get { throw null; } }
+ public System.DateTimeOffset LastUpdateTime { get { throw null; } }
+ public System.DateTimeOffset StartTime { get { throw null; } }
+ }
+ public partial class UserAccount
+ {
+ public UserAccount(string name, string password) { }
+ public Azure.Temp.Batch.Models.ElevationLevel? ElevationLevel { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.LinuxUserConfiguration LinuxUserConfiguration { get { throw null; } set { } }
+ public string Name { get { throw null; } set { } }
+ public string Password { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.WindowsUserConfiguration WindowsUserConfiguration { get { throw null; } set { } }
+ }
+ public partial class UserAssignedIdentity
+ {
+ internal UserAssignedIdentity() { }
+ public string ClientId { get { throw null; } }
+ public string PrincipalId { get { throw null; } }
+ public string ResourceId { get { throw null; } }
+ }
+ public partial class UserIdentity
+ {
+ public UserIdentity() { }
+ public Azure.Temp.Batch.Models.AutoUserSpecification AutoUser { get { throw null; } set { } }
+ public string UserName { get { throw null; } set { } }
+ }
+ public enum VerificationType
+ {
+ Verified = 0,
+ Unverified = 1,
+ }
+ public partial class VirtualMachineConfiguration
+ {
+ public VirtualMachineConfiguration(Azure.Temp.Batch.Models.ImageReference imageReference, string nodeAgentSKUId) { }
+ public Azure.Temp.Batch.Models.ContainerConfiguration ContainerConfiguration { get { throw null; } set { } }
+ public System.Collections.Generic.IList DataDisks { get { throw null; } }
+ public Azure.Temp.Batch.Models.DiskEncryptionConfiguration DiskEncryptionConfiguration { get { throw null; } set { } }
+ public System.Collections.Generic.IList Extensions { get { throw null; } }
+ public Azure.Temp.Batch.Models.ImageReference ImageReference { get { throw null; } set { } }
+ public string LicenseType { get { throw null; } set { } }
+ public string NodeAgentSKUId { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.NodePlacementConfiguration NodePlacementConfiguration { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.OSDisk OsDisk { get { throw null; } set { } }
+ public Azure.Temp.Batch.Models.WindowsConfiguration WindowsConfiguration { get { throw null; } set { } }
+ }
+ public partial class VirtualMachineInfo
+ {
+ internal VirtualMachineInfo() { }
+ public Azure.Temp.Batch.Models.ImageReference ImageReference { get { throw null; } }
+ }
+ public partial class VMExtension
+ {
+ public VMExtension(string name, string publisher, string type) { }
+ public bool? AutoUpgradeMinorVersion { get { throw null; } set { } }
+ public bool? EnableAutomaticUpgrade { get { throw null; } set { } }
+ public string Name { get { throw null; } set { } }
+ public object ProtectedSettings { get { throw null; } set { } }
+ public System.Collections.Generic.IList ProvisionAfterExtensions { get { throw null; } }
+ public string Publisher { get { throw null; } set { } }
+ public object Settings { get { throw null; } set { } }
+ public string Type { get { throw null; } set { } }
+ public string TypeHandlerVersion { get { throw null; } set { } }
+ }
+ public partial class VMExtensionInstanceView
+ {
+ internal VMExtensionInstanceView() { }
+ public string Name { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList Statuses { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList SubStatuses { get { throw null; } }
+ }
+ public partial class WindowsConfiguration
+ {
+ public WindowsConfiguration() { }
+ public bool? EnableAutomaticUpdates { get { throw null; } set { } }
+ }
+ public partial class WindowsUserConfiguration
+ {
+ public WindowsUserConfiguration() { }
+ public Azure.Temp.Batch.Models.LoginMode? LoginMode { get { throw null; } set { } }
+ }
+}
diff --git a/sdk/batch/Azure.Temp.Batch/ci.yml b/sdk/batch/Azure.Temp.Batch/ci.yml
new file mode 100644
index 000000000000..307738726cff
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/ci.yml
@@ -0,0 +1,54 @@
+# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
+
+trigger:
+ branches:
+ include:
+ - main
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/template/
+#if (false)
+ # The following paths should only be included in template/ci.yml, and removed from any other SDKs which copy this file.
+ # The surrounding conditions should accomplish that when installed with `dotnet new azsdk`.
+ # eng/common code changes trigger template pipeline for basic checking.
+ - eng/common/
+#endif
+
+pr:
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/template/
+#if (false)
+ # The following paths should only be included in template/ci.yml, and removed from any other SDKs which copy this file.
+ # The surrounding conditions should accomplish that when installed with `dotnet new azsdk`.
+ # eng/common code changes trigger template pipeline for basic checking.
+ - eng/common/
+#endif
+
+parameters:
+- name: AllowFailingLiveTests
+ displayName: Allow release with failing live tests
+ type: boolean
+ default: false
+
+extends:
+ template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
+ parameters:
+ ServiceDirectory: template
+ ArtifactName: packages
+ Artifacts:
+ - name: Azure.Template
+ safeName: AzureTemplate
+ ReleaseDependsOnLiveTests: ${{ not(parameters.AllowFailingLiveTests) }}
+ LiveTestStages:
+ - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml
+ parameters:
+ ServiceDirectory: template
diff --git a/sdk/batch/Azure.Temp.Batch/perf/Azure.Template.Perf.csproj b/sdk/batch/Azure.Temp.Batch/perf/Azure.Template.Perf.csproj
new file mode 100644
index 000000000000..125c8cb105d6
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/perf/Azure.Template.Perf.csproj
@@ -0,0 +1,16 @@
+
+
+
+ Exe
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sdk/batch/Azure.Temp.Batch/perf/Program.cs b/sdk/batch/Azure.Temp.Batch/perf/Program.cs
new file mode 100644
index 000000000000..78a52ddce190
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/perf/Program.cs
@@ -0,0 +1,7 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using System.Reflection;
+using Azure.Test.Perf;
+
+ await PerfProgram.Main(Assembly.GetEntryAssembly(), args);
diff --git a/sdk/batch/Azure.Temp.Batch/perf/TemplateClientTest.cs b/sdk/batch/Azure.Temp.Batch/perf/TemplateClientTest.cs
new file mode 100644
index 000000000000..6c6b0f58f2a8
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/perf/TemplateClientTest.cs
@@ -0,0 +1,48 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Identity;
+using Azure.Test.Perf;
+using CommandLine;
+
+namespace Azure.Template.Perf
+{
+ public class TemplateClientTest : PerfTest
+ {
+ private readonly TemplateClient _templateClient;
+
+ public TemplateClientTest(TemplateClientPerfOptions options) : base(options)
+ {
+ string keyVaultUri = GetEnvironmentVariable("KEYVAULT_URL");
+ _templateClient = new TemplateClient(keyVaultUri, new DefaultAzureCredential());
+ }
+
+ public override void Run(CancellationToken cancellationToken)
+ {
+ // Throttle requests to avoid exceeding service limits
+ Thread.Sleep(TimeSpan.FromMilliseconds(Options.Delay));
+
+ _templateClient.GetSecretValue(Options.SecretName, cancellationToken);
+ }
+
+ public override async Task RunAsync(CancellationToken cancellationToken)
+ {
+ // Throttle requests to avoid exceeding service limits
+ await Task.Delay(TimeSpan.FromMilliseconds(Options.Delay), cancellationToken);
+
+ await _templateClient.GetSecretValueAsync(Options.SecretName, cancellationToken);
+ }
+
+ public class TemplateClientPerfOptions : PerfOptions
+ {
+ [Option("secret-name", Default = "TestSecret", HelpText = "Name of secret to get")]
+ public string SecretName { get; set; }
+
+ [Option("delay", Default = 100, HelpText = "Delay between gets (milliseconds)")]
+ public int Delay { get; set; }
+ }
+ }
+}
diff --git a/sdk/batch/Azure.Temp.Batch/samples/README.md b/sdk/batch/Azure.Temp.Batch/samples/README.md
new file mode 100644
index 000000000000..0f7694be10f0
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/samples/README.md
@@ -0,0 +1,17 @@
+---
+page_type: sample
+languages:
+- csharp
+products:
+# Including relevant stubs from https://review.docs.microsoft.com/help/contribute/metadata-taxonomies#product
+- azure
+name: Azure.Template samples for .NET
+description: Samples for the Azure.Template client library.
+---
+
+# Azure.Template Samples
+
+These code samples show common scenarios with the Azure Template client library.
+
+|[Sample1_HelloWorld](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/template/Azure.Template/tests/Samples/Sample1_HelloWorld.cs) |Get secrets synchronously.|
+|[Sample1_HelloWorld_Async](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/template/Azure.Template/tests/Samples/Sample1_HelloWorldAsync.cs)] |Get secrets asynchronously.|
diff --git a/sdk/batch/Azure.Temp.Batch/samples/Sample1.HelloWorldAsync.md b/sdk/batch/Azure.Temp.Batch/samples/Sample1.HelloWorldAsync.md
new file mode 100644
index 000000000000..d2763389cf8e
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/samples/Sample1.HelloWorldAsync.md
@@ -0,0 +1,24 @@
+# Get secret asynchronously
+
+To use these samples, you'll first need to set up resources. See [getting started](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/template/Azure.Template/README.md#getting-started) for details.
+
+## Import the namespaces
+
+```C# Snippet:Azure_Template
+using Azure.Identity;
+using Azure.Template.Models;
+```
+
+## Get secrets asynchronously
+
+You can also get secrets asynchronously:
+
+```C# Snippet:Azure_Template_GetSecretAsync
+string endpoint = "https://myvault.vault.azure.net";
+var credential = new DefaultAzureCredential();
+var client = new TemplateClient(endpoint, credential);
+
+SecretBundle secret = await client.GetSecretValueAsync("TestSecret");
+
+Console.WriteLine(secret.Value);
+```
diff --git a/sdk/batch/Azure.Temp.Batch/samples/Sample1_HelloWorld.md b/sdk/batch/Azure.Temp.Batch/samples/Sample1_HelloWorld.md
new file mode 100644
index 000000000000..52aa48bda9b0
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/samples/Sample1_HelloWorld.md
@@ -0,0 +1,24 @@
+# Get secret
+
+To use these samples, you'll first need to set up resources. See [getting started](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/template/Azure.Template/README.md#getting-started) for details.
+
+## Import the namespaces
+
+```C# Snippet:Azure_Template
+using Azure.Identity;
+using Azure.Template.Models;
+```
+
+## Get secrets synchronously
+
+You can create a client and get secrets synchronously:
+
+```C# Snippet:Azure_Template_GetSecret
+string endpoint = "https://myvault.vault.azure.net";
+var credential = new DefaultAzureCredential();
+var client = new TemplateClient(endpoint, credential);
+
+SecretBundle secret = client.GetSecretValue("TestSecret");
+
+Console.WriteLine(secret.Value);
+```
diff --git a/sdk/batch/Azure.Temp.Batch/src/Azure.Temp.Batch.csproj b/sdk/batch/Azure.Temp.Batch/src/Azure.Temp.Batch.csproj
new file mode 100644
index 000000000000..6fad75958403
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/src/Azure.Temp.Batch.csproj
@@ -0,0 +1,22 @@
+
+
+ This is the Template client library for developing .NET applications with rich experience.
+ Azure SDK Code Generation Template for Azure Data Plane
+ 1.0.3-beta.20
+ Azure Template
+ $(RequiredTargetFrameworks)
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/sdk/batch/Azure.Temp.Batch/src/Generated/AccountClient.cs b/sdk/batch/Azure.Temp.Batch/src/Generated/AccountClient.cs
new file mode 100644
index 000000000000..2ec99a4aef54
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/src/Generated/AccountClient.cs
@@ -0,0 +1,268 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using Autorest.CSharp.Core;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.Temp.Batch
+{
+ // Data plane generated client.
+ /// The Account service client.
+ public partial class AccountClient
+ {
+ private static readonly string[] AuthorizationScopes = new string[] { "https://batch.core.windows.net/.default" };
+ private readonly TokenCredential _tokenCredential;
+ private readonly HttpPipeline _pipeline;
+ private readonly string _batchUrl;
+ private readonly string _apiVersion;
+
+ /// The ClientDiagnostics is used to provide tracing support for the client library.
+ internal ClientDiagnostics ClientDiagnostics { get; }
+
+ /// The HTTP pipeline for sending and receiving REST requests and responses.
+ public virtual HttpPipeline Pipeline => _pipeline;
+
+ /// Initializes a new instance of AccountClient for mocking.
+ protected AccountClient()
+ {
+ }
+
+ /// Initializes a new instance of AccountClient.
+ /// The base URL for all Azure Batch service requests.
+ /// A credential used to authenticate to an Azure Service.
+ /// or is null.
+ public AccountClient(string batchUrl, TokenCredential credential) : this(batchUrl, credential, new BatchServiceClientOptions())
+ {
+ }
+
+ /// Initializes a new instance of AccountClient.
+ /// The base URL for all Azure Batch service requests.
+ /// A credential used to authenticate to an Azure Service.
+ /// The options for configuring the client.
+ /// or is null.
+ public AccountClient(string batchUrl, TokenCredential credential, BatchServiceClientOptions options)
+ {
+ Argument.AssertNotNull(batchUrl, nameof(batchUrl));
+ Argument.AssertNotNull(credential, nameof(credential));
+ options ??= new BatchServiceClientOptions();
+
+ ClientDiagnostics = new ClientDiagnostics(options, true);
+ _tokenCredential = credential;
+ _pipeline = HttpPipelineBuilder.Build(options, Array.Empty(), new HttpPipelinePolicy[] { new BearerTokenAuthenticationPolicy(_tokenCredential, AuthorizationScopes) }, new ResponseClassifier());
+ _batchUrl = batchUrl;
+ _apiVersion = options.Version;
+ }
+
+ ///
+ /// [Protocol Method] Lists all Virtual Machine Images supported by the Azure Batch service.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images.
+ /// The maximum number of items to return in the response. A maximum of 1000 results will be returned.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
+ /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+ ///
+ public virtual AsyncPageable GetSupportedImagesAsync(string filter, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetSupportedImagesRequest(filter, maxResults, timeout, ocpDate, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetSupportedImagesNextPageRequest(nextLink, filter, maxResults, timeout, ocpDate, context);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AccountClient.GetSupportedImages", "value", "odata.nextLink", context);
+ }
+
+ ///
+ /// [Protocol Method] Lists all Virtual Machine Images supported by the Azure Batch service.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images.
+ /// The maximum number of items to return in the response. A maximum of 1000 results will be returned.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
+ /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+ ///
+ public virtual Pageable GetSupportedImages(string filter, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetSupportedImagesRequest(filter, maxResults, timeout, ocpDate, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetSupportedImagesNextPageRequest(nextLink, filter, maxResults, timeout, ocpDate, context);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AccountClient.GetSupportedImages", "value", "odata.nextLink", context);
+ }
+
+ ///
+ /// [Protocol Method] Gets the number of Compute Nodes in each state, grouped by Pool. Note that the numbers returned may not always be up to date. If you need exact node counts, use a list query.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch.
+ /// The maximum number of items to return in the response.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// The 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
+ /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+ ///
+ public virtual AsyncPageable GetPoolNodeCountsAsync(string filter, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetPoolNodeCountsRequest(filter, maxResults, timeout, ocpDate, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetPoolNodeCountsNextPageRequest(nextLink, filter, maxResults, timeout, ocpDate, context);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AccountClient.GetPoolNodeCounts", "value", "odata.nextLink", context);
+ }
+
+ ///
+ /// [Protocol Method] Gets the number of Compute Nodes in each state, grouped by Pool. Note that the numbers returned may not always be up to date. If you need exact node counts, use a list query.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch.
+ /// The maximum number of items to return in the response.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// The 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
+ /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+ ///
+ public virtual Pageable GetPoolNodeCounts(string filter, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetPoolNodeCountsRequest(filter, maxResults, timeout, ocpDate, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetPoolNodeCountsNextPageRequest(nextLink, filter, maxResults, timeout, ocpDate, context);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AccountClient.GetPoolNodeCounts", "value", "odata.nextLink", context);
+ }
+
+ internal HttpMessage CreateGetSupportedImagesRequest(string filter, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/supportedimages", false);
+ if (filter != null)
+ {
+ uri.AppendQuery("$filter", filter, true);
+ }
+ if (maxResults != null)
+ {
+ uri.AppendQuery("maxresults", maxResults.Value, true);
+ }
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ internal HttpMessage CreateGetPoolNodeCountsRequest(string filter, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/nodecounts", false);
+ if (filter != null)
+ {
+ uri.AppendQuery("$filter", filter, true);
+ }
+ if (maxResults != null)
+ {
+ uri.AppendQuery("maxresults", maxResults.Value, true);
+ }
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ internal HttpMessage CreateGetSupportedImagesNextPageRequest(string nextLink, string filter, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendRawNextLink(nextLink, false);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ internal HttpMessage CreateGetPoolNodeCountsNextPageRequest(string nextLink, string filter, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendRawNextLink(nextLink, false);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ private static ResponseClassifier _responseClassifier200;
+ private static ResponseClassifier ResponseClassifier200 => _responseClassifier200 ??= new StatusCodeClassifier(stackalloc ushort[] { 200 });
+ }
+}
diff --git a/sdk/batch/Azure.Temp.Batch/src/Generated/ApplicationClient.cs b/sdk/batch/Azure.Temp.Batch/src/Generated/ApplicationClient.cs
new file mode 100644
index 000000000000..f61defd33e88
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/src/Generated/ApplicationClient.cs
@@ -0,0 +1,261 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.Temp.Batch
+{
+ // Data plane generated client.
+ /// The Application service client.
+ public partial class ApplicationClient
+ {
+ private static readonly string[] AuthorizationScopes = new string[] { "https://batch.core.windows.net/.default" };
+ private readonly TokenCredential _tokenCredential;
+ private readonly HttpPipeline _pipeline;
+ private readonly string _batchUrl;
+ private readonly string _apiVersion;
+
+ /// The ClientDiagnostics is used to provide tracing support for the client library.
+ internal ClientDiagnostics ClientDiagnostics { get; }
+
+ /// The HTTP pipeline for sending and receiving REST requests and responses.
+ public virtual HttpPipeline Pipeline => _pipeline;
+
+ /// Initializes a new instance of ApplicationClient for mocking.
+ protected ApplicationClient()
+ {
+ }
+
+ /// Initializes a new instance of ApplicationClient.
+ /// The base URL for all Azure Batch service requests.
+ /// A credential used to authenticate to an Azure Service.
+ /// or is null.
+ public ApplicationClient(string batchUrl, TokenCredential credential) : this(batchUrl, credential, new BatchServiceClientOptions())
+ {
+ }
+
+ /// Initializes a new instance of ApplicationClient.
+ /// The base URL for all Azure Batch service requests.
+ /// A credential used to authenticate to an Azure Service.
+ /// The options for configuring the client.
+ /// or is null.
+ public ApplicationClient(string batchUrl, TokenCredential credential, BatchServiceClientOptions options)
+ {
+ Argument.AssertNotNull(batchUrl, nameof(batchUrl));
+ Argument.AssertNotNull(credential, nameof(credential));
+ options ??= new BatchServiceClientOptions();
+
+ ClientDiagnostics = new ClientDiagnostics(options, true);
+ _tokenCredential = credential;
+ _pipeline = HttpPipelineBuilder.Build(options, Array.Empty(), new HttpPipelinePolicy[] { new BearerTokenAuthenticationPolicy(_tokenCredential, AuthorizationScopes) }, new ResponseClassifier());
+ _batchUrl = batchUrl;
+ _apiVersion = options.Version;
+ }
+
+ ///
+ /// [Protocol Method] Gets information about the specified Application.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Application.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 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.
+ ///
+ public virtual async Task GetApplicationAsync(string applicationId, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ Argument.AssertNotNullOrEmpty(applicationId, nameof(applicationId));
+
+ using var scope = ClientDiagnostics.CreateScope("ApplicationClient.GetApplication");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateGetApplicationRequest(applicationId, timeout, ocpDate, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Gets information about the specified Application.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Application.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 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.
+ ///
+ public virtual Response GetApplication(string applicationId, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ Argument.AssertNotNullOrEmpty(applicationId, nameof(applicationId));
+
+ using var scope = ClientDiagnostics.CreateScope("ApplicationClient.GetApplication");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateGetApplicationRequest(applicationId, timeout, ocpDate, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Lists all of the applications available in the specified Account.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The maximum number of items to return in the response. A maximum of 1000 applications can be returned.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
+ /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+ ///
+ public virtual AsyncPageable GetApplicationsAsync(int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetApplicationsRequest(maxResults, timeout, ocpDate, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetApplicationsNextPageRequest(nextLink, maxResults, timeout, ocpDate, context);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "ApplicationClient.GetApplications", "value", "odata.nextLink", context);
+ }
+
+ ///
+ /// [Protocol Method] Lists all of the applications available in the specified Account.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The maximum number of items to return in the response. A maximum of 1000 applications can be returned.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
+ /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+ ///
+ public virtual Pageable GetApplications(int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetApplicationsRequest(maxResults, timeout, ocpDate, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetApplicationsNextPageRequest(nextLink, maxResults, timeout, ocpDate, context);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "ApplicationClient.GetApplications", "value", "odata.nextLink", context);
+ }
+
+ internal HttpMessage CreateGetApplicationsRequest(int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/applications", false);
+ if (maxResults != null)
+ {
+ uri.AppendQuery("maxresults", maxResults.Value, true);
+ }
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ internal HttpMessage CreateGetApplicationRequest(string applicationId, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/applications/", false);
+ uri.AppendPath(applicationId, true);
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ internal HttpMessage CreateGetApplicationsNextPageRequest(string nextLink, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendRawNextLink(nextLink, false);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ private static ResponseClassifier _responseClassifier200;
+ private static ResponseClassifier ResponseClassifier200 => _responseClassifier200 ??= new StatusCodeClassifier(stackalloc ushort[] { 200 });
+ }
+}
diff --git a/sdk/batch/Azure.Temp.Batch/src/Generated/BatchServiceClientOptions.cs b/sdk/batch/Azure.Temp.Batch/src/Generated/BatchServiceClientOptions.cs
new file mode 100644
index 000000000000..917a1b34a681
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/src/Generated/BatchServiceClientOptions.cs
@@ -0,0 +1,37 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using Azure.Core;
+
+namespace Azure.Temp.Batch
+{
+ /// Client options for BatchServiceClient library clients.
+ public partial class BatchServiceClientOptions : ClientOptions
+ {
+ private const ServiceVersion LatestVersion = ServiceVersion.V2023_05_01_17_0;
+
+ /// The version of the service to use.
+ public enum ServiceVersion
+ {
+ /// Service version "2023-05-01.17.0".
+ V2023_05_01_17_0 = 1,
+ }
+
+ internal string Version { get; }
+
+ /// Initializes new instance of BatchServiceClientOptions.
+ public BatchServiceClientOptions(ServiceVersion version = LatestVersion)
+ {
+ Version = version switch
+ {
+ ServiceVersion.V2023_05_01_17_0 => "2023-05-01.17.0",
+ _ => throw new NotSupportedException()
+ };
+ }
+ }
+}
diff --git a/sdk/batch/Azure.Temp.Batch/src/Generated/CertificateClient.cs b/sdk/batch/Azure.Temp.Batch/src/Generated/CertificateClient.cs
new file mode 100644
index 000000000000..17f4106537dc
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/src/Generated/CertificateClient.cs
@@ -0,0 +1,602 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.Temp.Batch
+{
+ // Data plane generated client.
+ /// The Certificate service client.
+ public partial class CertificateClient
+ {
+ private static readonly string[] AuthorizationScopes = new string[] { "https://batch.core.windows.net/.default" };
+ private readonly TokenCredential _tokenCredential;
+ private readonly HttpPipeline _pipeline;
+ private readonly string _batchUrl;
+ private readonly string _apiVersion;
+
+ /// The ClientDiagnostics is used to provide tracing support for the client library.
+ internal ClientDiagnostics ClientDiagnostics { get; }
+
+ /// The HTTP pipeline for sending and receiving REST requests and responses.
+ public virtual HttpPipeline Pipeline => _pipeline;
+
+ /// Initializes a new instance of CertificateClient for mocking.
+ protected CertificateClient()
+ {
+ }
+
+ /// Initializes a new instance of CertificateClient.
+ /// The base URL for all Azure Batch service requests.
+ /// A credential used to authenticate to an Azure Service.
+ /// or is null.
+ public CertificateClient(string batchUrl, TokenCredential credential) : this(batchUrl, credential, new BatchServiceClientOptions())
+ {
+ }
+
+ /// Initializes a new instance of CertificateClient.
+ /// The base URL for all Azure Batch service requests.
+ /// A credential used to authenticate to an Azure Service.
+ /// The options for configuring the client.
+ /// or is null.
+ public CertificateClient(string batchUrl, TokenCredential credential, BatchServiceClientOptions options)
+ {
+ Argument.AssertNotNull(batchUrl, nameof(batchUrl));
+ Argument.AssertNotNull(credential, nameof(credential));
+ options ??= new BatchServiceClientOptions();
+
+ ClientDiagnostics = new ClientDiagnostics(options, true);
+ _tokenCredential = credential;
+ _pipeline = HttpPipelineBuilder.Build(options, Array.Empty(), new HttpPipelinePolicy[] { new BearerTokenAuthenticationPolicy(_tokenCredential, AuthorizationScopes) }, new ResponseClassifier());
+ _batchUrl = batchUrl;
+ _apiVersion = options.Version;
+ }
+
+ ///
+ /// [Protocol Method] Adds a Certificate to the specified Account.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// 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.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// is null.
+ /// Service returned a non-success status code.
+ /// The response returned from the service.
+ ///
+ public virtual async Task AddAsync(RequestContent content, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = ClientDiagnostics.CreateScope("CertificateClient.Add");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateAddRequest(content, timeout, ocpDate, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Adds a Certificate to the specified Account.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// 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.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// is null.
+ /// Service returned a non-success status code.
+ /// The response returned from the service.
+ ///
+ public virtual Response Add(RequestContent content, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = ClientDiagnostics.CreateScope("CertificateClient.Add");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateAddRequest(content, timeout, ocpDate, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Cancels a failed deletion of a Certificate from the specified Account.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The algorithm used to derive the thumbprint parameter. This must be sha1.
+ /// The thumbprint of the Certificate being deleted.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or 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 CancelDeletionAsync(string thumbprintAlgorithm, string thumbprint, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(thumbprintAlgorithm, nameof(thumbprintAlgorithm));
+ Argument.AssertNotNullOrEmpty(thumbprint, nameof(thumbprint));
+
+ using var scope = ClientDiagnostics.CreateScope("CertificateClient.CancelDeletion");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateCancelDeletionRequest(thumbprintAlgorithm, thumbprint, timeout, ocpDate, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Cancels a failed deletion of a Certificate from the specified Account.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The algorithm used to derive the thumbprint parameter. This must be sha1.
+ /// The thumbprint of the Certificate being deleted.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or 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 CancelDeletion(string thumbprintAlgorithm, string thumbprint, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(thumbprintAlgorithm, nameof(thumbprintAlgorithm));
+ Argument.AssertNotNullOrEmpty(thumbprint, nameof(thumbprint));
+
+ using var scope = ClientDiagnostics.CreateScope("CertificateClient.CancelDeletion");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateCancelDeletionRequest(thumbprintAlgorithm, thumbprint, timeout, ocpDate, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Deletes a Certificate from the specified Account.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The algorithm used to derive the thumbprint parameter. This must be sha1.
+ /// The thumbprint of the Certificate to be deleted.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or 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 DeleteAsync(string thumbprintAlgorithm, string thumbprint, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(thumbprintAlgorithm, nameof(thumbprintAlgorithm));
+ Argument.AssertNotNullOrEmpty(thumbprint, nameof(thumbprint));
+
+ using var scope = ClientDiagnostics.CreateScope("CertificateClient.Delete");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateDeleteRequest(thumbprintAlgorithm, thumbprint, timeout, ocpDate, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Deletes a Certificate from the specified Account.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The algorithm used to derive the thumbprint parameter. This must be sha1.
+ /// The thumbprint of the Certificate to be deleted.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or 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 Delete(string thumbprintAlgorithm, string thumbprint, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(thumbprintAlgorithm, nameof(thumbprintAlgorithm));
+ Argument.AssertNotNullOrEmpty(thumbprint, nameof(thumbprint));
+
+ using var scope = ClientDiagnostics.CreateScope("CertificateClient.Delete");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateDeleteRequest(thumbprintAlgorithm, thumbprint, timeout, ocpDate, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Gets information about the specified Certificate.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The algorithm used to derive the thumbprint parameter. This must be sha1.
+ /// The thumbprint of the Certificate to get.
+ /// An OData $select clause.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or 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 GetCertificateAsync(string thumbprintAlgorithm, string thumbprint, string select, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ Argument.AssertNotNullOrEmpty(thumbprintAlgorithm, nameof(thumbprintAlgorithm));
+ Argument.AssertNotNullOrEmpty(thumbprint, nameof(thumbprint));
+
+ using var scope = ClientDiagnostics.CreateScope("CertificateClient.GetCertificate");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateGetCertificateRequest(thumbprintAlgorithm, thumbprint, select, timeout, ocpDate, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Gets information about the specified Certificate.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The algorithm used to derive the thumbprint parameter. This must be sha1.
+ /// The thumbprint of the Certificate to get.
+ /// An OData $select clause.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or 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 GetCertificate(string thumbprintAlgorithm, string thumbprint, string select, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ Argument.AssertNotNullOrEmpty(thumbprintAlgorithm, nameof(thumbprintAlgorithm));
+ Argument.AssertNotNullOrEmpty(thumbprint, nameof(thumbprint));
+
+ using var scope = ClientDiagnostics.CreateScope("CertificateClient.GetCertificate");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateGetCertificateRequest(thumbprintAlgorithm, thumbprint, select, timeout, ocpDate, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Lists all of the Certificates that have been added to the specified Account.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-certificates.
+ /// An OData $select clause.
+ /// The maximum number of items to return in the response. A maximum of 1000 Certificates can be returned.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
+ /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+ ///
+ public virtual AsyncPageable GetCertificatesAsync(string filter, string select, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetCertificatesRequest(filter, select, maxResults, timeout, ocpDate, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetCertificatesNextPageRequest(nextLink, filter, select, maxResults, timeout, ocpDate, context);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "CertificateClient.GetCertificates", "value", "odata.nextLink", context);
+ }
+
+ ///
+ /// [Protocol Method] Lists all of the Certificates that have been added to the specified Account.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-certificates.
+ /// An OData $select clause.
+ /// The maximum number of items to return in the response. A maximum of 1000 Certificates can be returned.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
+ /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+ ///
+ public virtual Pageable GetCertificates(string filter, string select, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetCertificatesRequest(filter, select, maxResults, timeout, ocpDate, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetCertificatesNextPageRequest(nextLink, filter, select, maxResults, timeout, ocpDate, context);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "CertificateClient.GetCertificates", "value", "odata.nextLink", context);
+ }
+
+ internal HttpMessage CreateAddRequest(RequestContent content, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier201);
+ var request = message.Request;
+ request.Method = RequestMethod.Post;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/certificates", false);
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata");
+ request.Content = content;
+ return message;
+ }
+
+ internal HttpMessage CreateGetCertificatesRequest(string filter, string select, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/certificates", false);
+ if (filter != null)
+ {
+ uri.AppendQuery("$filter", filter, true);
+ }
+ if (select != null)
+ {
+ uri.AppendQuery("$select", select, true);
+ }
+ if (maxResults != null)
+ {
+ uri.AppendQuery("maxresults", maxResults.Value, true);
+ }
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ internal HttpMessage CreateCancelDeletionRequest(string thumbprintAlgorithm, string thumbprint, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier204);
+ var request = message.Request;
+ request.Method = RequestMethod.Post;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/certificates(thumbprintAlgorithm=", false);
+ uri.AppendPath(thumbprintAlgorithm, true);
+ uri.AppendPath(",thumbprint=", false);
+ uri.AppendPath(thumbprint, true);
+ uri.AppendPath(")/canceldelete", false);
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ internal HttpMessage CreateDeleteRequest(string thumbprintAlgorithm, string thumbprint, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier202);
+ var request = message.Request;
+ request.Method = RequestMethod.Delete;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/certificates(thumbprintAlgorithm=", false);
+ uri.AppendPath(thumbprintAlgorithm, true);
+ uri.AppendPath(",thumbprint=", false);
+ uri.AppendPath(thumbprint, true);
+ uri.AppendPath(")", false);
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ internal HttpMessage CreateGetCertificateRequest(string thumbprintAlgorithm, string thumbprint, string select, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/certificates(thumbprintAlgorithm=", false);
+ uri.AppendPath(thumbprintAlgorithm, true);
+ uri.AppendPath(",thumbprint=", false);
+ uri.AppendPath(thumbprint, true);
+ uri.AppendPath(")", false);
+ if (select != null)
+ {
+ uri.AppendQuery("$select", select, true);
+ }
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ internal HttpMessage CreateGetCertificatesNextPageRequest(string nextLink, string filter, string select, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendRawNextLink(nextLink, false);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ private static ResponseClassifier _responseClassifier201;
+ private static ResponseClassifier ResponseClassifier201 => _responseClassifier201 ??= new StatusCodeClassifier(stackalloc ushort[] { 201 });
+ private static ResponseClassifier _responseClassifier200;
+ private static ResponseClassifier ResponseClassifier200 => _responseClassifier200 ??= new StatusCodeClassifier(stackalloc ushort[] { 200 });
+ private static ResponseClassifier _responseClassifier204;
+ private static ResponseClassifier ResponseClassifier204 => _responseClassifier204 ??= new StatusCodeClassifier(stackalloc ushort[] { 204 });
+ private static ResponseClassifier _responseClassifier202;
+ private static ResponseClassifier ResponseClassifier202 => _responseClassifier202 ??= new StatusCodeClassifier(stackalloc ushort[] { 202 });
+ }
+}
diff --git a/sdk/batch/Azure.Temp.Batch/src/Generated/ComputeNodeClient.cs b/sdk/batch/Azure.Temp.Batch/src/Generated/ComputeNodeClient.cs
new file mode 100644
index 000000000000..ecbeba5cd06c
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/src/Generated/ComputeNodeClient.cs
@@ -0,0 +1,1401 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.Temp.Batch
+{
+ // Data plane generated client.
+ /// The ComputeNode service client.
+ public partial class ComputeNodeClient
+ {
+ private static readonly string[] AuthorizationScopes = new string[] { "https://batch.core.windows.net/.default" };
+ private readonly TokenCredential _tokenCredential;
+ private readonly HttpPipeline _pipeline;
+ private readonly string _batchUrl;
+ private readonly string _apiVersion;
+
+ /// The ClientDiagnostics is used to provide tracing support for the client library.
+ internal ClientDiagnostics ClientDiagnostics { get; }
+
+ /// The HTTP pipeline for sending and receiving REST requests and responses.
+ public virtual HttpPipeline Pipeline => _pipeline;
+
+ /// Initializes a new instance of ComputeNodeClient for mocking.
+ protected ComputeNodeClient()
+ {
+ }
+
+ /// Initializes a new instance of ComputeNodeClient.
+ /// The base URL for all Azure Batch service requests.
+ /// A credential used to authenticate to an Azure Service.
+ /// or is null.
+ public ComputeNodeClient(string batchUrl, TokenCredential credential) : this(batchUrl, credential, new BatchServiceClientOptions())
+ {
+ }
+
+ /// Initializes a new instance of ComputeNodeClient.
+ /// The base URL for all Azure Batch service requests.
+ /// A credential used to authenticate to an Azure Service.
+ /// The options for configuring the client.
+ /// or is null.
+ public ComputeNodeClient(string batchUrl, TokenCredential credential, BatchServiceClientOptions options)
+ {
+ Argument.AssertNotNull(batchUrl, nameof(batchUrl));
+ Argument.AssertNotNull(credential, nameof(credential));
+ options ??= new BatchServiceClientOptions();
+
+ ClientDiagnostics = new ClientDiagnostics(options, true);
+ _tokenCredential = credential;
+ _pipeline = HttpPipelineBuilder.Build(options, Array.Empty(), new HttpPipelinePolicy[] { new BearerTokenAuthenticationPolicy(_tokenCredential, AuthorizationScopes) }, new ResponseClassifier());
+ _batchUrl = batchUrl;
+ _apiVersion = options.Version;
+ }
+
+ ///
+ /// [Protocol Method] Adds a user Account to the specified Compute Node.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the machine on which you want to create a user Account.
+ /// 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.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// , or is null.
+ /// or 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 AddUserAsync(string poolId, string nodeId, RequestContent content, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.AddUser");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateAddUserRequest(poolId, nodeId, content, timeout, ocpDate, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Adds a user Account to the specified Compute Node.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the machine on which you want to create a user Account.
+ /// 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.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// , or is null.
+ /// or 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 AddUser(string poolId, string nodeId, RequestContent content, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.AddUser");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateAddUserRequest(poolId, nodeId, content, timeout, ocpDate, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Deletes a user Account from the specified Compute Node.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the machine on which you want to delete a user Account.
+ /// The name of the user Account to delete.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// , or is null.
+ /// , or 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 DeleteUserAsync(string poolId, string nodeId, string userName, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+ Argument.AssertNotNullOrEmpty(userName, nameof(userName));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.DeleteUser");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateDeleteUserRequest(poolId, nodeId, userName, timeout, ocpDate, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Deletes a user Account from the specified Compute Node.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the machine on which you want to delete a user Account.
+ /// The name of the user Account to delete.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// , or is null.
+ /// , or 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 DeleteUser(string poolId, string nodeId, string userName, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+ Argument.AssertNotNullOrEmpty(userName, nameof(userName));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.DeleteUser");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateDeleteUserRequest(poolId, nodeId, userName, timeout, ocpDate, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Updates the password and expiration time of a user Account on the specified Compute Node.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the machine on which you want to update a user Account.
+ /// The name of the user Account 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.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// , , or is null.
+ /// , or 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 UpdateUserAsync(string poolId, string nodeId, string userName, RequestContent content, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+ Argument.AssertNotNullOrEmpty(userName, nameof(userName));
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.UpdateUser");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateUpdateUserRequest(poolId, nodeId, userName, content, timeout, ocpDate, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Updates the password and expiration time of a user Account on the specified Compute Node.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the machine on which you want to update a user Account.
+ /// The name of the user Account 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.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// , , or is null.
+ /// , or 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 UpdateUser(string poolId, string nodeId, string userName, RequestContent content, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+ Argument.AssertNotNullOrEmpty(userName, nameof(userName));
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.UpdateUser");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateUpdateUserRequest(poolId, nodeId, userName, content, timeout, ocpDate, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Gets information about the specified Compute Node.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the Compute Node that you want to get information about.
+ /// An OData $select clause.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or 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 GetComputeNodeAsync(string poolId, string nodeId, string select, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.GetComputeNode");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateGetComputeNodeRequest(poolId, nodeId, select, timeout, ocpDate, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Gets information about the specified Compute Node.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the Compute Node that you want to get information about.
+ /// An OData $select clause.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or 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 GetComputeNode(string poolId, string nodeId, string select, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.GetComputeNode");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateGetComputeNodeRequest(poolId, nodeId, select, timeout, ocpDate, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Restarts the specified Compute Node.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the Compute Node that you want to restart.
+ /// 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.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or 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 RebootAsync(string poolId, string nodeId, RequestContent content, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.Reboot");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateRebootRequest(poolId, nodeId, content, timeout, ocpDate, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Restarts the specified Compute Node.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the Compute Node that you want to restart.
+ /// 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.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or 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 Reboot(string poolId, string nodeId, RequestContent content, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.Reboot");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateRebootRequest(poolId, nodeId, content, timeout, ocpDate, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Reinstalls the operating system on the specified Compute Node.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the Compute Node that you want to restart.
+ /// 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.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or 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 ReimageAsync(string poolId, string nodeId, RequestContent content, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.Reimage");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateReimageRequest(poolId, nodeId, content, timeout, ocpDate, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Reinstalls the operating system on the specified Compute Node.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the Compute Node that you want to restart.
+ /// 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.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or 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 Reimage(string poolId, string nodeId, RequestContent content, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.Reimage");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateReimageRequest(poolId, nodeId, content, timeout, ocpDate, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Disables Task scheduling on the specified Compute Node.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the Compute Node on which you want to disable Task scheduling.
+ /// 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.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or 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 DisableSchedulingAsync(string poolId, string nodeId, RequestContent content, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.DisableScheduling");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateDisableSchedulingRequest(poolId, nodeId, content, timeout, ocpDate, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Disables Task scheduling on the specified Compute Node.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the Compute Node on which you want to disable Task scheduling.
+ /// 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.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or 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 DisableScheduling(string poolId, string nodeId, RequestContent content, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.DisableScheduling");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateDisableSchedulingRequest(poolId, nodeId, content, timeout, ocpDate, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Enables Task scheduling on the specified Compute Node.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the Compute Node on which you want to enable Task scheduling.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or 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 EnableSchedulingAsync(string poolId, string nodeId, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.EnableScheduling");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateEnableSchedulingRequest(poolId, nodeId, timeout, ocpDate, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Enables Task scheduling on the specified Compute Node.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the Compute Node on which you want to enable Task scheduling.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or 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 EnableScheduling(string poolId, string nodeId, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.EnableScheduling");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateEnableSchedulingRequest(poolId, nodeId, timeout, ocpDate, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Gets the settings required for remote login to a Compute Node.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the Compute Node for which to obtain the remote login settings.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or 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 GetRemoteLoginSettingsAsync(string poolId, string nodeId, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.GetRemoteLoginSettings");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateGetRemoteLoginSettingsRequest(poolId, nodeId, timeout, ocpDate, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Gets the settings required for remote login to a Compute Node.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the Compute Node for which to obtain the remote login settings.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or 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 GetRemoteLoginSettings(string poolId, string nodeId, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.GetRemoteLoginSettings");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateGetRemoteLoginSettingsRequest(poolId, nodeId, timeout, ocpDate, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Gets the Remote Desktop Protocol file for the specified Compute Node.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the Compute Node for which you want to get the Remote Desktop Protocol file.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or 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 GetRemoteDesktopAsync(string poolId, string nodeId, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.GetRemoteDesktop");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateGetRemoteDesktopRequest(poolId, nodeId, timeout, ocpDate, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Gets the Remote Desktop Protocol file for the specified Compute Node.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the Compute Node for which you want to get the Remote Desktop Protocol file.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or 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 GetRemoteDesktop(string poolId, string nodeId, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.GetRemoteDesktop");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateGetRemoteDesktopRequest(poolId, nodeId, timeout, ocpDate, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Upload Azure Batch service log files from the specified Compute Node to Azure Blob Storage.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the Compute Node from which you want to upload the Azure Batch service log files.
+ /// The 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.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// , or is null.
+ /// or 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 UploadBatchServiceLogsAsync(string poolId, string nodeId, RequestContent content, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.UploadBatchServiceLogs");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateUploadBatchServiceLogsRequest(poolId, nodeId, content, timeout, ocpDate, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Upload Azure Batch service log files from the specified Compute Node to Azure Blob Storage.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the Compute Node from which you want to upload the Azure Batch service log files.
+ /// The 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.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// , or is null.
+ /// or 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 UploadBatchServiceLogs(string poolId, string nodeId, RequestContent content, int? timeout = null, DateTimeOffset? ocpDate = null, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeClient.UploadBatchServiceLogs");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateUploadBatchServiceLogsRequest(poolId, nodeId, content, timeout, ocpDate, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Lists the Compute Nodes in the specified Pool.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool from which you want to list Compute Nodes.
+ /// An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool.
+ /// An OData $select clause.
+ /// The maximum number of items to return in the response. A maximum of 1000 Compute Nodes can be returned.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 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 from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+ ///
+ public virtual AsyncPageable GetComputeNodesAsync(string poolId, string filter, string select, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetComputeNodesRequest(poolId, filter, select, maxResults, timeout, ocpDate, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetComputeNodesNextPageRequest(nextLink, poolId, filter, select, maxResults, timeout, ocpDate, context);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "ComputeNodeClient.GetComputeNodes", "value", "odata.nextLink", context);
+ }
+
+ ///
+ /// [Protocol Method] Lists the Compute Nodes in the specified Pool.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool from which you want to list Compute Nodes.
+ /// An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool.
+ /// An OData $select clause.
+ /// The maximum number of items to return in the response. A maximum of 1000 Compute Nodes can be returned.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 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 from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+ ///
+ public virtual Pageable GetComputeNodes(string poolId, string filter, string select, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetComputeNodesRequest(poolId, filter, select, maxResults, timeout, ocpDate, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetComputeNodesNextPageRequest(nextLink, poolId, filter, select, maxResults, timeout, ocpDate, context);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "ComputeNodeClient.GetComputeNodes", "value", "odata.nextLink", context);
+ }
+
+ internal HttpMessage CreateAddUserRequest(string poolId, string nodeId, RequestContent content, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier201);
+ var request = message.Request;
+ request.Method = RequestMethod.Post;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/pools/", false);
+ uri.AppendPath(poolId, true);
+ uri.AppendPath("/nodes/", false);
+ uri.AppendPath(nodeId, true);
+ uri.AppendPath("/users", false);
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata");
+ request.Content = content;
+ return message;
+ }
+
+ internal HttpMessage CreateDeleteUserRequest(string poolId, string nodeId, string userName, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Delete;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/pools/", false);
+ uri.AppendPath(poolId, true);
+ uri.AppendPath("/nodes/", false);
+ uri.AppendPath(nodeId, true);
+ uri.AppendPath("/users/", false);
+ uri.AppendPath(userName, true);
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ internal HttpMessage CreateUpdateUserRequest(string poolId, string nodeId, string userName, RequestContent content, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Put;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/pools/", false);
+ uri.AppendPath(poolId, true);
+ uri.AppendPath("/nodes/", false);
+ uri.AppendPath(nodeId, true);
+ uri.AppendPath("/users/", false);
+ uri.AppendPath(userName, true);
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata");
+ request.Content = content;
+ return message;
+ }
+
+ internal HttpMessage CreateGetComputeNodeRequest(string poolId, string nodeId, string select, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/pools/", false);
+ uri.AppendPath(poolId, true);
+ uri.AppendPath("/nodes/", false);
+ uri.AppendPath(nodeId, true);
+ if (select != null)
+ {
+ uri.AppendQuery("$select", select, true);
+ }
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ internal HttpMessage CreateRebootRequest(string poolId, string nodeId, RequestContent content, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier202);
+ var request = message.Request;
+ request.Method = RequestMethod.Post;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/pools/", false);
+ uri.AppendPath(poolId, true);
+ uri.AppendPath("/nodes/", false);
+ uri.AppendPath(nodeId, true);
+ uri.AppendPath("/reboot", false);
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata");
+ request.Content = content;
+ return message;
+ }
+
+ internal HttpMessage CreateReimageRequest(string poolId, string nodeId, RequestContent content, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier202);
+ var request = message.Request;
+ request.Method = RequestMethod.Post;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/pools/", false);
+ uri.AppendPath(poolId, true);
+ uri.AppendPath("/nodes/", false);
+ uri.AppendPath(nodeId, true);
+ uri.AppendPath("/reimage", false);
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata");
+ request.Content = content;
+ return message;
+ }
+
+ internal HttpMessage CreateDisableSchedulingRequest(string poolId, string nodeId, RequestContent content, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Post;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/pools/", false);
+ uri.AppendPath(poolId, true);
+ uri.AppendPath("/nodes/", false);
+ uri.AppendPath(nodeId, true);
+ uri.AppendPath("/disablescheduling", false);
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata");
+ request.Content = content;
+ return message;
+ }
+
+ internal HttpMessage CreateEnableSchedulingRequest(string poolId, string nodeId, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Post;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/pools/", false);
+ uri.AppendPath(poolId, true);
+ uri.AppendPath("/nodes/", false);
+ uri.AppendPath(nodeId, true);
+ uri.AppendPath("/enablescheduling", false);
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ internal HttpMessage CreateGetRemoteLoginSettingsRequest(string poolId, string nodeId, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/pools/", false);
+ uri.AppendPath(poolId, true);
+ uri.AppendPath("/nodes/", false);
+ uri.AppendPath(nodeId, true);
+ uri.AppendPath("/remoteloginsettings", false);
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ internal HttpMessage CreateGetRemoteDesktopRequest(string poolId, string nodeId, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/pools/", false);
+ uri.AppendPath(poolId, true);
+ uri.AppendPath("/nodes/", false);
+ uri.AppendPath(nodeId, true);
+ uri.AppendPath("/rdp", false);
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json, application/octet-stream");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ internal HttpMessage CreateUploadBatchServiceLogsRequest(string poolId, string nodeId, RequestContent content, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Post;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/pools/", false);
+ uri.AppendPath(poolId, true);
+ uri.AppendPath("/nodes/", false);
+ uri.AppendPath(nodeId, true);
+ uri.AppendPath("/uploadbatchservicelogs", false);
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata");
+ request.Content = content;
+ return message;
+ }
+
+ internal HttpMessage CreateGetComputeNodesRequest(string poolId, string filter, string select, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/pools/", false);
+ uri.AppendPath(poolId, true);
+ uri.AppendPath("/nodes", false);
+ if (filter != null)
+ {
+ uri.AppendQuery("$filter", filter, true);
+ }
+ if (select != null)
+ {
+ uri.AppendQuery("$select", select, true);
+ }
+ if (maxResults != null)
+ {
+ uri.AppendQuery("maxresults", maxResults.Value, true);
+ }
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ internal HttpMessage CreateGetComputeNodesNextPageRequest(string nextLink, string poolId, string filter, string select, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendRawNextLink(nextLink, false);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ private static ResponseClassifier _responseClassifier201;
+ private static ResponseClassifier ResponseClassifier201 => _responseClassifier201 ??= new StatusCodeClassifier(stackalloc ushort[] { 201 });
+ private static ResponseClassifier _responseClassifier200;
+ private static ResponseClassifier ResponseClassifier200 => _responseClassifier200 ??= new StatusCodeClassifier(stackalloc ushort[] { 200 });
+ private static ResponseClassifier _responseClassifier202;
+ private static ResponseClassifier ResponseClassifier202 => _responseClassifier202 ??= new StatusCodeClassifier(stackalloc ushort[] { 202 });
+ }
+}
diff --git a/sdk/batch/Azure.Temp.Batch/src/Generated/ComputeNodeExtensionClient.cs b/sdk/batch/Azure.Temp.Batch/src/Generated/ComputeNodeExtensionClient.cs
new file mode 100644
index 000000000000..7fad6f9af660
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/src/Generated/ComputeNodeExtensionClient.cs
@@ -0,0 +1,303 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.Temp.Batch
+{
+ // Data plane generated client.
+ /// The ComputeNodeExtension service client.
+ public partial class ComputeNodeExtensionClient
+ {
+ private static readonly string[] AuthorizationScopes = new string[] { "https://batch.core.windows.net/.default" };
+ private readonly TokenCredential _tokenCredential;
+ private readonly HttpPipeline _pipeline;
+ private readonly string _batchUrl;
+ private readonly string _apiVersion;
+
+ /// The ClientDiagnostics is used to provide tracing support for the client library.
+ internal ClientDiagnostics ClientDiagnostics { get; }
+
+ /// The HTTP pipeline for sending and receiving REST requests and responses.
+ public virtual HttpPipeline Pipeline => _pipeline;
+
+ /// Initializes a new instance of ComputeNodeExtensionClient for mocking.
+ protected ComputeNodeExtensionClient()
+ {
+ }
+
+ /// Initializes a new instance of ComputeNodeExtensionClient.
+ /// The base URL for all Azure Batch service requests.
+ /// A credential used to authenticate to an Azure Service.
+ /// or is null.
+ public ComputeNodeExtensionClient(string batchUrl, TokenCredential credential) : this(batchUrl, credential, new BatchServiceClientOptions())
+ {
+ }
+
+ /// Initializes a new instance of ComputeNodeExtensionClient.
+ /// The base URL for all Azure Batch service requests.
+ /// A credential used to authenticate to an Azure Service.
+ /// The options for configuring the client.
+ /// or is null.
+ public ComputeNodeExtensionClient(string batchUrl, TokenCredential credential, BatchServiceClientOptions options)
+ {
+ Argument.AssertNotNull(batchUrl, nameof(batchUrl));
+ Argument.AssertNotNull(credential, nameof(credential));
+ options ??= new BatchServiceClientOptions();
+
+ ClientDiagnostics = new ClientDiagnostics(options, true);
+ _tokenCredential = credential;
+ _pipeline = HttpPipelineBuilder.Build(options, Array.Empty(), new HttpPipelinePolicy[] { new BearerTokenAuthenticationPolicy(_tokenCredential, AuthorizationScopes) }, new ResponseClassifier());
+ _batchUrl = batchUrl;
+ _apiVersion = options.Version;
+ }
+
+ ///
+ /// [Protocol Method] Gets information about the specified Compute Node Extension.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the Compute Node that contains the extensions.
+ /// The name of the of the Compute Node Extension that you want to get information about.
+ /// An OData $select clause.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// , or is null.
+ /// , or 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 GetComputeNodeExtensionAsync(string poolId, string nodeId, string extensionName, string select, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+ Argument.AssertNotNullOrEmpty(extensionName, nameof(extensionName));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeExtensionClient.GetComputeNodeExtension");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateGetComputeNodeExtensionRequest(poolId, nodeId, extensionName, select, timeout, ocpDate, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Gets information about the specified Compute Node Extension.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains the Compute Node.
+ /// The ID of the Compute Node that contains the extensions.
+ /// The name of the of the Compute Node Extension that you want to get information about.
+ /// An OData $select clause.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// , or is null.
+ /// , or 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 GetComputeNodeExtension(string poolId, string nodeId, string extensionName, string select, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+ Argument.AssertNotNullOrEmpty(extensionName, nameof(extensionName));
+
+ using var scope = ClientDiagnostics.CreateScope("ComputeNodeExtensionClient.GetComputeNodeExtension");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateGetComputeNodeExtensionRequest(poolId, nodeId, extensionName, select, timeout, ocpDate, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Lists the Compute Nodes Extensions in the specified Pool.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains Compute Node.
+ /// The ID of the Compute Node that you want to list extensions.
+ /// An OData $select clause.
+ /// The maximum number of items to return in the response. A maximum of 1000 Compute Nodes can be returned.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or is an empty string, and was expected to be non-empty.
+ /// Service returned a non-success status code.
+ /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+ ///
+ public virtual AsyncPageable GetComputeNodeExtensionsAsync(string poolId, string nodeId, string select, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetComputeNodeExtensionsRequest(poolId, nodeId, select, maxResults, timeout, ocpDate, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetComputeNodeExtensionsNextPageRequest(nextLink, poolId, nodeId, select, maxResults, timeout, ocpDate, context);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "ComputeNodeExtensionClient.GetComputeNodeExtensions", "value", "odata.nextLink", context);
+ }
+
+ ///
+ /// [Protocol Method] Lists the Compute Nodes Extensions in the specified Pool.
+ ///
+ ///
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The ID of the Pool that contains Compute Node.
+ /// The ID of the Compute Node that you want to list extensions.
+ /// An OData $select clause.
+ /// The maximum number of items to return in the response. A maximum of 1000 Compute Nodes can be returned.
+ /// The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.
+ /// 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 request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// or is null.
+ /// or is an empty string, and was expected to be non-empty.
+ /// Service returned a non-success status code.
+ /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+ ///
+ public virtual Pageable GetComputeNodeExtensions(string poolId, string nodeId, string select, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ Argument.AssertNotNullOrEmpty(poolId, nameof(poolId));
+ Argument.AssertNotNullOrEmpty(nodeId, nameof(nodeId));
+
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetComputeNodeExtensionsRequest(poolId, nodeId, select, maxResults, timeout, ocpDate, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetComputeNodeExtensionsNextPageRequest(nextLink, poolId, nodeId, select, maxResults, timeout, ocpDate, context);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "ComputeNodeExtensionClient.GetComputeNodeExtensions", "value", "odata.nextLink", context);
+ }
+
+ internal HttpMessage CreateGetComputeNodeExtensionRequest(string poolId, string nodeId, string extensionName, string select, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/pools/", false);
+ uri.AppendPath(poolId, true);
+ uri.AppendPath("/nodes/", false);
+ uri.AppendPath(nodeId, true);
+ uri.AppendPath("/extensions/", false);
+ uri.AppendPath(extensionName, true);
+ if (select != null)
+ {
+ uri.AppendQuery("$select", select, true);
+ }
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ internal HttpMessage CreateGetComputeNodeExtensionsRequest(string poolId, string nodeId, string select, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendPath("/pools/", false);
+ uri.AppendPath(poolId, true);
+ uri.AppendPath("/nodes/", false);
+ uri.AppendPath(nodeId, true);
+ uri.AppendPath("/extensions", false);
+ if (select != null)
+ {
+ uri.AppendQuery("$select", select, true);
+ }
+ if (maxResults != null)
+ {
+ uri.AppendQuery("maxresults", maxResults.Value, true);
+ }
+ if (timeout != null)
+ {
+ uri.AppendQuery("timeout", timeout.Value, true);
+ }
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ internal HttpMessage CreateGetComputeNodeExtensionsNextPageRequest(string nextLink, string poolId, string nodeId, string select, int? maxResults, int? timeout, DateTimeOffset? ocpDate, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.AppendRaw(_batchUrl, false);
+ uri.AppendRawNextLink(nextLink, false);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("client-request-id", message.Request.ClientRequestId);
+ request.Headers.Add("return-client-request-id", "true");
+ if (ocpDate != null)
+ {
+ request.Headers.Add("ocp-date", ocpDate.Value, "R");
+ }
+ return message;
+ }
+
+ private static ResponseClassifier _responseClassifier200;
+ private static ResponseClassifier ResponseClassifier200 => _responseClassifier200 ??= new StatusCodeClassifier(stackalloc ushort[] { 200 });
+ }
+}
diff --git a/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/AccountClient.xml b/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/AccountClient.xml
new file mode 100644
index 000000000000..b65fb01c5008
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/AccountClient.xml
@@ -0,0 +1,141 @@
+
+
+
+
+
+This sample shows how to call GetSupportedImagesAsync with required parameters and parse the result.
+", credential);
+
+await foreach (var item in client.GetSupportedImagesAsync("", 1234, 1234, DateTimeOffset.UtcNow, new RequestContext()))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("nodeAgentSKUId").ToString());
+ Console.WriteLine(result.GetProperty("imageReference").GetProperty("publisher").ToString());
+ Console.WriteLine(result.GetProperty("imageReference").GetProperty("offer").ToString());
+ Console.WriteLine(result.GetProperty("imageReference").GetProperty("sku").ToString());
+ Console.WriteLine(result.GetProperty("imageReference").GetProperty("version").ToString());
+ Console.WriteLine(result.GetProperty("imageReference").GetProperty("virtualMachineImageId").ToString());
+ Console.WriteLine(result.GetProperty("imageReference").GetProperty("exactVersion").ToString());
+ Console.WriteLine(result.GetProperty("osType").ToString());
+ Console.WriteLine(result.GetProperty("capabilities")[0].ToString());
+ Console.WriteLine(result.GetProperty("batchSupportEndOfLife").ToString());
+ Console.WriteLine(result.GetProperty("verificationType").ToString());
+}
+]]>
+
+
+
+
+This sample shows how to call GetSupportedImages with required parameters and parse the result.
+", credential);
+
+foreach (var item in client.GetSupportedImages("", 1234, 1234, DateTimeOffset.UtcNow, new RequestContext()))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("nodeAgentSKUId").ToString());
+ Console.WriteLine(result.GetProperty("imageReference").GetProperty("publisher").ToString());
+ Console.WriteLine(result.GetProperty("imageReference").GetProperty("offer").ToString());
+ Console.WriteLine(result.GetProperty("imageReference").GetProperty("sku").ToString());
+ Console.WriteLine(result.GetProperty("imageReference").GetProperty("version").ToString());
+ Console.WriteLine(result.GetProperty("imageReference").GetProperty("virtualMachineImageId").ToString());
+ Console.WriteLine(result.GetProperty("imageReference").GetProperty("exactVersion").ToString());
+ Console.WriteLine(result.GetProperty("osType").ToString());
+ Console.WriteLine(result.GetProperty("capabilities")[0].ToString());
+ Console.WriteLine(result.GetProperty("batchSupportEndOfLife").ToString());
+ Console.WriteLine(result.GetProperty("verificationType").ToString());
+}
+]]>
+
+
+
+
+This sample shows how to call GetPoolNodeCountsAsync with required parameters and parse the result.
+", credential);
+
+await foreach (var item in client.GetPoolNodeCountsAsync("", 1234, 1234, DateTimeOffset.UtcNow, new RequestContext()))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("poolId").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("creating").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("idle").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("offline").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("preempted").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("rebooting").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("reimaging").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("running").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("starting").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("startTaskFailed").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("leavingPool").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("unknown").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("unusable").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("waitingForStartTask").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("total").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("creating").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("idle").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("offline").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("preempted").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("rebooting").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("reimaging").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("running").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("starting").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("startTaskFailed").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("leavingPool").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("unknown").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("unusable").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("waitingForStartTask").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("total").ToString());
+}
+]]>
+
+
+
+
+This sample shows how to call GetPoolNodeCounts with required parameters and parse the result.
+", credential);
+
+foreach (var item in client.GetPoolNodeCounts("", 1234, 1234, DateTimeOffset.UtcNow, new RequestContext()))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("poolId").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("creating").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("idle").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("offline").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("preempted").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("rebooting").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("reimaging").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("running").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("starting").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("startTaskFailed").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("leavingPool").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("unknown").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("unusable").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("waitingForStartTask").ToString());
+ Console.WriteLine(result.GetProperty("dedicated").GetProperty("total").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("creating").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("idle").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("offline").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("preempted").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("rebooting").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("reimaging").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("running").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("starting").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("startTaskFailed").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("leavingPool").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("unknown").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("unusable").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("waitingForStartTask").ToString());
+ Console.WriteLine(result.GetProperty("lowPriority").GetProperty("total").ToString());
+}
+]]>
+
+
+
+
\ No newline at end of file
diff --git a/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/ApplicationClient.xml b/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/ApplicationClient.xml
new file mode 100644
index 000000000000..f3555f7db706
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/ApplicationClient.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+This sample shows how to call GetApplicationAsync with required parameters and parse the result.
+", credential);
+
+Response response = await client.GetApplicationAsync("", 1234, DateTimeOffset.UtcNow, new RequestContext());
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("displayName").ToString());
+Console.WriteLine(result.GetProperty("versions")[0].ToString());
+]]>
+
+
+
+
+This sample shows how to call GetApplication with required parameters and parse the result.
+", credential);
+
+Response response = client.GetApplication("", 1234, DateTimeOffset.UtcNow, new RequestContext());
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("displayName").ToString());
+Console.WriteLine(result.GetProperty("versions")[0].ToString());
+]]>
+
+
+
+
+This sample shows how to call GetApplicationsAsync with required parameters and parse the result.
+", credential);
+
+await foreach (var item in client.GetApplicationsAsync(1234, 1234, DateTimeOffset.UtcNow, new RequestContext()))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("displayName").ToString());
+ Console.WriteLine(result.GetProperty("versions")[0].ToString());
+}
+]]>
+
+
+
+
+This sample shows how to call GetApplications with required parameters and parse the result.
+", credential);
+
+foreach (var item in client.GetApplications(1234, 1234, DateTimeOffset.UtcNow, new RequestContext()))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("displayName").ToString());
+ Console.WriteLine(result.GetProperty("versions")[0].ToString());
+}
+]]>
+
+
+
+
\ No newline at end of file
diff --git a/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/CertificateClient.xml b/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/CertificateClient.xml
new file mode 100644
index 000000000000..958f2e90e62e
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/CertificateClient.xml
@@ -0,0 +1,255 @@
+
+
+
+
+
+This sample shows how to call AddAsync with required parameters and request content.
+", credential);
+
+var data = new {
+ thumbprint = "",
+ thumbprintAlgorithm = "",
+ data = "",
+};
+
+Response response = await client.AddAsync(RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call AddAsync with all parameters and request content.
+", credential);
+
+var data = new {
+ thumbprint = "",
+ thumbprintAlgorithm = "",
+ data = "",
+ certificateFormat = "pfx",
+ password = "",
+};
+
+Response response = await client.AddAsync(RequestContent.Create(data), 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call Add with required parameters and request content.
+", credential);
+
+var data = new {
+ thumbprint = "",
+ thumbprintAlgorithm = "",
+ data = "",
+};
+
+Response response = client.Add(RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call Add with all parameters and request content.
+", credential);
+
+var data = new {
+ thumbprint = "",
+ thumbprintAlgorithm = "",
+ data = "",
+ certificateFormat = "pfx",
+ password = "",
+};
+
+Response response = client.Add(RequestContent.Create(data), 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call CancelDeletionAsync with required parameters.
+", credential);
+
+Response response = await client.CancelDeletionAsync("", "");
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call CancelDeletionAsync with all parameters.
+", credential);
+
+Response response = await client.CancelDeletionAsync("", "", 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call CancelDeletion with required parameters.
+", credential);
+
+Response response = client.CancelDeletion("", "");
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call CancelDeletion with all parameters.
+", credential);
+
+Response response = client.CancelDeletion("", "", 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call DeleteAsync with required parameters.
+", credential);
+
+Response response = await client.DeleteAsync("", "");
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteAsync with all parameters.
+", credential);
+
+Response response = await client.DeleteAsync("", "", 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call Delete with required parameters.
+", credential);
+
+Response response = client.Delete("", "");
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call Delete with all parameters.
+", credential);
+
+Response response = client.Delete("", "", 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call GetCertificateAsync with required parameters and parse the result.
+", credential);
+
+Response response = await client.GetCertificateAsync("", "", "
+
+
+
+
+This sample shows how to call GetCertificate with required parameters and parse the result.
+", credential);
+
+Response response = client.GetCertificate("", "", "
+
+
+
+
+This sample shows how to call GetCertificatesAsync with required parameters and parse the result.
+", credential);
+
+await foreach (var item in client.GetCertificatesAsync("", "
+
+
+
+
+This sample shows how to call GetCertificates with required parameters and parse the result.
+", credential);
+
+foreach (var item in client.GetCertificates("", "
+
+
+
+
\ No newline at end of file
diff --git a/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/ComputeNodeClient.xml b/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/ComputeNodeClient.xml
new file mode 100644
index 000000000000..f64a3ba1e499
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/ComputeNodeClient.xml
@@ -0,0 +1,945 @@
+
+
+
+
+
+This sample shows how to call AddUserAsync with required parameters and request content.
+", credential);
+
+var data = new {
+ name = "",
+};
+
+Response response = await client.AddUserAsync("", "", RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call AddUserAsync with all parameters and request content.
+", credential);
+
+var data = new {
+ name = "",
+ isAdmin = true,
+ expiryTime = "2022-05-10T18:57:31.2311892Z",
+ password = "",
+ sshPublicKey = "",
+};
+
+Response response = await client.AddUserAsync("", "", RequestContent.Create(data), 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call AddUser with required parameters and request content.
+", credential);
+
+var data = new {
+ name = "",
+};
+
+Response response = client.AddUser("", "", RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call AddUser with all parameters and request content.
+", credential);
+
+var data = new {
+ name = "",
+ isAdmin = true,
+ expiryTime = "2022-05-10T18:57:31.2311892Z",
+ password = "",
+ sshPublicKey = "",
+};
+
+Response response = client.AddUser("", "", RequestContent.Create(data), 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call DeleteUserAsync with required parameters.
+", credential);
+
+Response response = await client.DeleteUserAsync("", "", "");
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteUserAsync with all parameters.
+", credential);
+
+Response response = await client.DeleteUserAsync("", "", "", 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call DeleteUser with required parameters.
+", credential);
+
+Response response = client.DeleteUser("", "", "");
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteUser with all parameters.
+", credential);
+
+Response response = client.DeleteUser("", "", "", 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call UpdateUserAsync with required parameters.
+", credential);
+
+var data = new {};
+
+Response response = await client.UpdateUserAsync("", "", "", RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call UpdateUserAsync with all parameters and request content.
+", credential);
+
+var data = new {
+ password = "",
+ expiryTime = "2022-05-10T18:57:31.2311892Z",
+ sshPublicKey = "",
+};
+
+Response response = await client.UpdateUserAsync("", "", "", RequestContent.Create(data), 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call UpdateUser with required parameters.
+", credential);
+
+var data = new {};
+
+Response response = client.UpdateUser("", "", "", RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call UpdateUser with all parameters and request content.
+", credential);
+
+var data = new {
+ password = "",
+ expiryTime = "2022-05-10T18:57:31.2311892Z",
+ sshPublicKey = "",
+};
+
+Response response = client.UpdateUser("", "", "", RequestContent.Create(data), 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call GetComputeNodeAsync with required parameters and parse the result.
+", credential);
+
+Response response = await client.GetComputeNodeAsync("", "", "
+
+
+
+
+This sample shows how to call GetComputeNode with required parameters and parse the result.
+", credential);
+
+Response response = client.GetComputeNode("", "", "
+
+
+
+
+This sample shows how to call RebootAsync with required parameters.
+", credential);
+
+var data = new {};
+
+Response response = await client.RebootAsync("", "", RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call RebootAsync with all parameters and request content.
+", credential);
+
+var data = new {
+ nodeRebootOption = "requeue",
+};
+
+Response response = await client.RebootAsync("", "", RequestContent.Create(data), 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call Reboot with required parameters.
+", credential);
+
+var data = new {};
+
+Response response = client.Reboot("", "", RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call Reboot with all parameters and request content.
+", credential);
+
+var data = new {
+ nodeRebootOption = "requeue",
+};
+
+Response response = client.Reboot("", "", RequestContent.Create(data), 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call ReimageAsync with required parameters.
+", credential);
+
+var data = new {};
+
+Response response = await client.ReimageAsync("", "", RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call ReimageAsync with all parameters and request content.
+", credential);
+
+var data = new {
+ nodeReimageOption = "requeue",
+};
+
+Response response = await client.ReimageAsync("", "", RequestContent.Create(data), 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call Reimage with required parameters.
+", credential);
+
+var data = new {};
+
+Response response = client.Reimage("", "", RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call Reimage with all parameters and request content.
+", credential);
+
+var data = new {
+ nodeReimageOption = "requeue",
+};
+
+Response response = client.Reimage("", "", RequestContent.Create(data), 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call DisableSchedulingAsync with required parameters.
+", credential);
+
+var data = new {};
+
+Response response = await client.DisableSchedulingAsync("", "", RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DisableSchedulingAsync with all parameters and request content.
+", credential);
+
+var data = new {
+ nodeDisableSchedulingOption = "requeue",
+};
+
+Response response = await client.DisableSchedulingAsync("", "", RequestContent.Create(data), 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call DisableScheduling with required parameters.
+", credential);
+
+var data = new {};
+
+Response response = client.DisableScheduling("", "", RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DisableScheduling with all parameters and request content.
+", credential);
+
+var data = new {
+ nodeDisableSchedulingOption = "requeue",
+};
+
+Response response = client.DisableScheduling("", "", RequestContent.Create(data), 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call EnableSchedulingAsync with required parameters.
+", credential);
+
+Response response = await client.EnableSchedulingAsync("", "");
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call EnableSchedulingAsync with all parameters.
+", credential);
+
+Response response = await client.EnableSchedulingAsync("", "", 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call EnableScheduling with required parameters.
+", credential);
+
+Response response = client.EnableScheduling("", "");
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call EnableScheduling with all parameters.
+", credential);
+
+Response response = client.EnableScheduling("", "", 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call GetRemoteLoginSettingsAsync with required parameters and parse the result.
+", credential);
+
+Response response = await client.GetRemoteLoginSettingsAsync("", "", 1234, DateTimeOffset.UtcNow, new RequestContext());
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("remoteLoginIPAddress").ToString());
+Console.WriteLine(result.GetProperty("remoteLoginPort").ToString());
+]]>
+
+
+
+
+This sample shows how to call GetRemoteLoginSettings with required parameters and parse the result.
+", credential);
+
+Response response = client.GetRemoteLoginSettings("", "", 1234, DateTimeOffset.UtcNow, new RequestContext());
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("remoteLoginIPAddress").ToString());
+Console.WriteLine(result.GetProperty("remoteLoginPort").ToString());
+]]>
+
+
+
+
+This sample shows how to call GetRemoteDesktopAsync with required parameters and parse the result.
+", credential);
+
+Response response = await client.GetRemoteDesktopAsync("", "", 1234, DateTimeOffset.UtcNow, new RequestContext());
+if (response.ContentStream != null)
+{
+ using(Stream outFileStream = File.OpenWrite(""))
+ {
+ response.ContentStream.CopyTo(outFileStream);
+ }
+}
+]]>
+
+
+
+
+This sample shows how to call GetRemoteDesktop with required parameters and parse the result.
+", credential);
+
+Response response = client.GetRemoteDesktop("", "", 1234, DateTimeOffset.UtcNow, new RequestContext());
+if (response.ContentStream != null)
+{
+ using(Stream outFileStream = File.OpenWrite(""))
+ {
+ response.ContentStream.CopyTo(outFileStream);
+ }
+}
+]]>
+
+
+
+
+This sample shows how to call UploadBatchServiceLogsAsync with required parameters and request content, and how to parse the result.
+", credential);
+
+var data = new {
+ containerUrl = "",
+ startTime = "2022-05-10T18:57:31.2311892Z",
+};
+
+Response response = await client.UploadBatchServiceLogsAsync("", "", RequestContent.Create(data));
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("virtualDirectoryName").ToString());
+Console.WriteLine(result.GetProperty("numberOfFilesUploaded").ToString());
+]]>
+This sample shows how to call UploadBatchServiceLogsAsync with all parameters and request content, and how to parse the result.
+", credential);
+
+var data = new {
+ containerUrl = "",
+ startTime = "2022-05-10T18:57:31.2311892Z",
+ endTime = "2022-05-10T18:57:31.2311892Z",
+ identityReference = new {
+ resourceId = "",
+ },
+};
+
+Response response = await client.UploadBatchServiceLogsAsync("", "", RequestContent.Create(data), 1234, DateTimeOffset.UtcNow);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("virtualDirectoryName").ToString());
+Console.WriteLine(result.GetProperty("numberOfFilesUploaded").ToString());
+]]>
+
+
+
+
+This sample shows how to call UploadBatchServiceLogs with required parameters and request content, and how to parse the result.
+", credential);
+
+var data = new {
+ containerUrl = "",
+ startTime = "2022-05-10T18:57:31.2311892Z",
+};
+
+Response response = client.UploadBatchServiceLogs("", "", RequestContent.Create(data));
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("virtualDirectoryName").ToString());
+Console.WriteLine(result.GetProperty("numberOfFilesUploaded").ToString());
+]]>
+This sample shows how to call UploadBatchServiceLogs with all parameters and request content, and how to parse the result.
+", credential);
+
+var data = new {
+ containerUrl = "",
+ startTime = "2022-05-10T18:57:31.2311892Z",
+ endTime = "2022-05-10T18:57:31.2311892Z",
+ identityReference = new {
+ resourceId = "",
+ },
+};
+
+Response response = client.UploadBatchServiceLogs("", "", RequestContent.Create(data), 1234, DateTimeOffset.UtcNow);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("virtualDirectoryName").ToString());
+Console.WriteLine(result.GetProperty("numberOfFilesUploaded").ToString());
+]]>
+
+
+
+
+This sample shows how to call GetComputeNodesAsync with required parameters and parse the result.
+", credential);
+
+await foreach (var item in client.GetComputeNodesAsync("", "", "
+
+
+
+
+This sample shows how to call GetComputeNodes with required parameters and parse the result.
+", credential);
+
+foreach (var item in client.GetComputeNodes("", "", "
+
+
+
+
\ No newline at end of file
diff --git a/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/ComputeNodeExtensionClient.xml b/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/ComputeNodeExtensionClient.xml
new file mode 100644
index 000000000000..7e36c5882cf6
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/ComputeNodeExtensionClient.xml
@@ -0,0 +1,143 @@
+
+
+
+
+
+This sample shows how to call GetComputeNodeExtensionAsync with required parameters and parse the result.
+", credential);
+
+Response response = await client.GetComputeNodeExtensionAsync("", "", "", "
+
+
+
+
+This sample shows how to call GetComputeNodeExtension with required parameters and parse the result.
+", credential);
+
+Response response = client.GetComputeNodeExtension("", "", "", "
+
+
+
+
+This sample shows how to call GetComputeNodeExtensionsAsync with required parameters and parse the result.
+", credential);
+
+await foreach (var item in client.GetComputeNodeExtensionsAsync("", "", "
+
+
+
+
+This sample shows how to call GetComputeNodeExtensions with required parameters and parse the result.
+", credential);
+
+foreach (var item in client.GetComputeNodeExtensions("", "", "
+
+
+
+
\ No newline at end of file
diff --git a/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/FileClient.xml b/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/FileClient.xml
new file mode 100644
index 000000000000..c470be58772a
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/FileClient.xml
@@ -0,0 +1,325 @@
+
+
+
+
+
+This sample shows how to call DeleteFromTaskAsync with required parameters.
+", credential);
+
+Response response = await client.DeleteFromTaskAsync("", "", "");
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteFromTaskAsync with all parameters.
+", credential);
+
+Response response = await client.DeleteFromTaskAsync("", "", "", true, 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call DeleteFromTask with required parameters.
+", credential);
+
+Response response = client.DeleteFromTask("", "", "");
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteFromTask with all parameters.
+", credential);
+
+Response response = client.DeleteFromTask("", "", "", true, 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call GetFromTaskAsync with required parameters and parse the result.
+", credential);
+
+Response response = await client.GetFromTaskAsync("", "", "", 1234, DateTimeOffset.UtcNow, "", null, new RequestContext());
+if (response.ContentStream != null)
+{
+ using(Stream outFileStream = File.OpenWrite(""))
+ {
+ response.ContentStream.CopyTo(outFileStream);
+ }
+}
+]]>
+
+
+
+
+This sample shows how to call GetFromTask with required parameters and parse the result.
+", credential);
+
+Response response = client.GetFromTask("", "", "", 1234, DateTimeOffset.UtcNow, "", null, new RequestContext());
+if (response.ContentStream != null)
+{
+ using(Stream outFileStream = File.OpenWrite(""))
+ {
+ response.ContentStream.CopyTo(outFileStream);
+ }
+}
+]]>
+
+
+
+
+This sample shows how to call GetPropertiesFromTaskAsync with required parameters.
+", credential);
+
+Response response = await client.GetPropertiesFromTaskAsync("", "", "");
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call GetPropertiesFromTaskAsync with all parameters.
+", credential);
+
+Response response = await client.GetPropertiesFromTaskAsync("", "", "", 1234, DateTimeOffset.UtcNow, null);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call GetPropertiesFromTask with required parameters.
+", credential);
+
+Response response = client.GetPropertiesFromTask("", "", "");
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call GetPropertiesFromTask with all parameters.
+", credential);
+
+Response response = client.GetPropertiesFromTask("", "", "", 1234, DateTimeOffset.UtcNow, null);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call DeleteFromComputeNodeAsync with required parameters.
+", credential);
+
+Response response = await client.DeleteFromComputeNodeAsync("", "", "");
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteFromComputeNodeAsync with all parameters.
+", credential);
+
+Response response = await client.DeleteFromComputeNodeAsync("", "", "", true, 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call DeleteFromComputeNode with required parameters.
+", credential);
+
+Response response = client.DeleteFromComputeNode("", "", "");
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteFromComputeNode with all parameters.
+", credential);
+
+Response response = client.DeleteFromComputeNode("", "", "", true, 1234, DateTimeOffset.UtcNow);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call GetFromComputeNodeAsync with required parameters and parse the result.
+", credential);
+
+Response response = await client.GetFromComputeNodeAsync("", "", "", 1234, DateTimeOffset.UtcNow, "", null, new RequestContext());
+if (response.ContentStream != null)
+{
+ using(Stream outFileStream = File.OpenWrite(""))
+ {
+ response.ContentStream.CopyTo(outFileStream);
+ }
+}
+]]>
+
+
+
+
+This sample shows how to call GetFromComputeNode with required parameters and parse the result.
+", credential);
+
+Response response = client.GetFromComputeNode("", "", "", 1234, DateTimeOffset.UtcNow, "", null, new RequestContext());
+if (response.ContentStream != null)
+{
+ using(Stream outFileStream = File.OpenWrite(""))
+ {
+ response.ContentStream.CopyTo(outFileStream);
+ }
+}
+]]>
+
+
+
+
+This sample shows how to call GetPropertiesFromComputeNodeAsync with required parameters.
+", credential);
+
+Response response = await client.GetPropertiesFromComputeNodeAsync("", "", "");
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call GetPropertiesFromComputeNodeAsync with all parameters.
+", credential);
+
+Response response = await client.GetPropertiesFromComputeNodeAsync("", "", "", 1234, DateTimeOffset.UtcNow, null);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call GetPropertiesFromComputeNode with required parameters.
+", credential);
+
+Response response = client.GetPropertiesFromComputeNode("", "", "");
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call GetPropertiesFromComputeNode with all parameters.
+", credential);
+
+Response response = client.GetPropertiesFromComputeNode("", "", "", 1234, DateTimeOffset.UtcNow, null);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call GetFromTasksAsync with required parameters and parse the result.
+", credential);
+
+await foreach (var item in client.GetFromTasksAsync("", "", "", true, 1234, 1234, DateTimeOffset.UtcNow, new RequestContext()))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("url").ToString());
+ Console.WriteLine(result.GetProperty("isDirectory").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("creationTime").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("lastModified").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("contentLength").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("contentType").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("fileMode").ToString());
+}
+]]>
+
+
+
+
+This sample shows how to call GetFromTasks with required parameters and parse the result.
+", credential);
+
+foreach (var item in client.GetFromTasks("", "", "", true, 1234, 1234, DateTimeOffset.UtcNow, new RequestContext()))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("url").ToString());
+ Console.WriteLine(result.GetProperty("isDirectory").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("creationTime").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("lastModified").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("contentLength").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("contentType").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("fileMode").ToString());
+}
+]]>
+
+
+
+
+This sample shows how to call GetFromComputeNodesAsync with required parameters and parse the result.
+", credential);
+
+await foreach (var item in client.GetFromComputeNodesAsync("", "", "", true, 1234, 1234, DateTimeOffset.UtcNow, new RequestContext()))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("url").ToString());
+ Console.WriteLine(result.GetProperty("isDirectory").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("creationTime").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("lastModified").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("contentLength").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("contentType").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("fileMode").ToString());
+}
+]]>
+
+
+
+
+This sample shows how to call GetFromComputeNodes with required parameters and parse the result.
+", credential);
+
+foreach (var item in client.GetFromComputeNodes("", "", "", true, 1234, 1234, DateTimeOffset.UtcNow, new RequestContext()))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("url").ToString());
+ Console.WriteLine(result.GetProperty("isDirectory").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("creationTime").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("lastModified").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("contentLength").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("contentType").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("fileMode").ToString());
+}
+]]>
+
+
+
+
\ No newline at end of file
diff --git a/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/JobClient.xml b/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/JobClient.xml
new file mode 100644
index 000000000000..79c29db31901
--- /dev/null
+++ b/sdk/batch/Azure.Temp.Batch/src/Generated/Docs/JobClient.xml
@@ -0,0 +1,4059 @@
+
+
+
+
+
+This sample shows how to call DeleteAsync with required parameters.
+", credential);
+
+Response response = await client.DeleteAsync("");
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteAsync with all parameters.
+", credential);
+
+Response response = await client.DeleteAsync("", 1234, DateTimeOffset.UtcNow, null);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call Delete with required parameters.
+", credential);
+
+Response response = client.Delete("");
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call Delete with all parameters.
+", credential);
+
+Response response = client.Delete("", 1234, DateTimeOffset.UtcNow, null);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call GetJobAsync with required parameters and parse the result.
+", credential);
+
+Response response = await client.GetJobAsync("", "
+
+
+
+
+This sample shows how to call GetJob with required parameters and parse the result.
+", credential);
+
+Response response = client.GetJob("", "
+
+
+
+
+This sample shows how to call PatchAsync with required parameters.
+", credential);
+
+var data = new {};
+
+Response response = await client.PatchAsync("", RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call PatchAsync with all parameters and request content.
+", credential);
+
+var data = new {
+ priority = 1234,
+ maxParallelTasks = 1234,
+ allowTaskPreemption = true,
+ onAllTasksComplete = "noaction",
+ constraints = new {
+ maxWallClockTime = "PT1H23M45S",
+ maxTaskRetryCount = 1234,
+ },
+ poolInfo = new {
+ poolId = "",
+ autoPoolSpecification = new {
+ autoPoolIdPrefix = "",
+ poolLifetimeOption = "jobschedule",
+ keepAlive = true,
+ pool = new {
+ displayName = "",
+ vmSize = "",
+ cloudServiceConfiguration = new {
+ osFamily = "",
+ osVersion = "",
+ },
+ virtualMachineConfiguration = new {
+ imageReference = new {
+ publisher = "",
+ offer = "",
+ sku = "",
+ version = "",
+ virtualMachineImageId = "",
+ },
+ nodeAgentSKUId = "",
+ windowsConfiguration = new {
+ enableAutomaticUpdates = true,
+ },
+ dataDisks = new[] {
+ new {
+ lun = 1234,
+ caching = "none",
+ diskSizeGB = 1234,
+ storageAccountType = "standard_lrs",
+ }
+ },
+ licenseType = "",
+ containerConfiguration = new {
+ type = "dockerCompatible",
+ containerImageNames = new[] {
+ ""
+ },
+ containerRegistries = new[] {
+ new {
+ username = "",
+ password = "",
+ registryServer = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ }
+ },
+ },
+ diskEncryptionConfiguration = new {
+ targets = new[] {
+ "osdisk"
+ },
+ },
+ nodePlacementConfiguration = new {
+ policy = "regional",
+ },
+ extensions = new[] {
+ new {
+ name = "",
+ publisher = "",
+ type = "",
+ typeHandlerVersion = "",
+ autoUpgradeMinorVersion = true,
+ enableAutomaticUpgrade = true,
+ settings = new {},
+ protectedSettings = new {},
+ provisionAfterExtensions = new[] {
+ ""
+ },
+ }
+ },
+ osDisk = new {
+ ephemeralOSDiskSettings = new {
+ placement = "CacheDisk",
+ },
+ },
+ },
+ taskSlotsPerNode = 1234,
+ taskSchedulingPolicy = new {
+ nodeFillType = "spread",
+ },
+ resizeTimeout = "PT1H23M45S",
+ targetDedicatedNodes = 1234,
+ targetLowPriorityNodes = 1234,
+ enableAutoScale = true,
+ autoScaleFormula = "",
+ autoScaleEvaluationInterval = "PT1H23M45S",
+ enableInterNodeCommunication = true,
+ networkConfiguration = new {
+ subnetId = "",
+ dynamicVNetAssignmentScope = "none",
+ endpointConfiguration = new {
+ inboundNATPools = new[] {
+ new {
+ name = "",
+ protocol = "tcp",
+ backendPort = 1234,
+ frontendPortRangeStart = 1234,
+ frontendPortRangeEnd = 1234,
+ networkSecurityGroupRules = new[] {
+ new {
+ priority = 1234,
+ access = "allow",
+ sourceAddressPrefix = "",
+ sourcePortRanges = new[] {
+ ""
+ },
+ }
+ },
+ }
+ },
+ },
+ publicIPAddressConfiguration = new {
+ provision = "batchmanaged",
+ ipAddressIds = new[] {
+ ""
+ },
+ },
+ enableAcceleratedNetworking = true,
+ },
+ startTask = new {
+ commandLine = "",
+ containerSettings = new {
+ containerRunOptions = "",
+ imageName = "",
+ registry = new {
+ username = "",
+ password = "",
+ registryServer = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ },
+ workingDirectory = "taskWorkingDirectory",
+ },
+ resourceFiles = new[] {
+ new {
+ autoStorageContainerName = "",
+ storageContainerUrl = "",
+ httpUrl = "",
+ blobPrefix = "",
+ filePath = "",
+ fileMode = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ }
+ },
+ environmentSettings = new[] {
+ new {
+ name = "",
+ value = "",
+ }
+ },
+ userIdentity = new {
+ username = "",
+ autoUser = new {
+ scope = "task",
+ elevationLevel = "nonadmin",
+ },
+ },
+ maxTaskRetryCount = 1234,
+ waitForSuccess = true,
+ },
+ certificateReferences = new[] {
+ new {
+ thumbprint = "",
+ thumbprintAlgorithm = "",
+ storeLocation = "currentuser",
+ storeName = "",
+ visibility = new[] {
+ "starttask"
+ },
+ }
+ },
+ applicationPackageReferences = new[] {
+ new {
+ applicationId = "",
+ version = "",
+ }
+ },
+ applicationLicenses = new[] {
+ ""
+ },
+ userAccounts = new[] {
+ new {
+ name = "",
+ password = "",
+ elevationLevel = "nonadmin",
+ linuxUserConfiguration = new {
+ uid = 1234,
+ gid = 1234,
+ sshPrivateKey = "",
+ },
+ windowsUserConfiguration = new {
+ loginMode = "batch",
+ },
+ }
+ },
+ metadata = new[] {
+ new {
+ name = "",
+ value = "",
+ }
+ },
+ mountConfiguration = new[] {
+ new {
+ azureBlobFileSystemConfiguration = new {
+ accountName = "",
+ containerName = "",
+ accountKey = "",
+ sasKey = "",
+ blobfuseOptions = "",
+ relativeMountPath = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ },
+ nfsMountConfiguration = new {
+ source = "",
+ relativeMountPath = "",
+ mountOptions = "",
+ },
+ cifsMountConfiguration = new {
+ username = "",
+ source = "",
+ relativeMountPath = "",
+ mountOptions = "",
+ password = "",
+ },
+ azureFileShareConfiguration = new {
+ accountName = "",
+ azureFileUrl = "",
+ accountKey = "",
+ relativeMountPath = "",
+ mountOptions = "",
+ },
+ }
+ },
+ targetNodeCommunicationMode = "default",
+ },
+ },
+ },
+ metadata = new[] {
+ new {
+ name = "",
+ value = "",
+ }
+ },
+};
+
+Response response = await client.PatchAsync("", RequestContent.Create(data), 1234, DateTimeOffset.UtcNow, null);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call Patch with required parameters.
+", credential);
+
+var data = new {};
+
+Response response = client.Patch("", RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call Patch with all parameters and request content.
+", credential);
+
+var data = new {
+ priority = 1234,
+ maxParallelTasks = 1234,
+ allowTaskPreemption = true,
+ onAllTasksComplete = "noaction",
+ constraints = new {
+ maxWallClockTime = "PT1H23M45S",
+ maxTaskRetryCount = 1234,
+ },
+ poolInfo = new {
+ poolId = "",
+ autoPoolSpecification = new {
+ autoPoolIdPrefix = "",
+ poolLifetimeOption = "jobschedule",
+ keepAlive = true,
+ pool = new {
+ displayName = "",
+ vmSize = "",
+ cloudServiceConfiguration = new {
+ osFamily = "",
+ osVersion = "",
+ },
+ virtualMachineConfiguration = new {
+ imageReference = new {
+ publisher = "",
+ offer = "",
+ sku = "",
+ version = "",
+ virtualMachineImageId = "",
+ },
+ nodeAgentSKUId = "",
+ windowsConfiguration = new {
+ enableAutomaticUpdates = true,
+ },
+ dataDisks = new[] {
+ new {
+ lun = 1234,
+ caching = "none",
+ diskSizeGB = 1234,
+ storageAccountType = "standard_lrs",
+ }
+ },
+ licenseType = "",
+ containerConfiguration = new {
+ type = "dockerCompatible",
+ containerImageNames = new[] {
+ ""
+ },
+ containerRegistries = new[] {
+ new {
+ username = "",
+ password = "",
+ registryServer = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ }
+ },
+ },
+ diskEncryptionConfiguration = new {
+ targets = new[] {
+ "osdisk"
+ },
+ },
+ nodePlacementConfiguration = new {
+ policy = "regional",
+ },
+ extensions = new[] {
+ new {
+ name = "",
+ publisher = "",
+ type = "",
+ typeHandlerVersion = "",
+ autoUpgradeMinorVersion = true,
+ enableAutomaticUpgrade = true,
+ settings = new {},
+ protectedSettings = new {},
+ provisionAfterExtensions = new[] {
+ ""
+ },
+ }
+ },
+ osDisk = new {
+ ephemeralOSDiskSettings = new {
+ placement = "CacheDisk",
+ },
+ },
+ },
+ taskSlotsPerNode = 1234,
+ taskSchedulingPolicy = new {
+ nodeFillType = "spread",
+ },
+ resizeTimeout = "PT1H23M45S",
+ targetDedicatedNodes = 1234,
+ targetLowPriorityNodes = 1234,
+ enableAutoScale = true,
+ autoScaleFormula = "",
+ autoScaleEvaluationInterval = "PT1H23M45S",
+ enableInterNodeCommunication = true,
+ networkConfiguration = new {
+ subnetId = "",
+ dynamicVNetAssignmentScope = "none",
+ endpointConfiguration = new {
+ inboundNATPools = new[] {
+ new {
+ name = "",
+ protocol = "tcp",
+ backendPort = 1234,
+ frontendPortRangeStart = 1234,
+ frontendPortRangeEnd = 1234,
+ networkSecurityGroupRules = new[] {
+ new {
+ priority = 1234,
+ access = "allow",
+ sourceAddressPrefix = "",
+ sourcePortRanges = new[] {
+ ""
+ },
+ }
+ },
+ }
+ },
+ },
+ publicIPAddressConfiguration = new {
+ provision = "batchmanaged",
+ ipAddressIds = new[] {
+ ""
+ },
+ },
+ enableAcceleratedNetworking = true,
+ },
+ startTask = new {
+ commandLine = "",
+ containerSettings = new {
+ containerRunOptions = "",
+ imageName = "",
+ registry = new {
+ username = "",
+ password = "",
+ registryServer = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ },
+ workingDirectory = "taskWorkingDirectory",
+ },
+ resourceFiles = new[] {
+ new {
+ autoStorageContainerName = "",
+ storageContainerUrl = "",
+ httpUrl = "",
+ blobPrefix = "",
+ filePath = "",
+ fileMode = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ }
+ },
+ environmentSettings = new[] {
+ new {
+ name = "",
+ value = "",
+ }
+ },
+ userIdentity = new {
+ username = "",
+ autoUser = new {
+ scope = "task",
+ elevationLevel = "nonadmin",
+ },
+ },
+ maxTaskRetryCount = 1234,
+ waitForSuccess = true,
+ },
+ certificateReferences = new[] {
+ new {
+ thumbprint = "",
+ thumbprintAlgorithm = "",
+ storeLocation = "currentuser",
+ storeName = "",
+ visibility = new[] {
+ "starttask"
+ },
+ }
+ },
+ applicationPackageReferences = new[] {
+ new {
+ applicationId = "",
+ version = "",
+ }
+ },
+ applicationLicenses = new[] {
+ ""
+ },
+ userAccounts = new[] {
+ new {
+ name = "",
+ password = "",
+ elevationLevel = "nonadmin",
+ linuxUserConfiguration = new {
+ uid = 1234,
+ gid = 1234,
+ sshPrivateKey = "",
+ },
+ windowsUserConfiguration = new {
+ loginMode = "batch",
+ },
+ }
+ },
+ metadata = new[] {
+ new {
+ name = "",
+ value = "",
+ }
+ },
+ mountConfiguration = new[] {
+ new {
+ azureBlobFileSystemConfiguration = new {
+ accountName = "",
+ containerName = "",
+ accountKey = "",
+ sasKey = "",
+ blobfuseOptions = "",
+ relativeMountPath = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ },
+ nfsMountConfiguration = new {
+ source = "",
+ relativeMountPath = "",
+ mountOptions = "",
+ },
+ cifsMountConfiguration = new {
+ username = "",
+ source = "",
+ relativeMountPath = "",
+ mountOptions = "",
+ password = "",
+ },
+ azureFileShareConfiguration = new {
+ accountName = "",
+ azureFileUrl = "",
+ accountKey = "",
+ relativeMountPath = "",
+ mountOptions = "",
+ },
+ }
+ },
+ targetNodeCommunicationMode = "default",
+ },
+ },
+ },
+ metadata = new[] {
+ new {
+ name = "",
+ value = "",
+ }
+ },
+};
+
+Response response = client.Patch("", RequestContent.Create(data), 1234, DateTimeOffset.UtcNow, null);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call UpdateAsync with required parameters and request content.
+", credential);
+
+var data = new {
+ poolInfo = new {},
+};
+
+Response response = await client.UpdateAsync("", RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call UpdateAsync with all parameters and request content.
+", credential);
+
+var data = new {
+ priority = 1234,
+ maxParallelTasks = 1234,
+ allowTaskPreemption = true,
+ constraints = new {
+ maxWallClockTime = "PT1H23M45S",
+ maxTaskRetryCount = 1234,
+ },
+ poolInfo = new {
+ poolId = "",
+ autoPoolSpecification = new {
+ autoPoolIdPrefix = "",
+ poolLifetimeOption = "jobschedule",
+ keepAlive = true,
+ pool = new {
+ displayName = "",
+ vmSize = "",
+ cloudServiceConfiguration = new {
+ osFamily = "",
+ osVersion = "",
+ },
+ virtualMachineConfiguration = new {
+ imageReference = new {
+ publisher = "",
+ offer = "",
+ sku = "",
+ version = "",
+ virtualMachineImageId = "",
+ },
+ nodeAgentSKUId = "",
+ windowsConfiguration = new {
+ enableAutomaticUpdates = true,
+ },
+ dataDisks = new[] {
+ new {
+ lun = 1234,
+ caching = "none",
+ diskSizeGB = 1234,
+ storageAccountType = "standard_lrs",
+ }
+ },
+ licenseType = "",
+ containerConfiguration = new {
+ type = "dockerCompatible",
+ containerImageNames = new[] {
+ ""
+ },
+ containerRegistries = new[] {
+ new {
+ username = "",
+ password = "",
+ registryServer = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ }
+ },
+ },
+ diskEncryptionConfiguration = new {
+ targets = new[] {
+ "osdisk"
+ },
+ },
+ nodePlacementConfiguration = new {
+ policy = "regional",
+ },
+ extensions = new[] {
+ new {
+ name = "",
+ publisher = "",
+ type = "",
+ typeHandlerVersion = "",
+ autoUpgradeMinorVersion = true,
+ enableAutomaticUpgrade = true,
+ settings = new {},
+ protectedSettings = new {},
+ provisionAfterExtensions = new[] {
+ ""
+ },
+ }
+ },
+ osDisk = new {
+ ephemeralOSDiskSettings = new {
+ placement = "CacheDisk",
+ },
+ },
+ },
+ taskSlotsPerNode = 1234,
+ taskSchedulingPolicy = new {
+ nodeFillType = "spread",
+ },
+ resizeTimeout = "PT1H23M45S",
+ targetDedicatedNodes = 1234,
+ targetLowPriorityNodes = 1234,
+ enableAutoScale = true,
+ autoScaleFormula = "",
+ autoScaleEvaluationInterval = "PT1H23M45S",
+ enableInterNodeCommunication = true,
+ networkConfiguration = new {
+ subnetId = "",
+ dynamicVNetAssignmentScope = "none",
+ endpointConfiguration = new {
+ inboundNATPools = new[] {
+ new {
+ name = "",
+ protocol = "tcp",
+ backendPort = 1234,
+ frontendPortRangeStart = 1234,
+ frontendPortRangeEnd = 1234,
+ networkSecurityGroupRules = new[] {
+ new {
+ priority = 1234,
+ access = "allow",
+ sourceAddressPrefix = "",
+ sourcePortRanges = new[] {
+ ""
+ },
+ }
+ },
+ }
+ },
+ },
+ publicIPAddressConfiguration = new {
+ provision = "batchmanaged",
+ ipAddressIds = new[] {
+ ""
+ },
+ },
+ enableAcceleratedNetworking = true,
+ },
+ startTask = new {
+ commandLine = "",
+ containerSettings = new {
+ containerRunOptions = "",
+ imageName = "",
+ registry = new {
+ username = "",
+ password = "",
+ registryServer = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ },
+ workingDirectory = "taskWorkingDirectory",
+ },
+ resourceFiles = new[] {
+ new {
+ autoStorageContainerName = "",
+ storageContainerUrl = "",
+ httpUrl = "",
+ blobPrefix = "",
+ filePath = "",
+ fileMode = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ }
+ },
+ environmentSettings = new[] {
+ new {
+ name = "",
+ value = "",
+ }
+ },
+ userIdentity = new {
+ username = "",
+ autoUser = new {
+ scope = "task",
+ elevationLevel = "nonadmin",
+ },
+ },
+ maxTaskRetryCount = 1234,
+ waitForSuccess = true,
+ },
+ certificateReferences = new[] {
+ new {
+ thumbprint = "",
+ thumbprintAlgorithm = "",
+ storeLocation = "currentuser",
+ storeName = "",
+ visibility = new[] {
+ "starttask"
+ },
+ }
+ },
+ applicationPackageReferences = new[] {
+ new {
+ applicationId = "",
+ version = "",
+ }
+ },
+ applicationLicenses = new[] {
+ ""
+ },
+ userAccounts = new[] {
+ new {
+ name = "",
+ password = "",
+ elevationLevel = "nonadmin",
+ linuxUserConfiguration = new {
+ uid = 1234,
+ gid = 1234,
+ sshPrivateKey = "",
+ },
+ windowsUserConfiguration = new {
+ loginMode = "batch",
+ },
+ }
+ },
+ metadata = new[] {
+ new {
+ name = "",
+ value = "",
+ }
+ },
+ mountConfiguration = new[] {
+ new {
+ azureBlobFileSystemConfiguration = new {
+ accountName = "",
+ containerName = "",
+ accountKey = "",
+ sasKey = "",
+ blobfuseOptions = "",
+ relativeMountPath = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ },
+ nfsMountConfiguration = new {
+ source = "",
+ relativeMountPath = "",
+ mountOptions = "",
+ },
+ cifsMountConfiguration = new {
+ username = "",
+ source = "",
+ relativeMountPath = "",
+ mountOptions = "",
+ password = "",
+ },
+ azureFileShareConfiguration = new {
+ accountName = "",
+ azureFileUrl = "",
+ accountKey = "",
+ relativeMountPath = "",
+ mountOptions = "",
+ },
+ }
+ },
+ targetNodeCommunicationMode = "default",
+ },
+ },
+ },
+ metadata = new[] {
+ new {
+ name = "",
+ value = "",
+ }
+ },
+ onAllTasksComplete = "noaction",
+};
+
+Response response = await client.UpdateAsync("", RequestContent.Create(data), 1234, DateTimeOffset.UtcNow, null);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call Update with required parameters and request content.
+", credential);
+
+var data = new {
+ poolInfo = new {},
+};
+
+Response response = client.Update("", RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call Update with all parameters and request content.
+", credential);
+
+var data = new {
+ priority = 1234,
+ maxParallelTasks = 1234,
+ allowTaskPreemption = true,
+ constraints = new {
+ maxWallClockTime = "PT1H23M45S",
+ maxTaskRetryCount = 1234,
+ },
+ poolInfo = new {
+ poolId = "",
+ autoPoolSpecification = new {
+ autoPoolIdPrefix = "",
+ poolLifetimeOption = "jobschedule",
+ keepAlive = true,
+ pool = new {
+ displayName = "",
+ vmSize = "",
+ cloudServiceConfiguration = new {
+ osFamily = "",
+ osVersion = "",
+ },
+ virtualMachineConfiguration = new {
+ imageReference = new {
+ publisher = "",
+ offer = "",
+ sku = "",
+ version = "",
+ virtualMachineImageId = "",
+ },
+ nodeAgentSKUId = "",
+ windowsConfiguration = new {
+ enableAutomaticUpdates = true,
+ },
+ dataDisks = new[] {
+ new {
+ lun = 1234,
+ caching = "none",
+ diskSizeGB = 1234,
+ storageAccountType = "standard_lrs",
+ }
+ },
+ licenseType = "",
+ containerConfiguration = new {
+ type = "dockerCompatible",
+ containerImageNames = new[] {
+ ""
+ },
+ containerRegistries = new[] {
+ new {
+ username = "",
+ password = "",
+ registryServer = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ }
+ },
+ },
+ diskEncryptionConfiguration = new {
+ targets = new[] {
+ "osdisk"
+ },
+ },
+ nodePlacementConfiguration = new {
+ policy = "regional",
+ },
+ extensions = new[] {
+ new {
+ name = "",
+ publisher = "",
+ type = "",
+ typeHandlerVersion = "",
+ autoUpgradeMinorVersion = true,
+ enableAutomaticUpgrade = true,
+ settings = new {},
+ protectedSettings = new {},
+ provisionAfterExtensions = new[] {
+ ""
+ },
+ }
+ },
+ osDisk = new {
+ ephemeralOSDiskSettings = new {
+ placement = "CacheDisk",
+ },
+ },
+ },
+ taskSlotsPerNode = 1234,
+ taskSchedulingPolicy = new {
+ nodeFillType = "spread",
+ },
+ resizeTimeout = "PT1H23M45S",
+ targetDedicatedNodes = 1234,
+ targetLowPriorityNodes = 1234,
+ enableAutoScale = true,
+ autoScaleFormula = "",
+ autoScaleEvaluationInterval = "PT1H23M45S",
+ enableInterNodeCommunication = true,
+ networkConfiguration = new {
+ subnetId = "",
+ dynamicVNetAssignmentScope = "none",
+ endpointConfiguration = new {
+ inboundNATPools = new[] {
+ new {
+ name = "",
+ protocol = "tcp",
+ backendPort = 1234,
+ frontendPortRangeStart = 1234,
+ frontendPortRangeEnd = 1234,
+ networkSecurityGroupRules = new[] {
+ new {
+ priority = 1234,
+ access = "allow",
+ sourceAddressPrefix = "",
+ sourcePortRanges = new[] {
+ ""
+ },
+ }
+ },
+ }
+ },
+ },
+ publicIPAddressConfiguration = new {
+ provision = "batchmanaged",
+ ipAddressIds = new[] {
+ ""
+ },
+ },
+ enableAcceleratedNetworking = true,
+ },
+ startTask = new {
+ commandLine = "",
+ containerSettings = new {
+ containerRunOptions = "",
+ imageName = "",
+ registry = new {
+ username = "",
+ password = "",
+ registryServer = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ },
+ workingDirectory = "taskWorkingDirectory",
+ },
+ resourceFiles = new[] {
+ new {
+ autoStorageContainerName = "",
+ storageContainerUrl = "",
+ httpUrl = "",
+ blobPrefix = "",
+ filePath = "",
+ fileMode = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ }
+ },
+ environmentSettings = new[] {
+ new {
+ name = "",
+ value = "",
+ }
+ },
+ userIdentity = new {
+ username = "",
+ autoUser = new {
+ scope = "task",
+ elevationLevel = "nonadmin",
+ },
+ },
+ maxTaskRetryCount = 1234,
+ waitForSuccess = true,
+ },
+ certificateReferences = new[] {
+ new {
+ thumbprint = "",
+ thumbprintAlgorithm = "",
+ storeLocation = "currentuser",
+ storeName = "",
+ visibility = new[] {
+ "starttask"
+ },
+ }
+ },
+ applicationPackageReferences = new[] {
+ new {
+ applicationId = "",
+ version = "",
+ }
+ },
+ applicationLicenses = new[] {
+ ""
+ },
+ userAccounts = new[] {
+ new {
+ name = "",
+ password = "",
+ elevationLevel = "nonadmin",
+ linuxUserConfiguration = new {
+ uid = 1234,
+ gid = 1234,
+ sshPrivateKey = "",
+ },
+ windowsUserConfiguration = new {
+ loginMode = "batch",
+ },
+ }
+ },
+ metadata = new[] {
+ new {
+ name = "",
+ value = "",
+ }
+ },
+ mountConfiguration = new[] {
+ new {
+ azureBlobFileSystemConfiguration = new {
+ accountName = "",
+ containerName = "",
+ accountKey = "",
+ sasKey = "",
+ blobfuseOptions = "",
+ relativeMountPath = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ },
+ nfsMountConfiguration = new {
+ source = "",
+ relativeMountPath = "",
+ mountOptions = "",
+ },
+ cifsMountConfiguration = new {
+ username = "",
+ source = "",
+ relativeMountPath = "",
+ mountOptions = "",
+ password = "",
+ },
+ azureFileShareConfiguration = new {
+ accountName = "",
+ azureFileUrl = "",
+ accountKey = "",
+ relativeMountPath = "",
+ mountOptions = "",
+ },
+ }
+ },
+ targetNodeCommunicationMode = "default",
+ },
+ },
+ },
+ metadata = new[] {
+ new {
+ name = "",
+ value = "",
+ }
+ },
+ onAllTasksComplete = "noaction",
+};
+
+Response response = client.Update("", RequestContent.Create(data), 1234, DateTimeOffset.UtcNow, null);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call DisableAsync with required parameters and request content.
+", credential);
+
+var data = new {
+ disableTasks = "requeue",
+};
+
+Response response = await client.DisableAsync("", RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DisableAsync with all parameters and request content.
+", credential);
+
+var data = new {
+ disableTasks = "requeue",
+};
+
+Response response = await client.DisableAsync("", RequestContent.Create(data), 1234, DateTimeOffset.UtcNow, null);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call Disable with required parameters and request content.
+", credential);
+
+var data = new {
+ disableTasks = "requeue",
+};
+
+Response response = client.Disable("", RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call Disable with all parameters and request content.
+", credential);
+
+var data = new {
+ disableTasks = "requeue",
+};
+
+Response response = client.Disable("", RequestContent.Create(data), 1234, DateTimeOffset.UtcNow, null);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call EnableAsync with required parameters.
+", credential);
+
+Response response = await client.EnableAsync("");
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call EnableAsync with all parameters.
+", credential);
+
+Response response = await client.EnableAsync("", 1234, DateTimeOffset.UtcNow, null);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call Enable with required parameters.
+", credential);
+
+Response response = client.Enable("");
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call Enable with all parameters.
+", credential);
+
+Response response = client.Enable("", 1234, DateTimeOffset.UtcNow, null);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call TerminateAsync with required parameters.
+", credential);
+
+var data = new {};
+
+Response response = await client.TerminateAsync("", RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call TerminateAsync with all parameters and request content.
+", credential);
+
+var data = new {
+ terminateReason = "",
+};
+
+Response response = await client.TerminateAsync("", RequestContent.Create(data), 1234, DateTimeOffset.UtcNow, null);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call Terminate with required parameters.
+", credential);
+
+var data = new {};
+
+Response response = client.Terminate("", RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call Terminate with all parameters and request content.
+", credential);
+
+var data = new {
+ terminateReason = "",
+};
+
+Response response = client.Terminate("", RequestContent.Create(data), 1234, DateTimeOffset.UtcNow, null);
+Console.WriteLine(response.Status);
+]]>
+
+
+
+
+This sample shows how to call AddAsync with required parameters and request content.
+", credential);
+
+var data = new {
+ id = "",
+ poolInfo = new {},
+};
+
+Response response = await client.AddAsync(RequestContent.Create(data));
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call AddAsync with all parameters and request content.
+", credential);
+
+var data = new {
+ id = "",
+ displayName = "",
+ priority = 1234,
+ maxParallelTasks = 1234,
+ allowTaskPreemption = true,
+ constraints = new {
+ maxWallClockTime = "PT1H23M45S",
+ maxTaskRetryCount = 1234,
+ },
+ jobManagerTask = new {
+ id = "",
+ displayName = "",
+ commandLine = "",
+ containerSettings = new {
+ containerRunOptions = "",
+ imageName = "",
+ registry = new {
+ username = "",
+ password = "",
+ registryServer = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ },
+ workingDirectory = "taskWorkingDirectory",
+ },
+ resourceFiles = new[] {
+ new {
+ autoStorageContainerName = "",
+ storageContainerUrl = "",
+ httpUrl = "",
+ blobPrefix = "",
+ filePath = "",
+ fileMode = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ }
+ },
+ outputFiles = new[] {
+ new {
+ filePattern = "",
+ destination = new {
+ container = new {
+ path = "",
+ containerUrl = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ uploadHeaders = new[] {
+ new {
+ name = "",
+ value = "",
+ }
+ },
+ },
+ },
+ uploadOptions = new {
+ uploadCondition = "tasksuccess",
+ },
+ }
+ },
+ environmentSettings = new[] {
+ new {
+ name = "",
+ value = "",
+ }
+ },
+ constraints = new {
+ maxWallClockTime = "PT1H23M45S",
+ retentionTime = "PT1H23M45S",
+ maxTaskRetryCount = 1234,
+ },
+ requiredSlots = 1234,
+ killJobOnCompletion = true,
+ userIdentity = new {
+ username = "",
+ autoUser = new {
+ scope = "task",
+ elevationLevel = "nonadmin",
+ },
+ },
+ runExclusive = true,
+ applicationPackageReferences = new[] {
+ new {
+ applicationId = "",
+ version = "",
+ }
+ },
+ authenticationTokenSettings = new {
+ access = new[] {
+ "job"
+ },
+ },
+ allowLowPriorityNode = true,
+ },
+ jobPreparationTask = new {
+ id = "",
+ commandLine = "",
+ containerSettings = new {
+ containerRunOptions = "",
+ imageName = "",
+ registry = new {
+ username = "",
+ password = "",
+ registryServer = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ },
+ workingDirectory = "taskWorkingDirectory",
+ },
+ resourceFiles = new[] {
+ new {
+ autoStorageContainerName = "",
+ storageContainerUrl = "",
+ httpUrl = "",
+ blobPrefix = "",
+ filePath = "",
+ fileMode = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ }
+ },
+ environmentSettings = new[] {
+ new {
+ name = "",
+ value = "",
+ }
+ },
+ constraints = new {
+ maxWallClockTime = "PT1H23M45S",
+ retentionTime = "PT1H23M45S",
+ maxTaskRetryCount = 1234,
+ },
+ waitForSuccess = true,
+ userIdentity = new {
+ username = "",
+ autoUser = new {
+ scope = "task",
+ elevationLevel = "nonadmin",
+ },
+ },
+ rerunOnNodeRebootAfterSuccess = true,
+ },
+ jobReleaseTask = new {
+ id = "",
+ commandLine = "",
+ containerSettings = new {
+ containerRunOptions = "",
+ imageName = "",
+ registry = new {
+ username = "",
+ password = "",
+ registryServer = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ },
+ workingDirectory = "taskWorkingDirectory",
+ },
+ resourceFiles = new[] {
+ new {
+ autoStorageContainerName = "",
+ storageContainerUrl = "",
+ httpUrl = "",
+ blobPrefix = "",
+ filePath = "",
+ fileMode = "",
+ identityReference = new {
+ resourceId = "",
+ },
+ }
+ },
+ environmentSettings = new[] {
+ new {
+ name = "",
+ value = "",
+ }
+ },
+ maxWallClockTime = "PT1H23M45S",
+ retentionTime = "PT1H23M45S",
+ userIdentity = new {
+ username = "",
+ autoUser = new {
+ scope = "task",
+ elevationLevel = "nonadmin",
+ },
+ },
+ },
+ commonEnvironmentSettings = new[] {
+ new {
+ name = "",
+ value = "",
+ }
+ },
+ poolInfo = new {
+ poolId = "",
+ autoPoolSpecification = new {
+ autoPoolIdPrefix = "",
+ poolLifetimeOption = "jobschedule",
+ keepAlive = true,
+ pool = new {
+ displayName = "",
+ vmSize = "",
+ cloudServiceConfiguration = new {
+ osFamily = "",
+ osVersion = "",
+ },
+ virtualMachineConfiguration = new {
+ imageReference = new {
+ publisher = "",
+ offer = "",
+ sku = "",
+ version = "",
+ virtualMachineImageId = "",
+ },
+ nodeAgentSKUId = "",
+ windowsConfiguration = new {
+ enableAutomaticUpdates = true,
+ },
+ dataDisks = new[] {
+ new {
+ lun = 1234,
+ caching = "none",
+ diskSizeGB = 1234,
+ storageAccountType = "standard_lrs",
+ }
+ },
+ licenseType = "",
+ containerConfiguration = new {
+ type = "dockerCompatible",
+ containerImageNames = new[] {
+ ""
+ },
+ containerRegistries = new[] {
+ new {
+ username = "