Class: Google::Apis::DiscoveryV1::RestDescription::Auth::Oauth2

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

Overview

OAuth 2.0 authentication information.

Defined Under Namespace

Classes: Scope

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) ⇒ Oauth2

Returns a new instance of Oauth2



611
612
613
# File 'generated/google/apis/discovery_v1/classes.rb', line 611

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

Instance Attribute Details

#scopesHash<String,Google::Apis::DiscoveryV1::RestDescription::Auth::Oauth2::Scope>

Available OAuth 2.0 scopes. Corresponds to the JSON property scopes



609
610
611
# File 'generated/google/apis/discovery_v1/classes.rb', line 609

def scopes
  Hash[(@scopes || {}).sort]
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



616
617
618
# File 'generated/google/apis/discovery_v1/classes.rb', line 616

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