diff options
author | The Magician <magic-modules@google.com> | 2019-10-01 15:26:56 -0700 |
---|---|---|
committer | ansibot <ansibot@users.noreply.github.com> | 2019-10-01 18:26:56 -0400 |
commit | ecc47b653b282efe975459514ca1236e582fabb7 (patch) | |
tree | 49e4cf55dc21bba192a105eb1f0d6fecc709ed58 /lib/ansible/modules/cloud/google/gcp_storage_bucket.py | |
parent | 8bfc39e231e1a16a0eb52416737bb34435201036 (diff) | |
download | ansible-ecc47b653b282efe975459514ca1236e582fabb7.tar.gz |
Bug fixes for GCP modules (#61918)
Diffstat (limited to 'lib/ansible/modules/cloud/google/gcp_storage_bucket.py')
-rw-r--r-- | lib/ansible/modules/cloud/google/gcp_storage_bucket.py | 43 |
1 files changed, 37 insertions, 6 deletions
diff --git a/lib/ansible/modules/cloud/google/gcp_storage_bucket.py b/lib/ansible/modules/cloud/google/gcp_storage_bucket.py index c69f1d3d3d..7f4fb8c640 100644 --- a/lib/ansible/modules/cloud/google/gcp_storage_bucket.py +++ b/lib/ansible/modules/cloud/google/gcp_storage_bucket.py @@ -38,7 +38,7 @@ description: manipulation of an existing bucket's access controls. - A bucket is always owned by the project team owners group. short_description: Creates a GCP Bucket -version_added: 2.6 +version_added: '2.6' author: Google Inc. (@googlecloudplatform) requirements: - python >= 2.6 @@ -144,7 +144,7 @@ options: - Default access controls to apply to new objects when no ACL is provided. required: false type: list - version_added: 2.7 + version_added: '2.7' suboptions: bucket: description: @@ -341,8 +341,7 @@ options: type: str project: description: - - A valid API project identifier. - required: false + - The Google Cloud Platform project to use. type: str predefined_default_object_acl: description: @@ -361,7 +360,39 @@ options: "bucketOwnerRead", "private", "projectPrivate", "publicRead"' required: false type: str -extends_documentation_fragment: gcp + auth_kind: + description: + - The type of credential used. + type: str + required: true + choices: + - application + - machineaccount + - serviceaccount + service_account_contents: + description: + - The contents of a Service Account JSON file, either in a dictionary or as a + JSON string that represents it. + type: jsonarg + service_account_file: + description: + - The path of a Service Account JSON file if serviceaccount is selected as type. + type: path + service_account_email: + description: + - An optional service account email address if machineaccount is selected and + the user does not wish to use the default email. + type: str + scopes: + description: + - Array of scopes to be used + type: list + env_type: + description: + - Specifies which Ansible environment you're running this module within. + - This should not be set unless you know what you're doing. + - This only alters the User Agent string for any API requests. + type: str ''' EXAMPLES = ''' @@ -541,7 +572,7 @@ defaultObjectAcl: type: str id: description: - - The ID of the bucket. For buckets, the id and name properties are the same. + - The ID of the bucket. For buckets, the id and name properities are the same. returned: success type: str lifecycle: |