Class: Azure::BatchAI::Mgmt::V2018_05_01::Models::PrivateRegistryCredentials
- Inherits:
-
Object
- Object
- Azure::BatchAI::Mgmt::V2018_05_01::Models::PrivateRegistryCredentials
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-05-01/generated/azure_mgmt_batchai/models/private_registry_credentials.rb
Overview
Credentials to access a container image in a private repository.
Instance Attribute Summary collapse
-
#password ⇒ String
repository.
-
#password_secret_reference ⇒ KeyVaultSecretReference
Secret storing the password.
-
#username ⇒ String
User name.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for PrivateRegistryCredentials class as Ruby Hash.
Instance Attribute Details
#password ⇒ String
repository. One of password or passwordSecretReference must be specified.
21 22 23 |
# File 'lib/2018-05-01/generated/azure_mgmt_batchai/models/private_registry_credentials.rb', line 21 def password @password end |
#password_secret_reference ⇒ KeyVaultSecretReference
Secret storing the password. 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.
27 28 29 |
# File 'lib/2018-05-01/generated/azure_mgmt_batchai/models/private_registry_credentials.rb', line 27 def password_secret_reference @password_secret_reference end |
#username ⇒ String
Returns User name. User name to login to the repository.
16 17 18 |
# File 'lib/2018-05-01/generated/azure_mgmt_batchai/models/private_registry_credentials.rb', line 16 def username @username end |
Class Method Details
.mapper ⇒ Object
Mapper for PrivateRegistryCredentials class as Ruby Hash. This will be used for serialization/deserialization.
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 68 69 70 71 |
# File 'lib/2018-05-01/generated/azure_mgmt_batchai/models/private_registry_credentials.rb', line 34 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 |