Class: Google::Apis::ChatV1::ActionResponse
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ChatV1::ActionResponse
 
 
- Defined in:
 - generated/google/apis/chat_v1/classes.rb,
generated/google/apis/chat_v1/representations.rb,
generated/google/apis/chat_v1/representations.rb 
Overview
Parameters that a bot can use to configure how it's response is posted.
Instance Attribute Summary collapse
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The type of bot response.
 - 
  
    
      #url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
URL for users to auth or config.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ActionResponse 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ActionResponse.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ActionResponse
Returns a new instance of ActionResponse
      67 68 69  | 
    
      # File 'generated/google/apis/chat_v1/classes.rb', line 67 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#type ⇒ String
The type of bot response.
Corresponds to the JSON property type
      60 61 62  | 
    
      # File 'generated/google/apis/chat_v1/classes.rb', line 60 def type @type end  | 
  
#url ⇒ String
URL for users to auth or config. (Only for REQUEST_CONFIG response types.)
Corresponds to the JSON property url
      65 66 67  | 
    
      # File 'generated/google/apis/chat_v1/classes.rb', line 65 def url @url end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      72 73 74 75  | 
    
      # File 'generated/google/apis/chat_v1/classes.rb', line 72 def update!(**args) @type = args[:type] if args.key?(:type) @url = args[:url] if args.key?(:url) end  |