Class: Google::Apis::CesV1::LfA2aV1PasswordOAuthFlow

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

Deprecated: Use Authorization Code + PKCE or Device Code.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LfA2aV1PasswordOAuthFlow

Returns a new instance of LfA2aV1PasswordOAuthFlow.



5264
5265
5266
# File 'lib/google/apis/ces_v1/classes.rb', line 5264

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

Instance Attribute Details

#refresh_urlString

The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. Corresponds to the JSON property refreshUrl

Returns:

  • (String)


5250
5251
5252
# File 'lib/google/apis/ces_v1/classes.rb', line 5250

def refresh_url
  @refresh_url
end

#scopesHash<String,String>

The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. Corresponds to the JSON property scopes

Returns:

  • (Hash<String,String>)


5256
5257
5258
# File 'lib/google/apis/ces_v1/classes.rb', line 5256

def scopes
  @scopes
end

#token_urlString

The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. Corresponds to the JSON property tokenUrl

Returns:

  • (String)


5262
5263
5264
# File 'lib/google/apis/ces_v1/classes.rb', line 5262

def token_url
  @token_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5269
5270
5271
5272
5273
# File 'lib/google/apis/ces_v1/classes.rb', line 5269

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