mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-05 10:20:26 -07:00
Merge 386dabb99b
into 99ac225a1a
This commit is contained in:
commit
15ba0ab1be
2 changed files with 18 additions and 0 deletions
|
@ -110,6 +110,11 @@ options:
|
|||
required: false
|
||||
type: dict
|
||||
suboptions:
|
||||
query:
|
||||
description:
|
||||
- The SQL query defining this view.
|
||||
required: false
|
||||
type: str
|
||||
use_legacy_sql:
|
||||
description:
|
||||
- Specifies whether to use BigQuery's legacy SQL for this view .
|
||||
|
@ -641,6 +646,11 @@ view:
|
|||
returned: success
|
||||
type: complex
|
||||
contains:
|
||||
query:
|
||||
description:
|
||||
- The SQL query defining this view.
|
||||
returned: success
|
||||
type: str
|
||||
useLegacySql:
|
||||
description:
|
||||
- Specifies whether to use BigQuery's legacy SQL for this view .
|
||||
|
@ -1026,6 +1036,7 @@ def main():
|
|||
view=dict(
|
||||
type='dict',
|
||||
options=dict(
|
||||
query=dict(type='str'),
|
||||
use_legacy_sql=dict(type='bool'),
|
||||
user_defined_function_resources=dict(
|
||||
type='list', elements='dict', options=dict(inline_code=dict(type='str'), resource_uri=dict(type='str'))
|
||||
|
@ -1304,6 +1315,7 @@ class TableView(object):
|
|||
def to_request(self):
|
||||
return remove_nones_from_dict(
|
||||
{
|
||||
u'query': self.request.get('query'),
|
||||
u'useLegacySql': self.request.get('use_legacy_sql'),
|
||||
u'userDefinedFunctionResources': TableUserdefinedfunctionresourcesArray(
|
||||
self.request.get('user_defined_function_resources', []), self.module
|
||||
|
@ -1314,6 +1326,7 @@ class TableView(object):
|
|||
def from_response(self):
|
||||
return remove_nones_from_dict(
|
||||
{
|
||||
u'query': self.request.get('query'),
|
||||
u'useLegacySql': self.request.get(u'useLegacySql'),
|
||||
u'userDefinedFunctionResources': TableUserdefinedfunctionresourcesArray(
|
||||
self.request.get(u'userDefinedFunctionResources', []), self.module
|
||||
|
|
|
@ -221,6 +221,11 @@ resources:
|
|||
returned: success
|
||||
type: complex
|
||||
contains:
|
||||
query:
|
||||
description:
|
||||
- The SQL query defining this view.
|
||||
returned: success
|
||||
type: str
|
||||
useLegacySql:
|
||||
description:
|
||||
- Specifies whether to use BigQuery's legacy SQL for this view .
|
||||
|
|
Loading…
Add table
Reference in a new issue