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

Support accounts-dod as account endpoint #530

Merged
merged 1 commit into from
Jun 27, 2023
Merged

Conversation

mgyucht
Copy link
Contributor

@mgyucht mgyucht commented Jun 27, 2023

Changes

Modify IsAccountClient to return true for new accounts endpoints that are set up for the Department of Defense.

Resolves databricks/terraform-provider-databricks#2433 once TF provider is updated to a version including this commit.

Tests

  • Added a unit test to cover IsAccountClient().
  • make test passing
  • make fmt applied
  • relevant integration tests applied

@mgyucht mgyucht requested review from nfx and shreyas-goenka June 27, 2023 13:02
@mgyucht mgyucht enabled auto-merge (squash) June 27, 2023 13:07
return true
}
}
return c.AccountID != "" && c.isTesting
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you make this case return early since this is a special condition?

if c.AccountID != "" && c.isTesting {
  return true
}

@mgyucht mgyucht merged commit feb05af into main Jun 27, 2023
mgyucht added a commit that referenced this pull request Jun 27, 2023
## Changes
#530 merged before
addressing one style issue from @shreyas-goenka.

## Tests
<!-- 
How is this tested? Please see the checklist below and also describe any
other relevant tests
-->

- [ ] `make test` passing
- [ ] `make fmt` applied
- [ ] relevant integration tests applied
@mgyucht mgyucht mentioned this pull request Jun 28, 2023
mgyucht added a commit that referenced this pull request Jun 28, 2023
## Changes
* Regenerated from OpenAPI spec
([#527](#527)).
Includes bugfixes for System Tables.
* Support accounts-dod as account endpoint
([#530](#530)).

Breaking API Changes:

 - Renamed compute.ClusterInfo to compute.ClusterDetails
 - Renamed compue.BaseClusterInfo to compute.ClusterSpec
 - Renamed jobs.RunSubmitTaskSettings to jobs.SubmitTask
 - Renamed jobs.JobTaskSettings to jobs.Task
 - Renamed jobs.CreateJobFormat to jobs.Format
 - Renamed jobs.JobsWebhookNotifications to jobs.WebhookNotifications
 - Renamed jobs.CronSchedulePauseStatus to jobs.PauseStatus
- Renamed jobs.FileArrivalTriggerSettings to
jobs.FileArrivalTriggerConfiguration
 - Renamed jobs.GitSourceGitProvider to jobs.GitProvider
- Consolidated jobs.NotebookTaskSource, jobs.SparkPythonTaskSource to
jobs.Source
- Consolidated jobs.JobWebhookNotificationsOnFailureItem,
jobs.JobWebhookNotificationsOnStartItem,
jobs.JobWebhookNotificationsOnSuccessItem to jobs.Webhook
 - Renamed jobs.TaskDependenciesItem to job.TaskDependency
- jobs.SparkSubmitTask.Widgets changed from *SqlDashboardWidgetOutput to
[]SqlDashboardWidgetOutput
- (a *SystemSchemasAPI) DisableByMetastoreIdAndSchemaName changed from
func(context.Context, string, string) error to func(context.Context,
string, DisableSchemaName) error
- (a *SystemSchemasAPI) Enable changed from func(context.Context) error
to func(context.Context, EnableRequest) error
- catalog.CatalogInfo.OptionsKvpairs changed from *OptionsKvPairs to
map[string]string
- catalog.CreateConnection.OptionsKvpairs changed from *OptionsKvPairs
to map[string]string
- catalog.UpdateConnection.OptionsKvpairs changed from OptionsKvPairs to
map[string]string
- catalog.DisableRequest.SchemaName changed from string to
DisableSchemaName
 - catalog.OptionsKvPairs removed
- catalog.SystemSchemaInfoStateDisableinitialized renamed to
catalog.SystemSchemaInfoStateDisabledInitialized
- catalog.SystemSchemaInfoStateEnabledcompleted renamed to
catalog.SystemSchemaInfoStateEnabledCompleted
- catalog.SystemSchemaInfoStateEnabledinitialized renamed to
catalog.SystemSchemaInfoStateEnabledInitialized
- settings.ReadPersonalComputeSettingsResponse renamed to
settings.PersonalComputeSetting
 - workpace.CreateScope.KeyvaultMetadata removed

Other API Changes:

 - catalog.CatalogInfo.ConnectionName added
 - catalog.CatalogInfo.Options added
 - catalog.DisableSchemaName added
 - catalog.EnableRequest added
 - catalog.PrivilegeUseMarketplaceAssets added
 - compute.ClusterEvent added
 - compute.ComputeSpec added
 - compute.ComputeSpecKind added
 - jobs.ConditionTask added
 - jobs.ConditionTaskOp added
 - jobs.CreateJob.Compute added
 - jobs.JobCompute added
 - jobs.JobSettings.Compute added
 - jobs.RunConditionTask added
 - jobs.RunOutput.ConditionTask added
 - jobs.RunTask.ConditionTask added
 - serving.ServedModelInput.EnvironmentVars added
 - serving.ServedModelOutput.EnvironmentVars added
 - settings.DeletePersonalComputeSetting added
 - settings.UpdatePersonalComputeSetting added
 - sharing.PrivilegeUseMarketplaceAssets added
 - workspace.CreateScope.BackendAzureKeyVault added
@nfx nfx deleted the support-dod-accounts branch November 25, 2023 14:18
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.

[FEATURE] Support account-level operations in DOD environments
2 participants