Class: Azure::ContainerInstance::Mgmt::V2019_12_01::Models::ImageRegistryCredential

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-12-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb

Overview

Image registry credential.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#passwordString

Returns The password for the private registry.

Returns:

  • (String)

    The password for the private registry.



23
24
25
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb', line 23

def password
  @password
end

#serverString

such as “http” and “https”.

Returns:

  • (String)

    The Docker image registry server without a protocol



17
18
19
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb', line 17

def server
  @server
end

#usernameString

Returns The username for the private registry.

Returns:

  • (String)

    The username for the private registry.



20
21
22
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb', line 20

def username
  @username
end

Class Method Details

.mapperObject

Mapper for ImageRegistryCredential 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
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ImageRegistryCredential',
    type: {
      name: 'Composite',
      class_name: 'ImageRegistryCredential',
      model_properties: {
        server: {
          client_side_validation: true,
          required: true,
          serialized_name: 'server',
          type: {
            name: 'String'
          }
        },
        username: {
          client_side_validation: true,
          required: true,
          serialized_name: 'username',
          type: {
            name: 'String'
          }
        },
        password: {
          client_side_validation: true,
          required: false,
          serialized_name: 'password',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end