Class: Google::Apis::ConnectorsV2::OAuth2Config
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV2::OAuth2Config
- 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
Instance Attribute Summary collapse
-
#auth_uri ⇒ String
Authorization Server URL/Token Endpoint for Authorization Code Flow Corresponds to the JSON property
authUri. -
#client_id ⇒ String
Client ID for the OAuth2 flow.
-
#client_secret ⇒ String
Client secret for the OAuth2 flow.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OAuth2Config
constructor
A new instance of OAuth2Config.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OAuth2Config
Returns a new instance of OAuth2Config.
1874 1875 1876 |
# File 'lib/google/apis/connectors_v2/classes.rb', line 1874 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auth_uri ⇒ String
Authorization Server URL/Token Endpoint for Authorization Code Flow
Corresponds to the JSON property authUri
1862 1863 1864 |
# File 'lib/google/apis/connectors_v2/classes.rb', line 1862 def auth_uri @auth_uri end |
#client_id ⇒ String
Client ID for the OAuth2 flow.
Corresponds to the JSON property clientId
1867 1868 1869 |
# File 'lib/google/apis/connectors_v2/classes.rb', line 1867 def client_id @client_id end |
#client_secret ⇒ String
Client secret for the OAuth2 flow.
Corresponds to the JSON property clientSecret
1872 1873 1874 |
# File 'lib/google/apis/connectors_v2/classes.rb', line 1872 def client_secret @client_secret end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1879 1880 1881 1882 1883 |
# File 'lib/google/apis/connectors_v2/classes.rb', line 1879 def update!(**args) @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) end |