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.



189
190
191
# File 'lib/google/apis/connectors_v1/classes.rb', line 189

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

Instance Attribute Details

#scopesArray<String>

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

Returns:

  • (Array<String>)


182
183
184
# File 'lib/google/apis/connectors_v1/classes.rb', line 182

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)


187
188
189
# File 'lib/google/apis/connectors_v1/classes.rb', line 187

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



194
195
196
197
# File 'lib/google/apis/connectors_v1/classes.rb', line 194

def update!(**args)
  @scopes = args[:scopes] if args.key?(:scopes)
  @uri = args[:uri] if args.key?(:uri)
end