Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolVersion

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

Overview

Tool version is a snapshot of the tool at certain timestamp.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1ToolVersion

Returns a new instance of GoogleCloudDialogflowCxV3beta1ToolVersion.



15072
15073
15074
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15072

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

Instance Attribute Details

#create_timeString

Output only. Last time the tool version was created or modified. Corresponds to the JSON property createTime

Returns:

  • (String)


15046
15047
15048
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15046

def create_time
  @create_time
end

#display_nameString

Required. The display name of the tool version. Corresponds to the JSON property displayName

Returns:

  • (String)


15051
15052
15053
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15051

def display_name
  @display_name
end

#nameString

Identifier. The unique identifier of the tool version. Format: projects// locations//agents//tools//versions/. Corresponds to the JSON property name

Returns:

  • (String)


15057
15058
15059
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15057

def name
  @name
end

#toolGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Tool

A tool provides a list of actions which are available to the Playbook to attain its goal. A Tool consists of a description of the tool's usage and a specification of the tool which contains the schema and authentication information. Corresponds to the JSON property tool



15065
15066
15067
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15065

def tool
  @tool
end

#update_timeString

Output only. Last time the tool version was created or modified. Corresponds to the JSON property updateTime

Returns:

  • (String)


15070
15071
15072
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15070

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15077
15078
15079
15080
15081
15082
15083
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15077

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @name = args[:name] if args.key?(:name)
  @tool = args[:tool] if args.key?(:tool)
  @update_time = args[:update_time] if args.key?(:update_time)
end