mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-06 10:50:28 -07:00
Add parameter query for view element. Fix table info module
This commit is contained in:
parent
05f0e6d0e2
commit
6aef6f9b22
2 changed files with 23 additions and 0 deletions
|
@ -113,6 +113,11 @@ options:
|
||||||
required: false
|
required: false
|
||||||
type: dict
|
type: dict
|
||||||
suboptions:
|
suboptions:
|
||||||
|
query:
|
||||||
|
description:
|
||||||
|
- A query that BigQuery executes when the view is referenced.
|
||||||
|
required: true
|
||||||
|
type: str
|
||||||
use_legacy_sql:
|
use_legacy_sql:
|
||||||
description:
|
description:
|
||||||
- Specifies whether to use BigQuery's legacy SQL for this view .
|
- Specifies whether to use BigQuery's legacy SQL for this view .
|
||||||
|
@ -641,6 +646,11 @@ view:
|
||||||
returned: success
|
returned: success
|
||||||
type: complex
|
type: complex
|
||||||
contains:
|
contains:
|
||||||
|
query:
|
||||||
|
description:
|
||||||
|
- A query that BigQuery executes when the view is referenced.
|
||||||
|
required: true
|
||||||
|
type: str
|
||||||
useLegacySql:
|
useLegacySql:
|
||||||
description:
|
description:
|
||||||
- Specifies whether to use BigQuery's legacy SQL for this view .
|
- Specifies whether to use BigQuery's legacy SQL for this view .
|
||||||
|
@ -1027,6 +1037,7 @@ def main():
|
||||||
view=dict(
|
view=dict(
|
||||||
type='dict',
|
type='dict',
|
||||||
options=dict(
|
options=dict(
|
||||||
|
query=dict(required=True, type='str'),
|
||||||
use_legacy_sql=dict(type='bool'),
|
use_legacy_sql=dict(type='bool'),
|
||||||
user_defined_function_resources=dict(
|
user_defined_function_resources=dict(
|
||||||
type='list', elements='dict', options=dict(inline_code=dict(type='str'), resource_uri=dict(type='str'))
|
type='list', elements='dict', options=dict(inline_code=dict(type='str'), resource_uri=dict(type='str'))
|
||||||
|
@ -1311,6 +1322,7 @@ class TableView(object):
|
||||||
def to_request(self):
|
def to_request(self):
|
||||||
return remove_nones_from_dict(
|
return remove_nones_from_dict(
|
||||||
{
|
{
|
||||||
|
u'query': self.request.get('query'),
|
||||||
u'useLegacySql': self.request.get('use_legacy_sql'),
|
u'useLegacySql': self.request.get('use_legacy_sql'),
|
||||||
u'userDefinedFunctionResources': TableUserdefinedfunctionresourcesArray(
|
u'userDefinedFunctionResources': TableUserdefinedfunctionresourcesArray(
|
||||||
self.request.get('user_defined_function_resources', []), self.module
|
self.request.get('user_defined_function_resources', []), self.module
|
||||||
|
@ -1321,6 +1333,7 @@ class TableView(object):
|
||||||
def from_response(self):
|
def from_response(self):
|
||||||
return remove_nones_from_dict(
|
return remove_nones_from_dict(
|
||||||
{
|
{
|
||||||
|
u'query': self.request.get(u'query'),
|
||||||
u'useLegacySql': self.request.get(u'useLegacySql'),
|
u'useLegacySql': self.request.get(u'useLegacySql'),
|
||||||
u'userDefinedFunctionResources': TableUserdefinedfunctionresourcesArray(
|
u'userDefinedFunctionResources': TableUserdefinedfunctionresourcesArray(
|
||||||
self.request.get(u'userDefinedFunctionResources', []), self.module
|
self.request.get(u'userDefinedFunctionResources', []), self.module
|
||||||
|
|
|
@ -214,6 +214,11 @@ resources:
|
||||||
returned: success
|
returned: success
|
||||||
type: complex
|
type: complex
|
||||||
contains:
|
contains:
|
||||||
|
query:
|
||||||
|
description:
|
||||||
|
- A query that BigQuery executes when the view is referenced.
|
||||||
|
required: true
|
||||||
|
type: str
|
||||||
useLegacySql:
|
useLegacySql:
|
||||||
description:
|
description:
|
||||||
- Specifies whether to use BigQuery's legacy SQL for this view .
|
- Specifies whether to use BigQuery's legacy SQL for this view .
|
||||||
|
@ -444,6 +449,11 @@ resources:
|
||||||
skip when reading the data.
|
skip when reading the data.
|
||||||
returned: success
|
returned: success
|
||||||
type: int
|
type: int
|
||||||
|
range:
|
||||||
|
description:
|
||||||
|
- Range of a sheet to query from. Only used when non-empty.
|
||||||
|
required: false
|
||||||
|
type: str
|
||||||
csvOptions:
|
csvOptions:
|
||||||
description:
|
description:
|
||||||
- Additional properties to set if sourceFormat is set to CSV.
|
- Additional properties to set if sourceFormat is set to CSV.
|
||||||
|
|
Loading…
Add table
Reference in a new issue