Commit Graph

1552 Commits

Author SHA1 Message Date
The Magician
2acc9fb5a1 fix folder iam binding test (#2556) 2018-12-20 17:22:22 -08:00
The Magician
e73a45ffbb Add support for content-based load balancing to google_compute_health_check (#2550)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
717300e974 Add documentation for new resource_compute_router_nat to Terraform provider (#2545)
<!-- This change is generated by MagicModules. -->
/cc @cornmander
2018-12-20 17:22:22 -08:00
The Magician
f368600cb1 Generate AccessContextManager AccessLevel in Terraform. (#2506) 2018-12-20 17:22:22 -08:00
Chris Stephens
f2dd796f8c New Resource: Stackdriver uptime check 2018-12-20 17:22:22 -08:00
The Magician
3564890812 Add to state before we send the create call. (#2527) 2018-12-20 17:22:22 -08:00
The Magician
210141a5b1 Add nil check to fix panic in storage bucket. (#2525) 2018-12-20 17:22:22 -08:00
The Magician
e74ccfde23 Avoid overwriting errors so that they can be detected by handleNotFoundError. (#2526) 2018-12-20 17:22:22 -08:00
Chris Stephens
5bc96d3fa1 Pass the terraform resource into all flatten methods 2018-12-20 17:22:22 -08:00
The Magician
ff1840989b Website changes for SQL private IP + new computed field (#2509)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-20 17:22:22 -08:00
The Magician
c77d1b0ba2 Add upgrade guide docs for igm, rigm removals. (#2505)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
Matthew Jones
7dd80d7102 support firestore cloud function triggers (#2480)
* support firestore cloud function triggers

* document firestore trigger specifics
2018-12-20 17:22:22 -08:00
The Magician
f26c910f80 Start removing beta igm/rigm fields. (#2393)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
Chris Stephens
1fe4aca6e7 Move the set project logic higher in the read method 2018-12-20 17:22:22 -08:00
Chris Stephens
150327a22a Ignore empty maps inside arrays 2018-12-20 17:22:22 -08:00
Manuel Correa
cefb6c6566 Add support for data source 'google_iam_role' (#2482)
Add `google_iam_role` data source to be able to fetch and query for GCP IAM roles permissions.
2018-12-20 17:22:22 -08:00
The Magician
5928101e2f Add billing account IAM (#2413) 2018-12-20 17:22:22 -08:00
The Magician
b807d04e10 Fix for permadiff in container cluster caused by beta resource. (#2488) 2018-12-20 17:22:22 -08:00
Paddy Carver
cad93ce4da Fix the breaking change in sqladmin.
This is the diff after running GoogleCloudPlatform/magic-modules#690.
We're applying it manually to fix the build, because the magician won't
pull the code to create this PR until the code can be built.
2018-12-20 17:22:22 -08:00
The Magician
49d8a888d7 Start autogenerating resource_dns_managed_zone (#2428)
<!-- This change is generated by MagicModules. -->
/cc @drebes
2018-12-20 17:22:22 -08:00
The Magician
9ff5284d15 Container cluster changes ancillary to beta support for autoprovisioning. (#2415) 2018-12-20 17:22:22 -08:00
Ben Vickers
e9ac055363 Add the sql ssl (client) cert resource (#2290)
* add the sql client cert resource

* correct schema ordering for sql ssl cert resource
2018-12-20 17:22:22 -08:00
The Magician
5533075029 Add provider version to useragent. (#2442)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
ff16c8f4e0 Don't allow users to specify certain APIs in google_project_services (#2468)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
a9625168aa Update pubsub topic to read after create, same as TPG #2346 (#2469)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-20 17:22:22 -08:00
Chris Stephens
0e26337e39 Stackdriver notification channel 2018-12-20 17:22:22 -08:00
Adrián Matellanes
8543521b75 Add defaultPartitionExpirationMs field to google_bigquery_dataset resource (#2287)
Add [`defaultPartitionExpirationMs`](https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets) to [`google_bigquery_dataset`](https://www.terraform.io/docs/providers/google/r/bigquery_dataset.html) resource.
2018-12-20 17:22:22 -08:00
Chris Stephens
77c757d1e0 New Resource: Stack Driver Group 2018-12-20 17:22:22 -08:00
Chris Stephens
2c828110f0 Make master_auth user/pass optional 2018-12-20 17:22:22 -08:00
nownabe
35d0ec1a66 Update cloudbuild trigger in place (#2121)
Hi!

Now any changes of cloud build trigger create new one, this PR makes triggers modifiable in place.

I referred to [bigquery dataset](9f0b792f09/google/resource_bigquery_dataset.go (L353)). If theare are better examples, I'd like to know them.
2018-12-20 17:22:22 -08:00
The Magician
4089321402 Fix disk snapshot expand/encode, kmsKeyName decoder (#2450)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
9a683a65e9 Fix generated test name formatting (#2439)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
Chris Stephens
710c96ee95 Magic Modules changes. 2018-12-20 17:22:22 -08:00
The Magician
b6029d7f74 make fmt on resource_dataproc_cluster.go (#2435) 2018-12-20 17:22:22 -08:00
Chris Stephens
02bd1c53c0 Fix ci tests 2018-12-20 17:22:22 -08:00
The Magician
7153ef3af2 Add empty files because of copying over beta resources (#2426) 2018-12-20 17:22:22 -08:00
The Magician
c4793e3aa5 Add support for accelerators to dataproc (#2411) 2018-12-20 17:22:22 -08:00
The Magician
33f25287b0 Add import support to project metadata. (#2423) 2018-12-20 17:22:22 -08:00
The Magician
5baeddf95f use import-style tests in sql database instance (#2421)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-20 17:22:22 -08:00
The Magician
cd607bd111 Remove unnecessary fields in PATCH updates (#2420)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
766b377be5 Magic Modules changes. (#2417)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
b00b5ac74b Remove backend_service.custom_request_headers from the GA provider (#2405)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
b8e74f0676 Add support for new-style cloud functions triggers. (#2412)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
Chris Stephens
f745e5f178 Change BigQuery access list to a set 2018-12-20 17:22:22 -08:00
The Magician
4674cc73f5 Fix make fmt (#2404)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
406eecbfe6 google_bigtable_instance add back validation to num_nodes. (#2401) 2018-12-20 17:22:22 -08:00
The Magician
e2831052fd Remove subnetwork iam from GA provider (#2398) 2018-12-20 17:22:22 -08:00
The Magician
7c3445229c Make removals in google_container_cluster (#2395) 2018-12-20 17:22:22 -08:00
The Magician
a0faab0736 Remove service_account_id from data.google_service_account_key (#2397)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
eb19080de7 Deprecated network_interface.address in code in instance template. (#2394)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
3b9a419089 Remove google_compute_global_forwarding_rule.labels (#2399)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
6ff89ce84c Remove google_endpoints_service.protoc_output (#2396)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
9961246b94 Remove max_pods_per_node from GA provider (#2391)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
95cb529d4d Remove google_cloudfunctions_function.retry_on_failure (#2392) 2018-12-20 17:22:22 -08:00
The Magician
ed18fb9ea0 Remove google_project.app_engine (#2386)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
1b1538a6a4 Regional Clusters are GA followup (#2387)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
Chris Stephens
0e82420de6 Change instances in target pool to be a set 2018-12-20 17:22:22 -08:00
The Magician
26ba086dbc Read Bigtable column family from the API (#2378)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
c27ec182be add diffsuppress for iam custom role stage. fixes TPG #1801 (#2370) 2018-12-20 17:22:22 -08:00
The Magician
0f5c81ce65 regional and private clusters are in GA now (#2364)
<!-- This change is generated by MagicModules. -->
/cc @danawillow 

Fixes #2286
2018-12-20 17:22:22 -08:00
The Magician
6707290efe Make google_project_iam_policy authoritative. (#2315)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
5a47db4d94 Remove beta generated resource maps from GA provider. (#2350)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
Chris Stephens
35d6d71cd7 Remove beta resources to fix build 2018-12-20 17:22:22 -08:00
Chris Stephens
ce78bb0ce8 Remove name_prefix from container node pool 2018-12-20 17:22:22 -08:00
Riley Karson
d0034fb1c0 Remove obsolete beta files. (#2355)
Remove the files we skip now with https://github.com/GoogleCloudPlatform/magic-modules/pull/631
2018-12-20 17:22:22 -08:00
The Magician
30fc9ec3f9 Generate DefaultObjectAccessControl in Terraform (#2358)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
Riley Karson
272872a4ed Remove duplicate storage_object_access_control test. (#2349)
blocking https://github.com/GoogleCloudPlatform/magic-modules/pull/630

This resource won't be tested between this merging and the MM pr merging
2018-12-20 17:22:22 -08:00
Chris Stephens
f85dc70b20 Fix ci tests 2018-12-20 17:22:22 -08:00
The Magician
0bed3bd5c7 add retries on create for container cluster (#2352)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-20 17:22:22 -08:00
The Magician
3dcf859426 Update composer timeouts (#2354)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-20 17:22:22 -08:00
The Magician
ba0bed37e2 Increase redis timeouts (#2351)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-20 17:22:22 -08:00
The Magician
b16e60ce05 use correct fields for bigtable test (#2353)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-20 17:22:22 -08:00
Chris Stephens
ae09a200c7 deprecate address as originally intended 2018-12-20 17:22:22 -08:00
The Magician
bf296e55bf Make google_storage_default_object_acl authoritative. (#2345)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
Chris Stephens
12369626c8 fix forwarding tests after label removal 2018-12-20 17:22:22 -08:00
The Magician
18084be345 Make google_storage_object_acl authoritative (#2316)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
27e35adca0 Autogenerate {{Resource}}Destroy in tests. (#2317) 2018-12-20 17:22:22 -08:00
Chris Stephens
9be729fb78 support KMS encryption for instance templates 2018-12-20 17:22:22 -08:00
The Magician
29368a64d1 Add support for google_cloudfunctions_function runtime (#2340)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
Chris Stephens
04e25671f9 Adding new big query regions 2018-12-20 17:22:22 -08:00
Chris Stephens
db98fbd5e6 remove trigger_bucket and trigger_topic 2018-12-20 17:22:22 -08:00
Murcurio
ae4cfab1cc Added London and Sydney BigQuery regions 2018-12-20 17:22:22 -08:00
Chris Stephens
fc81c84ed3 Empty commit with no code changes 2018-12-20 17:22:22 -08:00
The Magician
1c3da20140 CI change only - any change here will indicate a dependency on a ruby minor version. (#2298) 2018-12-20 17:22:22 -08:00
The Magician
daa7ec23ff Add support for Google Cloud Bigtable replication (#2313)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
1e7d3574ee Adding ipv4 range back (#2304)
<!-- This change is generated by MagicModules. -->
/cc @chrisst
2018-12-20 17:22:22 -08:00
The Magician
a7e94bbfeb KMS changes - non functional (#2302)
<!-- This change is generated by MagicModules. -->
/cc @slevenick
2018-12-20 17:22:22 -08:00
The Magician
9da993f663 Magic Modules changes. (#2297) 2018-12-20 17:22:22 -08:00
The Magician
e6ddd16269 More import formats and fix name validation for spanner databases
Fixes #2277
2018-12-20 17:22:22 -08:00
The Magician
fd6666b3ff Output from magician generating into ga and beta providers (#2271)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-20 17:22:22 -08:00
The Magician
4c20b7eeac Add support for google_storage_object_access_control (#2256) 2018-12-20 17:22:22 -08:00
The Magician
955b25a8e5 Add import tests for google_cloudiot_registry (#2276)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
a3eea03faa Fix Composer Environment machineType parsing
Fixes #2227
2018-12-20 17:22:22 -08:00
The Magician
bd348c5797 changes to (r)igm so that resources can be converted from beta back to ga (#2260)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-20 17:22:22 -08:00
The Magician
e1f4976c64 Add more import paths for google_service_account. (#2261) 2018-12-20 17:22:22 -08:00
The Magician
c98140f0db Autogenerate google_compute_url_map (#2245)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
Chris Stephens
b8de3fd850 Deprecate network fields (#2235)
* removing old removed network fields

* Remove ipv4range option
2018-12-20 17:22:22 -08:00
The Magician
586f1e98c3 stop generating beta resources/fields (#2242)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-20 17:22:22 -08:00
Chris Stephens
ba001b386b Remove service account policydata (#2247)
* Removing policy_data from service account

* Remove policy_data tests that aren't needed.
2018-12-20 17:22:22 -08:00
The Magician
ca0921cb05 Support default booleans for Terraform configs (#2222) 2018-12-20 17:22:22 -08:00
Chris Stephens
a0e2d50331 Change deprecated fields back to 'Removed' (#2241)
* Change deprecated fields back to 'Removed'

To provide a better user experience we're going to mark the fields as removed
so that users will get a more accurate error message. We will follow up a while
later to actually remove them from schema.
2018-12-20 17:22:22 -08:00
Chris Stephens
192684a7f6 Removing create_timeout from compute image (#2244) 2018-12-20 17:22:22 -08:00
Chris Stephens
c4db896d39 Test failures (#2250)
fix disk encrypt tests
fxing compute instance data source tests
fixing the compute instance migration tests
2018-12-20 17:22:22 -08:00
The Magician
5f236ec8e8 Moving raw_key properties back to 'Removed' (#2248) 2018-12-20 17:22:22 -08:00
Labesse Kévin
293a63e74a adding attribute family for bigtable_table (#2228)
Fix #1576
2018-12-20 17:22:22 -08:00
The Magician
0008f6d840 PR from HEAD of Magic Modules after long-running PR merged in. (#2246) 2018-12-20 17:22:22 -08:00
Chris Stephens
a93c57e76a Don't allow destroying backend buckets in dataproc (#2224)
Removing the delete_autogen_bucket property
Buckets will not be deleted when a dataproc resource is destroyed
2018-12-20 17:22:22 -08:00
The Magician
6670f0cccc Fix empty TypeList expands in generated resources (#2233)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
Riley Karson
5eab9af814 Make google_sql_database_instance authoritative. (#2203) 2018-12-20 17:22:22 -08:00
The Magician
22ecabd739 Add documentation support to the stackdriver alertPolicy (#2226)
<!-- This change is generated by MagicModules. -->
/cc @chrisst
2018-12-20 17:22:22 -08:00
Riley Karson
a9b6e3f5e1 Make google_compute_project_metadata authoritative. (#2205) 2018-12-20 17:22:22 -08:00
Chris Stephens
50fe1b6c83 Remove address and create_timeout from instance (#2219) 2018-12-20 17:22:22 -08:00
The Magician
eafe197070 Remove deprecated raw_key convenience property (#2209)
Removing disk_encryption_key_sha256 and disk_encryption_key_raw and removing the custom diff logic associated with them.

<!-- This change is generated by MagicModules. -->
/cc @chrisst
2018-12-20 17:22:22 -08:00
The Magician
6cfaa24ef0 labelfingerprint is beta for resources where labels are beta (#2206) 2018-12-20 17:22:22 -08:00
Riley Karson
8c42015451 Make google_compute_instance metadata authoritative. (#2208) 2018-12-20 17:22:22 -08:00
Nathan McKinley
902675c324 Reverting 1.20 and 1.19 cherrypick branches. 2018-12-20 17:22:22 -08:00
Nathan McKinley
93ffe28133
add sql private ip to ga provider (#2665) 2018-12-13 15:45:09 -08:00
Riley Karson
4a0ee14304
Duplicate what tpgb does for master_ipv4_cidr_block (#2661)
Looks like we missed a couple lines while cherrypicking; copied these from tpgb.
2018-12-13 10:56:59 -08:00
The Magician
73d127a387 Fix spanner database iam binding import (#2603) 2018-12-12 17:23:35 -08:00
The Magician
9e566cc0be Fix project services tests by using a service without any dependencies (#2645) 2018-12-12 17:23:35 -08:00
Paddy
aec43adc25 Accommodate the new iamcredentials service in tests 2018-12-12 17:23:35 -08:00
Riley Karson
b885cdaf87 Fix deprecated convenience fields in disk. 2018-12-12 17:23:35 -08:00
The Magician
a138701b75 Fix for permadiff in container cluster caused by beta resource. (#2488) 2018-12-12 17:23:35 -08:00
The Magician
aafc6b1920 Fix project services tests by using a service without any dependencies (#2645) 2018-12-12 17:23:35 -08:00
The Magician
e07e1ba4e8 Add router nat resource. For TPG #2249. (#2576) 2018-12-12 17:23:35 -08:00
Paddy Carver
979e846f4e Fix the breaking change in sqladmin.
This is the diff after running GoogleCloudPlatform/magic-modules#690.
We're applying it manually to fix the build, because the magician won't
pull the code to create this PR until the code can be built.
2018-12-12 17:23:35 -08:00
The Magician
e49b23a6ee Fix nested read in Snapshot. (#2593)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-12 17:23:35 -08:00
The Magician
24138aa844 Deprecate convenience fields in google_compute_snapshot (#2572)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-12 17:23:35 -08:00
Nathan McKinley
de52ccdf3b Add deprecation message to resource_google_project_iam_custom_role.deleted. 2018-12-12 17:23:35 -08:00
Nathan McKinley
68f4590aa7 Compute project metadata reads were failing on import. 2018-12-12 17:23:35 -08:00
The Magician
a5f1e6002c Container cluster changes ancillary to beta support for autoprovisioning. (#2415) 2018-12-12 17:23:35 -08:00
The Magician
ed2fa7266d Autogenerate {{Resource}}Destroy in tests. (#2317) 2018-12-12 17:23:35 -08:00
Riley Karson
b321a6260b Add update_strategy deprecation message to 1.20.0. (#2575)
Part of https://github.com/terraform-providers/terraform-provider-google/issues/2551
2018-12-12 17:23:35 -08:00
The Magician
63c8a1babe Add support for content-based load balancing to google_compute_health_check (#2550)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-12 17:23:35 -08:00
Chris Stephens
b16f2a1b5d Merge pull request #2502 from modular-magician/codegen-pr-933
New Resource: Stackdriver uptime check
2018-12-12 17:23:35 -08:00
Manuel Correa
decc9db551 Add support for data source 'google_iam_role' (#2482)
Add `google_iam_role` data source to be able to fetch and query for GCP IAM roles permissions.
2018-12-12 17:23:35 -08:00
The Magician
8256815662 Add billing account IAM (#2413) 2018-12-12 17:23:35 -08:00
Ben Vickers
fceefe6cd1 Add the sql ssl (client) cert resource (#2290)
* add the sql client cert resource

* correct schema ordering for sql ssl cert resource
2018-12-12 17:23:35 -08:00
The Magician
e72103301b Add provider version to useragent. (#2442)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-12 17:23:35 -08:00
The Magician
8da6d3b181 Update pubsub topic to read after create, same as TPG #2346 (#2469)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-12 17:23:35 -08:00
Chris Stephens
7a4893f83c Merge pull request #2452 from modular-magician/codegen-pr-896
Stackdriver notification channel
2018-12-12 17:23:35 -08:00
Chris Stephens
14ea8d6f06 Merge pull request #2451 from modular-magician/codegen-pr-895
New Resource: Stack Driver Group
2018-12-12 17:23:35 -08:00
The Magician
4ebac8a923 Fix disk snapshot expand/encode, kmsKeyName decoder (#2450)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-12 17:23:35 -08:00
Nathan McKinley
bbaf961dda make fmt 2018-12-12 17:23:35 -08:00
Chris Stephens
072370d4c5 Merge pull request #2430 from modular-magician/codegen-pr-882
Fix ci tests
2018-12-12 17:23:35 -08:00
The Magician
b90091e926 Add import support to project metadata. (#2423) 2018-12-12 17:23:35 -08:00
The Magician
1ecab9556a Add support for new-style cloud functions triggers. (#2412)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-12 17:23:35 -08:00
The Magician
09b344057c Deprecated network_interface.address in code in instance template. (#2394)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-12 17:23:35 -08:00
The Magician
4570cd119a Regional Clusters are GA followup (#2387)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-12 17:23:35 -08:00
The Magician
b08884f49e regional and private clusters are in GA now (#2364)
<!-- This change is generated by MagicModules. -->
/cc @danawillow

Fixes #2286
2018-12-12 17:23:35 -08:00
The Magician
8f6ddefe4f Generate DefaultObjectAccessControl in Terraform (#2358)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-12 17:23:35 -08:00
Riley Karson
161bbe3ecf Remove duplicate storage_object_access_control test. (#2349)
blocking https://github.com/GoogleCloudPlatform/magic-modules/pull/630

This resource won't be tested between this merging and the MM pr merging
2018-12-12 17:23:35 -08:00
The Magician
b7801660c9 add retries on create for container cluster (#2352)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-12 17:23:35 -08:00
The Magician
b857fd457c Update composer timeouts (#2354)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-12 17:23:35 -08:00
The Magician
175fe793f4 Increase redis timeouts (#2351)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-12 17:23:35 -08:00
Chris Stephens
49d8d6f2f3 support KMS encryption for instance templates 2018-12-12 17:23:35 -08:00
The Magician
abf53cd91a Add support for google_cloudfunctions_function runtime (#2340)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-12 17:23:35 -08:00
Murcurio
7da3ae346a Added London and Sydney BigQuery regions 2018-12-12 17:23:35 -08:00
The Magician
cfb5ed75e8 More import formats and fix name validation for spanner databases
Fixes #2277
2018-12-12 17:23:35 -08:00
The Magician
4a4a33da8a Output from magician generating into ga and beta providers (#2271)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-12 17:23:35 -08:00
The Magician
7e5749ad35 Add support for google_storage_object_access_control (#2256) 2018-12-12 17:23:35 -08:00
The Magician
d3ab42a60f Add import tests for google_cloudiot_registry (#2276)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-12 17:23:35 -08:00
The Magician
1eda3c664b Fix Composer Environment machineType parsing
Fixes #2227
2018-12-12 17:23:35 -08:00
The Magician
78f9957623 Add more import paths for google_service_account. (#2261) 2018-12-12 17:23:35 -08:00
Riley Karson
2f6b39ee21 Revert "Update cloudbuild trigger in place (#2121)"
This reverts commit 02eb26bdb3.
2018-11-13 07:50:37 -08:00
nownabe
02eb26bdb3 Update cloudbuild trigger in place (#2121)
Hi!

Now any changes of cloud build trigger create new one, this PR makes triggers modifiable in place.

I referred to [bigquery dataset](9f0b792f09/google/resource_bigquery_dataset.go (L353)). If theare are better examples, I'd like to know them.
2018-11-12 15:15:39 -08:00
Paddy
56c86ec607
Merge pull request #2239 from rileykarson/empty-typelist-cherry
Fix empty TypeList expands in generated resources (#2233 cherrypick)
2018-10-11 23:26:47 -07:00
The Magician
66c10d2ce1 Fix empty TypeList expands in generated resources (#2233)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-10-11 16:08:17 -07:00
Riley Karson
5512f8a961 Guard against nil empty typelists. 2018-10-11 09:48:19 -07:00
Dana Hoffman
8f35c8285f set app engine to empty if api not enabled 2018-10-10 13:07:10 -07:00
Dana Hoffman
a0979fe66a don't try to parse the source image if there is none 2018-10-10 13:06:38 -07:00
Riley Karson
95c57ac681 Fix generated provider_versions links 2018-10-09 15:26:38 +00:00
Paddy Carver
054ec287eb Fix go fmt. 2018-10-08 13:13:26 -07:00
Riley Karson
52a17333c0 Deprecate restore_policy in code 2018-10-08 11:37:19 -07:00
The Magician
1b88724449 Add example tests for Redis, Filestore, ContainerAnalysis (#2131)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-10-05 15:28:31 -07:00
The Magician
fe8b2207fe Add an address example with a VM instance (#2141)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-10-05 13:05:58 -07:00
The Magician
645eab7ced Add new generated tests for examples (#2111) 2018-10-05 12:32:57 -07:00
Dana Hoffman
a68485ec5e add retries for all calls in sql database resource 2018-10-04 16:04:29 -07:00
Paddy
9a1ca01f6a
Merge pull request #2170 from danawillow/storageobjectacl
set role entity to nil on read if it isn't in state
2018-10-04 13:33:04 -07:00
Dana Hoffman
b79d8178bc set role entity to nil on read if it isn't in state 2018-10-04 10:28:45 -07:00
The Magician
d5308e5119 Fix false ImportStateVerify failures in redis tests. (#2169) 2018-10-04 10:27:17 -07:00
Riley Karson
c36b6bbba0
Fix cloud function datasource (#2168) 2018-10-04 10:11:55 -07:00
The Magician
16ff1363a7 remove min_version from a bunch of fields that are in GA now (#2167)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-10-04 09:51:57 -07:00
Dana Hoffman
83f9c94079 WIP: Add deprecation message for generated beta fields. 2018-10-04 02:45:53 +00:00
Paddy Carver
6a881cde88 Fix deprecation URL. 2018-10-03 19:20:04 -07:00
Paddy
8e7347af4e
Merge branch 'master' into paddy_igm_deprecation 2018-10-03 19:08:29 -07:00
Paddy
88d84c8f9e
Merge pull request #2152 from rileykarson/deprecate-fields
Deprecate handwritten beta fields.
2018-10-03 18:56:10 -07:00
Paddy
3294d7e1f4
Merge pull request #2158 from rileykarson/cloud-functions-event-trigger
Add event_trigger to cloud functions
2018-10-03 18:55:53 -07:00
Paddy Carver
9a3dd8db6e Fix provider_versions.html link. 2018-10-03 18:46:20 -07:00
Paddy
d6cf44682a
Merge pull request #2161 from terraform-providers/paddy_bigtable_clusters
Move Bigtable config to cluster block.
2018-10-03 18:09:35 -07:00
Paddy Carver
f743cc057b Only one cluster, max.
Only allow one cluster for bigtable instances. We can expand to 2 for
2.0.0.
2018-10-03 18:01:26 -07:00
Paddy Carver
a814a587c7 Move Bigtable config to cluster block.
Match the bigtable_instance resource to the API structure, deprecating
the inlined config parameters. This is a complicated deprecation,
because we don't want to ForceNew when updating to use the new
undeprecated fields, but we want to ForceNew if they change.

This is achieved using a CustomizeDiff.
2018-10-03 16:37:24 -07:00
Chris Stephens
ba088fa113
Add the moitoring top level resource (#2148)
* Add the moitoring top level resource

* Add stackdriver monitoring to the website
2018-10-03 19:09:24 -04:00
The Magician
1f76d44ec1 Stackdriver monitoring AlertPolicy resource (#2120) 2018-10-03 18:51:49 -04:00
Riley Karson
ee67a87a65 Change deprecation message. 2018-10-03 12:58:52 -07:00
The Magician
d45626a479 allow sending empty values for router fields (#2157) 2018-10-03 12:56:30 -07:00
Riley Karson
e5d8575541 Accept all Cloud Storage and Cloud Pub/Sub event types 2018-10-03 12:42:18 -07:00
Riley Karson
11129f13b8 Add event_trigger to cloud functions 2018-10-03 11:15:45 -07:00
Riley Karson
3f47f06e52
Refactor google_sql_database_instance to use Expand functions. (#2137)
Refactor `google_sql_database_instance` to use Expand functions in Create. Update will start using them when we make the resource authoritative, this change does not modify the resource functionality.
2018-10-03 07:59:07 -07:00
Paddy
69589e5465
Merge pull request #2147 from terraform-providers/paddy_new_appengine
Add google_app_engine_application resource.
2018-10-03 01:14:01 -07:00
Paddy Carver
8f6d256f51 Fix Dana's comments, round two! 2018-10-02 23:41:31 -07:00
Paddy Carver
a3bd81460e Deprecate beta fields for (R)IGM.
Update (Regional) Instance Group Managers to deprecate the beta fields
(rolling_update_policy, versions, and auto_healing_policy). Also, rename
RESTART to REPLACE for Instance Group Manager's update_strategy, to be a
bit clearer. This required a DiffSuppress to make sure RESTART and
REPLACE are considered equivalent. In 2.0.0, we should remove RESTART
and drop the DiffSuppressFunc. Sadly, we have no way to do a deprecation
message for RESTART. We'll have to put it in the CHANGELOG. I've already
removed it from the website.
2018-10-02 17:22:42 -07:00
Paddy
0e4c53e527
Merge pull request #2153 from terraform-providers/paddy_2067
Fix error in instance template read.
2018-10-02 16:47:15 -07:00
Paddy Carver
99ef0adf31 Variable rename. 2018-10-02 16:43:21 -07:00
Paddy Carver
691ae9986b Adjust for Dana's comments. 2018-10-02 16:34:34 -07:00
Riley Karson
bb4c9374bc
Bring google_dns_managed_zones to ga (#2154) 2018-10-02 16:08:04 -07:00
Riley Karson
a4a453dc1b
Deprecate assigned_nat_ip in compute_instance family (#2155)
Part of #2143
2018-10-02 16:07:28 -07:00
Paddy Carver
ee4ec86bef Fix error in instance template read.
Flattening disks involves taking the relative link of each disk. This
only works if you start from a self_link, but we were starting from
anything that resolveImage returns, which includes several
not-self_links.

This PR adds a test that shows the failure, and then fixes it by
expanding the output back out to a self_link before getting the relative
link from it.
2018-10-02 14:45:19 -07:00
Riley Karson
a8747b4909 Deprecate handwritten beta fields. 2018-10-02 14:44:09 -07:00
Paddy Carver
3ab8e95ef6 Pretend to delete, no error. 2018-10-02 14:15:31 -07:00
Paddy
c1d404ddc1
Merge pull request #1995 from terraform-providers/paddy_1916_diff_fix
Fix perma-diff on instance templates.
2018-10-02 14:13:15 -07:00
Dana Hoffman
546401277a
Make max_pods_per_node ForceNew (#2139)
I don't see any way of updating in the API, and even if there were, we aren't calling it right now.

Fixes #2084
2018-10-02 12:40:12 -07:00
Paddy Carver
9ceb644460 Add google_app_engine_application resource.
Deprecate the app_engine sub-block of google_project, and create a
google_app_engine_application resource instead. Also, add some tests for
its behaviour, as well as some documentation for it.

Note that this is largely an implementation of the ideas discussed in
 #2118, except we're not using CustomizeDiff to reject deletions without
our special flag set, because CustomizeDiff apparently doesn't run on
Delete. Who knew? This leaves us rejecting the deletion at apply time,
which is less than ideal, but the only other option I see is to silently
not delete the resource, and that's... not ideal, either.

This also stops the app_engine sub-block on google_project from forcing
new when it's removed, and sets it to computed, so users can safely move
from using the sub-block to using the resource without state surgery or
deleting their entire project. This does mean it's impossible to delete
an App Engine application from a sub-block now, but seeing as that was
the same situation before, and we just papered over it by making the
project recreate itself in that situation, and people Were Not Fans of
that, I'm considering that an acceptable casualty.
2018-10-02 02:59:17 -07:00
Paddy Carver
2fc8da91e7 Fix Dana's comments, expand images to self_links.
Fix Dana's comments, one of which exposed a bug: we weren't actually
fixing the diff. Because resolveImage can return multiple formats, and
only returns a self_link if a self_link is passed in, it was diffing
more often than not against a self_link supplied in the config. We just
had a bug in our CustomizeDiff function that concealed this.

I added the resolvedImageSelfLink helper function to turn the output
from resolveImage into a self_link, which fixes the problem. It also has
the knock-on effect of fixing #2067 at the same time, which is nice. I
decided to add another function instead of just modifying resolveImage
to always return a self_link because I don't want to deal with the
backwards compatibility problems of changing how we're storing a bunch
of things in state this close to 1.19.0. And honestly, we should
probably just be storing the self_link always, _anyways_.
2018-10-02 01:11:03 -07:00
Dana Hoffman
250cfa351c
fix instance template interaction with regional disks, make docs more clear about valid values (#2138) 2018-10-01 11:07:56 -07:00
The Magician
98a608777c use ga api for redis (#2136)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-10-01 10:09:07 -07:00
The Magician
aec2987415 use beta api for container analysis (#2135)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-10-01 09:56:04 -07:00
Alex Barron
70faf686b5 Add "enable_tpu" flag to google_container_cluster (#1974)
* add enable_tpu flag

* missed one

* add docs

* fix test

* tabs

* update tests to new format

* formatting

* formatting
2018-10-01 09:41:54 -07:00
The Magician
1f0eae579f Bugfix: Stop reading region from Redis API. (#2133)
Bugfix: Stop reading region from Redis API, remove unnecessary Flatten methods.
2018-09-28 15:10:55 -07:00
The Magician
10af01f76e Do not send empty values for nested properties (#2117)
<!-- This change is generated by MagicModules. -->
/cc @chrisst
2018-09-28 09:47:20 -07:00
The Magician
61240c3bac Fix TestAccComputeRoute_routeBasicExample (#2124)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-09-27 10:02:50 -07:00
Riley Karson
41d47ec8bb
Deprecate address in compute_instance family, undeprecate network_ip (#2096)
Also remove a duplicate instance test I noticed for ephemeral ips.
2018-09-26 11:19:25 -07:00
Paddy
a395142913
Merge pull request #2090 from terraform-providers/paddy_1292
Check for project deletion when refreshing/deleting project_service.
2018-09-26 11:05:13 -07:00
Riley Karson
8c0bc93771
Vendor random provider to allow use in tests (#2110)
Support for an upcoming generated PR.
2018-09-25 15:09:13 -07:00
Dana Hoffman
9960e2fa62
Simplify GKE cluster code (#2105)
We don't need quite so many `GetOk`s since the client library will ignore any fields that are set to the zero value for that type. I left a few that involved error-handling or things that had to be set before other things, but this at least should make the code a bit nicer to look at.

Tests are passing except the ones that were already failing in CI.
2018-09-25 11:42:37 -07:00
The Magician
d60c05dc30 Magic Modules changes. (#2106) 2018-09-24 15:35:43 -07:00
The Magician
7fb247ee04 Add tests for several compute resource examples, rearrange examples in docs (#2097)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-09-24 13:54:33 -07:00
The Magician
0790c96cac Implement Filestore Instance. (#2088) 2018-09-21 18:01:22 -07:00
Dana Hoffman
bec963fdfa
remove containeranalysis from ignore list (#2095) 2018-09-21 15:58:42 -07:00
The Magician
06c2f8451f WIP: Add interconnect attachments. (#1569)
Fixes #1140.
2018-09-21 13:27:57 -07:00
The Magician
14bac81a71 Supporting IP range reservation for global address (#2087)
<!-- This change is generated by MagicModules. -->
/cc @chrisst
2018-09-21 09:43:45 -07:00
Nathan McKinley
bfb1feb4cb
Make it allowable to add 'network_interface' as workaround for element function (#2018)
Make it allowable to add 'network_interface', 'boot_disk', 'machine_type' as workaround for element function.
2018-09-20 16:49:48 -07:00
Paddy
0b8c9644d7
Merge pull request #1944 from colenet-gmbh/master
Importing  google_dns_managed_zone with project
2018-09-20 14:23:36 -07:00
Paddy
d9614d1664
Merge pull request #2054 from migibert/make_runtime_config_importable
Make runtime configs importable
2018-09-20 14:09:16 -07:00
The Magician
87204bf8aa Sort optional properties by name (#2091)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-09-20 13:22:36 -07:00
Paddy Carver
791c508755 Check for project deletion when refreshing/deleting project_service.
When reading or deleting the google_project_service resource, first
retrieve the project. If it's not found, or if it's pending deletion,
remove the service, as it's functionally disabled.

Also, add a test to confirm the behaviour.

This should resolve #1292.
2018-09-20 12:54:21 -07:00
Riley Karson
72b759dbd3
Remove binary_log_enabled from Postgres test, as it's unsupported (#2075)
\+ update docs.

This must have silently failed in the API before? It doesn't work & is tested upstream now. Binary logs are a non-feature of Postgres.
2018-09-20 12:43:55 -07:00
Ville Törhönen
80e03f7f28 Set computed flag for 'max_pods_per_node' (#2077) 2018-09-19 14:46:41 -07:00
Nathan McKinley
46d297b8c8
Add Filestore client to config. (#2074) 2018-09-18 15:50:51 -07:00
Chris Hawk
771c2f8512 Update vendored deps (#1967)
I'm working on Stackdriver monitoring in another branch, which required updating `google.golang.org/genproto`, which required updating `google.golang.org/grpc`, which required updating `github.com/golang/protobuf`, and so on. This PR updates all of the Google-provided deps to their latest versions. In addition, there is:

- A change in config.go to reflect an updated type name
- Five files changed by `make fmt`

Tested with `make build`, `make test`, and `make testacc`.
2018-09-18 12:50:17 -07:00
Riley Karson
d656e9139a
Add a datasource for google_compute_instance (#1906)
* Add a compute datasource.

* Add provider changes.

* Add self_link support to google_compute_instance datasource.

* Error check complex d.Set calls.
2018-09-18 09:02:48 -07:00
The Magician
c9f1a9ed01 Add tests based on google_compute_address examples. (#2017)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-09-17 12:31:57 -07:00
Dana Hoffman
cc98692acd
move all remaining import_ tests into resource-specific tests (#2060)
I also did a bit of cleanup while I was here and noticed things that I thought could be improved in the files (wording changes, removing tests that aren't quite necessary, etc.) Take a look and make sure I didn't actually remove anything important!
2018-09-17 11:15:11 -07:00
Riley Karson
548f3685b1
Reduce rig datasource test target size to 1. (#2064)
So, every time this test fails we are leaving behind 10 CPUs. This is a big cause of our quota problem because we are at 70!! right now. We still need to fix the test but let's also reduce this count to 1 so we leave 1/10th of the zombie instances.

Changing from a new to legacy health check also did not work so I have no clue what the issue is here. Observing the instances, they are shown as being stuck in "Instance is being verified" state for up to days.
2018-09-17 10:03:43 -07:00
emily
dcde015f84
just make sweeper warn instead of error (#2057) 2018-09-14 14:04:48 -07:00
Dana Hoffman
9d02137703
change delay in region instance group data source test (#2047)
We had a failure in the last CI run while waiting for this resource to be created, so let's increase the timeout.

```
------- Stdout: -------
=== RUN   TestAccDataSourceRegionInstanceGroup
--- FAIL: TestAccDataSourceRegionInstanceGroup (631.53s)
	testing.go:518: Step 0 error: Error applying: 1 error(s) occurred:
		
		* google_compute_region_instance_group_manager.foo: 1 error(s) occurred:
		
		* google_compute_region_instance_group_manager.foo: timeout while waiting for state to become 'created' (last state: 'creating', timeout: 5m0s)
	testing.go:579: Error destroying resource! WARNING: Dangling resources
		may exist. The full state and error is shown below.
		
		Error: Error refreshing: 1 error(s) occurred:
		
		* google_compute_region_instance_group_manager.foo: 1 error(s) occurred:
		
		* google_compute_region_instance_group_manager.foo: google_compute_region_instance_group_manager.foo: timeout while waiting for state to become 'created' (last state: 'creating', timeout: 5m0s)
		
		State: 
FAIL
```
2018-09-14 13:36:58 -07:00
Dana Hoffman
f7630cb5f0
get dataproc logs when jobs fail in test (#2049)
The hadoop test passes for me locally but fails in CI, so this should give some extra debugging information (my user acct doesn't have permissions to read the dataproc logs from the failing test).

WIP for now because I want to make sure this method of reading the logs works.
2018-09-14 13:36:32 -07:00
The Magician
dc27ea8e49 Add missing quotation marks to compute_ssl_certificate tests (#2042)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-09-14 13:30:33 -07:00
Mikael Gibert
1acfc5484a Make runtime configs importable 2018-09-14 14:16:07 +02:00
emily
35e9b16583
Fix Composer Test flakes/bucket sweeper (#2052)
* make delete timeout for composer environments in test longer

* fix sweeper

* fix bucket deletion in sweeper
2018-09-14 01:07:29 -07:00
Riley Karson
e47fe75cd7
Remove hardcoded version in resource_container_node_pool_test.go (#2046) 2018-09-13 14:13:38 -07:00
Dana Hoffman
58ca18e2bf
replace dataproc preview version (#2048) 2018-09-13 13:06:33 -07:00
Riley Karson
fe3e7a7d83
Fix flaky TestAccComputeDisk_timeout test (#2005)
TestAccComputeDisk_timeout is expected to fail 27.77% of the time because acctest.RandString can start with a number, making an invalid `name`. Let's fix that :)
2018-09-13 12:48:29 -07:00
Riley Karson
0a960f5e8c
Fix sql_db test resource name that could start with a #. (#2043)
* Fix test resource name that could start with a #.

* Use acctest.RandomWithPrefix
2018-09-13 10:23:19 -07:00
Jamie Lennox
c24d622b8f Set correct nodepool Id using 4 part importer (#2035)
The ID that is created for a nodepool is 3 parts in the form of
<location>/<cluster>/<nodepool>. When we use the newer 4 part import
format the ID becomes that string. Then when checking the existence of
the nodepool the name is incorrectly parsed out of the ID.

When using the 4 part import form we need to set the correct ID so that
terraform can parse the name from the ID.

Closes: #1846
2018-09-12 18:44:52 -07:00
Nathan McKinley
ab4eef468c
Fix _withPrivateCluster container test. (#2041) 2018-09-12 17:58:11 -07:00
Nathan McKinley
81f8befbb5
Add support for max pods per node to node pool. (#2038) 2018-09-12 17:49:26 -07:00
The Magician
51108005fa Autogenerate google_compute_ssl_certificate. (#2015)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-09-12 15:55:49 -07:00
Chris Stephens
c8acdf8916
Service account email for SQL instances (#2040)
Fixes https://github.com/terraform-providers/terraform-provider-google/issues/632
2018-09-12 15:43:47 -07:00
Nathan McKinley
f05d62c89e
Enable multiple alias IP ranges for compute instance. (#2029)
* Enable multiple alias IP ranges for compute instance.
2018-09-11 17:37:35 -07:00
emily
46001de06d
Fix Composer test sweeper (#2032)
* fix composer sweeper

* make fmt
2018-09-11 17:27:48 -07:00
Michael Haro
24c9cc7481 Remove duplicate ProjectIDRegex variable (#1878)
* Remove duplicate ProjectIDRegex variable

* update validation and test for new regex
2018-09-11 13:27:14 -07:00
emily
017f2f9b54
Add Cloud Composer Environments resource (#2001)
Adds Cloud Composer Environment resource and test sweeper
2018-09-11 13:13:11 -07:00
Chris Stephens
afcbb859ca
Attached disk resource (#1957)
* Adding resource_attached_disk

This is a resource which will allow joining a arbitrary compute disk
to a compute instance. This will enable dynamic numbers of disks to
be associated by using counts.
2018-09-11 13:08:14 -07:00
Chris Stephens
82e19ea060
Merge pull request #2009 from chrisst/is-1803-dns-labels
Add labels functionality to managed DNS
2018-09-11 13:03:56 -07:00
Chris Morgan
55991833f4 #644 Add Support For BigQuery Access Control (#1931)
* Updates based on PR comments

* Fix markdown nested list

* Second round of feedback

* Clarify pick one docs
2018-09-11 12:27:10 -07:00
Nathan McKinley
aab9e9e0c2
Source repo import. (#2020) 2018-09-11 10:55:55 -07:00
Harry Pidcock
65669fc6d6 Added Environment Variables configuration to Cloud Functions (#1830) 2018-09-10 17:37:43 -07:00
Riley Karson
37de4312e3
go tool fix google (#2019) 2018-09-10 15:07:48 -07:00
emily
b1338b4ee7
Allow recreation of recently deleted project and org custom roles (#1681)
* undelete-update recently soft-deleted custom roles

* remove my TODO statements

* check values on soft-delete-recreate for custom role tests

* final fixes to make sure delete works; return read() when updating to 'create'

* check for non-404 errors for custom role get

* add warnings to custom roles docs
2018-09-10 11:36:16 -07:00
Chris Stephens
c74d7d2c60 Add labels functionality to managed DNS 2018-09-07 16:53:40 -07:00
The Magician
8212820076 Store vpn_tunnel.router as a self_link. Fixes #1963. (#2003)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-09-07 15:36:34 -07:00
Mikaël Gibert
af3e7375b9 Add region choice to dataflow jobs (#1979)
Fixes #1600
2018-09-07 10:48:33 -07:00
Ralf Waldvogel
90980c1b24 Merge branch 'master' of https://github.com/terraform-providers/terraform-provider-google 2018-09-07 06:26:08 +02:00
Chris Stephens
30773a784d Setting a default update_mask for all log sinks
[According to log sink documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/sinks/update)
the api will eventually throw an error if update mask isn't provided. The
default specified here is what the api is currently using when an empty mask
is passed.
2018-09-06 09:48:48 -07:00
Riley Karson
035a581b9f
Add import support for org, folder, billing logging sinks (#1860)
Fixes #1494.

* Add import support for `google_logging_organization_sink`, `google_logging_folder_sink`, `google_logging_billing_account_sink`.

Using `StateFunc` over `DiffSuppressFunc` should only affect tests; for some reason `TestAccLoggingFolderSink_folderAcceptsFullFolderPath` expected a `folder` value of `folders/{{id}}` vs expecting `{{id}}` when only `DiffSuppressFunc` was used, when in real use `DiffSuppressFunc` should be sufficient.
2018-09-06 08:14:55 -07:00
Paddy Carver
5cf6a5d131 Fix perma-diff on instance templates.
When using instance templates, if you use one of our image shorthands at
the moment, you'll get a perma-diff. This is because the config gets
resolved to another format before it is set in state, and so we need to
set that other format in state.

Unfortunately, resolving images requires network access, so we have to
do this with CustomizeDiff. CustomizeDiff was having trouble (I think?
More on this below) on setting a field as not ForceNew once the field
was already set, so I moved the decision for whether a field was
ForceNew or not into CustomizeDiff. I also resolved the old and new
images, and if they were the same, cleared the diff.

Unfortunately, you can't actually clear a field on a sub-block right
now. You have to clear top-level fields only. So this will currently
throw an error. I opened hashicorp/terraform#18795 to fix that. Once
that's merged, and we vendor it here, this patch fixes the problem.

If hashicorp/terraform#18795 doesn't get merged, the next best
workaround is to keep track of _all_ the fields under `disk` with a diff
in our CustomizeDiff, check whether they've all changed or not, and if
they've all changed, clear the changes on `disk`, which I _think_ will
resolve the issue. That's just a massive pain, unfortunately.
2018-09-05 17:35:44 -07:00
Paddy Carver
010c0f3288 Update README and run fmt. 2018-09-05 15:24:22 -07:00
Riley Karson
c8ba3c0b3f
Cleaned up google_project_usage_export_bucket code and docs. (#1922) 2018-09-05 10:31:35 -07:00
Nathan McKinley
9065b5a624 Addition of create_subnetwork and other fields relevant for Alias IPs (#1921)
* Addition of create_subnetwork and use_ip_aliases.

* add fields for [cluster|services]_ipv4_cidr_block and subnetwork_name
2018-09-05 09:52:06 -07:00
emily
27ade47e5a
Fixes for importing sql database instances (#1956)
* fix importing for sql resources

* fmt

* fix id for sql db import, tests

* change test names to be more specific
2018-08-28 16:51:37 -07:00
The Magician
2afafa0573 Magic Modules changes. (#1951) 2018-08-28 16:48:00 -07:00
emily
10ec7b2ca9
Use beta API location for google_container_engine_versions (#1939)
* use beta API location for  data source

* doc fixes

* use getLocation

* add note to docs about required locations
2018-08-28 11:37:07 -07:00
The Magician
f1f0bc97e2 Autogenerate HealthCheck resource (#1941) 2018-08-27 16:35:47 -07:00
emily
83406c3c5f
fix possible error from nil check (#1942) 2018-08-27 16:22:06 -07:00
Ralf Waldvogel
880f90d7d2 - added Importer for resource_dns_managed_zone
- added tests and acceptance tests
2018-08-26 10:04:54 +02:00
emily
7e82a982e4
Fix service account key data source name (#1932)
* fix service account key data source name

* switch id to name

* update docs

* doc format

* fixes for validation and tests

* last fixes for service account key data source
2018-08-24 15:29:27 -07:00
emily
96b17536b9
Initial TF commits needed for cloud composer support (#1926)
* add cloud composer vendor

* init composer client and resource map
2018-08-22 15:59:05 -07:00
Paddy
5d48dc81d2
Merge pull request #1916 from terraform-providers/paddy_disk_image_url_in_templates
Always set instance template source images on read.
2018-08-22 14:42:44 -07:00
Dana Hoffman
d90e7fb4f6
fix panic on gke binauth (#1924) 2018-08-22 12:47:43 -07:00
Paddy
38790dab3f
Merge pull request #1915 from terraform-providers/paddy_fix_disk_timeout
Fix failing disk test.
2018-08-22 11:52:11 -07:00
Paddy
cd32fdfad4
Merge pull request #1917 from terraform-providers/paddy_debian_resolve_image
Fix the last of the debian-8 updates.
2018-08-22 11:51:49 -07:00
Riley Karson
fbad37ebff
Fix storage notification tests (#1913)
* Update google_storage_project_service_account to mirror API.

* Fix storage notifications test, clarify docs.
2018-08-22 08:19:52 -07:00
Paddy Carver
787bccdb0e Fix the last of the debian-8 updates. 2018-08-21 19:40:03 -07:00
Paddy Carver
b94881b423 Always set instance template source images on read.
Previously, we were only setting source images for the disks in instance
templates if they weren't set in the config. Instead, let's just always
set them. This fixes our test failures about self_links not matching
names. Also, relative links are safer than just image names, as
Terraform wouldn't notice if another project's image of the same name
got used instead of your project's.

Also fix the setting of tags and tag fingerprints to always set, even if
to the empty value, to fix the tests.
2018-08-21 18:32:25 -07:00
Paddy Carver
451391bdd7 Fix failing disk test.
Change Create to create in timeouts to fix failing test.
2018-08-21 17:55:38 -07:00
The Magician
875f1f874e Generate resource_compute_firewall in magic-modules. I also decided to use PATCH instead of PUT for updates, because a lot of the fields we had marked as ForceNew can be updated with PATCH. (#1907)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-08-21 14:12:46 -07:00
Paddy
1bcddf995a
Merge pull request #1879 from terraform-providers/paddy_image_fix
Switch from debian-8 to debian-9
2018-08-21 13:40:31 -07:00
Paddy Carver
be76ffaa78 Fix whitespace, really.
Tabs v spaces strikes again.
2018-08-21 13:36:04 -07:00
Riley Karson
3f0088515a Add a detailed error message to google_project Create when lacking permissions. (#1910) 2018-08-21 12:42:03 -07:00
David Asabina
bf7626a5c6 Fix panic on empty list for authorized masters' cidr_blocks (#1904)
* test empty authorized masters' cidr_blocks

When the `cidr_block` isn't simply blank but contains an empty list as in

```
master_authorized_networks_config {
  cidr_blocks = []
}
```

a panic occurs looking something like

```
goroutine 26 [running]:
github.com/terraform-providers/terraform-provider-google/google.expandMasterAuthorizedNetworksConfig(0x15a4f80, 0xc4202586e0, 0x21)
	/tmp/GOPATH/src/github.com/terraform-providers/terraform-provider-google/google/resource_container_cluster.go:1355 +0x4f2
github.com/terraform-providers/terraform-provider-google/google.resourceContainerClusterCreate(0xc420146a80, 0x16b1800, 0xc4200b8000, 0x0, 0x0)
	/tmp/GOPATH/src/github.com/terraform-providers/terraform-provider-google/google/resource_container_cluster.go:520 +0x2848
github.com/terraform-providers/terraform-provider-google/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc420495490, 0xc420341310, 0xc4202582c0, 0x16b1800, 0xc4200b8000, 0x1, 0xc42024eae0, 0xc4201e3650)
	/tmp/GOPATH/src/github.com/terraform-providers/terraform-provider-google/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:227 +0x364
github.com/terraform-providers/terraform-provider-google/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc4204c6700, 0xc4203412c0, 0xc420341310, 0xc4202582c0, 0x14ee1441a000, 0x0, 0x18)
	/tmp/GOPATH/src/github.com/terraform-providers/terraform-provider-google/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:283 +0xa4
github.com/terraform-providers/terraform-provider-google/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Apply(0xc4202d7c40, 0xc42035de80, 0xc42025c160, 0x0, 0x0)
	/tmp/GOPATH/src/github.com/terraform-providers/terraform-provider-google/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:527 +0x57
reflect.Value.call(0xc4203feae0, 0xc42000e038, 0x13, 0x19e88a8, 0x4, 0xc42015ff20, 0x3, 0x3, 0xc420047ee8, 0xc4204c6798, ...)
	/usr/local/go/src/reflect/value.go:434 +0x905
reflect.Value.Call(0xc4203feae0, 0xc42000e038, 0x13, 0xc420047f20, 0x3, 0x3, 0xc400000001, 0x0, 0x0)
	/usr/local/go/src/reflect/value.go:302 +0xa4
net/rpc.(*service).call(0xc420418600, 0xc42007c140, 0xc42001e798, 0xc4200c4000, 0xc4202d6c40, 0x1557f80, 0xc42035de80, 0x16, 0x1557fc0, 0xc42025c160, ...)
	/usr/local/go/src/net/rpc/server.go:381 +0x142
created by net/rpc.(*Server).ServeCodec
	/usr/local/go/src/net/rpc/server.go:475 +0x36b
```

which we trigger by altering the first step to contain the HCL notation
for an empty list instead of simply an empty string.

In order to accomplish this, the tests had to be modified to accept an
emptyValue string as well which contains the content of the
`emptyValue` string when the cidrBlocks array is empty. This maintains
the old behavior of the original tests when `emptyValue` is an empty
string, while also facilating differing behavior for the new testcase by
setting `emptyValue` to whichever string we want to test instead. I
don't think this is very clean, but I guess it's pragmatic enough.

I'll hear if this is a thorn in the side to someone 😏.

* avoid panic on cidr_block type assertion

This is basically the fix. Since the value can be nil, we want to ensure
we handle a failure during the assertion since we know that asserting
`nil` conforms to `map[string]interface{}` will cause a run-time panic.

* flatten to config on empty list for cidr_blocks

since an empty list for cidrBlocks constitutes valid input, one should
return a map containing an empty list for the cidr_blocks field instead
of a nil value.

The nil value is only appropriate when the input Config is also nil.
2018-08-20 19:29:37 -07:00
The Magician
3ff7ccca7c Add Policy, Attestor, and Note resources for Binary Authorization (#1885)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-08-20 16:46:13 -07:00
Nathan McKinley
ea4a6438d8
Handle service account key 403 on nonexistent resource requested (#1900)
* 403 on delete / read should count as deleted for this product.
2018-08-17 16:00:13 -07:00
Nathan McKinley
d77c0adbb2
Add support for bucket encryption (#1876)
* Support encryption in Storage bucket.
* Add self links to crypto keys and key ring ids
* Update ID documentation to talk about self link instead.
2018-08-17 14:33:27 -07:00
Dana Hoffman
d1bf585724
Add support for binary authorization in GKE (#1884)
* revendor container/v1beta1

* add support for binauthz in gke

* update description
2018-08-16 17:51:03 -07:00
Nathan McKinley
f9f95e444d
Correctly update regional resource. (#1887) 2018-08-16 13:57:41 -07:00
The Magician
085a05cefc Fix region disk type (#1890)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-08-16 12:29:39 -07:00
The Magician
81420a2e57 move getProject/op call and allow sending objects in delete (#1888) 2018-08-16 12:16:14 -07:00
Riley Karson
8506527a80 Add support for boot_disk_type to google_dataproc_cluster (#1855) 2018-08-15 23:00:11 -07:00
Nathan McKinley
0909aa5b20
If a router interface or peer is the last one, ensure it's removed. (#1877) 2018-08-15 22:49:36 -07:00
Christoph Blecker
60dc8bccad Add google_project_services data source (#1822) 2018-08-15 15:45:54 -07:00
The Magician
3db96c9073 Make flatteners of sets return sets (#1880)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-08-15 13:46:55 -07:00
Paddy Carver
bfcb07bdfb Fix migration tests. 2018-08-15 13:30:24 -07:00
Paddy Carver
b2405d8da0 Fix bad paste. 2018-08-15 13:26:02 -07:00
Paddy Carver
f9c6993990 Fix whitespace. 2018-08-15 13:23:31 -07:00
Alexey Medvedchikov
3fc71ee432 Don't recreate google_container_cluster on master_auth change (#1873)
* Update google_container_cluster master_auth username and password without recreation of cluster, using setMasterAuth method

* Add tests to update and disable master_auth password and username values
2018-08-15 12:50:17 -07:00
Paddy Carver
614b98b3fc Fix indenting. 2018-08-15 12:29:11 -07:00
Harry Pidcock
8fbbee00b9 Fix cloud function sourceArchiveUrl incorrect interpretation. (#1844) 2018-08-14 17:09:32 -07:00
Megumi Tomita
004c010b33 Add supported locations of cloudfunction (#1863)
Cloudfunction facility is now supported in 4 locations.
This pull-request updates the list to catch up with it.
2018-08-14 17:07:43 -07:00
Walker
c810e4b408 provider: Ensures schema.TypeMap elements are schema.Schema (#1835) 2018-08-14 16:53:39 -07:00
Nathan McKinley
841926e07b
Fix project iam policy import to work even without provider project. (#1875) 2018-08-14 14:17:01 -07:00
Michael Haro
2c4afd3aec Allow other forms of project names to be matched. (#1865) 2018-08-14 11:48:08 -07:00
Nathan McKinley
4408183c9f
Suppress diff for ubuntu-minimal-lts as well as ubuntu-lts. (#1870) 2018-08-14 11:24:37 -07:00
Paddy Carver
dd56795f2a Use family, not name, in image data source. 2018-08-14 11:18:39 -07:00
Paddy Carver
5c9ce55172 Continue our deprecation of debian-8. 2018-08-13 16:20:33 -07:00
Landon Spear
f604f3eac2 Add us-west2 to app engine locations (#1867) 2018-08-13 14:23:10 -07:00
Chris Stephens
a0e0afc537
Merge pull request #1848 from chrisst/link-helper-comments
Clarifying helper method usage
2018-08-13 11:22:17 -07:00
Paddy Carver
a13bcfbda1 Start updating to use the latest debian release. 2018-08-13 10:31:18 -07:00
The Magician
41d92fda3e Remove request helper methods. (#1856)
Since we added custom verbs for a lot of resources, we should just use sendRequest directly.
2018-08-08 15:29:10 -07:00
Nathan McKinley
d01c0cd60e
Fixes related to autogenerating the VPN Tunnel resource (#1850) 2018-08-07 17:55:45 -07:00
Dana Hoffman
00e5bd5363
allow updating node image types (#1843)
Fixes #1702.

@chrisst I'm putting you as a reviewer, but no rush. Feel free to ask as many questions as you have! Also feel free to offer suggestions 😃 (or just say it's perfect as-is, that works too)
2018-08-07 14:07:28 -07:00
Chris Stephens
d94100dee4 Clarifying helper method usage
Changing comments and method signature
2018-08-07 11:32:35 -07:00
Dana Hoffman
c5388d27c4
add hash function for self link name (#1836) 2018-08-03 16:23:21 -07:00
The Magician
a6e1ecad7a Make redis alternativeLocationId computed (#1754) 2018-07-26 17:35:18 -07:00
Dan Isla
bb6c757ad1 Container cluster delete timeout to 30 min. (#1745)
Matches Create operation timeout. Should reduce timeouts when deleting regional clusters.
2018-07-26 10:22:39 -07:00
Nathan McKinley
aaf18dacca
CloudBuild Trigger substitutions (#1810) 2018-07-25 13:38:35 -07:00
The Magician
0fdc262183 Add LabelFingerprint and Label to Address and GlobalAddress. (#1811) 2018-07-25 13:25:16 -07:00
oceyral
7da529f3c1 Implement multiple versions for regional instance groups (#1809) 2018-07-25 13:21:20 -07:00
Dana Hoffman
b8cf81e527
use customizediff to allow all role-entity pairs to be unordered (#1787) 2018-07-24 15:36:30 -07:00
Dana Hoffman
b4bb79f58e
lock on master name when creating replicas (#1798) 2018-07-24 15:32:18 -07:00
Dana Hoffman
080f6fe2e1
don't call full read when updating billing acct (#1795) 2018-07-19 13:32:29 -07:00
The Magician
cacdaec642 handle nil resourceref links in generated code (#1794)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-07-19 12:26:40 -07:00
Dana Hoffman
7c47e13aa6
Changes to things that got merged too early (#1790) 2018-07-18 15:47:23 -07:00
Luke Hoban
cf4e731236 Add support for updating function code in place (#1781)
Remove ForceNew from the source inputs on function resources, and add support for updating the function in place from a new source bucket+object.
2018-07-18 14:48:00 -07:00
The Magician
c0610c5544 Add google_compute_region_disk resource. (#1755)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-07-18 14:24:21 -07:00
The Magician
0e29432a32 use compareSelfLinkOrResourceName diffsuppress on redis authorizednetwork. Fixes #1750. (#1782)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-07-18 13:34:47 -07:00
The Magician
aa20a0efe7 Support unordered list on subnetwork secondary IP range. (#1772) 2018-07-17 15:18:18 -07:00
Paddy
1fea758265
Merge pull request #1779 from danawillow/is-1775
allow setting instance scheduling booleans to false
2018-07-17 00:07:14 -07:00
Dana Hoffman
335ccae604 force send a bunch more fields in firewall 2018-07-16 18:46:05 -07:00
The Magician
1f9de6ad13 use patch instead of put to update router. Fixes #1778. (#1780)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-07-16 14:56:03 -07:00
Dana Hoffman
547245bada allow setting instance scheduling booleans to false 2018-07-16 13:54:47 -07:00
Paddy
8753eb0268
Merge pull request #1769 from terraform-providers/paddy_1767
Fix crash when updating container cluster resource labels.
2018-07-13 14:21:05 -07:00
Paddy Carver
c404cd740b Use map helper. 2018-07-13 14:14:00 -07:00
The Magician
ba2ea638ee Turn off logs on compiler unless you use --debug flag (#1771) 2018-07-13 11:13:29 -07:00
Paddy Carver
0435b1f387 Fix crash when updating container cluster resource labels.
We had a bad type coercion in the code to update container cluster
resource labels. This fixes the coercion.

We didn't notice this because there was no test exercising the update
code path. I've added the test, which reproduced the panic before this
PR was applied and passes successfully now that the coercion is fixed.
2018-07-13 02:27:40 -07:00
Nathan McKinley
687f8d0857 Sometimes we run tests on overloaded machines. (#1765) 2018-07-12 17:39:54 -07:00
The Magician
01a2906518 Fix nested object handling in generated code (#1757)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-07-12 17:15:40 -07:00
Paddy Carver
d80c92f33f Add stackdriverprovisioning to ignored APIs.
Add stackdriverprovisioning.googleapis.com to our list of APIs that are
automateically enabled that Terraform can't act on.
2018-07-12 13:40:30 -07:00
Paddy
e08832c48c
Revert "Fix instance group manager rolling-updates" 2018-07-12 13:09:57 -07:00
The Magician
499690f3b3 Autogenerate router resource. Also adds update support and a few new fields. (#1723) 2018-07-12 12:51:11 -07:00
Paddy Carver
a29a0cbbda Make licenses field of images computed.
Images now have a licenses field, which lets users specify licenses to
use on an image. But official images already have licenses on them, adn
so Terraform is reading those as a diff. To preserve backwards
compatiblity and avoid a breaking change that would require all
`google_compute_image` users to update their configs, I've set the field
to computed. This means that if no licenses are set in the config, there
can be licenses in the config without prompting a diff. Obviously, this
isn't ideal, as it means you can't ever remove all the licenses from an
image, but I think the benefits here outweigh the drawbacks.
2018-07-12 11:50:02 -07:00
Dana Hoffman
8b71cecad7
fix retries for wrapped errors (#1760)
Turns out this block of code:
 2ea2baaedd/google/resource_google_project_services.go (L246-L307)
wasn't actually retrying on quota failures (429s) because it was getting wrapped, so our retry helper saw it as as non-retryable. This fixes that.
2018-07-12 11:19:49 -07:00
Paddy Carver
d6f2a285ef Rename test, add comment. 2018-07-12 10:26:48 -07:00
Paddy Carver
1c4f1a0bec Merge branch 'master' into mchalek-fix-services-pagetoken 2018-07-12 06:06:17 -07:00
Paddy Carver
c998a37a83 Update our test to page.
Add a bunch more services to our manyServices test, so that we have a
page that exercises pagination logic.
2018-07-12 06:04:09 -07:00
Paddy
3d2e72208e
Merge pull request #1717 from Mierdin/master
Implement 'licenses' field in compute_image resource
2018-07-11 21:15:35 -07:00
Paddy
7663c6ff3a
Merge pull request #1742 from bpineau/fix-igm-rolling-updates
Fix instance group manager rolling-updates
2018-07-11 04:28:41 -07:00
Dana Hoffman
a6198a0b60
prereqs for regional disks (#1753)
In testing an upcoming `google_compute_region_disk` resource, I had to make these changes. Checking them in separately so that when the magician runs, these changes will already be a part of TF.
2018-07-10 17:10:05 -07:00
The Magician
b93a759b25 Switch compute/disk type to be a resource reference instead of string. (#1748) 2018-07-10 10:51:46 -07:00
Benjamin Pineau
633c2191ac Fix instance group manager rolling-updates
Currently, the rolling-update API expects a PUT (regionInstanceGroupManager.update())
instead of a PATCH (regionInstanceGroupManager.patch()) call, so immediate rolling updates
(as specified with `update_strategy = "ROLLING_UPDATE"``) are never triggered:

```
[DEBUG]: ---[ REQUEST ]---------------------------------------
[DEBUG]: POST /compute/beta/projects/mycompany-myapp-staging/regions/europe-west3/instanceGroupManagers/myapp-server/setInstanceTemplate?alt=json HTTP/1.1
....
[DEBUG]: ---[ RESPONSE ]--------------------------------------
...
[DEBUG]:  "warnings": [
[DEBUG]:   {
[DEBUG]:    "code": "FIELD_VALUE_OVERRIDEN",
[DEBUG]:    "message": "Update policy type was set to OPPORTUNISTIC. Please use regionInstanceGroupManager.update() to preserve the policy."
[DEBUG]:   }
```

refs:
https://cloud.google.com/compute/docs/reference/rest/beta/instanceGroupManagers/patch
https://cloud.google.com/compute/docs/reference/rest/beta/instanceGroupManagers/update

Fix #1506
2018-07-08 16:20:30 +02:00
Kevin McHale
9c9eccc206 Add nextPageToken to fields argument against ServiceUsage api 2018-07-06 15:37:19 -04:00
Paddy
0eb723ec32
Merge pull request #1665 from vishen/container_cluster_disk_type
container_cluster: added disk_type node configuration
2018-07-06 05:16:12 -07:00
Renzo Toma
90eabdec15 Increase max number of master_authorized_networks to 20, per GKE docs.
See https://cloud.google.com/kubernetes-engine/docs/how-to/authorized-networks#setting_up_an_authorized_network
2018-07-05 22:10:17 +02:00
Paddy
cf72a65aa5
Merge pull request #1663 from garethjevans/resourcelabels
Added ability to configure resource labels on a GKE cluster
2018-07-02 11:50:25 -07:00
The Magician
ded4eb8c64 Support Redis configuration (#1706)
<!-- This change is generated by MagicModules. -->
/cc @edevil 

Fixes #1547
2018-07-02 10:16:38 -07:00
The Magician
18e0d423d6 Autogenerate VPN Tunnel resource (#1699) 2018-06-29 16:27:01 -07:00
The Magician
74c64030b8 add quic_override to google_compute_target_https_proxy (#1718) 2018-06-29 15:24:27 -07:00
Matt Oswalt
d7c1bf93a0
Update tests for image licenses
Signed-off-by: Matt Oswalt <matt@keepingitclassless.net>
2018-06-29 06:45:02 -07:00
Dana Hoffman
7e04cee958
add new compute_instance_from_template resource (#1652)
This was done as its own resource as suggested in slack, since we don't have the option of making all fields Computed in google_compute_instance. There's precedent in the aws provider for this sort of thing (see ami_copy, ami_from_instance).

When I started working on this I assumed I could do it in the compute_instance resource and so I went ahead and reordered the schema to make it easier to work with in the future. Now it's not quite relevant, but I left it in as its own commit that can be looked at separately from the other changes.

Fixes #1582.
2018-06-28 16:09:23 -07:00
Matt Oswalt
8941c5ef6e
Implement 'licenses' field in compute_image resource
Signed-off-by: Matt Oswalt <matt@keepingitclassless.net>
2018-06-28 09:51:50 -07:00
Rodrigo Queiro
4a41eaad77 Retry creation of Cloud IoT registry (#1713)
This can fail with 503, which is a transient error.
2018-06-27 16:49:09 -07:00
The Magician
5976152ad9 Add generated google_compute_autoscaler and google_compute_region_autoscaler resources. Because this adds the ability to import by more than just the name, we can get rid of all the code in resource_compute_autoscaler.go that tries to find the autoscaler in the provider-specified region. (#1700) 2018-06-27 12:49:34 -07:00
The Magician
97b8419ea5 Fix bug with forwarding rule when used with non-targetpool target. (#1707) 2018-06-27 11:27:32 -07:00
The Magician
788e1efaac Autogenerate google_compute_forwarding_rule. (#1674) 2018-06-25 14:03:48 -07:00
Paddy Carver
87be5d2345 Explain this silliness.
Add a comment explaining why I'm setting something to nil in state.
2018-06-25 13:12:28 -07:00
Paddy Carver
d7078ab309 Fix failing test for storage ACLs.
When using predefined storage ACLs, you'd get a permadiff, because the
role_entities list was computed, but was never set in state. So it would
be read as empty in the config, and not present in state, so Terraform
would want to pull it down and sync it. This is probably, technically
speaking, a bug in Terraform, but we can work around it by just setting
role_entities to an empty value on every read.
2018-06-25 13:02:05 -07:00
Gareth Evans
bf7c70b392 Minor code changes as requested 2018-06-25 09:55:27 +01:00
Dana Hoffman
34a68289cd
retry node pool writes on failed precondition (#1660)
Hypothetically fixes #1643.

@thomasriley, are you able to patch this change into your provider to see if it fixed the problem? I haven't been able to get a working repo so I haven't verified the fix yet.
2018-06-22 16:21:35 -07:00
Paddy
9bd15ad48d
Merge pull request #1685 from emilymye/container_cluster_list_param_multifix
Make sure TypeList keys still have empty values
2018-06-22 11:52:06 -07:00
emily
2015b4aac9
make email computed for GCE default service account (#1690) 2018-06-22 10:42:39 -07:00
Emily Ye
6b0dbf5bbe check d.Set errors for complex values for container cluster 2018-06-22 10:35:46 -07:00
Emily Ye
f8c3a10809 Merge branch 'master' of https://github.com/terraform-providers/terraform-provider-google into container_cluster_list_param_multifix 2018-06-22 10:31:06 -07:00
Paddy
d9fa83f6db
Merge pull request #1692 from terraform-providers/paddy_storage_bucket_acl_custom_diff
Fix the perma-diff in storage bucket ACLs
2018-06-22 09:39:29 -07:00
Paddy
9ffe753bb4
Merge pull request #1693 from terraform-providers/paddy_dns_managed_zone_data_source
Update DNS managed zone in tests.
2018-06-22 09:38:37 -07:00
Paddy
fe0950d8e1
Merge pull request #1684 from ndmckinley/sql-disk
Reject disk shrinkage on SQL instances
2018-06-22 00:30:57 -07:00
Paddy Carver
2edf3087a9 Update DNS managed zone in tests.
Move from using qa.test.com, a domain we don't own, to qa.tf-test.club,
a domain we do own, so the domain validation doesn't cause our tests to
fail anymore.
2018-06-22 00:00:30 -07:00
Paddy Carver
1c8d56eca2 Fix the perma-diff in storage bucket ACLs.
Add a CustomDiff function to storage bucket ACLs that will ignore a diff
if the config and state have the same role_entities, even if they're in
a different order.

Fixes #1525.
2018-06-21 23:42:25 -07:00
The Magician
a3964baed6 Fix some unit test failures in generated code where custom expanders are used. (#1691)
<!-- This change is generated by MagicModules. -->
/cc @ndmckinley
2018-06-21 17:46:50 -07:00
Emily Ye
f3b092b3ca make sure TypeList keys still have empty values 2018-06-20 16:45:49 -07:00
Nathan McKinley
a64056156c Reject disk shrinkage. 2018-06-20 15:17:49 -07:00