Skip to content

Update gcp_compute_disk.py #284

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/modules/gcp_appengine_firewall_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
- A single firewall rule that is evaluated against incoming traffic and provides an
action to take on matched requests.
short_description: Creates a GCP FirewallRule
version_added: '2.9'
author: Google Inc. (@googlecloudplatform)
requirements:
- python >= 2.6
Expand Down Expand Up @@ -106,6 +105,7 @@
description:
- Array of scopes to be used
type: list
elements: str
env_type:
description:
- Specifies which Ansible environment you're running this module within.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/gcp_appengine_firewall_rule_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
description:
- Gather info for GCP FirewallRule
short_description: Gather info for GCP FirewallRule
version_added: '2.9'
author: Google Inc. (@googlecloudplatform)
requirements:
- python >= 2.6
Expand Down Expand Up @@ -71,6 +70,7 @@
description:
- Array of scopes to be used
type: list
elements: str
env_type:
description:
- Specifies which Ansible environment you're running this module within.
Expand Down Expand Up @@ -134,7 +134,7 @@
################################################################################
# Imports
################################################################################
from ansible.module_utils.gcp_utils import navigate_hash, GcpSession, GcpModule, GcpRequest
from ansible_collections.google.cloud.plugins.module_utils.gcp_utils import navigate_hash, GcpSession, GcpModule, GcpRequest
import json

################################################################################
Expand Down
8 changes: 3 additions & 5 deletions plugins/modules/gcp_bigquery_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
description:
- Datasets allow you to organize and control access to your tables.
short_description: Creates a GCP Dataset
version_added: '2.8'
author: Google Inc. (@googlecloudplatform)
requirements:
- python >= 2.6
Expand Down Expand Up @@ -167,7 +166,6 @@
the default partition expiration time indicated by this property.'
required: false
type: int
version_added: '2.9'
description:
description:
- A user-friendly description of the dataset.
Expand Down Expand Up @@ -208,7 +206,6 @@
key.
required: false
type: dict
version_added: '2.10'
suboptions:
kms_key_name:
description:
Expand Down Expand Up @@ -248,6 +245,7 @@
description:
- Array of scopes to be used
type: list
elements: str
env_type:
description:
- Specifies which Ansible environment you're running this module within.
Expand Down Expand Up @@ -600,11 +598,11 @@ def fetch_resource(module, link, kind, allow_not_found=True):


def self_link(module):
return "https://www.googleapis.com/bigquery/v2/projects/{project}/datasets/{name}".format(**module.params)
return "https://bigquery.googleapis.com/bigquery/v2/projects/{project}/datasets/{name}".format(**module.params)


def collection(module):
return "https://www.googleapis.com/bigquery/v2/projects/{project}/datasets".format(**module.params)
return "https://bigquery.googleapis.com/bigquery/v2/projects/{project}/datasets".format(**module.params)


def return_if_object(module, response, kind, allow_not_found=False):
Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_bigquery_dataset_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
description:
- Gather info for GCP Dataset
short_description: Gather info for GCP Dataset
version_added: '2.8'
author: Google Inc. (@googlecloudplatform)
requirements:
- python >= 2.6
Expand Down Expand Up @@ -71,6 +70,7 @@
description:
- Array of scopes to be used
type: list
elements: str
env_type:
description:
- Specifies which Ansible environment you're running this module within.
Expand Down Expand Up @@ -298,7 +298,7 @@
################################################################################
# Imports
################################################################################
from ansible.module_utils.gcp_utils import navigate_hash, GcpSession, GcpModule, GcpRequest
from ansible_collections.google.cloud.plugins.module_utils.gcp_utils import navigate_hash, GcpSession, GcpModule, GcpRequest
import json

################################################################################
Expand All @@ -317,7 +317,7 @@ def main():


def collection(module):
return "https://www.googleapis.com/bigquery/v2/projects/{project}/datasets".format(**module.params)
return "https://bigquery.googleapis.com/bigquery/v2/projects/{project}/datasets".format(**module.params)


