From bd876e58d2401ce122e686687684da5010fb5285 Mon Sep 17 00:00:00 2001 From: The Magician Date: Thu, 9 Apr 2020 13:09:14 -0700 Subject: [PATCH] Inspec bucket labels (#3364) (#191) * Add labels to storage bucket * Fix label include test Signed-off-by: Modular Magician --- plugins/modules/gcp_storage_bucket.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/modules/gcp_storage_bucket.py b/plugins/modules/gcp_storage_bucket.py index 5c8b93f..f52b234 100644 --- a/plugins/modules/gcp_storage_bucket.py +++ b/plugins/modules/gcp_storage_bucket.py @@ -375,6 +375,12 @@ options: "bucketOwnerRead", "private", "projectPrivate", "publicRead"' required: false type: str + labels: + description: + - Labels applied to this bucket. A list of key->value pairs. + required: false + type: dict + version_added: '2.10' auth_kind: description: - The type of credential used. @@ -794,6 +800,11 @@ predefinedDefaultObjectAcl: - '- "publicRead": Object owner gets OWNER access, and allUsers get READER access.' returned: success type: str +labels: + description: + - Labels applied to this bucket. A list of key->value pairs. + returned: success + type: dict ''' ################################################################################ @@ -885,6 +896,7 @@ def main(): website=dict(type='dict', options=dict(main_page_suffix=dict(type='str'), not_found_page=dict(type='str'))), project=dict(type='str'), predefined_default_object_acl=dict(type='str'), + labels=dict(type='dict'), ) )