Class: Azure::Batch::Mgmt::V2018_12_01::Models::TaskContainerSettings
- Inherits:
-
Object
- Object
- Azure::Batch::Mgmt::V2018_12_01::Models::TaskContainerSettings
- 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
-
#container_run_options ⇒ String
These additional options are supplied as arguments to the “docker create” command, in addition to those controlled by the Batch Service.
-
#image_name ⇒ String
task will run.
-
#registry ⇒ ContainerRegistry
container image.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for TaskContainerSettings class as Ruby Hash.
Instance Attribute Details
#container_run_options ⇒ String
These additional options are supplied as arguments to the “docker create” command, in addition to those controlled by the Batch Service.
19 20 21 |
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/task_container_settings.rb', line 19 def @container_run_options end |
#image_name ⇒ String
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.
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 |
#registry ⇒ ContainerRegistry
container image. This setting can be omitted if was already provided at pool creation.
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
.mapper ⇒ Object
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 |