Class: Azure::ContainerRegistry::Mgmt::V2019_04_01::Models::AuthInfo
- Inherits:
-
Object
- Object
- Azure::ContainerRegistry::Mgmt::V2019_04_01::Models::AuthInfo
- 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
-
#expires_in ⇒ Integer
Time in seconds that the token remains valid.
-
#refresh_token ⇒ String
The refresh token used to refresh the access token.
-
#scope ⇒ String
The scope of the access token.
-
#token ⇒ String
provider.
-
#token_type ⇒ TokenType
‘PAT’, ‘OAuth’.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for AuthInfo class as Ruby Hash.
Instance Attribute Details
#expires_in ⇒ Integer
Returns 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_token ⇒ String
Returns 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 |
#scope ⇒ String
Returns 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 |
#token ⇒ String
provider.
21 22 23 |
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/auth_info.rb', line 21 def token @token end |
#token_type ⇒ TokenType
‘PAT’, ‘OAuth’
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
.mapper ⇒ Object
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 |