Class: Google::Apis::IntegrationsV1::GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlowGoogleManaged
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1::GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlowGoogleManaged
- 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 using Google Provided OAuth Client. See https://tools.ietf.org/html/rfc6749#section-1.3.1 for more details.
Instance Attribute Summary collapse
-
#auth_code ⇒ String
Optional.
-
#redirect_uri ⇒ String
Optional.
-
#scopes ⇒ Array<String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlowGoogleManaged
constructor
A new instance of GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlowGoogleManaged.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlowGoogleManaged
Returns a new instance of GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlowGoogleManaged.
5211 5212 5213 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 5211 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auth_code ⇒ String
Optional. Authorization code to be exchanged for access and refresh tokens.
Corresponds to the JSON property authCode
5198 5199 5200 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 5198 def auth_code @auth_code end |
#redirect_uri ⇒ String
Optional. Redirect URI to be provided during the auth code exchange.
Corresponds to the JSON property redirectUri
5203 5204 5205 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 5203 def redirect_uri @redirect_uri end |
#scopes ⇒ Array<String>
Required. Scopes the connection will request when the user performs the auth
code flow.
Corresponds to the JSON property scopes
5209 5210 5211 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 5209 def scopes @scopes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5216 5217 5218 5219 5220 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 5216 def update!(**args) @auth_code = args[:auth_code] if args.key?(:auth_code) @redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri) @scopes = args[:scopes] if args.key?(:scopes) end |