Class: Google::Apis::ConnectorsV2::AuthCodeData
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV2::AuthCodeData
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/connectors_v2/classes.rb,
lib/google/apis/connectors_v2/representations.rb,
lib/google/apis/connectors_v2/representations.rb
Overview
AuthCodeData contains the data the runtime plane will give the connector backend in exchange for access and refresh tokens.
Instance Attribute Summary collapse
-
#auth_code ⇒ String
OAuth authorization code.
-
#pkce_verifier ⇒ String
OAuth PKCE verifier, needed if PKCE is enabled for this particular connection.
-
#redirect_uri ⇒ String
OAuth redirect URI passed in during the auth code flow, required by some OAuth backends.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AuthCodeData
constructor
A new instance of AuthCodeData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AuthCodeData
Returns a new instance of AuthCodeData.
134 135 136 |
# File 'lib/google/apis/connectors_v2/classes.rb', line 134 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auth_code ⇒ String
OAuth authorization code.
Corresponds to the JSON property authCode
121 122 123 |
# File 'lib/google/apis/connectors_v2/classes.rb', line 121 def auth_code @auth_code end |
#pkce_verifier ⇒ String
OAuth PKCE verifier, needed if PKCE is enabled for this particular connection.
Corresponds to the JSON property pkceVerifier
126 127 128 |
# File 'lib/google/apis/connectors_v2/classes.rb', line 126 def pkce_verifier @pkce_verifier end |
#redirect_uri ⇒ String
OAuth redirect URI passed in during the auth code flow, required by some OAuth
backends.
Corresponds to the JSON property redirectUri
132 133 134 |
# File 'lib/google/apis/connectors_v2/classes.rb', line 132 def redirect_uri @redirect_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
139 140 141 142 143 |
# File 'lib/google/apis/connectors_v2/classes.rb', line 139 def update!(**args) @auth_code = args[:auth_code] if args.key?(:auth_code) @pkce_verifier = args[:pkce_verifier] if args.key?(:pkce_verifier) @redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri) end |