Skip to content

Releases: hanneshayashi/terraform-provider-gdrive

v1.1.0

30 Oct 08:16
ad22278
Compare
Choose a tag to compare

What's Changed

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

27 Jun 05:46
e469b5b
Compare
Choose a tag to compare

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 Fields
      • gdrive_label_integer_field - Manage Integer Fields
      • gdrive_label_selection_field - Manage Selection Fields
      • gdrive_label_selection_choice - Manage Choices for Selection Fields
      • gdrive_label_text_field - Manage Text Fields
      • gdrive_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.
  • Automatically retry on 404 and 502 errors
  • Simplified syntax for multiple blocks in gdrive_label_assignment, gdrive_label_policy and gdrive_permission_policy
  • Resource-specific ID attributes for every block (e.g., permission_id in gdrive_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

05 Feb 09:02
e9b2369
Compare
Choose a tag to compare

What's Changed

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

03 Sep 06:16
65cb3ac
Compare
Choose a tag to compare

What's Changed

  • New data sources for Drive Label API
    • gdrive_label: retrieves the metadata of a single Drive Label
    • gdrive_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 file
    • gdrive_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 to gdrive_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" and mime_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

30 May 10:39
781a465
Compare
Choose a tag to compare

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

01 May 07:35
de671a6
Compare
Choose a tag to compare

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 query
    • gdrive_files - Returns a list of files that match a given query
    • gdrive_permissions - Returns all permissions set on a file or Shared Drive (can be used to copy the permissions in combination with the new gdrive_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

29 Aug 12:51
4e2c16c
Compare
Choose a tag to compare
  • Update Go version to 1.17
  • Update dependencies

v0.5.0

19 Aug 06:46
Compare
Choose a tag to compare
  • Allow 'service_account_key' to contain either the path to or the content of a key file (Thanks @michael-richard-3r)

v0.4.0

09 May 07:38
f5eca01
Compare
Choose a tag to compare

Add ability to download non-Google files and export Google files to the file data_source

v0.3.0

02 May 11:25
91c6173
Compare
Choose a tag to compare
  • 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