Class: Google::Apis::AgentidentityV1::TwoLeggedOAuth
- Inherits:
-
Object
- Object
- Google::Apis::AgentidentityV1::TwoLeggedOAuth
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/agentidentity_v1/classes.rb,
lib/google/apis/agentidentity_v1/representations.rb,
lib/google/apis/agentidentity_v1/representations.rb
Overview
Message describing TwoLeggedOAuth object.
Instance Attribute Summary collapse
-
#client_id ⇒ String
Optional.
-
#client_secret ⇒ String
Optional.
-
#token_url ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TwoLeggedOAuth
constructor
A new instance of TwoLeggedOAuth.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TwoLeggedOAuth
Returns a new instance of TwoLeggedOAuth.
1133 1134 1135 |
# File 'lib/google/apis/agentidentity_v1/classes.rb', line 1133 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_id ⇒ String
Optional. The client ID of the OAuth client.
Corresponds to the JSON property clientId
1121 1122 1123 |
# File 'lib/google/apis/agentidentity_v1/classes.rb', line 1121 def client_id @client_id end |
#client_secret ⇒ String
Optional. Input only. The client secret of the OAuth client.
Corresponds to the JSON property clientSecret
1126 1127 1128 |
# File 'lib/google/apis/agentidentity_v1/classes.rb', line 1126 def client_secret @client_secret end |
#token_url ⇒ String
Optional. The token endpoint of the OAuth client.
Corresponds to the JSON property tokenUrl
1131 1132 1133 |
# File 'lib/google/apis/agentidentity_v1/classes.rb', line 1131 def token_url @token_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1138 1139 1140 1141 1142 |
# File 'lib/google/apis/agentidentity_v1/classes.rb', line 1138 def update!(**args) @client_id = args[:client_id] if args.key?(:client_id) @client_secret = args[:client_secret] if args.key?(:client_secret) @token_url = args[:token_url] if args.key?(:token_url) end |