Class: Azure::Batch::Mgmt::V2017_09_01::Models::ImageReference
- Inherits:
-
Object
- Object
- Azure::Batch::Mgmt::V2017_09_01::Models::ImageReference
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-09-01/generated/azure_mgmt_batch/models/image_reference.rb
Overview
A reference to an Azure Virtual Machines Marketplace image or the Azure Image resource of a custom Virtual Machine. To get the list of all imageReferences verified by Azure Batch, see the ‘List supported node agent SKUs’ operation.
Instance Attribute Summary collapse
-
#id ⇒ String
image.
-
#offer ⇒ String
Marketplace image.
-
#publisher ⇒ String
Marketplace image.
-
#sku ⇒ String
image.
-
#version ⇒ String
image.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ImageReference class as Ruby Hash.
Instance Attribute Details
#id ⇒ String
image. Computes nodes of the pool will be created using this custom image. This is of the form /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Compute/images/imageName. This property is mutually exclusive with other properties. The virtual machine image must be in the same region and subscription as the Azure Batch account. For information about the firewall settings for Batch node agent to communicate with Batch service see docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration .
46 47 48 |
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/image_reference.rb', line 46 def id @id end |
#offer ⇒ String
Marketplace image. For example, UbuntuServer or WindowsServer.
25 26 27 |
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/image_reference.rb', line 25 def offer @offer end |
#publisher ⇒ String
Marketplace image. For example, Canonical or MicrosoftWindowsServer.
21 22 23 |
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/image_reference.rb', line 21 def publisher @publisher end |
#sku ⇒ String
image. For example, 14.04.0-LTS or 2012-R2-Datacenter.
29 30 31 |
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/image_reference.rb', line 29 def sku @sku end |
#version ⇒ String
image. A value of ‘latest’ can be specified to select the latest version of an image. If omitted, the default is ‘latest’.
34 35 36 |
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/image_reference.rb', line 34 def version @version end |
Class Method Details
.mapper ⇒ Object
Mapper for ImageReference class as Ruby Hash. This will be used for serialization/deserialization.
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 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/image_reference.rb', line 53 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ImageReference', type: { name: 'Composite', class_name: 'ImageReference', model_properties: { publisher: { client_side_validation: true, required: false, serialized_name: 'publisher', type: { name: 'String' } }, offer: { client_side_validation: true, required: false, serialized_name: 'offer', type: { name: 'String' } }, sku: { client_side_validation: true, required: false, serialized_name: 'sku', type: { name: 'String' } }, version: { client_side_validation: true, required: false, serialized_name: 'version', type: { name: 'String' } }, id: { client_side_validation: true, required: false, serialized_name: 'id', type: { name: 'String' } } } } } end |