|
|
@ -92,19 +92,13 @@ options:
|
|
|
|
team:
|
|
|
|
team:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The team.
|
|
|
|
- The team.
|
|
|
|
|
|
|
|
- 'Some valid choices include: "editors", "owners", "viewers"'
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
choices:
|
|
|
|
|
|
|
|
- editors
|
|
|
|
|
|
|
|
- owners
|
|
|
|
|
|
|
|
- viewers
|
|
|
|
|
|
|
|
role:
|
|
|
|
role:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The access permission for the entity.
|
|
|
|
- The access permission for the entity.
|
|
|
|
|
|
|
|
- 'Some valid choices include: "OWNER", "READER", "WRITER"'
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
choices:
|
|
|
|
|
|
|
|
- OWNER
|
|
|
|
|
|
|
|
- READER
|
|
|
|
|
|
|
|
- WRITER
|
|
|
|
|
|
|
|
cors:
|
|
|
|
cors:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The bucket's Cross-Origin Resource Sharing (CORS) configuration.
|
|
|
|
- The bucket's Cross-Origin Resource Sharing (CORS) configuration.
|
|
|
@ -161,10 +155,8 @@ options:
|
|
|
|
role:
|
|
|
|
role:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The access permission for the entity.
|
|
|
|
- The access permission for the entity.
|
|
|
|
|
|
|
|
- 'Some valid choices include: "OWNER", "READER"'
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
choices:
|
|
|
|
|
|
|
|
- OWNER
|
|
|
|
|
|
|
|
- READER
|
|
|
|
|
|
|
|
lifecycle:
|
|
|
|
lifecycle:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The bucket's lifecycle configuration.
|
|
|
|
- The bucket's lifecycle configuration.
|
|
|
@ -190,10 +182,8 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Type of the action. Currently, only Delete and SetStorageClass are
|
|
|
|
- Type of the action. Currently, only Delete and SetStorageClass are
|
|
|
|
supported.
|
|
|
|
supported.
|
|
|
|
|
|
|
|
- 'Some valid choices include: "Delete", "SetStorageClass"'
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
choices:
|
|
|
|
|
|
|
|
- Delete
|
|
|
|
|
|
|
|
- SetStorageClass
|
|
|
|
|
|
|
|
condition:
|
|
|
|
condition:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The condition(s) under which the action will be taken.
|
|
|
|
- The condition(s) under which the action will be taken.
|
|
|
@ -274,14 +264,9 @@ options:
|
|
|
|
- Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, and DURABLE_REDUCED_AVAILABILITY.
|
|
|
|
- Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, and DURABLE_REDUCED_AVAILABILITY.
|
|
|
|
If this value is not specified when the bucket is created, it will default to
|
|
|
|
If this value is not specified when the bucket is created, it will default to
|
|
|
|
STANDARD. For more information, see storage classes.
|
|
|
|
STANDARD. For more information, see storage classes.
|
|
|
|
|
|
|
|
- 'Some valid choices include: "MULTI_REGIONAL", "REGIONAL", "STANDARD", "NEARLINE",
|
|
|
|
|
|
|
|
"COLDLINE", "DURABLE_REDUCED_AVAILABILITY"'
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
choices:
|
|
|
|
|
|
|
|
- MULTI_REGIONAL
|
|
|
|
|
|
|
|
- REGIONAL
|
|
|
|
|
|
|
|
- STANDARD
|
|
|
|
|
|
|
|
- NEARLINE
|
|
|
|
|
|
|
|
- COLDLINE
|
|
|
|
|
|
|
|
- DURABLE_REDUCED_AVAILABILITY
|
|
|
|
|
|
|
|
versioning:
|
|
|
|
versioning:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The bucket's versioning configuration.
|
|
|
|
- The bucket's versioning configuration.
|
|
|
@ -329,14 +314,9 @@ options:
|
|
|
|
- '- "projectPrivate": Object owner gets OWNER access, and project team members
|
|
|
|
- '- "projectPrivate": Object owner gets OWNER access, and project team members
|
|
|
|
get access according to their roles.'
|
|
|
|
get access according to their roles.'
|
|
|
|
- '- "publicRead": Object owner gets OWNER access, and allUsers get READER access.'
|
|
|
|
- '- "publicRead": Object owner gets OWNER access, and allUsers get READER access.'
|
|
|
|
|
|
|
|
- 'Some valid choices include: "authenticatedRead", "bucketOwnerFullControl",
|
|
|
|
|
|
|
|
"bucketOwnerRead", "private", "projectPrivate", "publicRead"'
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
choices:
|
|
|
|
|
|
|
|
- authenticatedRead
|
|
|
|
|
|
|
|
- bucketOwnerFullControl
|
|
|
|
|
|
|
|
- bucketOwnerRead
|
|
|
|
|
|
|
|
- private
|
|
|
|
|
|
|
|
- projectPrivate
|
|
|
|
|
|
|
|
- publicRead
|
|
|
|
|
|
|
|
extends_documentation_fragment: gcp
|
|
|
|
extends_documentation_fragment: gcp
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
@ -745,10 +725,8 @@ def main():
|
|
|
|
bucket=dict(required=True, type='dict'),
|
|
|
|
bucket=dict(required=True, type='dict'),
|
|
|
|
entity=dict(required=True, type='str'),
|
|
|
|
entity=dict(required=True, type='str'),
|
|
|
|
entity_id=dict(type='str'),
|
|
|
|
entity_id=dict(type='str'),
|
|
|
|
project_team=dict(
|
|
|
|
project_team=dict(type='dict', options=dict(project_number=dict(type='str'), team=dict(type='str'))),
|
|
|
|
type='dict', options=dict(project_number=dict(type='str'), team=dict(type='str', choices=['editors', 'owners', 'viewers']))
|
|
|
|
role=dict(type='str'),
|
|
|
|
),
|
|
|
|
|
|
|
|
role=dict(type='str', choices=['OWNER', 'READER', 'WRITER']),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
cors=dict(
|
|
|
|
cors=dict(
|
|
|
@ -768,7 +746,7 @@ def main():
|
|
|
|
bucket=dict(required=True, type='dict'),
|
|
|
|
bucket=dict(required=True, type='dict'),
|
|
|
|
entity=dict(required=True, type='str'),
|
|
|
|
entity=dict(required=True, type='str'),
|
|
|
|
object=dict(type='str'),
|
|
|
|
object=dict(type='str'),
|
|
|
|
role=dict(required=True, type='str', choices=['OWNER', 'READER']),
|
|
|
|
role=dict(required=True, type='str'),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
lifecycle=dict(
|
|
|
|
lifecycle=dict(
|
|
|
@ -778,9 +756,7 @@ def main():
|
|
|
|
type='list',
|
|
|
|
type='list',
|
|
|
|
elements='dict',
|
|
|
|
elements='dict',
|
|
|
|
options=dict(
|
|
|
|
options=dict(
|
|
|
|
action=dict(
|
|
|
|
action=dict(type='dict', options=dict(storage_class=dict(type='str'), type=dict(type='str'))),
|
|
|
|
type='dict', options=dict(storage_class=dict(type='str'), type=dict(type='str', choices=['Delete', 'SetStorageClass']))
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
condition=dict(
|
|
|
|
condition=dict(
|
|
|
|
type='dict',
|
|
|
|
type='dict',
|
|
|
|
options=dict(
|
|
|
|
options=dict(
|
|
|
@ -800,13 +776,11 @@ def main():
|
|
|
|
metageneration=dict(type='int'),
|
|
|
|
metageneration=dict(type='int'),
|
|
|
|
name=dict(type='str'),
|
|
|
|
name=dict(type='str'),
|
|
|
|
owner=dict(type='dict', options=dict(entity=dict(type='str'))),
|
|
|
|
owner=dict(type='dict', options=dict(entity=dict(type='str'))),
|
|
|
|
storage_class=dict(type='str', choices=['MULTI_REGIONAL', 'REGIONAL', 'STANDARD', 'NEARLINE', 'COLDLINE', 'DURABLE_REDUCED_AVAILABILITY']),
|
|
|
|
storage_class=dict(type='str'),
|
|
|
|
versioning=dict(type='dict', options=dict(enabled=dict(type='bool'))),
|
|
|
|
versioning=dict(type='dict', options=dict(enabled=dict(type='bool'))),
|
|
|
|
website=dict(type='dict', options=dict(main_page_suffix=dict(type='str'), not_found_page=dict(type='str'))),
|
|
|
|
website=dict(type='dict', options=dict(main_page_suffix=dict(type='str'), not_found_page=dict(type='str'))),
|
|
|
|
project=dict(type='str'),
|
|
|
|
project=dict(type='str'),
|
|
|
|
predefined_default_object_acl=dict(
|
|
|
|
predefined_default_object_acl=dict(type='str'),
|
|
|
|
type='str', choices=['authenticatedRead', 'bucketOwnerFullControl', 'bucketOwnerRead', 'private', 'projectPrivate', 'publicRead']
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|