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

Migrate databricks_mws_private_access_settings to Go SDK #3135

Merged
merged 5 commits into from Jan 19, 2024

Conversation

mgyucht
Copy link
Contributor

@mgyucht mgyucht commented Jan 19, 2024

Changes

Migrates this resource to the Go SDK. Also marks the account_id field at the resource level as deprecated, like what we did for databricks_mws_credentials.

Tests

  • make test run locally
  • relevant change in docs/ folder
  • covered with integration tests in internal/acceptance
  • relevant acceptance tests are passing
  • using Go SDK

@mgyucht mgyucht requested review from a team as code owners January 19, 2024 10:07
@mgyucht mgyucht requested review from tanmay-db and hectorcast-db and removed request for a team and tanmay-db January 19, 2024 10:07
common.DataToStructPointer(d, s, &pas)
common.SetForceSendFields(&pas, d, []string{"public_access_enabled"})
if err := NewPrivateAccessSettingsAPI(ctx, c).Create(&pas); err != nil {
res, err := a.PrivateAccess.Create(ctx, provisioning.UpsertPrivateAccessSettingsRequest(pas))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we create a new provisioning.UpsertPrivateAccessSettingsRequest ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. This doesn't make a new one but just does a type conversion to itself. Removing this now.

@mgyucht mgyucht added this pull request to the merge queue Jan 19, 2024
Merged via the queue into master with commit 38ca54f Jan 19, 2024
5 checks passed
@mgyucht mgyucht deleted the migrate-private-access-settings-to-go-sdk branch January 19, 2024 12:39
@hectorcast-db hectorcast-db mentioned this pull request Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants