Class: Google::Apis::ConnectorsV1::AuthorizationCodeLink

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AuthorizationCodeLink

Returns a new instance of AuthorizationCodeLink.



237
238
239
# File 'lib/google/apis/connectors_v1/classes.rb', line 237

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#client_idString

The client ID assigned to the Google Cloud Connectors OAuth app for the connector data source. Corresponds to the JSON property clientId

Returns:

  • (String)


213
214
215
# File 'lib/google/apis/connectors_v1/classes.rb', line 213

def client_id
  @client_id
end

#enable_pkceBoolean Also known as: enable_pkce?

Whether to enable PKCE for the auth code flow. Corresponds to the JSON property enablePkce

Returns:

  • (Boolean)


218
219
220
# File 'lib/google/apis/connectors_v1/classes.rb', line 218

def enable_pkce
  @enable_pkce
end

#omit_query_paramsString

Optional. Omit query params from the redirect URI. Corresponds to the JSON property omitQueryParams

Returns:

  • (String)


224
225
226
# File 'lib/google/apis/connectors_v1/classes.rb', line 224

def omit_query_params
  @omit_query_params
end

#scopesArray<String>

The scopes for which the user will authorize Google Cloud Connectors on the connector data source. Corresponds to the JSON property scopes

Returns:

  • (Array<String>)


230
231
232
# File 'lib/google/apis/connectors_v1/classes.rb', line 230

def scopes
  @scopes
end

#uriString

The base URI the user must click to trigger the authorization code login flow. Corresponds to the JSON property uri

Returns:

  • (String)


235
236
237
# File 'lib/google/apis/connectors_v1/classes.rb', line 235

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



242
243
244
245
246
247
248
# File 'lib/google/apis/connectors_v1/classes.rb', line 242

def update!(**args)
  @client_id = args[:client_id] if args.key?(:client_id)
  @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