Skip to content

Commit

Permalink
Add source snapshot to ansible (#300)
Browse files Browse the repository at this point in the history
* Make `iap` field computed (#3814) (#272)

Signed-off-by: Modular Magician <magic-modules@google.com>

* add source_image and source_snapshot to google_compute_image (#3799) (#273)

* add source_image to google_compute_image

* add source_snapshot to google_compute_image

* PR comment changes

Signed-off-by: Modular Magician <magic-modules@google.com>

* Collection fixes for release (#3831) (#274)

Signed-off-by: Modular Magician <magic-modules@google.com>

* Add new field filter to pubsub. (#3759) (#275)

* Add new field filter to pubsub.

Fixes: hashicorp/terraform-provider-google#6727

* Fixed filter name, it was improperly set.

* add filter key to pubsub subscription unit test

* spaces not tabs!

* hardcode filter value in test

* revert remove escaped quotes

Co-authored-by: Tim O'Connell <hi@timoconnell.co.uk>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: Tim O'Connell <hi@timoconnell.co.uk>

* Add archive class to gcs (#3867) (#276)

Signed-off-by: Modular Magician <magic-modules@google.com>

* Add support for gRPC healthchecks (#3825) (#277)

Signed-off-by: Modular Magician <magic-modules@google.com>

* Add enableMessageOrdering to Pub/Sub Subscription (#3872) (#278)

Add enableMessageOrdering to Pub/Sub Subscription

Signed-off-by: Modular Magician <magic-modules@google.com>

* use {product}.googleapis.com endpoints (#3755) (#279)

* use {product}.googleapis.com endpoints

* use actual correct urls

* fix zone data source test

* fix network peering tests

* possibly fix deleting default network

Signed-off-by: Modular Magician <magic-modules@google.com>

* Removed instances where input and output are both true (#3890) (#280)

* [provider-yaml] - Removed instances where input and output are both true

* modified to only supply output. Following pattern from bigquerydatatransfer

Co-authored-by: Scott Suarez <scottsuarez@google.com>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: Scott Suarez <scottsuarez@google.com>

* retrypolicy attribute added (#3843) (#281)

* retrypolicy attribute added

* test case updated

Signed-off-by: Modular Magician <magic-modules@google.com>

* Advanced logging config options in google_compute_subnetwork (#3603) (#282)

Co-authored-by: Dana Hoffman <danahoffman@google.com>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: Dana Hoffman <danahoffman@google.com>

* Add Erase Windows VSS support to compute disk (#3898) (#283)

Co-authored-by: Cameron Thornton <camthornton@google.com>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: Cameron Thornton <camthornton@google.com>

* Add Snapshot location to compute snapshot (#3896) (#286)

* added storage locations

* add storage locations to field

* tweak cmek logic

* fix the decoder logic and cleanup whitespaces

* remove duplicate entry

Signed-off-by: Modular Magician <magic-modules@google.com>

* Added missing 'all' option for protocol firewall rule (#3962) (#287)

Signed-off-by: Modular Magician <magic-modules@google.com>

* Added support GRPC for google_compute_(region)_backend_service.protocol (#3973) (#289)

Co-authored-by: Edward Sun <sunedward@google.com>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: Edward Sun <sunedward@google.com>

* Add schema update support to spanner db 2082 (#3947) (#291)

* eoncders and customdiff added for spanner DB ddl update

* config update test case added

* customdiff modified to handle out-of-index issue

* new lines added

* indent fixed

* indent fixed for tests

* test added for ddl update condition

* mock added Terraformresourcediff, unit tests added

* test fixed

* more unit tests added

* tests fixed

* PR comments implemented

* unit tests converted to table driven tests

* ImportStateVerifyIgnore flag added to tests

* syntax corrected in test

Signed-off-by: Modular Magician <magic-modules@google.com>

* Added properties of options & artifacts on google_cloudbuild_trigger (#3944) (#292)

* added options & artifacts to cloudbuild trigger

* updated with minor changes and added more options in test

* a test adding update behavior for multiple optional fields

Co-authored-by: Edward Sun <sunedward@google.com>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: Edward Sun <sunedward@google.com>

* Enable TPUs to use Shared VPC (#3939) (#293)

* add support for shared vpc

* make cidr_block computable

* add diffsuppression

* tweak diffsupression to ignore when network has a change

* rework diffsupress

* add customizediff

* switch the diff checks

Signed-off-by: Modular Magician <magic-modules@google.com>

* Add SEV_CAPABLE option to google_compute_image (#3994) (#294)

Signed-off-by: Modular Magician <magic-modules@google.com>

* Update docs for pubsub targets in cloud scheduler (#4008) (#295)

Signed-off-by: Modular Magician <magic-modules@google.com>

* Make RegionBackendService health checks optional (#4053) (#297)

Signed-off-by: Modular Magician <magic-modules@google.com>

* Update terminology for IAM roles (#4056) (#299)

Roles like "Owner" and "Editor" are now called "basic roles": https://cloud.google.com/iam/docs/understand

Signed-off-by: Modular Magician <magic-modules@google.com>

* Add source snapshot to ansible (#4060)

Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: Tim O'Connell <hi@timoconnell.co.uk>
Co-authored-by: Scott Suarez <scottsuarez@google.com>
Co-authored-by: Dana Hoffman <danahoffman@google.com>
Co-authored-by: Cameron Thornton <camthornton@google.com>
Co-authored-by: Edward Sun <sunedward@google.com>
  • Loading branch information
6 people committed Oct 6, 2020
1 parent fb1485b commit 7fa00db
Show file tree
Hide file tree
Showing 169 changed files with 2,105 additions and 764 deletions.
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
24 changes: 11 additions & 13 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 @@ -74,9 +73,9 @@
role:
description:
- Describes the rights granted to the user specified by the other member of
the access object. Primitive, Predefined and custom roles are supported.
Predefined roles that have equivalent primitive roles are swapped by the
API to their Primitive counterparts. See [official docs](U(https://cloud.google.com/bigquery/docs/access-control)).
the access object. Basic, predefined, and custom roles are supported. Predefined
roles that have equivalent basic roles are swapped by the API to their basic
counterparts. See [official docs](U(https://cloud.google.com/bigquery/docs/access-control)).
required: false
type: str
special_group:
Expand All @@ -85,7 +84,7 @@
Owners of the enclosing project.'
- "* `projectReaders`: Readers of the enclosing project."
- "* `projectWriters`: Writers of the enclosing project."
- "* `allAuthenticatedUsers`: All authenticated BigQuery users. ."
- "* `allAuthenticatedUsers`: All authenticated BigQuery users."
required: false
type: str
user_by_email:
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 @@ -307,9 +305,9 @@
role:
description:
- Describes the rights granted to the user specified by the other member of
the access object. Primitive, Predefined and custom roles are supported. Predefined
roles that have equivalent primitive roles are swapped by the API to their
Primitive counterparts. See [official docs](U(https://cloud.google.com/bigquery/docs/access-control)).
the access object. Basic, predefined, and custom roles are supported. Predefined
roles that have equivalent basic roles are swapped by the API to their basic
counterparts. See [official docs](U(https://cloud.google.com/bigquery/docs/access-control)).
returned: success
type: str
specialGroup:
Expand All @@ -318,7 +316,7 @@
Owners of the enclosing project.'
- "* `projectReaders`: Readers of the enclosing project."
- "* `projectWriters`: Writers of the enclosing project."
- "* `allAuthenticatedUsers`: All authenticated BigQuery users. ."
- "* `allAuthenticatedUsers`: All authenticated BigQuery users."
returned: success
type: str
userByEmail:
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
14 changes: 7 additions & 7 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 @@ -129,9 +129,9 @@
role:
description:
- Describes the rights granted to the user specified by the other member
of the access object. Primitive, Predefined and custom roles are supported.
Predefined roles that have equivalent primitive roles are swapped by the
API to their Primitive counterparts. See [official docs](U(https://cloud.google.com/bigquery/docs/access-control)).
of the access object. Basic, predefined, and custom roles are supported.
Predefined roles that have equivalent basic roles are swapped by the API
to their basic counterparts. See [official docs](U(https://cloud.google.com/bigquery/docs/access-control)).
returned: success
type: str
specialGroup:
Expand All @@ -140,7 +140,7 @@
Owners of the enclosing project.'
- "* `projectReaders`: Readers of the enclosing project."
- "* `projectWriters`: Writers of the enclosing project."
- "* `allAuthenticatedUsers`: All authenticated BigQuery users. ."
- "* `allAuthenticatedUsers`: All authenticated BigQuery users."
returned: success
type: str
userByEmail:
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
Loading

0 comments on commit 7fa00db

Please sign in to comment.