mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-06 10:50:28 -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
|
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 .
|
||||||
|
@ -328,6 +333,11 @@ options:
|
||||||
when reading the data.
|
when reading the data.
|
||||||
required: false
|
required: false
|
||||||
type: int
|
type: int
|
||||||
|
range:
|
||||||
|
description:
|
||||||
|
- Range of a sheet to query from. Only used when non-empty.
|
||||||
|
required: false
|
||||||
|
type: str
|
||||||
csv_options:
|
csv_options:
|
||||||
description:
|
description:
|
||||||
- Additional properties to set if sourceFormat is set to CSV.
|
- Additional properties to set if sourceFormat is set to CSV.
|
||||||
|
@ -638,6 +648,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 .
|
||||||
|
@ -1023,6 +1038,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'))
|
||||||
|
@ -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(
|
csv_options=dict(
|
||||||
type='dict',
|
type='dict',
|
||||||
options=dict(
|
options=dict(
|
||||||
|
@ -1301,6 +1323,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
|
||||||
|
@ -1311,6 +1334,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
|
||||||
|
@ -1561,10 +1585,20 @@ class TableGooglesheetsoptions(object):
|
||||||
self.request = {}
|
self.request = {}
|
||||||
|
|
||||||
def to_request(self):
|
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):
|
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):
|
class TableCsvoptions(object):
|
||||||
|
|
|
@ -221,6 +221,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 .
|
||||||
|
@ -451,6 +456,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