Class: Google::Apis::CesV1::LfA2aV1AuthorizationCodeOAuthFlow
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::LfA2aV1AuthorizationCodeOAuthFlow
- 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
-
#authorization_url ⇒ String
Required.
-
#pkce_required ⇒ Boolean
(also: #pkce_required?)
Indicates if PKCE (RFC 7636) is required for this flow.
-
#refresh_url ⇒ String
The URL to be used for obtaining refresh tokens.
-
#scopes ⇒ Hash<String,String>
Required.
-
#token_url ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LfA2aV1AuthorizationCodeOAuthFlow
constructor
A new instance of LfA2aV1AuthorizationCodeOAuthFlow.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LfA2aV1AuthorizationCodeOAuthFlow
Returns a new instance of LfA2aV1AuthorizationCodeOAuthFlow.
4857 4858 4859 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4857 def initialize(**args) update!(**args) end |
Instance Attribute Details
#authorization_url ⇒ String
Required. The authorization URL to be used for this flow.
Corresponds to the JSON property authorizationUrl
4833 4834 4835 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4833 def @authorization_url end |
#pkce_required ⇒ Boolean 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
4839 4840 4841 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4839 def pkce_required @pkce_required end |
#refresh_url ⇒ String
The URL to be used for obtaining refresh tokens.
Corresponds to the JSON property refreshUrl
4845 4846 4847 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4845 def refresh_url @refresh_url end |
#scopes ⇒ Hash<String,String>
Required. The available scopes for the OAuth2 security scheme.
Corresponds to the JSON property scopes
4850 4851 4852 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4850 def scopes @scopes end |
#token_url ⇒ String
Required. The token URL to be used for this flow.
Corresponds to the JSON property tokenUrl
4855 4856 4857 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4855 def token_url @token_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4862 4863 4864 4865 4866 4867 4868 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4862 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 |