Commit Graph

1006 Commits

Author SHA1 Message Date
Paddy
23b525375e google_container_versions => google_container_engine_versions
As per feedback from @danawillow and @radeksimko.
2017-05-10 15:01:15 -07:00
Radek Simko
192c359131 provider/google: Log HTTP requests and responses in DEBUG mode (#14281) 2017-05-10 21:16:43 +02:00
Alexander
b95489c0b7 provider/google: BigQuery Table (#13743)
* Add resource

* Add tests

* Add documentation

* Fix invalid comment

* Remove MinItems

* Add newline

* Store expected ID and format

* Add import note

* expiration_time can be computed if dataset has an expiration_time set

* Handle 404 using new check function
2017-05-10 10:20:39 -07:00
Alexander
4c8f6d1dc0 provider/google: BigQuery Table (#13743)
* Add resource

* Add tests

* Add documentation

* Fix invalid comment

* Remove MinItems

* Add newline

* Store expected ID and format

* Add import note

* expiration_time can be computed if dataset has an expiration_time set

* Handle 404 using new check function
2017-05-10 10:20:39 -07:00
Dana Hoffman
da2a1b5659 provider/google: Handle all 404 checks in read functions via the new function 2017-05-10 14:50:19 +03:00
Dana Hoffman
3eb1ea08db provider/google: better visibility for compute_region_backend_service (#14301) 2017-05-09 13:10:14 +03:00
Dana Hoffman
14e00af605 provider/google: better visibility for compute_region_backend_service (#14301) 2017-05-09 13:10:14 +03:00
emily
7fb25e29de Add additional properties for google resource storage bucket object. (#14259) 2017-05-08 16:35:47 -07:00
emily
06b92096dd Add additional properties for google resource storage bucket object. (#14259) 2017-05-08 16:35:47 -07:00
Sergiusz Bazański
99ab5cc6c4 Fix Google Cloud Service Account provider .Read (#14282)
The implementation would return an error if the resource was detected as
removed - this would break Terraform instead of making it re-create the
missing service account.
2017-05-08 09:02:54 -05:00
Paddy
c44979cdf3 providers/google: add google_container_versions data source.
Add a data source for listing available versions for Container Engine
clusters or retrieving the latest available version.

This is mostly to support our tests for specifying a version for cluster
creation; the withVersion test has been updated to use the data source,
meaning it will stop failing on us as new versions get released.
2017-05-08 00:38:11 -07:00
Paddy
56dfb7d8f8 providers/google: add google_container_versions data source.
Add a data source for listing available versions for Container Engine
clusters or retrieving the latest available version.

This is mostly to support our tests for specifying a version for cluster
creation; the withVersion test has been updated to use the data source,
meaning it will stop failing on us as new versions get released.
2017-05-08 00:38:11 -07:00
stack72
ff26c58f8c proovider/google: Adding test for google_pubsub_subscription path 2017-05-05 16:57:24 +03:00
stack72
fe4873c1e1 proovider/google: Adding test for google_pubsub_subscription path 2017-05-05 16:57:24 +03:00
Daniel Schierbeck
f3c0c30e30 Add path to google_pubsub_subscription
The path is used to globally identify a subscription.
2017-05-05 14:31:59 +02:00
Roberto Jung Drebes
ec3a2d9535 Merge branch 'master' into cloud_router 2017-05-05 11:43:41 +02:00
Dana Hoffman
522e33f62b provider/google: Move 404 checking into a function in provider.go, call it from instance and IGM (#14190) 2017-05-04 16:15:36 -07:00
Daniel Schierbeck
b309f06379 Handle google_storage_bucket_object not being found (#14203)
Mark the resource as no longer available.
2017-05-04 20:57:49 +03:00
stack72
27d9d43721 provider/google: Minor formatting issues on import of compute route test 2017-05-04 19:17:25 +03:00
stack72
e5a73d9ccb Merge branch 'g-route-import' of https://github.com/skalle/terraform into skalle-g-route-import 2017-05-04 19:13:58 +03:00
Paddy
95ae7b0173 Merge branch 'master' into cloud_router 2017-05-03 16:00:13 -07:00
Paddy
b468e499eb Merge branch 'master' into cloud_router 2017-05-03 16:00:13 -07:00
Paddy
ce88ad68ab Merge pull request #13824 from JDiPierro/import_google_dns_managed_zone
Importability for Google DNS Managed Zone
2017-05-03 15:54:43 -07:00
Paddy
b5cbbee272 Merge pull request #12482 from tpoindessous/gcp_compute_disk_snapshot
provider/google : add a new resource : google_compute_snapshot
2017-05-03 15:47:07 -07:00
Paddy
2865a34eb8 Merge pull request #12482 from tpoindessous/gcp_compute_disk_snapshot
provider/google : add a new resource : google_compute_snapshot
2017-05-03 15:47:07 -07:00
Dana Hoffman
dc18b53c15 provider/google: fix compute instance panic with bad disk config (#14169) 2017-05-03 14:30:36 -07:00
Dana Hoffman
0c3a4a240f update list of services in ignoreUnenablableServices test (#14168) 2017-05-03 14:29:48 -07:00
Roberto Jung Drebes
4d2e3151cc wip: review changes:
- config.clientCompute.Routers
- peer fields renamed
- more consistent logging
- better handling of SetId for error handling
- function for router locks
- test configs as functions
- simplify exists logic
- use getProject, getRegion logic on acceptance tests
- CheckDestroy for peers an interfaces
- dynamic router name for tunnel test
- extra fields for BgpPeer
- resource documentation
2017-05-03 21:22:33 +02:00
Roberto Jung Drebes
4aa863b26b wip: review changes:
- config.clientCompute.Routers
- peer fields renamed
- more consistent logging
- better handling of SetId for error handling
- function for router locks
- test configs as functions
- simplify exists logic
- use getProject, getRegion logic on acceptance tests
- CheckDestroy for peers an interfaces
- dynamic router name for tunnel test
- extra fields for BgpPeer
- resource documentation
2017-05-03 21:22:33 +02:00
Christoph Tavan
73879f49a2 provider/google: Fix config key in compute_url_map docs 2017-05-02 23:18:42 +02:00
Christoph Tavan
349a9eaa34 provider/google: Improve error messages in backend_service test 2017-05-02 23:18:41 +02:00
Christoph Tavan
4080b4652f provider/google: Document backend buckets for compute_url_map
The current google_compute_url_map resource already supports backend
buckets out of the box: Just pass the self_link of the backend buckets
as you would pass the self_link of a backend service.

This adds some example code as well.
2017-05-02 23:18:41 +02:00
Christoph Tavan
3e72f23826 provider/google: Improve backend service error handling
Unset id in case the backend service cannot be created. This basically
updates these lines of code to match the more modern style which is
being used e.g. for the google_compute_instance resource.
2017-05-02 23:18:41 +02:00
Christoph Tavan
52be95629c provider/google: Remove unsupported region from compute_url_map docs
When trying to run the example code with the most recent terraform
master you get the following errors:

```
2 error(s) occurred:

* google_compute_backend_service.home: "region": [REMOVED] region has been removed as it was never used
* google_compute_backend_service.login: "region": [REMOVED] region has been removed as it was never used
```

Hence remove it from the documentation.
2017-05-02 23:18:40 +02:00
Christoph Tavan
1054fb189d provider/google: Add support for backend buckets
Adds a new resource google_compute_backend_bucket according to
https://cloud.google.com/compute/docs/reference/latest/backendBuckets

Fixes hashicorp/terraform#12505
2017-05-02 23:18:40 +02:00
Christoph Tavan
5cd3dd2c6b provider/google: Add support for backend buckets
Adds a new resource google_compute_backend_bucket according to
https://cloud.google.com/compute/docs/reference/latest/backendBuckets

Fixes hashicorp/terraform#12505
2017-05-02 23:18:40 +02:00
Christoph Tavan
2368d8ee7e provider/google: Update Google Compute godep 2017-05-02 23:08:23 +02:00
Justin DiPierro
96aace4011 Importability for Google DNS Managed Zone 2017-05-01 20:28:28 -04:00
Dana Hoffman
226361184e provider/google: add support for networkIP in compute instance templates (#13515) 2017-05-01 17:16:05 -07:00
Dana Hoffman
1522712cdb provider/google: Add pagination for reading project services (#13758) 2017-05-01 16:33:51 -07:00
Paddy
73b4a8690c Document GOOGLE_APPLICATION_CREDENTIALS support.
We've supported GOOGLE_APPLICATION_CREDENTIALS as an environment
variable (it comes free with our OAuth2 client) but it has never been
documented. Documenting it now to resolve #12626.
2017-04-28 16:16:38 -07:00
Ola Karlsson
131541bbfe Messed up the CheckDestroy attributes. 2017-04-28 05:37:12 +00:00
Ola Karlsson
f66cd36c96 Adding import for the compute_route resource 2017-04-28 04:44:37 +00:00
Dana Hoffman
d03f802be2 provider/google: ignore certain project services that can't be enabled directly via the api (#13730) 2017-04-27 13:00:54 -07:00
Paddy
3e36e79f63 Merge pull request #14045 from hashicorp/paddy_project_metadata_tests
provider/google: fix project metadata tests
2017-04-27 11:52:26 -07:00
Paddy
6ef4c9ec61 Fix both Radek & Dana's comments.
Style nits, but clean code is happy code.
2017-04-27 11:39:13 -07:00
Paddy
ddf9bb389f provider/google: fix project metadata tests
Update our project metadata tests to stand up their own projects, so
they don't trample all over each other anymore.

The fixes for this were more invasive than I had hoped they would be,
but the tests all pass now (when run sequentially) and there's no reason
for them not to pass when run in parallel.
2017-04-27 10:28:31 -07:00
Paddy
cda752bee0 provider/google: randomize network data source test name.
We have tests failing because we hard-coded the network name in our
network data source test. By randomizing it, we don't fix the dangling
resource problem, but do make the tests pass again.
2017-04-27 08:52:02 -07:00
Paddy
0f67ae3fdc Make global forwarding rule docs clearer for IP addresses.
Update our docs for `google_compute_forwarding_rule` to clarify that the
`ip_address` field expects a literal IP address and will not accept the
`self_link` property of a `google_compute_address` resource.

Prompted by #13375
2017-04-26 15:52:49 -07:00
Paddy
6290d5aff1 Merge pull request #14012 from danawillow/tests
provider/google: a few quick test fixes
2017-04-26 14:38:01 -07:00