Class: Google::Apis::CesV1::LfA2aV1AuthorizationCodeOAuthFlow

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 Authorization Code flow.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LfA2aV1AuthorizationCodeOAuthFlow

Returns a new instance of LfA2aV1AuthorizationCodeOAuthFlow.



4899
4900
4901
# File 'lib/google/apis/ces_v1/classes.rb', line 4899

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

Instance Attribute Details

#authorization_urlString

Required. The authorization URL to be used for this flow. Corresponds to the JSON property authorizationUrl

Returns:

  • (String)


4875
4876
4877
# File 'lib/google/apis/ces_v1/classes.rb', line 4875

def authorization_url
  @authorization_url
end

#pkce_requiredBoolean Also known as: pkce_required?

Indicates if PKCE (RFC 7636) is required for this flow. PKCE should always be used for public clients and is recommended for all clients. Corresponds to the JSON property pkceRequired

Returns:

  • (Boolean)


4881
4882
4883
# File 'lib/google/apis/ces_v1/classes.rb', line 4881

def pkce_required
  @pkce_required
end

#refresh_urlString

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

Returns:

  • (String)


4887
4888
4889
# File 'lib/google/apis/ces_v1/classes.rb', line 4887

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


4892
4893
4894
# File 'lib/google/apis/ces_v1/classes.rb', line 4892

def scopes
  @scopes
end

#token_urlString

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

Returns:

  • (String)


4897
4898
4899
# File 'lib/google/apis/ces_v1/classes.rb', line 4897

def token_url
  @token_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4904
4905
4906
4907
4908
4909
4910
# File 'lib/google/apis/ces_v1/classes.rb', line 4904

def update!(**args)
  @authorization_url = args[:authorization_url] if args.key?(:authorization_url)
  @pkce_required = args[:pkce_required] if args.key?(:pkce_required)
  @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