Class: Azure::Batch::Mgmt::V2018_12_01::Models::ContainerConfiguration

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

Overview

The configuration for container-enabled pools.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#container_image_namesArray<String>

is the full image reference, as would be specified to “docker pull”. An image will be sourced from the default Docker registry unless the image is fully qualified with an alternative registry.

Returns:

  • (Array<String>)

    The collection of container image names. This



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

def container_image_names
  @container_image_names
end

#container_registriesArray<ContainerRegistry>

which containers can be pulled. If any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here.

Returns:



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

def container_registries
  @container_registries
end

#typeString

‘DockerCompatible’ .

Returns:

  • (String)

    The container technology to be used. . Default value:



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

def type
  @type
end

Class Method Details

.mapperObject

Mapper for ContainerConfiguration 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/container_configuration.rb', line 37

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ContainerConfiguration',
    type: {
      name: 'Composite',
      class_name: 'ContainerConfiguration',
      model_properties: {
        type: {
          client_side_validation: true,
          required: true,
          is_constant: true,
          serialized_name: 'type',
          default_value: 'DockerCompatible',
          type: {
            name: 'String'
          }
        },
        container_image_names: {
          client_side_validation: true,
          required: false,
          serialized_name: 'containerImageNames',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        container_registries: {
          client_side_validation: true,
          required: false,
          serialized_name: 'containerRegistries',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ContainerRegistryElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ContainerRegistry'
                }
            }
          }
        }
      }
    }
  }
end