Skip to content
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

Google Cloud Storage Transfer resource #2181

Closed
wants to merge 349 commits into from

Conversation

akramhussein
Copy link
Contributor

This is a full implementation of the Google Cloud Storage Transfer resource that addresses #1286 issue.

Full documentation for Terraform docs is also included that is primary sourced from official Google Docs.

This supersedes a previous PR #2164 that was incomplete.

I've not had a chance to write unit tests but believe it would be good to get your feedback at this stage on anything that I should change/improve. I have tested it significantly manually.

@akramhussein
Copy link
Contributor Author

I believe this PR could be improved with:

  1. Unit tests
  2. Adding a data_source to get the Storage Transfer Service Account which shouldn't be too hard.

@akramhussein
Copy link
Contributor Author

  • Added datasource to get the project's service account
  • Added datasource test
  • Added resource basic test

modular-magician and others added 26 commits October 29, 2018 15:42
<!-- This change is generated by MagicModules. -->
/cc @danawillow
<!-- This change is generated by MagicModules. -->
/cc @danawillow
<!-- This change is generated by MagicModules. -->
/cc @danawillow
<!-- This change is generated by MagicModules. -->
/cc @danawillow
blocking GoogleCloudPlatform/magic-modules#630

This resource won't be tested between this merging and the MM pr merging
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
Remove name_prefix from container node pool
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
<!-- This change is generated by MagicModules. -->
/cc @danawillow 

Fixes hashicorp#2286
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
@akramhussein
Copy link
Contributor Author

Hi @rileykarson - I'm making all these changes now.
Please ignore this PR as it's gone a bit haywire - everything is being done in new PRs.

I've so far created:

I believe I still need to add:

  • PR for Adding the storage transfer job resource to this repo and beta with also the line in the provider.go to hook it up?
  • PR for Adding the storage transfer service account datasource to this repo and beta with also the line in the provider.go to hook it up?

So 4 more PRs. Is that correct?

@rileykarson
Copy link
Collaborator

Nope - you've submitted all the PRs you need. Magic Modules will create PRs against both repos, and files like provider.go can be modified inside MM: https://github.com/GoogleCloudPlatform/magic-modules/blob/master/third_party/terraform/utils/provider.go.erb

Normally MM would auto-generate "downstream" PRs to this repo and the beta repo, but since you're a first time contributor each build needs to be triggered manually. I'll kick off a build once we've merged the vendoring changes. I believe once a PR has been submitted it will generate automatically, but I'm not 100% on that.

rileykarson pushed a commit that referenced this pull request Dec 17, 2018
FAO @rileykarson 

Part of multi-PR for adding support for Google Storage Transfer Service.

See #2181
rileykarson pushed a commit to hashicorp/terraform-provider-google-beta that referenced this pull request Dec 17, 2018
FAO @rileykarson 

Part of multi-PR for adding support for Google Storage Transfer Service.

See [#2181](hashicorp/terraform-provider-google#2181)
@akramhussein
Copy link
Contributor Author

@rileykarson can this be closed now?

@akramhussein
Copy link
Contributor Author

Also #1286

nat-henderson pushed a commit that referenced this pull request Dec 21, 2018
FAO @rileykarson 

Part of multi-PR for adding support for Google Storage Transfer Service.

See #2181
nat-henderson pushed a commit that referenced this pull request Dec 21, 2018
FAO @rileykarson 

Part of multi-PR for adding support for Google Storage Transfer Service.

See #2181
@rileykarson
Copy link
Collaborator

Yep, thanks! Superseded by GoogleCloudPlatform/magic-modules#1069

@ghost
Copy link

ghost commented Jan 20, 2019

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.