Class: Google::Apis::ConnectorsV2::OAuth2Config

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_uriString

Authorization Server URL/Token Endpoint for Authorization Code Flow Corresponds to the JSON property authUri

Returns:

  • (String)


1862
1863
1864
# File 'lib/google/apis/connectors_v2/classes.rb', line 1862

def auth_uri
  @auth_uri
end

#client_idString

Client ID for the OAuth2 flow. Corresponds to the JSON property clientId

Returns:

  • (String)


1867
1868
1869
# File 'lib/google/apis/connectors_v2/classes.rb', line 1867

def client_id
  @client_id
end

#client_secretString

Client secret for the OAuth2 flow. Corresponds to the JSON property clientSecret

Returns:

  • (String)


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