def fetch_list(module, link):
Expand Down
9 changes: 3 additions & 6 deletions plugins/modules/gcp_bigquery_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
description:
- A Table that belongs to a Dataset .
short_description: Creates a GCP Table
version_added: '2.8'
author: Google Inc. (@googlecloudplatform)
requirements:
- python >= 2.6
Expand Down Expand Up @@ -78,7 +77,6 @@
elements: str
required: false
type: list
version_added: '2.9'
description:
description:
- A user-friendly description of the dataset.
Expand Down Expand Up @@ -106,7 +104,6 @@
buffer.
required: false
type: int
version_added: '2.9'
view:
description:
- The view definition.
Expand Down Expand Up @@ -157,7 +154,6 @@
or REQUIRED.
required: false
type: str
version_added: '2.9'
type:
description:
- The only type supported is DAY, which will generate one partition per day.
Expand Down Expand Up @@ -497,6 +493,7 @@
description:
- Array of scopes to be used
type: list
elements: str
env_type:
description:
- Specifies which Ansible environment you're running this module within.
Expand Down Expand Up @@ -1195,11 +1192,11 @@ def fetch_resource(module, link, kind, allow_not_found=True):


def self_link(module):
return "https://www.googleapis.com/bigquery/v2/projects/{project}/datasets/{dataset}/tables/{name}".format(**module.params)
return "https://bigquery.googleapis.com/bigquery/v2/projects/{project}/datasets/{dataset}/tables/{name}".format(**module.params)


def collection(module):
return "https://www.googleapis.com/bigquery/v2/projects/{project}/datasets/{dataset}/tables".format(**module.params)
return "https://bigquery.googleapis.com/bigquery/v2/projects/{project}/datasets/{dataset}/tables".format(**module.params)


def return_if_object(module, response, kind, allow_not_found=False):
Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_bigquery_table_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
description:
- Gather info for GCP Table
short_description: Gather info for GCP Table
version_added: '2.8'
author: Google Inc. (@googlecloudplatform)
requirements:
- python >= 2.6
Expand Down Expand Up @@ -76,6 +75,7 @@
description:
- Array of scopes to be used
type: list
elements: str
env_type:
description:
- Specifies which Ansible environment you're running this module within.
Expand Down Expand Up @@ -574,7 +574,7 @@
################################################################################
# Imports
################################################################################
from ansible.module_utils.gcp_utils import navigate_hash, GcpSession, GcpModule, GcpRequest
from ansible_collections.google.cloud.plugins.module_utils.gcp_utils import navigate_hash, GcpSession, GcpModule, GcpRequest
import json

################################################################################
Expand All @@ -593,7 +593,7 @@ def main():


def collection(module):
return "https://www.googleapis.com/bigquery/v2/projects/{project}/datasets/{dataset}/tables".format(**module.params)
return "https://bigquery.googleapis.com/bigquery/v2/projects/{project}/datasets/{dataset}/tables".format(**module.params)


def fetch_list(module, link):
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/gcp_bigtable_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
- A collection of Bigtable Tables and the resources that serve them. All tables in
an instance are served from all Clusters in the instance.
short_description: Creates a GCP Instance
version_added: '2.10'
author: Google Inc. (@googlecloudplatform)
requirements:
- python >= 2.6
Expand Down Expand Up @@ -136,6 +135,7 @@
description:
- Array of scopes to be used
type: list
elements: str
env_type:
description:
- Specifies which Ansible environment you're running this module within.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/gcp_bigtable_instance_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
description:
- Gather info for GCP Instance
short_description: Gather info for GCP Instance
version_added: '2.10'
author: Google Inc. (@googlecloudplatform)
requirements:
- python >= 2.6
Expand Down Expand Up @@ -71,6 +70,7 @@
description:
- Array of scopes to be used
type: list
elements: str
env_type:
description:
- Specifies which Ansible environment you're running this module within.
Expand Down Expand Up @@ -172,7 +172,7 @@
################################################################################
# Imports
################################################################################
from ansible.module_utils.gcp_utils import navigate_hash, GcpSession, GcpModule, GcpRequest
from ansible_collections.google.cloud.plugins.module_utils.gcp_utils import navigate_hash, GcpSession, GcpModule, GcpRequest
import json

