Merge pull request #694 from thekad/feature/nested_bigquery_schema

Feature/nested bigquery schema
This commit is contained in:
Chris Hawk 2025-07-29 15:17:43 -07:00 committed by GitHub
commit 79504d54d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 109 additions and 8 deletions

View file

@ -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:
@ -181,7 +181,7 @@ options:
fields:
description:
- Describes the nested schema fields if the type property is set to RECORD.
elements: str
elements: raw
required: false
type: list
mode:
@ -296,7 +296,7 @@ options:
description:
- Describes the nested schema fields if the type property is set to
RECORD .
elements: str
elements: raw
required: false
type: list
mode:
@ -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'),
@ -1041,7 +1045,7 @@ def main():
elements='dict',
options=dict(
description=dict(type='str'),
fields=dict(type='list', elements='str'),
fields=dict(type='list', elements='raw'),
mode=dict(type='str'),
name=dict(type='str'),
type=dict(type='str'),
@ -1068,7 +1072,7 @@ def main():
elements='dict',
options=dict(
description=dict(type='str'),
fields=dict(type='list', elements='str'),
fields=dict(type='list', elements='raw'),
mode=dict(type='str'),
name=dict(type='str'),
type=dict(type='str'),