class Azure::ContainerRegistry::Mgmt::V2018_02_01_preview::Models::SourceControlAuthInfo
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 SourceControlAuthInfo
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_control_auth_info.rb, line 37 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'SourceControlAuthInfo', type: { name: 'Composite', class_name: 'SourceControlAuthInfo', model_properties: { token_type: { client_side_validation: true, required: false, 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