Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dialogflow_v2/classes.rb,
generated/google/apis/dialogflow_v2/representations.rb,
generated/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
-
#agent_version ⇒ String
Optional.
-
#description ⇒ String
Optional.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2Environment
constructor
A new instance of GoogleCloudDialogflowV2Environment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2Environment
Returns a new instance of GoogleCloudDialogflowV2Environment.
5416 5417 5418 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 5416 def initialize(**args) update!(**args) end |
Instance Attribute Details
#agent_version ⇒ String
Optional. The agent version loaded into this environment. Format: projects//
agent/versions/
.
Corresponds to the JSON property agentVersion
5389 5390 5391 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 5389 def agent_version @agent_version end |
#description ⇒ String
Optional. The developer-provided description for this environment. The maximum
length is 500 characters. If exceeded, the request is rejected.
Corresponds to the JSON property description
5395 5396 5397 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 5395 def description @description end |
#name ⇒ String
Output only. The unique identifier of this agent environment. Format:
projects//agent/environments/
. For Environment ID, "-" is reserved for 'draft'
environment.
Corresponds to the JSON property name
5402 5403 5404 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 5402 def name @name end |
#state ⇒ String
Output only. The state of this environment. This field is read-only, i.e., it
cannot be set by create and update methods.
Corresponds to the JSON property state
5408 5409 5410 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 5408 def state @state end |
#update_time ⇒ String
Output only. The last update time of this environment. This field is read-only,
i.e., it cannot be set by create and update methods.
Corresponds to the JSON property updateTime
5414 5415 5416 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 5414 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5421 5422 5423 5424 5425 5426 5427 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 5421 def update!(**args) @agent_version = args[:agent_version] if args.key?(:agent_version) @description = args[:description] if args.key?(:description) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) @update_time = args[:update_time] if args.key?(:update_time) end |