From 7a6bedf78216d56a64400eb6df59dd28c2b9b077 Mon Sep 17 00:00:00 2001 From: Lars Wander Date: Thu, 12 Nov 2015 16:20:08 -0500 Subject: [PATCH] provider/google: Content field for bucket objects --- r/storage_bucket_object.html.markdown | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/r/storage_bucket_object.html.markdown b/r/storage_bucket_object.html.markdown index 1c970530..7b481550 100644 --- a/r/storage_bucket_object.html.markdown +++ b/r/storage_bucket_object.html.markdown @@ -29,8 +29,15 @@ resource "google_storage_bucket_object" "picture" { The following arguments are supported: * `name` - (Required) The name of the object. + * `bucket` - (Required) The name of the containing bucket. -* `source` - (Required) A path to the data you want to upload. + +* `source` - (Optional) A path to the data you want to upload. Must be defined +if `content` is not. + +* `content` - (Optional) Data as `string` to be uploaded. Must be defined if +`source` is not. + * `predefined_acl` - (Optional, Deprecated) The [canned GCS ACL](https://cloud.google.com/storage/docs/access-control#predefined-acl) apply. Please switch to `google_storage_object_acl.predefined_acl`. @@ -39,4 +46,5 @@ to `google_storage_object_acl.predefined_acl`. The following attributes are exported: * `md5hash` - (Computed) Base 64 MD5 hash of the uploaded data. + * `crc32c` - (Computed) Base 64 CRC32 hash of the uploaded data.