Class: Azure::BatchAI::Mgmt::V2018_03_01::Models::ImageSourceRegistry

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-03-01/generated/azure_mgmt_batchai/models/image_source_registry.rb

Overview

Details of the container image such as name, URL and credentials.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#credentialsPrivateRegistryCredentials

Docker repository.

Returns:



23
24
25
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/image_source_registry.rb', line 23

def credentials
  @credentials
end

#imageString

Returns The name of the image in image repository.

Returns:

  • (String)

    The name of the image in image repository.



19
20
21
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/image_source_registry.rb', line 19

def image
  @image
end

#server_urlString

Returns URL for image repository.

Returns:

  • (String)

    URL for image repository.



16
17
18
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/image_source_registry.rb', line 16

def server_url
  @server_url
end

Class Method Details

.mapperObject

Mapper for ImageSourceRegistry class as Ruby Hash. This will be used for serialization/deserialization.



30
31
32
33
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
65
66
67
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/image_source_registry.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ImageSourceRegistry',
    type: {
      name: 'Composite',
      class_name: 'ImageSourceRegistry',
      model_properties: {
        server_url: {
          client_side_validation: true,
          required: false,
          serialized_name: 'serverUrl',
          type: {
            name: 'String'
          }
        },
        image: {
          client_side_validation: true,
          required: true,
          serialized_name: 'image',
          type: {
            name: 'String'
          }
        },
        credentials: {
          client_side_validation: true,
          required: false,
          serialized_name: 'credentials',
          type: {
            name: 'Composite',
            class_name: 'PrivateRegistryCredentials'
          }
        }
      }
    }
  }
end