Class: Google::Apis::CesV1::LfA2aV1ClientCredentialsOAuthFlow

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/ces_v1/classes.rb,
lib/google/apis/ces_v1/representations.rb,
lib/google/apis/ces_v1/representations.rb

Overview

Defines configuration details for the OAuth 2.0 Client Credentials flow.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LfA2aV1ClientCredentialsOAuthFlow

Returns a new instance of LfA2aV1ClientCredentialsOAuthFlow.



4932
4933
4934
# File 'lib/google/apis/ces_v1/classes.rb', line 4932

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

Instance Attribute Details

#refresh_urlString

The URL to be used for obtaining refresh tokens. Corresponds to the JSON property refreshUrl

Returns:

  • (String)


4920
4921
4922
# File 'lib/google/apis/ces_v1/classes.rb', line 4920

def refresh_url
  @refresh_url
end

#scopesHash<String,String>

Required. The available scopes for the OAuth2 security scheme. Corresponds to the JSON property scopes

Returns:

  • (Hash<String,String>)


4925
4926
4927
# File 'lib/google/apis/ces_v1/classes.rb', line 4925

def scopes
  @scopes
end

#token_urlString

Required. The token URL to be used for this flow. Corresponds to the JSON property tokenUrl

Returns:

  • (String)


4930
4931
4932
# File 'lib/google/apis/ces_v1/classes.rb', line 4930

def token_url
  @token_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4937
4938
4939
4940
4941
# File 'lib/google/apis/ces_v1/classes.rb', line 4937

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