Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dialogflow_v2beta1/classes.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb
Overview
Represents an agent environment.
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) ⇒ GoogleCloudDialogflowV2beta1Environment
constructor
A new instance of GoogleCloudDialogflowV2beta1Environment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1Environment
Returns a new instance of GoogleCloudDialogflowV2beta1Environment.
2948 2949 2950 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2948 def initialize(**args) update!(**args) end |
Instance Attribute Details
#agent_version ⇒ String
Optional. The agent version loaded into this environment.
Format: projects/<Project ID>/agent/versions/<Version ID>
.
Corresponds to the JSON property agentVersion
2919 2920 2921 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2919 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
2925 2926 2927 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2925 def description @description end |
#name ⇒ String
Output only. The unique identifier of this agent environment.
Format: projects/<Project ID>/agent/environments/<Environment ID>
.
You can use "-" as Environment ID to refer to 'draft' environment.
Corresponds to the JSON property name
2932 2933 2934 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2932 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
2939 2940 2941 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2939 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
2946 2947 2948 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2946 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2953 2954 2955 2956 2957 2958 2959 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2953 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 |