class Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::PrivateRegistryCredentials

Credentials to access a container image in a private repository.

Attributes

password[RW]

@return [String] Password to login. One of password or passwordSecretReference must be specified.

password_secret_reference[RW]

@return [KeyVaultSecretReference] Specifies the location of the password, which is a Key Vault Secret. Users can store their secrets in Azure KeyVault and pass it to the Batch AI Service to integrate with KeyVault. One of password or passwordSecretReference must be specified.

username[RW]

@return [String] User name to login.

Public Class Methods

mapper() click to toggle source

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

# File lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/private_registry_credentials.rb, line 33
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PrivateRegistryCredentials',
    type: {
      name: 'Composite',
      class_name: 'PrivateRegistryCredentials',
      model_properties: {
        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'
          }
        },
        password_secret_reference: {
          client_side_validation: true,
          required: false,
          serialized_name: 'passwordSecretReference',
          type: {
            name: 'Composite',
            class_name: 'KeyVaultSecretReference'
          }
        }
      }
    }
  }
end