Class: Google::Apis::ConnectorsV1::AuthorizationCodeLink
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV1::AuthorizationCodeLink
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/connectors_v1/classes.rb,
lib/google/apis/connectors_v1/representations.rb,
lib/google/apis/connectors_v1/representations.rb
Overview
This configuration captures the details required to render an authorization link for the OAuth Authorization Code Flow.
Instance Attribute Summary collapse
-
#client_id ⇒ String
Optional.
-
#client_secret ⇒ Google::Apis::ConnectorsV1::Secret
Secret provides a reference to entries in Secret Manager.
-
#enable_pkce ⇒ Boolean
(also: #enable_pkce?)
Optional.
-
#omit_query_params ⇒ Boolean
(also: #omit_query_params?)
Optional.
-
#scopes ⇒ Array<String>
Optional.
-
#uri ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AuthorizationCodeLink
constructor
A new instance of AuthorizationCodeLink.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AuthorizationCodeLink
Returns a new instance of AuthorizationCodeLink.
422 423 424 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 422 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_id ⇒ String
Optional. The client ID assigned to the Google Cloud Connectors OAuth app for
the connector data source.
Corresponds to the JSON property clientId
391 392 393 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 391 def client_id @client_id end |
#client_secret ⇒ Google::Apis::ConnectorsV1::Secret
Secret provides a reference to entries in Secret Manager.
Corresponds to the JSON property clientSecret
396 397 398 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 396 def client_secret @client_secret end |
#enable_pkce ⇒ Boolean Also known as: enable_pkce?
Optional. Whether to enable PKCE for the auth code flow.
Corresponds to the JSON property enablePkce
401 402 403 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 401 def enable_pkce @enable_pkce end |
#omit_query_params ⇒ Boolean Also known as: omit_query_params?
Optional. Omit query params from the redirect URI.
Corresponds to the JSON property omitQueryParams
407 408 409 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 407 def omit_query_params @omit_query_params end |
#scopes ⇒ Array<String>
Optional. The scopes for which the user will authorize Google Cloud Connectors
on the connector data source.
Corresponds to the JSON property scopes
414 415 416 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 414 def scopes @scopes end |
#uri ⇒ String
Optional. The base URI the user must click to trigger the authorization code
login flow.
Corresponds to the JSON property uri
420 421 422 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 420 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
427 428 429 430 431 432 433 434 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 427 def update!(**args) @client_id = args[:client_id] if args.key?(:client_id) @client_secret = args[:client_secret] if args.key?(:client_secret) @enable_pkce = args[:enable_pkce] if args.key?(:enable_pkce) @omit_query_params = args[:omit_query_params] if args.key?(:omit_query_params) @scopes = args[:scopes] if args.key?(:scopes) @uri = args[:uri] if args.key?(:uri) end |