mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-08-04 21:24:30 -07:00
According to docs, these fields are all mandatory
If you specify table_reference, you should specify all 3 fields as per docs https://cloud.google.com/bigquery/docs/reference/rest/v2/TableReference
This commit is contained in:
parent
8863545bef
commit
577debb433
1 changed files with 8 additions and 4 deletions
|
@ -56,17 +56,17 @@ options:
|
||||||
dataset_id:
|
dataset_id:
|
||||||
description:
|
description:
|
||||||
- The ID of the dataset containing this table.
|
- The ID of the dataset containing this table.
|
||||||
required: false
|
required: true
|
||||||
type: str
|
type: str
|
||||||
project_id:
|
project_id:
|
||||||
description:
|
description:
|
||||||
- The ID of the project containing this table.
|
- The ID of the project containing this table.
|
||||||
required: false
|
required: true
|
||||||
type: str
|
type: str
|
||||||
table_id:
|
table_id:
|
||||||
description:
|
description:
|
||||||
- The ID of the the table.
|
- The ID of the the table.
|
||||||
required: false
|
required: true
|
||||||
type: str
|
type: str
|
||||||
clustering:
|
clustering:
|
||||||
description:
|
description:
|
||||||
|
@ -1016,7 +1016,11 @@ def main():
|
||||||
module = GcpModule(
|
module = GcpModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
||||||
table_reference=dict(type='dict', options=dict(dataset_id=dict(type='str'), project_id=dict(type='str'), table_id=dict(type='str'))),
|
table_reference=dict(type='dict', options=dict(
|
||||||
|
dataset_id=dict(type='str', required=True),
|
||||||
|
project_id=dict(type='str', required=True),
|
||||||
|
table_id=dict(type='str', required=True)
|
||||||
|
)),
|
||||||
clustering=dict(type='list', elements='str'),
|
clustering=dict(type='list', elements='str'),
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
friendly_name=dict(type='str'),
|
friendly_name=dict(type='str'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue