Class: Google::Apis::CesV1::GenerateChatTokenResponse

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/ces_v1/classes.rb,
lib/google/apis/ces_v1/representations.rb,
lib/google/apis/ces_v1/representations.rb

Overview

Response message for WidgetService.GenerateChatToken.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenerateChatTokenResponse

Returns a new instance of GenerateChatTokenResponse.



3645
3646
3647
# File 'lib/google/apis/ces_v1/classes.rb', line 3645

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

Instance Attribute Details

#chat_tokenString

The session scoped token for chat widget to authenticate with Session APIs. Corresponds to the JSON property chatToken

Returns:

  • (String)


3638
3639
3640
# File 'lib/google/apis/ces_v1/classes.rb', line 3638

def chat_token
  @chat_token
end

#expire_timeString

The time at which the chat token expires. Corresponds to the JSON property expireTime

Returns:

  • (String)


3643
3644
3645
# File 'lib/google/apis/ces_v1/classes.rb', line 3643

def expire_time
  @expire_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3650
3651
3652
3653
# File 'lib/google/apis/ces_v1/classes.rb', line 3650

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