From 87a0470eed0be47e0c9458e3cdfac429cd4fec62 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 28 Jun 2018 23:51:49 +0000 Subject: [PATCH] Generated from bdc8ab353486135d87cb0bc8d6d7542e1be7b527 Rename MPI to CustomMPI to match Batch AI service --- .../v2017_09_01_preview/pom.xml | 266 +++--- .../AzureBlobFileSystemReference.java | 4 +- .../AzureFileShareReference.java | 12 +- .../AzureStorageCredentialsInfo.java | 8 +- .../v2017_09_01_preview/BatchAIError.java | 12 +- .../v2017_09_01_preview/CNTKsettings.java | 20 +- .../v2017_09_01_preview/CaffeSettings.java | 16 +- .../v2017_09_01_preview/ChainerSettings.java | 4 +- .../batchai/v2017_09_01_preview/Cluster.java | 2 +- .../ClusterCreateParameters.java | 16 +- .../ClusterUpdateParameters.java | 4 +- .../ClustersListByResourceGroupOptions.java | 12 +- .../ClustersListOptions.java | 12 +- .../v2017_09_01_preview/DataDisks.java | 6 +- .../v2017_09_01_preview/FileServer.java | 2 +- .../FileServerCreateParameters.java | 12 +- .../FileServerReference.java | 8 +- ...FileServersListByResourceGroupOptions.java | 12 +- .../FileServersListOptions.java | 12 +- .../v2017_09_01_preview/InputDirectory.java | 4 +- .../batchai/v2017_09_01_preview/Job.java | 2 +- .../JobBasePropertiesConstraints.java | 4 +- .../JobCreateParameters.java | 40 +- .../v2017_09_01_preview/JobPreparation.java | 4 +- .../JobPropertiesConstraints.java | 4 +- .../JobPropertiesExecutionInfo.java | 12 +- .../JobsListByResourceGroupOptions.java | 12 +- .../v2017_09_01_preview/JobsListOptions.java | 12 +- .../JobsListOutputFilesOptions.java | 12 +- .../ManualScaleSettings.java | 8 +- .../v2017_09_01_preview/MountSettings.java | 4 +- .../v2017_09_01_preview/MountVolumes.java | 8 +- .../v2017_09_01_preview/OperationDisplay.java | 4 +- .../v2017_09_01_preview/OutputDirectory.java | 20 +- .../PrivateRegistryCredentials.java | 8 +- .../v2017_09_01_preview/ResourceId.java | 4 +- .../v2017_09_01_preview/SetupTask.java | 4 +- .../v2017_09_01_preview/SshConfiguration.java | 4 +- .../TensorFlowSettings.java | 16 +- .../UnmanagedFileSystemReference.java | 4 +- .../implementation/ClusterInner.java | 16 +- .../implementation/ClustersImpl.java | 69 +- .../implementation/FileInner.java | 16 +- .../implementation/FileServerInner.java | 6 +- .../implementation/FileServersImpl.java | 46 +- .../implementation/JobInner.java | 52 +- .../implementation/JobsImpl.java | 92 +- .../implementation/OperationInner.java | 8 +- .../implementation/OperationsImpl.java | 23 +- .../RemoteLoginInformationInner.java | 8 +- batchai/resource-manager/v2018_03_01/pom.xml | 266 +++--- .../v2018_03_01/AppInsightsReference.java | 4 +- .../AzureBlobFileSystemReference.java | 4 +- .../v2018_03_01/AzureFileShareReference.java | 12 +- .../AzureStorageCredentialsInfo.java | 8 +- .../batchai/v2018_03_01/BatchAIError.java | 12 +- .../batchai/v2018_03_01/CNTKsettings.java | 20 +- .../batchai/v2018_03_01/CaffeSettings.java | 16 +- .../batchai/v2018_03_01/ChainerSettings.java | 4 +- .../batchai/v2018_03_01/Cluster.java | 2 +- .../v2018_03_01/ClusterCreateParameters.java | 16 +- .../v2018_03_01/ClusterUpdateParameters.java | 4 +- .../ClustersListByResourceGroupOptions.java | 12 +- .../v2018_03_01/ClustersListOptions.java | 12 +- .../batchai/v2018_03_01/DataDisks.java | 8 +- .../EnvironmentVariableWithSecretValue.java | 4 +- .../batchai/v2018_03_01/FileServer.java | 2 +- .../FileServerCreateParameters.java | 12 +- .../v2018_03_01/FileServerReference.java | 8 +- ...FileServersListByResourceGroupOptions.java | 12 +- .../v2018_03_01/FileServersListOptions.java | 12 +- .../batchai/v2018_03_01/ImageReference.java | 4 +- .../batchai/v2018_03_01/InputDirectory.java | 4 +- .../management/batchai/v2018_03_01/Job.java | 2 +- .../JobBasePropertiesConstraints.java | 4 +- .../v2018_03_01/JobCreateParameters.java | 48 +- .../batchai/v2018_03_01/JobPreparation.java | 4 +- .../v2018_03_01/JobPropertiesConstraints.java | 4 +- .../JobPropertiesExecutionInfo.java | 12 +- .../JobsListByResourceGroupOptions.java | 12 +- .../batchai/v2018_03_01/JobsListOptions.java | 12 +- .../JobsListOutputFilesOptions.java | 16 +- .../v2018_03_01/ManualScaleSettings.java | 8 +- .../batchai/v2018_03_01/MountSettings.java | 4 +- .../batchai/v2018_03_01/MountVolumes.java | 8 +- .../batchai/v2018_03_01/NodeSetup.java | 4 +- .../batchai/v2018_03_01/OperationDisplay.java | 4 +- .../batchai/v2018_03_01/OutputDirectory.java | 20 +- .../PerformanceCountersSettings.java | 4 +- .../PrivateRegistryCredentials.java | 8 +- .../batchai/v2018_03_01/PyTorchSettings.java | 8 +- .../batchai/v2018_03_01/ResourceId.java | 4 +- .../batchai/v2018_03_01/SetupTask.java | 14 +- .../batchai/v2018_03_01/SshConfiguration.java | 4 +- .../v2018_03_01/TensorFlowSettings.java | 16 +- .../UnmanagedFileSystemReference.java | 4 +- .../batchai/v2018_03_01/UsageName.java | 8 +- .../implementation/ClusterInner.java | 16 +- .../implementation/ClustersImpl.java | 69 +- .../v2018_03_01/implementation/FileInner.java | 16 +- .../implementation/FileServerInner.java | 6 +- .../implementation/FileServersImpl.java | 46 +- .../v2018_03_01/implementation/JobInner.java | 64 +- .../v2018_03_01/implementation/JobsImpl.java | 92 +- .../implementation/OperationInner.java | 8 +- .../implementation/OperationsImpl.java | 23 +- .../RemoteLoginInformationInner.java | 8 +- .../implementation/UsageInner.java | 19 +- .../implementation/UsagesImpl.java | 23 +- batchai/resource-manager/v2018_05_01/pom.xml | 266 +++--- .../v2018_05_01/AppInsightsReference.java | 26 +- .../v2018_05_01/AutoScaleSettings.java | 32 +- .../AzureBlobFileSystemReference.java | 42 +- .../v2018_05_01/AzureFileShareReference.java | 48 +- .../AzureStorageCredentialsInfo.java | 23 +- .../batchai/v2018_05_01/BatchAIError.java | 8 +- .../batchai/v2018_05_01/CNTKsettings.java | 58 +- .../batchai/v2018_05_01/Caffe2Settings.java | 23 +- .../batchai/v2018_05_01/CaffeSettings.java | 46 +- .../batchai/v2018_05_01/ChainerSettings.java | 32 +- .../batchai/v2018_05_01/Cluster.java | 59 +- .../v2018_05_01/ClusterCreateParameters.java | 120 +-- .../v2018_05_01/ClusterUpdateParameters.java | 37 +- .../batchai/v2018_05_01/Clusters.java | 17 - .../ClustersListByWorkspaceOptions.java | 4 +- .../v2018_05_01/ContainerSettings.java | 38 +- .../v2018_05_01/CustomMpiSettings.java | 19 +- .../v2018_05_01/CustomToolkitSettings.java | 9 +- .../batchai/v2018_05_01/DataDisks.java | 43 +- .../v2018_05_01/EnvironmentVariable.java | 12 +- .../EnvironmentVariableWithSecretValue.java | 24 +- .../ExperimentsListByWorkspaceOptions.java | 4 +- .../batchai/v2018_05_01/FileServer.java | 49 +- .../FileServerCreateParameters.java | 88 +- .../v2018_05_01/FileServerReference.java | 41 +- .../batchai/v2018_05_01/FileServers.java | 17 - .../FileServersListByWorkspaceOptions.java | 4 +- .../batchai/v2018_05_01/HorovodSettings.java | 32 +- .../batchai/v2018_05_01/ImageReference.java | 32 +- .../v2018_05_01/ImageSourceRegistry.java | 21 +- .../batchai/v2018_05_01/InputDirectory.java | 17 +- .../management/batchai/v2018_05_01/Job.java | 15 +- .../JobBasePropertiesConstraints.java | 8 +- .../v2018_05_01/JobCreateParameters.java | 172 ++-- .../batchai/v2018_05_01/JobPreparation.java | 14 +- .../v2018_05_01/JobPropertiesConstraints.java | 8 +- .../JobPropertiesExecutionInfo.java | 35 +- .../JobsListByExperimentOptions.java | 4 +- .../JobsListOutputFilesOptions.java | 16 +- .../v2018_05_01/KeyVaultSecretReference.java | 16 +- .../v2018_05_01/ManualScaleSettings.java | 19 +- .../batchai/v2018_05_01/MountSettings.java | 26 +- .../batchai/v2018_05_01/MountVolumes.java | 36 +- .../batchai/v2018_05_01/NameValuePair.java | 12 +- .../batchai/v2018_05_01/NodeSetup.java | 35 +- .../batchai/v2018_05_01/NodeStateCounts.java | 17 +- .../batchai/v2018_05_01/OperationDisplay.java | 2 +- .../batchai/v2018_05_01/OutputDirectory.java | 32 +- .../PerformanceCountersSettings.java | 12 +- .../PrivateRegistryCredentials.java | 28 +- .../batchai/v2018_05_01/PyTorchSettings.java | 42 +- .../batchai/v2018_05_01/ResourceId.java | 4 +- .../batchai/v2018_05_01/ScaleSettings.java | 14 +- .../batchai/v2018_05_01/SetupTask.java | 50 +- .../batchai/v2018_05_01/SshConfiguration.java | 21 +- .../v2018_05_01/TensorFlowSettings.java | 70 +- .../batchai/v2018_05_01/ToolType.java | 4 +- .../UnmanagedFileSystemReference.java | 24 +- .../batchai/v2018_05_01/UsageName.java | 4 +- .../v2018_05_01/UserAccountSettings.java | 24 +- .../VirtualMachineConfiguration.java | 9 +- .../batchai/v2018_05_01/Workspace.java | 2 +- .../WorkspaceCreateParameters.java | 12 +- .../WorkspaceUpdateParameters.java | 45 + .../WorkspacesListByResourceGroupOptions.java | 4 +- .../v2018_05_01/WorkspacesListOptions.java | 4 +- .../BatchAIManagementClientImpl.java | 56 +- .../implementation/BatchAIManager.java | 48 +- .../implementation/ClusterImpl.java | 50 +- .../implementation/ClusterInner.java | 130 +-- .../implementation/ClustersImpl.java | 118 +-- .../implementation/ClustersInner.java | 814 +++--------------- .../implementation/ExperimentInner.java | 12 +- .../implementation/ExperimentsImpl.java | 23 +- .../v2018_05_01/implementation/FileInner.java | 27 +- .../implementation/FileServerImpl.java | 23 - .../implementation/FileServerInner.java | 72 +- .../implementation/FileServersImpl.java | 97 +-- .../implementation/FileServersInner.java | 723 +--------------- .../v2018_05_01/implementation/JobImpl.java | 19 +- .../v2018_05_01/implementation/JobInner.java | 209 +++-- .../v2018_05_01/implementation/JobsImpl.java | 69 +- .../implementation/OperationInner.java | 6 +- .../implementation/OperationsImpl.java | 23 +- .../RemoteLoginInformationInner.java | 17 +- .../implementation/UsageInner.java | 8 +- .../implementation/UsagesImpl.java | 23 +- .../implementation/WorkspaceInner.java | 14 +- .../implementation/WorkspacesImpl.java | 46 +- .../implementation/WorkspacesInner.java | 182 ++++ 200 files changed, 2528 insertions(+), 4458 deletions(-) create mode 100644 batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/WorkspaceUpdateParameters.java diff --git a/batchai/resource-manager/v2017_09_01_preview/pom.xml b/batchai/resource-manager/v2017_09_01_preview/pom.xml index 6823c5945142..8b96a80ef90b 100644 --- a/batchai/resource-manager/v2017_09_01_preview/pom.xml +++ b/batchai/resource-manager/v2017_09_01_preview/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.azure-mgmt-batchai-2017-09-01-preview - - com.microsoft.azure - azure-arm-parent - 0.0.2-beta - ../../../pom.xml - - azure-mgmt-batchai - 1.0.0-beta-SNAPSHOT - jar - Microsoft Azure SDK for BatchAI Management - This package contains Microsoft BatchAI Management SDK. - https://github.com/Azure/azure-libraries-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-libraries-for-java - scm:git:git@github.com:Azure/azure-libraries-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - - - com.microsoft.azure - azure-arm-client-runtime - - - junit - junit - test - - - com.microsoft.azure - azure-client-authentication - test - - - com.microsoft.azure - azure-mgmt-resources - test - - - com.microsoft.azure - azure-arm-client-runtime - test-jar - test - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
+ + + 4.0.0 + com.microsoft.azure.batchai.v2017_09_01_preview + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-batchai + 1.0.0-beta + jar + Microsoft Azure SDK for BatchAI Management + This package contains Microsoft BatchAI Management SDK. + https://github.com/Azure/azure-libraries-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-libraries-for-java + scm:git:git@github.com:Azure/azure-libraries-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/AzureBlobFileSystemReference.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/AzureBlobFileSystemReference.java index c029dacfce08..f2301aed88da 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/AzureBlobFileSystemReference.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/AzureBlobFileSystemReference.java @@ -110,7 +110,7 @@ public AzureBlobFileSystemReference withCredentials(AzureStorageCredentialsInfo } /** - * Get the relativeMountPath value. + * Get note that all blob file systems will be mounted under $AZ_BATCHAI_MOUNT_ROOT location. * * @return the relativeMountPath value */ @@ -119,7 +119,7 @@ public String relativeMountPath() { } /** - * Set the relativeMountPath value. + * Set note that all blob file systems will be mounted under $AZ_BATCHAI_MOUNT_ROOT location. * * @param relativeMountPath the relativeMountPath value to set * @return the AzureBlobFileSystemReference object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/AzureFileShareReference.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/AzureFileShareReference.java index 1de549aefb53..58a29b21c8b7 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/AzureFileShareReference.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/AzureFileShareReference.java @@ -116,7 +116,7 @@ public AzureFileShareReference withCredentials(AzureStorageCredentialsInfo crede } /** - * Get the relativeMountPath value. + * Get note that all file shares will be mounted under $AZ_BATCHAI_MOUNT_ROOT location. * * @return the relativeMountPath value */ @@ -125,7 +125,7 @@ public String relativeMountPath() { } /** - * Set the relativeMountPath value. + * Set note that all file shares will be mounted under $AZ_BATCHAI_MOUNT_ROOT location. * * @param relativeMountPath the relativeMountPath value to set * @return the AzureFileShareReference object itself. @@ -136,7 +136,7 @@ public AzureFileShareReference withRelativeMountPath(String relativeMountPath) { } /** - * Get the fileMode value. + * Get default value is 0777. Valid only if OS is linux. * * @return the fileMode value */ @@ -145,7 +145,7 @@ public String fileMode() { } /** - * Set the fileMode value. + * Set default value is 0777. Valid only if OS is linux. * * @param fileMode the fileMode value to set * @return the AzureFileShareReference object itself. @@ -156,7 +156,7 @@ public AzureFileShareReference withFileMode(String fileMode) { } /** - * Get the directoryMode value. + * Get default value is 0777. Valid only if OS is linux. * * @return the directoryMode value */ @@ -165,7 +165,7 @@ public String directoryMode() { } /** - * Set the directoryMode value. + * Set default value is 0777. Valid only if OS is linux. * * @param directoryMode the directoryMode value to set * @return the AzureFileShareReference object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/AzureStorageCredentialsInfo.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/AzureStorageCredentialsInfo.java index 77fde3c07b4d..f716a132d632 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/AzureStorageCredentialsInfo.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/AzureStorageCredentialsInfo.java @@ -32,7 +32,7 @@ public class AzureStorageCredentialsInfo { private KeyVaultSecretReference accountKeySecretReference; /** - * Get the accountKey value. + * Get one of accountKey or accountKeySecretReference must be specified. * * @return the accountKey value */ @@ -41,7 +41,7 @@ public String accountKey() { } /** - * Set the accountKey value. + * Set one of accountKey or accountKeySecretReference must be specified. * * @param accountKey the accountKey value to set * @return the AzureStorageCredentialsInfo object itself. @@ -52,7 +52,7 @@ public AzureStorageCredentialsInfo withAccountKey(String accountKey) { } /** - * Get the accountKeySecretReference value. + * Get users can store their secrets in Azure KeyVault and pass it to the Batch AI Service to integrate with KeyVault. One of accountKey or accountKeySecretReference must be specified. * * @return the accountKeySecretReference value */ @@ -61,7 +61,7 @@ public KeyVaultSecretReference accountKeySecretReference() { } /** - * Set the accountKeySecretReference value. + * Set users can store their secrets in Azure KeyVault and pass it to the Batch AI Service to integrate with KeyVault. One of accountKey or accountKeySecretReference must be specified. * * @param accountKeySecretReference the accountKeySecretReference value to set * @return the AzureStorageCredentialsInfo object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/BatchAIError.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/BatchAIError.java index 983c8bdca73a..6dcd916a0547 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/BatchAIError.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/BatchAIError.java @@ -36,7 +36,7 @@ public class BatchAIError { private List details; /** - * Get the code value. + * Get an identifier for the error. Codes are invariant and are intended to be consumed programmatically. * * @return the code value */ @@ -45,7 +45,7 @@ public String code() { } /** - * Set the code value. + * Set an identifier for the error. Codes are invariant and are intended to be consumed programmatically. * * @param code the code value to set * @return the BatchAIError object itself. @@ -56,7 +56,7 @@ public BatchAIError withCode(String code) { } /** - * Get the message value. + * Get a message describing the error, intended to be suitable for display in a user interface. * * @return the message value */ @@ -65,7 +65,7 @@ public String message() { } /** - * Set the message value. + * Set a message describing the error, intended to be suitable for display in a user interface. * * @param message the message value to set * @return the BatchAIError object itself. @@ -76,7 +76,7 @@ public BatchAIError withMessage(String message) { } /** - * Get the details value. + * Get a list of additional details about the error. * * @return the details value */ @@ -85,7 +85,7 @@ public List details() { } /** - * Set the details value. + * Set a list of additional details about the error. * * @param details the details value to set * @return the BatchAIError object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/CNTKsettings.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/CNTKsettings.java index 0c0317bd3cc6..1d41b4e8e5f2 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/CNTKsettings.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/CNTKsettings.java @@ -59,7 +59,7 @@ public class CNTKsettings { private Integer processCount; /** - * Get the languageType value. + * Get valid values are 'BrainScript' or 'Python'. * * @return the languageType value */ @@ -68,7 +68,7 @@ public String languageType() { } /** - * Set the languageType value. + * Set valid values are 'BrainScript' or 'Python'. * * @param languageType the languageType value to set * @return the CNTKsettings object itself. @@ -79,7 +79,7 @@ public CNTKsettings withLanguageType(String languageType) { } /** - * Get the configFilePath value. + * Get this property can be specified only if the languageType is 'BrainScript'. * * @return the configFilePath value */ @@ -88,7 +88,7 @@ public String configFilePath() { } /** - * Set the configFilePath value. + * Set this property can be specified only if the languageType is 'BrainScript'. * * @param configFilePath the configFilePath value to set * @return the CNTKsettings object itself. @@ -99,7 +99,7 @@ public CNTKsettings withConfigFilePath(String configFilePath) { } /** - * Get the pythonScriptFilePath value. + * Get this property can be specified only if the languageType is 'Python'. * * @return the pythonScriptFilePath value */ @@ -108,7 +108,7 @@ public String pythonScriptFilePath() { } /** - * Set the pythonScriptFilePath value. + * Set this property can be specified only if the languageType is 'Python'. * * @param pythonScriptFilePath the pythonScriptFilePath value to set * @return the CNTKsettings object itself. @@ -119,7 +119,7 @@ public CNTKsettings withPythonScriptFilePath(String pythonScriptFilePath) { } /** - * Get the pythonInterpreterPath value. + * Get this property can be specified only if the languageType is 'Python'. * * @return the pythonInterpreterPath value */ @@ -128,7 +128,7 @@ public String pythonInterpreterPath() { } /** - * Set the pythonInterpreterPath value. + * Set this property can be specified only if the languageType is 'Python'. * * @param pythonInterpreterPath the pythonInterpreterPath value to set * @return the CNTKsettings object itself. @@ -159,7 +159,7 @@ public CNTKsettings withCommandLineArgs(String commandLineArgs) { } /** - * Get the processCount value. + * Get the default value for this property is equal to nodeCount property. * * @return the processCount value */ @@ -168,7 +168,7 @@ public Integer processCount() { } /** - * Set the processCount value. + * Set the default value for this property is equal to nodeCount property. * * @param processCount the processCount value to set * @return the CNTKsettings object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/CaffeSettings.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/CaffeSettings.java index 73806bb906d7..64ff406b0141 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/CaffeSettings.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/CaffeSettings.java @@ -50,7 +50,7 @@ public class CaffeSettings { private Integer processCount; /** - * Get the configFilePath value. + * Get this property cannot be specified if pythonScriptFilePath is specified. * * @return the configFilePath value */ @@ -59,7 +59,7 @@ public String configFilePath() { } /** - * Set the configFilePath value. + * Set this property cannot be specified if pythonScriptFilePath is specified. * * @param configFilePath the configFilePath value to set * @return the CaffeSettings object itself. @@ -70,7 +70,7 @@ public CaffeSettings withConfigFilePath(String configFilePath) { } /** - * Get the pythonScriptFilePath value. + * Get this property cannot be specified if configFilePath is specified. * * @return the pythonScriptFilePath value */ @@ -79,7 +79,7 @@ public String pythonScriptFilePath() { } /** - * Set the pythonScriptFilePath value. + * Set this property cannot be specified if configFilePath is specified. * * @param pythonScriptFilePath the pythonScriptFilePath value to set * @return the CaffeSettings object itself. @@ -90,7 +90,7 @@ public CaffeSettings withPythonScriptFilePath(String pythonScriptFilePath) { } /** - * Get the pythonInterpreterPath value. + * Get this property can be specified only if the pythonScriptFilePath is specified. * * @return the pythonInterpreterPath value */ @@ -99,7 +99,7 @@ public String pythonInterpreterPath() { } /** - * Set the pythonInterpreterPath value. + * Set this property can be specified only if the pythonScriptFilePath is specified. * * @param pythonInterpreterPath the pythonInterpreterPath value to set * @return the CaffeSettings object itself. @@ -130,7 +130,7 @@ public CaffeSettings withCommandLineArgs(String commandLineArgs) { } /** - * Get the processCount value. + * Get the default value for this property is equal to nodeCount property. * * @return the processCount value */ @@ -139,7 +139,7 @@ public Integer processCount() { } /** - * Set the processCount value. + * Set the default value for this property is equal to nodeCount property. * * @param processCount the processCount value to set * @return the CaffeSettings object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ChainerSettings.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ChainerSettings.java index 74e02e8acc31..ac83120b1539 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ChainerSettings.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ChainerSettings.java @@ -100,7 +100,7 @@ public ChainerSettings withCommandLineArgs(String commandLineArgs) { } /** - * Get the processCount value. + * Get the default value for this property is equal to nodeCount property. * * @return the processCount value */ @@ -109,7 +109,7 @@ public Integer processCount() { } /** - * Set the processCount value. + * Set the default value for this property is equal to nodeCount property. * * @param processCount the processCount value to set * @return the ChainerSettings object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/Cluster.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/Cluster.java index 4fd22a53d188..33aae0a059b6 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/Cluster.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/Cluster.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.batchai.v2017_09_01_preview.implementation.BatchAIManager; import org.joda.time.DateTime; diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ClusterCreateParameters.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ClusterCreateParameters.java index 6133cb1c8a61..84b7a8c6d9b9 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ClusterCreateParameters.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ClusterCreateParameters.java @@ -81,7 +81,7 @@ public class ClusterCreateParameters { private ResourceId subnet; /** - * Get the location value. + * Get the region in which to create the cluster. * * @return the location value */ @@ -90,7 +90,7 @@ public String location() { } /** - * Set the location value. + * Set the region in which to create the cluster. * * @param location the location value to set * @return the ClusterCreateParameters object itself. @@ -101,7 +101,7 @@ public ClusterCreateParameters withLocation(String location) { } /** - * Get the tags value. + * Get the user specified tags associated with the Cluster. * * @return the tags value */ @@ -110,7 +110,7 @@ public Map tags() { } /** - * Set the tags value. + * Set the user specified tags associated with the Cluster. * * @param tags the tags value to set * @return the ClusterCreateParameters object itself. @@ -121,7 +121,7 @@ public ClusterCreateParameters withTags(Map tags) { } /** - * Get the vmSize value. + * Get all virtual machines in a cluster are the same size. For information about available VM sizes for clusters using images from the Virtual Machines Marketplace (see Sizes for Virtual Machines (Linux) or Sizes for Virtual Machines (Windows). Batch AI service supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). * * @return the vmSize value */ @@ -130,7 +130,7 @@ public String vmSize() { } /** - * Set the vmSize value. + * Set all virtual machines in a cluster are the same size. For information about available VM sizes for clusters using images from the Virtual Machines Marketplace (see Sizes for Virtual Machines (Linux) or Sizes for Virtual Machines (Windows). Batch AI service supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). * * @param vmSize the vmSize value to set * @return the ClusterCreateParameters object itself. @@ -141,7 +141,7 @@ public ClusterCreateParameters withVmSize(String vmSize) { } /** - * Get the vmPriority value. + * Get default is dedicated. Possible values include: 'dedicated', 'lowpriority'. * * @return the vmPriority value */ @@ -150,7 +150,7 @@ public VmPriority vmPriority() { } /** - * Set the vmPriority value. + * Set default is dedicated. Possible values include: 'dedicated', 'lowpriority'. * * @param vmPriority the vmPriority value to set * @return the ClusterCreateParameters object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ClusterUpdateParameters.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ClusterUpdateParameters.java index d805cf87d11d..32a927982d77 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ClusterUpdateParameters.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ClusterUpdateParameters.java @@ -30,7 +30,7 @@ public class ClusterUpdateParameters { private ScaleSettings scaleSettings; /** - * Get the tags value. + * Get the user specified tags associated with the Cluster. * * @return the tags value */ @@ -39,7 +39,7 @@ public Map tags() { } /** - * Set the tags value. + * Set the user specified tags associated with the Cluster. * * @param tags the tags value to set * @return the ClusterUpdateParameters object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ClustersListByResourceGroupOptions.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ClustersListByResourceGroupOptions.java index 3899a1adcd0c..39798cabe75f 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ClustersListByResourceGroupOptions.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ClustersListByResourceGroupOptions.java @@ -36,7 +36,7 @@ public class ClustersListByResourceGroupOptions { private Integer maxResults; /** - * Get the filter value. + * Get an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @return the filter value */ @@ -45,7 +45,7 @@ public String filter() { } /** - * Set the filter value. + * Set an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @param filter the filter value to set * @return the ClustersListByResourceGroupOptions object itself. @@ -56,7 +56,7 @@ public ClustersListByResourceGroupOptions withFilter(String filter) { } /** - * Get the select value. + * Get an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @return the select value */ @@ -65,7 +65,7 @@ public String select() { } /** - * Set the select value. + * Set an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @param select the select value to set * @return the ClustersListByResourceGroupOptions object itself. @@ -76,7 +76,7 @@ public ClustersListByResourceGroupOptions withSelect(String select) { } /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -85,7 +85,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the ClustersListByResourceGroupOptions object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ClustersListOptions.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ClustersListOptions.java index faaf53f88e9c..7bb03f2c8413 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ClustersListOptions.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ClustersListOptions.java @@ -36,7 +36,7 @@ public class ClustersListOptions { private Integer maxResults; /** - * Get the filter value. + * Get an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @return the filter value */ @@ -45,7 +45,7 @@ public String filter() { } /** - * Set the filter value. + * Set an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @param filter the filter value to set * @return the ClustersListOptions object itself. @@ -56,7 +56,7 @@ public ClustersListOptions withFilter(String filter) { } /** - * Get the select value. + * Get an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @return the select value */ @@ -65,7 +65,7 @@ public String select() { } /** - * Set the select value. + * Set an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @param select the select value to set * @return the ClustersListOptions object itself. @@ -76,7 +76,7 @@ public ClustersListOptions withSelect(String select) { } /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -85,7 +85,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the ClustersListOptions object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/DataDisks.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/DataDisks.java index 5e88ed4ed2fa..891c849e461e 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/DataDisks.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/DataDisks.java @@ -65,7 +65,7 @@ public DataDisks withDiskSizeInGB(int diskSizeInGB) { } /** - * Get the cachingType value. + * Get possible values include: 'none', 'readonly', 'readwrite'. * * @return the cachingType value */ @@ -94,7 +94,7 @@ public DataDisks withDiskCount(int diskCount) { } /** - * Get the storageAccountType value. + * Get possible values include: 'Standard_LRS', 'Premium_LRS'. * * @return the storageAccountType value */ @@ -103,7 +103,7 @@ public StorageAccountType storageAccountType() { } /** - * Set the storageAccountType value. + * Set possible values include: 'Standard_LRS', 'Premium_LRS'. * * @param storageAccountType the storageAccountType value to set * @return the DataDisks object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/FileServer.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/FileServer.java index 1143bbc73451..e097d07452eb 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/FileServer.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/FileServer.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.batchai.v2017_09_01_preview.implementation.BatchAIManager; import org.joda.time.DateTime; diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/FileServerCreateParameters.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/FileServerCreateParameters.java index 40e945bff0cd..6d875719a67b 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/FileServerCreateParameters.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/FileServerCreateParameters.java @@ -56,7 +56,7 @@ public class FileServerCreateParameters { private ResourceId subnet; /** - * Get the location value. + * Get the region in which to create the File Server. * * @return the location value */ @@ -65,7 +65,7 @@ public String location() { } /** - * Set the location value. + * Set the region in which to create the File Server. * * @param location the location value to set * @return the FileServerCreateParameters object itself. @@ -76,7 +76,7 @@ public FileServerCreateParameters withLocation(String location) { } /** - * Get the tags value. + * Get the user specified tags associated with the File Server. * * @return the tags value */ @@ -85,7 +85,7 @@ public Map tags() { } /** - * Set the tags value. + * Set the user specified tags associated with the File Server. * * @param tags the tags value to set * @return the FileServerCreateParameters object itself. @@ -96,7 +96,7 @@ public FileServerCreateParameters withTags(Map tags) { } /** - * Get the vmSize value. + * Get for information about available VM sizes for fileservers from the Virtual Machines Marketplace, see Sizes for Virtual Machines (Linux). * * @return the vmSize value */ @@ -105,7 +105,7 @@ public String vmSize() { } /** - * Set the vmSize value. + * Set for information about available VM sizes for fileservers from the Virtual Machines Marketplace, see Sizes for Virtual Machines (Linux). * * @param vmSize the vmSize value to set * @return the FileServerCreateParameters object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/FileServerReference.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/FileServerReference.java index 9cb66874fc2d..167751a636c4 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/FileServerReference.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/FileServerReference.java @@ -65,7 +65,7 @@ public FileServerReference withFileServer(ResourceId fileServer) { } /** - * Get the sourceDirectory value. + * Get if this property is not specified, the entire File Server will be mounted. * * @return the sourceDirectory value */ @@ -74,7 +74,7 @@ public String sourceDirectory() { } /** - * Set the sourceDirectory value. + * Set if this property is not specified, the entire File Server will be mounted. * * @param sourceDirectory the sourceDirectory value to set * @return the FileServerReference object itself. @@ -85,7 +85,7 @@ public FileServerReference withSourceDirectory(String sourceDirectory) { } /** - * Get the relativeMountPath value. + * Get note that all file shares will be mounted under $AZ_BATCHAI_MOUNT_ROOT location. * * @return the relativeMountPath value */ @@ -94,7 +94,7 @@ public String relativeMountPath() { } /** - * Set the relativeMountPath value. + * Set note that all file shares will be mounted under $AZ_BATCHAI_MOUNT_ROOT location. * * @param relativeMountPath the relativeMountPath value to set * @return the FileServerReference object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/FileServersListByResourceGroupOptions.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/FileServersListByResourceGroupOptions.java index b79fc085a32f..231f57e921ab 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/FileServersListByResourceGroupOptions.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/FileServersListByResourceGroupOptions.java @@ -36,7 +36,7 @@ public class FileServersListByResourceGroupOptions { private Integer maxResults; /** - * Get the filter value. + * Get an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @return the filter value */ @@ -45,7 +45,7 @@ public String filter() { } /** - * Set the filter value. + * Set an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @param filter the filter value to set * @return the FileServersListByResourceGroupOptions object itself. @@ -56,7 +56,7 @@ public FileServersListByResourceGroupOptions withFilter(String filter) { } /** - * Get the select value. + * Get an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @return the select value */ @@ -65,7 +65,7 @@ public String select() { } /** - * Set the select value. + * Set an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @param select the select value to set * @return the FileServersListByResourceGroupOptions object itself. @@ -76,7 +76,7 @@ public FileServersListByResourceGroupOptions withSelect(String select) { } /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -85,7 +85,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the FileServersListByResourceGroupOptions object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/FileServersListOptions.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/FileServersListOptions.java index d3186e38a1fa..9324ac9cdc9f 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/FileServersListOptions.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/FileServersListOptions.java @@ -36,7 +36,7 @@ public class FileServersListOptions { private Integer maxResults; /** - * Get the filter value. + * Get an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @return the filter value */ @@ -45,7 +45,7 @@ public String filter() { } /** - * Set the filter value. + * Set an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @param filter the filter value to set * @return the FileServersListOptions object itself. @@ -56,7 +56,7 @@ public FileServersListOptions withFilter(String filter) { } /** - * Get the select value. + * Get an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @return the select value */ @@ -65,7 +65,7 @@ public String select() { } /** - * Set the select value. + * Set an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @param select the select value to set * @return the FileServersListOptions object itself. @@ -76,7 +76,7 @@ public FileServersListOptions withSelect(String select) { } /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -85,7 +85,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the FileServersListOptions object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/InputDirectory.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/InputDirectory.java index 05b2dd4726a6..885baae4da82 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/InputDirectory.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/InputDirectory.java @@ -32,7 +32,7 @@ public class InputDirectory { private String path; /** - * Get the id value. + * Get it will be available for the job as an environment variable under AZ_BATCHAI_INPUT_id. The service will also provide the following environment variable: AZ_BATCHAI_PREV_OUTPUT_Name. The value of the variable will be populated if the job is being retried after a previous failure, otherwise it will be set to nothing. * * @return the id value */ @@ -41,7 +41,7 @@ public String id() { } /** - * Set the id value. + * Set it will be available for the job as an environment variable under AZ_BATCHAI_INPUT_id. The service will also provide the following environment variable: AZ_BATCHAI_PREV_OUTPUT_Name. The value of the variable will be populated if the job is being retried after a previous failure, otherwise it will be set to nothing. * * @param id the id value to set * @return the InputDirectory object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/Job.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/Job.java index b9ab3a0827c6..d6de354407bb 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/Job.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/Job.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.batchai.v2017_09_01_preview.implementation.BatchAIManager; import java.util.List; diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobBasePropertiesConstraints.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobBasePropertiesConstraints.java index 7d3d17108e5d..c7ec92545bf4 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobBasePropertiesConstraints.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobBasePropertiesConstraints.java @@ -23,7 +23,7 @@ public class JobBasePropertiesConstraints { private Period maxWallClockTime; /** - * Get the maxWallClockTime value. + * Get default Value = 1 week. * * @return the maxWallClockTime value */ @@ -32,7 +32,7 @@ public Period maxWallClockTime() { } /** - * Set the maxWallClockTime value. + * Set default Value = 1 week. * * @param maxWallClockTime the maxWallClockTime value to set * @return the JobBasePropertiesConstraints object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobCreateParameters.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobCreateParameters.java index 95caa77143b3..6da5198dd4d0 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobCreateParameters.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobCreateParameters.java @@ -149,7 +149,7 @@ public class JobCreateParameters { private JobBasePropertiesConstraints constraints; /** - * Get the location value. + * Get the region in which to create the job. * * @return the location value */ @@ -158,7 +158,7 @@ public String location() { } /** - * Set the location value. + * Set the region in which to create the job. * * @param location the location value to set * @return the JobCreateParameters object itself. @@ -169,7 +169,7 @@ public JobCreateParameters withLocation(String location) { } /** - * Get the tags value. + * Get the user specified tags associated with the job. * * @return the tags value */ @@ -178,7 +178,7 @@ public Map tags() { } /** - * Set the tags value. + * Set the user specified tags associated with the job. * * @param tags the tags value to set * @return the JobCreateParameters object itself. @@ -189,7 +189,7 @@ public JobCreateParameters withTags(Map tags) { } /** - * Get the experimentName value. + * Get describe the experiment information of the job. * * @return the experimentName value */ @@ -198,7 +198,7 @@ public String experimentName() { } /** - * Set the experimentName value. + * Set describe the experiment information of the job. * * @param experimentName the experimentName value to set * @return the JobCreateParameters object itself. @@ -209,7 +209,7 @@ public JobCreateParameters withExperimentName(String experimentName) { } /** - * Get the priority value. + * Get priority associated with the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0. * * @return the priority value */ @@ -218,7 +218,7 @@ public Integer priority() { } /** - * Set the priority value. + * Set priority associated with the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0. * * @param priority the priority value to set * @return the JobCreateParameters object itself. @@ -249,7 +249,7 @@ public JobCreateParameters withCluster(ResourceId cluster) { } /** - * Get the nodeCount value. + * Get the job will be gang scheduled on that many compute nodes. * * @return the nodeCount value */ @@ -258,7 +258,7 @@ public int nodeCount() { } /** - * Set the nodeCount value. + * Set the job will be gang scheduled on that many compute nodes. * * @param nodeCount the nodeCount value to set * @return the JobCreateParameters object itself. @@ -269,7 +269,7 @@ public JobCreateParameters withNodeCount(int nodeCount) { } /** - * Get the containerSettings value. + * Get if the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM. * * @return the containerSettings value */ @@ -278,7 +278,7 @@ public ContainerSettings containerSettings() { } /** - * Set the containerSettings value. + * Set if the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM. * * @param containerSettings the containerSettings value to set * @return the JobCreateParameters object itself. @@ -409,7 +409,7 @@ public JobCreateParameters withCustomToolkitSettings(CustomToolkitSettings custo } /** - * Get the jobPreparation value. + * Get the specified actions will run on all the nodes that are part of the job. * * @return the jobPreparation value */ @@ -418,7 +418,7 @@ public JobPreparation jobPreparation() { } /** - * Set the jobPreparation value. + * Set the specified actions will run on all the nodes that are part of the job. * * @param jobPreparation the jobPreparation value to set * @return the JobCreateParameters object itself. @@ -429,7 +429,7 @@ public JobCreateParameters withJobPreparation(JobPreparation jobPreparation) { } /** - * Get the stdOutErrPathPrefix value. + * Get the path where the Batch AI service will upload stdout and stderror of the job. * * @return the stdOutErrPathPrefix value */ @@ -438,7 +438,7 @@ public String stdOutErrPathPrefix() { } /** - * Set the stdOutErrPathPrefix value. + * Set the path where the Batch AI service will upload stdout and stderror of the job. * * @param stdOutErrPathPrefix the stdOutErrPathPrefix value to set * @return the JobCreateParameters object itself. @@ -489,7 +489,7 @@ public JobCreateParameters withOutputDirectories(List outputDir } /** - * Get the environmentVariables value. + * Get batch AI service sets the following environment variables for all jobs: AZ_BATCHAI_INPUT_id, AZ_BATCHAI_OUTPUT_id, AZ_BATCHAI_NUM_GPUS_PER_NODE. For distributed TensorFlow jobs, following additional environment variables are set by the Batch AI Service: AZ_BATCHAI_PS_HOSTS, AZ_BATCHAI_WORKER_HOSTS. * * @return the environmentVariables value */ @@ -498,7 +498,7 @@ public List environmentVariables() { } /** - * Set the environmentVariables value. + * Set batch AI service sets the following environment variables for all jobs: AZ_BATCHAI_INPUT_id, AZ_BATCHAI_OUTPUT_id, AZ_BATCHAI_NUM_GPUS_PER_NODE. For distributed TensorFlow jobs, following additional environment variables are set by the Batch AI Service: AZ_BATCHAI_PS_HOSTS, AZ_BATCHAI_WORKER_HOSTS. * * @param environmentVariables the environmentVariables value to set * @return the JobCreateParameters object itself. @@ -509,7 +509,7 @@ public JobCreateParameters withEnvironmentVariables(List env } /** - * Get the constraints value. + * Get constraints associated with the Job. * * @return the constraints value */ @@ -518,7 +518,7 @@ public JobBasePropertiesConstraints constraints() { } /** - * Set the constraints value. + * Set constraints associated with the Job. * * @param constraints the constraints value to set * @return the JobCreateParameters object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobPreparation.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobPreparation.java index 636430ac749d..48dcbb79dd07 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobPreparation.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobPreparation.java @@ -24,7 +24,7 @@ public class JobPreparation { private String commandLine; /** - * Get the commandLine value. + * Get if containerSettings is specified on the job, this commandLine will be executed in the same container as job. Otherwise it will be executed on the node. * * @return the commandLine value */ @@ -33,7 +33,7 @@ public String commandLine() { } /** - * Set the commandLine value. + * Set if containerSettings is specified on the job, this commandLine will be executed in the same container as job. Otherwise it will be executed on the node. * * @param commandLine the commandLine value to set * @return the JobPreparation object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobPropertiesConstraints.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobPropertiesConstraints.java index 183657f965e6..866e1fd36ffa 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobPropertiesConstraints.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobPropertiesConstraints.java @@ -23,7 +23,7 @@ public class JobPropertiesConstraints { private Period maxWallClockTime; /** - * Get the maxWallClockTime value. + * Get default Value = 1 week. * * @return the maxWallClockTime value */ @@ -32,7 +32,7 @@ public Period maxWallClockTime() { } /** - * Set the maxWallClockTime value. + * Set default Value = 1 week. * * @param maxWallClockTime the maxWallClockTime value to set * @return the JobPropertiesConstraints object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobPropertiesExecutionInfo.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobPropertiesExecutionInfo.java index 2a7cecf5a348..af9a0381ed6a 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobPropertiesExecutionInfo.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobPropertiesExecutionInfo.java @@ -49,7 +49,7 @@ public class JobPropertiesExecutionInfo { private List errors; /** - * Get the startTime value. + * Get 'Running' corresponds to the running state. If the job has been restarted or retried, this is the most recent time at which the job started running. This property is present only for job that are in the running or completed state. * * @return the startTime value */ @@ -58,7 +58,7 @@ public DateTime startTime() { } /** - * Set the startTime value. + * Set 'Running' corresponds to the running state. If the job has been restarted or retried, this is the most recent time at which the job started running. This property is present only for job that are in the running or completed state. * * @param startTime the startTime value to set * @return the JobPropertiesExecutionInfo object itself. @@ -69,7 +69,7 @@ public JobPropertiesExecutionInfo withStartTime(DateTime startTime) { } /** - * Get the endTime value. + * Get this property is only returned if the job is in completed state. * * @return the endTime value */ @@ -78,7 +78,7 @@ public DateTime endTime() { } /** - * Set the endTime value. + * Set this property is only returned if the job is in completed state. * * @param endTime the endTime value to set * @return the JobPropertiesExecutionInfo object itself. @@ -89,7 +89,7 @@ public JobPropertiesExecutionInfo withEndTime(DateTime endTime) { } /** - * Get the exitCode value. + * Get this property is only returned if the job is in completed state. * * @return the exitCode value */ @@ -98,7 +98,7 @@ public Integer exitCode() { } /** - * Set the exitCode value. + * Set this property is only returned if the job is in completed state. * * @param exitCode the exitCode value to set * @return the JobPropertiesExecutionInfo object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobsListByResourceGroupOptions.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobsListByResourceGroupOptions.java index 5f65d2a5b0c5..59093b9d8db4 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobsListByResourceGroupOptions.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobsListByResourceGroupOptions.java @@ -36,7 +36,7 @@ public class JobsListByResourceGroupOptions { private Integer maxResults; /** - * Get the filter value. + * Get an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @return the filter value */ @@ -45,7 +45,7 @@ public String filter() { } /** - * Set the filter value. + * Set an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @param filter the filter value to set * @return the JobsListByResourceGroupOptions object itself. @@ -56,7 +56,7 @@ public JobsListByResourceGroupOptions withFilter(String filter) { } /** - * Get the select value. + * Get an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @return the select value */ @@ -65,7 +65,7 @@ public String select() { } /** - * Set the select value. + * Set an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @param select the select value to set * @return the JobsListByResourceGroupOptions object itself. @@ -76,7 +76,7 @@ public JobsListByResourceGroupOptions withSelect(String select) { } /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -85,7 +85,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the JobsListByResourceGroupOptions object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobsListOptions.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobsListOptions.java index 588969ad373b..91cbfcbc4e2f 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobsListOptions.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobsListOptions.java @@ -36,7 +36,7 @@ public class JobsListOptions { private Integer maxResults; /** - * Get the filter value. + * Get an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @return the filter value */ @@ -45,7 +45,7 @@ public String filter() { } /** - * Set the filter value. + * Set an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @param filter the filter value to set * @return the JobsListOptions object itself. @@ -56,7 +56,7 @@ public JobsListOptions withFilter(String filter) { } /** - * Get the select value. + * Get an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @return the select value */ @@ -65,7 +65,7 @@ public String select() { } /** - * Set the select value. + * Set an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @param select the select value to set * @return the JobsListOptions object itself. @@ -76,7 +76,7 @@ public JobsListOptions withSelect(String select) { } /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -85,7 +85,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the JobsListOptions object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobsListOutputFilesOptions.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobsListOutputFilesOptions.java index 1dc5e5702ce0..cf60f0de3aa9 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobsListOutputFilesOptions.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/JobsListOutputFilesOptions.java @@ -35,7 +35,7 @@ public class JobsListOutputFilesOptions { private Integer maxResults; /** - * Get the outputdirectoryid value. + * Get id of the job output directory. This is the OutputDirectory-->id parameter that is given by the user during Create Job. * * @return the outputdirectoryid value */ @@ -44,7 +44,7 @@ public String outputdirectoryid() { } /** - * Set the outputdirectoryid value. + * Set id of the job output directory. This is the OutputDirectory-->id parameter that is given by the user during Create Job. * * @param outputdirectoryid the outputdirectoryid value to set * @return the JobsListOutputFilesOptions object itself. @@ -55,7 +55,7 @@ public JobsListOutputFilesOptions withOutputdirectoryid(String outputdirectoryid } /** - * Get the linkexpiryinminutes value. + * Get the number of minutes after which the download link will expire. * * @return the linkexpiryinminutes value */ @@ -64,7 +64,7 @@ public Integer linkexpiryinminutes() { } /** - * Set the linkexpiryinminutes value. + * Set the number of minutes after which the download link will expire. * * @param linkexpiryinminutes the linkexpiryinminutes value to set * @return the JobsListOutputFilesOptions object itself. @@ -75,7 +75,7 @@ public JobsListOutputFilesOptions withLinkexpiryinminutes(Integer linkexpiryinmi } /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -84,7 +84,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the JobsListOutputFilesOptions object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ManualScaleSettings.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ManualScaleSettings.java index 53da609268f1..638c7bf06a0c 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ManualScaleSettings.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ManualScaleSettings.java @@ -32,7 +32,7 @@ public class ManualScaleSettings { private DeallocationOption nodeDeallocationOption; /** - * Get the targetNodeCount value. + * Get default is 0. If autoScaleSettings are not specified, then the Cluster starts with this target. * * @return the targetNodeCount value */ @@ -41,7 +41,7 @@ public int targetNodeCount() { } /** - * Set the targetNodeCount value. + * Set default is 0. If autoScaleSettings are not specified, then the Cluster starts with this target. * * @param targetNodeCount the targetNodeCount value to set * @return the ManualScaleSettings object itself. @@ -52,7 +52,7 @@ public ManualScaleSettings withTargetNodeCount(int targetNodeCount) { } /** - * Get the nodeDeallocationOption value. + * Get the default value is requeue. Possible values include: 'requeue', 'terminate', 'waitforjobcompletion', 'unknown'. * * @return the nodeDeallocationOption value */ @@ -61,7 +61,7 @@ public DeallocationOption nodeDeallocationOption() { } /** - * Set the nodeDeallocationOption value. + * Set the default value is requeue. Possible values include: 'requeue', 'terminate', 'waitforjobcompletion', 'unknown'. * * @param nodeDeallocationOption the nodeDeallocationOption value to set * @return the ManualScaleSettings object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/MountSettings.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/MountSettings.java index f6cc16af25ac..59ae02d5ef13 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/MountSettings.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/MountSettings.java @@ -101,7 +101,7 @@ public MountSettings withFileServerInternalIP(String fileServerInternalIP) { } /** - * Get the fileServerType value. + * Get possible values include: 'nfs', 'glusterfs'. * * @return the fileServerType value */ @@ -110,7 +110,7 @@ public FileServerType fileServerType() { } /** - * Set the fileServerType value. + * Set possible values include: 'nfs', 'glusterfs'. * * @param fileServerType the fileServerType value to set * @return the MountSettings object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/MountVolumes.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/MountVolumes.java index aef9e5aaa012..7ad477d4af3f 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/MountVolumes.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/MountVolumes.java @@ -46,7 +46,7 @@ public class MountVolumes { private List unmanagedFileSystems; /** - * Get the azureFileShares value. + * Get references to Azure File Shares that are to be mounted to the cluster nodes. * * @return the azureFileShares value */ @@ -55,7 +55,7 @@ public List azureFileShares() { } /** - * Set the azureFileShares value. + * Set references to Azure File Shares that are to be mounted to the cluster nodes. * * @param azureFileShares the azureFileShares value to set * @return the MountVolumes object itself. @@ -66,7 +66,7 @@ public MountVolumes withAzureFileShares(List azureFileS } /** - * Get the azureBlobFileSystems value. + * Get references to Azure Blob FUSE that are to be mounted to the cluster nodes. * * @return the azureBlobFileSystems value */ @@ -75,7 +75,7 @@ public List azureBlobFileSystems() { } /** - * Set the azureBlobFileSystems value. + * Set references to Azure Blob FUSE that are to be mounted to the cluster nodes. * * @param azureBlobFileSystems the azureBlobFileSystems value to set * @return the MountVolumes object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/OperationDisplay.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/OperationDisplay.java index 168d44e4f788..fce0080a1a4f 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/OperationDisplay.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/OperationDisplay.java @@ -60,7 +60,7 @@ public OperationDisplay withProvider(String provider) { } /** - * Get the operation value. + * Get for example: read, write, delete, or listKeys/action. * * @return the operation value */ @@ -69,7 +69,7 @@ public String operation() { } /** - * Set the operation value. + * Set for example: read, write, delete, or listKeys/action. * * @param operation the operation value to set * @return the OperationDisplay object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/OutputDirectory.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/OutputDirectory.java index 8a0575d386dc..8e64f6d5cf54 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/OutputDirectory.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/OutputDirectory.java @@ -56,7 +56,7 @@ public class OutputDirectory { private Boolean createNew; /** - * Get the id value. + * Get it will be available for the job as an environment variable under AZ_BATCHAI_OUTPUT_id. * * @return the id value */ @@ -65,7 +65,7 @@ public String id() { } /** - * Set the id value. + * Set it will be available for the job as an environment variable under AZ_BATCHAI_OUTPUT_id. * * @param id the id value to set * @return the OutputDirectory object itself. @@ -76,7 +76,7 @@ public OutputDirectory withId(String id) { } /** - * Get the pathPrefix value. + * Get nOTE: This is an absolute path to prefix. E.g. $AZ_BATCHAI_MOUNT_ROOT/MyNFS/MyLogs. * * @return the pathPrefix value */ @@ -85,7 +85,7 @@ public String pathPrefix() { } /** - * Set the pathPrefix value. + * Set nOTE: This is an absolute path to prefix. E.g. $AZ_BATCHAI_MOUNT_ROOT/MyNFS/MyLogs. * * @param pathPrefix the pathPrefix value to set * @return the OutputDirectory object itself. @@ -96,7 +96,7 @@ public OutputDirectory withPathPrefix(String pathPrefix) { } /** - * Get the pathSuffix value. + * Get the suffix path where the output directory will be created. * * @return the pathSuffix value */ @@ -105,7 +105,7 @@ public String pathSuffix() { } /** - * Set the pathSuffix value. + * Set the suffix path where the output directory will be created. * * @param pathSuffix the pathSuffix value to set * @return the OutputDirectory object itself. @@ -116,7 +116,7 @@ public OutputDirectory withPathSuffix(String pathSuffix) { } /** - * Get the type value. + * Get default value is Custom. The possible values are Model, Logs, Summary, and Custom. Users can use multiple enums for a single directory. Eg. outPutType='Model,Logs, Summary'. Possible values include: 'model', 'logs', 'summary', 'custom'. * * @return the type value */ @@ -125,7 +125,7 @@ public OutputType type() { } /** - * Set the type value. + * Set default value is Custom. The possible values are Model, Logs, Summary, and Custom. Users can use multiple enums for a single directory. Eg. outPutType='Model,Logs, Summary'. Possible values include: 'model', 'logs', 'summary', 'custom'. * * @param type the type value to set * @return the OutputDirectory object itself. @@ -136,7 +136,7 @@ public OutputDirectory withType(OutputType type) { } /** - * Get the createNew value. + * Get default is true. If false, then the directory is not created and can be any directory path that the user specifies. * * @return the createNew value */ @@ -145,7 +145,7 @@ public Boolean createNew() { } /** - * Set the createNew value. + * Set default is true. If false, then the directory is not created and can be any directory path that the user specifies. * * @param createNew the createNew value to set * @return the OutputDirectory object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/PrivateRegistryCredentials.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/PrivateRegistryCredentials.java index 8ac1f242c00e..ca3b9054d578 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/PrivateRegistryCredentials.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/PrivateRegistryCredentials.java @@ -57,7 +57,7 @@ public PrivateRegistryCredentials withUsername(String username) { } /** - * Get the password value. + * Get one of password or passwordSecretReference must be specified. * * @return the password value */ @@ -66,7 +66,7 @@ public String password() { } /** - * Set the password value. + * Set one of password or passwordSecretReference must be specified. * * @param password the password value to set * @return the PrivateRegistryCredentials object itself. @@ -77,7 +77,7 @@ public PrivateRegistryCredentials withPassword(String password) { } /** - * Get the passwordSecretReference value. + * Get users can store their secrets in Azure KeyVault and pass it to the Batch AI Service to integrate with KeyVault. One of password or passwordSecretReference must be specified. * * @return the passwordSecretReference value */ @@ -86,7 +86,7 @@ public KeyVaultSecretReference passwordSecretReference() { } /** - * Set the passwordSecretReference value. + * Set users can store their secrets in Azure KeyVault and pass it to the Batch AI Service to integrate with KeyVault. One of password or passwordSecretReference must be specified. * * @param passwordSecretReference the passwordSecretReference value to set * @return the PrivateRegistryCredentials object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ResourceId.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ResourceId.java index ae46bc34f573..ed14335482e0 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ResourceId.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/ResourceId.java @@ -22,7 +22,7 @@ public class ResourceId { private String id; /** - * Get the id value. + * Get the ID of the resource. * * @return the id value */ @@ -31,7 +31,7 @@ public String id() { } /** - * Set the id value. + * Set the ID of the resource. * * @param id the id value to set * @return the ResourceId object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/SetupTask.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/SetupTask.java index 702daf40b637..eacda29f6f79 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/SetupTask.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/SetupTask.java @@ -103,7 +103,7 @@ public SetupTask withRunElevated(Boolean runElevated) { } /** - * Get the stdOutErrPathPrefix value. + * Get the path where the Batch AI service will upload the stdout and stderror of setup task. * * @return the stdOutErrPathPrefix value */ @@ -112,7 +112,7 @@ public String stdOutErrPathPrefix() { } /** - * Set the stdOutErrPathPrefix value. + * Set the path where the Batch AI service will upload the stdout and stderror of setup task. * * @param stdOutErrPathPrefix the stdOutErrPathPrefix value to set * @return the SetupTask object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/SshConfiguration.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/SshConfiguration.java index 2b3d32a2951b..80acc7291abd 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/SshConfiguration.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/SshConfiguration.java @@ -30,7 +30,7 @@ public class SshConfiguration { private UserAccountSettings userAccountSettings; /** - * Get the publicIPsToAllow value. + * Get default value is '*' can be used to match all source IPs. Maximum number of publicIPs that can be specified are 400. * * @return the publicIPsToAllow value */ @@ -39,7 +39,7 @@ public List publicIPsToAllow() { } /** - * Set the publicIPsToAllow value. + * Set default value is '*' can be used to match all source IPs. Maximum number of publicIPs that can be specified are 400. * * @param publicIPsToAllow the publicIPsToAllow value to set * @return the SshConfiguration object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/TensorFlowSettings.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/TensorFlowSettings.java index 73e318f07c6a..d542f4ca1288 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/TensorFlowSettings.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/TensorFlowSettings.java @@ -127,7 +127,7 @@ public TensorFlowSettings withMasterCommandLineArgs(String masterCommandLineArgs } /** - * Get the workerCommandLineArgs value. + * Get this property is optional for single machine training. * * @return the workerCommandLineArgs value */ @@ -136,7 +136,7 @@ public String workerCommandLineArgs() { } /** - * Set the workerCommandLineArgs value. + * Set this property is optional for single machine training. * * @param workerCommandLineArgs the workerCommandLineArgs value to set * @return the TensorFlowSettings object itself. @@ -147,7 +147,7 @@ public TensorFlowSettings withWorkerCommandLineArgs(String workerCommandLineArgs } /** - * Get the parameterServerCommandLineArgs value. + * Get this property is optional for single machine training. * * @return the parameterServerCommandLineArgs value */ @@ -156,7 +156,7 @@ public String parameterServerCommandLineArgs() { } /** - * Set the parameterServerCommandLineArgs value. + * Set this property is optional for single machine training. * * @param parameterServerCommandLineArgs the parameterServerCommandLineArgs value to set * @return the TensorFlowSettings object itself. @@ -167,7 +167,7 @@ public TensorFlowSettings withParameterServerCommandLineArgs(String parameterSer } /** - * Get the workerCount value. + * Get if specified, the value must be less than or equal to (nodeCount * numberOfGPUs per VM). If not specified, the default value is equal to nodeCount. This property can be specified only for distributed TensorFlow training. * * @return the workerCount value */ @@ -176,7 +176,7 @@ public Integer workerCount() { } /** - * Set the workerCount value. + * Set if specified, the value must be less than or equal to (nodeCount * numberOfGPUs per VM). If not specified, the default value is equal to nodeCount. This property can be specified only for distributed TensorFlow training. * * @param workerCount the workerCount value to set * @return the TensorFlowSettings object itself. @@ -187,7 +187,7 @@ public TensorFlowSettings withWorkerCount(Integer workerCount) { } /** - * Get the parameterServerCount value. + * Get if specified, the value must be less than or equal to nodeCount. If not specified, the default value is equal to 1 for distributed TensorFlow training (This property is not applicable for single machine training). This property can be specified only for distributed TensorFlow training. * * @return the parameterServerCount value */ @@ -196,7 +196,7 @@ public Integer parameterServerCount() { } /** - * Set the parameterServerCount value. + * Set if specified, the value must be less than or equal to nodeCount. If not specified, the default value is equal to 1 for distributed TensorFlow training (This property is not applicable for single machine training). This property can be specified only for distributed TensorFlow training. * * @param parameterServerCount the parameterServerCount value to set * @return the TensorFlowSettings object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/UnmanagedFileSystemReference.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/UnmanagedFileSystemReference.java index 8776719666a2..cf2a505a1365 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/UnmanagedFileSystemReference.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/UnmanagedFileSystemReference.java @@ -50,7 +50,7 @@ public UnmanagedFileSystemReference withMountCommand(String mountCommand) { } /** - * Get the relativeMountPath value. + * Get note that all file shares will be mounted under $AZ_BATCHAI_MOUNT_ROOT location. * * @return the relativeMountPath value */ @@ -59,7 +59,7 @@ public String relativeMountPath() { } /** - * Set the relativeMountPath value. + * Set note that all file shares will be mounted under $AZ_BATCHAI_MOUNT_ROOT location. * * @param relativeMountPath the relativeMountPath value to set * @return the UnmanagedFileSystemReference object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/ClusterInner.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/ClusterInner.java index 771f79b0e879..eaf181fd04b6 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/ClusterInner.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/ClusterInner.java @@ -148,7 +148,7 @@ public class ClusterInner extends Resource { private NodeStateCounts nodeStateCounts; /** - * Get the vmSize value. + * Get all virtual machines in a cluster are the same size. For information about available VM sizes for clusters using images from the Virtual Machines Marketplace (see Sizes for Virtual Machines (Linux) or Sizes for Virtual Machines (Windows). Batch AI service supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). * * @return the vmSize value */ @@ -157,7 +157,7 @@ public String vmSize() { } /** - * Set the vmSize value. + * Set all virtual machines in a cluster are the same size. For information about available VM sizes for clusters using images from the Virtual Machines Marketplace (see Sizes for Virtual Machines (Linux) or Sizes for Virtual Machines (Windows). Batch AI service supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). * * @param vmSize the vmSize value to set * @return the ClusterInner object itself. @@ -168,7 +168,7 @@ public ClusterInner withVmSize(String vmSize) { } /** - * Get the vmPriority value. + * Get the default value is dedicated. The node can get preempted while the task is running if lowpriority is choosen. This is best suited if the workload is checkpointing and can be restarted. Possible values include: 'dedicated', 'lowpriority'. * * @return the vmPriority value */ @@ -177,7 +177,7 @@ public VmPriority vmPriority() { } /** - * Set the vmPriority value. + * Set the default value is dedicated. The node can get preempted while the task is running if lowpriority is choosen. This is best suited if the workload is checkpointing and can be restarted. Possible values include: 'dedicated', 'lowpriority'. * * @param vmPriority the vmPriority value to set * @return the ClusterInner object itself. @@ -297,7 +297,7 @@ public DateTime creationTime() { } /** - * Get the provisioningState value. + * Get possible value are: creating - Specifies that the cluster is being created. succeeded - Specifies that the cluster has been created successfully. failed - Specifies that the cluster creation has failed. deleting - Specifies that the cluster is being deleted. Possible values include: 'creating', 'succeeded', 'failed', 'deleting'. * * @return the provisioningState value */ @@ -315,7 +315,7 @@ public DateTime provisioningStateTransitionTime() { } /** - * Get the allocationState value. + * Get possible values are: steady and resizing. steady state indicates that the cluster is not resizing. There are no changes to the number of compute nodes in the cluster in progress. A cluster enters this state when it is created and when no operations are being performed on the cluster to change the number of compute nodes. resizing state indicates that the cluster is resizing; that is, compute nodes are being added to or removed from the cluster. Possible values include: 'steady', 'resizing'. * * @return the allocationState value */ @@ -333,7 +333,7 @@ public DateTime allocationStateTransitionTime() { } /** - * Get the errors value. + * Get this element contains all the errors encountered by various compute nodes during node setup. * * @return the errors value */ @@ -342,7 +342,7 @@ public List errors() { } /** - * Set the errors value. + * Set this element contains all the errors encountered by various compute nodes during node setup. * * @param errors the errors value to set * @return the ClusterInner object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/ClustersImpl.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/ClustersImpl.java index b08aa5836f97..4b9c25939b8c 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/ClustersImpl.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/ClustersImpl.java @@ -79,41 +79,22 @@ public PagedList listByResourceGroup(String resourceGroupName) { return this.wrapList(client.listByResourceGroup(resourceGroupName)); } - private Observable> listByResourceGroupNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - ClustersInner client = this.inner(); - return client.listByResourceGroupNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listByResourceGroupNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listByResourceGroupAsync(String resourceGroupName) { ClustersInner client = this.inner(); return client.listByResourceGroupAsync(resourceGroupName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listByResourceGroupNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Cluster call(ClusterInner inner) { return wrapModel(inner); } - }); + }); } @Override @@ -122,41 +103,22 @@ public PagedList list() { return this.wrapList(client.list()); } - private Observable> listNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - ClustersInner client = this.inner(); - return client.listNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listAsync() { ClustersInner client = this.inner(); return client.listAsync() - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Cluster call(ClusterInner inner) { return wrapModel(inner); } - }); + }); } @Override @@ -164,41 +126,22 @@ public ClusterImpl define(String name) { return wrapModel(name); } - private Observable> listRemoteLoginInformationNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - ClustersInner client = this.inner(); - return client.listRemoteLoginInformationNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listRemoteLoginInformationNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listRemoteLoginInformationAsync(final String resourceGroupName, final String clusterName) { ClustersInner client = this.inner(); return client.listRemoteLoginInformationAsync(resourceGroupName, clusterName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listRemoteLoginInformationNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public RemoteLoginInformation call(RemoteLoginInformationInner inner) { return new RemoteLoginInformationImpl(inner, manager()); } - }); + }); } @Override diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/FileInner.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/FileInner.java index 97c460a93411..f27ce83c5dbf 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/FileInner.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/FileInner.java @@ -49,7 +49,7 @@ public class FileInner { private Long contentLength; /** - * Get the name value. + * Get file name. * * @return the name value */ @@ -58,7 +58,7 @@ public String name() { } /** - * Set the name value. + * Set file name. * * @param name the name value to set * @return the FileInner object itself. @@ -69,7 +69,7 @@ public FileInner withName(String name) { } /** - * Get the downloadUrl value. + * Get this will be returned only if the model has been archived. During job run, this won't be returned and customers can use SSH tunneling to download. Users can use Get Remote Login Information API to get the IP address and port information of all the compute nodes running the job. * * @return the downloadUrl value */ @@ -78,7 +78,7 @@ public String downloadUrl() { } /** - * Set the downloadUrl value. + * Set this will be returned only if the model has been archived. During job run, this won't be returned and customers can use SSH tunneling to download. Users can use Get Remote Login Information API to get the IP address and port information of all the compute nodes running the job. * * @param downloadUrl the downloadUrl value to set * @return the FileInner object itself. @@ -89,7 +89,7 @@ public FileInner withDownloadUrl(String downloadUrl) { } /** - * Get the lastModified value. + * Get the time at which the file was last modified. * * @return the lastModified value */ @@ -98,7 +98,7 @@ public DateTime lastModified() { } /** - * Set the lastModified value. + * Set the time at which the file was last modified. * * @param lastModified the lastModified value to set * @return the FileInner object itself. @@ -109,7 +109,7 @@ public FileInner withLastModified(DateTime lastModified) { } /** - * Get the contentLength value. + * Get the file size. * * @return the contentLength value */ @@ -118,7 +118,7 @@ public Long contentLength() { } /** - * Set the contentLength value. + * Set the file size. * * @param contentLength the contentLength value to set * @return the FileInner object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/FileServerInner.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/FileServerInner.java index 1e03cd85902c..cab826c45cd8 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/FileServerInner.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/FileServerInner.java @@ -84,7 +84,7 @@ public class FileServerInner extends Resource { private FileServerProvisioningState provisioningState; /** - * Get the vmSize value. + * Get for information about available VM sizes for File Server from the Virtual Machines Marketplace, see Sizes for Virtual Machines (Linux). * * @return the vmSize value */ @@ -93,7 +93,7 @@ public String vmSize() { } /** - * Set the vmSize value. + * Set for information about available VM sizes for File Server from the Virtual Machines Marketplace, see Sizes for Virtual Machines (Linux). * * @param vmSize the vmSize value to set * @return the FileServerInner object itself. @@ -191,7 +191,7 @@ public DateTime creationTime() { } /** - * Get the provisioningState value. + * Get possible values: creating - The File Server is getting created. updating - The File Server creation has been accepted and it is getting updated. deleting - The user has requested that the File Server be deleted, and it is in the process of being deleted. failed - The File Server creation has failed with the specified errorCode. Details about the error code are specified in the message field. succeeded - The File Server creation has succeeded. Possible values include: 'creating', 'updating', 'deleting', 'succeeded', 'failed'. * * @return the provisioningState value */ diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/FileServersImpl.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/FileServersImpl.java index 051e3b98a151..7609fde4178b 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/FileServersImpl.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/FileServersImpl.java @@ -78,41 +78,22 @@ public PagedList listByResourceGroup(String resourceGroupName) { return this.wrapList(client.listByResourceGroup(resourceGroupName)); } - private Observable> listByResourceGroupNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - FileServersInner client = this.inner(); - return client.listByResourceGroupNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listByResourceGroupNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listByResourceGroupAsync(String resourceGroupName) { FileServersInner client = this.inner(); return client.listByResourceGroupAsync(resourceGroupName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listByResourceGroupNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public FileServer call(FileServerInner inner) { return wrapModel(inner); } - }); + }); } @Override @@ -121,41 +102,22 @@ public PagedList list() { return this.wrapList(client.list()); } - private Observable> listNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - FileServersInner client = this.inner(); - return client.listNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listAsync() { FileServersInner client = this.inner(); return client.listAsync() - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public FileServer call(FileServerInner inner) { return wrapModel(inner); } - }); + }); } @Override diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/JobInner.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/JobInner.java index 8313d345caae..587139872796 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/JobInner.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/JobInner.java @@ -213,7 +213,7 @@ public class JobInner extends Resource { private JobPropertiesExecutionInfo executionInfo; /** - * Get the experimentName value. + * Get describe the experiment information of the job. * * @return the experimentName value */ @@ -222,7 +222,7 @@ public String experimentName() { } /** - * Set the experimentName value. + * Set describe the experiment information of the job. * * @param experimentName the experimentName value to set * @return the JobInner object itself. @@ -233,7 +233,7 @@ public JobInner withExperimentName(String experimentName) { } /** - * Get the priority value. + * Get priority associated with the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0. * * @return the priority value */ @@ -242,7 +242,7 @@ public Integer priority() { } /** - * Set the priority value. + * Set priority associated with the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0. * * @param priority the priority value to set * @return the JobInner object itself. @@ -273,7 +273,7 @@ public JobInner withCluster(ResourceId cluster) { } /** - * Get the nodeCount value. + * Get the job will be gang scheduled on that many compute nodes. * * @return the nodeCount value */ @@ -282,7 +282,7 @@ public Integer nodeCount() { } /** - * Set the nodeCount value. + * Set the job will be gang scheduled on that many compute nodes. * * @param nodeCount the nodeCount value to set * @return the JobInner object itself. @@ -293,7 +293,7 @@ public JobInner withNodeCount(Integer nodeCount) { } /** - * Get the containerSettings value. + * Get if the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM. * * @return the containerSettings value */ @@ -302,7 +302,7 @@ public ContainerSettings containerSettings() { } /** - * Set the containerSettings value. + * Set if the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM. * * @param containerSettings the containerSettings value to set * @return the JobInner object itself. @@ -313,7 +313,7 @@ public JobInner withContainerSettings(ContainerSettings containerSettings) { } /** - * Get the toolType value. + * Get possible values are: cntk, tensorflow, caffe, caffe2, chainer, custom. Possible values include: 'cntk', 'tensorflow', 'caffe', 'caffe2', 'chainer', 'custom'. * * @return the toolType value */ @@ -322,7 +322,7 @@ public ToolType toolType() { } /** - * Set the toolType value. + * Set possible values are: cntk, tensorflow, caffe, caffe2, chainer, custom. Possible values include: 'cntk', 'tensorflow', 'caffe', 'caffe2', 'chainer', 'custom'. * * @param toolType the toolType value to set * @return the JobInner object itself. @@ -433,7 +433,7 @@ public JobInner withCustomToolkitSettings(CustomToolkitSettings customToolkitSet } /** - * Get the jobPreparation value. + * Get the specified actions will run on all the nodes that are part of the job. * * @return the jobPreparation value */ @@ -442,7 +442,7 @@ public JobPreparation jobPreparation() { } /** - * Set the jobPreparation value. + * Set the specified actions will run on all the nodes that are part of the job. * * @param jobPreparation the jobPreparation value to set * @return the JobInner object itself. @@ -453,7 +453,7 @@ public JobInner withJobPreparation(JobPreparation jobPreparation) { } /** - * Get the stdOutErrPathPrefix value. + * Get the path where the Batch AI service will upload stdout and stderror of the job. * * @return the stdOutErrPathPrefix value */ @@ -462,7 +462,7 @@ public String stdOutErrPathPrefix() { } /** - * Set the stdOutErrPathPrefix value. + * Set the path where the Batch AI service will upload stdout and stderror of the job. * * @param stdOutErrPathPrefix the stdOutErrPathPrefix value to set * @return the JobInner object itself. @@ -513,7 +513,7 @@ public JobInner withOutputDirectories(List outputDirectories) { } /** - * Get the environmentVariables value. + * Get batch AI services sets the following environment variables for all jobs: AZ_BATCHAI_INPUT_id, AZ_BATCHAI_OUTPUT_id, AZ_BATCHAI_NUM_GPUS_PER_NODE, For distributed TensorFlow jobs, following additional environment variables are set by the Batch AI Service: AZ_BATCHAI_PS_HOSTS, AZ_BATCHAI_WORKER_HOSTS. * * @return the environmentVariables value */ @@ -522,7 +522,7 @@ public List environmentVariables() { } /** - * Set the environmentVariables value. + * Set batch AI services sets the following environment variables for all jobs: AZ_BATCHAI_INPUT_id, AZ_BATCHAI_OUTPUT_id, AZ_BATCHAI_NUM_GPUS_PER_NODE, For distributed TensorFlow jobs, following additional environment variables are set by the Batch AI Service: AZ_BATCHAI_PS_HOSTS, AZ_BATCHAI_WORKER_HOSTS. * * @param environmentVariables the environmentVariables value to set * @return the JobInner object itself. @@ -533,7 +533,7 @@ public JobInner withEnvironmentVariables(List environmentVar } /** - * Get the constraints value. + * Get constraints associated with the Job. * * @return the constraints value */ @@ -542,7 +542,7 @@ public JobPropertiesConstraints constraints() { } /** - * Set the constraints value. + * Set constraints associated with the Job. * * @param constraints the constraints value to set * @return the JobInner object itself. @@ -553,7 +553,7 @@ public JobInner withConstraints(JobPropertiesConstraints constraints) { } /** - * Get the creationTime value. + * Get the creation time of the job. * * @return the creationTime value */ @@ -562,7 +562,7 @@ public DateTime creationTime() { } /** - * Get the provisioningState value. + * Get the provisioned state of the Batch AI job. Possible values include: 'creating', 'succeeded', 'failed', 'deleting'. * * @return the provisioningState value */ @@ -571,7 +571,7 @@ public ProvisioningState provisioningState() { } /** - * Get the provisioningStateTransitionTime value. + * Get the time at which the job entered its current provisioning state. * * @return the provisioningStateTransitionTime value */ @@ -580,7 +580,7 @@ public DateTime provisioningStateTransitionTime() { } /** - * Get the executionState value. + * Get the current state of the job. Possible values are: queued - The job is queued and able to run. A job enters this state when it is created, or when it is awaiting a retry after a failed run. running - The job is running on a compute cluster. This includes job-level preparation such as downloading resource files or set up container specified on the job - it does not necessarily mean that the job command line has started executing. terminating - The job is terminated by the user, the terminate operation is in progress. succeeded - The job has completed running succesfully and exited with exit code 0. failed - The job has finished unsuccessfully (failed with a non-zero exit code) and has exhausted its retry limit. A job is also marked as failed if an error occurred launching the job. Possible values include: 'queued', 'running', 'terminating', 'succeeded', 'failed'. * * @return the executionState value */ @@ -589,7 +589,7 @@ public ExecutionState executionState() { } /** - * Set the executionState value. + * Set the current state of the job. Possible values are: queued - The job is queued and able to run. A job enters this state when it is created, or when it is awaiting a retry after a failed run. running - The job is running on a compute cluster. This includes job-level preparation such as downloading resource files or set up container specified on the job - it does not necessarily mean that the job command line has started executing. terminating - The job is terminated by the user, the terminate operation is in progress. succeeded - The job has completed running succesfully and exited with exit code 0. failed - The job has finished unsuccessfully (failed with a non-zero exit code) and has exhausted its retry limit. A job is also marked as failed if an error occurred launching the job. Possible values include: 'queued', 'running', 'terminating', 'succeeded', 'failed'. * * @param executionState the executionState value to set * @return the JobInner object itself. @@ -600,7 +600,7 @@ public JobInner withExecutionState(ExecutionState executionState) { } /** - * Get the executionStateTransitionTime value. + * Get the time at which the job entered its current execution state. * * @return the executionStateTransitionTime value */ @@ -609,7 +609,7 @@ public DateTime executionStateTransitionTime() { } /** - * Get the executionInfo value. + * Get contains information about the execution of a job in the Azure Batch service. * * @return the executionInfo value */ @@ -618,7 +618,7 @@ public JobPropertiesExecutionInfo executionInfo() { } /** - * Set the executionInfo value. + * Set contains information about the execution of a job in the Azure Batch service. * * @param executionInfo the executionInfo value to set * @return the JobInner object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/JobsImpl.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/JobsImpl.java index d63f6a301651..c6e63a2caddb 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/JobsImpl.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/JobsImpl.java @@ -81,41 +81,22 @@ public PagedList listByResourceGroup(String resourceGroupName) { return this.wrapList(client.listByResourceGroup(resourceGroupName)); } - private Observable> listByResourceGroupNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - JobsInner client = this.inner(); - return client.listByResourceGroupNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listByResourceGroupNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listByResourceGroupAsync(String resourceGroupName) { JobsInner client = this.inner(); return client.listByResourceGroupAsync(resourceGroupName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listByResourceGroupNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Job call(JobInner inner) { return wrapModel(inner); } - }); + }); } @Override @@ -124,41 +105,22 @@ public PagedList list() { return this.wrapList(client.list()); } - private Observable> listNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - JobsInner client = this.inner(); - return client.listNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listAsync() { JobsInner client = this.inner(); return client.listAsync() - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Job call(JobInner inner) { return wrapModel(inner); } - }); + }); } @Override @@ -166,41 +128,22 @@ public JobImpl define(String name) { return wrapModel(name); } - private Observable> listRemoteLoginInformationNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - JobsInner client = this.inner(); - return client.listRemoteLoginInformationNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listRemoteLoginInformationNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listRemoteLoginInformationAsync(final String resourceGroupName, final String jobName) { JobsInner client = this.inner(); return client.listRemoteLoginInformationAsync(resourceGroupName, jobName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listRemoteLoginInformationNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public RemoteLoginInformation call(RemoteLoginInformationInner inner) { return new RemoteLoginInformationImpl(inner, manager()); } - }); + }); } @Override @@ -209,41 +152,22 @@ public Completable terminateAsync(String resourceGroupName, String jobName) { return client.terminateAsync(resourceGroupName, jobName).toCompletable(); } - private Observable> listOutputFilesNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - JobsInner client = this.inner(); - return client.listOutputFilesNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listOutputFilesNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listOutputFilesAsync(final String resourceGroupName, final String jobName, final JobsListOutputFilesOptions jobsListOutputFilesOptions) { JobsInner client = this.inner(); return client.listOutputFilesAsync(resourceGroupName, jobName, jobsListOutputFilesOptions) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listOutputFilesNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public File call(FileInner inner) { return new FileImpl(inner, manager()); } - }); + }); } @Override diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/OperationInner.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/OperationInner.java index 845410be5148..b2cc85884a07 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/OperationInner.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/OperationInner.java @@ -42,7 +42,7 @@ public class OperationInner { private Object properties; /** - * Get the name value. + * Get this is of the format {provider}/{resource}/{operation}. * * @return the name value */ @@ -51,7 +51,7 @@ public String name() { } /** - * Set the name value. + * Set this is of the format {provider}/{resource}/{operation}. * * @param name the name value to set * @return the OperationInner object itself. @@ -62,7 +62,7 @@ public OperationInner withName(String name) { } /** - * Get the display value. + * Get the object that describes the operation. * * @return the display value */ @@ -71,7 +71,7 @@ public OperationDisplay display() { } /** - * Set the display value. + * Set the object that describes the operation. * * @param display the display value to set * @return the OperationInner object itself. diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/OperationsImpl.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/OperationsImpl.java index b317953a6ef5..a459413c3ac2 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/OperationsImpl.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/OperationsImpl.java @@ -28,41 +28,22 @@ public BatchAIManager manager() { return this.manager; } - private Observable> listNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - OperationsInner client = this.inner(); - return client.listNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listAsync() { OperationsInner client = this.inner(); return client.listAsync() - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Operation call(OperationInner inner) { return new OperationImpl(inner, manager()); } - }); + }); } } diff --git a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/RemoteLoginInformationInner.java b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/RemoteLoginInformationInner.java index ddb4b07fd33c..fd3b3162ba5f 100644 --- a/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/RemoteLoginInformationInner.java +++ b/batchai/resource-manager/v2017_09_01_preview/src/main/java/com/microsoft/azure/management/batchai/v2017_09_01_preview/implementation/RemoteLoginInformationInner.java @@ -33,7 +33,7 @@ public class RemoteLoginInformationInner { private double port; /** - * Get the nodeId value. + * Get id of the compute node. * * @return the nodeId value */ @@ -42,7 +42,7 @@ public String nodeId() { } /** - * Set the nodeId value. + * Set id of the compute node. * * @param nodeId the nodeId value to set * @return the RemoteLoginInformationInner object itself. @@ -53,7 +53,7 @@ public RemoteLoginInformationInner withNodeId(String nodeId) { } /** - * Get the ipAddress value. + * Get ip address. * * @return the ipAddress value */ @@ -62,7 +62,7 @@ public String ipAddress() { } /** - * Set the ipAddress value. + * Set ip address. * * @param ipAddress the ipAddress value to set * @return the RemoteLoginInformationInner object itself. diff --git a/batchai/resource-manager/v2018_03_01/pom.xml b/batchai/resource-manager/v2018_03_01/pom.xml index 443b29b2e043..cdbd3885126b 100644 --- a/batchai/resource-manager/v2018_03_01/pom.xml +++ b/batchai/resource-manager/v2018_03_01/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.azure-mgmt-batchai-2018-03-01 - - com.microsoft.azure - azure-arm-parent - 0.0.2-beta - ../../../pom.xml - - azure-mgmt-batchai - 1.0.0-beta-SNAPSHOT - jar - Microsoft Azure SDK for BatchAI Management - This package contains Microsoft BatchAI Management SDK. - https://github.com/Azure/azure-libraries-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-libraries-for-java - scm:git:git@github.com:Azure/azure-libraries-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - - - com.microsoft.azure - azure-arm-client-runtime - - - junit - junit - test - - - com.microsoft.azure - azure-client-authentication - test - - - com.microsoft.azure - azure-mgmt-resources - test - - - com.microsoft.azure - azure-arm-client-runtime - test-jar - test - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
+ + + 4.0.0 + com.microsoft.azure.batchai.v2018_03_01 + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-batchai + 1.0.0-beta + jar + Microsoft Azure SDK for BatchAI Management + This package contains Microsoft BatchAI Management SDK. + https://github.com/Azure/azure-libraries-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-libraries-for-java + scm:git:git@github.com:Azure/azure-libraries-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/AppInsightsReference.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/AppInsightsReference.java index 0423c9604665..00d6dfe669d9 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/AppInsightsReference.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/AppInsightsReference.java @@ -78,7 +78,7 @@ public AppInsightsReference withInstrumentationKey(String instrumentationKey) { } /** - * Get the instrumentationKeySecretReference value. + * Get specifies KeyVault Store and Secret which contains Azure Application Insights instrumentation key. One of instumentationKey or instrumentationKeySecretReference must be specified. * * @return the instrumentationKeySecretReference value */ @@ -87,7 +87,7 @@ public KeyVaultSecretReference instrumentationKeySecretReference() { } /** - * Set the instrumentationKeySecretReference value. + * Set specifies KeyVault Store and Secret which contains Azure Application Insights instrumentation key. One of instumentationKey or instrumentationKeySecretReference must be specified. * * @param instrumentationKeySecretReference the instrumentationKeySecretReference value to set * @return the AppInsightsReference object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/AzureBlobFileSystemReference.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/AzureBlobFileSystemReference.java index 09630c1d9aa3..f1103999d760 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/AzureBlobFileSystemReference.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/AzureBlobFileSystemReference.java @@ -111,7 +111,7 @@ public AzureBlobFileSystemReference withCredentials(AzureStorageCredentialsInfo } /** - * Get the relativeMountPath value. + * Get note that all cluster level blob file systems will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level blob file systems will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. * * @return the relativeMountPath value */ @@ -120,7 +120,7 @@ public String relativeMountPath() { } /** - * Set the relativeMountPath value. + * Set note that all cluster level blob file systems will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level blob file systems will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. * * @param relativeMountPath the relativeMountPath value to set * @return the AzureBlobFileSystemReference object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/AzureFileShareReference.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/AzureFileShareReference.java index 792b6991b99d..f6d46c3ea378 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/AzureFileShareReference.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/AzureFileShareReference.java @@ -117,7 +117,7 @@ public AzureFileShareReference withCredentials(AzureStorageCredentialsInfo crede } /** - * Get the relativeMountPath value. + * Get note that all cluster level file shares will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level file shares will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. * * @return the relativeMountPath value */ @@ -126,7 +126,7 @@ public String relativeMountPath() { } /** - * Set the relativeMountPath value. + * Set note that all cluster level file shares will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level file shares will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. * * @param relativeMountPath the relativeMountPath value to set * @return the AzureFileShareReference object itself. @@ -137,7 +137,7 @@ public AzureFileShareReference withRelativeMountPath(String relativeMountPath) { } /** - * Get the fileMode value. + * Get default value is 0777. Valid only if OS is linux. * * @return the fileMode value */ @@ -146,7 +146,7 @@ public String fileMode() { } /** - * Set the fileMode value. + * Set default value is 0777. Valid only if OS is linux. * * @param fileMode the fileMode value to set * @return the AzureFileShareReference object itself. @@ -157,7 +157,7 @@ public AzureFileShareReference withFileMode(String fileMode) { } /** - * Get the directoryMode value. + * Get default value is 0777. Valid only if OS is linux. * * @return the directoryMode value */ @@ -166,7 +166,7 @@ public String directoryMode() { } /** - * Set the directoryMode value. + * Set default value is 0777. Valid only if OS is linux. * * @param directoryMode the directoryMode value to set * @return the AzureFileShareReference object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/AzureStorageCredentialsInfo.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/AzureStorageCredentialsInfo.java index cd02065b8a21..6b90eda47c29 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/AzureStorageCredentialsInfo.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/AzureStorageCredentialsInfo.java @@ -32,7 +32,7 @@ public class AzureStorageCredentialsInfo { private KeyVaultSecretReference accountKeySecretReference; /** - * Get the accountKey value. + * Get one of accountKey or accountKeySecretReference must be specified. * * @return the accountKey value */ @@ -41,7 +41,7 @@ public String accountKey() { } /** - * Set the accountKey value. + * Set one of accountKey or accountKeySecretReference must be specified. * * @param accountKey the accountKey value to set * @return the AzureStorageCredentialsInfo object itself. @@ -52,7 +52,7 @@ public AzureStorageCredentialsInfo withAccountKey(String accountKey) { } /** - * Get the accountKeySecretReference value. + * Get users can store their secrets in Azure KeyVault and pass it to the Batch AI Service to integrate with KeyVault. One of accountKey or accountKeySecretReference must be specified. * * @return the accountKeySecretReference value */ @@ -61,7 +61,7 @@ public KeyVaultSecretReference accountKeySecretReference() { } /** - * Set the accountKeySecretReference value. + * Set users can store their secrets in Azure KeyVault and pass it to the Batch AI Service to integrate with KeyVault. One of accountKey or accountKeySecretReference must be specified. * * @param accountKeySecretReference the accountKeySecretReference value to set * @return the AzureStorageCredentialsInfo object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/BatchAIError.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/BatchAIError.java index 7bdddf707667..6bfb3d2e426b 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/BatchAIError.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/BatchAIError.java @@ -36,7 +36,7 @@ public class BatchAIError { private List details; /** - * Get the code value. + * Get an identifier for the error. Codes are invariant and are intended to be consumed programmatically. * * @return the code value */ @@ -45,7 +45,7 @@ public String code() { } /** - * Set the code value. + * Set an identifier for the error. Codes are invariant and are intended to be consumed programmatically. * * @param code the code value to set * @return the BatchAIError object itself. @@ -56,7 +56,7 @@ public BatchAIError withCode(String code) { } /** - * Get the message value. + * Get a message describing the error, intended to be suitable for display in a user interface. * * @return the message value */ @@ -65,7 +65,7 @@ public String message() { } /** - * Set the message value. + * Set a message describing the error, intended to be suitable for display in a user interface. * * @param message the message value to set * @return the BatchAIError object itself. @@ -76,7 +76,7 @@ public BatchAIError withMessage(String message) { } /** - * Get the details value. + * Get a list of additional details about the error. * * @return the details value */ @@ -85,7 +85,7 @@ public List details() { } /** - * Set the details value. + * Set a list of additional details about the error. * * @param details the details value to set * @return the BatchAIError object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/CNTKsettings.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/CNTKsettings.java index 2c4a46f0bde9..d07bbe311326 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/CNTKsettings.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/CNTKsettings.java @@ -59,7 +59,7 @@ public class CNTKsettings { private Integer processCount; /** - * Get the languageType value. + * Get valid values are 'BrainScript' or 'Python'. * * @return the languageType value */ @@ -68,7 +68,7 @@ public String languageType() { } /** - * Set the languageType value. + * Set valid values are 'BrainScript' or 'Python'. * * @param languageType the languageType value to set * @return the CNTKsettings object itself. @@ -79,7 +79,7 @@ public CNTKsettings withLanguageType(String languageType) { } /** - * Get the configFilePath value. + * Get this property can be specified only if the languageType is 'BrainScript'. * * @return the configFilePath value */ @@ -88,7 +88,7 @@ public String configFilePath() { } /** - * Set the configFilePath value. + * Set this property can be specified only if the languageType is 'BrainScript'. * * @param configFilePath the configFilePath value to set * @return the CNTKsettings object itself. @@ -99,7 +99,7 @@ public CNTKsettings withConfigFilePath(String configFilePath) { } /** - * Get the pythonScriptFilePath value. + * Get this property can be specified only if the languageType is 'Python'. * * @return the pythonScriptFilePath value */ @@ -108,7 +108,7 @@ public String pythonScriptFilePath() { } /** - * Set the pythonScriptFilePath value. + * Set this property can be specified only if the languageType is 'Python'. * * @param pythonScriptFilePath the pythonScriptFilePath value to set * @return the CNTKsettings object itself. @@ -119,7 +119,7 @@ public CNTKsettings withPythonScriptFilePath(String pythonScriptFilePath) { } /** - * Get the pythonInterpreterPath value. + * Get this property can be specified only if the languageType is 'Python'. * * @return the pythonInterpreterPath value */ @@ -128,7 +128,7 @@ public String pythonInterpreterPath() { } /** - * Set the pythonInterpreterPath value. + * Set this property can be specified only if the languageType is 'Python'. * * @param pythonInterpreterPath the pythonInterpreterPath value to set * @return the CNTKsettings object itself. @@ -159,7 +159,7 @@ public CNTKsettings withCommandLineArgs(String commandLineArgs) { } /** - * Get the processCount value. + * Get the default value for this property is equal to nodeCount property. * * @return the processCount value */ @@ -168,7 +168,7 @@ public Integer processCount() { } /** - * Set the processCount value. + * Set the default value for this property is equal to nodeCount property. * * @param processCount the processCount value to set * @return the CNTKsettings object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/CaffeSettings.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/CaffeSettings.java index c97719a70f69..54eeea8e8d69 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/CaffeSettings.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/CaffeSettings.java @@ -50,7 +50,7 @@ public class CaffeSettings { private Integer processCount; /** - * Get the configFilePath value. + * Get this property cannot be specified if pythonScriptFilePath is specified. * * @return the configFilePath value */ @@ -59,7 +59,7 @@ public String configFilePath() { } /** - * Set the configFilePath value. + * Set this property cannot be specified if pythonScriptFilePath is specified. * * @param configFilePath the configFilePath value to set * @return the CaffeSettings object itself. @@ -70,7 +70,7 @@ public CaffeSettings withConfigFilePath(String configFilePath) { } /** - * Get the pythonScriptFilePath value. + * Get this property cannot be specified if configFilePath is specified. * * @return the pythonScriptFilePath value */ @@ -79,7 +79,7 @@ public String pythonScriptFilePath() { } /** - * Set the pythonScriptFilePath value. + * Set this property cannot be specified if configFilePath is specified. * * @param pythonScriptFilePath the pythonScriptFilePath value to set * @return the CaffeSettings object itself. @@ -90,7 +90,7 @@ public CaffeSettings withPythonScriptFilePath(String pythonScriptFilePath) { } /** - * Get the pythonInterpreterPath value. + * Get this property can be specified only if the pythonScriptFilePath is specified. * * @return the pythonInterpreterPath value */ @@ -99,7 +99,7 @@ public String pythonInterpreterPath() { } /** - * Set the pythonInterpreterPath value. + * Set this property can be specified only if the pythonScriptFilePath is specified. * * @param pythonInterpreterPath the pythonInterpreterPath value to set * @return the CaffeSettings object itself. @@ -130,7 +130,7 @@ public CaffeSettings withCommandLineArgs(String commandLineArgs) { } /** - * Get the processCount value. + * Get the default value for this property is equal to nodeCount property. * * @return the processCount value */ @@ -139,7 +139,7 @@ public Integer processCount() { } /** - * Set the processCount value. + * Set the default value for this property is equal to nodeCount property. * * @param processCount the processCount value to set * @return the CaffeSettings object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ChainerSettings.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ChainerSettings.java index af07a5ef6e18..923eb0daacd9 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ChainerSettings.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ChainerSettings.java @@ -100,7 +100,7 @@ public ChainerSettings withCommandLineArgs(String commandLineArgs) { } /** - * Get the processCount value. + * Get the default value for this property is equal to nodeCount property. * * @return the processCount value */ @@ -109,7 +109,7 @@ public Integer processCount() { } /** - * Set the processCount value. + * Set the default value for this property is equal to nodeCount property. * * @param processCount the processCount value to set * @return the ChainerSettings object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/Cluster.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/Cluster.java index 93013b187669..186049ff6126 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/Cluster.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/Cluster.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.batchai.v2018_03_01.implementation.BatchAIManager; import org.joda.time.DateTime; diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ClusterCreateParameters.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ClusterCreateParameters.java index 80226ef30cb8..cadd93bd8e33 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ClusterCreateParameters.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ClusterCreateParameters.java @@ -81,7 +81,7 @@ public class ClusterCreateParameters { private ResourceId subnet; /** - * Get the location value. + * Get the region in which to create the cluster. * * @return the location value */ @@ -90,7 +90,7 @@ public String location() { } /** - * Set the location value. + * Set the region in which to create the cluster. * * @param location the location value to set * @return the ClusterCreateParameters object itself. @@ -101,7 +101,7 @@ public ClusterCreateParameters withLocation(String location) { } /** - * Get the tags value. + * Get the user specified tags associated with the Cluster. * * @return the tags value */ @@ -110,7 +110,7 @@ public Map tags() { } /** - * Set the tags value. + * Set the user specified tags associated with the Cluster. * * @param tags the tags value to set * @return the ClusterCreateParameters object itself. @@ -121,7 +121,7 @@ public ClusterCreateParameters withTags(Map tags) { } /** - * Get the vmSize value. + * Get all virtual machines in a cluster are the same size. For information about available VM sizes for clusters using images from the Virtual Machines Marketplace (see Sizes for Virtual Machines (Linux) or Sizes for Virtual Machines (Windows). Batch AI service supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). * * @return the vmSize value */ @@ -130,7 +130,7 @@ public String vmSize() { } /** - * Set the vmSize value. + * Set all virtual machines in a cluster are the same size. For information about available VM sizes for clusters using images from the Virtual Machines Marketplace (see Sizes for Virtual Machines (Linux) or Sizes for Virtual Machines (Windows). Batch AI service supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). * * @param vmSize the vmSize value to set * @return the ClusterCreateParameters object itself. @@ -141,7 +141,7 @@ public ClusterCreateParameters withVmSize(String vmSize) { } /** - * Get the vmPriority value. + * Get default is dedicated. Possible values include: 'dedicated', 'lowpriority'. * * @return the vmPriority value */ @@ -150,7 +150,7 @@ public VmPriority vmPriority() { } /** - * Set the vmPriority value. + * Set default is dedicated. Possible values include: 'dedicated', 'lowpriority'. * * @param vmPriority the vmPriority value to set * @return the ClusterCreateParameters object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ClusterUpdateParameters.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ClusterUpdateParameters.java index 468ed4c47fcf..6f6464d13dac 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ClusterUpdateParameters.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ClusterUpdateParameters.java @@ -30,7 +30,7 @@ public class ClusterUpdateParameters { private ScaleSettings scaleSettings; /** - * Get the tags value. + * Get the user specified tags associated with the Cluster. * * @return the tags value */ @@ -39,7 +39,7 @@ public Map tags() { } /** - * Set the tags value. + * Set the user specified tags associated with the Cluster. * * @param tags the tags value to set * @return the ClusterUpdateParameters object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ClustersListByResourceGroupOptions.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ClustersListByResourceGroupOptions.java index bcdf35014e47..89a0ef3ec773 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ClustersListByResourceGroupOptions.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ClustersListByResourceGroupOptions.java @@ -36,7 +36,7 @@ public class ClustersListByResourceGroupOptions { private Integer maxResults; /** - * Get the filter value. + * Get an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @return the filter value */ @@ -45,7 +45,7 @@ public String filter() { } /** - * Set the filter value. + * Set an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @param filter the filter value to set * @return the ClustersListByResourceGroupOptions object itself. @@ -56,7 +56,7 @@ public ClustersListByResourceGroupOptions withFilter(String filter) { } /** - * Get the select value. + * Get an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @return the select value */ @@ -65,7 +65,7 @@ public String select() { } /** - * Set the select value. + * Set an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @param select the select value to set * @return the ClustersListByResourceGroupOptions object itself. @@ -76,7 +76,7 @@ public ClustersListByResourceGroupOptions withSelect(String select) { } /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -85,7 +85,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the ClustersListByResourceGroupOptions object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ClustersListOptions.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ClustersListOptions.java index ea21ff957219..bf657c375d21 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ClustersListOptions.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ClustersListOptions.java @@ -36,7 +36,7 @@ public class ClustersListOptions { private Integer maxResults; /** - * Get the filter value. + * Get an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @return the filter value */ @@ -45,7 +45,7 @@ public String filter() { } /** - * Set the filter value. + * Set an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @param filter the filter value to set * @return the ClustersListOptions object itself. @@ -56,7 +56,7 @@ public ClustersListOptions withFilter(String filter) { } /** - * Get the select value. + * Get an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @return the select value */ @@ -65,7 +65,7 @@ public String select() { } /** - * Set the select value. + * Set an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @param select the select value to set * @return the ClustersListOptions object itself. @@ -76,7 +76,7 @@ public ClustersListOptions withSelect(String select) { } /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -85,7 +85,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the ClustersListOptions object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/DataDisks.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/DataDisks.java index 939e45bf3c62..32615ae1aaf6 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/DataDisks.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/DataDisks.java @@ -65,7 +65,7 @@ public DataDisks withDiskSizeInGB(int diskSizeInGB) { } /** - * Get the cachingType value. + * Get possible values include: 'none', 'readonly', 'readwrite'. * * @return the cachingType value */ @@ -74,7 +74,7 @@ public CachingType cachingType() { } /** - * Set the cachingType value. + * Set possible values include: 'none', 'readonly', 'readwrite'. * * @param cachingType the cachingType value to set * @return the DataDisks object itself. @@ -105,7 +105,7 @@ public DataDisks withDiskCount(int diskCount) { } /** - * Get the storageAccountType value. + * Get possible values include: 'Standard_LRS', 'Premium_LRS'. * * @return the storageAccountType value */ @@ -114,7 +114,7 @@ public StorageAccountType storageAccountType() { } /** - * Set the storageAccountType value. + * Set possible values include: 'Standard_LRS', 'Premium_LRS'. * * @param storageAccountType the storageAccountType value to set * @return the DataDisks object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/EnvironmentVariableWithSecretValue.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/EnvironmentVariableWithSecretValue.java index 5c64de5c6f6d..57c5feee85e4 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/EnvironmentVariableWithSecretValue.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/EnvironmentVariableWithSecretValue.java @@ -78,7 +78,7 @@ public EnvironmentVariableWithSecretValue withValue(String value) { } /** - * Get the valueSecretReference value. + * Get specifies KeyVault Store and Secret which contains the value for the environment variable. One of value or valueSecretReference must be provided. * * @return the valueSecretReference value */ @@ -87,7 +87,7 @@ public KeyVaultSecretReference valueSecretReference() { } /** - * Set the valueSecretReference value. + * Set specifies KeyVault Store and Secret which contains the value for the environment variable. One of value or valueSecretReference must be provided. * * @param valueSecretReference the valueSecretReference value to set * @return the EnvironmentVariableWithSecretValue object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/FileServer.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/FileServer.java index ce527353b2b8..e9cfbc5982e6 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/FileServer.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/FileServer.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.batchai.v2018_03_01.implementation.BatchAIManager; import org.joda.time.DateTime; diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/FileServerCreateParameters.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/FileServerCreateParameters.java index 0df3ce920e21..6686dc34d2b2 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/FileServerCreateParameters.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/FileServerCreateParameters.java @@ -56,7 +56,7 @@ public class FileServerCreateParameters { private ResourceId subnet; /** - * Get the location value. + * Get the region in which to create the File Server. * * @return the location value */ @@ -65,7 +65,7 @@ public String location() { } /** - * Set the location value. + * Set the region in which to create the File Server. * * @param location the location value to set * @return the FileServerCreateParameters object itself. @@ -76,7 +76,7 @@ public FileServerCreateParameters withLocation(String location) { } /** - * Get the tags value. + * Get the user specified tags associated with the File Server. * * @return the tags value */ @@ -85,7 +85,7 @@ public Map tags() { } /** - * Set the tags value. + * Set the user specified tags associated with the File Server. * * @param tags the tags value to set * @return the FileServerCreateParameters object itself. @@ -96,7 +96,7 @@ public FileServerCreateParameters withTags(Map tags) { } /** - * Get the vmSize value. + * Get for information about available VM sizes for fileservers from the Virtual Machines Marketplace, see Sizes for Virtual Machines (Linux). * * @return the vmSize value */ @@ -105,7 +105,7 @@ public String vmSize() { } /** - * Set the vmSize value. + * Set for information about available VM sizes for fileservers from the Virtual Machines Marketplace, see Sizes for Virtual Machines (Linux). * * @param vmSize the vmSize value to set * @return the FileServerCreateParameters object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/FileServerReference.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/FileServerReference.java index 6a797b26d381..d98013e776dd 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/FileServerReference.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/FileServerReference.java @@ -66,7 +66,7 @@ public FileServerReference withFileServer(ResourceId fileServer) { } /** - * Get the sourceDirectory value. + * Get if this property is not specified, the entire File Server will be mounted. * * @return the sourceDirectory value */ @@ -75,7 +75,7 @@ public String sourceDirectory() { } /** - * Set the sourceDirectory value. + * Set if this property is not specified, the entire File Server will be mounted. * * @param sourceDirectory the sourceDirectory value to set * @return the FileServerReference object itself. @@ -86,7 +86,7 @@ public FileServerReference withSourceDirectory(String sourceDirectory) { } /** - * Get the relativeMountPath value. + * Get note that all cluster level file servers will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and job level file servers will be mouted under $AZ_BATCHAI_JOB_MOUNT_ROOT. * * @return the relativeMountPath value */ @@ -95,7 +95,7 @@ public String relativeMountPath() { } /** - * Set the relativeMountPath value. + * Set note that all cluster level file servers will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and job level file servers will be mouted under $AZ_BATCHAI_JOB_MOUNT_ROOT. * * @param relativeMountPath the relativeMountPath value to set * @return the FileServerReference object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/FileServersListByResourceGroupOptions.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/FileServersListByResourceGroupOptions.java index ee83e572e3b9..8e023a04a3d5 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/FileServersListByResourceGroupOptions.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/FileServersListByResourceGroupOptions.java @@ -36,7 +36,7 @@ public class FileServersListByResourceGroupOptions { private Integer maxResults; /** - * Get the filter value. + * Get an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @return the filter value */ @@ -45,7 +45,7 @@ public String filter() { } /** - * Set the filter value. + * Set an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @param filter the filter value to set * @return the FileServersListByResourceGroupOptions object itself. @@ -56,7 +56,7 @@ public FileServersListByResourceGroupOptions withFilter(String filter) { } /** - * Get the select value. + * Get an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @return the select value */ @@ -65,7 +65,7 @@ public String select() { } /** - * Set the select value. + * Set an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @param select the select value to set * @return the FileServersListByResourceGroupOptions object itself. @@ -76,7 +76,7 @@ public FileServersListByResourceGroupOptions withSelect(String select) { } /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -85,7 +85,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the FileServersListByResourceGroupOptions object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/FileServersListOptions.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/FileServersListOptions.java index e3be6a53175a..cc5c93769e73 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/FileServersListOptions.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/FileServersListOptions.java @@ -36,7 +36,7 @@ public class FileServersListOptions { private Integer maxResults; /** - * Get the filter value. + * Get an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @return the filter value */ @@ -45,7 +45,7 @@ public String filter() { } /** - * Set the filter value. + * Set an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @param filter the filter value to set * @return the FileServersListOptions object itself. @@ -56,7 +56,7 @@ public FileServersListOptions withFilter(String filter) { } /** - * Get the select value. + * Get an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @return the select value */ @@ -65,7 +65,7 @@ public String select() { } /** - * Set the select value. + * Set an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @param select the select value to set * @return the FileServersListOptions object itself. @@ -76,7 +76,7 @@ public FileServersListOptions withSelect(String select) { } /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -85,7 +85,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the FileServersListOptions object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ImageReference.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ImageReference.java index fdd62817044e..ea4085e27e89 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ImageReference.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ImageReference.java @@ -134,7 +134,7 @@ public ImageReference withVersion(String version) { } /** - * Get the virtualMachineImageId value. + * Get the virtual machine image must be in the same region and subscription as the cluster. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. Note, you need to provide publisher, offer and sku of the base OS image of which the custom image has been derived from. * * @return the virtualMachineImageId value */ @@ -143,7 +143,7 @@ public String virtualMachineImageId() { } /** - * Set the virtualMachineImageId value. + * Set the virtual machine image must be in the same region and subscription as the cluster. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. Note, you need to provide publisher, offer and sku of the base OS image of which the custom image has been derived from. * * @param virtualMachineImageId the virtualMachineImageId value to set * @return the ImageReference object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/InputDirectory.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/InputDirectory.java index df67a9f229f4..bb7bd545b9ca 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/InputDirectory.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/InputDirectory.java @@ -30,7 +30,7 @@ public class InputDirectory { private String path; /** - * Get the id value. + * Get the path of the input directory will be available as a value of an environment variable with AZ_BATCHAI_INPUT_<id> name, where <id> is the value of id attribute. * * @return the id value */ @@ -39,7 +39,7 @@ public String id() { } /** - * Set the id value. + * Set the path of the input directory will be available as a value of an environment variable with AZ_BATCHAI_INPUT_<id> name, where <id> is the value of id attribute. * * @param id the id value to set * @return the InputDirectory object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/Job.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/Job.java index 00a0674a6118..e92e2a834b92 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/Job.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/Job.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.batchai.v2018_03_01.implementation.BatchAIManager; import java.util.List; diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobBasePropertiesConstraints.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobBasePropertiesConstraints.java index 0fd54c7d6429..9af1a93be975 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobBasePropertiesConstraints.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobBasePropertiesConstraints.java @@ -23,7 +23,7 @@ public class JobBasePropertiesConstraints { private Period maxWallClockTime; /** - * Get the maxWallClockTime value. + * Get default Value = 1 week. * * @return the maxWallClockTime value */ @@ -32,7 +32,7 @@ public Period maxWallClockTime() { } /** - * Set the maxWallClockTime value. + * Set default Value = 1 week. * * @param maxWallClockTime the maxWallClockTime value to set * @return the JobBasePropertiesConstraints object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobCreateParameters.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobCreateParameters.java index 0cb58ad04619..95be40827a2e 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobCreateParameters.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobCreateParameters.java @@ -167,7 +167,7 @@ public class JobCreateParameters { private JobBasePropertiesConstraints constraints; /** - * Get the location value. + * Get the region in which to create the job. * * @return the location value */ @@ -176,7 +176,7 @@ public String location() { } /** - * Set the location value. + * Set the region in which to create the job. * * @param location the location value to set * @return the JobCreateParameters object itself. @@ -187,7 +187,7 @@ public JobCreateParameters withLocation(String location) { } /** - * Get the tags value. + * Get the user specified tags associated with the job. * * @return the tags value */ @@ -196,7 +196,7 @@ public Map tags() { } /** - * Set the tags value. + * Set the user specified tags associated with the job. * * @param tags the tags value to set * @return the JobCreateParameters object itself. @@ -207,7 +207,7 @@ public JobCreateParameters withTags(Map tags) { } /** - * Get the experimentName value. + * Get describe the experiment information of the job. * * @return the experimentName value */ @@ -216,7 +216,7 @@ public String experimentName() { } /** - * Set the experimentName value. + * Set describe the experiment information of the job. * * @param experimentName the experimentName value to set * @return the JobCreateParameters object itself. @@ -227,7 +227,7 @@ public JobCreateParameters withExperimentName(String experimentName) { } /** - * Get the priority value. + * Get priority associated with the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0. * * @return the priority value */ @@ -236,7 +236,7 @@ public Integer priority() { } /** - * Set the priority value. + * Set priority associated with the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0. * * @param priority the priority value to set * @return the JobCreateParameters object itself. @@ -267,7 +267,7 @@ public JobCreateParameters withCluster(ResourceId cluster) { } /** - * Get the mountVolumes value. + * Get these volumes will be mounted before the job execution and will be unmouted after the job completion. The volumes will be mounted at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable. * * @return the mountVolumes value */ @@ -276,7 +276,7 @@ public MountVolumes mountVolumes() { } /** - * Set the mountVolumes value. + * Set these volumes will be mounted before the job execution and will be unmouted after the job completion. The volumes will be mounted at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable. * * @param mountVolumes the mountVolumes value to set * @return the JobCreateParameters object itself. @@ -287,7 +287,7 @@ public JobCreateParameters withMountVolumes(MountVolumes mountVolumes) { } /** - * Get the nodeCount value. + * Get the job will be gang scheduled on that many compute nodes. * * @return the nodeCount value */ @@ -296,7 +296,7 @@ public int nodeCount() { } /** - * Set the nodeCount value. + * Set the job will be gang scheduled on that many compute nodes. * * @param nodeCount the nodeCount value to set * @return the JobCreateParameters object itself. @@ -307,7 +307,7 @@ public JobCreateParameters withNodeCount(int nodeCount) { } /** - * Get the containerSettings value. + * Get if the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM. * * @return the containerSettings value */ @@ -316,7 +316,7 @@ public ContainerSettings containerSettings() { } /** - * Set the containerSettings value. + * Set if the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM. * * @param containerSettings the containerSettings value to set * @return the JobCreateParameters object itself. @@ -467,7 +467,7 @@ public JobCreateParameters withCustomToolkitSettings(CustomToolkitSettings custo } /** - * Get the jobPreparation value. + * Get the specified actions will run on all the nodes that are part of the job. * * @return the jobPreparation value */ @@ -476,7 +476,7 @@ public JobPreparation jobPreparation() { } /** - * Set the jobPreparation value. + * Set the specified actions will run on all the nodes that are part of the job. * * @param jobPreparation the jobPreparation value to set * @return the JobCreateParameters object itself. @@ -487,7 +487,7 @@ public JobCreateParameters withJobPreparation(JobPreparation jobPreparation) { } /** - * Get the stdOutErrPathPrefix value. + * Get the path where the Batch AI service will upload stdout and stderror of the job. * * @return the stdOutErrPathPrefix value */ @@ -496,7 +496,7 @@ public String stdOutErrPathPrefix() { } /** - * Set the stdOutErrPathPrefix value. + * Set the path where the Batch AI service will upload stdout and stderror of the job. * * @param stdOutErrPathPrefix the stdOutErrPathPrefix value to set * @return the JobCreateParameters object itself. @@ -547,7 +547,7 @@ public JobCreateParameters withOutputDirectories(List outputDir } /** - * Get the environmentVariables value. + * Get batch AI will setup these additional environment variables for the job. * * @return the environmentVariables value */ @@ -556,7 +556,7 @@ public List environmentVariables() { } /** - * Set the environmentVariables value. + * Set batch AI will setup these additional environment variables for the job. * * @param environmentVariables the environmentVariables value to set * @return the JobCreateParameters object itself. @@ -567,7 +567,7 @@ public JobCreateParameters withEnvironmentVariables(List en } /** - * Get the secrets value. + * Get batch AI will setup these additional environment variables for the job. Server will never report values of these variables back. * * @return the secrets value */ @@ -576,7 +576,7 @@ public List secrets() { } /** - * Set the secrets value. + * Set batch AI will setup these additional environment variables for the job. Server will never report values of these variables back. * * @param secrets the secrets value to set * @return the JobCreateParameters object itself. @@ -587,7 +587,7 @@ public JobCreateParameters withSecrets(List } /** - * Get the constraints value. + * Get constraints associated with the Job. * * @return the constraints value */ @@ -596,7 +596,7 @@ public JobBasePropertiesConstraints constraints() { } /** - * Set the constraints value. + * Set constraints associated with the Job. * * @param constraints the constraints value to set * @return the JobCreateParameters object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobPreparation.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobPreparation.java index 6fc71f0115dc..ed6b75812f14 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobPreparation.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobPreparation.java @@ -24,7 +24,7 @@ public class JobPreparation { private String commandLine; /** - * Get the commandLine value. + * Get if containerSettings is specified on the job, this commandLine will be executed in the same container as job. Otherwise it will be executed on the node. * * @return the commandLine value */ @@ -33,7 +33,7 @@ public String commandLine() { } /** - * Set the commandLine value. + * Set if containerSettings is specified on the job, this commandLine will be executed in the same container as job. Otherwise it will be executed on the node. * * @param commandLine the commandLine value to set * @return the JobPreparation object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobPropertiesConstraints.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobPropertiesConstraints.java index 6a0c8f168f4a..f5679d217ceb 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobPropertiesConstraints.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobPropertiesConstraints.java @@ -23,7 +23,7 @@ public class JobPropertiesConstraints { private Period maxWallClockTime; /** - * Get the maxWallClockTime value. + * Get default Value = 1 week. * * @return the maxWallClockTime value */ @@ -32,7 +32,7 @@ public Period maxWallClockTime() { } /** - * Set the maxWallClockTime value. + * Set default Value = 1 week. * * @param maxWallClockTime the maxWallClockTime value to set * @return the JobPropertiesConstraints object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobPropertiesExecutionInfo.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobPropertiesExecutionInfo.java index eefbf3090ec8..c5778f333acd 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobPropertiesExecutionInfo.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobPropertiesExecutionInfo.java @@ -49,7 +49,7 @@ public class JobPropertiesExecutionInfo { private List errors; /** - * Get the startTime value. + * Get 'Running' corresponds to the running state. If the job has been restarted or retried, this is the most recent time at which the job started running. This property is present only for job that are in the running or completed state. * * @return the startTime value */ @@ -58,7 +58,7 @@ public DateTime startTime() { } /** - * Set the startTime value. + * Set 'Running' corresponds to the running state. If the job has been restarted or retried, this is the most recent time at which the job started running. This property is present only for job that are in the running or completed state. * * @param startTime the startTime value to set * @return the JobPropertiesExecutionInfo object itself. @@ -69,7 +69,7 @@ public JobPropertiesExecutionInfo withStartTime(DateTime startTime) { } /** - * Get the endTime value. + * Get this property is only returned if the job is in completed state. * * @return the endTime value */ @@ -78,7 +78,7 @@ public DateTime endTime() { } /** - * Set the endTime value. + * Set this property is only returned if the job is in completed state. * * @param endTime the endTime value to set * @return the JobPropertiesExecutionInfo object itself. @@ -89,7 +89,7 @@ public JobPropertiesExecutionInfo withEndTime(DateTime endTime) { } /** - * Get the exitCode value. + * Get this property is only returned if the job is in completed state. * * @return the exitCode value */ @@ -98,7 +98,7 @@ public Integer exitCode() { } /** - * Set the exitCode value. + * Set this property is only returned if the job is in completed state. * * @param exitCode the exitCode value to set * @return the JobPropertiesExecutionInfo object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobsListByResourceGroupOptions.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobsListByResourceGroupOptions.java index 0403d8640a42..5782834da61a 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobsListByResourceGroupOptions.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobsListByResourceGroupOptions.java @@ -36,7 +36,7 @@ public class JobsListByResourceGroupOptions { private Integer maxResults; /** - * Get the filter value. + * Get an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @return the filter value */ @@ -45,7 +45,7 @@ public String filter() { } /** - * Set the filter value. + * Set an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @param filter the filter value to set * @return the JobsListByResourceGroupOptions object itself. @@ -56,7 +56,7 @@ public JobsListByResourceGroupOptions withFilter(String filter) { } /** - * Get the select value. + * Get an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @return the select value */ @@ -65,7 +65,7 @@ public String select() { } /** - * Set the select value. + * Set an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @param select the select value to set * @return the JobsListByResourceGroupOptions object itself. @@ -76,7 +76,7 @@ public JobsListByResourceGroupOptions withSelect(String select) { } /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -85,7 +85,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the JobsListByResourceGroupOptions object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobsListOptions.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobsListOptions.java index 67e0d94661b9..99f8e3cc80cb 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobsListOptions.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobsListOptions.java @@ -36,7 +36,7 @@ public class JobsListOptions { private Integer maxResults; /** - * Get the filter value. + * Get an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @return the filter value */ @@ -45,7 +45,7 @@ public String filter() { } /** - * Set the filter value. + * Set an OData $filter clause.. Used to filter results that are returned in the GET respnose. * * @param filter the filter value to set * @return the JobsListOptions object itself. @@ -56,7 +56,7 @@ public JobsListOptions withFilter(String filter) { } /** - * Get the select value. + * Get an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @return the select value */ @@ -65,7 +65,7 @@ public String select() { } /** - * Set the select value. + * Set an OData $select clause. Used to select the properties to be returned in the GET respnose. * * @param select the select value to set * @return the JobsListOptions object itself. @@ -76,7 +76,7 @@ public JobsListOptions withSelect(String select) { } /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -85,7 +85,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the JobsListOptions object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobsListOutputFilesOptions.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobsListOutputFilesOptions.java index e0f174b480d6..0de881611971 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobsListOutputFilesOptions.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/JobsListOutputFilesOptions.java @@ -41,7 +41,7 @@ public class JobsListOutputFilesOptions { private Integer maxResults; /** - * Get the outputdirectoryid value. + * Get id of the job output directory. This is the OutputDirectory-->id parameter that is given by the user during Create Job. * * @return the outputdirectoryid value */ @@ -50,7 +50,7 @@ public String outputdirectoryid() { } /** - * Set the outputdirectoryid value. + * Set id of the job output directory. This is the OutputDirectory-->id parameter that is given by the user during Create Job. * * @param outputdirectoryid the outputdirectoryid value to set * @return the JobsListOutputFilesOptions object itself. @@ -61,7 +61,7 @@ public JobsListOutputFilesOptions withOutputdirectoryid(String outputdirectoryid } /** - * Get the directory value. + * Get the path to the directory. * * @return the directory value */ @@ -70,7 +70,7 @@ public String directory() { } /** - * Set the directory value. + * Set the path to the directory. * * @param directory the directory value to set * @return the JobsListOutputFilesOptions object itself. @@ -81,7 +81,7 @@ public JobsListOutputFilesOptions withDirectory(String directory) { } /** - * Get the linkexpiryinminutes value. + * Get the number of minutes after which the download link will expire. * * @return the linkexpiryinminutes value */ @@ -90,7 +90,7 @@ public Integer linkexpiryinminutes() { } /** - * Set the linkexpiryinminutes value. + * Set the number of minutes after which the download link will expire. * * @param linkexpiryinminutes the linkexpiryinminutes value to set * @return the JobsListOutputFilesOptions object itself. @@ -101,7 +101,7 @@ public JobsListOutputFilesOptions withLinkexpiryinminutes(Integer linkexpiryinmi } /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -110,7 +110,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the JobsListOutputFilesOptions object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ManualScaleSettings.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ManualScaleSettings.java index f819dc767e12..123ebf048dc8 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ManualScaleSettings.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ManualScaleSettings.java @@ -32,7 +32,7 @@ public class ManualScaleSettings { private DeallocationOption nodeDeallocationOption; /** - * Get the targetNodeCount value. + * Get default is 0. If autoScaleSettings are not specified, then the Cluster starts with this target. * * @return the targetNodeCount value */ @@ -41,7 +41,7 @@ public int targetNodeCount() { } /** - * Set the targetNodeCount value. + * Set default is 0. If autoScaleSettings are not specified, then the Cluster starts with this target. * * @param targetNodeCount the targetNodeCount value to set * @return the ManualScaleSettings object itself. @@ -52,7 +52,7 @@ public ManualScaleSettings withTargetNodeCount(int targetNodeCount) { } /** - * Get the nodeDeallocationOption value. + * Get the default value is requeue. Possible values include: 'requeue', 'terminate', 'waitforjobcompletion', 'unknown'. * * @return the nodeDeallocationOption value */ @@ -61,7 +61,7 @@ public DeallocationOption nodeDeallocationOption() { } /** - * Set the nodeDeallocationOption value. + * Set the default value is requeue. Possible values include: 'requeue', 'terminate', 'waitforjobcompletion', 'unknown'. * * @param nodeDeallocationOption the nodeDeallocationOption value to set * @return the ManualScaleSettings object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/MountSettings.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/MountSettings.java index 34d765d9f814..203cf03c7af0 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/MountSettings.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/MountSettings.java @@ -101,7 +101,7 @@ public MountSettings withFileServerInternalIP(String fileServerInternalIP) { } /** - * Get the fileServerType value. + * Get possible values include: 'nfs', 'glusterfs'. * * @return the fileServerType value */ @@ -110,7 +110,7 @@ public FileServerType fileServerType() { } /** - * Set the fileServerType value. + * Set possible values include: 'nfs', 'glusterfs'. * * @param fileServerType the fileServerType value to set * @return the MountSettings object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/MountVolumes.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/MountVolumes.java index f0065cf3a41b..c41d329a3dd9 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/MountVolumes.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/MountVolumes.java @@ -46,7 +46,7 @@ public class MountVolumes { private List unmanagedFileSystems; /** - * Get the azureFileShares value. + * Get references to Azure File Shares that are to be mounted to the cluster nodes. * * @return the azureFileShares value */ @@ -55,7 +55,7 @@ public List azureFileShares() { } /** - * Set the azureFileShares value. + * Set references to Azure File Shares that are to be mounted to the cluster nodes. * * @param azureFileShares the azureFileShares value to set * @return the MountVolumes object itself. @@ -66,7 +66,7 @@ public MountVolumes withAzureFileShares(List azureFileS } /** - * Get the azureBlobFileSystems value. + * Get references to Azure Blob FUSE that are to be mounted to the cluster nodes. * * @return the azureBlobFileSystems value */ @@ -75,7 +75,7 @@ public List azureBlobFileSystems() { } /** - * Set the azureBlobFileSystems value. + * Set references to Azure Blob FUSE that are to be mounted to the cluster nodes. * * @param azureBlobFileSystems the azureBlobFileSystems value to set * @return the MountVolumes object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/NodeSetup.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/NodeSetup.java index 4f71ac508a60..6665dc17768b 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/NodeSetup.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/NodeSetup.java @@ -62,7 +62,7 @@ public NodeSetup withSetupTask(SetupTask setupTask) { } /** - * Get the mountVolumes value. + * Get specified mount volumes will be available to all jobs executing on the cluster. The volumes will be mounted at location specified by $AZ_BATCHAI_MOUNT_ROOT environment variable. * * @return the mountVolumes value */ @@ -71,7 +71,7 @@ public MountVolumes mountVolumes() { } /** - * Set the mountVolumes value. + * Set specified mount volumes will be available to all jobs executing on the cluster. The volumes will be mounted at location specified by $AZ_BATCHAI_MOUNT_ROOT environment variable. * * @param mountVolumes the mountVolumes value to set * @return the NodeSetup object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/OperationDisplay.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/OperationDisplay.java index 29d35b09df49..0375fdcf7701 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/OperationDisplay.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/OperationDisplay.java @@ -60,7 +60,7 @@ public OperationDisplay withProvider(String provider) { } /** - * Get the operation value. + * Get for example: read, write, delete, or listKeys/action. * * @return the operation value */ @@ -69,7 +69,7 @@ public String operation() { } /** - * Set the operation value. + * Set for example: read, write, delete, or listKeys/action. * * @param operation the operation value to set * @return the OperationDisplay object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/OutputDirectory.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/OutputDirectory.java index 2c0c691c585f..502217c69e6c 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/OutputDirectory.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/OutputDirectory.java @@ -62,7 +62,7 @@ public class OutputDirectory { private Boolean createNew; /** - * Get the id value. + * Get the path of the output directory will be available as a value of an environment variable with AZ_BATCHAI_OUTPUT_<id> name, where <id> is the value of id attribute. * * @return the id value */ @@ -71,7 +71,7 @@ public String id() { } /** - * Set the id value. + * Set the path of the output directory will be available as a value of an environment variable with AZ_BATCHAI_OUTPUT_<id> name, where <id> is the value of id attribute. * * @param id the id value to set * @return the OutputDirectory object itself. @@ -82,7 +82,7 @@ public OutputDirectory withId(String id) { } /** - * Get the pathPrefix value. + * Get nOTE: This is an absolute path to prefix. E.g. $AZ_BATCHAI_MOUNT_ROOT/MyNFS/MyLogs. You can find the full path to the output directory by combining pathPrefix, jobOutputDirectoryPathSegment (reported by get job) and pathSuffix. * * @return the pathPrefix value */ @@ -91,7 +91,7 @@ public String pathPrefix() { } /** - * Set the pathPrefix value. + * Set nOTE: This is an absolute path to prefix. E.g. $AZ_BATCHAI_MOUNT_ROOT/MyNFS/MyLogs. You can find the full path to the output directory by combining pathPrefix, jobOutputDirectoryPathSegment (reported by get job) and pathSuffix. * * @param pathPrefix the pathPrefix value to set * @return the OutputDirectory object itself. @@ -102,7 +102,7 @@ public OutputDirectory withPathPrefix(String pathPrefix) { } /** - * Get the pathSuffix value. + * Get the suffix path where the output directory will be created. E.g. models. You can find the full path to the output directory by combining pathPrefix, jobOutputDirectoryPathSegment (reported by get job) and pathSuffix. * * @return the pathSuffix value */ @@ -111,7 +111,7 @@ public String pathSuffix() { } /** - * Set the pathSuffix value. + * Set the suffix path where the output directory will be created. E.g. models. You can find the full path to the output directory by combining pathPrefix, jobOutputDirectoryPathSegment (reported by get job) and pathSuffix. * * @param pathSuffix the pathSuffix value to set * @return the OutputDirectory object itself. @@ -122,7 +122,7 @@ public OutputDirectory withPathSuffix(String pathSuffix) { } /** - * Get the type value. + * Get default value is Custom. The possible values are Model, Logs, Summary, and Custom. Users can use multiple enums for a single directory. Eg. outPutType='Model,Logs, Summary'. Possible values include: 'model', 'logs', 'summary', 'custom'. * * @return the type value */ @@ -131,7 +131,7 @@ public OutputType type() { } /** - * Set the type value. + * Set default value is Custom. The possible values are Model, Logs, Summary, and Custom. Users can use multiple enums for a single directory. Eg. outPutType='Model,Logs, Summary'. Possible values include: 'model', 'logs', 'summary', 'custom'. * * @param type the type value to set * @return the OutputDirectory object itself. @@ -142,7 +142,7 @@ public OutputDirectory withType(OutputType type) { } /** - * Get the createNew value. + * Get default is true. If false, then the directory is not created and can be any directory path that the user specifies. * * @return the createNew value */ @@ -151,7 +151,7 @@ public Boolean createNew() { } /** - * Set the createNew value. + * Set default is true. If false, then the directory is not created and can be any directory path that the user specifies. * * @param createNew the createNew value to set * @return the OutputDirectory object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/PerformanceCountersSettings.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/PerformanceCountersSettings.java index e3e5ef95bf7e..cdacb990b0f2 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/PerformanceCountersSettings.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/PerformanceCountersSettings.java @@ -24,7 +24,7 @@ public class PerformanceCountersSettings { private AppInsightsReference appInsightsReference; /** - * Get the appInsightsReference value. + * Get if provided, Batch AI will upload node performance counters to the corresponding Azure Application Insights account. * * @return the appInsightsReference value */ @@ -33,7 +33,7 @@ public AppInsightsReference appInsightsReference() { } /** - * Set the appInsightsReference value. + * Set if provided, Batch AI will upload node performance counters to the corresponding Azure Application Insights account. * * @param appInsightsReference the appInsightsReference value to set * @return the PerformanceCountersSettings object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/PrivateRegistryCredentials.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/PrivateRegistryCredentials.java index 4b2203472357..f09ac6e3a38d 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/PrivateRegistryCredentials.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/PrivateRegistryCredentials.java @@ -57,7 +57,7 @@ public PrivateRegistryCredentials withUsername(String username) { } /** - * Get the password value. + * Get one of password or passwordSecretReference must be specified. * * @return the password value */ @@ -66,7 +66,7 @@ public String password() { } /** - * Set the password value. + * Set one of password or passwordSecretReference must be specified. * * @param password the password value to set * @return the PrivateRegistryCredentials object itself. @@ -77,7 +77,7 @@ public PrivateRegistryCredentials withPassword(String password) { } /** - * Get the passwordSecretReference value. + * Get users can store their secrets in Azure KeyVault and pass it to the Batch AI Service to integrate with KeyVault. One of password or passwordSecretReference must be specified. * * @return the passwordSecretReference value */ @@ -86,7 +86,7 @@ public KeyVaultSecretReference passwordSecretReference() { } /** - * Set the passwordSecretReference value. + * Set users can store their secrets in Azure KeyVault and pass it to the Batch AI Service to integrate with KeyVault. One of password or passwordSecretReference must be specified. * * @param passwordSecretReference the passwordSecretReference value to set * @return the PrivateRegistryCredentials object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/PyTorchSettings.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/PyTorchSettings.java index e3e44e3e27c8..005dd5c39c75 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/PyTorchSettings.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/PyTorchSettings.java @@ -108,7 +108,7 @@ public PyTorchSettings withCommandLineArgs(String commandLineArgs) { } /** - * Get the processCount value. + * Get the default value for this property is equal to nodeCount property. * * @return the processCount value */ @@ -117,7 +117,7 @@ public Integer processCount() { } /** - * Set the processCount value. + * Set the default value for this property is equal to nodeCount property. * * @param processCount the processCount value to set * @return the PyTorchSettings object itself. @@ -128,7 +128,7 @@ public PyTorchSettings withProcessCount(Integer processCount) { } /** - * Get the communicationBackend value. + * Get valid values are 'TCP', 'Gloo' or 'MPI'. Not required for non-distributed jobs. * * @return the communicationBackend value */ @@ -137,7 +137,7 @@ public String communicationBackend() { } /** - * Set the communicationBackend value. + * Set valid values are 'TCP', 'Gloo' or 'MPI'. Not required for non-distributed jobs. * * @param communicationBackend the communicationBackend value to set * @return the PyTorchSettings object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ResourceId.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ResourceId.java index f35c7cf768f7..d66fedf4eb21 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ResourceId.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/ResourceId.java @@ -22,7 +22,7 @@ public class ResourceId { private String id; /** - * Get the id value. + * Get the ID of the resource. * * @return the id value */ @@ -31,7 +31,7 @@ public String id() { } /** - * Set the id value. + * Set the ID of the resource. * * @param id the id value to set * @return the ResourceId object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/SetupTask.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/SetupTask.java index 415d739d5817..17eea82cf43b 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/SetupTask.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/SetupTask.java @@ -104,7 +104,7 @@ public SetupTask withEnvironmentVariables(List environmentV } /** - * Get the secrets value. + * Get server will never report values of these variables back. * * @return the secrets value */ @@ -113,7 +113,7 @@ public List secrets() { } /** - * Set the secrets value. + * Set server will never report values of these variables back. * * @param secrets the secrets value to set * @return the SetupTask object itself. @@ -124,7 +124,7 @@ public SetupTask withSecrets(List secrets) { } /** - * Get the runElevated value. + * Get note. Non-elevated tasks are run under an account added into sudoer list and can perform sudo when required. * * @return the runElevated value */ @@ -133,7 +133,7 @@ public Boolean runElevated() { } /** - * Set the runElevated value. + * Set note. Non-elevated tasks are run under an account added into sudoer list and can perform sudo when required. * * @param runElevated the runElevated value to set * @return the SetupTask object itself. @@ -144,7 +144,7 @@ public SetupTask withRunElevated(Boolean runElevated) { } /** - * Get the stdOutErrPathPrefix value. + * Get the prefix of a path where the Batch AI service will upload the stdout and stderr of the setup task. * * @return the stdOutErrPathPrefix value */ @@ -153,7 +153,7 @@ public String stdOutErrPathPrefix() { } /** - * Set the stdOutErrPathPrefix value. + * Set the prefix of a path where the Batch AI service will upload the stdout and stderr of the setup task. * * @param stdOutErrPathPrefix the stdOutErrPathPrefix value to set * @return the SetupTask object itself. @@ -164,7 +164,7 @@ public SetupTask withStdOutErrPathPrefix(String stdOutErrPathPrefix) { } /** - * Get the stdOutErrPathSuffix value. + * Get batch AI creates the setup task output directories under an unique path to avoid conflicts between different clusters. You can concatinate stdOutErrPathPrefix and stdOutErrPathSuffix to get the full path to the output directory. * * @return the stdOutErrPathSuffix value */ diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/SshConfiguration.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/SshConfiguration.java index d37b2b094e79..d69e33622e1d 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/SshConfiguration.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/SshConfiguration.java @@ -30,7 +30,7 @@ public class SshConfiguration { private UserAccountSettings userAccountSettings; /** - * Get the publicIPsToAllow value. + * Get default value is '*' can be used to match all source IPs. Maximum number of IP ranges that can be specified are 400. * * @return the publicIPsToAllow value */ @@ -39,7 +39,7 @@ public List publicIPsToAllow() { } /** - * Set the publicIPsToAllow value. + * Set default value is '*' can be used to match all source IPs. Maximum number of IP ranges that can be specified are 400. * * @param publicIPsToAllow the publicIPsToAllow value to set * @return the SshConfiguration object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/TensorFlowSettings.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/TensorFlowSettings.java index 9bbcb939f039..166e07506ef5 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/TensorFlowSettings.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/TensorFlowSettings.java @@ -127,7 +127,7 @@ public TensorFlowSettings withMasterCommandLineArgs(String masterCommandLineArgs } /** - * Get the workerCommandLineArgs value. + * Get this property is optional for single machine training. * * @return the workerCommandLineArgs value */ @@ -136,7 +136,7 @@ public String workerCommandLineArgs() { } /** - * Set the workerCommandLineArgs value. + * Set this property is optional for single machine training. * * @param workerCommandLineArgs the workerCommandLineArgs value to set * @return the TensorFlowSettings object itself. @@ -147,7 +147,7 @@ public TensorFlowSettings withWorkerCommandLineArgs(String workerCommandLineArgs } /** - * Get the parameterServerCommandLineArgs value. + * Get this property is optional for single machine training. * * @return the parameterServerCommandLineArgs value */ @@ -156,7 +156,7 @@ public String parameterServerCommandLineArgs() { } /** - * Set the parameterServerCommandLineArgs value. + * Set this property is optional for single machine training. * * @param parameterServerCommandLineArgs the parameterServerCommandLineArgs value to set * @return the TensorFlowSettings object itself. @@ -167,7 +167,7 @@ public TensorFlowSettings withParameterServerCommandLineArgs(String parameterSer } /** - * Get the workerCount value. + * Get if specified, the value must be less than or equal to (nodeCount * numberOfGPUs per VM). If not specified, the default value is equal to nodeCount. This property can be specified only for distributed TensorFlow training. * * @return the workerCount value */ @@ -176,7 +176,7 @@ public Integer workerCount() { } /** - * Set the workerCount value. + * Set if specified, the value must be less than or equal to (nodeCount * numberOfGPUs per VM). If not specified, the default value is equal to nodeCount. This property can be specified only for distributed TensorFlow training. * * @param workerCount the workerCount value to set * @return the TensorFlowSettings object itself. @@ -187,7 +187,7 @@ public TensorFlowSettings withWorkerCount(Integer workerCount) { } /** - * Get the parameterServerCount value. + * Get if specified, the value must be less than or equal to nodeCount. If not specified, the default value is equal to 1 for distributed TensorFlow training (This property is not applicable for single machine training). This property can be specified only for distributed TensorFlow training. * * @return the parameterServerCount value */ @@ -196,7 +196,7 @@ public Integer parameterServerCount() { } /** - * Set the parameterServerCount value. + * Set if specified, the value must be less than or equal to nodeCount. If not specified, the default value is equal to 1 for distributed TensorFlow training (This property is not applicable for single machine training). This property can be specified only for distributed TensorFlow training. * * @param parameterServerCount the parameterServerCount value to set * @return the TensorFlowSettings object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/UnmanagedFileSystemReference.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/UnmanagedFileSystemReference.java index a29b92261496..3dc5f8171ee5 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/UnmanagedFileSystemReference.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/UnmanagedFileSystemReference.java @@ -51,7 +51,7 @@ public UnmanagedFileSystemReference withMountCommand(String mountCommand) { } /** - * Get the relativeMountPath value. + * Get note that all cluster level unmanaged file system will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and job level unmanaged file system will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. * * @return the relativeMountPath value */ @@ -60,7 +60,7 @@ public String relativeMountPath() { } /** - * Set the relativeMountPath value. + * Set note that all cluster level unmanaged file system will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and job level unmanaged file system will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. * * @param relativeMountPath the relativeMountPath value to set * @return the UnmanagedFileSystemReference object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/UsageName.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/UsageName.java index 6cec0d5bf4cf..20f04ed1d2fe 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/UsageName.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/UsageName.java @@ -27,7 +27,7 @@ public class UsageName { private String localizedValue; /** - * Get the value value. + * Get the name of the resource. * * @return the value value */ @@ -36,7 +36,7 @@ public String value() { } /** - * Set the value value. + * Set the name of the resource. * * @param value the value value to set * @return the UsageName object itself. @@ -47,7 +47,7 @@ public UsageName withValue(String value) { } /** - * Get the localizedValue value. + * Get the localized name of the resource. * * @return the localizedValue value */ @@ -56,7 +56,7 @@ public String localizedValue() { } /** - * Set the localizedValue value. + * Set the localized name of the resource. * * @param localizedValue the localizedValue value to set * @return the UsageName object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/ClusterInner.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/ClusterInner.java index 43dac98c6a8a..299d595be580 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/ClusterInner.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/ClusterInner.java @@ -148,7 +148,7 @@ public class ClusterInner extends Resource { private NodeStateCounts nodeStateCounts; /** - * Get the vmSize value. + * Get all virtual machines in a cluster are the same size. For information about available VM sizes for clusters using images from the Virtual Machines Marketplace (see Sizes for Virtual Machines (Linux) or Sizes for Virtual Machines (Windows). Batch AI service supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). * * @return the vmSize value */ @@ -157,7 +157,7 @@ public String vmSize() { } /** - * Set the vmSize value. + * Set all virtual machines in a cluster are the same size. For information about available VM sizes for clusters using images from the Virtual Machines Marketplace (see Sizes for Virtual Machines (Linux) or Sizes for Virtual Machines (Windows). Batch AI service supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). * * @param vmSize the vmSize value to set * @return the ClusterInner object itself. @@ -168,7 +168,7 @@ public ClusterInner withVmSize(String vmSize) { } /** - * Get the vmPriority value. + * Get the default value is dedicated. The node can get preempted while the task is running if lowpriority is choosen. This is best suited if the workload is checkpointing and can be restarted. Possible values include: 'dedicated', 'lowpriority'. * * @return the vmPriority value */ @@ -177,7 +177,7 @@ public VmPriority vmPriority() { } /** - * Set the vmPriority value. + * Set the default value is dedicated. The node can get preempted while the task is running if lowpriority is choosen. This is best suited if the workload is checkpointing and can be restarted. Possible values include: 'dedicated', 'lowpriority'. * * @param vmPriority the vmPriority value to set * @return the ClusterInner object itself. @@ -297,7 +297,7 @@ public DateTime creationTime() { } /** - * Get the provisioningState value. + * Get possible value are: creating - Specifies that the cluster is being created. succeeded - Specifies that the cluster has been created successfully. failed - Specifies that the cluster creation has failed. deleting - Specifies that the cluster is being deleted. Possible values include: 'creating', 'succeeded', 'failed', 'deleting'. * * @return the provisioningState value */ @@ -315,7 +315,7 @@ public DateTime provisioningStateTransitionTime() { } /** - * Get the allocationState value. + * Get possible values are: steady and resizing. steady state indicates that the cluster is not resizing. There are no changes to the number of compute nodes in the cluster in progress. A cluster enters this state when it is created and when no operations are being performed on the cluster to change the number of compute nodes. resizing state indicates that the cluster is resizing; that is, compute nodes are being added to or removed from the cluster. Possible values include: 'steady', 'resizing'. * * @return the allocationState value */ @@ -333,7 +333,7 @@ public DateTime allocationStateTransitionTime() { } /** - * Get the errors value. + * Get this element contains all the errors encountered by various compute nodes during node setup. * * @return the errors value */ @@ -342,7 +342,7 @@ public List errors() { } /** - * Set the errors value. + * Set this element contains all the errors encountered by various compute nodes during node setup. * * @param errors the errors value to set * @return the ClusterInner object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/ClustersImpl.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/ClustersImpl.java index b8cd2a134e46..6d9d9ed56cd3 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/ClustersImpl.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/ClustersImpl.java @@ -79,41 +79,22 @@ public PagedList listByResourceGroup(String resourceGroupName) { return this.wrapList(client.listByResourceGroup(resourceGroupName)); } - private Observable> listByResourceGroupNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - ClustersInner client = this.inner(); - return client.listByResourceGroupNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listByResourceGroupNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listByResourceGroupAsync(String resourceGroupName) { ClustersInner client = this.inner(); return client.listByResourceGroupAsync(resourceGroupName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listByResourceGroupNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Cluster call(ClusterInner inner) { return wrapModel(inner); } - }); + }); } @Override @@ -122,41 +103,22 @@ public PagedList list() { return this.wrapList(client.list()); } - private Observable> listNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - ClustersInner client = this.inner(); - return client.listNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listAsync() { ClustersInner client = this.inner(); return client.listAsync() - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Cluster call(ClusterInner inner) { return wrapModel(inner); } - }); + }); } @Override @@ -164,41 +126,22 @@ public ClusterImpl define(String name) { return wrapModel(name); } - private Observable> listRemoteLoginInformationNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - ClustersInner client = this.inner(); - return client.listRemoteLoginInformationNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listRemoteLoginInformationNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listRemoteLoginInformationAsync(final String resourceGroupName, final String clusterName) { ClustersInner client = this.inner(); return client.listRemoteLoginInformationAsync(resourceGroupName, clusterName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listRemoteLoginInformationNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public RemoteLoginInformation call(RemoteLoginInformationInner inner) { return new RemoteLoginInformationImpl(inner, manager()); } - }); + }); } @Override diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/FileInner.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/FileInner.java index 26ffa6b5cabd..6ee3fb4f0c2c 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/FileInner.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/FileInner.java @@ -51,7 +51,7 @@ public class FileInner { private Long contentLength; /** - * Get the name value. + * Get name of the file. * * @return the name value */ @@ -60,7 +60,7 @@ public String name() { } /** - * Set the name value. + * Set name of the file. * * @param name the name value to set * @return the FileInner object itself. @@ -71,7 +71,7 @@ public FileInner withName(String name) { } /** - * Get the isDirectory value. + * Get indicates if the file is a directory. * * @return the isDirectory value */ @@ -80,7 +80,7 @@ public boolean isDirectory() { } /** - * Set the isDirectory value. + * Set indicates if the file is a directory. * * @param isDirectory the isDirectory value to set * @return the FileInner object itself. @@ -111,7 +111,7 @@ public FileInner withDownloadUrl(String downloadUrl) { } /** - * Get the lastModified value. + * Get the time at which the file was last modified. * * @return the lastModified value */ @@ -120,7 +120,7 @@ public DateTime lastModified() { } /** - * Set the lastModified value. + * Set the time at which the file was last modified. * * @param lastModified the lastModified value to set * @return the FileInner object itself. @@ -131,7 +131,7 @@ public FileInner withLastModified(DateTime lastModified) { } /** - * Get the contentLength value. + * Get the file size. * * @return the contentLength value */ @@ -140,7 +140,7 @@ public Long contentLength() { } /** - * Set the contentLength value. + * Set the file size. * * @param contentLength the contentLength value to set * @return the FileInner object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/FileServerInner.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/FileServerInner.java index 0bac30f1f1c7..a35bc269f960 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/FileServerInner.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/FileServerInner.java @@ -84,7 +84,7 @@ public class FileServerInner extends Resource { private FileServerProvisioningState provisioningState; /** - * Get the vmSize value. + * Get for information about available VM sizes for File Server from the Virtual Machines Marketplace, see Sizes for Virtual Machines (Linux). * * @return the vmSize value */ @@ -93,7 +93,7 @@ public String vmSize() { } /** - * Set the vmSize value. + * Set for information about available VM sizes for File Server from the Virtual Machines Marketplace, see Sizes for Virtual Machines (Linux). * * @param vmSize the vmSize value to set * @return the FileServerInner object itself. @@ -191,7 +191,7 @@ public DateTime creationTime() { } /** - * Get the provisioningState value. + * Get possible values: creating - The File Server is getting created. updating - The File Server creation has been accepted and it is getting updated. deleting - The user has requested that the File Server be deleted, and it is in the process of being deleted. failed - The File Server creation has failed with the specified errorCode. Details about the error code are specified in the message field. succeeded - The File Server creation has succeeded. Possible values include: 'creating', 'updating', 'deleting', 'succeeded', 'failed'. * * @return the provisioningState value */ diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/FileServersImpl.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/FileServersImpl.java index f78921a52d09..4c374c13c083 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/FileServersImpl.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/FileServersImpl.java @@ -78,41 +78,22 @@ public PagedList listByResourceGroup(String resourceGroupName) { return this.wrapList(client.listByResourceGroup(resourceGroupName)); } - private Observable> listByResourceGroupNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - FileServersInner client = this.inner(); - return client.listByResourceGroupNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listByResourceGroupNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listByResourceGroupAsync(String resourceGroupName) { FileServersInner client = this.inner(); return client.listByResourceGroupAsync(resourceGroupName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listByResourceGroupNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public FileServer call(FileServerInner inner) { return wrapModel(inner); } - }); + }); } @Override @@ -121,41 +102,22 @@ public PagedList list() { return this.wrapList(client.list()); } - private Observable> listNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - FileServersInner client = this.inner(); - return client.listNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listAsync() { FileServersInner client = this.inner(); return client.listAsync() - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public FileServer call(FileServerInner inner) { return wrapModel(inner); } - }); + }); } @Override diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/JobInner.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/JobInner.java index 53201ff046db..51fe19cedbb2 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/JobInner.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/JobInner.java @@ -245,7 +245,7 @@ public class JobInner extends Resource { private JobPropertiesExecutionInfo executionInfo; /** - * Get the experimentName value. + * Get describe the experiment information of the job. * * @return the experimentName value */ @@ -254,7 +254,7 @@ public String experimentName() { } /** - * Set the experimentName value. + * Set describe the experiment information of the job. * * @param experimentName the experimentName value to set * @return the JobInner object itself. @@ -265,7 +265,7 @@ public JobInner withExperimentName(String experimentName) { } /** - * Get the priority value. + * Get priority associated with the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0. * * @return the priority value */ @@ -274,7 +274,7 @@ public Integer priority() { } /** - * Set the priority value. + * Set priority associated with the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0. * * @param priority the priority value to set * @return the JobInner object itself. @@ -305,7 +305,7 @@ public JobInner withCluster(ResourceId cluster) { } /** - * Get the mountVolumes value. + * Get these volumes will be mounted before the job execution and will be unmouted after the job completion. The volumes will be mounted at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable. * * @return the mountVolumes value */ @@ -314,7 +314,7 @@ public MountVolumes mountVolumes() { } /** - * Set the mountVolumes value. + * Set these volumes will be mounted before the job execution and will be unmouted after the job completion. The volumes will be mounted at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable. * * @param mountVolumes the mountVolumes value to set * @return the JobInner object itself. @@ -325,7 +325,7 @@ public JobInner withMountVolumes(MountVolumes mountVolumes) { } /** - * Get the jobOutputDirectoryPathSegment value. + * Get batch AI creates job's output directories under an unique path to avoid conflicts between jobs. This value contains a path segment generated by Batch AI to make the path unique and can be used to find the output directory on the node or mounted filesystem. * * @return the jobOutputDirectoryPathSegment value */ @@ -334,7 +334,7 @@ public String jobOutputDirectoryPathSegment() { } /** - * Set the jobOutputDirectoryPathSegment value. + * Set batch AI creates job's output directories under an unique path to avoid conflicts between jobs. This value contains a path segment generated by Batch AI to make the path unique and can be used to find the output directory on the node or mounted filesystem. * * @param jobOutputDirectoryPathSegment the jobOutputDirectoryPathSegment value to set * @return the JobInner object itself. @@ -345,7 +345,7 @@ public JobInner withJobOutputDirectoryPathSegment(String jobOutputDirectoryPathS } /** - * Get the nodeCount value. + * Get the job will be gang scheduled on that many compute nodes. * * @return the nodeCount value */ @@ -354,7 +354,7 @@ public Integer nodeCount() { } /** - * Set the nodeCount value. + * Set the job will be gang scheduled on that many compute nodes. * * @param nodeCount the nodeCount value to set * @return the JobInner object itself. @@ -365,7 +365,7 @@ public JobInner withNodeCount(Integer nodeCount) { } /** - * Get the containerSettings value. + * Get if the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM. * * @return the containerSettings value */ @@ -374,7 +374,7 @@ public ContainerSettings containerSettings() { } /** - * Set the containerSettings value. + * Set if the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM. * * @param containerSettings the containerSettings value to set * @return the JobInner object itself. @@ -385,7 +385,7 @@ public JobInner withContainerSettings(ContainerSettings containerSettings) { } /** - * Get the toolType value. + * Get possible values are: cntk, tensorflow, caffe, caffe2, chainer, pytorch, custom. Possible values include: 'cntk', 'tensorflow', 'caffe', 'caffe2', 'chainer', 'custom'. * * @return the toolType value */ @@ -394,7 +394,7 @@ public ToolType toolType() { } /** - * Set the toolType value. + * Set possible values are: cntk, tensorflow, caffe, caffe2, chainer, pytorch, custom. Possible values include: 'cntk', 'tensorflow', 'caffe', 'caffe2', 'chainer', 'custom'. * * @param toolType the toolType value to set * @return the JobInner object itself. @@ -525,7 +525,7 @@ public JobInner withCustomToolkitSettings(CustomToolkitSettings customToolkitSet } /** - * Get the jobPreparation value. + * Get the specified actions will run on all the nodes that are part of the job. * * @return the jobPreparation value */ @@ -534,7 +534,7 @@ public JobPreparation jobPreparation() { } /** - * Set the jobPreparation value. + * Set the specified actions will run on all the nodes that are part of the job. * * @param jobPreparation the jobPreparation value to set * @return the JobInner object itself. @@ -545,7 +545,7 @@ public JobInner withJobPreparation(JobPreparation jobPreparation) { } /** - * Get the stdOutErrPathPrefix value. + * Get the path where the Batch AI service will upload stdout and stderror of the job. * * @return the stdOutErrPathPrefix value */ @@ -554,7 +554,7 @@ public String stdOutErrPathPrefix() { } /** - * Set the stdOutErrPathPrefix value. + * Set the path where the Batch AI service will upload stdout and stderror of the job. * * @param stdOutErrPathPrefix the stdOutErrPathPrefix value to set * @return the JobInner object itself. @@ -605,7 +605,7 @@ public JobInner withOutputDirectories(List outputDirectories) { } /** - * Get the environmentVariables value. + * Get batch AI will setup these additional environment variables for the job. * * @return the environmentVariables value */ @@ -614,7 +614,7 @@ public List environmentVariables() { } /** - * Set the environmentVariables value. + * Set batch AI will setup these additional environment variables for the job. * * @param environmentVariables the environmentVariables value to set * @return the JobInner object itself. @@ -625,7 +625,7 @@ public JobInner withEnvironmentVariables(List environmentVa } /** - * Get the secrets value. + * Get batch AI will setup these additional environment variables for the job. Server will never report values of these variables back. * * @return the secrets value */ @@ -634,7 +634,7 @@ public List secrets() { } /** - * Set the secrets value. + * Set batch AI will setup these additional environment variables for the job. Server will never report values of these variables back. * * @param secrets the secrets value to set * @return the JobInner object itself. @@ -645,7 +645,7 @@ public JobInner withSecrets(List secrets) { } /** - * Get the constraints value. + * Get constraints associated with the Job. * * @return the constraints value */ @@ -654,7 +654,7 @@ public JobPropertiesConstraints constraints() { } /** - * Set the constraints value. + * Set constraints associated with the Job. * * @param constraints the constraints value to set * @return the JobInner object itself. @@ -665,7 +665,7 @@ public JobInner withConstraints(JobPropertiesConstraints constraints) { } /** - * Get the creationTime value. + * Get the creation time of the job. * * @return the creationTime value */ @@ -674,7 +674,7 @@ public DateTime creationTime() { } /** - * Get the provisioningState value. + * Get the provisioned state of the Batch AI job. Possible values include: 'creating', 'succeeded', 'failed', 'deleting'. * * @return the provisioningState value */ @@ -683,7 +683,7 @@ public ProvisioningState provisioningState() { } /** - * Get the provisioningStateTransitionTime value. + * Get the time at which the job entered its current provisioning state. * * @return the provisioningStateTransitionTime value */ @@ -692,7 +692,7 @@ public DateTime provisioningStateTransitionTime() { } /** - * Get the executionState value. + * Get the current state of the job. Possible values are: queued - The job is queued and able to run. A job enters this state when it is created, or when it is awaiting a retry after a failed run. running - The job is running on a compute cluster. This includes job-level preparation such as downloading resource files or set up container specified on the job - it does not necessarily mean that the job command line has started executing. terminating - The job is terminated by the user, the terminate operation is in progress. succeeded - The job has completed running succesfully and exited with exit code 0. failed - The job has finished unsuccessfully (failed with a non-zero exit code) and has exhausted its retry limit. A job is also marked as failed if an error occurred launching the job. Possible values include: 'queued', 'running', 'terminating', 'succeeded', 'failed'. * * @return the executionState value */ @@ -701,7 +701,7 @@ public ExecutionState executionState() { } /** - * Set the executionState value. + * Set the current state of the job. Possible values are: queued - The job is queued and able to run. A job enters this state when it is created, or when it is awaiting a retry after a failed run. running - The job is running on a compute cluster. This includes job-level preparation such as downloading resource files or set up container specified on the job - it does not necessarily mean that the job command line has started executing. terminating - The job is terminated by the user, the terminate operation is in progress. succeeded - The job has completed running succesfully and exited with exit code 0. failed - The job has finished unsuccessfully (failed with a non-zero exit code) and has exhausted its retry limit. A job is also marked as failed if an error occurred launching the job. Possible values include: 'queued', 'running', 'terminating', 'succeeded', 'failed'. * * @param executionState the executionState value to set * @return the JobInner object itself. @@ -712,7 +712,7 @@ public JobInner withExecutionState(ExecutionState executionState) { } /** - * Get the executionStateTransitionTime value. + * Get the time at which the job entered its current execution state. * * @return the executionStateTransitionTime value */ @@ -721,7 +721,7 @@ public DateTime executionStateTransitionTime() { } /** - * Get the executionInfo value. + * Get contains information about the execution of a job in the Azure Batch service. * * @return the executionInfo value */ @@ -730,7 +730,7 @@ public JobPropertiesExecutionInfo executionInfo() { } /** - * Set the executionInfo value. + * Set contains information about the execution of a job in the Azure Batch service. * * @param executionInfo the executionInfo value to set * @return the JobInner object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/JobsImpl.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/JobsImpl.java index 0a63438fd553..002aaee0c42f 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/JobsImpl.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/JobsImpl.java @@ -81,41 +81,22 @@ public PagedList listByResourceGroup(String resourceGroupName) { return this.wrapList(client.listByResourceGroup(resourceGroupName)); } - private Observable> listByResourceGroupNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - JobsInner client = this.inner(); - return client.listByResourceGroupNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listByResourceGroupNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listByResourceGroupAsync(String resourceGroupName) { JobsInner client = this.inner(); return client.listByResourceGroupAsync(resourceGroupName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listByResourceGroupNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Job call(JobInner inner) { return wrapModel(inner); } - }); + }); } @Override @@ -124,41 +105,22 @@ public PagedList list() { return this.wrapList(client.list()); } - private Observable> listNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - JobsInner client = this.inner(); - return client.listNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listAsync() { JobsInner client = this.inner(); return client.listAsync() - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Job call(JobInner inner) { return wrapModel(inner); } - }); + }); } @Override @@ -166,41 +128,22 @@ public JobImpl define(String name) { return wrapModel(name); } - private Observable> listRemoteLoginInformationNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - JobsInner client = this.inner(); - return client.listRemoteLoginInformationNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listRemoteLoginInformationNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listRemoteLoginInformationAsync(final String resourceGroupName, final String jobName) { JobsInner client = this.inner(); return client.listRemoteLoginInformationAsync(resourceGroupName, jobName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listRemoteLoginInformationNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public RemoteLoginInformation call(RemoteLoginInformationInner inner) { return new RemoteLoginInformationImpl(inner, manager()); } - }); + }); } @Override @@ -209,41 +152,22 @@ public Completable terminateAsync(String resourceGroupName, String jobName) { return client.terminateAsync(resourceGroupName, jobName).toCompletable(); } - private Observable> listOutputFilesNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - JobsInner client = this.inner(); - return client.listOutputFilesNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listOutputFilesNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listOutputFilesAsync(final String resourceGroupName, final String jobName, final JobsListOutputFilesOptions jobsListOutputFilesOptions) { JobsInner client = this.inner(); return client.listOutputFilesAsync(resourceGroupName, jobName, jobsListOutputFilesOptions) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listOutputFilesNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public File call(FileInner inner) { return new FileImpl(inner, manager()); } - }); + }); } @Override diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/OperationInner.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/OperationInner.java index 0031ef386658..87f9e3cd815b 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/OperationInner.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/OperationInner.java @@ -42,7 +42,7 @@ public class OperationInner { private Object properties; /** - * Get the name value. + * Get this is of the format {provider}/{resource}/{operation}. * * @return the name value */ @@ -51,7 +51,7 @@ public String name() { } /** - * Set the name value. + * Set this is of the format {provider}/{resource}/{operation}. * * @param name the name value to set * @return the OperationInner object itself. @@ -62,7 +62,7 @@ public OperationInner withName(String name) { } /** - * Get the display value. + * Get the object that describes the operation. * * @return the display value */ @@ -71,7 +71,7 @@ public OperationDisplay display() { } /** - * Set the display value. + * Set the object that describes the operation. * * @param display the display value to set * @return the OperationInner object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/OperationsImpl.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/OperationsImpl.java index 914fb6fe4ba5..33204b84ccc6 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/OperationsImpl.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/OperationsImpl.java @@ -28,41 +28,22 @@ public BatchAIManager manager() { return this.manager; } - private Observable> listNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - OperationsInner client = this.inner(); - return client.listNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listAsync() { OperationsInner client = this.inner(); return client.listAsync() - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Operation call(OperationInner inner) { return new OperationImpl(inner, manager()); } - }); + }); } } diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/RemoteLoginInformationInner.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/RemoteLoginInformationInner.java index 88e2102aa811..329777d1ad8a 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/RemoteLoginInformationInner.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/RemoteLoginInformationInner.java @@ -33,7 +33,7 @@ public class RemoteLoginInformationInner { private double port; /** - * Get the nodeId value. + * Get id of the compute node. * * @return the nodeId value */ @@ -42,7 +42,7 @@ public String nodeId() { } /** - * Set the nodeId value. + * Set id of the compute node. * * @param nodeId the nodeId value to set * @return the RemoteLoginInformationInner object itself. @@ -53,7 +53,7 @@ public RemoteLoginInformationInner withNodeId(String nodeId) { } /** - * Get the ipAddress value. + * Get ip address. * * @return the ipAddress value */ @@ -62,7 +62,7 @@ public String ipAddress() { } /** - * Set the ipAddress value. + * Set ip address. * * @param ipAddress the ipAddress value to set * @return the RemoteLoginInformationInner object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/UsageInner.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/UsageInner.java index 7019b34614cf..14e901cf18d5 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/UsageInner.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/UsageInner.java @@ -41,13 +41,16 @@ public class UsageInner { /** * Creates an instance of UsageInner class. + * @param currentValue the current usage of the resource. + * @param limit the maximum permitted usage of the resource. + * @param name the name of the type of usage. */ public UsageInner() { unit = "Count"; } /** - * Get the unit value. + * Get an enum describing the unit of usage measurement. * * @return the unit value */ @@ -56,7 +59,7 @@ public String unit() { } /** - * Set the unit value. + * Set an enum describing the unit of usage measurement. * * @param unit the unit value to set * @return the UsageInner object itself. @@ -67,7 +70,7 @@ public UsageInner withUnit(String unit) { } /** - * Get the currentValue value. + * Get the current usage of the resource. * * @return the currentValue value */ @@ -76,7 +79,7 @@ public int currentValue() { } /** - * Set the currentValue value. + * Set the current usage of the resource. * * @param currentValue the currentValue value to set * @return the UsageInner object itself. @@ -87,7 +90,7 @@ public UsageInner withCurrentValue(int currentValue) { } /** - * Get the limit value. + * Get the maximum permitted usage of the resource. * * @return the limit value */ @@ -96,7 +99,7 @@ public long limit() { } /** - * Set the limit value. + * Set the maximum permitted usage of the resource. * * @param limit the limit value to set * @return the UsageInner object itself. @@ -107,7 +110,7 @@ public UsageInner withLimit(long limit) { } /** - * Get the name value. + * Get the name of the type of usage. * * @return the name value */ @@ -116,7 +119,7 @@ public UsageName name() { } /** - * Set the name value. + * Set the name of the type of usage. * * @param name the name value to set * @return the UsageInner object itself. diff --git a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/UsagesImpl.java b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/UsagesImpl.java index 38813f2a0cca..b79391ed4154 100644 --- a/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/UsagesImpl.java +++ b/batchai/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/batchai/v2018_03_01/implementation/UsagesImpl.java @@ -32,41 +32,22 @@ private UsageImpl wrapModel(UsageInner inner) { return new UsageImpl(inner, manager()); } - private Observable> listNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - UsagesInner client = this.inner(); - return client.listNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listAsync(final String location) { UsagesInner client = this.inner(); return client.listAsync(location) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Usage call(UsageInner inner) { return wrapModel(inner); } - }); + }); } } diff --git a/batchai/resource-manager/v2018_05_01/pom.xml b/batchai/resource-manager/v2018_05_01/pom.xml index 562c2e607f64..1d1816fcd61a 100644 --- a/batchai/resource-manager/v2018_05_01/pom.xml +++ b/batchai/resource-manager/v2018_05_01/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.azure-mgmt-batchai-2018-05-01 - - com.microsoft.azure - azure-arm-parent - 0.0.2-beta - ../../../pom.xml - - azure-mgmt-batchai - 1.0.0-beta-SNAPSHOT - jar - Microsoft Azure SDK for BatchAI Management - This package contains Microsoft BatchAI Management SDK. - https://github.com/Azure/azure-libraries-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-libraries-for-java - scm:git:git@github.com:Azure/azure-libraries-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - - - com.microsoft.azure - azure-arm-client-runtime - - - junit - junit - test - - - com.microsoft.azure - azure-client-authentication - test - - - com.microsoft.azure - azure-mgmt-resources - test - - - com.microsoft.azure - azure-arm-client-runtime - test-jar - test - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
+ + + 4.0.0 + com.microsoft.azure.batchai.v2018_05_01 + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-batchai + 1.0.0-beta + jar + Microsoft Azure SDK for BatchAI Management + This package contains Microsoft BatchAI Management SDK. + https://github.com/Azure/azure-libraries-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-libraries-for-java + scm:git:git@github.com:Azure/azure-libraries-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/AppInsightsReference.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/AppInsightsReference.java index 29218e06a580..0aa15ab82967 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/AppInsightsReference.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/AppInsightsReference.java @@ -11,34 +11,34 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Specifies Azure Application Insights information for performance counters - * reporting. + * Azure Application Insights information for performance counters reporting. */ public class AppInsightsReference { /** - * Specifies the Azure Application Insights component resource id. + * Component ID. + * Azure Application Insights component resource ID. */ @JsonProperty(value = "component", required = true) private ResourceId component; /** + * Instrumentation Key. * Value of the Azure Application Insights instrumentation key. */ @JsonProperty(value = "instrumentationKey") private String instrumentationKey; /** - * Specifies a KeyVault Secret containing Azure Application Insights - * instrumentation key. - * Specifies KeyVault Store and Secret which contains Azure Application - * Insights instrumentation key. One of instumentationKey or + * Instrumentation key KeyVault Secret reference. + * KeyVault Store and Secret which contains Azure Application Insights + * instrumentation key. One of instrumentationKey or * instrumentationKeySecretReference must be specified. */ @JsonProperty(value = "instrumentationKeySecretReference") private KeyVaultSecretReference instrumentationKeySecretReference; /** - * Get the component value. + * Get azure Application Insights component resource ID. * * @return the component value */ @@ -47,7 +47,7 @@ public ResourceId component() { } /** - * Set the component value. + * Set azure Application Insights component resource ID. * * @param component the component value to set * @return the AppInsightsReference object itself. @@ -58,7 +58,7 @@ public AppInsightsReference withComponent(ResourceId component) { } /** - * Get the instrumentationKey value. + * Get value of the Azure Application Insights instrumentation key. * * @return the instrumentationKey value */ @@ -67,7 +67,7 @@ public String instrumentationKey() { } /** - * Set the instrumentationKey value. + * Set value of the Azure Application Insights instrumentation key. * * @param instrumentationKey the instrumentationKey value to set * @return the AppInsightsReference object itself. @@ -78,7 +78,7 @@ public AppInsightsReference withInstrumentationKey(String instrumentationKey) { } /** - * Get the instrumentationKeySecretReference value. + * Get keyVault Store and Secret which contains Azure Application Insights instrumentation key. One of instrumentationKey or instrumentationKeySecretReference must be specified. * * @return the instrumentationKeySecretReference value */ @@ -87,7 +87,7 @@ public KeyVaultSecretReference instrumentationKeySecretReference() { } /** - * Set the instrumentationKeySecretReference value. + * Set keyVault Store and Secret which contains Azure Application Insights instrumentation key. One of instrumentationKey or instrumentationKeySecretReference must be specified. * * @param instrumentationKeySecretReference the instrumentationKeySecretReference value to set * @return the AppInsightsReference object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/AutoScaleSettings.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/AutoScaleSettings.java index a598a92118fb..e26069b111c7 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/AutoScaleSettings.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/AutoScaleSettings.java @@ -11,32 +11,38 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * The system automatically scales the cluster up and down (within - * minimumNodeCount and maximumNodeCount) based on the pending and running jobs - * on the cluster. + * Auto-scale settings for the cluster. The system automatically scales the + * cluster up and down (within minimumNodeCount and maximumNodeCount) based on + * the number of queued and running jobs assigned to the cluster. */ public class AutoScaleSettings { /** - * Specifies the minimum number of compute nodes the cluster can have. + * Minimum node count. + * The minimum number of compute nodes the Batch AI service will try to + * allocate for the cluster. Note, the actual number of nodes can be less + * than the specified value if the subscription has not enough quota to + * fulfill the request. */ @JsonProperty(value = "minimumNodeCount", required = true) private int minimumNodeCount; /** - * Specifies the maximum number of compute nodes the cluster can have. + * Maximum node count. + * The maximum number of compute nodes the cluster can have. */ @JsonProperty(value = "maximumNodeCount", required = true) private int maximumNodeCount; /** - * Specifies the number of compute nodes to allocate on cluster creation. - * Note that this value is used only during cluster creation. + * Initial node count. + * The number of compute nodes to allocate on cluster creation. Note that + * this value is used only during cluster creation. Default: 0. */ @JsonProperty(value = "initialNodeCount") private Integer initialNodeCount; /** - * Get the minimumNodeCount value. + * Get the minimum number of compute nodes the Batch AI service will try to allocate for the cluster. Note, the actual number of nodes can be less than the specified value if the subscription has not enough quota to fulfill the request. * * @return the minimumNodeCount value */ @@ -45,7 +51,7 @@ public int minimumNodeCount() { } /** - * Set the minimumNodeCount value. + * Set the minimum number of compute nodes the Batch AI service will try to allocate for the cluster. Note, the actual number of nodes can be less than the specified value if the subscription has not enough quota to fulfill the request. * * @param minimumNodeCount the minimumNodeCount value to set * @return the AutoScaleSettings object itself. @@ -56,7 +62,7 @@ public AutoScaleSettings withMinimumNodeCount(int minimumNodeCount) { } /** - * Get the maximumNodeCount value. + * Get the maximum number of compute nodes the cluster can have. * * @return the maximumNodeCount value */ @@ -65,7 +71,7 @@ public int maximumNodeCount() { } /** - * Set the maximumNodeCount value. + * Set the maximum number of compute nodes the cluster can have. * * @param maximumNodeCount the maximumNodeCount value to set * @return the AutoScaleSettings object itself. @@ -76,7 +82,7 @@ public AutoScaleSettings withMaximumNodeCount(int maximumNodeCount) { } /** - * Get the initialNodeCount value. + * Get the number of compute nodes to allocate on cluster creation. Note that this value is used only during cluster creation. Default: 0. * * @return the initialNodeCount value */ @@ -85,7 +91,7 @@ public Integer initialNodeCount() { } /** - * Set the initialNodeCount value. + * Set the number of compute nodes to allocate on cluster creation. Note that this value is used only during cluster creation. Default: 0. * * @param initialNodeCount the initialNodeCount value to set * @return the AutoScaleSettings object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/AzureBlobFileSystemReference.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/AzureBlobFileSystemReference.java index 0527e3b303c1..a888a0148d4e 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/AzureBlobFileSystemReference.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/AzureBlobFileSystemReference.java @@ -11,47 +11,49 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Provides required information, for the service to be able to mount Azure - * Blob Storage container on the cluster nodes. + * Azure Blob Storage Container mounting configuration. */ public class AzureBlobFileSystemReference { /** - * Name of the Azure Blob Storage account. + * Account name. + * Name of the Azure storage account. */ @JsonProperty(value = "accountName", required = true) private String accountName; /** + * Container name. * Name of the Azure Blob Storage container to mount on the cluster. */ @JsonProperty(value = "containerName", required = true) private String containerName; /** - * Information of the Azure Blob Storage account credentials. + * Credentials. + * Information about the Azure storage credentials. */ @JsonProperty(value = "credentials", required = true) private AzureStorageCredentialsInfo credentials; /** - * Specifies the relative path on the compute node where the Azure Blob - * file system will be mounted. - * Note that all cluster level blob file systems will be mounted under - * $AZ_BATCHAI_MOUNT_ROOT location and all job level blob file systems will + * Relative mount path. + * The relative path on the compute node where the Azure File container + * will be mounted. Note that all cluster level containers will be mounted + * under $AZ_BATCHAI_MOUNT_ROOT location and all job level containers will * be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. */ @JsonProperty(value = "relativeMountPath", required = true) private String relativeMountPath; /** - * Specifies the various mount options that can be used to configure Blob - * file system. + * Mount options. + * Mount options for mounting blobfuse file system. */ @JsonProperty(value = "mountOptions") private String mountOptions; /** - * Get the accountName value. + * Get name of the Azure storage account. * * @return the accountName value */ @@ -60,7 +62,7 @@ public String accountName() { } /** - * Set the accountName value. + * Set name of the Azure storage account. * * @param accountName the accountName value to set * @return the AzureBlobFileSystemReference object itself. @@ -71,7 +73,7 @@ public AzureBlobFileSystemReference withAccountName(String accountName) { } /** - * Get the containerName value. + * Get name of the Azure Blob Storage container to mount on the cluster. * * @return the containerName value */ @@ -80,7 +82,7 @@ public String containerName() { } /** - * Set the containerName value. + * Set name of the Azure Blob Storage container to mount on the cluster. * * @param containerName the containerName value to set * @return the AzureBlobFileSystemReference object itself. @@ -91,7 +93,7 @@ public AzureBlobFileSystemReference withContainerName(String containerName) { } /** - * Get the credentials value. + * Get information about the Azure storage credentials. * * @return the credentials value */ @@ -100,7 +102,7 @@ public AzureStorageCredentialsInfo credentials() { } /** - * Set the credentials value. + * Set information about the Azure storage credentials. * * @param credentials the credentials value to set * @return the AzureBlobFileSystemReference object itself. @@ -111,7 +113,7 @@ public AzureBlobFileSystemReference withCredentials(AzureStorageCredentialsInfo } /** - * Get the relativeMountPath value. + * Get the relative path on the compute node where the Azure File container will be mounted. Note that all cluster level containers will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level containers will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. * * @return the relativeMountPath value */ @@ -120,7 +122,7 @@ public String relativeMountPath() { } /** - * Set the relativeMountPath value. + * Set the relative path on the compute node where the Azure File container will be mounted. Note that all cluster level containers will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level containers will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. * * @param relativeMountPath the relativeMountPath value to set * @return the AzureBlobFileSystemReference object itself. @@ -131,7 +133,7 @@ public AzureBlobFileSystemReference withRelativeMountPath(String relativeMountPa } /** - * Get the mountOptions value. + * Get mount options for mounting blobfuse file system. * * @return the mountOptions value */ @@ -140,7 +142,7 @@ public String mountOptions() { } /** - * Set the mountOptions value. + * Set mount options for mounting blobfuse file system. * * @param mountOptions the mountOptions value to set * @return the AzureBlobFileSystemReference object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/AzureFileShareReference.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/AzureFileShareReference.java index 751c987b3205..9e11bd3ad0a3 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/AzureFileShareReference.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/AzureFileShareReference.java @@ -11,31 +11,34 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Details of the Azure File Share to mount on the cluster. + * Azure File Share mounting configuration. */ public class AzureFileShareReference { /** - * Name of the storage account. + * Account name. + * Name of the Azure storage account. */ @JsonProperty(value = "accountName", required = true) private String accountName; /** + * Azure File URL. * URL to access the Azure File. */ @JsonProperty(value = "azureFileUrl", required = true) private String azureFileUrl; /** - * Information of the Azure File credentials. + * Credentials. + * Information about the Azure storage credentials. */ @JsonProperty(value = "credentials", required = true) private AzureStorageCredentialsInfo credentials; /** - * Specifies the relative path on the compute node where the Azure file - * share will be mounted. - * Note that all cluster level file shares will be mounted under + * Relative mount path. + * The relative path on the compute node where the Azure File share will be + * mounted. Note that all cluster level file shares will be mounted under * $AZ_BATCHAI_MOUNT_ROOT location and all job level file shares will be * mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. */ @@ -43,21 +46,22 @@ public class AzureFileShareReference { private String relativeMountPath; /** - * Specifies the file mode. - * Default value is 0777. Valid only if OS is linux. + * File mode. + * File mode for files on the mounted file share. Default value: 0777. */ @JsonProperty(value = "fileMode") private String fileMode; /** - * Specifies the directory Mode. - * Default value is 0777. Valid only if OS is linux. + * Directory mode. + * File mode for directories on the mounted file share. Default value: + * 0777. */ @JsonProperty(value = "directoryMode") private String directoryMode; /** - * Get the accountName value. + * Get name of the Azure storage account. * * @return the accountName value */ @@ -66,7 +70,7 @@ public String accountName() { } /** - * Set the accountName value. + * Set name of the Azure storage account. * * @param accountName the accountName value to set * @return the AzureFileShareReference object itself. @@ -77,7 +81,7 @@ public AzureFileShareReference withAccountName(String accountName) { } /** - * Get the azureFileUrl value. + * Get uRL to access the Azure File. * * @return the azureFileUrl value */ @@ -86,7 +90,7 @@ public String azureFileUrl() { } /** - * Set the azureFileUrl value. + * Set uRL to access the Azure File. * * @param azureFileUrl the azureFileUrl value to set * @return the AzureFileShareReference object itself. @@ -97,7 +101,7 @@ public AzureFileShareReference withAzureFileUrl(String azureFileUrl) { } /** - * Get the credentials value. + * Get information about the Azure storage credentials. * * @return the credentials value */ @@ -106,7 +110,7 @@ public AzureStorageCredentialsInfo credentials() { } /** - * Set the credentials value. + * Set information about the Azure storage credentials. * * @param credentials the credentials value to set * @return the AzureFileShareReference object itself. @@ -117,7 +121,7 @@ public AzureFileShareReference withCredentials(AzureStorageCredentialsInfo crede } /** - * Get the relativeMountPath value. + * Get the relative path on the compute node where the Azure File share will be mounted. Note that all cluster level file shares will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level file shares will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. * * @return the relativeMountPath value */ @@ -126,7 +130,7 @@ public String relativeMountPath() { } /** - * Set the relativeMountPath value. + * Set the relative path on the compute node where the Azure File share will be mounted. Note that all cluster level file shares will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level file shares will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. * * @param relativeMountPath the relativeMountPath value to set * @return the AzureFileShareReference object itself. @@ -137,7 +141,7 @@ public AzureFileShareReference withRelativeMountPath(String relativeMountPath) { } /** - * Get the fileMode value. + * Get file mode for files on the mounted file share. Default value: 0777. * * @return the fileMode value */ @@ -146,7 +150,7 @@ public String fileMode() { } /** - * Set the fileMode value. + * Set file mode for files on the mounted file share. Default value: 0777. * * @param fileMode the fileMode value to set * @return the AzureFileShareReference object itself. @@ -157,7 +161,7 @@ public AzureFileShareReference withFileMode(String fileMode) { } /** - * Get the directoryMode value. + * Get file mode for directories on the mounted file share. Default value: 0777. * * @return the directoryMode value */ @@ -166,7 +170,7 @@ public String directoryMode() { } /** - * Set the directoryMode value. + * Set file mode for directories on the mounted file share. Default value: 0777. * * @param directoryMode the directoryMode value to set * @return the AzureFileShareReference object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/AzureStorageCredentialsInfo.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/AzureStorageCredentialsInfo.java index 9ec550069ac0..7a354e403dc6 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/AzureStorageCredentialsInfo.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/AzureStorageCredentialsInfo.java @@ -11,28 +11,27 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Credentials to access Azure File Share. + * Azure storage account credentials. */ public class AzureStorageCredentialsInfo { /** - * Storage account key. - * One of accountKey or accountKeySecretReference must be specified. + * Account key. + * Storage account key. One of accountKey or accountKeySecretReference must + * be specified. */ @JsonProperty(value = "accountKey") private String accountKey; /** - * Specifies the location of the storage account key, which is a Key Vault - * Secret. - * Users can store their secrets in Azure KeyVault and pass it to the Batch - * AI Service to integrate with KeyVault. One of accountKey or - * accountKeySecretReference must be specified. + * Account key secret reference. + * Information about KeyVault secret storing the storage account key. One + * of accountKey or accountKeySecretReference must be specified. */ @JsonProperty(value = "accountKeySecretReference") private KeyVaultSecretReference accountKeySecretReference; /** - * Get the accountKey value. + * Get storage account key. One of accountKey or accountKeySecretReference must be specified. * * @return the accountKey value */ @@ -41,7 +40,7 @@ public String accountKey() { } /** - * Set the accountKey value. + * Set storage account key. One of accountKey or accountKeySecretReference must be specified. * * @param accountKey the accountKey value to set * @return the AzureStorageCredentialsInfo object itself. @@ -52,7 +51,7 @@ public AzureStorageCredentialsInfo withAccountKey(String accountKey) { } /** - * Get the accountKeySecretReference value. + * Get information about KeyVault secret storing the storage account key. One of accountKey or accountKeySecretReference must be specified. * * @return the accountKeySecretReference value */ @@ -61,7 +60,7 @@ public KeyVaultSecretReference accountKeySecretReference() { } /** - * Set the accountKeySecretReference value. + * Set information about KeyVault secret storing the storage account key. One of accountKey or accountKeySecretReference must be specified. * * @param accountKeySecretReference the accountKeySecretReference value to set * @return the AzureStorageCredentialsInfo object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/BatchAIError.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/BatchAIError.java index ea77a5c663e2..a7b2b3535eae 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/BatchAIError.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/BatchAIError.java @@ -16,7 +16,7 @@ */ public class BatchAIError { /** - * An identifier for the error. Codes are invariant and are intended to be + * An identifier of the error. Codes are invariant and are intended to be * consumed programmatically. */ @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY) @@ -36,7 +36,7 @@ public class BatchAIError { private List details; /** - * Get the code value. + * Get an identifier of the error. Codes are invariant and are intended to be consumed programmatically. * * @return the code value */ @@ -45,7 +45,7 @@ public String code() { } /** - * Get the message value. + * Get a message describing the error, intended to be suitable for display in a user interface. * * @return the message value */ @@ -54,7 +54,7 @@ public String message() { } /** - * Get the details value. + * Get a list of additional details about the error. * * @return the details value */ diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/CNTKsettings.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/CNTKsettings.java index ff788c4ad805..cbd17a9f1866 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/CNTKsettings.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/CNTKsettings.java @@ -11,55 +11,59 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Specifies the settings for CNTK (aka Microsoft Cognitive Toolkit) job. + * CNTK (aka Microsoft Cognitive Toolkit) job settings. */ public class CNTKsettings { /** - * Specifies the language type to use for launching CNTK (aka Microsoft - * Cognitive Toolkit) job. - * Valid values are 'BrainScript' or 'Python'. + * Language type. + * The language to use for launching CNTK (aka Microsoft Cognitive Toolkit) + * job. Valid values are 'BrainScript' or 'Python'. */ @JsonProperty(value = "languageType") private String languageType; /** - * Specifies the path of the config file. - * This property can be specified only if the languageType is - * 'BrainScript'. + * Config file path. + * Specifies the path of the BrainScript config file. This property can be + * specified only if the languageType is 'BrainScript'. */ @JsonProperty(value = "configFilePath") private String configFilePath; /** - * The path and file name of the python script to execute the job. - * This property can be specified only if the languageType is 'Python'. + * Python script file path. + * Python script to execute. This property can be specified only if the + * languageType is 'Python'. */ @JsonProperty(value = "pythonScriptFilePath") private String pythonScriptFilePath; /** - * The path to python interpreter. - * This property can be specified only if the languageType is 'Python'. + * Python interpreter path. + * The path to the Python interpreter. This property can be specified only + * if the languageType is 'Python'. */ @JsonProperty(value = "pythonInterpreterPath") private String pythonInterpreterPath; /** - * Command line arguments that needs to be passed to the python script or - * CNTK.exe. + * Command line arguments. + * Command line arguments that need to be passed to the python script or + * cntk executable. */ @JsonProperty(value = "commandLineArgs") private String commandLineArgs; /** - * Number of processes parameter that is passed to MPI runtime. - * The default value for this property is equal to nodeCount property. + * Process count. + * Number of processes to launch for the job execution. The default value + * for this property is equal to nodeCount property. */ @JsonProperty(value = "processCount") private Integer processCount; /** - * Get the languageType value. + * Get the language to use for launching CNTK (aka Microsoft Cognitive Toolkit) job. Valid values are 'BrainScript' or 'Python'. * * @return the languageType value */ @@ -68,7 +72,7 @@ public String languageType() { } /** - * Set the languageType value. + * Set the language to use for launching CNTK (aka Microsoft Cognitive Toolkit) job. Valid values are 'BrainScript' or 'Python'. * * @param languageType the languageType value to set * @return the CNTKsettings object itself. @@ -79,7 +83,7 @@ public CNTKsettings withLanguageType(String languageType) { } /** - * Get the configFilePath value. + * Get specifies the path of the BrainScript config file. This property can be specified only if the languageType is 'BrainScript'. * * @return the configFilePath value */ @@ -88,7 +92,7 @@ public String configFilePath() { } /** - * Set the configFilePath value. + * Set specifies the path of the BrainScript config file. This property can be specified only if the languageType is 'BrainScript'. * * @param configFilePath the configFilePath value to set * @return the CNTKsettings object itself. @@ -99,7 +103,7 @@ public CNTKsettings withConfigFilePath(String configFilePath) { } /** - * Get the pythonScriptFilePath value. + * Get python script to execute. This property can be specified only if the languageType is 'Python'. * * @return the pythonScriptFilePath value */ @@ -108,7 +112,7 @@ public String pythonScriptFilePath() { } /** - * Set the pythonScriptFilePath value. + * Set python script to execute. This property can be specified only if the languageType is 'Python'. * * @param pythonScriptFilePath the pythonScriptFilePath value to set * @return the CNTKsettings object itself. @@ -119,7 +123,7 @@ public CNTKsettings withPythonScriptFilePath(String pythonScriptFilePath) { } /** - * Get the pythonInterpreterPath value. + * Get the path to the Python interpreter. This property can be specified only if the languageType is 'Python'. * * @return the pythonInterpreterPath value */ @@ -128,7 +132,7 @@ public String pythonInterpreterPath() { } /** - * Set the pythonInterpreterPath value. + * Set the path to the Python interpreter. This property can be specified only if the languageType is 'Python'. * * @param pythonInterpreterPath the pythonInterpreterPath value to set * @return the CNTKsettings object itself. @@ -139,7 +143,7 @@ public CNTKsettings withPythonInterpreterPath(String pythonInterpreterPath) { } /** - * Get the commandLineArgs value. + * Get command line arguments that need to be passed to the python script or cntk executable. * * @return the commandLineArgs value */ @@ -148,7 +152,7 @@ public String commandLineArgs() { } /** - * Set the commandLineArgs value. + * Set command line arguments that need to be passed to the python script or cntk executable. * * @param commandLineArgs the commandLineArgs value to set * @return the CNTKsettings object itself. @@ -159,7 +163,7 @@ public CNTKsettings withCommandLineArgs(String commandLineArgs) { } /** - * Get the processCount value. + * Get number of processes to launch for the job execution. The default value for this property is equal to nodeCount property. * * @return the processCount value */ @@ -168,7 +172,7 @@ public Integer processCount() { } /** - * Set the processCount value. + * Set number of processes to launch for the job execution. The default value for this property is equal to nodeCount property. * * @param processCount the processCount value to set * @return the CNTKsettings object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/Caffe2Settings.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/Caffe2Settings.java index 0370f055992e..7c10d5cbff45 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/Caffe2Settings.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/Caffe2Settings.java @@ -11,29 +11,32 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Specifies the settings for Caffe2 job. + * Caffe2 job settings. */ public class Caffe2Settings { /** - * The path and file name of the python script to execute the job. + * Python script file path. + * The python script to execute. */ @JsonProperty(value = "pythonScriptFilePath", required = true) private String pythonScriptFilePath; /** - * The path to python interpreter. + * Python interpreter path. + * The path to the Python interpreter. */ @JsonProperty(value = "pythonInterpreterPath") private String pythonInterpreterPath; /** - * Command line arguments that needs to be passed to the python script. + * Command line arguments. + * Command line arguments that need to be passed to the python script. */ @JsonProperty(value = "commandLineArgs") private String commandLineArgs; /** - * Get the pythonScriptFilePath value. + * Get the python script to execute. * * @return the pythonScriptFilePath value */ @@ -42,7 +45,7 @@ public String pythonScriptFilePath() { } /** - * Set the pythonScriptFilePath value. + * Set the python script to execute. * * @param pythonScriptFilePath the pythonScriptFilePath value to set * @return the Caffe2Settings object itself. @@ -53,7 +56,7 @@ public Caffe2Settings withPythonScriptFilePath(String pythonScriptFilePath) { } /** - * Get the pythonInterpreterPath value. + * Get the path to the Python interpreter. * * @return the pythonInterpreterPath value */ @@ -62,7 +65,7 @@ public String pythonInterpreterPath() { } /** - * Set the pythonInterpreterPath value. + * Set the path to the Python interpreter. * * @param pythonInterpreterPath the pythonInterpreterPath value to set * @return the Caffe2Settings object itself. @@ -73,7 +76,7 @@ public Caffe2Settings withPythonInterpreterPath(String pythonInterpreterPath) { } /** - * Get the commandLineArgs value. + * Get command line arguments that need to be passed to the python script. * * @return the commandLineArgs value */ @@ -82,7 +85,7 @@ public String commandLineArgs() { } /** - * Set the commandLineArgs value. + * Set command line arguments that need to be passed to the python script. * * @param commandLineArgs the commandLineArgs value to set * @return the Caffe2Settings object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/CaffeSettings.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/CaffeSettings.java index da7a34992120..1e33dfb38cfb 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/CaffeSettings.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/CaffeSettings.java @@ -11,46 +11,50 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Specifies the settings for Caffe job. + * Caffe job settings. */ public class CaffeSettings { /** - * Specifies the path of the config file. - * This property cannot be specified if pythonScriptFilePath is specified. + * Config file path. + * Path of the config file for the job. This property cannot be specified + * if pythonScriptFilePath is specified. */ @JsonProperty(value = "configFilePath") private String configFilePath; /** - * The path and file name of the python script to execute the job. - * This property cannot be specified if configFilePath is specified. + * Python script file path. + * Python script to execute. This property cannot be specified if + * configFilePath is specified. */ @JsonProperty(value = "pythonScriptFilePath") private String pythonScriptFilePath; /** - * The path to python interpreter. - * This property can be specified only if the pythonScriptFilePath is - * specified. + * Python interpreter path. + * The path to the Python interpreter. The property can be specified only + * if the pythonScriptFilePath is specified. */ @JsonProperty(value = "pythonInterpreterPath") private String pythonInterpreterPath; /** - * Command line arguments that needs to be passed to the Caffe job. + * Command line arguments. + * Command line arguments that need to be passed to the Caffe job. */ @JsonProperty(value = "commandLineArgs") private String commandLineArgs; /** - * Number of processes parameter that is passed to MPI runtime. - * The default value for this property is equal to nodeCount property. + * Process count. + * Number of processes to launch for the job execution. The default value + * for this property is equal to nodeCount property. */ @JsonProperty(value = "processCount") private Integer processCount; /** - * Get the configFilePath value. + * Get path of the config file for the job. This property cannot be specified if pythonScriptFilePath is specified. * * @return the configFilePath value */ @@ -59,7 +63,7 @@ public String configFilePath() { } /** - * Set the configFilePath value. + * Set path of the config file for the job. This property cannot be specified if pythonScriptFilePath is specified. * * @param configFilePath the configFilePath value to set * @return the CaffeSettings object itself. @@ -70,7 +74,7 @@ public CaffeSettings withConfigFilePath(String configFilePath) { } /** - * Get the pythonScriptFilePath value. + * Get python script to execute. This property cannot be specified if configFilePath is specified. * * @return the pythonScriptFilePath value */ @@ -79,7 +83,7 @@ public String pythonScriptFilePath() { } /** - * Set the pythonScriptFilePath value. + * Set python script to execute. This property cannot be specified if configFilePath is specified. * * @param pythonScriptFilePath the pythonScriptFilePath value to set * @return the CaffeSettings object itself. @@ -90,7 +94,7 @@ public CaffeSettings withPythonScriptFilePath(String pythonScriptFilePath) { } /** - * Get the pythonInterpreterPath value. + * Get the path to the Python interpreter. The property can be specified only if the pythonScriptFilePath is specified. * * @return the pythonInterpreterPath value */ @@ -99,7 +103,7 @@ public String pythonInterpreterPath() { } /** - * Set the pythonInterpreterPath value. + * Set the path to the Python interpreter. The property can be specified only if the pythonScriptFilePath is specified. * * @param pythonInterpreterPath the pythonInterpreterPath value to set * @return the CaffeSettings object itself. @@ -110,7 +114,7 @@ public CaffeSettings withPythonInterpreterPath(String pythonInterpreterPath) { } /** - * Get the commandLineArgs value. + * Get command line arguments that need to be passed to the Caffe job. * * @return the commandLineArgs value */ @@ -119,7 +123,7 @@ public String commandLineArgs() { } /** - * Set the commandLineArgs value. + * Set command line arguments that need to be passed to the Caffe job. * * @param commandLineArgs the commandLineArgs value to set * @return the CaffeSettings object itself. @@ -130,7 +134,7 @@ public CaffeSettings withCommandLineArgs(String commandLineArgs) { } /** - * Get the processCount value. + * Get number of processes to launch for the job execution. The default value for this property is equal to nodeCount property. * * @return the processCount value */ @@ -139,7 +143,7 @@ public Integer processCount() { } /** - * Set the processCount value. + * Set number of processes to launch for the job execution. The default value for this property is equal to nodeCount property. * * @param processCount the processCount value to set * @return the CaffeSettings object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ChainerSettings.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ChainerSettings.java index 6469fd82db82..f65466c172e9 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ChainerSettings.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ChainerSettings.java @@ -11,36 +11,40 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Specifies the settings for Chainer job. + * Chainer job settings. */ public class ChainerSettings { /** - * The path and file name of the python script to execute the job. + * Python script file path. + * The python script to execute. */ @JsonProperty(value = "pythonScriptFilePath", required = true) private String pythonScriptFilePath; /** - * The path to python interpreter. + * Python interpreter path. + * The path to the Python interpreter. */ @JsonProperty(value = "pythonInterpreterPath") private String pythonInterpreterPath; /** - * Command line arguments that needs to be passed to the python script. + * Command line arguments. + * Command line arguments that need to be passed to the python script. */ @JsonProperty(value = "commandLineArgs") private String commandLineArgs; /** - * Number of processes parameter that is passed to MPI runtime. - * The default value for this property is equal to nodeCount property. + * Process count. + * Number of processes to launch for the job execution. The default value + * for this property is equal to nodeCount property. */ @JsonProperty(value = "processCount") private Integer processCount; /** - * Get the pythonScriptFilePath value. + * Get the python script to execute. * * @return the pythonScriptFilePath value */ @@ -49,7 +53,7 @@ public String pythonScriptFilePath() { } /** - * Set the pythonScriptFilePath value. + * Set the python script to execute. * * @param pythonScriptFilePath the pythonScriptFilePath value to set * @return the ChainerSettings object itself. @@ -60,7 +64,7 @@ public ChainerSettings withPythonScriptFilePath(String pythonScriptFilePath) { } /** - * Get the pythonInterpreterPath value. + * Get the path to the Python interpreter. * * @return the pythonInterpreterPath value */ @@ -69,7 +73,7 @@ public String pythonInterpreterPath() { } /** - * Set the pythonInterpreterPath value. + * Set the path to the Python interpreter. * * @param pythonInterpreterPath the pythonInterpreterPath value to set * @return the ChainerSettings object itself. @@ -80,7 +84,7 @@ public ChainerSettings withPythonInterpreterPath(String pythonInterpreterPath) { } /** - * Get the commandLineArgs value. + * Get command line arguments that need to be passed to the python script. * * @return the commandLineArgs value */ @@ -89,7 +93,7 @@ public String commandLineArgs() { } /** - * Set the commandLineArgs value. + * Set command line arguments that need to be passed to the python script. * * @param commandLineArgs the commandLineArgs value to set * @return the ChainerSettings object itself. @@ -100,7 +104,7 @@ public ChainerSettings withCommandLineArgs(String commandLineArgs) { } /** - * Get the processCount value. + * Get number of processes to launch for the job execution. The default value for this property is equal to nodeCount property. * * @return the processCount value */ @@ -109,7 +113,7 @@ public Integer processCount() { } /** - * Set the processCount value. + * Set number of processes to launch for the job execution. The default value for this property is equal to nodeCount property. * * @param processCount the processCount value to set * @return the ChainerSettings object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/Cluster.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/Cluster.java index 2f5bcd8d32b8..728cba800913 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/Cluster.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/Cluster.java @@ -17,7 +17,6 @@ import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.batchai.v2018_05_01.implementation.BatchAIManager; -import java.util.Map; import org.joda.time.DateTime; import java.util.List; @@ -55,11 +54,6 @@ public interface Cluster extends HasInner, Indexable, Refreshable< */ String id(); - /** - * @return the location value. - */ - String location(); - /** * @return the name value. */ @@ -95,11 +89,6 @@ public interface Cluster extends HasInner, Indexable, Refreshable< */ ResourceId subnet(); - /** - * @return the tags value. - */ - Map tags(); - /** * @return the type value. */ @@ -128,7 +117,7 @@ public interface Cluster extends HasInner, Indexable, Refreshable< /** * The entirety of the Cluster definition. */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithWorkspace, DefinitionStages.WithLocation, DefinitionStages.WithUserAccountSettings, DefinitionStages.WithVmSize, DefinitionStages.WithCreate { + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithWorkspace, DefinitionStages.WithUserAccountSettings, DefinitionStages.WithVmSize, DefinitionStages.WithCreate { } /** @@ -148,17 +137,7 @@ interface WithWorkspace { /** * Specifies resourceGroupName, workspaceName. */ - WithLocation withExistingWorkspace(String resourceGroupName, String workspaceName); - } - - /** - * The stage of the cluster definition allowing to specify Location. - */ - interface WithLocation { - /** - * Specifies location. - */ - WithUserAccountSettings withLocation(String location); + WithUserAccountSettings withExistingWorkspace(String resourceGroupName, String workspaceName); } /** @@ -211,16 +190,6 @@ interface WithSubnet { WithCreate withSubnet(ResourceId subnet); } - /** - * The stage of the cluster definition allowing to specify Tags. - */ - interface WithTags { - /** - * Specifies tags. - */ - WithCreate withTags(Map tags); - } - /** * The stage of the cluster definition allowing to specify VirtualMachineConfiguration. */ @@ -246,38 +215,18 @@ interface WithVmPriority { * the resource to be created (via {@link WithCreate#create()}), but also allows * for any other optional settings to be specified. */ - interface WithCreate extends Creatable, DefinitionStages.WithNodeSetup, DefinitionStages.WithScaleSettings, DefinitionStages.WithSubnet, DefinitionStages.WithTags, DefinitionStages.WithVirtualMachineConfiguration, DefinitionStages.WithVmPriority { + interface WithCreate extends Creatable, DefinitionStages.WithNodeSetup, DefinitionStages.WithScaleSettings, DefinitionStages.WithSubnet, DefinitionStages.WithVirtualMachineConfiguration, DefinitionStages.WithVmPriority { } } /** * The template for a Cluster update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, UpdateStages.WithScaleSettings, UpdateStages.WithTags { + interface Update extends Appliable { } /** * Grouping of Cluster update stages. */ interface UpdateStages { - /** - * The stage of the cluster update allowing to specify ScaleSettings. - */ - interface WithScaleSettings { - /** - * Specifies scaleSettings. - */ - Update withScaleSettings(ScaleSettings scaleSettings); - } - - /** - * The stage of the cluster update allowing to specify Tags. - */ - interface WithTags { - /** - * Specifies tags. - */ - Update withTags(Map tags); - } - } } diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ClusterCreateParameters.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ClusterCreateParameters.java index c23e2a44a5c2..bdad6538744c 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ClusterCreateParameters.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ClusterCreateParameters.java @@ -8,33 +8,20 @@ package com.microsoft.azure.management.batchai.v2018_05_01; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; /** - * Parameters supplied to the Create operation. + * Cluster creation operation. */ @JsonFlatten public class ClusterCreateParameters { /** - * The region in which to create the cluster. - */ - @JsonProperty(value = "location", required = true) - private String location; - - /** - * The user specified tags associated with the Cluster. - */ - @JsonProperty(value = "tags") - private Map tags; - - /** - * The size of the virtual machines in the cluster. - * All virtual machines in a cluster are the same size. For information - * about available VM sizes for clusters using images from the Virtual - * Machines Marketplace (see Sizes for Virtual Machines (Linux) or Sizes - * for Virtual Machines (Windows). Batch AI service supports all Azure VM + * VM size. + * The size of the virtual machines in the cluster. All nodes in a cluster + * have the same VM size. For information about available VM sizes for + * clusters using images from the Virtual Machines Marketplace see Sizes + * for Virtual Machines (Linux). Batch AI service supports all Azure VM * sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, * STANDARD_DS, and STANDARD_DSV2 series). */ @@ -42,86 +29,55 @@ public class ClusterCreateParameters { private String vmSize; /** - * dedicated or lowpriority. - * Default is dedicated. Possible values include: 'dedicated', - * 'lowpriority'. + * VM priority. + * VM priority. Allowed values are: dedicated (default) and lowpriority. + * Possible values include: 'dedicated', 'lowpriority'. */ @JsonProperty(value = "properties.vmPriority") private VmPriority vmPriority; /** - * Desired scale for the cluster. + * Scale settings. + * Scale settings for the cluster. Batch AI service supports manual and + * auto scale clusters. */ @JsonProperty(value = "properties.scaleSettings") private ScaleSettings scaleSettings; /** - * Settings for OS image and mounted data volumes. + * VM configuration. + * OS image configuration for cluster nodes. All nodes in a cluster have + * the same OS image. */ @JsonProperty(value = "properties.virtualMachineConfiguration") private VirtualMachineConfiguration virtualMachineConfiguration; /** - * Setup to be done on all compute nodes in the cluster. + * Node setup. + * Setup to be performed on each compute node in the cluster. */ @JsonProperty(value = "properties.nodeSetup") private NodeSetup nodeSetup; /** - * Settings for user account that will be created on all compute nodes of - * the cluster. + * User account settings. + * Settings for an administrator user account that will be created on each + * compute node in the cluster. */ @JsonProperty(value = "properties.userAccountSettings", required = true) private UserAccountSettings userAccountSettings; /** - * Specifies the identifier of the subnet. + * Subnet. + * Existing virtual network subnet to put the cluster nodes in. Note, if a + * File Server mount configured in node setup, the File Server's subnet + * will be used automatically. */ @JsonProperty(value = "properties.subnet") private ResourceId subnet; /** - * Get the location value. - * - * @return the location value - */ - public String location() { - return this.location; - } - - /** - * Set the location value. - * - * @param location the location value to set - * @return the ClusterCreateParameters object itself. - */ - public ClusterCreateParameters withLocation(String location) { - this.location = location; - return this; - } - - /** - * Get the tags value. - * - * @return the tags value - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags value. - * - * @param tags the tags value to set - * @return the ClusterCreateParameters object itself. - */ - public ClusterCreateParameters withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * Get the vmSize value. + * Get the size of the virtual machines in the cluster. All nodes in a cluster have the same VM size. For information about available VM sizes for clusters using images from the Virtual Machines Marketplace see Sizes for Virtual Machines (Linux). Batch AI service supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). * * @return the vmSize value */ @@ -130,7 +86,7 @@ public String vmSize() { } /** - * Set the vmSize value. + * Set the size of the virtual machines in the cluster. All nodes in a cluster have the same VM size. For information about available VM sizes for clusters using images from the Virtual Machines Marketplace see Sizes for Virtual Machines (Linux). Batch AI service supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). * * @param vmSize the vmSize value to set * @return the ClusterCreateParameters object itself. @@ -141,7 +97,7 @@ public ClusterCreateParameters withVmSize(String vmSize) { } /** - * Get the vmPriority value. + * Get vM priority. Allowed values are: dedicated (default) and lowpriority. Possible values include: 'dedicated', 'lowpriority'. * * @return the vmPriority value */ @@ -150,7 +106,7 @@ public VmPriority vmPriority() { } /** - * Set the vmPriority value. + * Set vM priority. Allowed values are: dedicated (default) and lowpriority. Possible values include: 'dedicated', 'lowpriority'. * * @param vmPriority the vmPriority value to set * @return the ClusterCreateParameters object itself. @@ -161,7 +117,7 @@ public ClusterCreateParameters withVmPriority(VmPriority vmPriority) { } /** - * Get the scaleSettings value. + * Get scale settings for the cluster. Batch AI service supports manual and auto scale clusters. * * @return the scaleSettings value */ @@ -170,7 +126,7 @@ public ScaleSettings scaleSettings() { } /** - * Set the scaleSettings value. + * Set scale settings for the cluster. Batch AI service supports manual and auto scale clusters. * * @param scaleSettings the scaleSettings value to set * @return the ClusterCreateParameters object itself. @@ -181,7 +137,7 @@ public ClusterCreateParameters withScaleSettings(ScaleSettings scaleSettings) { } /** - * Get the virtualMachineConfiguration value. + * Get oS image configuration for cluster nodes. All nodes in a cluster have the same OS image. * * @return the virtualMachineConfiguration value */ @@ -190,7 +146,7 @@ public VirtualMachineConfiguration virtualMachineConfiguration() { } /** - * Set the virtualMachineConfiguration value. + * Set oS image configuration for cluster nodes. All nodes in a cluster have the same OS image. * * @param virtualMachineConfiguration the virtualMachineConfiguration value to set * @return the ClusterCreateParameters object itself. @@ -201,7 +157,7 @@ public ClusterCreateParameters withVirtualMachineConfiguration(VirtualMachineCon } /** - * Get the nodeSetup value. + * Get setup to be performed on each compute node in the cluster. * * @return the nodeSetup value */ @@ -210,7 +166,7 @@ public NodeSetup nodeSetup() { } /** - * Set the nodeSetup value. + * Set setup to be performed on each compute node in the cluster. * * @param nodeSetup the nodeSetup value to set * @return the ClusterCreateParameters object itself. @@ -221,7 +177,7 @@ public ClusterCreateParameters withNodeSetup(NodeSetup nodeSetup) { } /** - * Get the userAccountSettings value. + * Get settings for an administrator user account that will be created on each compute node in the cluster. * * @return the userAccountSettings value */ @@ -230,7 +186,7 @@ public UserAccountSettings userAccountSettings() { } /** - * Set the userAccountSettings value. + * Set settings for an administrator user account that will be created on each compute node in the cluster. * * @param userAccountSettings the userAccountSettings value to set * @return the ClusterCreateParameters object itself. @@ -241,7 +197,7 @@ public ClusterCreateParameters withUserAccountSettings(UserAccountSettings userA } /** - * Get the subnet value. + * Get existing virtual network subnet to put the cluster nodes in. Note, if a File Server mount configured in node setup, the File Server's subnet will be used automatically. * * @return the subnet value */ @@ -250,7 +206,7 @@ public ResourceId subnet() { } /** - * Set the subnet value. + * Set existing virtual network subnet to put the cluster nodes in. Note, if a File Server mount configured in node setup, the File Server's subnet will be used automatically. * * @param subnet the subnet value to set * @return the ClusterCreateParameters object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ClusterUpdateParameters.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ClusterUpdateParameters.java index 886e91565917..2efa20472f7c 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ClusterUpdateParameters.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ClusterUpdateParameters.java @@ -8,49 +8,24 @@ package com.microsoft.azure.management.batchai.v2018_05_01; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; /** - * Parameters supplied to the Update operation. + * Cluster update parameters. */ @JsonFlatten public class ClusterUpdateParameters { /** - * The user specified tags associated with the Cluster. - */ - @JsonProperty(value = "tags") - private Map tags; - - /** - * Desired scale for the cluster. + * Scale settings. + * Desired scale settings for the cluster. Batch AI service supports manual + * and auto scale clusters. */ @JsonProperty(value = "properties.scaleSettings") private ScaleSettings scaleSettings; /** - * Get the tags value. - * - * @return the tags value - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags value. - * - * @param tags the tags value to set - * @return the ClusterUpdateParameters object itself. - */ - public ClusterUpdateParameters withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * Get the scaleSettings value. + * Get desired scale settings for the cluster. Batch AI service supports manual and auto scale clusters. * * @return the scaleSettings value */ @@ -59,7 +34,7 @@ public ScaleSettings scaleSettings() { } /** - * Set the scaleSettings value. + * Set desired scale settings for the cluster. Batch AI service supports manual and auto scale clusters. * * @param scaleSettings the scaleSettings value to set * @return the ClusterUpdateParameters object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/Clusters.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/Clusters.java index f93a432c588b..a700bfe72156 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/Clusters.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/Clusters.java @@ -29,23 +29,6 @@ public interface Clusters extends SupportsCreating listRemoteLoginInformationAsync(final String resourceGroupName, final String workspaceName, final String clusterName); - /** - * Gets a list of Clusters associated with the given subscription. - * - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request - */ - Observable listAsync(); - - /** - * Gets a list of Clusters within the specified resource group. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request - */ - Observable listByResourceGroupAsync(final String resourceGroupName); - /** * Gets information about a Cluster. * diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ClustersListByWorkspaceOptions.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ClustersListByWorkspaceOptions.java index a6695ab9b784..dbfb2df5b9a5 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ClustersListByWorkspaceOptions.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ClustersListByWorkspaceOptions.java @@ -22,7 +22,7 @@ public class ClustersListByWorkspaceOptions { private Integer maxResults; /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -31,7 +31,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the ClustersListByWorkspaceOptions object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ContainerSettings.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ContainerSettings.java index f484234a4676..3731c40b817b 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ContainerSettings.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ContainerSettings.java @@ -11,17 +11,27 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Settings for the container to be downloaded. + * Docker container settings. */ public class ContainerSettings { /** - * Registry to download the container from. + * Image source registry. + * Information about docker image and docker registry to download the + * container from. */ @JsonProperty(value = "imageSourceRegistry", required = true) private ImageSourceRegistry imageSourceRegistry; /** - * Get the imageSourceRegistry value. + * /dev/shm size. + * Size of /dev/shm. Please refer to docker documentation for supported + * argument formats. + */ + @JsonProperty(value = "shmSize") + private String shmSize; + + /** + * Get information about docker image and docker registry to download the container from. * * @return the imageSourceRegistry value */ @@ -30,7 +40,7 @@ public ImageSourceRegistry imageSourceRegistry() { } /** - * Set the imageSourceRegistry value. + * Set information about docker image and docker registry to download the container from. * * @param imageSourceRegistry the imageSourceRegistry value to set * @return the ContainerSettings object itself. @@ -40,4 +50,24 @@ public ContainerSettings withImageSourceRegistry(ImageSourceRegistry imageSource return this; } + /** + * Get size of /dev/shm. Please refer to docker documentation for supported argument formats. + * + * @return the shmSize value + */ + public String shmSize() { + return this.shmSize; + } + + /** + * Set size of /dev/shm. Please refer to docker documentation for supported argument formats. + * + * @param shmSize the shmSize value to set + * @return the ContainerSettings object itself. + */ + public ContainerSettings withShmSize(String shmSize) { + this.shmSize = shmSize; + return this; + } + } diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/CustomMpiSettings.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/CustomMpiSettings.java index c72004f49086..199c392c6cbf 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/CustomMpiSettings.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/CustomMpiSettings.java @@ -11,25 +11,26 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Specifies the settings for a custom tool kit job. + * Custom MPI job settings. */ public class CustomMpiSettings { /** - * The program and program command line parameters to be executed by mpi - * runtime. + * Command line. + * The command line to be executed by mpi runtime on each compute node. */ @JsonProperty(value = "commandLine", required = true) private String commandLine; /** - * Number of processes parameter that is passed to MPI runtime. - * The default value for this property is equal to nodeCount property. + * Process count. + * Number of processes to launch for the job execution. The default value + * for this property is equal to nodeCount property. */ @JsonProperty(value = "processCount") private Integer processCount; /** - * Get the commandLine value. + * Get the command line to be executed by mpi runtime on each compute node. * * @return the commandLine value */ @@ -38,7 +39,7 @@ public String commandLine() { } /** - * Set the commandLine value. + * Set the command line to be executed by mpi runtime on each compute node. * * @param commandLine the commandLine value to set * @return the CustomMpiSettings object itself. @@ -49,7 +50,7 @@ public CustomMpiSettings withCommandLine(String commandLine) { } /** - * Get the processCount value. + * Get number of processes to launch for the job execution. The default value for this property is equal to nodeCount property. * * @return the processCount value */ @@ -58,7 +59,7 @@ public Integer processCount() { } /** - * Set the processCount value. + * Set number of processes to launch for the job execution. The default value for this property is equal to nodeCount property. * * @param processCount the processCount value to set * @return the CustomMpiSettings object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/CustomToolkitSettings.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/CustomToolkitSettings.java index a42724e34017..f9736e234c8a 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/CustomToolkitSettings.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/CustomToolkitSettings.java @@ -11,17 +11,18 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Specifies the settings for a custom tool kit job. + * Custom tool kit job settings. */ public class CustomToolkitSettings { /** - * The command line to execute the custom toolkit Job. + * Command line. + * The command line to execute on the master node. */ @JsonProperty(value = "commandLine") private String commandLine; /** - * Get the commandLine value. + * Get the command line to execute on the master node. * * @return the commandLine value */ @@ -30,7 +31,7 @@ public String commandLine() { } /** - * Set the commandLine value. + * Set the command line to execute on the master node. * * @param commandLine the commandLine value to set * @return the CustomToolkitSettings object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/DataDisks.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/DataDisks.java index 95f8b1a0a66d..f125be6e1887 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/DataDisks.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/DataDisks.java @@ -11,41 +11,46 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Settings for the data disk which would be created for the File Server. + * Data disks settings. */ public class DataDisks { /** - * Initial disk size in GB for blank data disks, and the new desired size - * for resizing existing data disks. + * Disk size in GB. + * Disk size in GB for the blank data disks. */ @JsonProperty(value = "diskSizeInGB", required = true) private int diskSizeInGB; /** - * None, ReadOnly, ReadWrite. Default value is None. This property is not - * patchable. - * Possible values include: 'none', 'readonly', 'readwrite'. + * Caching type. + * Caching type for the disks. Available values are none (default), + * readonly, readwrite. Caching type can be set only for VM sizes + * supporting premium storage. Possible values include: 'none', 'readonly', + * 'readwrite'. */ @JsonProperty(value = "cachingType") private CachingType cachingType; /** - * Number of data disks to be attached to the VM. RAID level 0 will be - * applied in the case of multiple disks. + * Number of data disks. + * Number of data disks attached to the File Server. If multiple disks + * attached, they will be configured in RAID level 0. */ @JsonProperty(value = "diskCount", required = true) private int diskCount; /** - * Specifies the type of storage account to be used on the disk. Possible - * values are: Standard_LRS or Premium_LRS. - * Possible values include: 'Standard_LRS', 'Premium_LRS'. + * Storage account type. + * Type of storage account to be used on the disk. Possible values are: + * Standard_LRS or Premium_LRS. Premium storage account type can only be + * used with VM sizes supporting premium storage. Possible values include: + * 'Standard_LRS', 'Premium_LRS'. */ @JsonProperty(value = "storageAccountType", required = true) private StorageAccountType storageAccountType; /** - * Get the diskSizeInGB value. + * Get disk size in GB for the blank data disks. * * @return the diskSizeInGB value */ @@ -54,7 +59,7 @@ public int diskSizeInGB() { } /** - * Set the diskSizeInGB value. + * Set disk size in GB for the blank data disks. * * @param diskSizeInGB the diskSizeInGB value to set * @return the DataDisks object itself. @@ -65,7 +70,7 @@ public DataDisks withDiskSizeInGB(int diskSizeInGB) { } /** - * Get the cachingType value. + * Get caching type for the disks. Available values are none (default), readonly, readwrite. Caching type can be set only for VM sizes supporting premium storage. Possible values include: 'none', 'readonly', 'readwrite'. * * @return the cachingType value */ @@ -74,7 +79,7 @@ public CachingType cachingType() { } /** - * Set the cachingType value. + * Set caching type for the disks. Available values are none (default), readonly, readwrite. Caching type can be set only for VM sizes supporting premium storage. Possible values include: 'none', 'readonly', 'readwrite'. * * @param cachingType the cachingType value to set * @return the DataDisks object itself. @@ -85,7 +90,7 @@ public DataDisks withCachingType(CachingType cachingType) { } /** - * Get the diskCount value. + * Get number of data disks attached to the File Server. If multiple disks attached, they will be configured in RAID level 0. * * @return the diskCount value */ @@ -94,7 +99,7 @@ public int diskCount() { } /** - * Set the diskCount value. + * Set number of data disks attached to the File Server. If multiple disks attached, they will be configured in RAID level 0. * * @param diskCount the diskCount value to set * @return the DataDisks object itself. @@ -105,7 +110,7 @@ public DataDisks withDiskCount(int diskCount) { } /** - * Get the storageAccountType value. + * Get type of storage account to be used on the disk. Possible values are: Standard_LRS or Premium_LRS. Premium storage account type can only be used with VM sizes supporting premium storage. Possible values include: 'Standard_LRS', 'Premium_LRS'. * * @return the storageAccountType value */ @@ -114,7 +119,7 @@ public StorageAccountType storageAccountType() { } /** - * Set the storageAccountType value. + * Set type of storage account to be used on the disk. Possible values are: Standard_LRS or Premium_LRS. Premium storage account type can only be used with VM sizes supporting premium storage. Possible values include: 'Standard_LRS', 'Premium_LRS'. * * @param storageAccountType the storageAccountType value to set * @return the DataDisks object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/EnvironmentVariable.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/EnvironmentVariable.java index 2f1d51e903a5..7a2257ea05ea 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/EnvironmentVariable.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/EnvironmentVariable.java @@ -11,23 +11,25 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * A collection of environment variables to set. + * An environment variable definition. */ public class EnvironmentVariable { /** + * Name. * The name of the environment variable. */ @JsonProperty(value = "name", required = true) private String name; /** + * Value. * The value of the environment variable. */ @JsonProperty(value = "value", required = true) private String value; /** - * Get the name value. + * Get the name of the environment variable. * * @return the name value */ @@ -36,7 +38,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the environment variable. * * @param name the name value to set * @return the EnvironmentVariable object itself. @@ -47,7 +49,7 @@ public EnvironmentVariable withName(String name) { } /** - * Get the value value. + * Get the value of the environment variable. * * @return the value value */ @@ -56,7 +58,7 @@ public String value() { } /** - * Set the value value. + * Set the value of the environment variable. * * @param value the value value to set * @return the EnvironmentVariable object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/EnvironmentVariableWithSecretValue.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/EnvironmentVariableWithSecretValue.java index 2383a9829ed7..e275ed393bad 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/EnvironmentVariableWithSecretValue.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/EnvironmentVariableWithSecretValue.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * A collection of environment variables with secret values to set. + * An environment variable with secret value definition. */ public class EnvironmentVariableWithSecretValue { /** + * Name. * The name of the environment variable to store the secret value. */ @JsonProperty(value = "name", required = true) private String name; /** + * Value. * The value of the environment variable. This value will never be reported * back by Batch AI. */ @@ -28,17 +30,15 @@ public class EnvironmentVariableWithSecretValue { private String value; /** - * Specifies the location of the Azure KeyVault secret which will be used - * as the environment variable value. - * Specifies KeyVault Store and Secret which contains the value for the - * environment variable. One of value or valueSecretReference must be - * provided. + * KeyVault secret reference. + * KeyVault store and secret which contains the value for the environment + * variable. One of value or valueSecretReference must be provided. */ @JsonProperty(value = "valueSecretReference") private KeyVaultSecretReference valueSecretReference; /** - * Get the name value. + * Get the name of the environment variable to store the secret value. * * @return the name value */ @@ -47,7 +47,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the environment variable to store the secret value. * * @param name the name value to set * @return the EnvironmentVariableWithSecretValue object itself. @@ -58,7 +58,7 @@ public EnvironmentVariableWithSecretValue withName(String name) { } /** - * Get the value value. + * Get the value of the environment variable. This value will never be reported back by Batch AI. * * @return the value value */ @@ -67,7 +67,7 @@ public String value() { } /** - * Set the value value. + * Set the value of the environment variable. This value will never be reported back by Batch AI. * * @param value the value value to set * @return the EnvironmentVariableWithSecretValue object itself. @@ -78,7 +78,7 @@ public EnvironmentVariableWithSecretValue withValue(String value) { } /** - * Get the valueSecretReference value. + * Get keyVault store and secret which contains the value for the environment variable. One of value or valueSecretReference must be provided. * * @return the valueSecretReference value */ @@ -87,7 +87,7 @@ public KeyVaultSecretReference valueSecretReference() { } /** - * Set the valueSecretReference value. + * Set keyVault store and secret which contains the value for the environment variable. One of value or valueSecretReference must be provided. * * @param valueSecretReference the valueSecretReference value to set * @return the EnvironmentVariableWithSecretValue object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ExperimentsListByWorkspaceOptions.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ExperimentsListByWorkspaceOptions.java index ee43d92a7416..917d56a0f484 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ExperimentsListByWorkspaceOptions.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ExperimentsListByWorkspaceOptions.java @@ -22,7 +22,7 @@ public class ExperimentsListByWorkspaceOptions { private Integer maxResults; /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -31,7 +31,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the ExperimentsListByWorkspaceOptions object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/FileServer.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/FileServer.java index 966abfe40805..bfbf917081a3 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/FileServer.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/FileServer.java @@ -17,7 +17,6 @@ import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.batchai.v2018_05_01.implementation.BatchAIManager; -import java.util.Map; import org.joda.time.DateTime; /** @@ -39,11 +38,6 @@ public interface FileServer extends HasInner, Indexable, Refres */ String id(); - /** - * @return the location value. - */ - String location(); - /** * @return the mountSettings value. */ @@ -74,11 +68,6 @@ public interface FileServer extends HasInner, Indexable, Refres */ ResourceId subnet(); - /** - * @return the tags value. - */ - Map tags(); - /** * @return the type value. */ @@ -92,7 +81,7 @@ public interface FileServer extends HasInner, Indexable, Refres /** * The entirety of the FileServer definition. */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithWorkspace, DefinitionStages.WithDataDisks, DefinitionStages.WithLocation, DefinitionStages.WithSshConfiguration, DefinitionStages.WithVmSize, DefinitionStages.WithCreate { + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithWorkspace, DefinitionStages.WithDataDisks, DefinitionStages.WithSshConfiguration, DefinitionStages.WithVmSize, DefinitionStages.WithCreate { } /** @@ -122,17 +111,7 @@ interface WithDataDisks { /** * Specifies dataDisks. */ - WithLocation withDataDisks(DataDisks dataDisks); - } - - /** - * The stage of the fileserver definition allowing to specify Location. - */ - interface WithLocation { - /** - * Specifies location. - */ - WithSshConfiguration withLocation(String location); + WithSshConfiguration withDataDisks(DataDisks dataDisks); } /** @@ -165,28 +144,18 @@ interface WithSubnet { WithCreate withSubnet(ResourceId subnet); } - /** - * The stage of the fileserver definition allowing to specify Tags. - */ - interface WithTags { - /** - * Specifies tags. - */ - WithCreate withTags(Map tags); - } - /** * The stage of the definition which contains all the minimum required inputs for * the resource to be created (via {@link WithCreate#create()}), but also allows * for any other optional settings to be specified. */ - interface WithCreate extends Creatable, DefinitionStages.WithSubnet, DefinitionStages.WithTags { + interface WithCreate extends Creatable, DefinitionStages.WithSubnet { } } /** * The template for a FileServer update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, UpdateStages.WithSubnet, UpdateStages.WithTags { + interface Update extends Appliable, UpdateStages.WithSubnet { } /** @@ -203,15 +172,5 @@ interface WithSubnet { Update withSubnet(ResourceId subnet); } - /** - * The stage of the fileserver update allowing to specify Tags. - */ - interface WithTags { - /** - * Specifies tags. - */ - Update withTags(Map tags); - } - } } diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/FileServerCreateParameters.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/FileServerCreateParameters.java index e7f544c9043c..ca21542f591a 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/FileServerCreateParameters.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/FileServerCreateParameters.java @@ -8,95 +8,47 @@ package com.microsoft.azure.management.batchai.v2018_05_01; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; /** - * Parameters supplied to the Create operation. + * File Server creation parameters. */ @JsonFlatten public class FileServerCreateParameters { /** - * The region in which to create the File Server. - */ - @JsonProperty(value = "location", required = true) - private String location; - - /** - * The user specified tags associated with the File Server. - */ - @JsonProperty(value = "tags") - private Map tags; - - /** - * The size of the virtual machine of the file server. - * For information about available VM sizes for fileservers from the - * Virtual Machines Marketplace, see Sizes for Virtual Machines (Linux). + * VM size. + * The size of the virtual machine for the File Server. For information + * about available VM sizes from the Virtual Machines Marketplace, see + * Sizes for Virtual Machines (Linux). */ @JsonProperty(value = "properties.vmSize", required = true) private String vmSize; /** - * SSH configuration for the file server. + * SSH configuration. + * SSH configuration for the File Server node. */ @JsonProperty(value = "properties.sshConfiguration", required = true) private SshConfiguration sshConfiguration; /** - * Settings for the data disk which would be created for the file server. + * Data disks. + * Settings for the data disks which will be created for the File Server. */ @JsonProperty(value = "properties.dataDisks", required = true) private DataDisks dataDisks; /** - * Specifies the identifier of the subnet. + * Subnet identifier. + * Identifier of an existing virtual network subnet to put the File Server + * in. If not provided, a new virtual network and subnet will be created. */ @JsonProperty(value = "properties.subnet") private ResourceId subnet; /** - * Get the location value. - * - * @return the location value - */ - public String location() { - return this.location; - } - - /** - * Set the location value. - * - * @param location the location value to set - * @return the FileServerCreateParameters object itself. - */ - public FileServerCreateParameters withLocation(String location) { - this.location = location; - return this; - } - - /** - * Get the tags value. - * - * @return the tags value - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags value. - * - * @param tags the tags value to set - * @return the FileServerCreateParameters object itself. - */ - public FileServerCreateParameters withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * Get the vmSize value. + * Get the size of the virtual machine for the File Server. For information about available VM sizes from the Virtual Machines Marketplace, see Sizes for Virtual Machines (Linux). * * @return the vmSize value */ @@ -105,7 +57,7 @@ public String vmSize() { } /** - * Set the vmSize value. + * Set the size of the virtual machine for the File Server. For information about available VM sizes from the Virtual Machines Marketplace, see Sizes for Virtual Machines (Linux). * * @param vmSize the vmSize value to set * @return the FileServerCreateParameters object itself. @@ -116,7 +68,7 @@ public FileServerCreateParameters withVmSize(String vmSize) { } /** - * Get the sshConfiguration value. + * Get sSH configuration for the File Server node. * * @return the sshConfiguration value */ @@ -125,7 +77,7 @@ public SshConfiguration sshConfiguration() { } /** - * Set the sshConfiguration value. + * Set sSH configuration for the File Server node. * * @param sshConfiguration the sshConfiguration value to set * @return the FileServerCreateParameters object itself. @@ -136,7 +88,7 @@ public FileServerCreateParameters withSshConfiguration(SshConfiguration sshConfi } /** - * Get the dataDisks value. + * Get settings for the data disks which will be created for the File Server. * * @return the dataDisks value */ @@ -145,7 +97,7 @@ public DataDisks dataDisks() { } /** - * Set the dataDisks value. + * Set settings for the data disks which will be created for the File Server. * * @param dataDisks the dataDisks value to set * @return the FileServerCreateParameters object itself. @@ -156,7 +108,7 @@ public FileServerCreateParameters withDataDisks(DataDisks dataDisks) { } /** - * Get the subnet value. + * Get identifier of an existing virtual network subnet to put the File Server in. If not provided, a new virtual network and subnet will be created. * * @return the subnet value */ @@ -165,7 +117,7 @@ public ResourceId subnet() { } /** - * Set the subnet value. + * Set identifier of an existing virtual network subnet to put the File Server in. If not provided, a new virtual network and subnet will be created. * * @param subnet the subnet value to set * @return the FileServerCreateParameters object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/FileServerReference.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/FileServerReference.java index 8a0138522182..fbc893fbd0a2 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/FileServerReference.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/FileServerReference.java @@ -11,42 +11,43 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Provides required information, for the service to be able to mount Azure - * FileShare on the cluster nodes. + * File Server mounting configuration. */ public class FileServerReference { /** - * Reference to the file server resource. + * File server. + * Resource ID of the existing File Server to be mounted. */ @JsonProperty(value = "fileServer", required = true) private ResourceId fileServer; /** - * Specifies the source directory in File Server that needs to be mounted. - * If this property is not specified, the entire File Server will be - * mounted. + * Source directory. + * File Server directory that needs to be mounted. If this property is not + * specified, the entire File Server will be mounted. */ @JsonProperty(value = "sourceDirectory") private String sourceDirectory; /** - * Specifies the relative path on the compute node where the File Server - * will be mounted. - * Note that all cluster level file servers will be mounted under - * $AZ_BATCHAI_MOUNT_ROOT location and job level file servers will be - * mouted under $AZ_BATCHAI_JOB_MOUNT_ROOT. + * Relative mount path. + * The relative path on the compute node where the File Server will be + * mounted. Note that all cluster level file servers will be mounted under + * $AZ_BATCHAI_MOUNT_ROOT location and all job level file servers will be + * mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. */ @JsonProperty(value = "relativeMountPath", required = true) private String relativeMountPath; /** - * Specifies the mount options for File Server. + * Mount options. + * Mount options to be passed to mount command. */ @JsonProperty(value = "mountOptions") private String mountOptions; /** - * Get the fileServer value. + * Get resource ID of the existing File Server to be mounted. * * @return the fileServer value */ @@ -55,7 +56,7 @@ public ResourceId fileServer() { } /** - * Set the fileServer value. + * Set resource ID of the existing File Server to be mounted. * * @param fileServer the fileServer value to set * @return the FileServerReference object itself. @@ -66,7 +67,7 @@ public FileServerReference withFileServer(ResourceId fileServer) { } /** - * Get the sourceDirectory value. + * Get file Server directory that needs to be mounted. If this property is not specified, the entire File Server will be mounted. * * @return the sourceDirectory value */ @@ -75,7 +76,7 @@ public String sourceDirectory() { } /** - * Set the sourceDirectory value. + * Set file Server directory that needs to be mounted. If this property is not specified, the entire File Server will be mounted. * * @param sourceDirectory the sourceDirectory value to set * @return the FileServerReference object itself. @@ -86,7 +87,7 @@ public FileServerReference withSourceDirectory(String sourceDirectory) { } /** - * Get the relativeMountPath value. + * Get the relative path on the compute node where the File Server will be mounted. Note that all cluster level file servers will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level file servers will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. * * @return the relativeMountPath value */ @@ -95,7 +96,7 @@ public String relativeMountPath() { } /** - * Set the relativeMountPath value. + * Set the relative path on the compute node where the File Server will be mounted. Note that all cluster level file servers will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level file servers will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. * * @param relativeMountPath the relativeMountPath value to set * @return the FileServerReference object itself. @@ -106,7 +107,7 @@ public FileServerReference withRelativeMountPath(String relativeMountPath) { } /** - * Get the mountOptions value. + * Get mount options to be passed to mount command. * * @return the mountOptions value */ @@ -115,7 +116,7 @@ public String mountOptions() { } /** - * Set the mountOptions value. + * Set mount options to be passed to mount command. * * @param mountOptions the mountOptions value to set * @return the FileServerReference object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/FileServers.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/FileServers.java index a6df4fa47cff..d6b9c9b4d85a 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/FileServers.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/FileServers.java @@ -18,23 +18,6 @@ * Type representing FileServers. */ public interface FileServers extends SupportsCreating, HasInner { - /** - * Gets a list of File Servers associated with the given subscription. - * - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request - */ - Observable listAsync(); - - /** - * Gets a list of File Servers within the specified resource group. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request - */ - Observable listByResourceGroupAsync(final String resourceGroupName); - /** * Gets information about a File Server. * diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/FileServersListByWorkspaceOptions.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/FileServersListByWorkspaceOptions.java index 24cabc053a77..5c0a8d7571d0 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/FileServersListByWorkspaceOptions.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/FileServersListByWorkspaceOptions.java @@ -22,7 +22,7 @@ public class FileServersListByWorkspaceOptions { private Integer maxResults; /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -31,7 +31,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the FileServersListByWorkspaceOptions object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/HorovodSettings.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/HorovodSettings.java index 8aa1e6abbc29..a25e9cdd9e89 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/HorovodSettings.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/HorovodSettings.java @@ -11,36 +11,40 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Specifies the settings for Chainer job. + * Specifies the settings for Horovod job. */ public class HorovodSettings { /** - * The path and file name of the python script to execute the job. + * Python script file path. + * The python script to execute. */ @JsonProperty(value = "pythonScriptFilePath", required = true) private String pythonScriptFilePath; /** - * The path to python interpreter. + * Python interpreter path. + * The path to the Python interpreter. */ @JsonProperty(value = "pythonInterpreterPath") private String pythonInterpreterPath; /** - * Command line arguments that needs to be passed to the python script. + * Command line arguments. + * Command line arguments that need to be passed to the python script. */ @JsonProperty(value = "commandLineArgs") private String commandLineArgs; /** - * Number of processes parameter that is passed to MPI runtime. - * The default value for this property is equal to nodeCount property. + * Process count. + * Number of processes to launch for the job execution. The default value + * for this property is equal to nodeCount property. */ @JsonProperty(value = "processCount") private Integer processCount; /** - * Get the pythonScriptFilePath value. + * Get the python script to execute. * * @return the pythonScriptFilePath value */ @@ -49,7 +53,7 @@ public String pythonScriptFilePath() { } /** - * Set the pythonScriptFilePath value. + * Set the python script to execute. * * @param pythonScriptFilePath the pythonScriptFilePath value to set * @return the HorovodSettings object itself. @@ -60,7 +64,7 @@ public HorovodSettings withPythonScriptFilePath(String pythonScriptFilePath) { } /** - * Get the pythonInterpreterPath value. + * Get the path to the Python interpreter. * * @return the pythonInterpreterPath value */ @@ -69,7 +73,7 @@ public String pythonInterpreterPath() { } /** - * Set the pythonInterpreterPath value. + * Set the path to the Python interpreter. * * @param pythonInterpreterPath the pythonInterpreterPath value to set * @return the HorovodSettings object itself. @@ -80,7 +84,7 @@ public HorovodSettings withPythonInterpreterPath(String pythonInterpreterPath) { } /** - * Get the commandLineArgs value. + * Get command line arguments that need to be passed to the python script. * * @return the commandLineArgs value */ @@ -89,7 +93,7 @@ public String commandLineArgs() { } /** - * Set the commandLineArgs value. + * Set command line arguments that need to be passed to the python script. * * @param commandLineArgs the commandLineArgs value to set * @return the HorovodSettings object itself. @@ -100,7 +104,7 @@ public HorovodSettings withCommandLineArgs(String commandLineArgs) { } /** - * Get the processCount value. + * Get number of processes to launch for the job execution. The default value for this property is equal to nodeCount property. * * @return the processCount value */ @@ -109,7 +113,7 @@ public Integer processCount() { } /** - * Set the processCount value. + * Set number of processes to launch for the job execution. The default value for this property is equal to nodeCount property. * * @param processCount the processCount value to set * @return the HorovodSettings object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ImageReference.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ImageReference.java index 18c69bade787..25fd711b3d5e 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ImageReference.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ImageReference.java @@ -11,37 +11,41 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * The image reference. + * The OS image reference. */ public class ImageReference { /** + * Publisher. * Publisher of the image. */ @JsonProperty(value = "publisher", required = true) private String publisher; /** + * Offer. * Offer of the image. */ @JsonProperty(value = "offer", required = true) private String offer; /** + * SKU. * SKU of the image. */ @JsonProperty(value = "sku", required = true) private String sku; /** + * Version. * Version of the image. */ @JsonProperty(value = "version") private String version; /** - * The ARM resource identifier of the virtual machine image. Computes nodes - * of the cluster will be created using this custom image. This is of the - * form + * Custom VM image resource ID. + * The ARM resource identifier of the virtual machine image for the compute + * nodes. This is of the form * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}. * The virtual machine image must be in the same region and subscription as * the cluster. For information about the firewall settings for the Batch @@ -54,7 +58,7 @@ public class ImageReference { private String virtualMachineImageId; /** - * Get the publisher value. + * Get publisher of the image. * * @return the publisher value */ @@ -63,7 +67,7 @@ public String publisher() { } /** - * Set the publisher value. + * Set publisher of the image. * * @param publisher the publisher value to set * @return the ImageReference object itself. @@ -74,7 +78,7 @@ public ImageReference withPublisher(String publisher) { } /** - * Get the offer value. + * Get offer of the image. * * @return the offer value */ @@ -83,7 +87,7 @@ public String offer() { } /** - * Set the offer value. + * Set offer of the image. * * @param offer the offer value to set * @return the ImageReference object itself. @@ -94,7 +98,7 @@ public ImageReference withOffer(String offer) { } /** - * Get the sku value. + * Get sKU of the image. * * @return the sku value */ @@ -103,7 +107,7 @@ public String sku() { } /** - * Set the sku value. + * Set sKU of the image. * * @param sku the sku value to set * @return the ImageReference object itself. @@ -114,7 +118,7 @@ public ImageReference withSku(String sku) { } /** - * Get the version value. + * Get version of the image. * * @return the version value */ @@ -123,7 +127,7 @@ public String version() { } /** - * Set the version value. + * Set version of the image. * * @param version the version value to set * @return the ImageReference object itself. @@ -134,7 +138,7 @@ public ImageReference withVersion(String version) { } /** - * Get the virtualMachineImageId value. + * Get the ARM resource identifier of the virtual machine image for the compute nodes. This is of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}. The virtual machine image must be in the same region and subscription as the cluster. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. Note, you need to provide publisher, offer and sku of the base OS image of which the custom image has been derived from. * * @return the virtualMachineImageId value */ @@ -143,7 +147,7 @@ public String virtualMachineImageId() { } /** - * Set the virtualMachineImageId value. + * Set the ARM resource identifier of the virtual machine image for the compute nodes. This is of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}. The virtual machine image must be in the same region and subscription as the cluster. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. Note, you need to provide publisher, offer and sku of the base OS image of which the custom image has been derived from. * * @param virtualMachineImageId the virtualMachineImageId value to set * @return the ImageReference object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ImageSourceRegistry.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ImageSourceRegistry.java index ebd6fbc93d7e..14975621be18 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ImageSourceRegistry.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ImageSourceRegistry.java @@ -11,29 +11,32 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Details of the container image such as name, URL and credentials. + * Information about docker image for the job. */ public class ImageSourceRegistry { /** + * Server URL. * URL for image repository. */ @JsonProperty(value = "serverUrl") private String serverUrl; /** - * The name of the image in image repository. + * Image. + * The name of the image in the image repository. */ @JsonProperty(value = "image", required = true) private String image; /** - * Information to access the private Docker repository. + * Credentials. + * Credentials to access the private docker repository. */ @JsonProperty(value = "credentials") private PrivateRegistryCredentials credentials; /** - * Get the serverUrl value. + * Get uRL for image repository. * * @return the serverUrl value */ @@ -42,7 +45,7 @@ public String serverUrl() { } /** - * Set the serverUrl value. + * Set uRL for image repository. * * @param serverUrl the serverUrl value to set * @return the ImageSourceRegistry object itself. @@ -53,7 +56,7 @@ public ImageSourceRegistry withServerUrl(String serverUrl) { } /** - * Get the image value. + * Get the name of the image in the image repository. * * @return the image value */ @@ -62,7 +65,7 @@ public String image() { } /** - * Set the image value. + * Set the name of the image in the image repository. * * @param image the image value to set * @return the ImageSourceRegistry object itself. @@ -73,7 +76,7 @@ public ImageSourceRegistry withImage(String image) { } /** - * Get the credentials value. + * Get credentials to access the private docker repository. * * @return the credentials value */ @@ -82,7 +85,7 @@ public PrivateRegistryCredentials credentials() { } /** - * Set the credentials value. + * Set credentials to access the private docker repository. * * @param credentials the credentials value to set * @return the ImageSourceRegistry object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/InputDirectory.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/InputDirectory.java index ad11870bb6b7..0ca9aa63c739 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/InputDirectory.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/InputDirectory.java @@ -15,22 +15,23 @@ */ public class InputDirectory { /** - * The id for the input directory. - * The path of the input directory will be available as a value of an - * environment variable with AZ_BATCHAI_INPUT_<id> name, where - * <id> is the value of id attribute. + * ID. + * The ID for the input directory. The job can use + * AZ_BATCHAI_INPUT_<id> environment variable to find the directory + * path, where <id> is the value of id attribute. */ @JsonProperty(value = "id", required = true) private String id; /** + * Path. * The path to the input directory. */ @JsonProperty(value = "path", required = true) private String path; /** - * Get the id value. + * Get the ID for the input directory. The job can use AZ_BATCHAI_INPUT_<id> environment variable to find the directory path, where <id> is the value of id attribute. * * @return the id value */ @@ -39,7 +40,7 @@ public String id() { } /** - * Set the id value. + * Set the ID for the input directory. The job can use AZ_BATCHAI_INPUT_<id> environment variable to find the directory path, where <id> is the value of id attribute. * * @param id the id value to set * @return the InputDirectory object itself. @@ -50,7 +51,7 @@ public InputDirectory withId(String id) { } /** - * Get the path value. + * Get the path to the input directory. * * @return the path value */ @@ -59,7 +60,7 @@ public String path() { } /** - * Set the path value. + * Set the path to the input directory. * * @param path the path value to set * @return the InputDirectory object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/Job.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/Job.java index 924b910a90bd..407157c34d08 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/Job.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/Job.java @@ -24,6 +24,11 @@ * Type representing Job. */ public interface Job extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the caffe2Settings value. + */ + Caffe2Settings caffe2Settings(); + /** * @return the caffeSettings value. */ @@ -134,11 +139,6 @@ public interface Job extends HasInner, Indexable, Refreshable, Up */ List outputDirectories(); - /** - * @return the priority value. - */ - JobPriority priority(); - /** * @return the provisioningState value. */ @@ -154,6 +154,11 @@ public interface Job extends HasInner, Indexable, Refreshable, Up */ PyTorchSettings pyTorchSettings(); + /** + * @return the schedulingPriority value. + */ + JobPriority schedulingPriority(); + /** * @return the secrets value. */ diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobBasePropertiesConstraints.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobBasePropertiesConstraints.java index 7c21fbe41bd5..e739978f0452 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobBasePropertiesConstraints.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobBasePropertiesConstraints.java @@ -16,14 +16,14 @@ */ public class JobBasePropertiesConstraints { /** - * Max time the job can run. - * Default Value = 1 week. + * Max wall clock time. + * Max time the job can run. Default value: 1 week. */ @JsonProperty(value = "maxWallClockTime") private Period maxWallClockTime; /** - * Get the maxWallClockTime value. + * Get max time the job can run. Default value: 1 week. * * @return the maxWallClockTime value */ @@ -32,7 +32,7 @@ public Period maxWallClockTime() { } /** - * Set the maxWallClockTime value. + * Set max time the job can run. Default value: 1 week. * * @param maxWallClockTime the maxWallClockTime value to set * @return the JobBasePropertiesConstraints object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobCreateParameters.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobCreateParameters.java index 4bbc64d6942d..b500383b6ac0 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobCreateParameters.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobCreateParameters.java @@ -13,141 +13,157 @@ import com.microsoft.rest.serializer.JsonFlatten; /** - * Parameters supplied to the Create operation. + * Job creation parameters. */ @JsonFlatten public class JobCreateParameters { /** - * Scheduling priority associated with the job. - * Scheduling priority associated with the job. Possible values include: - * 'low', 'normal', 'high'. + * Scheduling priority. + * Scheduling priority associated with the job. Possible values: low, + * normal, high. Possible values include: 'low', 'normal', 'high'. */ @JsonProperty(value = "properties.schedulingPriority") private JobPriority schedulingPriority; /** - * Specifies the Id of the cluster on which this job will run. + * Cluster. + * Resource ID of the cluster on which this job will run. */ @JsonProperty(value = "properties.cluster", required = true) private ResourceId cluster; /** - * Information on mount volumes to be used by the job. - * These volumes will be mounted before the job execution and will be - * unmouted after the job completion. The volumes will be mounted at - * location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable. + * Mount volumes. + * Information on mount volumes to be used by the job. These volumes will + * be mounted before the job execution and will be unmouted after the job + * completion. The volumes will be mounted at location specified by + * $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable. */ @JsonProperty(value = "properties.mountVolumes") private MountVolumes mountVolumes; /** - * Number of compute nodes to run the job on. - * The job will be gang scheduled on that many compute nodes. + * Node count. + * Number of compute nodes to run the job on. The job will be gang + * scheduled on that many compute nodes. */ @JsonProperty(value = "properties.nodeCount", required = true) private int nodeCount; /** - * If provided the job will run in the specified container. - * If the container was downloaded as part of cluster setup then the same - * container image will be used. If not provided, the job will run on the - * VM. + * Container settings. + * Docker container settings for the job. If not provided, the job will run + * directly on the node. */ @JsonProperty(value = "properties.containerSettings") private ContainerSettings containerSettings; /** - * Specifies the settings for CNTK (aka Microsoft Cognitive Toolkit) job. + * CNTK settings. + * Settings for CNTK (aka Microsoft Cognitive Toolkit) job. */ @JsonProperty(value = "properties.cntkSettings") private CNTKsettings cntkSettings; /** - * Specifies the settings for pyTorch job. + * pyTorch settings. + * Settings for pyTorch job. */ @JsonProperty(value = "properties.pyTorchSettings") private PyTorchSettings pyTorchSettings; /** - * Specifies the settings for Tensor Flow job. + * TensorFlow settings. + * Settings for Tensor Flow job. */ @JsonProperty(value = "properties.tensorFlowSettings") private TensorFlowSettings tensorFlowSettings; /** - * Specifies the settings for Caffe job. + * Caffe settings. + * Settings for Caffe job. */ @JsonProperty(value = "properties.caffeSettings") private CaffeSettings caffeSettings; /** - * Specifies the settings for Caffe2 job. + * Caffe2 settings. + * Settings for Caffe2 job. */ @JsonProperty(value = "properties.caffe2Settings") private Caffe2Settings caffe2Settings; /** - * Specifies the settings for Chainer job. + * Chainer settings. + * Settings for Chainer job. */ @JsonProperty(value = "properties.chainerSettings") private ChainerSettings chainerSettings; /** - * Specifies the settings for custom tool kit job. + * Custom tool kit job. + * Settings for custom tool kit job. */ @JsonProperty(value = "properties.customToolkitSettings") private CustomToolkitSettings customToolkitSettings; /** - * Specifies the settings for custom MPI job. + * Custom MPI settings. + * Settings for custom MPI job. */ @JsonProperty(value = "properties.customMpiSettings") private CustomMpiSettings customMpiSettings; /** - * Specifies the settings for Horovod job. + * Horovod settings. + * Settings for Horovod job. */ @JsonProperty(value = "properties.horovodSettings") private HorovodSettings horovodSettings; /** - * Specifies the command line to be executed before tool kit is launched. - * The specified actions will run on all the nodes that are part of the - * job. + * Job preparation. + * A command line to be executed on each node allocated for the job before + * tool kit is launched. */ @JsonProperty(value = "properties.jobPreparation") private JobPreparation jobPreparation; /** - * The path where the Batch AI service will upload stdout and stderror of - * the job. + * Standard output path prefix. + * The path where the Batch AI service will store stdout, stderror and + * execution log of the job. */ @JsonProperty(value = "properties.stdOutErrPathPrefix", required = true) private String stdOutErrPathPrefix; /** - * Specifies the list of input directories for the Job. + * Input directories. + * A list of input directories for the job. */ @JsonProperty(value = "properties.inputDirectories") private List inputDirectories; /** - * Specifies the list of output directories. + * Output directories. + * A list of output directories for the job. */ @JsonProperty(value = "properties.outputDirectories") private List outputDirectories; /** - * Additional environment variables to set on the job. - * Batch AI will setup these additional environment variables for the job. + * Environment variables. + * A list of user defined environment variables which will be setup for the + * job. */ @JsonProperty(value = "properties.environmentVariables") private List environmentVariables; /** - * Additional environment variables with secret values to set on the job. - * Batch AI will setup these additional environment variables for the job. - * Server will never report values of these variables back. + * Secrets. + * A list of user defined environment variables with secret values which + * will be setup for the job. Server will never report values of these + * variables back. */ @JsonProperty(value = "properties.secrets") private List secrets; @@ -159,7 +175,7 @@ public class JobCreateParameters { private JobBasePropertiesConstraints constraints; /** - * Get the schedulingPriority value. + * Get scheduling priority associated with the job. Possible values: low, normal, high. Possible values include: 'low', 'normal', 'high'. * * @return the schedulingPriority value */ @@ -168,7 +184,7 @@ public JobPriority schedulingPriority() { } /** - * Set the schedulingPriority value. + * Set scheduling priority associated with the job. Possible values: low, normal, high. Possible values include: 'low', 'normal', 'high'. * * @param schedulingPriority the schedulingPriority value to set * @return the JobCreateParameters object itself. @@ -179,7 +195,7 @@ public JobCreateParameters withSchedulingPriority(JobPriority schedulingPriority } /** - * Get the cluster value. + * Get resource ID of the cluster on which this job will run. * * @return the cluster value */ @@ -188,7 +204,7 @@ public ResourceId cluster() { } /** - * Set the cluster value. + * Set resource ID of the cluster on which this job will run. * * @param cluster the cluster value to set * @return the JobCreateParameters object itself. @@ -199,7 +215,7 @@ public JobCreateParameters withCluster(ResourceId cluster) { } /** - * Get the mountVolumes value. + * Get information on mount volumes to be used by the job. These volumes will be mounted before the job execution and will be unmouted after the job completion. The volumes will be mounted at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable. * * @return the mountVolumes value */ @@ -208,7 +224,7 @@ public MountVolumes mountVolumes() { } /** - * Set the mountVolumes value. + * Set information on mount volumes to be used by the job. These volumes will be mounted before the job execution and will be unmouted after the job completion. The volumes will be mounted at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable. * * @param mountVolumes the mountVolumes value to set * @return the JobCreateParameters object itself. @@ -219,7 +235,7 @@ public JobCreateParameters withMountVolumes(MountVolumes mountVolumes) { } /** - * Get the nodeCount value. + * Get number of compute nodes to run the job on. The job will be gang scheduled on that many compute nodes. * * @return the nodeCount value */ @@ -228,7 +244,7 @@ public int nodeCount() { } /** - * Set the nodeCount value. + * Set number of compute nodes to run the job on. The job will be gang scheduled on that many compute nodes. * * @param nodeCount the nodeCount value to set * @return the JobCreateParameters object itself. @@ -239,7 +255,7 @@ public JobCreateParameters withNodeCount(int nodeCount) { } /** - * Get the containerSettings value. + * Get docker container settings for the job. If not provided, the job will run directly on the node. * * @return the containerSettings value */ @@ -248,7 +264,7 @@ public ContainerSettings containerSettings() { } /** - * Set the containerSettings value. + * Set docker container settings for the job. If not provided, the job will run directly on the node. * * @param containerSettings the containerSettings value to set * @return the JobCreateParameters object itself. @@ -259,7 +275,7 @@ public JobCreateParameters withContainerSettings(ContainerSettings containerSett } /** - * Get the cntkSettings value. + * Get settings for CNTK (aka Microsoft Cognitive Toolkit) job. * * @return the cntkSettings value */ @@ -268,7 +284,7 @@ public CNTKsettings cntkSettings() { } /** - * Set the cntkSettings value. + * Set settings for CNTK (aka Microsoft Cognitive Toolkit) job. * * @param cntkSettings the cntkSettings value to set * @return the JobCreateParameters object itself. @@ -279,7 +295,7 @@ public JobCreateParameters withCntkSettings(CNTKsettings cntkSettings) { } /** - * Get the pyTorchSettings value. + * Get settings for pyTorch job. * * @return the pyTorchSettings value */ @@ -288,7 +304,7 @@ public PyTorchSettings pyTorchSettings() { } /** - * Set the pyTorchSettings value. + * Set settings for pyTorch job. * * @param pyTorchSettings the pyTorchSettings value to set * @return the JobCreateParameters object itself. @@ -299,7 +315,7 @@ public JobCreateParameters withPyTorchSettings(PyTorchSettings pyTorchSettings) } /** - * Get the tensorFlowSettings value. + * Get settings for Tensor Flow job. * * @return the tensorFlowSettings value */ @@ -308,7 +324,7 @@ public TensorFlowSettings tensorFlowSettings() { } /** - * Set the tensorFlowSettings value. + * Set settings for Tensor Flow job. * * @param tensorFlowSettings the tensorFlowSettings value to set * @return the JobCreateParameters object itself. @@ -319,7 +335,7 @@ public JobCreateParameters withTensorFlowSettings(TensorFlowSettings tensorFlowS } /** - * Get the caffeSettings value. + * Get settings for Caffe job. * * @return the caffeSettings value */ @@ -328,7 +344,7 @@ public CaffeSettings caffeSettings() { } /** - * Set the caffeSettings value. + * Set settings for Caffe job. * * @param caffeSettings the caffeSettings value to set * @return the JobCreateParameters object itself. @@ -339,7 +355,7 @@ public JobCreateParameters withCaffeSettings(CaffeSettings caffeSettings) { } /** - * Get the caffe2Settings value. + * Get settings for Caffe2 job. * * @return the caffe2Settings value */ @@ -348,7 +364,7 @@ public Caffe2Settings caffe2Settings() { } /** - * Set the caffe2Settings value. + * Set settings for Caffe2 job. * * @param caffe2Settings the caffe2Settings value to set * @return the JobCreateParameters object itself. @@ -359,7 +375,7 @@ public JobCreateParameters withCaffe2Settings(Caffe2Settings caffe2Settings) { } /** - * Get the chainerSettings value. + * Get settings for Chainer job. * * @return the chainerSettings value */ @@ -368,7 +384,7 @@ public ChainerSettings chainerSettings() { } /** - * Set the chainerSettings value. + * Set settings for Chainer job. * * @param chainerSettings the chainerSettings value to set * @return the JobCreateParameters object itself. @@ -379,7 +395,7 @@ public JobCreateParameters withChainerSettings(ChainerSettings chainerSettings) } /** - * Get the customToolkitSettings value. + * Get settings for custom tool kit job. * * @return the customToolkitSettings value */ @@ -388,7 +404,7 @@ public CustomToolkitSettings customToolkitSettings() { } /** - * Set the customToolkitSettings value. + * Set settings for custom tool kit job. * * @param customToolkitSettings the customToolkitSettings value to set * @return the JobCreateParameters object itself. @@ -399,7 +415,7 @@ public JobCreateParameters withCustomToolkitSettings(CustomToolkitSettings custo } /** - * Get the customMpiSettings value. + * Get settings for custom MPI job. * * @return the customMpiSettings value */ @@ -408,7 +424,7 @@ public CustomMpiSettings customMpiSettings() { } /** - * Set the customMpiSettings value. + * Set settings for custom MPI job. * * @param customMpiSettings the customMpiSettings value to set * @return the JobCreateParameters object itself. @@ -419,7 +435,7 @@ public JobCreateParameters withCustomMpiSettings(CustomMpiSettings customMpiSett } /** - * Get the horovodSettings value. + * Get settings for Horovod job. * * @return the horovodSettings value */ @@ -428,7 +444,7 @@ public HorovodSettings horovodSettings() { } /** - * Set the horovodSettings value. + * Set settings for Horovod job. * * @param horovodSettings the horovodSettings value to set * @return the JobCreateParameters object itself. @@ -439,7 +455,7 @@ public JobCreateParameters withHorovodSettings(HorovodSettings horovodSettings) } /** - * Get the jobPreparation value. + * Get a command line to be executed on each node allocated for the job before tool kit is launched. * * @return the jobPreparation value */ @@ -448,7 +464,7 @@ public JobPreparation jobPreparation() { } /** - * Set the jobPreparation value. + * Set a command line to be executed on each node allocated for the job before tool kit is launched. * * @param jobPreparation the jobPreparation value to set * @return the JobCreateParameters object itself. @@ -459,7 +475,7 @@ public JobCreateParameters withJobPreparation(JobPreparation jobPreparation) { } /** - * Get the stdOutErrPathPrefix value. + * Get the path where the Batch AI service will store stdout, stderror and execution log of the job. * * @return the stdOutErrPathPrefix value */ @@ -468,7 +484,7 @@ public String stdOutErrPathPrefix() { } /** - * Set the stdOutErrPathPrefix value. + * Set the path where the Batch AI service will store stdout, stderror and execution log of the job. * * @param stdOutErrPathPrefix the stdOutErrPathPrefix value to set * @return the JobCreateParameters object itself. @@ -479,7 +495,7 @@ public JobCreateParameters withStdOutErrPathPrefix(String stdOutErrPathPrefix) { } /** - * Get the inputDirectories value. + * Get a list of input directories for the job. * * @return the inputDirectories value */ @@ -488,7 +504,7 @@ public List inputDirectories() { } /** - * Set the inputDirectories value. + * Set a list of input directories for the job. * * @param inputDirectories the inputDirectories value to set * @return the JobCreateParameters object itself. @@ -499,7 +515,7 @@ public JobCreateParameters withInputDirectories(List inputDirect } /** - * Get the outputDirectories value. + * Get a list of output directories for the job. * * @return the outputDirectories value */ @@ -508,7 +524,7 @@ public List outputDirectories() { } /** - * Set the outputDirectories value. + * Set a list of output directories for the job. * * @param outputDirectories the outputDirectories value to set * @return the JobCreateParameters object itself. @@ -519,7 +535,7 @@ public JobCreateParameters withOutputDirectories(List outputDir } /** - * Get the environmentVariables value. + * Get a list of user defined environment variables which will be setup for the job. * * @return the environmentVariables value */ @@ -528,7 +544,7 @@ public List environmentVariables() { } /** - * Set the environmentVariables value. + * Set a list of user defined environment variables which will be setup for the job. * * @param environmentVariables the environmentVariables value to set * @return the JobCreateParameters object itself. @@ -539,7 +555,7 @@ public JobCreateParameters withEnvironmentVariables(List en } /** - * Get the secrets value. + * Get a list of user defined environment variables with secret values which will be setup for the job. Server will never report values of these variables back. * * @return the secrets value */ @@ -548,7 +564,7 @@ public List secrets() { } /** - * Set the secrets value. + * Set a list of user defined environment variables with secret values which will be setup for the job. Server will never report values of these variables back. * * @param secrets the secrets value to set * @return the JobCreateParameters object itself. @@ -559,7 +575,7 @@ public JobCreateParameters withSecrets(List } /** - * Get the constraints value. + * Get constraints associated with the Job. * * @return the constraints value */ @@ -568,7 +584,7 @@ public JobBasePropertiesConstraints constraints() { } /** - * Set the constraints value. + * Set constraints associated with the Job. * * @param constraints the constraints value to set * @return the JobCreateParameters object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobPreparation.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobPreparation.java index bbbe45f4a82b..1205fdf8dad3 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobPreparation.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobPreparation.java @@ -11,20 +11,20 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Specifies the settings for job preparation. + * Job preparation settings. */ public class JobPreparation { /** - * The command line to execute. - * If containerSettings is specified on the job, this commandLine will be - * executed in the same container as job. Otherwise it will be executed on - * the node. + * Command line. + * The command line to execute. If containerSettings is specified on the + * job, this commandLine will be executed in the same container as job. + * Otherwise it will be executed on the node. */ @JsonProperty(value = "commandLine", required = true) private String commandLine; /** - * Get the commandLine value. + * Get the command line to execute. If containerSettings is specified on the job, this commandLine will be executed in the same container as job. Otherwise it will be executed on the node. * * @return the commandLine value */ @@ -33,7 +33,7 @@ public String commandLine() { } /** - * Set the commandLine value. + * Set the command line to execute. If containerSettings is specified on the job, this commandLine will be executed in the same container as job. Otherwise it will be executed on the node. * * @param commandLine the commandLine value to set * @return the JobPreparation object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobPropertiesConstraints.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobPropertiesConstraints.java index b67740159cdb..103830ab9b3c 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobPropertiesConstraints.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobPropertiesConstraints.java @@ -16,14 +16,14 @@ */ public class JobPropertiesConstraints { /** - * Max time the job can run. - * Default Value = 1 week. + * Max wall clock time. + * Max time the job can run. Default value: 1 week. */ @JsonProperty(value = "maxWallClockTime") private Period maxWallClockTime; /** - * Get the maxWallClockTime value. + * Get max time the job can run. Default value: 1 week. * * @return the maxWallClockTime value */ @@ -32,7 +32,7 @@ public Period maxWallClockTime() { } /** - * Set the maxWallClockTime value. + * Set max time the job can run. Default value: 1 week. * * @param maxWallClockTime the maxWallClockTime value to set * @return the JobPropertiesConstraints object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobPropertiesExecutionInfo.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobPropertiesExecutionInfo.java index ce5f3e402bcb..078c3a22a1a3 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobPropertiesExecutionInfo.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobPropertiesExecutionInfo.java @@ -13,43 +13,44 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Contains information about the execution of a job in the Azure Batch - * service. + * Information about the execution of a job. */ public class JobPropertiesExecutionInfo { /** - * The time at which the job started running. - * 'Running' corresponds to the running state. If the job has been - * restarted or retried, this is the most recent time at which the job - * started running. This property is present only for job that are in the - * running or completed state. + * Start time. + * The time at which the job started running. 'Running' corresponds to the + * running state. If the job has been restarted or retried, this is the + * most recent time at which the job started running. This property is + * present only for job that are in the running or completed state. */ @JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime startTime; /** - * The time at which the job completed. - * This property is only returned if the job is in completed state. + * End time. + * The time at which the job completed. This property is only returned if + * the job is in completed state. */ @JsonProperty(value = "endTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime endTime; /** - * The exit code of the job. - * This property is only returned if the job is in completed state. + * Exit code. + * The exit code of the job. This property is only returned if the job is + * in completed state. */ @JsonProperty(value = "exitCode", access = JsonProperty.Access.WRITE_ONLY) private Integer exitCode; /** - * Contains details of various errors encountered by the service during job - * execution. + * Errors. + * A collection of errors encountered by the service during job execution. */ @JsonProperty(value = "errors", access = JsonProperty.Access.WRITE_ONLY) private List errors; /** - * Get the startTime value. + * Get the time at which the job started running. 'Running' corresponds to the running state. If the job has been restarted or retried, this is the most recent time at which the job started running. This property is present only for job that are in the running or completed state. * * @return the startTime value */ @@ -58,7 +59,7 @@ public DateTime startTime() { } /** - * Get the endTime value. + * Get the time at which the job completed. This property is only returned if the job is in completed state. * * @return the endTime value */ @@ -67,7 +68,7 @@ public DateTime endTime() { } /** - * Get the exitCode value. + * Get the exit code of the job. This property is only returned if the job is in completed state. * * @return the exitCode value */ @@ -76,7 +77,7 @@ public Integer exitCode() { } /** - * Get the errors value. + * Get a collection of errors encountered by the service during job execution. * * @return the errors value */ diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobsListByExperimentOptions.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobsListByExperimentOptions.java index ec3bcd6da0de..cea1de08f413 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobsListByExperimentOptions.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobsListByExperimentOptions.java @@ -22,7 +22,7 @@ public class JobsListByExperimentOptions { private Integer maxResults; /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -31,7 +31,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the JobsListByExperimentOptions object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobsListOutputFilesOptions.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobsListOutputFilesOptions.java index 3a793da02ef1..d37215d2c0bf 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobsListOutputFilesOptions.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/JobsListOutputFilesOptions.java @@ -41,7 +41,7 @@ public class JobsListOutputFilesOptions { private Integer maxResults; /** - * Get the outputdirectoryid value. + * Get id of the job output directory. This is the OutputDirectory-->id parameter that is given by the user during Create Job. * * @return the outputdirectoryid value */ @@ -50,7 +50,7 @@ public String outputdirectoryid() { } /** - * Set the outputdirectoryid value. + * Set id of the job output directory. This is the OutputDirectory-->id parameter that is given by the user during Create Job. * * @param outputdirectoryid the outputdirectoryid value to set * @return the JobsListOutputFilesOptions object itself. @@ -61,7 +61,7 @@ public JobsListOutputFilesOptions withOutputdirectoryid(String outputdirectoryid } /** - * Get the directory value. + * Get the path to the directory. * * @return the directory value */ @@ -70,7 +70,7 @@ public String directory() { } /** - * Set the directory value. + * Set the path to the directory. * * @param directory the directory value to set * @return the JobsListOutputFilesOptions object itself. @@ -81,7 +81,7 @@ public JobsListOutputFilesOptions withDirectory(String directory) { } /** - * Get the linkexpiryinminutes value. + * Get the number of minutes after which the download link will expire. * * @return the linkexpiryinminutes value */ @@ -90,7 +90,7 @@ public Integer linkexpiryinminutes() { } /** - * Set the linkexpiryinminutes value. + * Set the number of minutes after which the download link will expire. * * @param linkexpiryinminutes the linkexpiryinminutes value to set * @return the JobsListOutputFilesOptions object itself. @@ -101,7 +101,7 @@ public JobsListOutputFilesOptions withLinkexpiryinminutes(Integer linkexpiryinmi } /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -110,7 +110,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the JobsListOutputFilesOptions object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/KeyVaultSecretReference.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/KeyVaultSecretReference.java index ddf4ff0f4a4f..ed4c3cd12e30 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/KeyVaultSecretReference.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/KeyVaultSecretReference.java @@ -11,23 +11,25 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Describes a reference to Key Vault Secret. + * Key Vault Secret reference. */ public class KeyVaultSecretReference { /** - * Fully qualified resource Id for the Key Vault. + * Key Vault resource identifier. + * Fully qualified resource indentifier of the Key Vault. */ @JsonProperty(value = "sourceVault", required = true) private ResourceId sourceVault; /** - * The URL referencing a secret in a Key Vault. + * Secret URL. + * The URL referencing a secret in the Key Vault. */ @JsonProperty(value = "secretUrl", required = true) private String secretUrl; /** - * Get the sourceVault value. + * Get fully qualified resource indentifier of the Key Vault. * * @return the sourceVault value */ @@ -36,7 +38,7 @@ public ResourceId sourceVault() { } /** - * Set the sourceVault value. + * Set fully qualified resource indentifier of the Key Vault. * * @param sourceVault the sourceVault value to set * @return the KeyVaultSecretReference object itself. @@ -47,7 +49,7 @@ public KeyVaultSecretReference withSourceVault(ResourceId sourceVault) { } /** - * Get the secretUrl value. + * Get the URL referencing a secret in the Key Vault. * * @return the secretUrl value */ @@ -56,7 +58,7 @@ public String secretUrl() { } /** - * Set the secretUrl value. + * Set the URL referencing a secret in the Key Vault. * * @param secretUrl the secretUrl value to set * @return the KeyVaultSecretReference object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ManualScaleSettings.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ManualScaleSettings.java index d75f05302fe4..2d3c8798c6bc 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ManualScaleSettings.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ManualScaleSettings.java @@ -15,24 +15,23 @@ */ public class ManualScaleSettings { /** - * The desired number of compute nodes in the Cluster. - * Default is 0. If autoScaleSettings are not specified, then the Cluster - * starts with this target. + * Target node count. + * The desired number of compute nodes in the Cluster. Default is 0. */ @JsonProperty(value = "targetNodeCount", required = true) private int targetNodeCount; /** - * Determines what to do with the job(s) running on compute node if the - * Cluster size is decreasing. - * The default value is requeue. Possible values include: 'requeue', + * Node deallocation options. + * An action to be performed when the cluster size is decreasing. The + * default value is requeue. Possible values include: 'requeue', * 'terminate', 'waitforjobcompletion'. */ @JsonProperty(value = "nodeDeallocationOption") private DeallocationOption nodeDeallocationOption; /** - * Get the targetNodeCount value. + * Get the desired number of compute nodes in the Cluster. Default is 0. * * @return the targetNodeCount value */ @@ -41,7 +40,7 @@ public int targetNodeCount() { } /** - * Set the targetNodeCount value. + * Set the desired number of compute nodes in the Cluster. Default is 0. * * @param targetNodeCount the targetNodeCount value to set * @return the ManualScaleSettings object itself. @@ -52,7 +51,7 @@ public ManualScaleSettings withTargetNodeCount(int targetNodeCount) { } /** - * Get the nodeDeallocationOption value. + * Get an action to be performed when the cluster size is decreasing. The default value is requeue. Possible values include: 'requeue', 'terminate', 'waitforjobcompletion'. * * @return the nodeDeallocationOption value */ @@ -61,7 +60,7 @@ public DeallocationOption nodeDeallocationOption() { } /** - * Set the nodeDeallocationOption value. + * Set an action to be performed when the cluster size is decreasing. The default value is requeue. Possible values include: 'requeue', 'terminate', 'waitforjobcompletion'. * * @param nodeDeallocationOption the nodeDeallocationOption value to set * @return the ManualScaleSettings object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/MountSettings.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/MountSettings.java index 8e22c4778f64..d99606ab80a3 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/MountSettings.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/MountSettings.java @@ -11,30 +11,34 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Details of the File Server. + * File Server mount Information. */ public class MountSettings { /** - * Path where the NFS is mounted on the Server. + * Mount Point. + * Path where the data disks are mounted on the File Server. */ @JsonProperty(value = "mountPoint") private String mountPoint; /** - * Public IP of the File Server VM. + * Public IP. + * Public IP address of the File Server which can be used to SSH to the + * node from outside of the subnet. */ @JsonProperty(value = "fileServerPublicIP") private String fileServerPublicIP; /** - * Internal subnet IP which can be used to access the file Server from - * within the subnet. + * Internal IP. + * Internal IP address of the File Server which can be used to access the + * File Server from within the subnet. */ @JsonProperty(value = "fileServerInternalIP") private String fileServerInternalIP; /** - * Get the mountPoint value. + * Get path where the data disks are mounted on the File Server. * * @return the mountPoint value */ @@ -43,7 +47,7 @@ public String mountPoint() { } /** - * Set the mountPoint value. + * Set path where the data disks are mounted on the File Server. * * @param mountPoint the mountPoint value to set * @return the MountSettings object itself. @@ -54,7 +58,7 @@ public MountSettings withMountPoint(String mountPoint) { } /** - * Get the fileServerPublicIP value. + * Get public IP address of the File Server which can be used to SSH to the node from outside of the subnet. * * @return the fileServerPublicIP value */ @@ -63,7 +67,7 @@ public String fileServerPublicIP() { } /** - * Set the fileServerPublicIP value. + * Set public IP address of the File Server which can be used to SSH to the node from outside of the subnet. * * @param fileServerPublicIP the fileServerPublicIP value to set * @return the MountSettings object itself. @@ -74,7 +78,7 @@ public MountSettings withFileServerPublicIP(String fileServerPublicIP) { } /** - * Get the fileServerInternalIP value. + * Get internal IP address of the File Server which can be used to access the File Server from within the subnet. * * @return the fileServerInternalIP value */ @@ -83,7 +87,7 @@ public String fileServerInternalIP() { } /** - * Set the fileServerInternalIP value. + * Set internal IP address of the File Server which can be used to access the File Server from within the subnet. * * @param fileServerInternalIP the fileServerInternalIP value to set * @return the MountSettings object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/MountVolumes.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/MountVolumes.java index 73ee0d434a10..062a7e530269 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/MountVolumes.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/MountVolumes.java @@ -16,37 +16,39 @@ */ public class MountVolumes { /** - * Azure File Share setup configuration. - * References to Azure File Shares that are to be mounted to the cluster + * Azure File Shares. + * A collection of Azure File Shares that are to be mounted to the cluster * nodes. */ @JsonProperty(value = "azureFileShares") private List azureFileShares; /** - * Azure Blob FileSystem setup configuration. - * References to Azure Blob FUSE that are to be mounted to the cluster - * nodes. + * Azure Blob file systems. + * A collection of Azure Blob Containers that are to be mounted to the + * cluster nodes. */ @JsonProperty(value = "azureBlobFileSystems") private List azureBlobFileSystems; /** - * References to a list of file servers that are mounted to the cluster - * node. + * File Servers. + * A collection of Batch AI File Servers that are to be mounted to the + * cluster nodes. */ @JsonProperty(value = "fileServers") private List fileServers; /** - * References to a list of file servers that are mounted to the cluster - * node. + * Unmanaged file systems. + * A collection of unmanaged file systems that are to be mounted to the + * cluster nodes. */ @JsonProperty(value = "unmanagedFileSystems") private List unmanagedFileSystems; /** - * Get the azureFileShares value. + * Get a collection of Azure File Shares that are to be mounted to the cluster nodes. * * @return the azureFileShares value */ @@ -55,7 +57,7 @@ public List azureFileShares() { } /** - * Set the azureFileShares value. + * Set a collection of Azure File Shares that are to be mounted to the cluster nodes. * * @param azureFileShares the azureFileShares value to set * @return the MountVolumes object itself. @@ -66,7 +68,7 @@ public MountVolumes withAzureFileShares(List azureFileS } /** - * Get the azureBlobFileSystems value. + * Get a collection of Azure Blob Containers that are to be mounted to the cluster nodes. * * @return the azureBlobFileSystems value */ @@ -75,7 +77,7 @@ public List azureBlobFileSystems() { } /** - * Set the azureBlobFileSystems value. + * Set a collection of Azure Blob Containers that are to be mounted to the cluster nodes. * * @param azureBlobFileSystems the azureBlobFileSystems value to set * @return the MountVolumes object itself. @@ -86,7 +88,7 @@ public MountVolumes withAzureBlobFileSystems(List } /** - * Get the fileServers value. + * Get a collection of Batch AI File Servers that are to be mounted to the cluster nodes. * * @return the fileServers value */ @@ -95,7 +97,7 @@ public List fileServers() { } /** - * Set the fileServers value. + * Set a collection of Batch AI File Servers that are to be mounted to the cluster nodes. * * @param fileServers the fileServers value to set * @return the MountVolumes object itself. @@ -106,7 +108,7 @@ public MountVolumes withFileServers(List fileServers) { } /** - * Get the unmanagedFileSystems value. + * Get a collection of unmanaged file systems that are to be mounted to the cluster nodes. * * @return the unmanagedFileSystems value */ @@ -115,7 +117,7 @@ public List unmanagedFileSystems() { } /** - * Set the unmanagedFileSystems value. + * Set a collection of unmanaged file systems that are to be mounted to the cluster nodes. * * @param unmanagedFileSystems the unmanagedFileSystems value to set * @return the MountVolumes object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/NameValuePair.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/NameValuePair.java index c71cd5d5ede7..147e62187766 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/NameValuePair.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/NameValuePair.java @@ -11,23 +11,25 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Represents a name-value pair. + * Name-value pair. */ public class NameValuePair { /** + * Name. * The name in the name-value pair. */ @JsonProperty(value = "name") private String name; /** + * Value. * The value in the name-value pair. */ @JsonProperty(value = "value") private String value; /** - * Get the name value. + * Get the name in the name-value pair. * * @return the name value */ @@ -36,7 +38,7 @@ public String name() { } /** - * Set the name value. + * Set the name in the name-value pair. * * @param name the name value to set * @return the NameValuePair object itself. @@ -47,7 +49,7 @@ public NameValuePair withName(String name) { } /** - * Get the value value. + * Get the value in the name-value pair. * * @return the value value */ @@ -56,7 +58,7 @@ public String value() { } /** - * Set the value value. + * Set the value in the name-value pair. * * @param value the value value to set * @return the NameValuePair object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/NodeSetup.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/NodeSetup.java index 3dfcbfc55e7e..facf3ef8aed3 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/NodeSetup.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/NodeSetup.java @@ -11,38 +11,37 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Use this to prepare the VM. NOTE: The volumes specified in mountVolumes are - * mounted first and then the setupTask is run. Therefore the setup task can - * use local mountPaths in its execution. + * Node setup settings. */ public class NodeSetup { /** - * Specifies a setup task which can be used to customize the compute nodes - * of the cluster. The NodeSetup task runs everytime a VM is rebooted. For - * that reason the task code needs to be idempotent. Generally it is used - * to either download static data that is required for all jobs that run on - * the cluster VMs or to download/install software. + * Setup task. + * Setup task to run on cluster nodes when nodes got created or rebooted. + * The setup task code needs to be idempotent. Generally the setup task is + * used to download static data that is required for all jobs that run on + * the cluster VMs and/or to download/install software. */ @JsonProperty(value = "setupTask") private SetupTask setupTask; /** - * Information on shared volumes to be used by jobs. - * Specified mount volumes will be available to all jobs executing on the - * cluster. The volumes will be mounted at location specified by + * Mount volumes. + * Mount volumes to be available to setup task and all jobs executing on + * the cluster. The volumes will be mounted at location specified by * $AZ_BATCHAI_MOUNT_ROOT environment variable. */ @JsonProperty(value = "mountVolumes") private MountVolumes mountVolumes; /** - * Specifies settings for performance counters collecting and uploading. + * Performance counters settings. + * Settings for performance counters collecting and uploading. */ @JsonProperty(value = "performanceCountersSettings") private PerformanceCountersSettings performanceCountersSettings; /** - * Get the setupTask value. + * Get setup task to run on cluster nodes when nodes got created or rebooted. The setup task code needs to be idempotent. Generally the setup task is used to download static data that is required for all jobs that run on the cluster VMs and/or to download/install software. * * @return the setupTask value */ @@ -51,7 +50,7 @@ public SetupTask setupTask() { } /** - * Set the setupTask value. + * Set setup task to run on cluster nodes when nodes got created or rebooted. The setup task code needs to be idempotent. Generally the setup task is used to download static data that is required for all jobs that run on the cluster VMs and/or to download/install software. * * @param setupTask the setupTask value to set * @return the NodeSetup object itself. @@ -62,7 +61,7 @@ public NodeSetup withSetupTask(SetupTask setupTask) { } /** - * Get the mountVolumes value. + * Get mount volumes to be available to setup task and all jobs executing on the cluster. The volumes will be mounted at location specified by $AZ_BATCHAI_MOUNT_ROOT environment variable. * * @return the mountVolumes value */ @@ -71,7 +70,7 @@ public MountVolumes mountVolumes() { } /** - * Set the mountVolumes value. + * Set mount volumes to be available to setup task and all jobs executing on the cluster. The volumes will be mounted at location specified by $AZ_BATCHAI_MOUNT_ROOT environment variable. * * @param mountVolumes the mountVolumes value to set * @return the NodeSetup object itself. @@ -82,7 +81,7 @@ public NodeSetup withMountVolumes(MountVolumes mountVolumes) { } /** - * Get the performanceCountersSettings value. + * Get settings for performance counters collecting and uploading. * * @return the performanceCountersSettings value */ @@ -91,7 +90,7 @@ public PerformanceCountersSettings performanceCountersSettings() { } /** - * Set the performanceCountersSettings value. + * Set settings for performance counters collecting and uploading. * * @param performanceCountersSettings the performanceCountersSettings value to set * @return the NodeSetup object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/NodeStateCounts.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/NodeStateCounts.java index d2629fcb8344..7433756150c1 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/NodeStateCounts.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/NodeStateCounts.java @@ -15,37 +15,42 @@ */ public class NodeStateCounts { /** + * Idle node count. * Number of compute nodes in idle state. */ @JsonProperty(value = "idleNodeCount", access = JsonProperty.Access.WRITE_ONLY) private Integer idleNodeCount; /** + * Running node count. * Number of compute nodes which are running jobs. */ @JsonProperty(value = "runningNodeCount", access = JsonProperty.Access.WRITE_ONLY) private Integer runningNodeCount; /** + * Preparing node count. * Number of compute nodes which are being prepared. */ @JsonProperty(value = "preparingNodeCount", access = JsonProperty.Access.WRITE_ONLY) private Integer preparingNodeCount; /** - * Number of compute nodes which are unusable. + * Unusable node count. + * Number of compute nodes which are in unusable state. */ @JsonProperty(value = "unusableNodeCount", access = JsonProperty.Access.WRITE_ONLY) private Integer unusableNodeCount; /** + * Leaving node count. * Number of compute nodes which are leaving the cluster. */ @JsonProperty(value = "leavingNodeCount", access = JsonProperty.Access.WRITE_ONLY) private Integer leavingNodeCount; /** - * Get the idleNodeCount value. + * Get number of compute nodes in idle state. * * @return the idleNodeCount value */ @@ -54,7 +59,7 @@ public Integer idleNodeCount() { } /** - * Get the runningNodeCount value. + * Get number of compute nodes which are running jobs. * * @return the runningNodeCount value */ @@ -63,7 +68,7 @@ public Integer runningNodeCount() { } /** - * Get the preparingNodeCount value. + * Get number of compute nodes which are being prepared. * * @return the preparingNodeCount value */ @@ -72,7 +77,7 @@ public Integer preparingNodeCount() { } /** - * Get the unusableNodeCount value. + * Get number of compute nodes which are in unusable state. * * @return the unusableNodeCount value */ @@ -81,7 +86,7 @@ public Integer unusableNodeCount() { } /** - * Get the leavingNodeCount value. + * Get number of compute nodes which are leaving the cluster. * * @return the leavingNodeCount value */ diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/OperationDisplay.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/OperationDisplay.java index 4ac5ddac0418..66228116fa02 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/OperationDisplay.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/OperationDisplay.java @@ -49,7 +49,7 @@ public String provider() { } /** - * Get the operation value. + * Get for example: read, write, delete, or listKeys/action. * * @return the operation value */ diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/OutputDirectory.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/OutputDirectory.java index b2adad658ff5..46f3750406fe 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/OutputDirectory.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/OutputDirectory.java @@ -15,26 +15,26 @@ */ public class OutputDirectory { /** - * The name for the output directory. - * The path of the output directory will be available as a value of an - * environment variable with AZ_BATCHAI_OUTPUT_<id> name, where - * <id> is the value of id attribute. + * ID. + * The ID of the output directory. The job can use + * AZ_BATCHAI_OUTPUT_<id> environment variale to find the directory + * path, where <id> is the value of id attribute. */ @JsonProperty(value = "id", required = true) private String id; /** - * The prefix path where the output directory will be created. - * NOTE: This is an absolute path to prefix. E.g. - * $AZ_BATCHAI_MOUNT_ROOT/MyNFS/MyLogs. You can find the full path to the - * output directory by combining pathPrefix, jobOutputDirectoryPathSegment - * (reported by get job) and pathSuffix. + * Path prefix. + * The prefix path where the output directory will be created. Note, this + * is an absolute path to prefix. E.g. $AZ_BATCHAI_MOUNT_ROOT/MyNFS/MyLogs. + * The full path to the output directory by combining pathPrefix, + * jobOutputDirectoryPathSegment (reported by get job) and pathSuffix. */ @JsonProperty(value = "pathPrefix", required = true) private String pathPrefix; /** - * The suffix path where the output directory will be created. + * Path suffix. * The suffix path where the output directory will be created. E.g. models. * You can find the full path to the output directory by combining * pathPrefix, jobOutputDirectoryPathSegment (reported by get job) and @@ -44,7 +44,7 @@ public class OutputDirectory { private String pathSuffix; /** - * Get the id value. + * Get the ID of the output directory. The job can use AZ_BATCHAI_OUTPUT_<id> environment variale to find the directory path, where <id> is the value of id attribute. * * @return the id value */ @@ -53,7 +53,7 @@ public String id() { } /** - * Set the id value. + * Set the ID of the output directory. The job can use AZ_BATCHAI_OUTPUT_<id> environment variale to find the directory path, where <id> is the value of id attribute. * * @param id the id value to set * @return the OutputDirectory object itself. @@ -64,7 +64,7 @@ public OutputDirectory withId(String id) { } /** - * Get the pathPrefix value. + * Get the prefix path where the output directory will be created. Note, this is an absolute path to prefix. E.g. $AZ_BATCHAI_MOUNT_ROOT/MyNFS/MyLogs. The full path to the output directory by combining pathPrefix, jobOutputDirectoryPathSegment (reported by get job) and pathSuffix. * * @return the pathPrefix value */ @@ -73,7 +73,7 @@ public String pathPrefix() { } /** - * Set the pathPrefix value. + * Set the prefix path where the output directory will be created. Note, this is an absolute path to prefix. E.g. $AZ_BATCHAI_MOUNT_ROOT/MyNFS/MyLogs. The full path to the output directory by combining pathPrefix, jobOutputDirectoryPathSegment (reported by get job) and pathSuffix. * * @param pathPrefix the pathPrefix value to set * @return the OutputDirectory object itself. @@ -84,7 +84,7 @@ public OutputDirectory withPathPrefix(String pathPrefix) { } /** - * Get the pathSuffix value. + * Get the suffix path where the output directory will be created. E.g. models. You can find the full path to the output directory by combining pathPrefix, jobOutputDirectoryPathSegment (reported by get job) and pathSuffix. * * @return the pathSuffix value */ @@ -93,7 +93,7 @@ public String pathSuffix() { } /** - * Set the pathSuffix value. + * Set the suffix path where the output directory will be created. E.g. models. You can find the full path to the output directory by combining pathPrefix, jobOutputDirectoryPathSegment (reported by get job) and pathSuffix. * * @param pathSuffix the pathSuffix value to set * @return the OutputDirectory object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/PerformanceCountersSettings.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/PerformanceCountersSettings.java index 3a45bb68b37b..cc8b6d16f29a 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/PerformanceCountersSettings.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/PerformanceCountersSettings.java @@ -15,16 +15,16 @@ */ public class PerformanceCountersSettings { /** - * Specifies Azure Application Insights information for performance - * counters reporting. - * If provided, Batch AI will upload node performance counters to the - * corresponding Azure Application Insights account. + * Azure Application Insights reference. + * Azure Application Insights information for performance counters + * reporting. If provided, Batch AI will upload node performance counters + * to the corresponding Azure Application Insights account. */ @JsonProperty(value = "appInsightsReference", required = true) private AppInsightsReference appInsightsReference; /** - * Get the appInsightsReference value. + * Get azure Application Insights information for performance counters reporting. If provided, Batch AI will upload node performance counters to the corresponding Azure Application Insights account. * * @return the appInsightsReference value */ @@ -33,7 +33,7 @@ public AppInsightsReference appInsightsReference() { } /** - * Set the appInsightsReference value. + * Set azure Application Insights information for performance counters reporting. If provided, Batch AI will upload node performance counters to the corresponding Azure Application Insights account. * * @param appInsightsReference the appInsightsReference value to set * @return the PerformanceCountersSettings object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/PrivateRegistryCredentials.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/PrivateRegistryCredentials.java index 496601657634..8246d5b2fa32 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/PrivateRegistryCredentials.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/PrivateRegistryCredentials.java @@ -15,29 +15,31 @@ */ public class PrivateRegistryCredentials { /** - * User name to login. + * User name. + * User name to login to the repository. */ @JsonProperty(value = "username", required = true) private String username; /** - * Password to login. - * One of password or passwordSecretReference must be specified. + * Password. + * User password to login to the docker repository. One of password or + * passwordSecretReference must be specified. */ @JsonProperty(value = "password") private String password; /** - * Specifies the location of the password, which is a Key Vault Secret. - * Users can store their secrets in Azure KeyVault and pass it to the Batch - * AI Service to integrate with KeyVault. One of password or - * passwordSecretReference must be specified. + * Password secret reference. + * KeyVault Secret storing the password. Users can store their secrets in + * Azure KeyVault and pass it to the Batch AI service to integrate with + * KeyVault. One of password or passwordSecretReference must be specified. */ @JsonProperty(value = "passwordSecretReference") private KeyVaultSecretReference passwordSecretReference; /** - * Get the username value. + * Get user name to login to the repository. * * @return the username value */ @@ -46,7 +48,7 @@ public String username() { } /** - * Set the username value. + * Set user name to login to the repository. * * @param username the username value to set * @return the PrivateRegistryCredentials object itself. @@ -57,7 +59,7 @@ public PrivateRegistryCredentials withUsername(String username) { } /** - * Get the password value. + * Get user password to login to the docker repository. One of password or passwordSecretReference must be specified. * * @return the password value */ @@ -66,7 +68,7 @@ public String password() { } /** - * Set the password value. + * Set user password to login to the docker repository. One of password or passwordSecretReference must be specified. * * @param password the password value to set * @return the PrivateRegistryCredentials object itself. @@ -77,7 +79,7 @@ public PrivateRegistryCredentials withPassword(String password) { } /** - * Get the passwordSecretReference value. + * Get keyVault Secret storing the password. Users can store their secrets in Azure KeyVault and pass it to the Batch AI service to integrate with KeyVault. One of password or passwordSecretReference must be specified. * * @return the passwordSecretReference value */ @@ -86,7 +88,7 @@ public KeyVaultSecretReference passwordSecretReference() { } /** - * Set the passwordSecretReference value. + * Set keyVault Secret storing the password. Users can store their secrets in Azure KeyVault and pass it to the Batch AI service to integrate with KeyVault. One of password or passwordSecretReference must be specified. * * @param passwordSecretReference the passwordSecretReference value to set * @return the PrivateRegistryCredentials object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/PyTorchSettings.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/PyTorchSettings.java index 13517cd4da79..6ee1aa8183b2 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/PyTorchSettings.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/PyTorchSettings.java @@ -11,44 +11,48 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Specifies the settings for pyTorch job. + * pyTorch job settings. */ public class PyTorchSettings { /** - * The path and file name of the python script to execute the job. + * Python script file path. + * The python script to execute. */ @JsonProperty(value = "pythonScriptFilePath", required = true) private String pythonScriptFilePath; /** - * The path to python interpreter. + * Python interpreter path. + * The path to the Python interpreter. */ @JsonProperty(value = "pythonInterpreterPath") private String pythonInterpreterPath; /** - * Specifies the command line arguments for the master task. + * Command line arguments. + * Command line arguments that need to be passed to the python script. */ @JsonProperty(value = "commandLineArgs") private String commandLineArgs; /** - * Number of processes to launch for the job execution. - * The default value for this property is equal to nodeCount property. + * Process count. + * Number of processes to launch for the job execution. The default value + * for this property is equal to nodeCount property. */ @JsonProperty(value = "processCount") private Integer processCount; /** - * Type of the communication backend for distributed jobs. - * Valid values are 'TCP', 'Gloo' or 'MPI'. Not required for - * non-distributed jobs. + * Communication backend. + * Type of the communication backend for distributed jobs. Valid values are + * 'TCP', 'Gloo' or 'MPI'. Not required for non-distributed jobs. */ @JsonProperty(value = "communicationBackend") private String communicationBackend; /** - * Get the pythonScriptFilePath value. + * Get the python script to execute. * * @return the pythonScriptFilePath value */ @@ -57,7 +61,7 @@ public String pythonScriptFilePath() { } /** - * Set the pythonScriptFilePath value. + * Set the python script to execute. * * @param pythonScriptFilePath the pythonScriptFilePath value to set * @return the PyTorchSettings object itself. @@ -68,7 +72,7 @@ public PyTorchSettings withPythonScriptFilePath(String pythonScriptFilePath) { } /** - * Get the pythonInterpreterPath value. + * Get the path to the Python interpreter. * * @return the pythonInterpreterPath value */ @@ -77,7 +81,7 @@ public String pythonInterpreterPath() { } /** - * Set the pythonInterpreterPath value. + * Set the path to the Python interpreter. * * @param pythonInterpreterPath the pythonInterpreterPath value to set * @return the PyTorchSettings object itself. @@ -88,7 +92,7 @@ public PyTorchSettings withPythonInterpreterPath(String pythonInterpreterPath) { } /** - * Get the commandLineArgs value. + * Get command line arguments that need to be passed to the python script. * * @return the commandLineArgs value */ @@ -97,7 +101,7 @@ public String commandLineArgs() { } /** - * Set the commandLineArgs value. + * Set command line arguments that need to be passed to the python script. * * @param commandLineArgs the commandLineArgs value to set * @return the PyTorchSettings object itself. @@ -108,7 +112,7 @@ public PyTorchSettings withCommandLineArgs(String commandLineArgs) { } /** - * Get the processCount value. + * Get number of processes to launch for the job execution. The default value for this property is equal to nodeCount property. * * @return the processCount value */ @@ -117,7 +121,7 @@ public Integer processCount() { } /** - * Set the processCount value. + * Set number of processes to launch for the job execution. The default value for this property is equal to nodeCount property. * * @param processCount the processCount value to set * @return the PyTorchSettings object itself. @@ -128,7 +132,7 @@ public PyTorchSettings withProcessCount(Integer processCount) { } /** - * Get the communicationBackend value. + * Get type of the communication backend for distributed jobs. Valid values are 'TCP', 'Gloo' or 'MPI'. Not required for non-distributed jobs. * * @return the communicationBackend value */ @@ -137,7 +141,7 @@ public String communicationBackend() { } /** - * Set the communicationBackend value. + * Set type of the communication backend for distributed jobs. Valid values are 'TCP', 'Gloo' or 'MPI'. Not required for non-distributed jobs. * * @param communicationBackend the communicationBackend value to set * @return the PyTorchSettings object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ResourceId.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ResourceId.java index e1578d289623..8da459fd335e 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ResourceId.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ResourceId.java @@ -22,7 +22,7 @@ public class ResourceId { private String id; /** - * Get the id value. + * Get the ID of the resource. * * @return the id value */ @@ -31,7 +31,7 @@ public String id() { } /** - * Set the id value. + * Set the ID of the resource. * * @param id the id value to set * @return the ResourceId object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ScaleSettings.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ScaleSettings.java index c414bdccd064..e2812c21780c 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ScaleSettings.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ScaleSettings.java @@ -18,19 +18,21 @@ */ public class ScaleSettings { /** - * The scale for the cluster by manual settings. + * Manual scale settings. + * Manual scale settings for the cluster. */ @JsonProperty(value = "manual") private ManualScaleSettings manual; /** - * The scale for the cluster by autoscale settings. + * Auto-scale settings. + * Auto-scale settings for the cluster. */ @JsonProperty(value = "autoScale") private AutoScaleSettings autoScale; /** - * Get the manual value. + * Get manual scale settings for the cluster. * * @return the manual value */ @@ -39,7 +41,7 @@ public ManualScaleSettings manual() { } /** - * Set the manual value. + * Set manual scale settings for the cluster. * * @param manual the manual value to set * @return the ScaleSettings object itself. @@ -50,7 +52,7 @@ public ScaleSettings withManual(ManualScaleSettings manual) { } /** - * Get the autoScale value. + * Get auto-scale settings for the cluster. * * @return the autoScale value */ @@ -59,7 +61,7 @@ public AutoScaleSettings autoScale() { } /** - * Set the autoScale value. + * Set auto-scale settings for the cluster. * * @param autoScale the autoScale value to set * @return the ScaleSettings object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/SetupTask.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/SetupTask.java index b12ae4466d34..19917c642ce6 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/SetupTask.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/SetupTask.java @@ -17,9 +17,8 @@ */ public class SetupTask { /** - * Command line to be executed on each cluster's node after it being - * allocated or rebooted. - * Command line to be executed on each cluster's node after it being + * Command line. + * The command line to be executed on each cluster's node after it being * allocated or rebooted. The command is executed in a bash subshell as a * root. */ @@ -27,39 +26,44 @@ public class SetupTask { private String commandLine; /** - * Collection of environment variables to be set for setup task. + * Environment variables. + * A collection of user defined environment variables to be set for setup + * task. */ @JsonProperty(value = "environmentVariables") private List environmentVariables; /** - * Collection of environment variables with secret values to be set for - * setup task. - * Server will never report values of these variables back. + * Secrets. + * A collection of user defined environment variables with secret values to + * be set for the setup task. Server will never report values of these + * variables back. */ @JsonProperty(value = "secrets") private List secrets; /** - * The prefix of a path where the Batch AI service will upload the stdout - * and stderr of the setup task. + * Output path prefix. + * The prefix of a path where the Batch AI service will upload the stdout, + * stderr and execution log of the setup task. */ @JsonProperty(value = "stdOutErrPathPrefix", required = true) private String stdOutErrPathPrefix; /** + * Output path suffix. * A path segment appended by Batch AI to stdOutErrPathPrefix to form a - * path where stdout and stderr of the setup task will be uploaded. - * Batch AI creates the setup task output directories under an unique path - * to avoid conflicts between different clusters. You can concatinate - * stdOutErrPathPrefix and stdOutErrPathSuffix to get the full path to the - * output directory. + * path where stdout, stderr and execution log of the setup task will be + * uploaded. Batch AI creates the setup task output directories under an + * unique path to avoid conflicts between different clusters. The full path + * can be obtained by concatenation of stdOutErrPathPrefix and + * stdOutErrPathSuffix. */ @JsonProperty(value = "stdOutErrPathSuffix", access = JsonProperty.Access.WRITE_ONLY) private String stdOutErrPathSuffix; /** - * Get the commandLine value. + * Get the command line to be executed on each cluster's node after it being allocated or rebooted. The command is executed in a bash subshell as a root. * * @return the commandLine value */ @@ -68,7 +72,7 @@ public String commandLine() { } /** - * Set the commandLine value. + * Set the command line to be executed on each cluster's node after it being allocated or rebooted. The command is executed in a bash subshell as a root. * * @param commandLine the commandLine value to set * @return the SetupTask object itself. @@ -79,7 +83,7 @@ public SetupTask withCommandLine(String commandLine) { } /** - * Get the environmentVariables value. + * Get a collection of user defined environment variables to be set for setup task. * * @return the environmentVariables value */ @@ -88,7 +92,7 @@ public List environmentVariables() { } /** - * Set the environmentVariables value. + * Set a collection of user defined environment variables to be set for setup task. * * @param environmentVariables the environmentVariables value to set * @return the SetupTask object itself. @@ -99,7 +103,7 @@ public SetupTask withEnvironmentVariables(List environmentV } /** - * Get the secrets value. + * Get a collection of user defined environment variables with secret values to be set for the setup task. Server will never report values of these variables back. * * @return the secrets value */ @@ -108,7 +112,7 @@ public List secrets() { } /** - * Set the secrets value. + * Set a collection of user defined environment variables with secret values to be set for the setup task. Server will never report values of these variables back. * * @param secrets the secrets value to set * @return the SetupTask object itself. @@ -119,7 +123,7 @@ public SetupTask withSecrets(List secrets) { } /** - * Get the stdOutErrPathPrefix value. + * Get the prefix of a path where the Batch AI service will upload the stdout, stderr and execution log of the setup task. * * @return the stdOutErrPathPrefix value */ @@ -128,7 +132,7 @@ public String stdOutErrPathPrefix() { } /** - * Set the stdOutErrPathPrefix value. + * Set the prefix of a path where the Batch AI service will upload the stdout, stderr and execution log of the setup task. * * @param stdOutErrPathPrefix the stdOutErrPathPrefix value to set * @return the SetupTask object itself. @@ -139,7 +143,7 @@ public SetupTask withStdOutErrPathPrefix(String stdOutErrPathPrefix) { } /** - * Get the stdOutErrPathSuffix value. + * Get a path segment appended by Batch AI to stdOutErrPathPrefix to form a path where stdout, stderr and execution log of the setup task will be uploaded. Batch AI creates the setup task output directories under an unique path to avoid conflicts between different clusters. The full path can be obtained by concatenation of stdOutErrPathPrefix and stdOutErrPathSuffix. * * @return the stdOutErrPathSuffix value */ diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/SshConfiguration.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/SshConfiguration.java index c7348fb5bc10..f2d6af38f81a 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/SshConfiguration.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/SshConfiguration.java @@ -12,25 +12,28 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * SSH configuration settings for the VM. + * SSH configuration. */ public class SshConfiguration { /** - * List of source IP ranges to allow SSH connection to a node. - * Default value is '*' can be used to match all source IPs. Maximum number - * of IP ranges that can be specified are 400. + * Allowed public IPs. + * List of source IP ranges to allow SSH connection from. The default value + * is '*' (all source IPs are allowed). Maximum number of IP ranges that + * can be specified is 400. */ @JsonProperty(value = "publicIPsToAllow") private List publicIPsToAllow; /** - * Settings for user account to be created on a node. + * User account settings. + * Settings for administrator user account to be created on a node. The + * account can be used to establish SSH connection to the node. */ @JsonProperty(value = "userAccountSettings", required = true) private UserAccountSettings userAccountSettings; /** - * Get the publicIPsToAllow value. + * Get list of source IP ranges to allow SSH connection from. The default value is '*' (all source IPs are allowed). Maximum number of IP ranges that can be specified is 400. * * @return the publicIPsToAllow value */ @@ -39,7 +42,7 @@ public List publicIPsToAllow() { } /** - * Set the publicIPsToAllow value. + * Set list of source IP ranges to allow SSH connection from. The default value is '*' (all source IPs are allowed). Maximum number of IP ranges that can be specified is 400. * * @param publicIPsToAllow the publicIPsToAllow value to set * @return the SshConfiguration object itself. @@ -50,7 +53,7 @@ public SshConfiguration withPublicIPsToAllow(List publicIPsToAllow) { } /** - * Get the userAccountSettings value. + * Get settings for administrator user account to be created on a node. The account can be used to establish SSH connection to the node. * * @return the userAccountSettings value */ @@ -59,7 +62,7 @@ public UserAccountSettings userAccountSettings() { } /** - * Set the userAccountSettings value. + * Set settings for administrator user account to be created on a node. The account can be used to establish SSH connection to the node. * * @param userAccountSettings the userAccountSettings value to set * @return the SshConfiguration object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/TensorFlowSettings.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/TensorFlowSettings.java index 6a0161798975..e049aedfa61c 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/TensorFlowSettings.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/TensorFlowSettings.java @@ -11,63 +11,69 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Specifies the settings for TensorFlow job. + * TensorFlow job settings. */ public class TensorFlowSettings { /** - * The path and file name of the python script to execute the job. + * Python script file path. + * The python script to execute. */ @JsonProperty(value = "pythonScriptFilePath", required = true) private String pythonScriptFilePath; /** - * The path to python interpreter. + * Python interpreter path. + * The path to the Python interpreter. */ @JsonProperty(value = "pythonInterpreterPath") private String pythonInterpreterPath; /** - * Specifies the command line arguments for the master task. + * Master command line arguments. + * Command line arguments that need to be passed to the python script for + * the master task. */ @JsonProperty(value = "masterCommandLineArgs") private String masterCommandLineArgs; /** - * Specifies the command line arguments for the worker task. - * This property is optional for single machine training. + * Worker command line arguments. + * Command line arguments that need to be passed to the python script for + * the worker task. Optional for single process jobs. */ @JsonProperty(value = "workerCommandLineArgs") private String workerCommandLineArgs; /** - * Specifies the command line arguments for the parameter server task. - * This property is optional for single machine training. + * Parameter server command line arguments. + * Command line arguments that need to be passed to the python script for + * the parameter server. Optional for single process jobs. */ @JsonProperty(value = "parameterServerCommandLineArgs") private String parameterServerCommandLineArgs; /** - * The number of worker tasks. - * If specified, the value must be less than or equal to (nodeCount * - * numberOfGPUs per VM). If not specified, the default value is equal to - * nodeCount. This property can be specified only for distributed - * TensorFlow training. + * Worker count. + * The number of worker tasks. If specified, the value must be less than or + * equal to (nodeCount * numberOfGPUs per VM). If not specified, the + * default value is equal to nodeCount. This property can be specified only + * for distributed TensorFlow training. */ @JsonProperty(value = "workerCount") private Integer workerCount; /** - * The number of parmeter server tasks. - * If specified, the value must be less than or equal to nodeCount. If not - * specified, the default value is equal to 1 for distributed TensorFlow - * training (This property is not applicable for single machine training). - * This property can be specified only for distributed TensorFlow training. + * Parameter server count. + * The number of parameter server tasks. If specified, the value must be + * less than or equal to nodeCount. If not specified, the default value is + * equal to 1 for distributed TensorFlow training. This property can be + * specified only for distributed TensorFlow training. */ @JsonProperty(value = "parameterServerCount") private Integer parameterServerCount; /** - * Get the pythonScriptFilePath value. + * Get the python script to execute. * * @return the pythonScriptFilePath value */ @@ -76,7 +82,7 @@ public String pythonScriptFilePath() { } /** - * Set the pythonScriptFilePath value. + * Set the python script to execute. * * @param pythonScriptFilePath the pythonScriptFilePath value to set * @return the TensorFlowSettings object itself. @@ -87,7 +93,7 @@ public TensorFlowSettings withPythonScriptFilePath(String pythonScriptFilePath) } /** - * Get the pythonInterpreterPath value. + * Get the path to the Python interpreter. * * @return the pythonInterpreterPath value */ @@ -96,7 +102,7 @@ public String pythonInterpreterPath() { } /** - * Set the pythonInterpreterPath value. + * Set the path to the Python interpreter. * * @param pythonInterpreterPath the pythonInterpreterPath value to set * @return the TensorFlowSettings object itself. @@ -107,7 +113,7 @@ public TensorFlowSettings withPythonInterpreterPath(String pythonInterpreterPath } /** - * Get the masterCommandLineArgs value. + * Get command line arguments that need to be passed to the python script for the master task. * * @return the masterCommandLineArgs value */ @@ -116,7 +122,7 @@ public String masterCommandLineArgs() { } /** - * Set the masterCommandLineArgs value. + * Set command line arguments that need to be passed to the python script for the master task. * * @param masterCommandLineArgs the masterCommandLineArgs value to set * @return the TensorFlowSettings object itself. @@ -127,7 +133,7 @@ public TensorFlowSettings withMasterCommandLineArgs(String masterCommandLineArgs } /** - * Get the workerCommandLineArgs value. + * Get command line arguments that need to be passed to the python script for the worker task. Optional for single process jobs. * * @return the workerCommandLineArgs value */ @@ -136,7 +142,7 @@ public String workerCommandLineArgs() { } /** - * Set the workerCommandLineArgs value. + * Set command line arguments that need to be passed to the python script for the worker task. Optional for single process jobs. * * @param workerCommandLineArgs the workerCommandLineArgs value to set * @return the TensorFlowSettings object itself. @@ -147,7 +153,7 @@ public TensorFlowSettings withWorkerCommandLineArgs(String workerCommandLineArgs } /** - * Get the parameterServerCommandLineArgs value. + * Get command line arguments that need to be passed to the python script for the parameter server. Optional for single process jobs. * * @return the parameterServerCommandLineArgs value */ @@ -156,7 +162,7 @@ public String parameterServerCommandLineArgs() { } /** - * Set the parameterServerCommandLineArgs value. + * Set command line arguments that need to be passed to the python script for the parameter server. Optional for single process jobs. * * @param parameterServerCommandLineArgs the parameterServerCommandLineArgs value to set * @return the TensorFlowSettings object itself. @@ -167,7 +173,7 @@ public TensorFlowSettings withParameterServerCommandLineArgs(String parameterSer } /** - * Get the workerCount value. + * Get the number of worker tasks. If specified, the value must be less than or equal to (nodeCount * numberOfGPUs per VM). If not specified, the default value is equal to nodeCount. This property can be specified only for distributed TensorFlow training. * * @return the workerCount value */ @@ -176,7 +182,7 @@ public Integer workerCount() { } /** - * Set the workerCount value. + * Set the number of worker tasks. If specified, the value must be less than or equal to (nodeCount * numberOfGPUs per VM). If not specified, the default value is equal to nodeCount. This property can be specified only for distributed TensorFlow training. * * @param workerCount the workerCount value to set * @return the TensorFlowSettings object itself. @@ -187,7 +193,7 @@ public TensorFlowSettings withWorkerCount(Integer workerCount) { } /** - * Get the parameterServerCount value. + * Get the number of parameter server tasks. If specified, the value must be less than or equal to nodeCount. If not specified, the default value is equal to 1 for distributed TensorFlow training. This property can be specified only for distributed TensorFlow training. * * @return the parameterServerCount value */ @@ -196,7 +202,7 @@ public Integer parameterServerCount() { } /** - * Set the parameterServerCount value. + * Set the number of parameter server tasks. If specified, the value must be less than or equal to nodeCount. If not specified, the default value is equal to 1 for distributed TensorFlow training. This property can be specified only for distributed TensorFlow training. * * @param parameterServerCount the parameterServerCount value to set * @return the TensorFlowSettings object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ToolType.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ToolType.java index 994aac5c7463..9e1a116248a1 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ToolType.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/ToolType.java @@ -34,8 +34,8 @@ public final class ToolType extends ExpandableStringEnum { /** Static value horovod for ToolType. */ public static final ToolType HOROVOD = fromString("horovod"); - /** Static value mpi for ToolType. */ - public static final ToolType MPI = fromString("mpi"); + /** Static value custommpi for ToolType. */ + public static final ToolType CUSTOMMPI = fromString("custommpi"); /** Static value custom for ToolType. */ public static final ToolType CUSTOM = fromString("custom"); diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/UnmanagedFileSystemReference.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/UnmanagedFileSystemReference.java index e767c08ba0af..51f20e322712 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/UnmanagedFileSystemReference.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/UnmanagedFileSystemReference.java @@ -11,27 +11,29 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Details of the file system to mount on the compute cluster nodes. + * Unmananged file system mounting configuration. */ public class UnmanagedFileSystemReference { /** - * Command used to mount the unmanaged file system. + * Mount command. + * Mount command line. Note, Batch AI will append mount path to the command + * on its own. */ @JsonProperty(value = "mountCommand", required = true) private String mountCommand; /** - * Specifies the relative path on the compute cluster node where the file - * system will be mounted. - * Note that all cluster level unmanaged file system will be mounted under - * $AZ_BATCHAI_MOUNT_ROOT location and job level unmanaged file system will - * be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. + * Relative mount path. + * The relative path on the compute node where the unmanaged file system + * will be mounted. Note that all cluster level unmanaged file systems will + * be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level + * unmanaged file systems will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. */ @JsonProperty(value = "relativeMountPath", required = true) private String relativeMountPath; /** - * Get the mountCommand value. + * Get mount command line. Note, Batch AI will append mount path to the command on its own. * * @return the mountCommand value */ @@ -40,7 +42,7 @@ public String mountCommand() { } /** - * Set the mountCommand value. + * Set mount command line. Note, Batch AI will append mount path to the command on its own. * * @param mountCommand the mountCommand value to set * @return the UnmanagedFileSystemReference object itself. @@ -51,7 +53,7 @@ public UnmanagedFileSystemReference withMountCommand(String mountCommand) { } /** - * Get the relativeMountPath value. + * Get the relative path on the compute node where the unmanaged file system will be mounted. Note that all cluster level unmanaged file systems will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level unmanaged file systems will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. * * @return the relativeMountPath value */ @@ -60,7 +62,7 @@ public String relativeMountPath() { } /** - * Set the relativeMountPath value. + * Set the relative path on the compute node where the unmanaged file system will be mounted. Note that all cluster level unmanaged file systems will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level unmanaged file systems will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. * * @param relativeMountPath the relativeMountPath value to set * @return the UnmanagedFileSystemReference object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/UsageName.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/UsageName.java index a8bec3a8086e..f86ade8db217 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/UsageName.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/UsageName.java @@ -27,7 +27,7 @@ public class UsageName { private String localizedValue; /** - * Get the value value. + * Get the name of the resource. * * @return the value value */ @@ -36,7 +36,7 @@ public String value() { } /** - * Get the localizedValue value. + * Get the localized name of the resource. * * @return the localizedValue value */ diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/UserAccountSettings.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/UserAccountSettings.java index c3ace3b03bae..159e56136f92 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/UserAccountSettings.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/UserAccountSettings.java @@ -16,27 +16,29 @@ */ public class UserAccountSettings { /** - * Specifies the name of the administrator account. + * User name. + * Name of the administrator user account which can be used to SSH to + * nodes. */ @JsonProperty(value = "adminUserName", required = true) private String adminUserName; /** - * SSH public keys used to authenticate with linux based VMs. This does not - * get returned in a GET response body. + * SSH public key. + * SSH public key of the administrator user account. */ @JsonProperty(value = "adminUserSshPublicKey") private String adminUserSshPublicKey; /** - * Admin user Password (linux only). This does not get returned in a GET - * response body. + * Password. + * Password of the administrator user account. */ @JsonProperty(value = "adminUserPassword") private String adminUserPassword; /** - * Get the adminUserName value. + * Get name of the administrator user account which can be used to SSH to nodes. * * @return the adminUserName value */ @@ -45,7 +47,7 @@ public String adminUserName() { } /** - * Set the adminUserName value. + * Set name of the administrator user account which can be used to SSH to nodes. * * @param adminUserName the adminUserName value to set * @return the UserAccountSettings object itself. @@ -56,7 +58,7 @@ public UserAccountSettings withAdminUserName(String adminUserName) { } /** - * Get the adminUserSshPublicKey value. + * Get sSH public key of the administrator user account. * * @return the adminUserSshPublicKey value */ @@ -65,7 +67,7 @@ public String adminUserSshPublicKey() { } /** - * Set the adminUserSshPublicKey value. + * Set sSH public key of the administrator user account. * * @param adminUserSshPublicKey the adminUserSshPublicKey value to set * @return the UserAccountSettings object itself. @@ -76,7 +78,7 @@ public UserAccountSettings withAdminUserSshPublicKey(String adminUserSshPublicKe } /** - * Get the adminUserPassword value. + * Get password of the administrator user account. * * @return the adminUserPassword value */ @@ -85,7 +87,7 @@ public String adminUserPassword() { } /** - * Set the adminUserPassword value. + * Set password of the administrator user account. * * @param adminUserPassword the adminUserPassword value to set * @return the UserAccountSettings object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/VirtualMachineConfiguration.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/VirtualMachineConfiguration.java index ceff7d201ec1..6484c91021ab 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/VirtualMachineConfiguration.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/VirtualMachineConfiguration.java @@ -11,17 +11,18 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Settings for OS image. + * VM configuration. */ public class VirtualMachineConfiguration { /** - * Reference to OS image. + * Image reference. + * OS image reference for cluster nodes. */ @JsonProperty(value = "imageReference") private ImageReference imageReference; /** - * Get the imageReference value. + * Get oS image reference for cluster nodes. * * @return the imageReference value */ @@ -30,7 +31,7 @@ public ImageReference imageReference() { } /** - * Set the imageReference value. + * Set oS image reference for cluster nodes. * * @param imageReference the imageReference value to set * @return the VirtualMachineConfiguration object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/Workspace.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/Workspace.java index d0599d0ecc78..9544b85580e6 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/Workspace.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/Workspace.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.batchai.v2018_05_01.implementation.BatchAIManager; import org.joda.time.DateTime; diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/WorkspaceCreateParameters.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/WorkspaceCreateParameters.java index a3eac31d4b41..393a1543b839 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/WorkspaceCreateParameters.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/WorkspaceCreateParameters.java @@ -12,23 +12,25 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Parameters supplied to the Create operation. + * Workspace creation parameters. */ public class WorkspaceCreateParameters { /** + * Location. * The region in which to create the Workspace. */ @JsonProperty(value = "location", required = true) private String location; /** + * Tags. * The user specified tags associated with the Workspace. */ @JsonProperty(value = "tags") private Map tags; /** - * Get the location value. + * Get the region in which to create the Workspace. * * @return the location value */ @@ -37,7 +39,7 @@ public String location() { } /** - * Set the location value. + * Set the region in which to create the Workspace. * * @param location the location value to set * @return the WorkspaceCreateParameters object itself. @@ -48,7 +50,7 @@ public WorkspaceCreateParameters withLocation(String location) { } /** - * Get the tags value. + * Get the user specified tags associated with the Workspace. * * @return the tags value */ @@ -57,7 +59,7 @@ public Map tags() { } /** - * Set the tags value. + * Set the user specified tags associated with the Workspace. * * @param tags the tags value to set * @return the WorkspaceCreateParameters object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/WorkspaceUpdateParameters.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/WorkspaceUpdateParameters.java new file mode 100644 index 000000000000..8b5b1ce6c137 --- /dev/null +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/WorkspaceUpdateParameters.java @@ -0,0 +1,45 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.batchai.v2018_05_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Workspace update parameters. + */ +public class WorkspaceUpdateParameters { + /** + * Tags. + * The user specified tags associated with the Workspace. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * Get the user specified tags associated with the Workspace. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set the user specified tags associated with the Workspace. + * + * @param tags the tags value to set + * @return the WorkspaceUpdateParameters object itself. + */ + public WorkspaceUpdateParameters withTags(Map tags) { + this.tags = tags; + return this; + } + +} diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/WorkspacesListByResourceGroupOptions.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/WorkspacesListByResourceGroupOptions.java index 62c8d72d478c..691ee3cfe9f2 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/WorkspacesListByResourceGroupOptions.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/WorkspacesListByResourceGroupOptions.java @@ -22,7 +22,7 @@ public class WorkspacesListByResourceGroupOptions { private Integer maxResults; /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -31,7 +31,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the WorkspacesListByResourceGroupOptions object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/WorkspacesListOptions.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/WorkspacesListOptions.java index 2647a2c5274f..7158004e0b50 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/WorkspacesListOptions.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/WorkspacesListOptions.java @@ -22,7 +22,7 @@ public class WorkspacesListOptions { private Integer maxResults; /** - * Get the maxResults value. + * Get the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @return the maxResults value */ @@ -31,7 +31,7 @@ public Integer maxResults() { } /** - * Set the maxResults value. + * Set the maximum number of items to return in the response. A maximum of 1000 files can be returned. * * @param maxResults the maxResults value to set * @return the WorkspacesListOptions object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/BatchAIManagementClientImpl.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/BatchAIManagementClientImpl.java index 23e89bd450c9..3d381be9ac36 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/BatchAIManagementClientImpl.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/BatchAIManagementClientImpl.java @@ -158,32 +158,6 @@ public UsagesInner usages() { return this.usages; } - /** - * The ClustersInner object to access its operations. - */ - private ClustersInner clusters; - - /** - * Gets the ClustersInner object to access its operations. - * @return the ClustersInner object. - */ - public ClustersInner clusters() { - return this.clusters; - } - - /** - * The FileServersInner object to access its operations. - */ - private FileServersInner fileServers; - - /** - * Gets the FileServersInner object to access its operations. - * @return the FileServersInner object. - */ - public FileServersInner fileServers() { - return this.fileServers; - } - /** * The WorkspacesInner object to access its operations. */ @@ -223,6 +197,32 @@ public JobsInner jobs() { return this.jobs; } + /** + * The FileServersInner object to access its operations. + */ + private FileServersInner fileServers; + + /** + * Gets the FileServersInner object to access its operations. + * @return the FileServersInner object. + */ + public FileServersInner fileServers() { + return this.fileServers; + } + + /** + * The ClustersInner object to access its operations. + */ + private ClustersInner clusters; + + /** + * Gets the ClustersInner object to access its operations. + * @return the ClustersInner object. + */ + public ClustersInner clusters() { + return this.clusters; + } + /** * Initializes an instance of BatchAIManagementClient client. * @@ -260,11 +260,11 @@ protected void initialize() { this.generateClientRequestId = true; this.operations = new OperationsInner(restClient().retrofit(), this); this.usages = new UsagesInner(restClient().retrofit(), this); - this.clusters = new ClustersInner(restClient().retrofit(), this); - this.fileServers = new FileServersInner(restClient().retrofit(), this); this.workspaces = new WorkspacesInner(restClient().retrofit(), this); this.experiments = new ExperimentsInner(restClient().retrofit(), this); this.jobs = new JobsInner(restClient().retrofit(), this); + this.fileServers = new FileServersInner(restClient().retrofit(), this); + this.clusters = new ClustersInner(restClient().retrofit(), this); this.azureClient = new AzureClient(this); } diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/BatchAIManager.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/BatchAIManager.java index 5f57c5ccdc00..b5e23ccc904d 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/BatchAIManager.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/BatchAIManager.java @@ -18,11 +18,11 @@ import com.microsoft.rest.RestClient; import com.microsoft.azure.management.batchai.v2018_05_01.Operations; import com.microsoft.azure.management.batchai.v2018_05_01.Usages; -import com.microsoft.azure.management.batchai.v2018_05_01.Clusters; -import com.microsoft.azure.management.batchai.v2018_05_01.FileServers; import com.microsoft.azure.management.batchai.v2018_05_01.Workspaces; import com.microsoft.azure.management.batchai.v2018_05_01.Experiments; import com.microsoft.azure.management.batchai.v2018_05_01.Jobs; +import com.microsoft.azure.management.batchai.v2018_05_01.FileServers; +import com.microsoft.azure.management.batchai.v2018_05_01.Clusters; import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl; import com.microsoft.azure.arm.resources.implementation.ManagerCore; @@ -32,11 +32,11 @@ public final class BatchAIManager extends ManagerCore { private Operations operations; private Usages usages; - private Clusters clusters; - private FileServers fileServers; private Workspaces workspaces; private Experiments experiments; private Jobs jobs; + private FileServers fileServers; + private Clusters clusters; /** * Get a Configurable instance that can be used to create BatchAIManager with optional configuration. * @@ -104,26 +104,6 @@ public Usages usages() { return this.usages; } - /** - * @return Entry point to manage Clusters. - */ - public Clusters clusters() { - if (this.clusters == null) { - this.clusters = new ClustersImpl(this); - } - return this.clusters; - } - - /** - * @return Entry point to manage FileServers. - */ - public FileServers fileServers() { - if (this.fileServers == null) { - this.fileServers = new FileServersImpl(this); - } - return this.fileServers; - } - /** * @return Entry point to manage Workspaces. */ @@ -154,6 +134,26 @@ public Jobs jobs() { return this.jobs; } + /** + * @return Entry point to manage FileServers. + */ + public FileServers fileServers() { + if (this.fileServers == null) { + this.fileServers = new FileServersImpl(this); + } + return this.fileServers; + } + + /** + * @return Entry point to manage Clusters. + */ + public Clusters clusters() { + if (this.clusters == null) { + this.clusters = new ClustersImpl(this); + } + return this.clusters; + } + /** * The implementation for Configurable interface. */ diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ClusterImpl.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ClusterImpl.java index 2f7b4985c87a..53519e5442c5 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ClusterImpl.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ClusterImpl.java @@ -11,8 +11,6 @@ import com.microsoft.azure.management.batchai.v2018_05_01.Cluster; import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; import rx.Observable; -import com.microsoft.azure.management.batchai.v2018_05_01.ClusterUpdateParameters; -import java.util.Map; import com.microsoft.azure.management.batchai.v2018_05_01.ClusterCreateParameters; import com.microsoft.azure.management.batchai.v2018_05_01.AllocationState; import org.joda.time.DateTime; @@ -34,7 +32,6 @@ class ClusterImpl extends CreatableUpdatableImpl updateResourceAsync() { ClustersInner client = this.manager().inner().clusters(); - return client.updateAsync(this.resourceGroupName, this.workspaceName, this.clusterName, this.updateParameter) + return client.updateAsync(this.resourceGroupName, this.workspaceName, this.clusterName) .map(new Func1() { @Override public ClusterInner call(ClusterInner resource) { @@ -106,7 +101,6 @@ public boolean isInCreateMode() { private void resetCreateUpdateParameters() { this.createParameter = new ClusterCreateParameters(); - this.updateParameter = new ClusterUpdateParameters(); } @Override @@ -139,11 +133,6 @@ public String id() { return this.inner().id(); } - @Override - public String location() { - return this.inner().location(); - } - @Override public String name() { return this.inner().name(); @@ -179,11 +168,6 @@ public ResourceId subnet() { return this.inner().subnet(); } - @Override - public Map tags() { - return this.inner().getTags(); - } - @Override public String type() { return this.inner().type(); @@ -216,12 +200,6 @@ public ClusterImpl withExistingWorkspace(String resourceGroupName, String worksp return this; } - @Override - public ClusterImpl withLocation(String location) { - this.createParameter.withLocation(location); - return this; - } - @Override public ClusterImpl withUserAccountSettings(UserAccountSettings userAccountSettings) { this.createParameter.withUserAccountSettings(userAccountSettings); @@ -240,6 +218,12 @@ public ClusterImpl withNodeSetup(NodeSetup nodeSetup) { return this; } + @Override + public ClusterImpl withScaleSettings(ScaleSettings scaleSettings) { + this.createParameter.withScaleSettings(scaleSettings); + return this; + } + @Override public ClusterImpl withSubnet(ResourceId subnet) { this.createParameter.withSubnet(subnet); @@ -258,24 +242,4 @@ public ClusterImpl withVmPriority(VmPriority vmPriority) { return this; } - @Override - public ClusterImpl withScaleSettings(ScaleSettings scaleSettings) { - if (isInCreateMode()) { - this.createParameter.withScaleSettings(scaleSettings); - } else { - this.updateParameter.withScaleSettings(scaleSettings); - } - return this; - } - - @Override - public ClusterImpl withTags(Map tags) { - if (isInCreateMode()) { - this.createParameter.withTags(tags); - } else { - this.updateParameter.withTags(tags); - } - return this; - } - } diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ClusterInner.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ClusterInner.java index 791dc54674cc..89f9df198f8c 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ClusterInner.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ClusterInner.java @@ -22,133 +22,137 @@ import com.microsoft.azure.management.batchai.v2018_05_01.NodeStateCounts; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; -import com.microsoft.rest.SkipParentValidation; -import com.microsoft.azure.Resource; +import com.microsoft.azure.ProxyResource; /** - * Contains information about a Cluster. + * Information about a Cluster. */ @JsonFlatten -@SkipParentValidation -public class ClusterInner extends Resource { +public class ClusterInner extends ProxyResource { /** - * The size of the virtual machines in the cluster. - * All virtual machines in a cluster are the same size. For information - * about available VM sizes for clusters using images from the Virtual - * Machines Marketplace (see Sizes for Virtual Machines (Linux) or Sizes - * for Virtual Machines (Windows). Batch AI service supports all Azure VM - * sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, - * STANDARD_DS, and STANDARD_DSV2 series). + * VM size. + * The size of the virtual machines in the cluster. All nodes in a cluster + * have the same VM size. */ @JsonProperty(value = "properties.vmSize") private String vmSize; /** - * dedicated or lowpriority. - * The default value is dedicated. The node can get preempted while the - * task is running if lowpriority is choosen. This is best suited if the - * workload is checkpointing and can be restarted. Possible values include: - * 'dedicated', 'lowpriority'. + * VM priority. + * VM priority of cluster nodes. Possible values include: 'dedicated', + * 'lowpriority'. */ @JsonProperty(value = "properties.vmPriority") private VmPriority vmPriority; /** - * Desired scale for the Cluster. + * Scale settings. + * Scale settings of the cluster. */ @JsonProperty(value = "properties.scaleSettings") private ScaleSettings scaleSettings; /** - * Settings for OS image and mounted data volumes. + * VM configuration. + * Virtual machine configuration (OS image) of the compute nodes. All nodes + * in a cluster have the same OS image configuration. */ @JsonProperty(value = "properties.virtualMachineConfiguration") private VirtualMachineConfiguration virtualMachineConfiguration; /** - * Setup to be done on all compute nodes in the Cluster. + * Node setup. + * Setup (mount file systems, performance counters settings and custom + * setup task) to be performed on each compute node in the cluster. */ @JsonProperty(value = "properties.nodeSetup") private NodeSetup nodeSetup; /** - * Settings for user account of compute nodes. + * User account settings. + * Administrator user account settings which can be used to SSH to compute + * nodes. */ @JsonProperty(value = "properties.userAccountSettings") private UserAccountSettings userAccountSettings; /** - * Specifies the identifier of the subnet. + * Subnet. + * Virtual network subnet resource ID the cluster nodes belong to. */ @JsonProperty(value = "properties.subnet") private ResourceId subnet; /** - * The creation time of the cluster. + * Creation time. + * The time when the cluster was created. */ @JsonProperty(value = "properties.creationTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime creationTime; /** - * Specifies the provisioning state of the cluster. - * Possible value are: creating - Specifies that the cluster is being - * created. succeeded - Specifies that the cluster has been created - * successfully. failed - Specifies that the cluster creation has failed. - * deleting - Specifies that the cluster is being deleted. Possible values - * include: 'creating', 'succeeded', 'failed', 'deleting'. + * Provisioning state. + * Provisioning state of the cluster. Possible value are: creating - + * Specifies that the cluster is being created. succeeded - Specifies that + * the cluster has been created successfully. failed - Specifies that the + * cluster creation has failed. deleting - Specifies that the cluster is + * being deleted. Possible values include: 'creating', 'succeeded', + * 'failed', 'deleting'. */ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState; /** - * The provisioning state transition time of the cluster. + * Provisioning State Transition time. + * Time when the provisioning state was changed. */ @JsonProperty(value = "properties.provisioningStateTransitionTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime provisioningStateTransitionTime; /** - * Indicates whether the cluster is resizing. - * Possible values are: steady and resizing. steady state indicates that - * the cluster is not resizing. There are no changes to the number of + * Allocation state. + * Allocation state of the cluster. Possible values are: steady - Indicates + * that the cluster is not resizing. There are no changes to the number of * compute nodes in the cluster in progress. A cluster enters this state * when it is created and when no operations are being performed on the - * cluster to change the number of compute nodes. resizing state indicates - * that the cluster is resizing; that is, compute nodes are being added to - * or removed from the cluster. Possible values include: 'steady', - * 'resizing'. + * cluster to change the number of compute nodes. resizing - Indicates that + * the cluster is resizing; that is, compute nodes are being added to or + * removed from the cluster. Possible values include: 'steady', 'resizing'. */ @JsonProperty(value = "properties.allocationState", access = JsonProperty.Access.WRITE_ONLY) private AllocationState allocationState; /** + * Allocation state transition time. * The time at which the cluster entered its current allocation state. */ @JsonProperty(value = "properties.allocationStateTransitionTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime allocationStateTransitionTime; /** - * Contains details of various errors on the cluster including resize and - * node setup task. - * This element contains all the errors encountered by various compute - * nodes during node setup. + * Errors. + * Collection of errors encountered by various compute nodes during node + * setup. */ @JsonProperty(value = "properties.errors", access = JsonProperty.Access.WRITE_ONLY) private List errors; /** + * Current node count. * The number of compute nodes currently assigned to the cluster. */ @JsonProperty(value = "properties.currentNodeCount", access = JsonProperty.Access.WRITE_ONLY) private Integer currentNodeCount; /** + * Node state counts. * Counts of various node states on the cluster. */ @JsonProperty(value = "properties.nodeStateCounts", access = JsonProperty.Access.WRITE_ONLY) private NodeStateCounts nodeStateCounts; /** - * Get the vmSize value. + * Get the size of the virtual machines in the cluster. All nodes in a cluster have the same VM size. * * @return the vmSize value */ @@ -157,7 +161,7 @@ public String vmSize() { } /** - * Set the vmSize value. + * Set the size of the virtual machines in the cluster. All nodes in a cluster have the same VM size. * * @param vmSize the vmSize value to set * @return the ClusterInner object itself. @@ -168,7 +172,7 @@ public ClusterInner withVmSize(String vmSize) { } /** - * Get the vmPriority value. + * Get vM priority of cluster nodes. Possible values include: 'dedicated', 'lowpriority'. * * @return the vmPriority value */ @@ -177,7 +181,7 @@ public VmPriority vmPriority() { } /** - * Set the vmPriority value. + * Set vM priority of cluster nodes. Possible values include: 'dedicated', 'lowpriority'. * * @param vmPriority the vmPriority value to set * @return the ClusterInner object itself. @@ -188,7 +192,7 @@ public ClusterInner withVmPriority(VmPriority vmPriority) { } /** - * Get the scaleSettings value. + * Get scale settings of the cluster. * * @return the scaleSettings value */ @@ -197,7 +201,7 @@ public ScaleSettings scaleSettings() { } /** - * Set the scaleSettings value. + * Set scale settings of the cluster. * * @param scaleSettings the scaleSettings value to set * @return the ClusterInner object itself. @@ -208,7 +212,7 @@ public ClusterInner withScaleSettings(ScaleSettings scaleSettings) { } /** - * Get the virtualMachineConfiguration value. + * Get virtual machine configuration (OS image) of the compute nodes. All nodes in a cluster have the same OS image configuration. * * @return the virtualMachineConfiguration value */ @@ -217,7 +221,7 @@ public VirtualMachineConfiguration virtualMachineConfiguration() { } /** - * Set the virtualMachineConfiguration value. + * Set virtual machine configuration (OS image) of the compute nodes. All nodes in a cluster have the same OS image configuration. * * @param virtualMachineConfiguration the virtualMachineConfiguration value to set * @return the ClusterInner object itself. @@ -228,7 +232,7 @@ public ClusterInner withVirtualMachineConfiguration(VirtualMachineConfiguration } /** - * Get the nodeSetup value. + * Get setup (mount file systems, performance counters settings and custom setup task) to be performed on each compute node in the cluster. * * @return the nodeSetup value */ @@ -237,7 +241,7 @@ public NodeSetup nodeSetup() { } /** - * Set the nodeSetup value. + * Set setup (mount file systems, performance counters settings and custom setup task) to be performed on each compute node in the cluster. * * @param nodeSetup the nodeSetup value to set * @return the ClusterInner object itself. @@ -248,7 +252,7 @@ public ClusterInner withNodeSetup(NodeSetup nodeSetup) { } /** - * Get the userAccountSettings value. + * Get administrator user account settings which can be used to SSH to compute nodes. * * @return the userAccountSettings value */ @@ -257,7 +261,7 @@ public UserAccountSettings userAccountSettings() { } /** - * Set the userAccountSettings value. + * Set administrator user account settings which can be used to SSH to compute nodes. * * @param userAccountSettings the userAccountSettings value to set * @return the ClusterInner object itself. @@ -268,7 +272,7 @@ public ClusterInner withUserAccountSettings(UserAccountSettings userAccountSetti } /** - * Get the subnet value. + * Get virtual network subnet resource ID the cluster nodes belong to. * * @return the subnet value */ @@ -277,7 +281,7 @@ public ResourceId subnet() { } /** - * Set the subnet value. + * Set virtual network subnet resource ID the cluster nodes belong to. * * @param subnet the subnet value to set * @return the ClusterInner object itself. @@ -288,7 +292,7 @@ public ClusterInner withSubnet(ResourceId subnet) { } /** - * Get the creationTime value. + * Get the time when the cluster was created. * * @return the creationTime value */ @@ -297,7 +301,7 @@ public DateTime creationTime() { } /** - * Get the provisioningState value. + * Get provisioning state of the cluster. Possible value are: creating - Specifies that the cluster is being created. succeeded - Specifies that the cluster has been created successfully. failed - Specifies that the cluster creation has failed. deleting - Specifies that the cluster is being deleted. Possible values include: 'creating', 'succeeded', 'failed', 'deleting'. * * @return the provisioningState value */ @@ -306,7 +310,7 @@ public ProvisioningState provisioningState() { } /** - * Get the provisioningStateTransitionTime value. + * Get time when the provisioning state was changed. * * @return the provisioningStateTransitionTime value */ @@ -315,7 +319,7 @@ public DateTime provisioningStateTransitionTime() { } /** - * Get the allocationState value. + * Get allocation state of the cluster. Possible values are: steady - Indicates that the cluster is not resizing. There are no changes to the number of compute nodes in the cluster in progress. A cluster enters this state when it is created and when no operations are being performed on the cluster to change the number of compute nodes. resizing - Indicates that the cluster is resizing; that is, compute nodes are being added to or removed from the cluster. Possible values include: 'steady', 'resizing'. * * @return the allocationState value */ @@ -324,7 +328,7 @@ public AllocationState allocationState() { } /** - * Get the allocationStateTransitionTime value. + * Get the time at which the cluster entered its current allocation state. * * @return the allocationStateTransitionTime value */ @@ -333,7 +337,7 @@ public DateTime allocationStateTransitionTime() { } /** - * Get the errors value. + * Get collection of errors encountered by various compute nodes during node setup. * * @return the errors value */ @@ -342,7 +346,7 @@ public List errors() { } /** - * Get the currentNodeCount value. + * Get the number of compute nodes currently assigned to the cluster. * * @return the currentNodeCount value */ @@ -351,7 +355,7 @@ public Integer currentNodeCount() { } /** - * Get the nodeStateCounts value. + * Get counts of various node states on the cluster. * * @return the nodeStateCounts value */ diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ClustersImpl.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ClustersImpl.java index 392d72fb5d3e..737a3b796e1d 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ClustersImpl.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ClustersImpl.java @@ -43,152 +43,40 @@ private ClusterImpl wrapModel(String name) { return new ClusterImpl(name, this.manager()); } - private Observable> listRemoteLoginInformationNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - ClustersInner client = this.inner(); - return client.listRemoteLoginInformationNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listRemoteLoginInformationNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listRemoteLoginInformationAsync(final String resourceGroupName, final String workspaceName, final String clusterName) { ClustersInner client = this.inner(); return client.listRemoteLoginInformationAsync(resourceGroupName, workspaceName, clusterName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listRemoteLoginInformationNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public RemoteLoginInformation call(RemoteLoginInformationInner inner) { return new RemoteLoginInformationImpl(inner, manager()); } - }); - } - - private Observable> listNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - ClustersInner client = this.inner(); - return client.listNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink())); - } - }); - } - @Override - public Observable listAsync() { - ClustersInner client = this.inner(); - return client.listAsync() - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listNextInnerPageAsync(page.nextPageLink()); - } - }) - .flatMapIterable(new Func1, Iterable>() { - @Override - public Iterable call(Page page) { - return page.items(); - } - }) - .map(new Func1() { - @Override - public Cluster call(ClusterInner inner) { - return new ClusterImpl(inner, manager()); - } - }); - } - - private Observable> listByResourceGroupNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - ClustersInner client = this.inner(); - return client.listByResourceGroupNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listByResourceGroupNextInnerPageAsync(page.nextPageLink())); - } }); } - @Override - public Observable listByResourceGroupAsync(final String resourceGroupName) { - ClustersInner client = this.inner(); - return client.listByResourceGroupAsync(resourceGroupName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listByResourceGroupNextInnerPageAsync(page.nextPageLink()); - } - }) - .flatMapIterable(new Func1, Iterable>() { - @Override - public Iterable call(Page page) { - return page.items(); - } - }) - .map(new Func1() { - @Override - public Cluster call(ClusterInner inner) { - return new ClusterImpl(inner, manager()); - } - }); - } - private Observable> listByWorkspaceNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - ClustersInner client = this.inner(); - return client.listByWorkspaceNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listByWorkspaceNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listByWorkspaceAsync(final String resourceGroupName, final String workspaceName) { ClustersInner client = this.inner(); return client.listByWorkspaceAsync(resourceGroupName, workspaceName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listByWorkspaceNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Cluster call(ClusterInner inner) { return wrapModel(inner); } - }); + }); } @Override diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ClustersInner.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ClustersInner.java index cd82c094efce..780a8fe8df9e 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ClustersInner.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ClustersInner.java @@ -8,17 +8,15 @@ package com.microsoft.azure.management.batchai.v2018_05_01.implementation; -import com.microsoft.azure.arm.collection.InnerSupportsListing; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; import com.microsoft.azure.management.batchai.v2018_05_01.ClusterCreateParameters; -import com.microsoft.azure.management.batchai.v2018_05_01.ClustersListByResourceGroupOptions; import com.microsoft.azure.management.batchai.v2018_05_01.ClustersListByWorkspaceOptions; -import com.microsoft.azure.management.batchai.v2018_05_01.ClustersListOptions; import com.microsoft.azure.management.batchai.v2018_05_01.ClusterUpdateParameters; +import com.microsoft.azure.management.batchai.v2018_05_01.ScaleSettings; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -47,7 +45,7 @@ * An instance of this class provides access to all the operations defined * in Clusters. */ -public class ClustersInner implements InnerSupportsListing { +public class ClustersInner { /** The Retrofit service to perform REST calls. */ private ClustersService service; /** The service client containing this operation class. */ @@ -69,14 +67,6 @@ public ClustersInner(Retrofit retrofit, BatchAIManagementClientImpl client) { * used by Retrofit to perform actually REST calls. */ interface ClustersService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.Clusters list" }) - @GET("subscriptions/{subscriptionId}/providers/Microsoft.BatchAI/clusters") - Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Query("maxresults") Integer maxResults, @Header("User-Agent") String userAgent); - - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.Clusters listByResourceGroup" }) - @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/clusters") - Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Query("maxresults") Integer maxResults, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.Clusters create" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/clusters/{clusterName}") Observable> create(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Body ClusterCreateParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -87,7 +77,7 @@ interface ClustersService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.Clusters update" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/clusters/{clusterName}") - Observable> update(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Body ClusterUpdateParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> update(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body ClusterUpdateParameters parameters, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.Clusters delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/clusters/{clusterName}", method = "DELETE", hasBody = true) @@ -109,14 +99,6 @@ interface ClustersService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/clusters") Observable> listByWorkspace(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Query("maxresults") Integer maxResults, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.Clusters listNext" }) - @GET - Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.Clusters listByResourceGroupNext" }) - @GET - Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.Clusters listRemoteLoginInformationNext" }) @GET Observable> listRemoteLoginInformationNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -128,457 +110,87 @@ interface ClustersService { } /** - * Gets a list of Clusters associated with the given subscription. - * - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<ClusterInner> object if successful. - */ - public PagedList list() { - ServiceResponse> response = listSinglePageAsync().toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; - } - - /** - * Gets a list of Clusters associated with the given subscription. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listSinglePageAsync(), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); - } - - /** - * Gets a list of Clusters associated with the given subscription. - * - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ClusterInner> object - */ - public Observable> listAsync() { - return listWithServiceResponseAsync() - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); - } - - /** - * Gets a list of Clusters associated with the given subscription. - * - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ClusterInner> object - */ - public Observable>> listWithServiceResponseAsync() { - return listSinglePageAsync() - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Gets a list of Clusters associated with the given subscription. - * - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<ClusterInner> object wrapped in {@link ServiceResponse} if successful. - */ - public Observable>> listSinglePageAsync() { - if (this.client.subscriptionId() == null) { - throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); - } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } - final ClustersListOptions clustersListOptions = null; - Integer maxResults = null; - return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), maxResults, this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { - @Override - public Observable>> call(Response response) { - try { - ServiceResponse> result = listDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - /** - * Gets a list of Clusters associated with the given subscription. - * - * @param clustersListOptions Additional parameters for the operation - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<ClusterInner> object if successful. - */ - public PagedList list(final ClustersListOptions clustersListOptions) { - ServiceResponse> response = listSinglePageAsync(clustersListOptions).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; - } - - /** - * Gets a list of Clusters associated with the given subscription. - * - * @param clustersListOptions Additional parameters for the operation - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture> listAsync(final ClustersListOptions clustersListOptions, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listSinglePageAsync(clustersListOptions), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); - } - - /** - * Gets a list of Clusters associated with the given subscription. - * - * @param clustersListOptions Additional parameters for the operation - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ClusterInner> object - */ - public Observable> listAsync(final ClustersListOptions clustersListOptions) { - return listWithServiceResponseAsync(clustersListOptions) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); - } - - /** - * Gets a list of Clusters associated with the given subscription. - * - * @param clustersListOptions Additional parameters for the operation - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ClusterInner> object - */ - public Observable>> listWithServiceResponseAsync(final ClustersListOptions clustersListOptions) { - return listSinglePageAsync(clustersListOptions) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Gets a list of Clusters associated with the given subscription. - * - ServiceResponse> * @param clustersListOptions Additional parameters for the operation - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<ClusterInner> object wrapped in {@link ServiceResponse} if successful. - */ - public Observable>> listSinglePageAsync(final ClustersListOptions clustersListOptions) { - if (this.client.subscriptionId() == null) { - throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); - } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } - Validator.validate(clustersListOptions); - Integer maxResults = null; - if (clustersListOptions != null) { - maxResults = clustersListOptions.maxResults(); - } - return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), maxResults, this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { - @Override - public Observable>> call(Response response) { - try { - ServiceResponse> result = listDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(CloudException.class) - .build(response); - } - - /** - * Gets a list of Clusters within the specified resource group. + * Creates a Cluster in the given Workspace. * * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. + * @param clusterName The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. + * @param parameters The parameters to provide for the Cluster creation. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<ClusterInner> object if successful. + * @return the ClusterInner object if successful. */ - public PagedList listByResourceGroup(final String resourceGroupName) { - ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public ClusterInner create(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters) { + return createWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters).toBlocking().last().body(); } /** - * Gets a list of Clusters within the specified resource group. + * Creates a Cluster in the given Workspace. * * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. + * @param clusterName The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. + * @param parameters The parameters to provide for the Cluster creation. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listByResourceGroupSinglePageAsync(resourceGroupName), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listByResourceGroupNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); - } - - /** - * Gets a list of Clusters within the specified resource group. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ClusterInner> object - */ - public Observable> listByResourceGroupAsync(final String resourceGroupName) { - return listByResourceGroupWithServiceResponseAsync(resourceGroupName) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); - } - - /** - * Gets a list of Clusters within the specified resource group. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ClusterInner> object - */ - public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { - return listByResourceGroupSinglePageAsync(resourceGroupName) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Gets a list of Clusters within the specified resource group. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<ClusterInner> object wrapped in {@link ServiceResponse} if successful. - */ - public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { - if (resourceGroupName == null) { - throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); - } - if (this.client.subscriptionId() == null) { - throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); - } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } - final ClustersListByResourceGroupOptions clustersListByResourceGroupOptions = null; - Integer maxResults = null; - return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), maxResults, this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { - @Override - public Observable>> call(Response response) { - try { - ServiceResponse> result = listByResourceGroupDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); + public ServiceFuture createAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters), serviceCallback); } /** - * Gets a list of Clusters within the specified resource group. + * Creates a Cluster in the given Workspace. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param clustersListByResourceGroupOptions Additional parameters for the operation + * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. + * @param clusterName The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. + * @param parameters The parameters to provide for the Cluster creation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<ClusterInner> object if successful. + * @return the observable for the request */ - public PagedList listByResourceGroup(final String resourceGroupName, final ClustersListByResourceGroupOptions clustersListByResourceGroupOptions) { - ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName, clustersListByResourceGroupOptions).toBlocking().single(); - return new PagedList(response.body()) { + public Observable createAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters) { + return createWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters).map(new Func1, ClusterInner>() { @Override - public Page nextPage(String nextPageLink) { - return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + public ClusterInner call(ServiceResponse response) { + return response.body(); } - }; - } - - /** - * Gets a list of Clusters within the specified resource group. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param clustersListByResourceGroupOptions Additional parameters for the operation - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ClustersListByResourceGroupOptions clustersListByResourceGroupOptions, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listByResourceGroupSinglePageAsync(resourceGroupName, clustersListByResourceGroupOptions), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listByResourceGroupNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); - } - - /** - * Gets a list of Clusters within the specified resource group. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param clustersListByResourceGroupOptions Additional parameters for the operation - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ClusterInner> object - */ - public Observable> listByResourceGroupAsync(final String resourceGroupName, final ClustersListByResourceGroupOptions clustersListByResourceGroupOptions) { - return listByResourceGroupWithServiceResponseAsync(resourceGroupName, clustersListByResourceGroupOptions) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + }); } /** - * Gets a list of Clusters within the specified resource group. + * Creates a Cluster in the given Workspace. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param clustersListByResourceGroupOptions Additional parameters for the operation - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ClusterInner> object - */ - public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName, final ClustersListByResourceGroupOptions clustersListByResourceGroupOptions) { - return listByResourceGroupSinglePageAsync(resourceGroupName, clustersListByResourceGroupOptions) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Gets a list of Clusters within the specified resource group. - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param clustersListByResourceGroupOptions Additional parameters for the operation + * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. + * @param clusterName The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. + * @param parameters The parameters to provide for the Cluster creation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<ClusterInner> object wrapped in {@link ServiceResponse} if successful. + * @return the observable for the request */ - public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName, final ClustersListByResourceGroupOptions clustersListByResourceGroupOptions) { + public Observable> createWithServiceResponseAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } + if (workspaceName == null) { + throw new IllegalArgumentException("Parameter workspaceName is required and cannot be null."); + } + if (clusterName == null) { + throw new IllegalArgumentException("Parameter clusterName is required and cannot be null."); + } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(clustersListByResourceGroupOptions); - Integer maxResults = null; - if (clustersListByResourceGroupOptions != null) { - maxResults = clustersListByResourceGroupOptions.maxResults(); - } - return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), maxResults, this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { - @Override - public Observable>> call(Response response) { - try { - ServiceResponse> result = listByResourceGroupDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(CloudException.class) - .build(response); + Validator.validate(parameters); + Observable> observable = service.create(resourceGroupName, workspaceName, clusterName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } /** @@ -593,8 +205,8 @@ private ServiceResponse> listByResourceGroupDelegate(Resp * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ClusterInner object if successful. */ - public ClusterInner create(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters) { - return createWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters).toBlocking().last().body(); + public ClusterInner beginCreate(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters) { + return beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters).toBlocking().single().body(); } /** @@ -608,8 +220,8 @@ public ClusterInner create(String resourceGroupName, String workspaceName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters), serviceCallback); + public ServiceFuture beginCreateAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters), serviceCallback); } /** @@ -620,10 +232,10 @@ public ServiceFuture createAsync(String resourceGroupName, String * @param clusterName The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. * @param parameters The parameters to provide for the Cluster creation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the observable to the ClusterInner object */ - public Observable createAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters) { - return createWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters).map(new Func1, ClusterInner>() { + public Observable beginCreateAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters) { + return beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters).map(new Func1, ClusterInner>() { @Override public ClusterInner call(ServiceResponse response) { return response.body(); @@ -639,9 +251,9 @@ public ClusterInner call(ServiceResponse response) { * @param clusterName The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. * @param parameters The parameters to provide for the Cluster creation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the observable to the ClusterInner object */ - public Observable> createWithServiceResponseAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters) { + public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -661,53 +273,68 @@ public Observable> createWithServiceResponseAsync( throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } Validator.validate(parameters); - Observable> observable = service.create(resourceGroupName, workspaceName, clusterName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + return service.beginCreate(resourceGroupName, workspaceName, clusterName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); } /** - * Creates a Cluster in the given Workspace. + * Updates properties of a Cluster. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. * @param clusterName The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. - * @param parameters The parameters to provide for the Cluster creation. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ClusterInner object if successful. */ - public ClusterInner beginCreate(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters) { - return beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters).toBlocking().single().body(); + public ClusterInner update(String resourceGroupName, String workspaceName, String clusterName) { + return updateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName).toBlocking().single().body(); } /** - * Creates a Cluster in the given Workspace. + * Updates properties of a Cluster. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. * @param clusterName The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. - * @param parameters The parameters to provide for the Cluster creation. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginCreateAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters), serviceCallback); + public ServiceFuture updateAsync(String resourceGroupName, String workspaceName, String clusterName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName), serviceCallback); } /** - * Creates a Cluster in the given Workspace. + * Updates properties of a Cluster. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. * @param clusterName The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. - * @param parameters The parameters to provide for the Cluster creation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ClusterInner object */ - public Observable beginCreateAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters) { - return beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters).map(new Func1, ClusterInner>() { + public Observable updateAsync(String resourceGroupName, String workspaceName, String clusterName) { + return updateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName).map(new Func1, ClusterInner>() { @Override public ClusterInner call(ServiceResponse response) { return response.body(); @@ -716,16 +343,15 @@ public ClusterInner call(ServiceResponse response) { } /** - * Creates a Cluster in the given Workspace. + * Updates properties of a Cluster. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. * @param clusterName The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. - * @param parameters The parameters to provide for the Cluster creation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ClusterInner object */ - public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters) { + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String workspaceName, String clusterName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -738,19 +364,18 @@ public Observable> beginCreateWithServiceResponseA if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (parameters == null) { - throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(parameters); - return service.beginCreate(resourceGroupName, workspaceName, clusterName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final ScaleSettings scaleSettings = null; + ClusterUpdateParameters parameters = new ClusterUpdateParameters(); + parameters.withScaleSettings(null); + return service.update(resourceGroupName, workspaceName, clusterName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = beginCreateDelegate(response); + ServiceResponse clientResponse = updateDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -759,28 +384,20 @@ public Observable> call(Response res }); } - private ServiceResponse beginCreateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(202, new TypeToken() { }.getType()) - .registerError(CloudException.class) - .build(response); - } - /** * Updates properties of a Cluster. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. * @param clusterName The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. - * @param parameters Additional parameters for cluster update. + * @param scaleSettings Scale settings. Desired scale settings for the cluster. Batch AI service supports manual and auto scale clusters. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ClusterInner object if successful. */ - public ClusterInner update(String resourceGroupName, String workspaceName, String clusterName, ClusterUpdateParameters parameters) { - return updateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters).toBlocking().single().body(); + public ClusterInner update(String resourceGroupName, String workspaceName, String clusterName, ScaleSettings scaleSettings) { + return updateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, scaleSettings).toBlocking().single().body(); } /** @@ -789,13 +406,13 @@ public ClusterInner update(String resourceGroupName, String workspaceName, Strin * @param resourceGroupName Name of the resource group to which the resource belongs. * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. * @param clusterName The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. - * @param parameters Additional parameters for cluster update. + * @param scaleSettings Scale settings. Desired scale settings for the cluster. Batch AI service supports manual and auto scale clusters. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture updateAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterUpdateParameters parameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters), serviceCallback); + public ServiceFuture updateAsync(String resourceGroupName, String workspaceName, String clusterName, ScaleSettings scaleSettings, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, scaleSettings), serviceCallback); } /** @@ -804,12 +421,12 @@ public ServiceFuture updateAsync(String resourceGroupName, String * @param resourceGroupName Name of the resource group to which the resource belongs. * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. * @param clusterName The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. - * @param parameters Additional parameters for cluster update. + * @param scaleSettings Scale settings. Desired scale settings for the cluster. Batch AI service supports manual and auto scale clusters. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ClusterInner object */ - public Observable updateAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterUpdateParameters parameters) { - return updateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters).map(new Func1, ClusterInner>() { + public Observable updateAsync(String resourceGroupName, String workspaceName, String clusterName, ScaleSettings scaleSettings) { + return updateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, scaleSettings).map(new Func1, ClusterInner>() { @Override public ClusterInner call(ServiceResponse response) { return response.body(); @@ -823,11 +440,11 @@ public ClusterInner call(ServiceResponse response) { * @param resourceGroupName Name of the resource group to which the resource belongs. * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. * @param clusterName The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. - * @param parameters Additional parameters for cluster update. + * @param scaleSettings Scale settings. Desired scale settings for the cluster. Batch AI service supports manual and auto scale clusters. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ClusterInner object */ - public Observable> updateWithServiceResponseAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterUpdateParameters parameters) { + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String workspaceName, String clusterName, ScaleSettings scaleSettings) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -840,14 +457,13 @@ public Observable> updateWithServiceResponseAsync( if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (parameters == null) { - throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(parameters); - return service.update(resourceGroupName, workspaceName, clusterName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + Validator.validate(scaleSettings); + ClusterUpdateParameters parameters = new ClusterUpdateParameters(); + parameters.withScaleSettings(scaleSettings); + return service.update(resourceGroupName, workspaceName, clusterName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1512,228 +1128,6 @@ private ServiceResponse> listByWorkspaceDelegate(Response .build(response); } - /** - * Gets a list of Clusters associated with the given subscription. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<ClusterInner> object if successful. - */ - public PagedList listNext(final String nextPageLink) { - ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; - } - - /** - * Gets a list of Clusters associated with the given subscription. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param serviceFuture the ServiceFuture object tracking the Retrofit calls - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listNextSinglePageAsync(nextPageLink), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); - } - - /** - * Gets a list of Clusters associated with the given subscription. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ClusterInner> object - */ - public Observable> listNextAsync(final String nextPageLink) { - return listNextWithServiceResponseAsync(nextPageLink) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); - } - - /** - * Gets a list of Clusters associated with the given subscription. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ClusterInner> object - */ - public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { - return listNextSinglePageAsync(nextPageLink) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Gets a list of Clusters associated with the given subscription. - * - ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<ClusterInner> object wrapped in {@link ServiceResponse} if successful. - */ - public Observable>> listNextSinglePageAsync(final String nextPageLink) { - if (nextPageLink == null) { - throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); - } - String nextUrl = String.format("%s", nextPageLink); - return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { - @Override - public Observable>> call(Response response) { - try { - ServiceResponse> result = listNextDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(CloudException.class) - .build(response); - } - - /** - * Gets a list of Clusters within the specified resource group. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<ClusterInner> object if successful. - */ - public PagedList listByResourceGroupNext(final String nextPageLink) { - ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; - } - - /** - * Gets a list of Clusters within the specified resource group. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param serviceFuture the ServiceFuture object tracking the Retrofit calls - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listByResourceGroupNextSinglePageAsync(nextPageLink), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listByResourceGroupNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); - } - - /** - * Gets a list of Clusters within the specified resource group. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ClusterInner> object - */ - public Observable> listByResourceGroupNextAsync(final String nextPageLink) { - return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); - } - - /** - * Gets a list of Clusters within the specified resource group. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ClusterInner> object - */ - public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { - return listByResourceGroupNextSinglePageAsync(nextPageLink) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Gets a list of Clusters within the specified resource group. - * - ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<ClusterInner> object wrapped in {@link ServiceResponse} if successful. - */ - public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { - if (nextPageLink == null) { - throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); - } - String nextUrl = String.format("%s", nextPageLink); - return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { - @Override - public Observable>> call(Response response) { - try { - ServiceResponse> result = listByResourceGroupNextDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(CloudException.class) - .build(response); - } - /** * Get the IP address, port of all the compute nodes in the Cluster. * diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ExperimentInner.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ExperimentInner.java index d216402ccbcf..6d425805d8a1 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ExperimentInner.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ExperimentInner.java @@ -15,17 +15,19 @@ import com.microsoft.azure.ProxyResource; /** - * Contains information about the experiment. + * Experiment information. */ @JsonFlatten public class ExperimentInner extends ProxyResource { /** + * Creation time. * Time when the Experiment was created. */ @JsonProperty(value = "properties.creationTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime creationTime; /** + * Provisioning state. * The provisioned state of the experiment. Possible values include: * 'creating', 'succeeded', 'failed', 'deleting'. */ @@ -33,14 +35,14 @@ public class ExperimentInner extends ProxyResource { private ProvisioningState provisioningState; /** - * The time at which the experiment entered its current provisioning state. + * Provisioning state transition time. * The time at which the experiment entered its current provisioning state. */ @JsonProperty(value = "properties.provisioningStateTransitionTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime provisioningStateTransitionTime; /** - * Get the creationTime value. + * Get time when the Experiment was created. * * @return the creationTime value */ @@ -49,7 +51,7 @@ public DateTime creationTime() { } /** - * Get the provisioningState value. + * Get the provisioned state of the experiment. Possible values include: 'creating', 'succeeded', 'failed', 'deleting'. * * @return the provisioningState value */ @@ -58,7 +60,7 @@ public ProvisioningState provisioningState() { } /** - * Get the provisioningStateTransitionTime value. + * Get the time at which the experiment entered its current provisioning state. * * @return the provisioningStateTransitionTime value */ diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ExperimentsImpl.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ExperimentsImpl.java index ae6cce989627..02d27421edee 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ExperimentsImpl.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ExperimentsImpl.java @@ -42,41 +42,22 @@ private ExperimentImpl wrapModel(String name) { return new ExperimentImpl(name, this.manager()); } - private Observable> listByWorkspaceNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - ExperimentsInner client = this.inner(); - return client.listByWorkspaceNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listByWorkspaceNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listByWorkspaceAsync(final String resourceGroupName, final String workspaceName) { ExperimentsInner client = this.inner(); return client.listByWorkspaceAsync(resourceGroupName, workspaceName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listByWorkspaceNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Experiment call(ExperimentInner inner) { return wrapModel(inner); } - }); + }); } @Override diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/FileInner.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/FileInner.java index 8d0c4d23e6bc..97b9ea0a00a1 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/FileInner.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/FileInner.java @@ -19,41 +19,44 @@ @JsonFlatten public class FileInner { /** + * Name. * Name of the file. */ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name; /** - * Contains information about file type. Possible values include: 'file', - * 'directory'. + * File type. + * Type of the file. Possible values are file and directory. Possible + * values include: 'file', 'directory'. */ @JsonProperty(value = "fileType", access = JsonProperty.Access.WRITE_ONLY) private FileType fileType; /** - * Will contain an URL to download the corresponding file. The downloadUrl - * is not returned for directories. + * Download URL. + * URL to download the corresponding file. The downloadUrl is not returned + * for directories. */ @JsonProperty(value = "downloadUrl", access = JsonProperty.Access.WRITE_ONLY) private String downloadUrl; /** - * The time at which the file was last modified. + * Last modified time. * The time at which the file was last modified. */ @JsonProperty(value = "properties.lastModified", access = JsonProperty.Access.WRITE_ONLY) private DateTime lastModified; /** - * The file size. - * The file size. + * Content length. + * The file of the size. */ @JsonProperty(value = "properties.contentLength", access = JsonProperty.Access.WRITE_ONLY) private Long contentLength; /** - * Get the name value. + * Get name of the file. * * @return the name value */ @@ -62,7 +65,7 @@ public String name() { } /** - * Get the fileType value. + * Get type of the file. Possible values are file and directory. Possible values include: 'file', 'directory'. * * @return the fileType value */ @@ -71,7 +74,7 @@ public FileType fileType() { } /** - * Get the downloadUrl value. + * Get uRL to download the corresponding file. The downloadUrl is not returned for directories. * * @return the downloadUrl value */ @@ -80,7 +83,7 @@ public String downloadUrl() { } /** - * Get the lastModified value. + * Get the time at which the file was last modified. * * @return the lastModified value */ @@ -89,7 +92,7 @@ public DateTime lastModified() { } /** - * Get the contentLength value. + * Get the file of the size. * * @return the contentLength value */ diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/FileServerImpl.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/FileServerImpl.java index 82281525b4e5..2dbde7009025 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/FileServerImpl.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/FileServerImpl.java @@ -12,7 +12,6 @@ import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; import rx.Observable; import com.microsoft.azure.management.batchai.v2018_05_01.FileServerCreateParameters; -import java.util.Map; import org.joda.time.DateTime; import com.microsoft.azure.management.batchai.v2018_05_01.DataDisks; import com.microsoft.azure.management.batchai.v2018_05_01.MountSettings; @@ -113,11 +112,6 @@ public String id() { return this.inner().id(); } - @Override - public String location() { - return this.inner().location(); - } - @Override public MountSettings mountSettings() { return this.inner().mountSettings(); @@ -148,11 +142,6 @@ public ResourceId subnet() { return this.inner().subnet(); } - @Override - public Map tags() { - return this.inner().getTags(); - } - @Override public String type() { return this.inner().type(); @@ -176,12 +165,6 @@ public FileServerImpl withDataDisks(DataDisks dataDisks) { return this; } - @Override - public FileServerImpl withLocation(String location) { - this.createOrUpdateParameter.withLocation(location); - return this; - } - @Override public FileServerImpl withSshConfiguration(SshConfiguration sshConfiguration) { this.createOrUpdateParameter.withSshConfiguration(sshConfiguration); @@ -200,10 +183,4 @@ public FileServerImpl withSubnet(ResourceId subnet) { return this; } - @Override - public FileServerImpl withTags(Map tags) { - this.createOrUpdateParameter.withTags(tags); - return this; - } - } diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/FileServerInner.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/FileServerInner.java index 52438889bad6..0adc1bac8664 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/FileServerInner.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/FileServerInner.java @@ -16,75 +16,79 @@ import com.microsoft.azure.management.batchai.v2018_05_01.FileServerProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; -import com.microsoft.rest.SkipParentValidation; -import com.microsoft.azure.Resource; +import com.microsoft.azure.ProxyResource; /** - * Contains information about the File Server. + * File Server information. */ @JsonFlatten -@SkipParentValidation -public class FileServerInner extends Resource { +public class FileServerInner extends ProxyResource { /** - * The size of the virtual machine of the File Server. - * For information about available VM sizes for File Server from the - * Virtual Machines Marketplace, see Sizes for Virtual Machines (Linux). + * VM size. + * VM size of the File Server. */ @JsonProperty(value = "properties.vmSize") private String vmSize; /** - * SSH settings for the File Server. + * SSH configuration. + * SSH configuration for accessing the File Server node. */ @JsonProperty(value = "properties.sshConfiguration") private SshConfiguration sshConfiguration; /** - * Settings for the data disk which would be created for the File Server. + * Data disks configuration. + * Information about disks attached to File Server VM. */ @JsonProperty(value = "properties.dataDisks") private DataDisks dataDisks; /** - * Specifies the identifier of the subnet. + * Subnet. + * File Server virtual network subnet resource ID. */ @JsonProperty(value = "properties.subnet") private ResourceId subnet; /** - * Details of the File Server. + * Mount settings. + * File Server mount settings. */ @JsonProperty(value = "properties.mountSettings", access = JsonProperty.Access.WRITE_ONLY) private MountSettings mountSettings; /** - * Time when the status was changed. + * Provisioning State Transition time. + * Time when the provisioning state was changed. */ @JsonProperty(value = "properties.provisioningStateTransitionTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime provisioningStateTransitionTime; /** + * Creation time. * Time when the FileServer was created. */ @JsonProperty(value = "properties.creationTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime creationTime; /** - * Specifies the provisioning state of the File Server. - * Possible values: creating - The File Server is getting created. updating - * - The File Server creation has been accepted and it is getting updated. - * deleting - The user has requested that the File Server be deleted, and - * it is in the process of being deleted. failed - The File Server creation - * has failed with the specified errorCode. Details about the error code - * are specified in the message field. succeeded - The File Server creation - * has succeeded. Possible values include: 'creating', 'updating', - * 'deleting', 'succeeded', 'failed'. + * Provisioning state. + * Provisioning state of the File Server. Possible values: creating - The + * File Server is getting created; updating - The File Server creation has + * been accepted and it is getting updated; deleting - The user has + * requested that the File Server be deleted, and it is in the process of + * being deleted; failed - The File Server creation has failed with the + * specified error code. Details about the error code are specified in the + * message field; succeeded - The File Server creation has succeeded. + * Possible values include: 'creating', 'updating', 'deleting', + * 'succeeded', 'failed'. */ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) private FileServerProvisioningState provisioningState; /** - * Get the vmSize value. + * Get vM size of the File Server. * * @return the vmSize value */ @@ -93,7 +97,7 @@ public String vmSize() { } /** - * Set the vmSize value. + * Set vM size of the File Server. * * @param vmSize the vmSize value to set * @return the FileServerInner object itself. @@ -104,7 +108,7 @@ public FileServerInner withVmSize(String vmSize) { } /** - * Get the sshConfiguration value. + * Get sSH configuration for accessing the File Server node. * * @return the sshConfiguration value */ @@ -113,7 +117,7 @@ public SshConfiguration sshConfiguration() { } /** - * Set the sshConfiguration value. + * Set sSH configuration for accessing the File Server node. * * @param sshConfiguration the sshConfiguration value to set * @return the FileServerInner object itself. @@ -124,7 +128,7 @@ public FileServerInner withSshConfiguration(SshConfiguration sshConfiguration) { } /** - * Get the dataDisks value. + * Get information about disks attached to File Server VM. * * @return the dataDisks value */ @@ -133,7 +137,7 @@ public DataDisks dataDisks() { } /** - * Set the dataDisks value. + * Set information about disks attached to File Server VM. * * @param dataDisks the dataDisks value to set * @return the FileServerInner object itself. @@ -144,7 +148,7 @@ public FileServerInner withDataDisks(DataDisks dataDisks) { } /** - * Get the subnet value. + * Get file Server virtual network subnet resource ID. * * @return the subnet value */ @@ -153,7 +157,7 @@ public ResourceId subnet() { } /** - * Set the subnet value. + * Set file Server virtual network subnet resource ID. * * @param subnet the subnet value to set * @return the FileServerInner object itself. @@ -164,7 +168,7 @@ public FileServerInner withSubnet(ResourceId subnet) { } /** - * Get the mountSettings value. + * Get file Server mount settings. * * @return the mountSettings value */ @@ -173,7 +177,7 @@ public MountSettings mountSettings() { } /** - * Get the provisioningStateTransitionTime value. + * Get time when the provisioning state was changed. * * @return the provisioningStateTransitionTime value */ @@ -182,7 +186,7 @@ public DateTime provisioningStateTransitionTime() { } /** - * Get the creationTime value. + * Get time when the FileServer was created. * * @return the creationTime value */ @@ -191,7 +195,7 @@ public DateTime creationTime() { } /** - * Get the provisioningState value. + * Get provisioning state of the File Server. Possible values: creating - The File Server is getting created; updating - The File Server creation has been accepted and it is getting updated; deleting - The user has requested that the File Server be deleted, and it is in the process of being deleted; failed - The File Server creation has failed with the specified error code. Details about the error code are specified in the message field; succeeded - The File Server creation has succeeded. Possible values include: 'creating', 'updating', 'deleting', 'succeeded', 'failed'. * * @return the provisioningState value */ diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/FileServersImpl.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/FileServersImpl.java index c885fd030872..f3e8452919fb 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/FileServersImpl.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/FileServersImpl.java @@ -42,115 +42,22 @@ private FileServerImpl wrapModel(String name) { return new FileServerImpl(name, this.manager()); } - private Observable> listNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - FileServersInner client = this.inner(); - return client.listNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink())); - } - }); - } - @Override - public Observable listAsync() { - FileServersInner client = this.inner(); - return client.listAsync() - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listNextInnerPageAsync(page.nextPageLink()); - } - }) - .flatMapIterable(new Func1, Iterable>() { - @Override - public Iterable call(Page page) { - return page.items(); - } - }) - .map(new Func1() { - @Override - public FileServer call(FileServerInner inner) { - return new FileServerImpl(inner, manager()); - } - }); - } - - private Observable> listByResourceGroupNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - FileServersInner client = this.inner(); - return client.listByResourceGroupNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listByResourceGroupNextInnerPageAsync(page.nextPageLink())); - } - }); - } - @Override - public Observable listByResourceGroupAsync(final String resourceGroupName) { - FileServersInner client = this.inner(); - return client.listByResourceGroupAsync(resourceGroupName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listByResourceGroupNextInnerPageAsync(page.nextPageLink()); - } - }) - .flatMapIterable(new Func1, Iterable>() { - @Override - public Iterable call(Page page) { - return page.items(); - } - }) - .map(new Func1() { - @Override - public FileServer call(FileServerInner inner) { - return new FileServerImpl(inner, manager()); - } - }); - } - - private Observable> listByWorkspaceNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - FileServersInner client = this.inner(); - return client.listByWorkspaceNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listByWorkspaceNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listByWorkspaceAsync(final String resourceGroupName, final String workspaceName) { FileServersInner client = this.inner(); return client.listByWorkspaceAsync(resourceGroupName, workspaceName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listByWorkspaceNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public FileServer call(FileServerInner inner) { return wrapModel(inner); } - }); + }); } @Override diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/FileServersInner.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/FileServersInner.java index 1cb8cd9b946c..89374a94daf8 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/FileServersInner.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/FileServersInner.java @@ -8,16 +8,13 @@ package com.microsoft.azure.management.batchai.v2018_05_01.implementation; -import com.microsoft.azure.arm.collection.InnerSupportsListing; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; import com.microsoft.azure.management.batchai.v2018_05_01.FileServerCreateParameters; -import com.microsoft.azure.management.batchai.v2018_05_01.FileServersListByResourceGroupOptions; import com.microsoft.azure.management.batchai.v2018_05_01.FileServersListByWorkspaceOptions; -import com.microsoft.azure.management.batchai.v2018_05_01.FileServersListOptions; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -44,7 +41,7 @@ * An instance of this class provides access to all the operations defined * in FileServers. */ -public class FileServersInner implements InnerSupportsListing { +public class FileServersInner { /** The Retrofit service to perform REST calls. */ private FileServersService service; /** The service client containing this operation class. */ @@ -66,14 +63,6 @@ public FileServersInner(Retrofit retrofit, BatchAIManagementClientImpl client) { * used by Retrofit to perform actually REST calls. */ interface FileServersService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.FileServers list" }) - @GET("subscriptions/{subscriptionId}/providers/Microsoft.BatchAI/fileServers") - Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Query("maxresults") Integer maxResults, @Header("User-Agent") String userAgent); - - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.FileServers listByResourceGroup" }) - @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/fileServers") - Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Query("maxresults") Integer maxResults, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.FileServers create" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/fileServers/{fileServerName}") Observable> create(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("fileServerName") String fileServerName, @Path("subscriptionId") String subscriptionId, @Body FileServerCreateParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -86,484 +75,22 @@ interface FileServersService { @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/fileServers/{fileServerName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("fileServerName") String fileServerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.FileServers beginDelete" }) - @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/fileServers/{fileServerName}", method = "DELETE", hasBody = true) - Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("fileServerName") String fileServerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.FileServers get" }) - @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/fileServers/{fileServerName}") - Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("fileServerName") String fileServerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.FileServers listByWorkspace" }) - @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/fileServers") - Observable> listByWorkspace(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Query("maxresults") Integer maxResults, @Header("User-Agent") String userAgent); - - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.FileServers listNext" }) - @GET - Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.FileServers listByResourceGroupNext" }) - @GET - Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.FileServers listByWorkspaceNext" }) - @GET - Observable> listByWorkspaceNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - - } - - /** - * Gets a list of File Servers associated with the given subscription. - * - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<FileServerInner> object if successful. - */ - public PagedList list() { - ServiceResponse> response = listSinglePageAsync().toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; - } - - /** - * Gets a list of File Servers associated with the given subscription. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listSinglePageAsync(), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); - } - - /** - * Gets a list of File Servers associated with the given subscription. - * - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<FileServerInner> object - */ - public Observable> listAsync() { - return listWithServiceResponseAsync() - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); - } - - /** - * Gets a list of File Servers associated with the given subscription. - * - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<FileServerInner> object - */ - public Observable>> listWithServiceResponseAsync() { - return listSinglePageAsync() - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Gets a list of File Servers associated with the given subscription. - * - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<FileServerInner> object wrapped in {@link ServiceResponse} if successful. - */ - public Observable>> listSinglePageAsync() { - if (this.client.subscriptionId() == null) { - throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); - } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } - final FileServersListOptions fileServersListOptions = null; - Integer maxResults = null; - return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), maxResults, this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { - @Override - public Observable>> call(Response response) { - try { - ServiceResponse> result = listDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - /** - * Gets a list of File Servers associated with the given subscription. - * - * @param fileServersListOptions Additional parameters for the operation - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<FileServerInner> object if successful. - */ - public PagedList list(final FileServersListOptions fileServersListOptions) { - ServiceResponse> response = listSinglePageAsync(fileServersListOptions).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; - } - - /** - * Gets a list of File Servers associated with the given subscription. - * - * @param fileServersListOptions Additional parameters for the operation - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture> listAsync(final FileServersListOptions fileServersListOptions, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listSinglePageAsync(fileServersListOptions), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); - } - - /** - * Gets a list of File Servers associated with the given subscription. - * - * @param fileServersListOptions Additional parameters for the operation - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<FileServerInner> object - */ - public Observable> listAsync(final FileServersListOptions fileServersListOptions) { - return listWithServiceResponseAsync(fileServersListOptions) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); - } - - /** - * Gets a list of File Servers associated with the given subscription. - * - * @param fileServersListOptions Additional parameters for the operation - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<FileServerInner> object - */ - public Observable>> listWithServiceResponseAsync(final FileServersListOptions fileServersListOptions) { - return listSinglePageAsync(fileServersListOptions) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Gets a list of File Servers associated with the given subscription. - * - ServiceResponse> * @param fileServersListOptions Additional parameters for the operation - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<FileServerInner> object wrapped in {@link ServiceResponse} if successful. - */ - public Observable>> listSinglePageAsync(final FileServersListOptions fileServersListOptions) { - if (this.client.subscriptionId() == null) { - throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); - } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } - Validator.validate(fileServersListOptions); - Integer maxResults = null; - if (fileServersListOptions != null) { - maxResults = fileServersListOptions.maxResults(); - } - return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), maxResults, this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { - @Override - public Observable>> call(Response response) { - try { - ServiceResponse> result = listDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(CloudException.class) - .build(response); - } - - /** - * Gets a list of File Servers within the specified resource group. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<FileServerInner> object if successful. - */ - public PagedList listByResourceGroup(final String resourceGroupName) { - ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; - } - - /** - * Gets a list of File Servers within the specified resource group. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listByResourceGroupSinglePageAsync(resourceGroupName), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listByResourceGroupNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); - } - - /** - * Gets a list of File Servers within the specified resource group. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<FileServerInner> object - */ - public Observable> listByResourceGroupAsync(final String resourceGroupName) { - return listByResourceGroupWithServiceResponseAsync(resourceGroupName) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); - } - - /** - * Gets a list of File Servers within the specified resource group. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<FileServerInner> object - */ - public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { - return listByResourceGroupSinglePageAsync(resourceGroupName) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Gets a list of File Servers within the specified resource group. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<FileServerInner> object wrapped in {@link ServiceResponse} if successful. - */ - public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { - if (resourceGroupName == null) { - throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); - } - if (this.client.subscriptionId() == null) { - throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); - } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } - final FileServersListByResourceGroupOptions fileServersListByResourceGroupOptions = null; - Integer maxResults = null; - return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), maxResults, this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { - @Override - public Observable>> call(Response response) { - try { - ServiceResponse> result = listByResourceGroupDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - /** - * Gets a list of File Servers within the specified resource group. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param fileServersListByResourceGroupOptions Additional parameters for the operation - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<FileServerInner> object if successful. - */ - public PagedList listByResourceGroup(final String resourceGroupName, final FileServersListByResourceGroupOptions fileServersListByResourceGroupOptions) { - ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName, fileServersListByResourceGroupOptions).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; - } - - /** - * Gets a list of File Servers within the specified resource group. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param fileServersListByResourceGroupOptions Additional parameters for the operation - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final FileServersListByResourceGroupOptions fileServersListByResourceGroupOptions, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listByResourceGroupSinglePageAsync(resourceGroupName, fileServersListByResourceGroupOptions), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listByResourceGroupNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); - } - - /** - * Gets a list of File Servers within the specified resource group. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param fileServersListByResourceGroupOptions Additional parameters for the operation - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<FileServerInner> object - */ - public Observable> listByResourceGroupAsync(final String resourceGroupName, final FileServersListByResourceGroupOptions fileServersListByResourceGroupOptions) { - return listByResourceGroupWithServiceResponseAsync(resourceGroupName, fileServersListByResourceGroupOptions) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); - } + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.FileServers beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/fileServers/{fileServerName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("fileServerName") String fileServerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - /** - * Gets a list of File Servers within the specified resource group. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param fileServersListByResourceGroupOptions Additional parameters for the operation - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<FileServerInner> object - */ - public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName, final FileServersListByResourceGroupOptions fileServersListByResourceGroupOptions) { - return listByResourceGroupSinglePageAsync(resourceGroupName, fileServersListByResourceGroupOptions) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); - } - }); - } + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.FileServers get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/fileServers/{fileServerName}") + Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("fileServerName") String fileServerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - /** - * Gets a list of File Servers within the specified resource group. - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param fileServersListByResourceGroupOptions Additional parameters for the operation - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<FileServerInner> object wrapped in {@link ServiceResponse} if successful. - */ - public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName, final FileServersListByResourceGroupOptions fileServersListByResourceGroupOptions) { - if (resourceGroupName == null) { - throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); - } - if (this.client.subscriptionId() == null) { - throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); - } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } - Validator.validate(fileServersListByResourceGroupOptions); - Integer maxResults = null; - if (fileServersListByResourceGroupOptions != null) { - maxResults = fileServersListByResourceGroupOptions.maxResults(); - } - return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), maxResults, this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { - @Override - public Observable>> call(Response response) { - try { - ServiceResponse> result = listByResourceGroupDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.FileServers listByWorkspace" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/fileServers") + Observable> listByWorkspace(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Query("maxresults") Integer maxResults, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.FileServers listByWorkspaceNext" }) + @GET + Observable> listByWorkspaceNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(CloudException.class) - .build(response); } /** @@ -1265,228 +792,6 @@ private ServiceResponse> listByWorkspaceDelegate(Respo .build(response); } - /** - * Gets a list of File Servers associated with the given subscription. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<FileServerInner> object if successful. - */ - public PagedList listNext(final String nextPageLink) { - ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; - } - - /** - * Gets a list of File Servers associated with the given subscription. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param serviceFuture the ServiceFuture object tracking the Retrofit calls - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listNextSinglePageAsync(nextPageLink), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); - } - - /** - * Gets a list of File Servers associated with the given subscription. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<FileServerInner> object - */ - public Observable> listNextAsync(final String nextPageLink) { - return listNextWithServiceResponseAsync(nextPageLink) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); - } - - /** - * Gets a list of File Servers associated with the given subscription. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<FileServerInner> object - */ - public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { - return listNextSinglePageAsync(nextPageLink) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Gets a list of File Servers associated with the given subscription. - * - ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<FileServerInner> object wrapped in {@link ServiceResponse} if successful. - */ - public Observable>> listNextSinglePageAsync(final String nextPageLink) { - if (nextPageLink == null) { - throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); - } - String nextUrl = String.format("%s", nextPageLink); - return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { - @Override - public Observable>> call(Response response) { - try { - ServiceResponse> result = listNextDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(CloudException.class) - .build(response); - } - - /** - * Gets a list of File Servers within the specified resource group. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<FileServerInner> object if successful. - */ - public PagedList listByResourceGroupNext(final String nextPageLink) { - ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; - } - - /** - * Gets a list of File Servers within the specified resource group. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param serviceFuture the ServiceFuture object tracking the Retrofit calls - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listByResourceGroupNextSinglePageAsync(nextPageLink), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listByResourceGroupNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); - } - - /** - * Gets a list of File Servers within the specified resource group. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<FileServerInner> object - */ - public Observable> listByResourceGroupNextAsync(final String nextPageLink) { - return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); - } - - /** - * Gets a list of File Servers within the specified resource group. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<FileServerInner> object - */ - public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { - return listByResourceGroupNextSinglePageAsync(nextPageLink) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Gets a list of File Servers within the specified resource group. - * - ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<FileServerInner> object wrapped in {@link ServiceResponse} if successful. - */ - public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { - if (nextPageLink == null) { - throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); - } - String nextUrl = String.format("%s", nextPageLink); - return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { - @Override - public Observable>> call(Response response) { - try { - ServiceResponse> result = listByResourceGroupNextDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(CloudException.class) - .build(response); - } - /** * Gets a list of File Servers associated with the specified workspace. * diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/JobImpl.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/JobImpl.java index fcd81964fe80..f8d97e3a88c3 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/JobImpl.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/JobImpl.java @@ -13,6 +13,7 @@ import rx.Observable; import com.microsoft.azure.management.batchai.v2018_05_01.JobCreateParameters; import java.util.List; +import com.microsoft.azure.management.batchai.v2018_05_01.Caffe2Settings; import com.microsoft.azure.management.batchai.v2018_05_01.CaffeSettings; import com.microsoft.azure.management.batchai.v2018_05_01.ChainerSettings; import com.microsoft.azure.management.batchai.v2018_05_01.ResourceId; @@ -30,13 +31,12 @@ import com.microsoft.azure.management.batchai.v2018_05_01.JobPreparation; import com.microsoft.azure.management.batchai.v2018_05_01.MountVolumes; import com.microsoft.azure.management.batchai.v2018_05_01.OutputDirectory; -import com.microsoft.azure.management.batchai.v2018_05_01.JobPriority; import com.microsoft.azure.management.batchai.v2018_05_01.ProvisioningState; import com.microsoft.azure.management.batchai.v2018_05_01.PyTorchSettings; +import com.microsoft.azure.management.batchai.v2018_05_01.JobPriority; import com.microsoft.azure.management.batchai.v2018_05_01.EnvironmentVariableWithSecretValue; import com.microsoft.azure.management.batchai.v2018_05_01.TensorFlowSettings; import com.microsoft.azure.management.batchai.v2018_05_01.ToolType; -import com.microsoft.azure.management.batchai.v2018_05_01.Caffe2Settings; import com.microsoft.azure.management.batchai.v2018_05_01.JobBasePropertiesConstraints; import rx.functions.Func1; @@ -119,6 +119,11 @@ private void resetCreateUpdateParameters() { this.createOrUpdateParameter = new JobCreateParameters(); } + @Override + public Caffe2Settings caffe2Settings() { + return this.inner().caffe2Settings(); + } + @Override public CaffeSettings caffeSettings() { return this.inner().caffeSettings(); @@ -229,11 +234,6 @@ public List outputDirectories() { return this.inner().outputDirectories(); } - @Override - public JobPriority priority() { - return this.inner().priority(); - } - @Override public ProvisioningState provisioningState() { return this.inner().provisioningState(); @@ -249,6 +249,11 @@ public PyTorchSettings pyTorchSettings() { return this.inner().pyTorchSettings(); } + @Override + public JobPriority schedulingPriority() { + return this.inner().schedulingPriority(); + } + @Override public List secrets() { return this.inner().secrets(); diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/JobInner.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/JobInner.java index 36b2ee48e416..6dd995454dd6 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/JobInner.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/JobInner.java @@ -17,6 +17,7 @@ import com.microsoft.azure.management.batchai.v2018_05_01.PyTorchSettings; import com.microsoft.azure.management.batchai.v2018_05_01.TensorFlowSettings; import com.microsoft.azure.management.batchai.v2018_05_01.CaffeSettings; +import com.microsoft.azure.management.batchai.v2018_05_01.Caffe2Settings; import com.microsoft.azure.management.batchai.v2018_05_01.ChainerSettings; import com.microsoft.azure.management.batchai.v2018_05_01.CustomToolkitSettings; import com.microsoft.azure.management.batchai.v2018_05_01.CustomMpiSettings; @@ -37,43 +38,35 @@ import com.microsoft.azure.ProxyResource; /** - * Contains information about a Job. + * Information about a Job. */ @JsonFlatten public class JobInner extends ProxyResource { /** - * Priority associated with the job. - * Priority associated with the job. Possible values include: 'low', - * 'normal', 'high'. + * Scheduling priority. + * Scheduling priority associated with the job. Possible values include: + * 'low', 'normal', 'high'. */ - @JsonProperty(value = "properties.priority") - private JobPriority priority; + @JsonProperty(value = "properties.schedulingPriority") + private JobPriority schedulingPriority; /** - * Specifies the Id of the cluster on which this job will run. + * Cluster. + * Resource ID of the cluster associated with the job. */ @JsonProperty(value = "properties.cluster") private ResourceId cluster; /** - * Information on mount volumes to be used by the job. - * These volumes will be mounted before the job execution and will be - * unmouted after the job completion. The volumes will be mounted at - * location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable. + * Mount volumes. + * Collection of mount volumes available to the job during execution. These + * volumes are mounted before the job execution and unmouted after the job + * completion. The volumes are mounted at location specified by + * $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable. */ @JsonProperty(value = "properties.mountVolumes") private MountVolumes mountVolumes; - /** - * A segment of job's output directories path created by BatchAI. - * Batch AI creates job's output directories under an unique path to avoid - * conflicts between jobs. This value contains a path segment generated by - * Batch AI to make the path unique and can be used to find the output - * directory on the node or mounted filesystem. - */ - @JsonProperty(value = "properties.jobOutputDirectoryPathSegment", access = JsonProperty.Access.WRITE_ONLY) - private String jobOutputDirectoryPathSegment; - /** * Number of compute nodes to run the job on. * The job will be gang scheduled on that many compute nodes. @@ -93,8 +86,9 @@ public class JobInner extends ProxyResource { /** * The toolkit type of this job. * Possible values are: cntk, tensorflow, caffe, caffe2, chainer, pytorch, - * custom, mpi, horovod. Possible values include: 'cntk', 'tensorflow', - * 'caffe', 'caffe2', 'chainer', 'horovod', 'mpi', 'custom'. + * custom, custommpi, horovod. Possible values include: 'cntk', + * 'tensorflow', 'caffe', 'caffe2', 'chainer', 'horovod', 'custommpi', + * 'custom'. */ @JsonProperty(value = "properties.toolType") private ToolType toolType; @@ -123,6 +117,12 @@ public class JobInner extends ProxyResource { @JsonProperty(value = "properties.caffeSettings") private CaffeSettings caffeSettings; + /** + * Specifies the settings for Caffe2 job. + */ + @JsonProperty(value = "properties.caffe2Settings") + private Caffe2Settings caffe2Settings; + /** * Specifies the settings for Chainer job. */ @@ -156,36 +156,51 @@ public class JobInner extends ProxyResource { private JobPreparation jobPreparation; /** - * The path where the Batch AI service will upload stdout and stderror of - * the job. + * Output directory path segment. + * A segment of job's output directories path created by Batch AI. Batch AI + * creates job's output directories under an unique path to avoid conflicts + * between jobs. This value contains a path segment generated by Batch AI + * to make the path unique and can be used to find the output directory on + * the node or mounted filesystem. + */ + @JsonProperty(value = "properties.jobOutputDirectoryPathSegment", access = JsonProperty.Access.WRITE_ONLY) + private String jobOutputDirectoryPathSegment; + + /** + * Standard output directory path prefix. + * The path where the Batch AI service stores stdout, stderror and + * execution log of the job. */ @JsonProperty(value = "properties.stdOutErrPathPrefix") private String stdOutErrPathPrefix; /** - * Specifies the list of input directories for the Job. + * Input directories. + * A list of input directories for the job. */ @JsonProperty(value = "properties.inputDirectories") private List inputDirectories; /** - * Specifies the list of output directories where the models will be - * created. + * Output directories. + * A list of output directories for the job. */ @JsonProperty(value = "properties.outputDirectories") private List outputDirectories; /** - * Additional environment variables to set on the job. - * Batch AI will setup these additional environment variables for the job. + * Environment variables. + * A collection of user defined environment variables to be setup for the + * job. */ @JsonProperty(value = "properties.environmentVariables") private List environmentVariables; /** - * Additional environment variables with secret values to set on the job. - * Batch AI will setup these additional environment variables for the job. - * Server will never report values of these variables back. + * Secrets. + * A collection of user defined environment variables with secret values to + * be setup for the job. Server will never report values of these variables + * back. */ @JsonProperty(value = "properties.secrets") private List secrets; @@ -197,13 +212,14 @@ public class JobInner extends ProxyResource { private JobPropertiesConstraints constraints; /** - * The job creation time. + * Creation time. * The creation time of the job. */ @JsonProperty(value = "properties.creationTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime creationTime; /** + * Provisioning state. * The provisioned state of the Batch AI job. Possible values include: * 'creating', 'succeeded', 'failed', 'deleting'. */ @@ -211,14 +227,14 @@ public class JobInner extends ProxyResource { private ProvisioningState provisioningState; /** - * The time at which the job entered its current provisioning state. + * Provisioning state transition time. * The time at which the job entered its current provisioning state. */ @JsonProperty(value = "properties.provisioningStateTransitionTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime provisioningStateTransitionTime; /** - * The current state of the job. + * Execution state. * The current state of the job. Possible values are: queued - The job is * queued and able to run. A job enters this state when it is created, or * when it is awaiting a retry after a failed run. running - The job is @@ -237,41 +253,40 @@ public class JobInner extends ProxyResource { private ExecutionState executionState; /** - * The time at which the job entered its current execution state. + * Execution state transition time. * The time at which the job entered its current execution state. */ @JsonProperty(value = "properties.executionStateTransitionTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime executionStateTransitionTime; /** - * Contains information about the execution of a job in the Azure Batch - * service. + * Information about the execution of a job. */ @JsonProperty(value = "properties.executionInfo") private JobPropertiesExecutionInfo executionInfo; /** - * Get the priority value. + * Get scheduling priority associated with the job. Possible values include: 'low', 'normal', 'high'. * - * @return the priority value + * @return the schedulingPriority value */ - public JobPriority priority() { - return this.priority; + public JobPriority schedulingPriority() { + return this.schedulingPriority; } /** - * Set the priority value. + * Set scheduling priority associated with the job. Possible values include: 'low', 'normal', 'high'. * - * @param priority the priority value to set + * @param schedulingPriority the schedulingPriority value to set * @return the JobInner object itself. */ - public JobInner withPriority(JobPriority priority) { - this.priority = priority; + public JobInner withSchedulingPriority(JobPriority schedulingPriority) { + this.schedulingPriority = schedulingPriority; return this; } /** - * Get the cluster value. + * Get resource ID of the cluster associated with the job. * * @return the cluster value */ @@ -280,7 +295,7 @@ public ResourceId cluster() { } /** - * Set the cluster value. + * Set resource ID of the cluster associated with the job. * * @param cluster the cluster value to set * @return the JobInner object itself. @@ -291,7 +306,7 @@ public JobInner withCluster(ResourceId cluster) { } /** - * Get the mountVolumes value. + * Get collection of mount volumes available to the job during execution. These volumes are mounted before the job execution and unmouted after the job completion. The volumes are mounted at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable. * * @return the mountVolumes value */ @@ -300,7 +315,7 @@ public MountVolumes mountVolumes() { } /** - * Set the mountVolumes value. + * Set collection of mount volumes available to the job during execution. These volumes are mounted before the job execution and unmouted after the job completion. The volumes are mounted at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable. * * @param mountVolumes the mountVolumes value to set * @return the JobInner object itself. @@ -311,16 +326,7 @@ public JobInner withMountVolumes(MountVolumes mountVolumes) { } /** - * Get the jobOutputDirectoryPathSegment value. - * - * @return the jobOutputDirectoryPathSegment value - */ - public String jobOutputDirectoryPathSegment() { - return this.jobOutputDirectoryPathSegment; - } - - /** - * Get the nodeCount value. + * Get the job will be gang scheduled on that many compute nodes. * * @return the nodeCount value */ @@ -329,7 +335,7 @@ public Integer nodeCount() { } /** - * Set the nodeCount value. + * Set the job will be gang scheduled on that many compute nodes. * * @param nodeCount the nodeCount value to set * @return the JobInner object itself. @@ -340,7 +346,7 @@ public JobInner withNodeCount(Integer nodeCount) { } /** - * Get the containerSettings value. + * Get if the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM. * * @return the containerSettings value */ @@ -349,7 +355,7 @@ public ContainerSettings containerSettings() { } /** - * Set the containerSettings value. + * Set if the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM. * * @param containerSettings the containerSettings value to set * @return the JobInner object itself. @@ -360,7 +366,7 @@ public JobInner withContainerSettings(ContainerSettings containerSettings) { } /** - * Get the toolType value. + * Get possible values are: cntk, tensorflow, caffe, caffe2, chainer, pytorch, custom, custommpi, horovod. Possible values include: 'cntk', 'tensorflow', 'caffe', 'caffe2', 'chainer', 'horovod', 'custommpi', 'custom'. * * @return the toolType value */ @@ -369,7 +375,7 @@ public ToolType toolType() { } /** - * Set the toolType value. + * Set possible values are: cntk, tensorflow, caffe, caffe2, chainer, pytorch, custom, custommpi, horovod. Possible values include: 'cntk', 'tensorflow', 'caffe', 'caffe2', 'chainer', 'horovod', 'custommpi', 'custom'. * * @param toolType the toolType value to set * @return the JobInner object itself. @@ -459,6 +465,26 @@ public JobInner withCaffeSettings(CaffeSettings caffeSettings) { return this; } + /** + * Get the caffe2Settings value. + * + * @return the caffe2Settings value + */ + public Caffe2Settings caffe2Settings() { + return this.caffe2Settings; + } + + /** + * Set the caffe2Settings value. + * + * @param caffe2Settings the caffe2Settings value to set + * @return the JobInner object itself. + */ + public JobInner withCaffe2Settings(Caffe2Settings caffe2Settings) { + this.caffe2Settings = caffe2Settings; + return this; + } + /** * Get the chainerSettings value. * @@ -540,7 +566,7 @@ public JobInner withHorovodSettings(HorovodSettings horovodSettings) { } /** - * Get the jobPreparation value. + * Get the specified actions will run on all the nodes that are part of the job. * * @return the jobPreparation value */ @@ -549,7 +575,7 @@ public JobPreparation jobPreparation() { } /** - * Set the jobPreparation value. + * Set the specified actions will run on all the nodes that are part of the job. * * @param jobPreparation the jobPreparation value to set * @return the JobInner object itself. @@ -560,7 +586,16 @@ public JobInner withJobPreparation(JobPreparation jobPreparation) { } /** - * Get the stdOutErrPathPrefix value. + * Get a segment of job's output directories path created by Batch AI. Batch AI creates job's output directories under an unique path to avoid conflicts between jobs. This value contains a path segment generated by Batch AI to make the path unique and can be used to find the output directory on the node or mounted filesystem. + * + * @return the jobOutputDirectoryPathSegment value + */ + public String jobOutputDirectoryPathSegment() { + return this.jobOutputDirectoryPathSegment; + } + + /** + * Get the path where the Batch AI service stores stdout, stderror and execution log of the job. * * @return the stdOutErrPathPrefix value */ @@ -569,7 +604,7 @@ public String stdOutErrPathPrefix() { } /** - * Set the stdOutErrPathPrefix value. + * Set the path where the Batch AI service stores stdout, stderror and execution log of the job. * * @param stdOutErrPathPrefix the stdOutErrPathPrefix value to set * @return the JobInner object itself. @@ -580,7 +615,7 @@ public JobInner withStdOutErrPathPrefix(String stdOutErrPathPrefix) { } /** - * Get the inputDirectories value. + * Get a list of input directories for the job. * * @return the inputDirectories value */ @@ -589,7 +624,7 @@ public List inputDirectories() { } /** - * Set the inputDirectories value. + * Set a list of input directories for the job. * * @param inputDirectories the inputDirectories value to set * @return the JobInner object itself. @@ -600,7 +635,7 @@ public JobInner withInputDirectories(List inputDirectories) { } /** - * Get the outputDirectories value. + * Get a list of output directories for the job. * * @return the outputDirectories value */ @@ -609,7 +644,7 @@ public List outputDirectories() { } /** - * Set the outputDirectories value. + * Set a list of output directories for the job. * * @param outputDirectories the outputDirectories value to set * @return the JobInner object itself. @@ -620,7 +655,7 @@ public JobInner withOutputDirectories(List outputDirectories) { } /** - * Get the environmentVariables value. + * Get a collection of user defined environment variables to be setup for the job. * * @return the environmentVariables value */ @@ -629,7 +664,7 @@ public List environmentVariables() { } /** - * Set the environmentVariables value. + * Set a collection of user defined environment variables to be setup for the job. * * @param environmentVariables the environmentVariables value to set * @return the JobInner object itself. @@ -640,7 +675,7 @@ public JobInner withEnvironmentVariables(List environmentVa } /** - * Get the secrets value. + * Get a collection of user defined environment variables with secret values to be setup for the job. Server will never report values of these variables back. * * @return the secrets value */ @@ -649,7 +684,7 @@ public List secrets() { } /** - * Set the secrets value. + * Set a collection of user defined environment variables with secret values to be setup for the job. Server will never report values of these variables back. * * @param secrets the secrets value to set * @return the JobInner object itself. @@ -660,7 +695,7 @@ public JobInner withSecrets(List secrets) { } /** - * Get the constraints value. + * Get constraints associated with the Job. * * @return the constraints value */ @@ -669,7 +704,7 @@ public JobPropertiesConstraints constraints() { } /** - * Set the constraints value. + * Set constraints associated with the Job. * * @param constraints the constraints value to set * @return the JobInner object itself. @@ -680,7 +715,7 @@ public JobInner withConstraints(JobPropertiesConstraints constraints) { } /** - * Get the creationTime value. + * Get the creation time of the job. * * @return the creationTime value */ @@ -689,7 +724,7 @@ public DateTime creationTime() { } /** - * Get the provisioningState value. + * Get the provisioned state of the Batch AI job. Possible values include: 'creating', 'succeeded', 'failed', 'deleting'. * * @return the provisioningState value */ @@ -698,7 +733,7 @@ public ProvisioningState provisioningState() { } /** - * Get the provisioningStateTransitionTime value. + * Get the time at which the job entered its current provisioning state. * * @return the provisioningStateTransitionTime value */ @@ -707,7 +742,7 @@ public DateTime provisioningStateTransitionTime() { } /** - * Get the executionState value. + * Get the current state of the job. Possible values are: queued - The job is queued and able to run. A job enters this state when it is created, or when it is awaiting a retry after a failed run. running - The job is running on a compute cluster. This includes job-level preparation such as downloading resource files or set up container specified on the job - it does not necessarily mean that the job command line has started executing. terminating - The job is terminated by the user, the terminate operation is in progress. succeeded - The job has completed running succesfully and exited with exit code 0. failed - The job has finished unsuccessfully (failed with a non-zero exit code) and has exhausted its retry limit. A job is also marked as failed if an error occurred launching the job. Possible values include: 'queued', 'running', 'terminating', 'succeeded', 'failed'. * * @return the executionState value */ @@ -716,7 +751,7 @@ public ExecutionState executionState() { } /** - * Get the executionStateTransitionTime value. + * Get the time at which the job entered its current execution state. * * @return the executionStateTransitionTime value */ @@ -725,7 +760,7 @@ public DateTime executionStateTransitionTime() { } /** - * Get the executionInfo value. + * Get information about the execution of a job. * * @return the executionInfo value */ @@ -734,7 +769,7 @@ public JobPropertiesExecutionInfo executionInfo() { } /** - * Set the executionInfo value. + * Set information about the execution of a job. * * @param executionInfo the executionInfo value to set * @return the JobInner object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/JobsImpl.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/JobsImpl.java index 9d5de0d78f29..598a0be5fb7f 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/JobsImpl.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/JobsImpl.java @@ -45,78 +45,40 @@ private JobImpl wrapModel(String name) { return new JobImpl(name, this.manager()); } - private Observable> listOutputFilesNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - JobsInner client = this.inner(); - return client.listOutputFilesNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listOutputFilesNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listOutputFilesAsync(final String resourceGroupName, final String workspaceName, final String experimentName, final String jobName, final JobsListOutputFilesOptions jobsListOutputFilesOptions) { JobsInner client = this.inner(); return client.listOutputFilesAsync(resourceGroupName, workspaceName, experimentName, jobName, jobsListOutputFilesOptions) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listOutputFilesNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public File call(FileInner inner) { return new FileImpl(inner, manager()); } - }); - } - - private Observable> listRemoteLoginInformationNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - JobsInner client = this.inner(); - return client.listRemoteLoginInformationNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listRemoteLoginInformationNextInnerPageAsync(page.nextPageLink())); - } }); } + @Override public Observable listRemoteLoginInformationAsync(final String resourceGroupName, final String workspaceName, final String experimentName, final String jobName) { JobsInner client = this.inner(); return client.listRemoteLoginInformationAsync(resourceGroupName, workspaceName, experimentName, jobName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listRemoteLoginInformationNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public RemoteLoginInformation call(RemoteLoginInformationInner inner) { return new RemoteLoginInformationImpl(inner, manager()); } - }); + }); } @Override @@ -125,41 +87,22 @@ public Completable terminateAsync(String resourceGroupName, String workspaceName return client.terminateAsync(resourceGroupName, workspaceName, experimentName, jobName).toCompletable(); } - private Observable> listByExperimentNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - JobsInner client = this.inner(); - return client.listByExperimentNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listByExperimentNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listByExperimentAsync(final String resourceGroupName, final String workspaceName, final String experimentName) { JobsInner client = this.inner(); return client.listByExperimentAsync(resourceGroupName, workspaceName, experimentName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listByExperimentNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Job call(JobInner inner) { return wrapModel(inner); } - }); + }); } @Override diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/OperationInner.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/OperationInner.java index 99098d1b092e..d48ade87aaca 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/OperationInner.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/OperationInner.java @@ -42,7 +42,7 @@ public class OperationInner { private Object properties; /** - * Get the name value. + * Get this is of the format {provider}/{resource}/{operation}. * * @return the name value */ @@ -51,7 +51,7 @@ public String name() { } /** - * Get the display value. + * Get the object that describes the operation. * * @return the display value */ @@ -60,7 +60,7 @@ public OperationDisplay display() { } /** - * Set the display value. + * Set the object that describes the operation. * * @param display the display value to set * @return the OperationInner object itself. diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/OperationsImpl.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/OperationsImpl.java index 8f85fd3b2f18..b36381a9959f 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/OperationsImpl.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/OperationsImpl.java @@ -28,41 +28,22 @@ public BatchAIManager manager() { return this.manager; } - private Observable> listNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - OperationsInner client = this.inner(); - return client.listNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listAsync() { OperationsInner client = this.inner(); return client.listAsync() - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Operation call(OperationInner inner) { return new OperationImpl(inner, manager()); } - }); + }); } } diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/RemoteLoginInformationInner.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/RemoteLoginInformationInner.java index 281f7ec9469d..ba54cea1ed08 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/RemoteLoginInformationInner.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/RemoteLoginInformationInner.java @@ -11,29 +11,32 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Contains remote login details to SSH/RDP to a compute node in cluster. + * Login details to SSH to a compute node in cluster. */ public class RemoteLoginInformationInner { /** - * Id of the compute node. + * Node ID. + * ID of the compute node. */ @JsonProperty(value = "nodeId", access = JsonProperty.Access.WRITE_ONLY) private String nodeId; /** - * ip address. + * IP address. + * Public IP address of the compute node. */ @JsonProperty(value = "ipAddress", access = JsonProperty.Access.WRITE_ONLY) private String ipAddress; /** - * port number. + * Port. + * SSH port number of the node. */ @JsonProperty(value = "port", access = JsonProperty.Access.WRITE_ONLY) private Double port; /** - * Get the nodeId value. + * Get iD of the compute node. * * @return the nodeId value */ @@ -42,7 +45,7 @@ public String nodeId() { } /** - * Get the ipAddress value. + * Get public IP address of the compute node. * * @return the ipAddress value */ @@ -51,7 +54,7 @@ public String ipAddress() { } /** - * Get the port value. + * Get sSH port number of the node. * * @return the port value */ diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/UsageInner.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/UsageInner.java index f51bb4ec9e83..98a2e0967f19 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/UsageInner.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/UsageInner.java @@ -42,7 +42,7 @@ public class UsageInner { private UsageName name; /** - * Get the unit value. + * Get an enum describing the unit of usage measurement. Possible values include: 'Count'. * * @return the unit value */ @@ -51,7 +51,7 @@ public UsageUnit unit() { } /** - * Get the currentValue value. + * Get the current usage of the resource. * * @return the currentValue value */ @@ -60,7 +60,7 @@ public Integer currentValue() { } /** - * Get the limit value. + * Get the maximum permitted usage of the resource. * * @return the limit value */ @@ -69,7 +69,7 @@ public Long limit() { } /** - * Get the name value. + * Get the name of the type of usage. * * @return the name value */ diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/UsagesImpl.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/UsagesImpl.java index 201a09370cb3..37349f939541 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/UsagesImpl.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/UsagesImpl.java @@ -32,41 +32,22 @@ private UsageImpl wrapModel(UsageInner inner) { return new UsageImpl(inner, manager()); } - private Observable> listNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - UsagesInner client = this.inner(); - return client.listNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listAsync(final String location) { UsagesInner client = this.inner(); return client.listAsync(location) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Usage call(UsageInner inner) { return wrapModel(inner); } - }); + }); } } diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/WorkspaceInner.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/WorkspaceInner.java index f1faf54bb7d0..ffc7eddaf277 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/WorkspaceInner.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/WorkspaceInner.java @@ -16,33 +16,35 @@ import com.microsoft.azure.Resource; /** - * Describes Batch AI Workspace. + * Batch AI Workspace information. */ @JsonFlatten @SkipParentValidation public class WorkspaceInner extends Resource { /** + * Creation time. * Time when the Workspace was created. */ @JsonProperty(value = "properties.creationTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime creationTime; /** - * The provisioned state of the workspace. Possible values include: + * Provisioning state. + * The provisioned state of the Workspace. Possible values include: * 'creating', 'succeeded', 'failed', 'deleting'. */ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState; /** - * The time at which the workspace entered its current provisioning state. + * Provisioning state transition time. * The time at which the workspace entered its current provisioning state. */ @JsonProperty(value = "properties.provisioningStateTransitionTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime provisioningStateTransitionTime; /** - * Get the creationTime value. + * Get time when the Workspace was created. * * @return the creationTime value */ @@ -51,7 +53,7 @@ public DateTime creationTime() { } /** - * Get the provisioningState value. + * Get the provisioned state of the Workspace. Possible values include: 'creating', 'succeeded', 'failed', 'deleting'. * * @return the provisioningState value */ @@ -60,7 +62,7 @@ public ProvisioningState provisioningState() { } /** - * Get the provisioningStateTransitionTime value. + * Get the time at which the workspace entered its current provisioning state. * * @return the provisioningStateTransitionTime value */ diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/WorkspacesImpl.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/WorkspacesImpl.java index 1aafdf50656d..5b394b78f5ea 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/WorkspacesImpl.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/WorkspacesImpl.java @@ -78,41 +78,22 @@ public PagedList listByResourceGroup(String resourceGroupName) { return this.wrapList(client.listByResourceGroup(resourceGroupName)); } - private Observable> listByResourceGroupNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - WorkspacesInner client = this.inner(); - return client.listByResourceGroupNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listByResourceGroupNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listByResourceGroupAsync(String resourceGroupName) { WorkspacesInner client = this.inner(); return client.listByResourceGroupAsync(resourceGroupName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listByResourceGroupNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Workspace call(WorkspaceInner inner) { return wrapModel(inner); } - }); + }); } @Override @@ -121,41 +102,22 @@ public PagedList list() { return this.wrapList(client.list()); } - private Observable> listNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - WorkspacesInner client = this.inner(); - return client.listNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listAsync() { WorkspacesInner client = this.inner(); return client.listAsync() - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Workspace call(WorkspaceInner inner) { return wrapModel(inner); } - }); + }); } @Override diff --git a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/WorkspacesInner.java b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/WorkspacesInner.java index d9f869012eb0..3d30c916b1fa 100644 --- a/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/WorkspacesInner.java +++ b/batchai/resource-manager/v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/WorkspacesInner.java @@ -19,6 +19,7 @@ import com.microsoft.azure.management.batchai.v2018_05_01.WorkspaceCreateParameters; import com.microsoft.azure.management.batchai.v2018_05_01.WorkspacesListByResourceGroupOptions; import com.microsoft.azure.management.batchai.v2018_05_01.WorkspacesListOptions; +import com.microsoft.azure.management.batchai.v2018_05_01.WorkspaceUpdateParameters; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -27,12 +28,14 @@ import com.microsoft.rest.Validator; import java.io.IOException; import java.util.List; +import java.util.Map; import okhttp3.ResponseBody; import retrofit2.http.Body; import retrofit2.http.GET; import retrofit2.http.Header; import retrofit2.http.Headers; import retrofit2.http.HTTP; +import retrofit2.http.PATCH; import retrofit2.http.Path; import retrofit2.http.PUT; import retrofit2.http.Query; @@ -83,6 +86,10 @@ interface WorkspacesService { @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}") Observable> beginCreate(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("subscriptionId") String subscriptionId, @Body WorkspaceCreateParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.Workspaces update" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}") + Observable> update(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body WorkspaceUpdateParameters parameters, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.v2018_05_01.Workspaces delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -731,6 +738,181 @@ private ServiceResponse beginCreateDelegate(Response updateAsync(String resourceGroupName, String workspaceName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, workspaceName), serviceCallback); + } + + /** + * Updates properties of a Workspace. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the WorkspaceInner object + */ + public Observable updateAsync(String resourceGroupName, String workspaceName) { + return updateWithServiceResponseAsync(resourceGroupName, workspaceName).map(new Func1, WorkspaceInner>() { + @Override + public WorkspaceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates properties of a Workspace. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the WorkspaceInner object + */ + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String workspaceName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (workspaceName == null) { + throw new IllegalArgumentException("Parameter workspaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final Map tags = null; + WorkspaceUpdateParameters parameters = new WorkspaceUpdateParameters(); + parameters.withTags(null); + return service.update(resourceGroupName, workspaceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Updates properties of a Workspace. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. + * @param tags Tags. The user specified tags associated with the Workspace. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the WorkspaceInner object if successful. + */ + public WorkspaceInner update(String resourceGroupName, String workspaceName, Map tags) { + return updateWithServiceResponseAsync(resourceGroupName, workspaceName, tags).toBlocking().single().body(); + } + + /** + * Updates properties of a Workspace. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. + * @param tags Tags. The user specified tags associated with the Workspace. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateAsync(String resourceGroupName, String workspaceName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, workspaceName, tags), serviceCallback); + } + + /** + * Updates properties of a Workspace. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. + * @param tags Tags. The user specified tags associated with the Workspace. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the WorkspaceInner object + */ + public Observable updateAsync(String resourceGroupName, String workspaceName, Map tags) { + return updateWithServiceResponseAsync(resourceGroupName, workspaceName, tags).map(new Func1, WorkspaceInner>() { + @Override + public WorkspaceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates properties of a Workspace. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. + * @param tags Tags. The user specified tags associated with the Workspace. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the WorkspaceInner object + */ + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String workspaceName, Map tags) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (workspaceName == null) { + throw new IllegalArgumentException("Parameter workspaceName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(tags); + WorkspaceUpdateParameters parameters = new WorkspaceUpdateParameters(); + parameters.withTags(tags); + return service.update(resourceGroupName, workspaceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse updateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + /** * Deletes a Workspace. *