Class: Azure::Batch::Mgmt::V2018_12_01::Models::TaskContainerSettings

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-12-01/generated/azure_mgmt_batch/models/task_container_settings.rb

Overview

The container settings for a task.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#container_run_optionsString

These additional options are supplied as arguments to the “docker create” command, in addition to those controlled by the Batch Service.

Returns:

  • (String)

    Additional options to the container create command.



19
20
21
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/task_container_settings.rb', line 19

def container_run_options
  @container_run_options
end

#image_nameString

task will run. This is the full image reference, as would be specified to “docker pull”. If no tag is provided as part of the image name, the tag “:latest” is used as a default.

Returns:

  • (String)

    The image to use to create the container in which the



25
26
27
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/task_container_settings.rb', line 25

def image_name
  @image_name
end

#registryContainerRegistry

container image. This setting can be omitted if was already provided at pool creation.

Returns:



30
31
32
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/task_container_settings.rb', line 30

def registry
  @registry
end

Class Method Details

.mapperObject

Mapper for TaskContainerSettings class as Ruby Hash. This will be used for serialization/deserialization.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/task_container_settings.rb', line 37

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'TaskContainerSettings',
    type: {
      name: 'Composite',
      class_name: 'TaskContainerSettings',
      model_properties: {
        container_run_options: {
          client_side_validation: true,
          required: false,
          serialized_name: 'containerRunOptions',
          type: {
            name: 'String'
          }
        },
        image_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'imageName',
          type: {
            name: 'String'
          }
        },
        registry: {
          client_side_validation: true,
          required: false,
          serialized_name: 'registry',
          type: {
            name: 'Composite',
            class_name: 'ContainerRegistry'
          }
        }
      }
    }
  }
end