v0.9.0
What's Changed
- New data sources for Drive Label API
gdrive_label
: retrieves the metadata of a single Drive Labelgdrive_labels
: retrieves all Labels in the org- These resources require some additional setup. See Enable Drive Label API for details.
- These use the stable v2 of the API. Additional resources will be added once the stable API adds additional endpoints.
- New resources for Label assignments
gdrive_label_assignment
: Assigns a single Label to a filegdrive_label_policy
: Assigns a "policy" to a file that causes exactly the specified Labels to be set and remove all others
- Updating the
content
property of a file will no longer cause the file resource to be recreated- Instead, a new version of the file will be uploaded
- Because the file content is not saved in the state, an update is triggered by changing the
content
property
- Add
mime_type_source
property togdrive_file
resource- Allows you to specify the MIME type of the file that you want to upload
- Example use case: Import a CSV file as a Google Sheet by setting
mime_type = "application/vnd.google-apps.spreadsheet"
andmime_type_source = "text/csv"
- This only works one way (i.e. there is no delta update or comparison of contents)
- If you want to upload a new version, you need to change the source file by updating the
content
property
- Update dependencies and Go version
- Updates to docs
Full Changelog: v0.8.0...v0.9.0