# Cloud Composer V1 API - Class Google::Cloud::Orchestration::Airflow::Service::V1::Environment (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.4 1.2.0 1.1.0 1.0.1 0.11.0 0.10.0 0.9.2 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.1 0.2.0 0.1.2 Reference documentation and code samples for the Cloud Composer V1 API class Google::Cloud::Orchestration::Airflow::Service::V1::Environment.

An environment for running orchestration tasks.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #config

    def config() -> ::Google::Cloud::Orchestration::Airflow::Service::V1::EnvironmentConfig

**Returns**

- ([::Google::Cloud::Orchestration::Airflow::Service::V1::EnvironmentConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Cloud-Orchestration-Airflow-Service-V1-EnvironmentConfig)) --- Optional. Configuration parameters for this environment.

### #config=

    def config=(value) -> ::Google::Cloud::Orchestration::Airflow::Service::V1::EnvironmentConfig

**Parameter**

- **value** ([::Google::Cloud::Orchestration::Airflow::Service::V1::EnvironmentConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Cloud-Orchestration-Airflow-Service-V1-EnvironmentConfig)) --- Optional. Configuration parameters for this environment.
**Returns**

- ([::Google::Cloud::Orchestration::Airflow::Service::V1::EnvironmentConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Cloud-Orchestration-Airflow-Service-V1-EnvironmentConfig)) --- Optional. Configuration parameters for this environment.

### #create_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time at which this environment was created.

### #create_time=

    def create_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time at which this environment was created.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time at which this environment was created.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. User-defined labels for this environment.
  The labels map can contain no more than 64 entries. Entries of the labels
  map are UTF8 strings that comply with the following restrictions:

  - Keys must conform to regexp: \[\\p{Ll}\\p{Lo}\]\[\\p{Ll}\\p{Lo}\\p{N}_-\]{0,62}
  - Values must conform to regexp: \[\\p{Ll}\\p{Lo}\\p{N}_-\]{0,63}
  - Both keys and values are additionally constrained to be \<= 128 bytes in size.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) ---

  Optional. User-defined labels for this environment.
  The labels map can contain no more than 64 entries. Entries of the labels
  map are UTF8 strings that comply with the following restrictions:
  - Keys must conform to regexp: \[\\p{Ll}\\p{Lo}\]\[\\p{Ll}\\p{Lo}\\p{N}_-\]{0,62}
  - Values must conform to regexp: \[\\p{Ll}\\p{Lo}\\p{N}_-\]{0,63}
  - Both keys and values are additionally constrained to be \<= 128 bytes in size.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. User-defined labels for this environment.
  The labels map can contain no more than 64 entries. Entries of the labels
  map are UTF8 strings that comply with the following restrictions:

  - Keys must conform to regexp: \[\\p{Ll}\\p{Lo}\]\[\\p{Ll}\\p{Lo}\\p{N}_-\]{0,62}
  - Values must conform to regexp: \[\\p{Ll}\\p{Lo}\\p{N}_-\]{0,63}
  - Both keys and values are additionally constrained to be \<= 128 bytes in size.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. The resource name of the environment, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"

  EnvironmentId must start with a lowercase letter followed by up to 63
  lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. The resource name of the environment, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"


  EnvironmentId must start with a lowercase letter followed by up to 63
  lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
**Returns**

- (::String) --- Identifier. The resource name of the environment, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"

  EnvironmentId must start with a lowercase letter followed by up to 63
  lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

### #satisfies_pzi

    def satisfies_pzi() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. Reserved for future use.

### #satisfies_pzs

    def satisfies_pzs() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. Reserved for future use.

### #state

    def state() -> ::Google::Cloud::Orchestration::Airflow::Service::V1::Environment::State

**Returns**

- ([::Google::Cloud::Orchestration::Airflow::Service::V1::Environment::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Cloud-Orchestration-Airflow-Service-V1-Environment-State)) --- The current state of the environment.

### #state=

    def state=(value) -> ::Google::Cloud::Orchestration::Airflow::Service::V1::Environment::State

**Parameter**

- **value** ([::Google::Cloud::Orchestration::Airflow::Service::V1::Environment::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Cloud-Orchestration-Airflow-Service-V1-Environment-State)) --- The current state of the environment.
**Returns**

- ([::Google::Cloud::Orchestration::Airflow::Service::V1::Environment::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Cloud-Orchestration-Airflow-Service-V1-Environment-State)) --- The current state of the environment.

### #storage_config

    def storage_config() -> ::Google::Cloud::Orchestration::Airflow::Service::V1::StorageConfig

**Returns**

- ([::Google::Cloud::Orchestration::Airflow::Service::V1::StorageConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Cloud-Orchestration-Airflow-Service-V1-StorageConfig)) --- Optional. Storage configuration for this environment.

### #storage_config=

    def storage_config=(value) -> ::Google::Cloud::Orchestration::Airflow::Service::V1::StorageConfig

**Parameter**

- **value** ([::Google::Cloud::Orchestration::Airflow::Service::V1::StorageConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Cloud-Orchestration-Airflow-Service-V1-StorageConfig)) --- Optional. Storage configuration for this environment.
**Returns**

- ([::Google::Cloud::Orchestration::Airflow::Service::V1::StorageConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Cloud-Orchestration-Airflow-Service-V1-StorageConfig)) --- Optional. Storage configuration for this environment.

### #update_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time at which this environment was last modified.

### #update_time=

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

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time at which this environment was last modified.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time at which this environment was last modified.

### #uuid

    def uuid() -> ::String

**Returns**

- (::String) --- Output only. The UUID (Universally Unique IDentifier) associated with this environment. This value is generated when the environment is created.

### #uuid=

    def uuid=(value) -> ::String

**Parameter**

- **value** (::String) --- Output only. The UUID (Universally Unique IDentifier) associated with this environment. This value is generated when the environment is created.
**Returns**

- (::String) --- Output only. The UUID (Universally Unique IDentifier) associated with this environment. This value is generated when the environment is created.