mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-06 10:50:28 -07:00
stop databases from being deleted (#312)
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
52bdcb7906
commit
a6d44765e7
4 changed files with 4 additions and 8 deletions
|
@ -186,8 +186,7 @@ def create(module, link):
|
|||
|
||||
|
||||
def update(module, link):
|
||||
delete(module, self_link(module))
|
||||
create(module, collection(module))
|
||||
module.fail_json(msg="Spanner objects can't be updated to ensure data safety")
|
||||
|
||||
|
||||
def delete(module, link):
|
||||
|
|
|
@ -202,8 +202,7 @@ def create(module, link):
|
|||
|
||||
|
||||
def update(module, link):
|
||||
auth = GcpSession(module, 'spanner')
|
||||
return wait_for_operation(module, auth.patch(link, resource_to_update(module)))
|
||||
module.fail_json(msg="Spanner objects can't be updated to ensure data safety")
|
||||
|
||||
|
||||
def delete(module, link):
|
||||
|
|
|
@ -187,8 +187,7 @@ def create(module, link, kind):
|
|||
|
||||
|
||||
def update(module, link, kind):
|
||||
auth = GcpSession(module, 'sql')
|
||||
return wait_for_operation(module, auth.put(link, resource_to_request(module)))
|
||||
module.fail_json(msg="SQL objects can't be updated to ensure data safety")
|
||||
|
||||
|
||||
def delete(module, link, kind):
|
||||
|
|
|
@ -763,8 +763,7 @@ def create(module, link, kind):
|
|||
|
||||
|
||||
def update(module, link, kind, fetch):
|
||||
auth = GcpSession(module, 'sql')
|
||||
return wait_for_operation(module, auth.put(link, resource_to_request(module)))
|
||||
module.fail_json(msg="SQL objects can't be updated to ensure data safety")
|
||||
|
||||
|
||||
def delete(module, link, kind, fetch):
|
||||
|
|
Loading…
Add table
Reference in a new issue