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.
5141 5142 5143 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5141 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
5117 5118 5119 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5117 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
5122 5123 5124 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5122 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
5129 5130 5131 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5129 def device_code @device_code end |
#implicit ⇒ Google::Apis::CesV1::LfA2aV1ImplicitOAuthFlow
Deprecated: Use Authorization Code + PKCE instead.
Corresponds to the JSON property implicit
5134 5135 5136 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5134 def implicit @implicit end |
#password ⇒ Google::Apis::CesV1::LfA2aV1PasswordOAuthFlow
Deprecated: Use Authorization Code + PKCE or Device Code.
Corresponds to the JSON property password
5139 5140 5141 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5139 def password @password end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5146 5147 5148 5149 5150 5151 5152 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5146 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 |