Class: Google::Apis::MirrorV1::AuthToken

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/mirror_v1/classes.rb,
generated/google/apis/mirror_v1/representations.rb,
generated/google/apis/mirror_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AuthToken

Returns a new instance of AuthToken.


143
144
145
# File 'generated/google/apis/mirror_v1/classes.rb', line 143

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#auth_tokenString

Corresponds to the JSON property authToken

Returns:

  • (String)

136
137
138
# File 'generated/google/apis/mirror_v1/classes.rb', line 136

def auth_token
  @auth_token
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)

141
142
143
# File 'generated/google/apis/mirror_v1/classes.rb', line 141

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


148
149
150
151
# File 'generated/google/apis/mirror_v1/classes.rb', line 148

def update!(**args)
  @auth_token = args[:auth_token] if args.key?(:auth_token)
  @type = args[:type] if args.key?(:type)
end