Class: Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::NodeSetup
- Inherits:
-
Object
- Object
- Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::NodeSetup
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/node_setup.rb
Overview
Use this to prepare the VM. NOTE: The volumes specified in mountVolumes are mounted first and then the setupTask is run. Therefore the setup task can use local mountPaths in its execution.
Instance Attribute Summary collapse
-
#mount_volumes ⇒ MountVolumes
jobs.
-
#setup_task ⇒ SetupTask
customize the compute nodes of the cluster.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for NodeSetup class as Ruby Hash.
Instance Attribute Details
#mount_volumes ⇒ MountVolumes
jobs.
27 28 29 |
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/node_setup.rb', line 27 def mount_volumes @mount_volumes end |
#setup_task ⇒ SetupTask
customize the compute nodes of the cluster. The NodeSetup task runs every time a VM is rebooted. For that reason the task code needs to be idempotent. Generally it is used to either download static data that is required for all jobs that run on the cluster VMs or to download/install software.
23 24 25 |
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/node_setup.rb', line 23 def setup_task @setup_task end |
Class Method Details
.mapper ⇒ Object
Mapper for NodeSetup class as Ruby Hash. This will be used for serialization/deserialization.
34 35 36 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 |
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/node_setup.rb', line 34 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'NodeSetup', type: { name: 'Composite', class_name: 'NodeSetup', model_properties: { setup_task: { client_side_validation: true, required: false, serialized_name: 'setupTask', type: { name: 'Composite', class_name: 'SetupTask' } }, mount_volumes: { client_side_validation: true, required: false, serialized_name: 'mountVolumes', type: { name: 'Composite', class_name: 'MountVolumes' } } } } } end |