Class: Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::Credentials

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-09-01/generated/azure_mgmt_container_registry/models/credentials.rb

Overview

The parameters that describes a set of credentials that will be used when a run is invoked.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#custom_registriesHash{String => CustomRegistryCredentials}

credential parameters for accessing other custom registries. The key for the dictionary item will be the registry login server (myregistry.azurecr.io) and the value of the item will be the registry credentials for accessing the registry.

Returns:



26
27
28
# File 'lib/2018-09-01/generated/azure_mgmt_container_registry/models/credentials.rb', line 26

def custom_registries
  @custom_registries
end

#source_registrySourceRegistryCredentials

for accessing the source registry.

Returns:



18
19
20
# File 'lib/2018-09-01/generated/azure_mgmt_container_registry/models/credentials.rb', line 18

def source_registry
  @source_registry
end

Class Method Details

.mapperObject

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



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
67
68
69
70
71
# File 'lib/2018-09-01/generated/azure_mgmt_container_registry/models/credentials.rb', line 33

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Credentials',
    type: {
      name: 'Composite',
      class_name: 'Credentials',
      model_properties: {
        source_registry: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceRegistry',
          type: {
            name: 'Composite',
            class_name: 'SourceRegistryCredentials'
          }
        },
        custom_registries: {
          client_side_validation: true,
          required: false,
          serialized_name: 'customRegistries',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'CustomRegistryCredentialsElementType',
                type: {
                  name: 'Composite',
                  class_name: 'CustomRegistryCredentials'
                }
            }
          }
        }
      }
    }
  }
end