Class: Azure::ContainerRegistry::Mgmt::V2019_06_01_preview::Models::CustomRegistryCredentials

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/custom_registry_credentials.rb

Overview

Describes the credentials that will be used to access a custom registry during a run.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#identityString

credential. If a user-assigned identity this value is the Client ID. If a system-assigned identity, the value will be ‘system`. In the case of a system-assigned identity, the Client ID will be determined by the runner. This identity may be used to authenticate to key vault to retrieve credentials or it may be the only source of authentication used for accessing the registry.

Returns:

  • (String)

    Indicates the managed identity assigned to the custom



34
35
36
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/custom_registry_credentials.rb', line 34

def identity
  @identity
end

#passwordSecretObject

registry. The password is a secret object that allows multiple ways of providing the value for it.

Returns:

  • (SecretObject)

    The password for logging into the custom



23
24
25
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/custom_registry_credentials.rb', line 23

def password
  @password
end

#user_nameSecretObject

registry.

Returns:

  • (SecretObject)

    The username for logging into the custom



18
19
20
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/custom_registry_credentials.rb', line 18

def user_name
  @user_name
end

Class Method Details

.mapperObject

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



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
68
69
70
71
72
73
74
75
76
77
78
79
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/custom_registry_credentials.rb', line 41

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CustomRegistryCredentials',
    type: {
      name: 'Composite',
      class_name: 'CustomRegistryCredentials',
      model_properties: {
        user_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'userName',
          type: {
            name: 'Composite',
            class_name: 'SecretObject'
          }
        },
        password: {
          client_side_validation: true,
          required: false,
          serialized_name: 'password',
          type: {
            name: 'Composite',
            class_name: 'SecretObject'
          }
        },
        identity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'identity',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end