Google Cloud Orchestration Airflow V1 Client - Class Environment (1.4.2)

Reference documentation and code samples for the Google Cloud Orchestration Airflow V1 Client class Environment.

An environment for running orchestration tasks.

Generated from protobuf message google.cloud.orchestration.airflow.service.v1.Environment

Namespace

Google \ Cloud \ Orchestration \ Airflow \ Service \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

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.

↳ config Google\Cloud\Orchestration\Airflow\Service\V1\EnvironmentConfig

Configuration parameters for this environment.

↳ uuid string

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

↳ state int

The current state of the environment.

↳ create_time Google\Protobuf\Timestamp

Output only. The time at which this environment was created.

↳ update_time Google\Protobuf\Timestamp

Output only. The time at which this environment was last modified.

↳ labels array|Google\Protobuf\Internal\MapField

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.

getName

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
TypeDescription
string

setName

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getConfig

Configuration parameters for this environment.

Returns
TypeDescription
Google\Cloud\Orchestration\Airflow\Service\V1\EnvironmentConfig|null

hasConfig

clearConfig

setConfig

Configuration parameters for this environment.

Parameter
NameDescription
var Google\Cloud\Orchestration\Airflow\Service\V1\EnvironmentConfig
Returns
TypeDescription
$this

getUuid

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

Returns
TypeDescription
string

setUuid

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

The current state of the environment.

Returns
TypeDescription
int

setState

The current state of the environment.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCreateTime

Output only. The time at which this environment was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time at which this environment was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. The time at which this environment was last modified.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The time at which this environment was last modified.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getLabels

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
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

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.
Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this