Merge pull request #58 from ansible/sanity_fixes

Sanity test fixes
This commit is contained in:
Alex Stephen 2019-11-13 13:59:19 -08:00 committed by GitHub
commit 3da488f74c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 9 deletions

View file

@ -9,7 +9,7 @@ namespace: google
name: cloud
# 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
readme: README.md

View file

@ -3,6 +3,7 @@
# Copyright: (c) 2018, Google Inc.
# 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):
# GCP doc fragment.

View file

@ -1,6 +1,8 @@
# Copyright (c), Google Inc, 2017
# 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:
import requests
HAS_REQUESTS = True

View file

@ -252,7 +252,6 @@ options:
- The maximum number of bad records that BigQuery can ignore when reading
data .
required: false
default: '0'
type: int
source_format:
description:
@ -325,7 +324,6 @@ options:
- The number of rows at the top of a Google Sheet that BigQuery will skip
when reading the data.
required: false
default: '0'
type: int
csv_options:
description:
@ -366,7 +364,6 @@ options:
- The number of rows at the top of a CSV file that BigQuery will skip
when reading the data.
required: false
default: '0'
type: int
bigtable_options:
description:

View file

@ -116,26 +116,26 @@ bucket:
type: str
cache_control:
description:
- HTTP Cache-Control header for this object
- HTTP 'Cache-Control' header for this object
returned: download, upload
type: str
chunk_size:
description:
- Get the blobs default chunk size
- Get the blob's default chunk size
returned: download, upload
type: str
media_link:
descrpition:
description:
- The link for the media
returned: download, upload
type: str
self_link:
descrpition:
description:
- The self_link for the media.
returned: download, upload
type: str
storage_class:
descrpition:
description:
- The storage class for the object.
returned: download, upload
type: str
@ -283,6 +283,7 @@ def remote_file_path(module):
else:
return module.params["dest"]
def blob_to_dict(blob):
return {
'bucket': {
@ -295,5 +296,6 @@ def blob_to_dict(blob):
'storage_class': blob.storage_class
}
if __name__ == "__main__":
main()