Class: Google::Apis::IntegrationsV1::GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/integrations_v1/classes.rb,
lib/google/apis/integrations_v1/representations.rb,
lib/google/apis/integrations_v1/representations.rb

Overview

Parameters to support Oauth 2.0 Auth Code Grant Authentication. See https:// www.rfc-editor.org/rfc/rfc6749#section-1.3.1 for more details.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow

Returns a new instance of GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow.



5172
5173
5174
# File 'lib/google/apis/integrations_v1/classes.rb', line 5172

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

Instance Attribute Details

#auth_codeString

Authorization code to be exchanged for access and refresh tokens. Corresponds to the JSON property authCode

Returns:

  • (String)


5134
5135
5136
# File 'lib/google/apis/integrations_v1/classes.rb', line 5134

def auth_code
  @auth_code
end

#auth_uriString

Auth URL for Authorization Code Flow Corresponds to the JSON property authUri

Returns:

  • (String)


5139
5140
5141
# File 'lib/google/apis/integrations_v1/classes.rb', line 5139

def auth_uri
  @auth_uri
end

#client_idString

Client ID for user-provided OAuth app. Corresponds to the JSON property clientId

Returns:

  • (String)


5144
5145
5146
# File 'lib/google/apis/integrations_v1/classes.rb', line 5144

def client_id
  @client_id
end

#client_secretGoogle::Apis::IntegrationsV1::GoogleCloudConnectorsV1Secret

Secret provides a reference to entries in Secret Manager. Corresponds to the JSON property clientSecret



5149
5150
5151
# File 'lib/google/apis/integrations_v1/classes.rb', line 5149

def client_secret
  @client_secret
end

#enable_pkceBoolean Also known as: enable_pkce?

Whether to enable PKCE when the user performs the auth code flow. Corresponds to the JSON property enablePkce

Returns:

  • (Boolean)


5154
5155
5156
# File 'lib/google/apis/integrations_v1/classes.rb', line 5154

def enable_pkce
  @enable_pkce
end

#pkce_verifierString

PKCE verifier to be used during the auth code exchange. Corresponds to the JSON property pkceVerifier

Returns:

  • (String)


5160
5161
5162
# File 'lib/google/apis/integrations_v1/classes.rb', line 5160

def pkce_verifier
  @pkce_verifier
end

#redirect_uriString

Redirect URI to be provided during the auth code exchange. Corresponds to the JSON property redirectUri

Returns:

  • (String)


5165
5166
5167
# File 'lib/google/apis/integrations_v1/classes.rb', line 5165

def redirect_uri
  @redirect_uri
end

#scopesArray<String>

Scopes the connection will request when the user performs the auth code flow. Corresponds to the JSON property scopes

Returns:

  • (Array<String>)


5170
5171
5172
# File 'lib/google/apis/integrations_v1/classes.rb', line 5170

def scopes
  @scopes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
# File 'lib/google/apis/integrations_v1/classes.rb', line 5177

def update!(**args)
  @auth_code = args[:auth_code] if args.key?(:auth_code)
  @auth_uri = args[:auth_uri] if args.key?(:auth_uri)
  @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)
  @pkce_verifier = args[:pkce_verifier] if args.key?(:pkce_verifier)
  @redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri)
  @scopes = args[:scopes] if args.key?(:scopes)
end