-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add additional properties for google resource storage bucket object. #14259
Add additional properties for google resource storage bucket object. #14259
Conversation
|
||
return nil | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change? It will cause errors if an object is deleted manually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I...don't actually know where this is from, i think it was a last minute merge issue that I didn't catch. I'll fix this.
50769b1
to
9365962
Compare
9365962
to
6bc2c1e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
TF_ACC=1 go test ./builtin/providers/google -v -run=TestAccGoogleStorageObject -timeout 120m
=== RUN TestAccGoogleStorageObject_basic
--- PASS: TestAccGoogleStorageObject_basic (4.23s)
=== RUN TestAccGoogleStorageObject_content
--- PASS: TestAccGoogleStorageObject_content (4.06s)
=== RUN TestAccGoogleStorageObjectAcl_basic
--- PASS: TestAccGoogleStorageObjectAcl_basic (6.59s)
=== RUN TestAccGoogleStorageObjectAcl_upgrade
--- PASS: TestAccGoogleStorageObjectAcl_upgrade (11.32s)
=== RUN TestAccGoogleStorageObjectAcl_downgrade
--- PASS: TestAccGoogleStorageObjectAcl_downgrade (9.81s)
=== RUN TestAccGoogleStorageObjectAcl_predefined
--- PASS: TestAccGoogleStorageObjectAcl_predefined (5.03s)
PASS
ok github.com/hashicorp/terraform/builtin/providers/google 41.139s
|
||
* `content_language` - (Optional) [Content-Language](https://tools.ietf.org/html/rfc7231#section-3.1.3.2) of the object data. | ||
|
||
* `content_type` - (Optional) [Content-Type]() of the object data. Defaults to "application/octet-stream" or "text/plain; charset=utf-8". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing link?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
Optional: true, | ||
}, | ||
|
||
"content_type": &schema.Schema{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and storage_class
still need ForceNew: true
since they can't be updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
Whoops, ran tests in wrong client. They're still passing, but just for posterity:
|
…emilyye_13616_google_storage_bucket_object_add_props
Looks good, thanks @emilymye! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Resolves #13616