mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-08-04 13:14: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:
|
||||
description:
|
||||
- The ID of the dataset containing this table.
|
||||
required: false
|
||||
required: true
|
||||
type: str
|
||||
project_id:
|
||||
description:
|
||||
- The ID of the project containing this table.
|
||||
required: false
|
||||
required: true
|
||||
type: str
|
||||
table_id:
|
||||
description:
|
||||
- The ID of the the table.
|
||||
required: false
|
||||
required: true
|
||||
type: str
|
||||
clustering:
|
||||
description:
|
||||
|
@ -1016,7 +1016,11 @@ def main():
|
|||
module = GcpModule(
|
||||
argument_spec=dict(
|
||||
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'),
|
||||
description=dict(type='str'),
|
||||
friendly_name=dict(type='str'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue