Class: Google::Apis::CesV1::LfA2aV1OAuthFlows

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 the configuration for the supported OAuth 2.0 flows.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_codeGoogle::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
  @authorization_code
end

#client_credentialsGoogle::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_codeGoogle::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

#implicitGoogle::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

#passwordGoogle::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