Releases: hanneshayashi/terraform-provider-gdrive
v1.1.0
What's Changed
- V1.1.0 dev by @hanneshayashi in #14
This is a maintenance release that updates the Go version and dependencies to pull in some bug fixes from upstream.
Full Changelog: v1.0.0...v1.1.0
v1.0.0
This release is a major rewrite of the provider. The provider now uses the Terraform Plugin Framework instead of the older Plugin SDK.
Please make sure you have a backup of your state file before upgrading and see the Upgrade Guide for a list of breaking changes and how to deal with them.
New Features
- Complete Management of Google Drive Labels
gdrive_label
- Manage Google Drive Labels- Resources for all current Field types
gdrive_label_date_field
- Manage Date Fieldsgdrive_label_integer_field
- Manage Integer Fieldsgdrive_label_selection_field
- Manage Selection Fieldsgdrive_label_selection_choice
- Manage Choices for Selection Fieldsgdrive_label_text_field
- Manage Text Fieldsgdrive_label_user_field
- Manage User Fields
- Manage the publishing state of each resource (Label, Field and Choice) with the
life_cycle
property gdrive_label_permissions
for granting permissions to Labels
- Simplified configuration
- Use
scopes
property for provider configuration that is automatically set to all necessary scopes when not specified.
- Use
- Automatically retry on 404 and 502 errors
- Simplified syntax for multiple blocks in
gdrive_label_assignment
,gdrive_label_policy
andgdrive_permission_policy
- Resource-specific ID attributes for every block (e.g.,
permission_id
ingdrive_permission_policy
)
Bug Fixes
- Fix setting the MIME type of a file without content
- Fix
gdrive_permission_policy
not removing some permissions that weren't specified in the Terraform config. The resource now consistently ignores all inherited permissions during read and diff.
Misc
- Update dependencies, Go version and CI/CD actions
- Implement test cases for resources and data sources
- Update documentation
Full Changelog: v0.9.1...v1.0.0
v0.9.1
What's Changed
- V0.9.1 dev by @hanneshayashi in #12
This is mostly a fix for #11. This version introduces a new optional parameter called wait_after_create
with a default value of 60 that allows you to configure the time the provider waits after the initial creation of a Shared Drive object. This fixes issues where users were getting 404 errors after the initial creation of a Shared Drive (especially with restrictions).
Full Changelog: v0.9.0...v0.9.1
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
v0.8.0
What's Changed
- New resource
gdrive_drive_ou_membership
to organize Shared Drives in organizational units- requires additional setup to use (see setup guide)
- Fix a permadiff on drives without restrictions
- Fix setting drive restrictions during creation
- Update dependencies and Go version
Full Changelog: v0.7.0...v0.8.0
v0.7.0
What's Changed
- New Resource
gdrive_permissions_policy
that authoritatively manages a file's or Shared Drive's permissions - New Data Sources
gdrive_drives
- Returns a list of drives that match a given querygdrive_files
- Returns a list of files that match a given querygdrive_permissions
- Returns all permissions set on a file or Shared Drive (can be used to copy the permissions in combination with the newgdrive_permissions_policy
resource)
- Support ownership transfer when setting permissions
- Update documentation and examples
- Update dependencies
- Use Go 1.18.1
Full Changelog: v0.6.0...v0.7.0
v0.6.0
- Update Go version to 1.17
- Update dependencies
v0.5.0
- Allow 'service_account_key' to contain either the path to or the content of a key file (Thanks @michael-richard-3r)
v0.4.0
Add ability to download non-Google files and export Google files to the file data_source
v0.3.0
- Switch to v2 of SDK
- Add Drive restrictions
- Add data sources
- Wait until Drive can be used before returning
- Added an optional provider setting to retry specific HTTP errors (such as 404, in case the "wait until ready" check doesn't work)
- Add docs