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
The client ID assigned to the GCP Connectors OAuth app for the connector data source.
-
#enable_pkce ⇒ Boolean
(also: #enable_pkce?)
Whether to enable PKCE for the auth code flow.
-
#scopes ⇒ Array<String>
The scopes for which the user will authorize GCP Connectors on the connector data source.
-
#uri ⇒ String
The base URI the user must click to trigger the authorization code login flow.
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.
213 214 215 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 213 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_id ⇒ String
The client ID assigned to the GCP Connectors OAuth app for the connector data
source.
Corresponds to the JSON property clientId
194 195 196 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 194 def client_id @client_id end |
#enable_pkce ⇒ Boolean Also known as: enable_pkce?
Whether to enable PKCE for the auth code flow.
Corresponds to the JSON property enablePkce
199 200 201 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 199 def enable_pkce @enable_pkce end |
#scopes ⇒ Array<String>
The scopes for which the user will authorize GCP Connectors on the connector
data source.
Corresponds to the JSON property scopes
206 207 208 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 206 def scopes @scopes end |
#uri ⇒ String
The base URI the user must click to trigger the authorization code login flow.
Corresponds to the JSON property uri
211 212 213 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 211 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
218 219 220 221 222 223 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 218 def update!(**args) @client_id = args[:client_id] if args.key?(:client_id) @enable_pkce = args[:enable_pkce] if args.key?(:enable_pkce) @scopes = args[:scopes] if args.key?(:scopes) @uri = args[:uri] if args.key?(:uri) end |