Commit graph

43 commits

Author SHA1 Message Date
Jorge Gallegos
f9f0b33542
Add iamConfiguration support to gcp_storage_bucket
You can now set the iam configuration for a given bucket, you can set:
1. publicAccessPrevention and
2. uniformBucketLevelAccess

no support for bucketPolicyOnly because according to the storage docs:

Note: iamConfiguration also includes the bucketPolicyOnly field, which
uses a legacy name but has the same functionality as the
uniformBucketLevelAccess field. We recommend only using
uniformBucketLevelAccess, as specifying both fields may result in
unreliable behavior.

Also added integration tests for this feature

Signed-off-by: Jorge Gallegos <jgallego@redhat.com>
2025-06-26 12:04:25 -06:00
Shlomo Shuck
203961b045
feat: add auth support for GCP access tokens (#574)
Introduce choice "accesstoken" for auth_kind for modules
Introduce optional access_token string param that falls back to
  GCP_ACCESS_TOKEN env var
2023-06-10 11:20:57 -07:00
The Magician
fe79a8b1e1
Add generator information to generated resources (#5016) (#449)
Signed-off-by: Modular Magician <magic-modules@google.com>
2021-07-29 18:41:37 -05:00
The Magician
ea38c3ed14
added more gcs bucket lifecycle conditions (#4706) (#404)
Signed-off-by: Denis Dabischa <denis.dabischa@kloeckner.com>
Signed-off-by: Modular Magician <magic-modules@google.com>
2021-04-16 10:58:29 -07:00
The Magician
7fa00db18c
Add source snapshot to ansible (#300)
* 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: https://github.com/terraform-providers/terraform-provider-google/issues/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>
2020-10-06 15:39:08 -07:00
The Magician
6026c8cabf
Add encryption, retention policy to buckets (#3384) (#195)
* Add encryption, retention policy to buckets

* snake case

* Typo

* Typo

* Add test, fix docs on sa key

* Remove test

Signed-off-by: Modular Magician <magic-modules@google.com>
2020-04-16 13:17:08 -07:00
The Magician
bd876e58d2
Inspec bucket labels (#3364) (#191)
* Add labels to storage bucket

* Fix label include test

Signed-off-by: Modular Magician <magic-modules@google.com>
2020-04-09 13:09:14 -07:00
The Magician
69dc784c16
need elements listed in docs (#3141) (#161)
Signed-off-by: Modular Magician <magic-modules@google.com>
2020-02-18 22:32:06 -08:00
The Magician
0005cba8dd add defaultEventBasedHold to storage buckets (#132)
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: Martin Nowak <code@dawg.eu>
2020-01-16 13:25:16 -08:00
Sam Levenick
5fce6bcdf5 Inspec storage
Signed-off-by: Modular Magician <magic-modules@google.com>
2020-01-07 20:27:06 +00:00
Alex Stephen
516fada880 Adding namespace on integration tests + examples
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-30 22:08:25 +00:00
Alex Stephen
9f450df983 use module utils from collection, not core
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-20 17:43:32 +00:00
Alex Stephen
84e760b022 removing documentation fragment
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-06 20:12:02 +00:00
The Magician
5967303b2d adding state info to docs (#317)
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-04 18:04:13 -07:00
The Magician
43536a1e38 adding ansible types in documentation (#303)
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-04 18:04:12 -07:00
The Magician
f0b41b7daa client side validation can't have docs with explicit choices (#258)
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-04 18:02:58 -07:00
The Magician
b1795cda83 remove client side validation on enums (#256)
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-04 18:02:57 -07:00
The Magician
bbaf1a79c7 Reverting some ResourceRef changes (#226)
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-04 18:02:55 -07:00
The Magician
84ecdd1802 Ansible - Remove output only from response (#216)
<!-- This change is generated by MagicModules. -->
/cc @rambleraptor
2019-09-04 18:02:40 -07:00
The Magician
5808ed651d Nested output: only properties shouldn't be fields (#207)
<!-- This change is generated by MagicModules. -->
/cc @rambleraptor
2019-09-04 18:02:16 -07:00
The Magician
ebd14d6e56 Use Ruby YAML library to serialize Ansible examples (#196)
<!-- This change is generated by MagicModules. -->
/cc @rambleraptor
2019-09-04 18:02:15 -07:00
The Magician
6c4fae3b34 response_to_hash should use api_name (#181)
<!-- This change is generated by MagicModules. -->
/cc @rambleraptor
2019-09-04 17:54:46 -07:00
The Magician
99d5da337c Formatting changes related to upstream code generator cleanup. (#162)
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-04 17:54:45 -07:00
The Magician
982933cfe8 Better resourceref flexibility (#149)
<!-- This change is generated by MagicModules. -->
/cc @rambleraptor
2019-09-04 17:54:34 -07:00
The Magician
6f218887e2 Not Suppressing values accidentally (#143)
<!-- This change is generated by MagicModules. -->
/cc @rambleraptor
2019-09-04 17:49:43 -07:00
The Magician
e63c0009e4 Ansible: falses being lost in network requests (#141) 2019-09-04 17:49:43 -07:00
Chris Stephens
8264deeb9c Empty commit with no code changes 2019-09-04 17:49:41 -07:00
The Magician
87656c4016 Documentation Refactor 2019-09-04 17:49:40 -07:00
Riley Karson
6a98471a53 Improve schema and docs for Google Cloud Storage ObjectAccessControl 2019-09-04 17:49:40 -07:00
The Magician
d84be36a7a Reverting template change (#104) 2019-09-04 17:46:47 -07:00
The Magician
e87c2e837c Better documentation for how a resourceref works (#96)
<!-- This change is generated by MagicModules. -->
/cc @rambleraptor
2019-09-04 17:46:46 -07:00
The Magician
6aa571c1b8 Magic Modules changes. (#97)
Ensure that Ansible always returns full resource after update + no op
2019-09-04 17:46:46 -07:00
The Magician
b3c1afe126 Return values should be camelcase instead of underscored (#95) 2019-09-04 17:45:26 -07:00
The Magician
0a18332815 examples showing an improper auth value (#87)
<!-- This change is generated by MagicModules. -->
/cc @rambleraptor
2019-09-04 17:44:21 -07:00
Alex Stephen
68f4228065 Bug fixes for GCP modules (#51576) 2019-09-04 16:56:36 -07:00
Alex Stephen
c71053973b Bug fixes for GCP modules (as of 2019-01-22T12:43:52-08:00) (#51247) 2019-09-04 16:56:34 -07:00
Alex Stephen
899cc535cf Bug fixes for GCP modules (as of 2019-01-09T15:35:45-08:00) (#50786) 2019-09-04 16:56:33 -07:00
Alex Stephen
e2ea369ee6 GCP Bug Fixes (#49458)
* Bug fixes

* fixes as of 12/5/2018

* changes as of 12/06/2018
2019-09-04 16:54:17 -07:00
Alex Stephen
d64785e811 GCP Bug Fixes (#48276)
* GCP Bug fixes

* added util file changes
2019-09-04 16:54:17 -07:00
Ryan Brown
5c97cc1da0 GCP MagicModules bug fixes (#47285)
Closes: #46930 #46929 #46928 #46927 #46926 #46925 #46924 #46923 #46922 #46921 #46920 #46919 #46918 #46917 #46916 #46915 #46914 #46913 #46912 #46911 #46910 #46909 #46908 #46907 #46906 #46905 #46903 #46902 #46901 #46900 #46899 #46898 #46897 #46896 #46895 #46894 #46893 #46892 #46891 #46890 #46889 #46888 #46887 #46886 #46885 #46884 #46883 #46882 #46881 #46880 #46879 #46878 #46877 #46876 #46875 #46874 #46873 #46872 #46871 #46870 #46869 #46868 #46867 #46866 #46865 #46864 #46863 #46862 #46861 #46860 #46859 #46858 #46857 #46856 #46855 #46854 #46853 #46852
2019-09-04 16:53:40 -07:00
Alex Stephen
8b14dbc086 Bug fixes for gcp_storage_bucket (#42835) 2019-09-04 16:27:40 -07:00
Joren Vrancken
f642258817 Surround top-level function and class definitions with two blank lines. 2019-09-04 16:12:05 -07:00
Alex Stephen
b293e2a922 New module: GCP Storage Buckets (#37288) 2019-09-04 15:57:05 -07:00