mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-07 03:10:30 -07:00
Changed scopes defaults on Facts modules
<!-- This change is generated by MagicModules. --> /cc @rambleraptor
This commit is contained in:
parent
8264deeb9c
commit
f20f73a030
20 changed files with 55 additions and 20 deletions
|
@ -147,7 +147,12 @@ import json
|
|||
|
||||
|
||||
def main():
|
||||
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str')))
|
||||
module = GcpModule(
|
||||
argument_spec=dict(
|
||||
filters=dict(type='list', elements='str'),
|
||||
region=dict(required=True, type='str')
|
||||
)
|
||||
)
|
||||
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/compute']
|
||||
|
|
|
@ -156,7 +156,12 @@ import json
|
|||
|
||||
|
||||
def main():
|
||||
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), zone=dict(required=True, type='str')))
|
||||
module = GcpModule(
|
||||
argument_spec=dict(
|
||||
filters=dict(type='list', elements='str'),
|
||||
zone=dict(required=True, type='str')
|
||||
)
|
||||
)
|
||||
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/compute']
|
||||
|
|
|
@ -167,7 +167,7 @@ def main():
|
|||
)
|
||||
)
|
||||
|
||||
if 'scopes' not in module.params:
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/compute']
|
||||
|
||||
items = fetch_list(module, collection(module), query_options(module.params['filters']))
|
||||
|
|
|
@ -235,7 +235,7 @@ def main():
|
|||
)
|
||||
)
|
||||
|
||||
if 'scopes' not in module.params:
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/compute']
|
||||
|
||||
items = fetch_list(module, collection(module), query_options(module.params['filters']))
|
||||
|
|
|
@ -166,7 +166,12 @@ import json
|
|||
|
||||
|
||||
def main():
|
||||
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str')))
|
||||
module = GcpModule(
|
||||
argument_spec=dict(
|
||||
filters=dict(type='list', elements='str'),
|
||||
region=dict(required=True, type='str')
|
||||
)
|
||||
)
|
||||
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/compute']
|
||||
|
|
|
@ -175,7 +175,12 @@ import json
|
|||
|
||||
|
||||
def main():
|
||||
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str')))
|
||||
module = GcpModule(
|
||||
argument_spec=dict(
|
||||
filters=dict(type='list', elements='str'),
|
||||
region=dict(required=True, type='str')
|
||||
)
|
||||
)
|
||||
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/compute']
|
||||
|
|
|
@ -167,7 +167,12 @@ import json
|
|||
|
||||
|
||||
def main():
|
||||
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str')))
|
||||
module = GcpModule(
|
||||
argument_spec=dict(
|
||||
filters=dict(type='list', elements='str'),
|
||||
region=dict(required=True, type='str')
|
||||
)
|
||||
)
|
||||
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/compute']
|
||||
|
|
|
@ -129,7 +129,12 @@ import json
|
|||
|
||||
|
||||
def main():
|
||||
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str')))
|
||||
module = GcpModule(
|
||||
argument_spec=dict(
|
||||
filters=dict(type='list', elements='str'),
|
||||
region=dict(required=True, type='str')
|
||||
)
|
||||
)
|
||||
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/compute']
|
||||
|
|
|
@ -167,7 +167,12 @@ import json
|
|||
|
||||
|
||||
def main():
|
||||
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str')))
|
||||
module = GcpModule(
|
||||
argument_spec=dict(
|
||||
filters=dict(type='list', elements='str'),
|
||||
region=dict(required=True, type='str')
|
||||
)
|
||||
)
|
||||
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/compute']
|
||||
|
|
|
@ -375,7 +375,7 @@ def main():
|
|||
)
|
||||
)
|
||||
|
||||
if 'scopes' not in module.params:
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/cloud-platform']
|
||||
|
||||
items = fetch_list(module, collection(module))
|
||||
|
|
|
@ -276,7 +276,7 @@ def main():
|
|||
)
|
||||
)
|
||||
|
||||
if 'scopes' not in module.params:
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/cloud-platform']
|
||||
|
||||
items = fetch_list(module, collection(module))
|
||||
|
|
|
@ -123,7 +123,7 @@ def main():
|
|||
)
|
||||
)
|
||||
|
||||
if 'scopes' not in module.params:
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/ndev.clouddns.readwrite']
|
||||
|
||||
items = fetch_list(module, collection(module), module.params['dns_name'])
|
||||
|
|
|
@ -115,7 +115,7 @@ def main():
|
|||
)
|
||||
)
|
||||
|
||||
if 'scopes' not in module.params:
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/ndev.clouddns.readwrite']
|
||||
|
||||
items = fetch_list(module, collection(module))
|
||||
|
|
|
@ -120,7 +120,7 @@ def main():
|
|||
)
|
||||
)
|
||||
|
||||
if 'scopes' not in module.params:
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/pubsub']
|
||||
|
||||
items = fetch_list(module, collection(module))
|
||||
|
|
|
@ -82,7 +82,7 @@ def main():
|
|||
)
|
||||
)
|
||||
|
||||
if 'scopes' not in module.params:
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/pubsub']
|
||||
|
||||
items = fetch_list(module, collection(module))
|
||||
|
|
|
@ -108,7 +108,7 @@ def main():
|
|||
)
|
||||
)
|
||||
|
||||
if 'scopes' not in module.params:
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/spanner.admin']
|
||||
|
||||
items = fetch_list(module, collection(module))
|
||||
|
|
|
@ -123,7 +123,7 @@ def main():
|
|||
)
|
||||
)
|
||||
|
||||
if 'scopes' not in module.params:
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/spanner.admin']
|
||||
|
||||
items = fetch_list(module, collection(module))
|
||||
|
|
|
@ -109,7 +109,7 @@ def main():
|
|||
)
|
||||
)
|
||||
|
||||
if 'scopes' not in module.params:
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/sqlservice.admin']
|
||||
|
||||
items = fetch_list(module, collection(module))
|
||||
|
|
|
@ -340,7 +340,7 @@ def main():
|
|||
)
|
||||
)
|
||||
|
||||
if 'scopes' not in module.params:
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/sqlservice.admin']
|
||||
|
||||
items = fetch_list(module, collection(module))
|
||||
|
|
|
@ -110,7 +110,7 @@ def main():
|
|||
)
|
||||
)
|
||||
|
||||
if 'scopes' not in module.params:
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/sqlservice.admin']
|
||||
|
||||
items = fetch_list(module, collection(module))
|
||||
|
|
Loading…
Add table
Reference in a new issue