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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discovery_v1/classes.rb,
lib/google/apis/discovery_v1/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ Oauth2

Returns a new instance of Oauth2.



632
633
634
# File 'lib/google/apis/discovery_v1/classes.rb', line 632

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



630
631
632
# File 'lib/google/apis/discovery_v1/classes.rb', line 630

def scopes
  @scopes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



637
638
639
# File 'lib/google/apis/discovery_v1/classes.rb', line 637

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