Class: Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ImportSourceCredentials

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-10-01/generated/azure_mgmt_container_registry/models/import_source_credentials.rb

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#passwordString

registry.

Returns:

  • (String)

    The password used to authenticate with the source



21
22
23
# File 'lib/2017-10-01/generated/azure_mgmt_container_registry/models/import_source_credentials.rb', line 21

def password
  @password
end

#usernameString

Returns The username to authenticate with the source registry.

Returns:

  • (String)

    The username to authenticate with the source registry.



17
18
19
# File 'lib/2017-10-01/generated/azure_mgmt_container_registry/models/import_source_credentials.rb', line 17

def username
  @username
end

Class Method Details

.mapperObject

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



28
29
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
# File 'lib/2017-10-01/generated/azure_mgmt_container_registry/models/import_source_credentials.rb', line 28

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