mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-09 04:10:27 -07:00
commit
3da488f74c
5 changed files with 11 additions and 9 deletions
|
@ -9,7 +9,7 @@ namespace: google
|
||||||
name: cloud
|
name: cloud
|
||||||
|
|
||||||
# The version of the collection. Must be compatible with semantic versioning
|
# The version of the collection. Must be compatible with semantic versioning
|
||||||
version: 0.0.5
|
version: 0.0.6
|
||||||
|
|
||||||
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
|
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
|
||||||
readme: README.md
|
readme: README.md
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
# Copyright: (c) 2018, Google Inc.
|
# Copyright: (c) 2018, Google Inc.
|
||||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
|
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
|
||||||
class ModuleDocFragment(object):
|
class ModuleDocFragment(object):
|
||||||
# GCP doc fragment.
|
# GCP doc fragment.
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# Copyright (c), Google Inc, 2017
|
# Copyright (c), Google Inc, 2017
|
||||||
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
|
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
|
||||||
|
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import requests
|
import requests
|
||||||
HAS_REQUESTS = True
|
HAS_REQUESTS = True
|
||||||
|
|
|
@ -252,7 +252,6 @@ options:
|
||||||
- The maximum number of bad records that BigQuery can ignore when reading
|
- The maximum number of bad records that BigQuery can ignore when reading
|
||||||
data .
|
data .
|
||||||
required: false
|
required: false
|
||||||
default: '0'
|
|
||||||
type: int
|
type: int
|
||||||
source_format:
|
source_format:
|
||||||
description:
|
description:
|
||||||
|
@ -325,7 +324,6 @@ options:
|
||||||
- The number of rows at the top of a Google Sheet that BigQuery will skip
|
- The number of rows at the top of a Google Sheet that BigQuery will skip
|
||||||
when reading the data.
|
when reading the data.
|
||||||
required: false
|
required: false
|
||||||
default: '0'
|
|
||||||
type: int
|
type: int
|
||||||
csv_options:
|
csv_options:
|
||||||
description:
|
description:
|
||||||
|
@ -366,7 +364,6 @@ options:
|
||||||
- The number of rows at the top of a CSV file that BigQuery will skip
|
- The number of rows at the top of a CSV file that BigQuery will skip
|
||||||
when reading the data.
|
when reading the data.
|
||||||
required: false
|
required: false
|
||||||
default: '0'
|
|
||||||
type: int
|
type: int
|
||||||
bigtable_options:
|
bigtable_options:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -116,26 +116,26 @@ bucket:
|
||||||
type: str
|
type: str
|
||||||
cache_control:
|
cache_control:
|
||||||
description:
|
description:
|
||||||
- HTTP ‘Cache-Control’ header for this object
|
- HTTP 'Cache-Control' header for this object
|
||||||
returned: download, upload
|
returned: download, upload
|
||||||
type: str
|
type: str
|
||||||
chunk_size:
|
chunk_size:
|
||||||
description:
|
description:
|
||||||
- Get the blob’s default chunk size
|
- Get the blob's default chunk size
|
||||||
returned: download, upload
|
returned: download, upload
|
||||||
type: str
|
type: str
|
||||||
media_link:
|
media_link:
|
||||||
descrpition:
|
description:
|
||||||
- The link for the media
|
- The link for the media
|
||||||
returned: download, upload
|
returned: download, upload
|
||||||
type: str
|
type: str
|
||||||
self_link:
|
self_link:
|
||||||
descrpition:
|
description:
|
||||||
- The self_link for the media.
|
- The self_link for the media.
|
||||||
returned: download, upload
|
returned: download, upload
|
||||||
type: str
|
type: str
|
||||||
storage_class:
|
storage_class:
|
||||||
descrpition:
|
description:
|
||||||
- The storage class for the object.
|
- The storage class for the object.
|
||||||
returned: download, upload
|
returned: download, upload
|
||||||
type: str
|
type: str
|
||||||
|
@ -283,6 +283,7 @@ def remote_file_path(module):
|
||||||
else:
|
else:
|
||||||
return module.params["dest"]
|
return module.params["dest"]
|
||||||
|
|
||||||
|
|
||||||
def blob_to_dict(blob):
|
def blob_to_dict(blob):
|
||||||
return {
|
return {
|
||||||
'bucket': {
|
'bucket': {
|
||||||
|
@ -295,5 +296,6 @@ def blob_to_dict(blob):
|
||||||
'storage_class': blob.storage_class
|
'storage_class': blob.storage_class
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Add table
Reference in a new issue