class Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::AuthInfo
The authorization properties for accessing the source code repository.
Attributes
expires_in[RW]
@return [Integer] Time in seconds that the token remains valid
refresh_token[RW]
@return [String] The refresh token used to refresh the access token.
scope[RW]
@return [String] The scope of the access token.
token[RW]
@return [String] The access token used to access the source control provider.
token_type[RW]
@return [TokenType] The type of Auth token. Possible values include: 'PAT', 'OAuth'
Public Class Methods
mapper()
click to toggle source
Mapper for AuthInfo
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2018-09-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