airflow.contrib.operators.gcs_acl_operator
¶
This module contains Google Cloud Storage ACL entry operator.
Module Contents¶
-
class
airflow.contrib.operators.gcs_acl_operator.
GoogleCloudStorageBucketCreateAclEntryOperator
(bucket, entity, role, user_project=None, gcp_conn_id='google_cloud_default', google_cloud_storage_conn_id=None, *args, **kwargs)[source]¶ Bases:
airflow.models.BaseOperator
Creates a new ACL entry on the specified bucket.
See also
For more information on how to use this operator, take a look at the guide: GoogleCloudStorageBucketCreateAclEntryOperator
- Parameters
bucket (str) – Name of a bucket.
entity (str) – The entity holding the permission, in one of the following forms: user-userId, user-email, group-groupId, group-email, domain-domain, project-team-projectId, allUsers, allAuthenticatedUsers
role (str) – The access permission for the entity. Acceptable values are: “OWNER”, “READER”, “WRITER”.
user_project (str) – (Optional) The project to be billed for this request. Required for Requester Pays buckets.
gcp_conn_id (str) – (Optional) The connection ID used to connect to Google Cloud Platform.
google_cloud_storage_conn_id (str) – (Deprecated) The connection ID used to connect to Google Cloud Platform. This parameter has been deprecated. You should pass the gcp_conn_id parameter instead.
-
class
airflow.contrib.operators.gcs_acl_operator.
GoogleCloudStorageObjectCreateAclEntryOperator
(bucket, object_name, entity, role, generation=None, user_project=None, gcp_conn_id='google_cloud_default', google_cloud_storage_conn_id=None, *args, **kwargs)[source]¶ Bases:
airflow.models.BaseOperator
Creates a new ACL entry on the specified object.
See also
For more information on how to use this operator, take a look at the guide: GoogleCloudStorageObjectCreateAclEntryOperator
- Parameters
bucket (str) – Name of a bucket.
object_name (str) – Name of the object. For information about how to URL encode object names to be path safe, see: https://cloud.google.com/storage/docs/json_api/#encoding
entity (str) – The entity holding the permission, in one of the following forms: user-userId, user-email, group-groupId, group-email, domain-domain, project-team-projectId, allUsers, allAuthenticatedUsers
role (str) – The access permission for the entity. Acceptable values are: “OWNER”, “READER”.
generation (long) – Optional. If present, selects a specific revision of this object.
user_project (str) – (Optional) The project to be billed for this request. Required for Requester Pays buckets.
gcp_conn_id (str) – (Optional) The connection ID used to connect to Google Cloud Platform.
google_cloud_storage_conn_id (str) – (Deprecated) The connection ID used to connect to Google Cloud Platform. This parameter has been deprecated. You should pass the gcp_conn_id parameter instead.