Google Cloud Orchestration Airflow V1 Client - Class EnvironmentConfig (1.3.0)

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

Configuration information for an environment.

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

Namespace

Google \ Cloud \ Orchestration \ Airflow \ Service \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ gke_cluster string

Output only. The Kubernetes Engine cluster used to run this environment.

↳ dag_gcs_prefix string

Output only. The Cloud Storage prefix of the DAGs for this environment. Although Cloud Storage objects reside in a flat namespace, a hierarchical file tree can be simulated using "/"-delimited object name prefixes. DAG objects for this environment reside in a simulated directory with the given prefix.

↳ node_count int

The number of nodes in the Kubernetes Engine cluster that will be used to run this environment. This field is supported for Cloud Composer environments in versions composer-1..-airflow-..*.

↳ software_config Google\Cloud\Orchestration\Airflow\Service\V1\SoftwareConfig

The configuration settings for software inside the environment.

↳ node_config Google\Cloud\Orchestration\Airflow\Service\V1\NodeConfig

The configuration used for the Kubernetes Engine cluster.

↳ private_environment_config Google\Cloud\Orchestration\Airflow\Service\V1\PrivateEnvironmentConfig

The configuration used for the Private IP Cloud Composer environment.

↳ web_server_network_access_control Google\Cloud\Orchestration\Airflow\Service\V1\WebServerNetworkAccessControl

Optional. The network-level access control policy for the Airflow web server. If unspecified, no network-level access restrictions will be applied.

↳ database_config Google\Cloud\Orchestration\Airflow\Service\V1\DatabaseConfig

Optional. The configuration settings for Cloud SQL instance used internally by Apache Airflow software.

↳ web_server_config Google\Cloud\Orchestration\Airflow\Service\V1\WebServerConfig

Optional. The configuration settings for the Airflow web server App Engine instance.

↳ encryption_config Google\Cloud\Orchestration\Airflow\Service\V1\EncryptionConfig

Optional. The encryption options for the Cloud Composer environment and its dependencies. Cannot be updated.

↳ maintenance_window Google\Cloud\Orchestration\Airflow\Service\V1\MaintenanceWindow

Optional. The maintenance window is the period when Cloud Composer components may undergo maintenance. It is defined so that maintenance is not executed during peak hours or critical time periods. The system will not be under maintenance for every occurrence of this window, but when maintenance is planned, it will be scheduled during the window. The maintenance window period must encompass at least 12 hours per week. This may be split into multiple chunks, each with a size of at least 4 hours. If this value is omitted, the default value for maintenance window will be applied. The default value is Saturday and Sunday 00-06 GMT.

↳ workloads_config Google\Cloud\Orchestration\Airflow\Service\V1\WorkloadsConfig

Optional. The workloads configuration settings for the GKE cluster associated with the Cloud Composer environment. The GKE cluster runs Airflow scheduler, web server and workers workloads. This field is supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

↳ environment_size int

Optional. The size of the Cloud Composer environment. This field is supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

↳ airflow_uri string

Output only. The URI of the Apache Airflow Web UI hosted within this environment (see Airflow web interface).

↳ airflow_byoid_uri string

Output only. The 'bring your own identity' variant of the URI of the Apache Airflow Web UI hosted within this environment, to be accessed with external identities using workforce identity federation (see Access environments with workforce identity federation).

↳ master_authorized_networks_config Google\Cloud\Orchestration\Airflow\Service\V1\MasterAuthorizedNetworksConfig

Optional. The configuration options for GKE cluster master authorized networks. By default master authorized networks feature is: - in case of private environment: enabled with no external networks allowlisted. - in case of public environment: disabled.

↳ recovery_config Google\Cloud\Orchestration\Airflow\Service\V1\RecoveryConfig

Optional. The Recovery settings configuration of an environment. This field is supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

↳ resilience_mode int

Optional. Resilience mode of the Cloud Composer Environment. This field is supported for Cloud Composer environments in versions composer-2.2.0-airflow-..* and newer.

getGkeCluster

Output only. The Kubernetes Engine cluster used to run this environment.

Returns
TypeDescription
string

setGkeCluster

Output only. The Kubernetes Engine cluster used to run this environment.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDagGcsPrefix

Output only. The Cloud Storage prefix of the DAGs for this environment.

Although Cloud Storage objects reside in a flat namespace, a hierarchical file tree can be simulated using "/"-delimited object name prefixes. DAG objects for this environment reside in a simulated directory with the given prefix.

Returns
TypeDescription
string

setDagGcsPrefix

Output only. The Cloud Storage prefix of the DAGs for this environment.

Although Cloud Storage objects reside in a flat namespace, a hierarchical file tree can be simulated using "/"-delimited object name prefixes. DAG objects for this environment reside in a simulated directory with the given prefix.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNodeCount

The number of nodes in the Kubernetes Engine cluster that will be used to run this environment.

This field is supported for Cloud Composer environments in versions composer-1..-airflow-..*.

Returns
TypeDescription
int

setNodeCount

The number of nodes in the Kubernetes Engine cluster that will be used to run this environment.

This field is supported for Cloud Composer environments in versions composer-1..-airflow-..*.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getSoftwareConfig

The configuration settings for software inside the environment.

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

hasSoftwareConfig

clearSoftwareConfig

setSoftwareConfig

The configuration settings for software inside the environment.

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

getNodeConfig

