Class: Azure::ContainerRegistry::Mgmt::V2019_05_01_preview::Models::Token

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

Overview

An object that represents a token for a container registry.

Instance Attribute Summary collapse

Attributes inherited from ProxyResource

#id, #name, #system_data, #type

Class Method Summary collapse

Instance Attribute Details

#creation_dateDateTime

Returns The creation date of scope map.

Returns:

  • (DateTime)

    The creation date of scope map.



16
17
18
# File 'lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token.rb', line 16

def creation_date
  @creation_date
end

#credentialsTokenCredentialsProperties

for authenticating the token.

Returns:



29
30
31
# File 'lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token.rb', line 29

def credentials
  @credentials
end

#provisioning_stateProvisioningState

Possible values include: ‘Creating’, ‘Updating’, ‘Deleting’, ‘Succeeded’, ‘Failed’, ‘Canceled’

Returns:



21
22
23
# File 'lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token.rb', line 21

def provisioning_state
  @provisioning_state
end

#scope_map_idString

will be associated with.

Returns:

  • (String)

    The resource ID of the scope map to which the token



25
26
27
# File 'lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token.rb', line 25

def scope_map_id
  @scope_map_id
end

#statusTokenStatus

disabled. Possible values include: ‘enabled’, ‘disabled’

Returns:

  • (TokenStatus)

    The status of the token example enabled or



33
34
35
# File 'lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token.rb', line 33

def status
  @status
end

Class Method Details

.mapperObject

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



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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# File 'lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token.rb', line 40

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Token',
    type: {
      name: 'Composite',
      class_name: 'Token',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        system_data: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'systemData',
          type: {
            name: 'Composite',
            class_name: 'SystemData'
          }
        },
        creation_date: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.creationDate',
          type: {
            name: 'DateTime'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        scope_map_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.scopeMapId',
          type: {
            name: 'String'
          }
        },
        credentials: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.credentials',
          type: {
            name: 'Composite',
            class_name: 'TokenCredentialsProperties'
          }
        },
        status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.status',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end