Class: Azure::ContainerRegistry::Mgmt::V2019_04_01::Models::AuthInfo

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

Overview

The authorization properties for accessing the source code repository.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#expires_inInteger

Returns Time in seconds that the token remains valid.

Returns:

  • (Integer)

    Time in seconds that the token remains valid



30
31
32
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/auth_info.rb', line 30

def expires_in
  @expires_in
end

#refresh_tokenString

Returns The refresh token used to refresh the access token.

Returns:

  • (String)

    The refresh token used to refresh the access token.



24
25
26
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/auth_info.rb', line 24

def refresh_token
  @refresh_token
end

#scopeString

Returns The scope of the access token.

Returns:

  • (String)

    The scope of the access token.



27
28
29
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/auth_info.rb', line 27

def scope
  @scope
end

#tokenString

provider.

Returns:

  • (String)

    The access token used to access the source control



21
22
23
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/auth_info.rb', line 21

def token
  @token
end

#token_typeTokenType

‘PAT’, ‘OAuth’

Returns:

  • (TokenType)

    The type of Auth token. Possible values include:



17
18
19
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/auth_info.rb', line 17

def token_type
  @token_type
end

Class Method Details

.mapperObject

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



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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/auth_info.rb', line 37

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AuthInfo',
    type: {
      name: 'Composite',
      class_name: 'AuthInfo',
      model_properties: {
        token_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'tokenType',
          type: {
            name: 'String'
          }
        },
        token: {
          client_side_validation: true,
          required: true,
          serialized_name: 'token',
          type: {
            name: 'String'
          }
        },
        refresh_token: {
          client_side_validation: true,
          required: false,
          serialized_name: 'refreshToken',
          type: {
            name: 'String'
          }
        },
        scope: {
          client_side_validation: true,
          required: false,
          serialized_name: 'scope',
          type: {
            name: 'String'
          }
        },
        expires_in: {
          client_side_validation: true,
          required: false,
          serialized_name: 'expiresIn',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end