airflow.providers.google.cloud.operators.cloud_composer
¶
Module Contents¶
Classes¶
Helper class for constructing Cloud Composer Environment Link |
|
Helper class for constructing Cloud Composer Environment Link |
|
Create a new environment. |
|
Delete an environment. |
|
Get an existing environment. |
|
List environments. |
|
Update an environment. |
|
List ImageVersions for provided location. |
Attributes¶
- airflow.providers.google.cloud.operators.cloud_composer.CLOUD_COMPOSER_BASE_LINK = https://console.cloud.google.com/composer/environments[source]¶
- class airflow.providers.google.cloud.operators.cloud_composer.CloudComposerEnvironmentLink[source]¶
Bases:
airflow.providers.google.cloud.links.base.BaseGoogleLink
Helper class for constructing Cloud Composer Environment Link
- class airflow.providers.google.cloud.operators.cloud_composer.CloudComposerEnvironmentsLink[source]¶
Bases:
airflow.providers.google.cloud.links.base.BaseGoogleLink
Helper class for constructing Cloud Composer Environment Link
- class airflow.providers.google.cloud.operators.cloud_composer.CloudComposerCreateEnvironmentOperator(*, project_id, region, environment_id, environment, gcp_conn_id='google_cloud_default', impersonation_chain=None, delegate_to=None, retry=DEFAULT, timeout=None, metadata=(), deferrable=False, pooling_period_seconds=30, **kwargs)[source]¶
Bases:
airflow.models.BaseOperator
Create a new environment.
- Parameters
project_id (str) – Required. The ID of the Google Cloud project that the service belongs to.
region (str) – Required. The ID of the Google Cloud region that the service belongs to.
environment_id (str) – Required. The ID of the Google Cloud environment that the service belongs to.
environment (Union[google.cloud.orchestration.airflow.service_v1.types.Environment, Dict]) – The environment to create.
gcp_conn_id (str) –
impersonation_chain (Optional[Union[str, Sequence[str]]]) – Optional service account to impersonate using short-term credentials, or chained list of accounts required to get the access_token of the last account in the list, which will be impersonated in the request. If set as a string, the account must grant the originating account the Service Account Token Creator IAM role. If set as a sequence, the identities from the list must grant Service Account Token Creator IAM role to the directly preceding identity, with first account from the list granting this role to the originating account (templated).
delegate_to (Optional[str]) – The account to impersonate using domain-wide delegation of authority, if any. For this to work, the service account making the request must have domain-wide delegation enabled.
retry (Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault]) – Designation of what errors, if any, should be retried.
timeout (Optional[float]) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
deferrable (bool) – Run operator in the deferrable mode
pooling_period_seconds (int) – Optional: Control the rate of the poll for the result of deferrable run. By default the trigger will poll every 30 seconds.
- template_fields = ['project_id', 'region', 'environment_id', 'environment', 'impersonation_chain'][source]¶
- class airflow.providers.google.cloud.operators.cloud_composer.CloudComposerDeleteEnvironmentOperator(*, project_id, region, environment_id, retry=DEFAULT, timeout=None, metadata=(), gcp_conn_id='google_cloud_default', impersonation_chain=None, delegate_to=None, deferrable=False, pooling_period_seconds=30, **kwargs)[source]¶
Bases:
airflow.models.BaseOperator
Delete an environment.
- Parameters
project_id (str) – Required. The ID of the Google Cloud project that the service belongs to.
region (str) – Required. The ID of the Google Cloud region that the service belongs to.
environment_id (str) – Required. The ID of the Google Cloud environment that the service belongs to.
retry (Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault]) – Designation of what errors, if any, should be retried.
timeout (Optional[float]) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
gcp_conn_id (str) –
impersonation_chain (Optional[Union[str, Sequence[str]]]) – Optional service account to impersonate using short-term credentials, or chained list of accounts required to get the access_token of the last account in the list, which will be impersonated in the request. If set as a string, the account must grant the originating account the Service Account Token Creator IAM role. If set as a sequence, the identities from the list must grant Service Account Token Creator IAM role to the directly preceding identity, with first account from the list granting this role to the originating account (templated).
delegate_to (Optional[str]) – The account to impersonate using domain-wide delegation of authority, if any. For this to work, the service account making the request must have domain-wide delegation enabled.
deferrable (bool) – Run operator in the deferrable mode
pooling_period_seconds (int) – Optional: Control the rate of the poll for the result of deferrable run. By default the trigger will poll every 30 seconds.
- class airflow.providers.google.cloud.operators.cloud_composer.CloudComposerGetEnvironmentOperator(*, project_id, region, environment_id, retry=DEFAULT, timeout=None, metadata=(), gcp_conn_id='google_cloud_default', impersonation_chain=None, delegate_to=None, **kwargs)[source]¶
Bases:
airflow.models.BaseOperator
Get an existing environment.
- Parameters
project_id (str) – Required. The ID of the Google Cloud project that the service belongs to.
region (str) – Required. The ID of the Google Cloud region that the service belongs to.
environment_id (str) – Required. The ID of the Google Cloud environment that the service belongs to.
retry (Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault]) – Designation of what errors, if any, should be retried.
timeout (Optional[float]) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
gcp_conn_id (str) –
impersonation_chain (Optional[Union[str, Sequence[str]]]) – Optional service account to impersonate using short-term credentials, or chained list of accounts required to get the access_token of the last account in the list, which will be impersonated in the request. If set as a string, the account must grant the originating account the Service Account Token Creator IAM role. If set as a sequence, the identities from the list must grant Service Account Token Creator IAM role to the directly preceding identity, with first account from the list granting this role to the originating account (templated).
delegate_to (Optional[str]) – The account to impersonate using domain-wide delegation of authority, if any. For this to work, the service account making the request must have domain-wide delegation enabled.
- class airflow.providers.google.cloud.operators.cloud_composer.CloudComposerListEnvironmentsOperator(*, project_id, region, page_size=None, page_token=None, retry=DEFAULT, timeout=None, metadata=(), gcp_conn_id='google_cloud_default', impersonation_chain=None, delegate_to=None, **kwargs)[source]¶
Bases:
airflow.models.BaseOperator
List environments.
- Parameters
project_id (str) – Required. The ID of the Google Cloud project that the service belongs to.
region (str) – Required. The ID of the Google Cloud region that the service belongs to.
page_size (Optional[int]) – The maximum number of environments to return.
page_token (Optional[str]) – The next_page_token value returned from a previous List request, if any.
retry (Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault]) – Designation of what errors, if any, should be retried.
timeout (Optional[float]) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
gcp_conn_id (str) –
impersonation_chain (Optional[Union[str, Sequence[str]]]) – Optional service account to impersonate using short-term credentials, or chained list of accounts required to get the access_token of the last account in the list, which will be impersonated in the request. If set as a string, the account must grant the originating account the Service Account Token Creator IAM role. If set as a sequence, the identities from the list must grant Service Account Token Creator IAM role to the directly preceding identity, with first account from the list granting this role to the originating account (templated).
delegate_to (Optional[str]) – The account to impersonate using domain-wide delegation of authority, if any. For this to work, the service account making the request must have domain-wide delegation enabled.
- class airflow.providers.google.cloud.operators.cloud_composer.CloudComposerUpdateEnvironmentOperator(*, project_id, region, environment_id, environment, update_mask, retry=DEFAULT, timeout=None, metadata=(), gcp_conn_id='google_cloud_default', impersonation_chain=None, delegate_to=None, deferrable=False, pooling_period_seconds=30, **kwargs)[source]¶
Bases:
airflow.models.BaseOperator
Update an environment.
- Parameters
project_id (str) – Required. The ID of the Google Cloud project that the service belongs to.
region (str) – Required. The ID of the Google Cloud region that the service belongs to.
environment_id (str) – Required. The ID of the Google Cloud environment that the service belongs to.
environment (Union[Dict, google.cloud.orchestration.airflow.service_v1.types.Environment]) – A patch environment. Fields specified by the
updateMask
will be copied from the patch environment into the environment under update.update_mask (Union[Dict, google.protobuf.field_mask_pb2.FieldMask]) – Required. A comma-separated list of paths, relative to
Environment
, of fields to update. If a dict is provided, it must be of the same form as the protobuf messageFieldMask
retry (Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault]) – Designation of what errors, if any, should be retried.
timeout (Optional[float]) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
gcp_conn_id (str) –
impersonation_chain (Optional[Union[str, Sequence[str]]]) – Optional service account to impersonate using short-term credentials, or chained list of accounts required to get the access_token of the last account in the list, which will be impersonated in the request. If set as a string, the account must grant the originating account the Service Account Token Creator IAM role. If set as a sequence, the identities from the list must grant Service Account Token Creator IAM role to the directly preceding identity, with first account from the list granting this role to the originating account (templated).
delegate_to (Optional[str]) – The account to impersonate using domain-wide delegation of authority, if any. For this to work, the service account making the request must have domain-wide delegation enabled.
deferrable (bool) – Run operator in the deferrable mode
pooling_period_seconds (int) – Optional: Control the rate of the poll for the result of deferrable run. By default the trigger will poll every 30 seconds.
- class airflow.providers.google.cloud.operators.cloud_composer.CloudComposerListImageVersionsOperator(*, project_id, region, page_size=None, page_token=None, include_past_releases=False, retry=DEFAULT, timeout=None, metadata=(), gcp_conn_id='google_cloud_default', impersonation_chain=None, delegate_to=None, **kwargs)[source]¶
Bases:
airflow.models.BaseOperator
List ImageVersions for provided location.
- Parameters
request – The request object. List ImageVersions in a project and location.
retry (Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault]) – Designation of what errors, if any, should be retried.
timeout (Optional[float]) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
gcp_conn_id (str) –
impersonation_chain (Optional[Union[str, Sequence[str]]]) – Optional service account to impersonate using short-term credentials, or chained list of accounts required to get the access_token of the last account in the list, which will be impersonated in the request. If set as a string, the account must grant the originating account the Service Account Token Creator IAM role. If set as a sequence, the identities from the list must grant Service Account Token Creator IAM role to the directly preceding identity, with first account from the list granting this role to the originating account (templated).
delegate_to (Optional[str]) – The account to impersonate using domain-wide delegation of authority, if any. For this to work, the service account making the request must have domain-wide delegation enabled.