Class: Azure::Batch::Mgmt::V2018_12_01::Models::ContainerConfiguration
- Inherits:
-
Object
- Object
- Azure::Batch::Mgmt::V2018_12_01::Models::ContainerConfiguration
- 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
-
#container_image_names ⇒ Array<String>
is the full image reference, as would be specified to “docker pull”.
-
#container_registries ⇒ Array<ContainerRegistry>
which containers can be pulled.
-
#type ⇒ String
‘DockerCompatible’ .
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ContainerConfiguration class as Ruby Hash.
Instance Attribute Details
#container_image_names ⇒ Array<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.
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_registries ⇒ Array<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.
30 31 32 |
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/container_configuration.rb', line 30 def container_registries @container_registries end |
#type ⇒ String
‘DockerCompatible’ .
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
.mapper ⇒ Object
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 |