mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-04 18:00:26 -07:00
Merge 6aef6f9b22
into 5a395e234f
This commit is contained in:
commit
65ceb657d9
2 changed files with 47 additions and 3 deletions
|
@ -110,6 +110,11 @@ options:
|
|||
required: false
|
||||
type: dict
|
||||
suboptions:
|
||||
query:
|
||||
description:
|
||||
- A query that BigQuery executes when the view is referenced.
|
||||
required: true
|
||||
type: str
|
||||
use_legacy_sql:
|
||||
description:
|
||||
- Specifies whether to use BigQuery's legacy SQL for this view .
|
||||
|
@ -328,6 +333,11 @@ options:
|
|||
when reading the data.
|
||||
required: false
|
||||
type: int
|
||||
range:
|
||||
description:
|
||||
- Range of a sheet to query from. Only used when non-empty.
|
||||
required: false
|
||||
type: str
|
||||
csv_options:
|
||||
description:
|
||||
- Additional properties to set if sourceFormat is set to CSV.
|
||||
|
@ -638,6 +648,11 @@ view:
|
|||
returned: success
|
||||
type: complex
|
||||
contains:
|
||||
query:
|
||||
description:
|
||||
- A query that BigQuery executes when the view is referenced.
|
||||
required: true
|
||||
type: str
|
||||
useLegacySql:
|
||||
description:
|
||||
- Specifies whether to use BigQuery's legacy SQL for this view .
|
||||
|
@ -1023,6 +1038,7 @@ def main():
|
|||
view=dict(
|
||||
type='dict',
|
||||
options=dict(
|
||||
query=dict(required=True, 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'))
|
||||
|
@ -1073,7 +1089,13 @@ def main():
|
|||
)
|
||||
),
|
||||
),
|
||||
google_sheets_options=dict(type='dict', options=dict(skip_leading_rows=dict(default=0, type='int'))),
|
||||
google_sheets_options=dict(
|
||||
type='dict',
|
||||
options=dict(
|
||||
skip_leading_rows=dict(default=0, type='int')
|
||||
range=dict(type='str')
|
||||
)
|
||||
),
|
||||
csv_options=dict(
|
||||
type='dict',
|
||||
options=dict(
|
||||
|
@ -1301,6 +1323,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
|
||||
|
@ -1311,6 +1334,7 @@ class TableView(object):
|
|||
def from_response(self):
|
||||
return remove_nones_from_dict(
|
||||
{
|
||||
u'query': self.request.get(u'query'),
|
||||
u'useLegacySql': self.request.get(u'useLegacySql'),
|
||||
u'userDefinedFunctionResources': TableUserdefinedfunctionresourcesArray(
|
||||
self.request.get(u'userDefinedFunctionResources', []), self.module
|
||||
|
@ -1561,10 +1585,20 @@ class TableGooglesheetsoptions(object):
|
|||
self.request = {}
|
||||
|
||||
def to_request(self):
|
||||
return remove_nones_from_dict({u'skipLeadingRows': self.request.get('skip_leading_rows')})
|
||||
return remove_nones_from_dict(
|
||||
{
|
||||
u'skipLeadingRows': self.request.get('skip_leading_rows'),
|
||||
u'range': self.request.get('range'),
|
||||
}
|
||||
)
|
||||
|
||||
def from_response(self):
|
||||
return remove_nones_from_dict({u'skipLeadingRows': self.request.get(u'skipLeadingRows')})
|
||||
return remove_nones_from_dict(
|
||||
{
|
||||
u'skipLeadingRows': self.request.get(u'skipLeadingRows'),
|
||||
u'range': self.request.get(u'range'),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
class TableCsvoptions(object):
|
||||
|
|
|
@ -221,6 +221,11 @@ resources:
|
|||
returned: success
|
||||
type: complex
|
||||
contains:
|
||||
query:
|
||||
description:
|
||||
- A query that BigQuery executes when the view is referenced.
|
||||
required: true
|
||||
type: str
|
||||
useLegacySql:
|
||||
description:
|
||||
- Specifies whether to use BigQuery's legacy SQL for this view .
|
||||
|
@ -451,6 +456,11 @@ resources:
|
|||
skip when reading the data.
|
||||
returned: success
|
||||
type: int
|
||||
range:
|
||||
description:
|
||||
- Range of a sheet to query from. Only used when non-empty.
|
||||
required: false
|
||||
type: str
|
||||
csvOptions:
|
||||
description:
|
||||
- Additional properties to set if sourceFormat is set to CSV.
|
||||
|
|
Loading…
Add table
Reference in a new issue