class Azure::BatchAI::Mgmt::V2018_05_01::Models::SetupTask
Specifies a setup task which can be used to customize the compute nodes of the cluster.
Attributes
@return [String] 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.
@return [Array<EnvironmentVariable>] Environment variables. A collection of user defined environment variables to be set for setup task.
@return [Array<EnvironmentVariableWithSecretValue>] 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.
@return [String] 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.
@return [String] Output path suffix. 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.
Private Class Methods
Mapper for SetupTask
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2018-05-01/generated/azure_mgmt_batchai/models/setup_task.rb, line 50 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'SetupTask', type: { name: 'Composite', class_name: 'SetupTask', model_properties: { command_line: { client_side_validation: true, required: true, serialized_name: 'commandLine', type: { name: 'String' } }, environment_variables: { client_side_validation: true, required: false, serialized_name: 'environmentVariables', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'EnvironmentVariableElementType', type: { name: 'Composite', class_name: 'EnvironmentVariable' } } } }, secrets: { client_side_validation: true, required: false, serialized_name: 'secrets', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'EnvironmentVariableWithSecretValueElementType', type: { name: 'Composite', class_name: 'EnvironmentVariableWithSecretValue' } } } }, std_out_err_path_prefix: { client_side_validation: true, required: true, serialized_name: 'stdOutErrPathPrefix', type: { name: 'String' } }, std_out_err_path_suffix: { client_side_validation: true, required: false, read_only: true, serialized_name: 'stdOutErrPathSuffix', type: { name: 'String' } } } } } end