Class: Google::Apis::CesV1::LfA2aV1OAuthFlows
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::LfA2aV1OAuthFlows
- 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 the configuration for the supported OAuth 2.0 flows.
Instance Attribute Summary collapse
-
#authorization_code ⇒ Google::Apis::CesV1::LfA2aV1AuthorizationCodeOAuthFlow
Defines configuration details for the OAuth 2.0 Authorization Code flow.
-
#client_credentials ⇒ Google::Apis::CesV1::LfA2aV1ClientCredentialsOAuthFlow
Defines configuration details for the OAuth 2.0 Client Credentials flow.
-
#device_code ⇒ Google::Apis::CesV1::LfA2aV1DeviceCodeOAuthFlow
Defines configuration details for the OAuth 2.0 Device Code flow (RFC 8628).
-
#implicit ⇒ Google::Apis::CesV1::LfA2aV1ImplicitOAuthFlow
Deprecated: Use Authorization Code + PKCE instead.
-
#password ⇒ Google::Apis::CesV1::LfA2aV1PasswordOAuthFlow
Deprecated: Use Authorization Code + PKCE or Device Code.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LfA2aV1OAuthFlows
constructor
A new instance of LfA2aV1OAuthFlows.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LfA2aV1OAuthFlows
Returns a new instance of LfA2aV1OAuthFlows.
5218 5219 5220 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5218 def initialize(**args) update!(**args) end |
Instance Attribute Details
#authorization_code ⇒ Google::Apis::CesV1::LfA2aV1AuthorizationCodeOAuthFlow
Defines configuration details for the OAuth 2.0 Authorization Code flow.
Corresponds to the JSON property authorizationCode
5194 5195 5196 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5194 def @authorization_code end |
#client_credentials ⇒ Google::Apis::CesV1::LfA2aV1ClientCredentialsOAuthFlow
Defines configuration details for the OAuth 2.0 Client Credentials flow.
Corresponds to the JSON property clientCredentials
5199 5200 5201 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5199 def client_credentials @client_credentials end |
#device_code ⇒ Google::Apis::CesV1::LfA2aV1DeviceCodeOAuthFlow
Defines configuration details for the OAuth 2.0 Device Code flow (RFC 8628).
This flow is designed for input-constrained devices such as IoT devices, and
CLI tools where the user authenticates on a separate device.
Corresponds to the JSON property deviceCode
5206 5207 5208 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5206 def device_code @device_code end |
#implicit ⇒ Google::Apis::CesV1::LfA2aV1ImplicitOAuthFlow
Deprecated: Use Authorization Code + PKCE instead.
Corresponds to the JSON property implicit
5211 5212 5213 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5211 def implicit @implicit end |
#password ⇒ Google::Apis::CesV1::LfA2aV1PasswordOAuthFlow
Deprecated: Use Authorization Code + PKCE or Device Code.
Corresponds to the JSON property password
5216 5217 5218 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5216 def password @password end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5223 5224 5225 5226 5227 5228 5229 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5223 def update!(**args) @authorization_code = args[:authorization_code] if args.key?(:authorization_code) @client_credentials = args[:client_credentials] if args.key?(:client_credentials) @device_code = args[:device_code] if args.key?(:device_code) @implicit = args[:implicit] if args.key?(:implicit) @password = args[:password] if args.key?(:password) end |