Class: Google::Apis::AgentidentityV1::TwoLeggedOAuth

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

Instance Method Summary collapse

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_idString

Optional. The client ID of the OAuth client. Corresponds to the JSON property clientId

Returns:

  • (String)


1121
1122
1123
# File 'lib/google/apis/agentidentity_v1/classes.rb', line 1121

def client_id
  @client_id
end

#client_secretString

Optional. Input only. The client secret of the OAuth client. Corresponds to the JSON property clientSecret

Returns:

  • (String)


1126
1127
1128
# File 'lib/google/apis/agentidentity_v1/classes.rb', line 1126

def client_secret
  @client_secret
end

#token_urlString

Optional. The token endpoint of the OAuth client. Corresponds to the JSON property tokenUrl

Returns:

  • (String)


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