################################################################################
Expand Down
11 changes: 1 addition & 10 deletions plugins/modules/gcp_cloudbuild_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
description:
- Configuration for an automated build in response to source repository changes.
short_description: Creates a GCP Trigger
version_added: '2.8'
author: Google Inc. (@googlecloudplatform)
requirements:
- python >= 2.6
Expand All @@ -58,7 +57,6 @@
- Name of the trigger. Must be unique within the project.
required: false
type: str
version_added: '2.10'
description:
description:
- Human-readable description of the trigger.
Expand All @@ -70,7 +68,6 @@
elements: str
required: false
type: list
version_added: '2.10'
disabled:
description:
- Whether the trigger is disabled or not. If true, the trigger will never result
Expand Down Expand Up @@ -145,7 +142,6 @@
- Only trigger a build if the revision regex does NOT match the revision regex.
required: false
type: bool
version_added: '2.10'
branch_name:
description:
- Name of the branch to build. Exactly one a of branch name, tag, or commit
Expand Down Expand Up @@ -178,7 +174,6 @@
- The location of the source files to build.
required: false
type: dict
version_added: '2.10'
suboptions:
storage_source:
description:
Expand Down Expand Up @@ -286,7 +281,6 @@
- Substitutions data for Build resource.
required: false
type: dict
version_added: '2.10'
queue_ttl:
description:
- TTL in queue for this build. If provided and the build is enqueued longer
Expand All @@ -296,14 +290,12 @@
''s''. Example: "3.5s".'
required: false
type: str
version_added: '2.10'
logs_bucket:
description:
- Google Cloud Storage bucket where logs should be written. Logs file names
will be of the format ${logsBucket}/log-${build_id}.txt.
required: false
type: str
version_added: '2.10'
timeout:
description:
- Amount of time that this build should be allowed to run, to second granularity.
Expand All @@ -316,14 +308,12 @@
required: false
default: 600s
type: str
version_added: '2.10'
secrets:
description:
- Secrets to decrypt using Cloud Key Management Service.
elements: dict
required: false
type: list
version_added: '2.10'
suboptions:
kms_key_name:
description:
Expand Down Expand Up @@ -495,6 +485,7 @@
description:
- Array of scopes to be used
type: list
elements: str
env_type:
description:
- Specifies which Ansible environment you're running this module within.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/gcp_cloudbuild_trigger_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
description:
- Gather info for GCP Trigger
short_description: Gather info for GCP Trigger
version_added: '2.8'
author: Google Inc. (@googlecloudplatform)
requirements:
- python >= 2.6
Expand Down Expand Up @@ -71,6 +70,7 @@
description:
- Array of scopes to be used
type: list
elements: str
env_type:
description:
- Specifies which Ansible environment you're running this module within.
Expand Down Expand Up @@ -511,7 +511,7 @@
################################################################################
# Imports
################################################################################
from ansible.module_utils.gcp_utils import navigate_hash, GcpSession, GcpModule, GcpRequest
from ansible_collections.google.cloud.plugins.module_utils.gcp_utils import navigate_hash, GcpSession, GcpModule, GcpRequest
import json

################################################################################
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/gcp_cloudfunctions_cloud_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
description:
- A Cloud Function that contains user computation executed in response to an event.
short_description: Creates a GCP CloudFunction
version_added: '2.9'
author: Google Inc. (@googlecloudplatform)
requirements:
- python >= 2.6
Expand Down Expand Up @@ -189,6 +188,7 @@
description:
- Array of scopes to be used
type: list
elements: str
env_type:
description:
- Specifies which Ansible environment you're running this module within.
Expand Down
Loading