The configuration used for the Kubernetes Engine cluster.

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

hasNodeConfig

clearNodeConfig

setNodeConfig

The configuration used for the Kubernetes Engine cluster.

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

getPrivateEnvironmentConfig

The configuration used for the Private IP Cloud Composer environment.

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

hasPrivateEnvironmentConfig

clearPrivateEnvironmentConfig

setPrivateEnvironmentConfig

The configuration used for the Private IP Cloud Composer environment.

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

getWebServerNetworkAccessControl

Optional. The network-level access control policy for the Airflow web server. If unspecified, no network-level access restrictions will be applied.

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

hasWebServerNetworkAccessControl

clearWebServerNetworkAccessControl

setWebServerNetworkAccessControl

Optional. The network-level access control policy for the Airflow web server. If unspecified, no network-level access restrictions will be applied.

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

getDatabaseConfig

Optional. The configuration settings for Cloud SQL instance used internally by Apache Airflow software.

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

hasDatabaseConfig

clearDatabaseConfig

setDatabaseConfig

Optional. The configuration settings for Cloud SQL instance used internally by Apache Airflow software.

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

getWebServerConfig

Optional. The configuration settings for the Airflow web server App Engine instance.

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

hasWebServerConfig

clearWebServerConfig

setWebServerConfig

Optional. The configuration settings for the Airflow web server App Engine instance.

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

getEncryptionConfig

Optional. The encryption options for the Cloud Composer environment and its dependencies. Cannot be updated.

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

hasEncryptionConfig

clearEncryptionConfig

setEncryptionConfig

Optional. The encryption options for the Cloud Composer environment and its dependencies. Cannot be updated.

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

getMaintenanceWindow

Optional. The maintenance window is the period when Cloud Composer components may undergo maintenance. It is defined so that maintenance is not executed during peak hours or critical time periods.

The system will not be under maintenance for every occurrence of this window, but when maintenance is planned, it will be scheduled during the window. The maintenance window period must encompass at least 12 hours per week. This may be split into multiple chunks, each with a size of at least 4 hours. If this value is omitted, the default value for maintenance window will be applied. The default value is Saturday and Sunday 00-06 GMT.

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

hasMaintenanceWindow

clearMaintenanceWindow

setMaintenanceWindow

Optional. The maintenance window is the period when Cloud Composer components may undergo maintenance. It is defined so that maintenance is not executed during peak hours or critical time periods.

The system will not be under maintenance for every occurrence of this window, but when maintenance is planned, it will be scheduled during the window. The maintenance window period must encompass at least 12 hours per week. This may be split into multiple chunks, each with a size of at least 4 hours. If this value is omitted, the default value for maintenance window will be applied. The default value is Saturday and Sunday 00-06 GMT.

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

getWorkloadsConfig

Optional. The workloads configuration settings for the GKE cluster associated with the Cloud Composer environment. The GKE cluster runs Airflow scheduler, web server and workers workloads.

This field is supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

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

hasWorkloadsConfig

clearWorkloadsConfig

setWorkloadsConfig

Optional. The workloads configuration settings for the GKE cluster associated with the Cloud Composer environment. The GKE cluster runs Airflow scheduler, web server and workers workloads.

This field is supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

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

getEnvironmentSize

Optional. The size of the Cloud Composer environment.

This field is supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

Returns
TypeDescription
int

setEnvironmentSize

Optional. The size of the Cloud Composer environment.

This field is supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getAirflowUri

Output only. The URI of the Apache Airflow Web UI hosted within this environment (see Airflow web interface).

Returns
TypeDescription
string

setAirflowUri

Output only. The URI of the Apache Airflow Web UI hosted within this environment (see Airflow web interface).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAirflowByoidUri

Output only. The 'bring your own identity' variant of the URI of the Apache Airflow Web UI hosted within this environment, to be accessed with external identities using workforce identity federation (see Access environments with workforce identity federation).

Returns
TypeDescription
string

setAirflowByoidUri

Output only. The 'bring your own identity' variant of the URI of the Apache Airflow Web UI hosted within this environment, to be accessed with external identities using workforce identity federation (see Access environments with workforce identity federation).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMasterAuthorizedNetworksConfig

Optional. The configuration options for GKE cluster master authorized networks. By default master authorized networks feature is:

  • in case of private environment: enabled with no external networks allowlisted.

  • in case of public environment: disabled.

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

hasMasterAuthorizedNetworksConfig

clearMasterAuthorizedNetworksConfig

setMasterAuthorizedNetworksConfig

Optional. The configuration options for GKE cluster master authorized networks. By default master authorized networks feature is:

  • in case of private environment: enabled with no external networks allowlisted.

  • in case of public environment: disabled.

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

getRecoveryConfig

Optional. The Recovery settings configuration of an environment.

This field is supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

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

hasRecoveryConfig

clearRecoveryConfig

setRecoveryConfig

Optional. The Recovery settings configuration of an environment.

This field is supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

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

getResilienceMode

Optional. Resilience mode of the Cloud Composer Environment.

This field is supported for Cloud Composer environments in versions composer-2.2.0-airflow-..* and newer.

Returns
TypeDescription
int

setResilienceMode

Optional. Resilience mode of the Cloud Composer Environment.

This field is supported for Cloud Composer environments in versions composer-2.2.0-airflow-..* and newer.

Parameter
NameDescription
var int
Returns
TypeDescription
$this