Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment

Inherits:
Object
  • Object
show all
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

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) ⇒ GoogleCloudDialogflowV2beta1Environment

Returns a new instance of GoogleCloudDialogflowV2beta1Environment.



7548
7549
7550
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 7548

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

Instance Attribute Details

#agent_versionString

Optional. The agent version loaded into this environment. Supported formats: - projects//agent/versions/ - projects//locations//agent/versions/ Corresponds to the JSON property agentVersion

Returns:

  • (String)


7521
7522
7523
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 7521

def agent_version
  @agent_version
end

#descriptionString

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

Returns:

  • (String)


7527
7528
7529
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 7527

def description
  @description
end

#nameString

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

Returns:

  • (String)


7534
7535
7536
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 7534

def name
  @name
end

#stateString

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

Returns:

  • (String)


7540
7541
7542
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 7540

def state
  @state
end

#update_timeString

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

Returns:

  • (String)


7546
7547
7548
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 7546

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7553
7554
7555
7556
7557
7558
7559
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 7553

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