Class: Google::Apis::DiscoveryV1::RestDescription::Auth::Oauth2
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryV1::RestDescription::Auth::Oauth2
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/discovery_v1/classes.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
-
#scopes ⇒ Hash<String,Google::Apis::DiscoveryV1::RestDescription::Auth::Oauth2::Scope>
Available OAuth 2.0 scopes.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Oauth2
constructor
A new instance of Oauth2.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#scopes ⇒ Hash<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 @scopes 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 |