Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version

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

Overview

You can create multiple versions of your agent and publish them to separate environments. When you edit an agent, you are editing the draft agent. At any point, you can save the draft agent as an agent version, which is an immutable snapshot of your agent. When you save the draft agent, it is published to the default environment. When you create agent versions, you can publish them to custom environments. You can create a variety of custom environments for: - testing - development - production - etc. For more information, see the versions and environments guide.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2Version

Returns a new instance of GoogleCloudDialogflowV2Version.



12345
12346
12347
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12345

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

Instance Attribute Details

#create_timeString

Output only. The creation time of this version. This field is read-only, i.e., it cannot be set by create and update methods. Corresponds to the JSON property createTime

Returns:

  • (String)


12320
12321
12322
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12320

def create_time
  @create_time
end

#descriptionString

Optional. The developer-provided description of this version. Corresponds to the JSON property description

Returns:

  • (String)


12325
12326
12327
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12325

def description
  @description
end

#nameString

Output only. The unique identifier of this agent version. Supported formats: - projects//agent/versions/ - projects//locations//agent/versions/ Corresponds to the JSON property name

Returns:

  • (String)


12331
12332
12333
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12331

def name
  @name
end

#statusString

Output only. The status of this version. This field is read-only and cannot be set by create and update methods. Corresponds to the JSON property status

Returns:

  • (String)


12337
12338
12339
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12337

def status
  @status
end

#version_numberFixnum

Output only. The sequential number of this version. This field is read-only which means it cannot be set by create and update methods. Corresponds to the JSON property versionNumber

Returns:

  • (Fixnum)


12343
12344
12345
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12343

def version_number
  @version_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12350
12351
12352
12353
12354
12355
12356
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12350

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @name = args[:name] if args.key?(:name)
  @status = args[:status] if args.key?(:status)
  @version_number = args[:version_number] if args.key?(:version_number)
end