mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-09 04:10:27 -07:00
add defaultEventBasedHold to storage buckets (#132)
Signed-off-by: Modular Magician <magic-modules@google.com> Co-authored-by: Martin Nowak <code@dawg.eu>
This commit is contained in:
parent
50fd7be6ef
commit
0005cba8dd
1 changed files with 16 additions and 0 deletions
|
@ -139,6 +139,13 @@ options:
|
||||||
permission for the user-agent to share across domains.
|
permission for the user-agent to share across domains.
|
||||||
required: false
|
required: false
|
||||||
type: list
|
type: list
|
||||||
|
default_event_based_hold:
|
||||||
|
description:
|
||||||
|
- Whether or not to automatically apply an eventBasedHold to new objects added
|
||||||
|
to the bucket.
|
||||||
|
required: false
|
||||||
|
type: bool
|
||||||
|
version_added: '2.10'
|
||||||
default_object_acl:
|
default_object_acl:
|
||||||
description:
|
description:
|
||||||
- Default access controls to apply to new objects when no ACL is provided.
|
- Default access controls to apply to new objects when no ACL is provided.
|
||||||
|
@ -500,6 +507,12 @@ cors:
|
||||||
for the user-agent to share across domains.
|
for the user-agent to share across domains.
|
||||||
returned: success
|
returned: success
|
||||||
type: list
|
type: list
|
||||||
|
defaultEventBasedHold:
|
||||||
|
description:
|
||||||
|
- Whether or not to automatically apply an eventBasedHold to new objects added to
|
||||||
|
the bucket.
|
||||||
|
returned: success
|
||||||
|
type: bool
|
||||||
defaultObjectAcl:
|
defaultObjectAcl:
|
||||||
description:
|
description:
|
||||||
- Default access controls to apply to new objects when no ACL is provided.
|
- Default access controls to apply to new objects when no ACL is provided.
|
||||||
|
@ -821,6 +834,7 @@ def main():
|
||||||
response_header=dict(type='list', elements='str'),
|
response_header=dict(type='list', elements='str'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
default_event_based_hold=dict(type='bool'),
|
||||||
default_object_acl=dict(
|
default_object_acl=dict(
|
||||||
type='list',
|
type='list',
|
||||||
elements='dict',
|
elements='dict',
|
||||||
|
@ -919,6 +933,7 @@ def resource_to_request(module):
|
||||||
u'predefinedDefaultObjectAcl': module.params.get('predefined_default_object_acl'),
|
u'predefinedDefaultObjectAcl': module.params.get('predefined_default_object_acl'),
|
||||||
u'acl': BucketAclArray(module.params.get('acl', []), module).to_request(),
|
u'acl': BucketAclArray(module.params.get('acl', []), module).to_request(),
|
||||||
u'cors': BucketCorsArray(module.params.get('cors', []), module).to_request(),
|
u'cors': BucketCorsArray(module.params.get('cors', []), module).to_request(),
|
||||||
|
u'defaultEventBasedHold': module.params.get('default_event_based_hold'),
|
||||||
u'defaultObjectAcl': BucketDefaultobjectaclArray(module.params.get('default_object_acl', []), module).to_request(),
|
u'defaultObjectAcl': BucketDefaultobjectaclArray(module.params.get('default_object_acl', []), module).to_request(),
|
||||||
u'lifecycle': BucketLifecycle(module.params.get('lifecycle', {}), module).to_request(),
|
u'lifecycle': BucketLifecycle(module.params.get('lifecycle', {}), module).to_request(),
|
||||||
u'location': module.params.get('location'),
|
u'location': module.params.get('location'),
|
||||||
|
@ -996,6 +1011,7 @@ def response_to_hash(module, response):
|
||||||
return {
|
return {
|
||||||
u'acl': BucketAclArray(response.get(u'acl', []), module).from_response(),
|
u'acl': BucketAclArray(response.get(u'acl', []), module).from_response(),
|
||||||
u'cors': BucketCorsArray(response.get(u'cors', []), module).from_response(),
|
u'cors': BucketCorsArray(response.get(u'cors', []), module).from_response(),
|
||||||
|
u'defaultEventBasedHold': response.get(u'defaultEventBasedHold'),
|
||||||
u'defaultObjectAcl': BucketDefaultobjectaclArray(module.params.get('default_object_acl', []), module).to_request(),
|
u'defaultObjectAcl': BucketDefaultobjectaclArray(module.params.get('default_object_acl', []), module).to_request(),
|
||||||
u'id': response.get(u'id'),
|
u'id': response.get(u'id'),
|
||||||
u'lifecycle': BucketLifecycle(response.get(u'lifecycle', {}), module).from_response(),
|
u'lifecycle': BucketLifecycle(response.get(u'lifecycle', {}), module).from_response(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue