# Dialogflow CX V3 API - Class Google::Cloud::Dialogflow::CX::V3::Environment (v1.12.1)

1.12.1 (latest) 1.12.0 1.11.0 1.10.1 1.9.0 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.26.0 0.25.0 0.24.2 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.1 0.14.0 0.13.0 0.12.0 0.11.0 0.10.2 0.9.0 0.8.1 0.7.1 0.6.0 0.5.0 0.4.0 Reference documentation and code samples for the Dialogflow CX V3 API class Google::Cloud::Dialogflow::CX::V3::Environment.

Represents an environment for an agent. 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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #description

    def description() -> ::String

**Returns**

- (::String) --- The human-readable description of the environment. The maximum length is 500 characters. If exceeded, the request is rejected.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- The human-readable description of the environment. The maximum length is 500 characters. If exceeded, the request is rejected.
**Returns**

- (::String) --- The human-readable description of the environment. The maximum length is 500 characters. If exceeded, the request is rejected.

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- Required. The human-readable name of the environment (unique in an agent). Limit of 64 characters.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The human-readable name of the environment (unique in an agent). Limit of 64 characters.
**Returns**

- (::String) --- Required. The human-readable name of the environment (unique in an agent). Limit of 64 characters.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The name of the environment. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The name of the environment. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
**Returns**

- (::String) --- The name of the environment. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.

### #test_cases_config

    def test_cases_config() -> ::Google::Cloud::Dialogflow::CX::V3::Environment::TestCasesConfig

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Environment::TestCasesConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Environment-TestCasesConfig)) --- The test cases config for continuous tests of this environment.

### #test_cases_config=

    def test_cases_config=(value) -> ::Google::Cloud::Dialogflow::CX::V3::Environment::TestCasesConfig

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::Environment::TestCasesConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Environment-TestCasesConfig)) --- The test cases config for continuous tests of this environment.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Environment::TestCasesConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Environment-TestCasesConfig)) --- The test cases config for continuous tests of this environment.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-Timestamp)) --- Output only. Update time of this environment.

### #version_configs

    def version_configs() -> ::Array<::Google::Cloud::Dialogflow::CX::V3::Environment::VersionConfig>

**Returns**

- (::Array\<[::Google::Cloud::Dialogflow::CX::V3::Environment::VersionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Environment-VersionConfig)\>) --- A list of configurations for flow versions. You should include version configs for all flows that are reachable from \[`Start
  Flow`\]\[Agent.start_flow\] in the agent. Otherwise, an error will be returned.

### #version_configs=

    def version_configs=(value) -> ::Array<::Google::Cloud::Dialogflow::CX::V3::Environment::VersionConfig>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Dialogflow::CX::V3::Environment::VersionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Environment-VersionConfig)\>) --- A list of configurations for flow versions. You should include version configs for all flows that are reachable from \[`Start
  Flow`\]\[Agent.start_flow\] in the agent. Otherwise, an error will be returned.
**Returns**

- (::Array\<[::Google::Cloud::Dialogflow::CX::V3::Environment::VersionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Environment-VersionConfig)\>) --- A list of configurations for flow versions. You should include version configs for all flows that are reachable from \[`Start
  Flow`\]\[Agent.start_flow\] in the agent. Otherwise, an error will be returned.

### #webhook_config

    def webhook_config() -> ::Google::Cloud::Dialogflow::CX::V3::Environment::WebhookConfig

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Environment::WebhookConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Environment-WebhookConfig)) --- The webhook configuration for this environment.

### #webhook_config=

    def webhook_config=(value) -> ::Google::Cloud::Dialogflow::CX::V3::Environment::WebhookConfig

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::Environment::WebhookConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Environment-WebhookConfig)) --- The webhook configuration for this environment.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Environment::WebhookConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Environment-WebhookConfig)) --- The webhook configuration for this environment.