From 8382d47cf6150a7e834951a918d350b9ab081c82 Mon Sep 17 00:00:00 2001 From: Omer Lachish Date: Fri, 27 Dec 2024 18:04:34 +0100 Subject: [PATCH] generate sdk --- internal/service/apps_tf/legacy_model.go | 60 - internal/service/apps_tf/model.go | 226 ++- internal/service/billing_tf/legacy_model.go | 54 - internal/service/billing_tf/model.go | 225 ++- internal/service/catalog_tf/legacy_model.go | 474 ----- internal/service/catalog_tf/model.go | 1560 ++++++++++++----- .../service/cleanrooms_tf/legacy_model.go | 72 - internal/service/cleanrooms_tf/model.go | 223 ++- internal/service/compute_tf/legacy_model.go | 168 -- internal/service/compute_tf/model.go | 1129 ++++++++++-- .../service/dashboards_tf/legacy_model.go | 126 -- internal/service/dashboards_tf/model.go | 334 ++-- internal/service/files_tf/legacy_model.go | 102 -- internal/service/files_tf/model.go | 209 +-- internal/service/iam_tf/legacy_model.go | 168 -- internal/service/iam_tf/model.go | 415 +++-- internal/service/jobs_tf/legacy_model.go | 96 - internal/service/jobs_tf/model.go | 933 +++++++++- .../service/marketplace_tf/legacy_model.go | 168 -- internal/service/marketplace_tf/model.go | 712 ++++++-- internal/service/ml_tf/legacy_model.go | 270 --- internal/service/ml_tf/model.go | 971 +++++++--- internal/service/oauth2_tf/legacy_model.go | 126 -- internal/service/oauth2_tf/model.go | 264 +-- internal/service/pipelines_tf/legacy_model.go | 54 - internal/service/pipelines_tf/model.go | 374 +++- .../service/provisioning_tf/legacy_model.go | 102 -- internal/service/provisioning_tf/model.go | 344 ++-- internal/service/serving_tf/legacy_model.go | 90 - internal/service/serving_tf/model.go | 477 ++++- internal/service/settings_tf/legacy_model.go | 258 --- internal/service/settings_tf/model.go | 957 +++++++--- internal/service/sharing_tf/legacy_model.go | 90 - internal/service/sharing_tf/model.go | 287 ++- internal/service/sql_tf/legacy_model.go | 252 --- internal/service/sql_tf/model.go | 910 +++++++--- .../service/vectorsearch_tf/legacy_model.go | 60 - internal/service/vectorsearch_tf/model.go | 266 ++- internal/service/workspace_tf/legacy_model.go | 126 -- internal/service/workspace_tf/model.go | 459 +++-- 40 files changed, 8357 insertions(+), 5834 deletions(-) diff --git a/internal/service/apps_tf/legacy_model.go b/internal/service/apps_tf/legacy_model.go index 7b956959f..74655bf94 100755 --- a/internal/service/apps_tf/legacy_model.go +++ b/internal/service/apps_tf/legacy_model.go @@ -1388,12 +1388,6 @@ type CreateAppDeploymentRequest_SdkV2 struct { AppName types.String `tfsdk:"-"` } -func (newState *CreateAppDeploymentRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateAppDeploymentRequest_SdkV2) { -} - -func (newState *CreateAppDeploymentRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateAppDeploymentRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateAppDeploymentRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1462,12 +1456,6 @@ type CreateAppRequest_SdkV2 struct { App types.List `tfsdk:"app" tf:"optional,object"` } -func (newState *CreateAppRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateAppRequest_SdkV2) { -} - -func (newState *CreateAppRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateAppRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateAppRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1535,12 +1523,6 @@ type DeleteAppRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteAppRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAppRequest_SdkV2) { -} - -func (newState *DeleteAppRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteAppRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAppRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1580,12 +1562,6 @@ type GetAppDeploymentRequest_SdkV2 struct { DeploymentId types.String `tfsdk:"-"` } -func (newState *GetAppDeploymentRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAppDeploymentRequest_SdkV2) { -} - -func (newState *GetAppDeploymentRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetAppDeploymentRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAppDeploymentRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1625,12 +1601,6 @@ type GetAppPermissionLevelsRequest_SdkV2 struct { AppName types.String `tfsdk:"-"` } -func (newState *GetAppPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAppPermissionLevelsRequest_SdkV2) { -} - -func (newState *GetAppPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetAppPermissionLevelsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAppPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1740,12 +1710,6 @@ type GetAppPermissionsRequest_SdkV2 struct { AppName types.String `tfsdk:"-"` } -func (newState *GetAppPermissionsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAppPermissionsRequest_SdkV2) { -} - -func (newState *GetAppPermissionsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetAppPermissionsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAppPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1783,12 +1747,6 @@ type GetAppRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *GetAppRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAppRequest_SdkV2) { -} - -func (newState *GetAppRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetAppRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAppRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1831,12 +1789,6 @@ type ListAppDeploymentsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListAppDeploymentsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAppDeploymentsRequest_SdkV2) { -} - -func (newState *ListAppDeploymentsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListAppDeploymentsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAppDeploymentsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1957,12 +1909,6 @@ type ListAppsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListAppsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAppsRequest_SdkV2) { -} - -func (newState *ListAppsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListAppsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAppsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2163,12 +2109,6 @@ type UpdateAppRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *UpdateAppRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateAppRequest_SdkV2) { -} - -func (newState *UpdateAppRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdateAppRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateAppRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/apps_tf/model.go b/internal/service/apps_tf/model.go index 031b9ff04..7ada04b47 100755 --- a/internal/service/apps_tf/model.go +++ b/internal/service/apps_tf/model.go @@ -15,6 +15,7 @@ import ( "reflect" pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common" + "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/tfschema" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/types" @@ -67,6 +68,30 @@ func (newState *App) SyncEffectiveFieldsDuringCreateOrUpdate(plan App) { func (newState *App) SyncEffectiveFieldsDuringRead(existingState App) { } +func (c App) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "active_deployment")...) + AppDeployment{}.ToSchema(cs, append(path, "active_deployment")...) + cs.SetComputed(append(path, "app_status")...) + ApplicationStatus{}.ToSchema(cs, append(path, "app_status")...) + cs.SetComputed(append(path, "compute_status")...) + ComputeStatus{}.ToSchema(cs, append(path, "compute_status")...) + cs.SetComputed(append(path, "create_time")...) + cs.SetComputed(append(path, "creator")...) + cs.SetComputed(append(path, "default_source_code_path")...) + cs.SetRequired(append(path, "name")...) + cs.SetComputed(append(path, "pending_deployment")...) + AppDeployment{}.ToSchema(cs, append(path, "pending_deployment")...) + AppResource{}.ToSchema(cs, append(path, "resources")...) + cs.SetComputed(append(path, "service_principal_client_id")...) + cs.SetComputed(append(path, "service_principal_id")...) + cs.SetComputed(append(path, "service_principal_name")...) + cs.SetComputed(append(path, "update_time")...) + cs.SetComputed(append(path, "updater")...) + cs.SetComputed(append(path, "url")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in App. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -291,6 +316,11 @@ func (newState *AppAccessControlRequest) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *AppAccessControlRequest) SyncEffectiveFieldsDuringRead(existingState AppAccessControlRequest) { } +func (c AppAccessControlRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AppAccessControlRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -347,6 +377,12 @@ func (newState *AppAccessControlResponse) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *AppAccessControlResponse) SyncEffectiveFieldsDuringRead(existingState AppAccessControlResponse) { } +func (c AppAccessControlResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AppPermission{}.ToSchema(cs, append(path, "all_permissions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AppAccessControlResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -447,6 +483,18 @@ func (newState *AppDeployment) SyncEffectiveFieldsDuringCreateOrUpdate(plan AppD func (newState *AppDeployment) SyncEffectiveFieldsDuringRead(existingState AppDeployment) { } +func (c AppDeployment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "create_time")...) + cs.SetComputed(append(path, "creator")...) + cs.SetComputed(append(path, "deployment_artifacts")...) + AppDeploymentArtifacts{}.ToSchema(cs, append(path, "deployment_artifacts")...) + cs.SetComputed(append(path, "status")...) + AppDeploymentStatus{}.ToSchema(cs, append(path, "status")...) + cs.SetComputed(append(path, "update_time")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AppDeployment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -563,6 +611,11 @@ func (newState *AppDeploymentArtifacts) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *AppDeploymentArtifacts) SyncEffectiveFieldsDuringRead(existingState AppDeploymentArtifacts) { } +func (c AppDeploymentArtifacts) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AppDeploymentArtifacts. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -607,6 +660,13 @@ func (newState *AppDeploymentStatus) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *AppDeploymentStatus) SyncEffectiveFieldsDuringRead(existingState AppDeploymentStatus) { } +func (c AppDeploymentStatus) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "message")...) + cs.SetComputed(append(path, "state")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AppDeploymentStatus. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -654,6 +714,11 @@ func (newState *AppPermission) SyncEffectiveFieldsDuringCreateOrUpdate(plan AppP func (newState *AppPermission) SyncEffectiveFieldsDuringRead(existingState AppPermission) { } +func (c AppPermission) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AppPermission. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -733,6 +798,12 @@ func (newState *AppPermissions) SyncEffectiveFieldsDuringCreateOrUpdate(plan App func (newState *AppPermissions) SyncEffectiveFieldsDuringRead(existingState AppPermissions) { } +func (c AppPermissions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AppAccessControlResponse{}.ToSchema(cs, append(path, "access_control_list")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AppPermissions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -810,6 +881,11 @@ func (newState *AppPermissionsDescription) SyncEffectiveFieldsDuringCreateOrUpda func (newState *AppPermissionsDescription) SyncEffectiveFieldsDuringRead(existingState AppPermissionsDescription) { } +func (c AppPermissionsDescription) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AppPermissionsDescription. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -855,6 +931,13 @@ func (newState *AppPermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *AppPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState AppPermissionsRequest) { } +func (c AppPermissionsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AppAccessControlRequest{}.ToSchema(cs, append(path, "access_control_list")...) + cs.SetRequired(append(path, "app_name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AppPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -939,6 +1022,16 @@ func (newState *AppResource) SyncEffectiveFieldsDuringCreateOrUpdate(plan AppRes func (newState *AppResource) SyncEffectiveFieldsDuringRead(existingState AppResource) { } +func (c AppResource) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AppResourceJob{}.ToSchema(cs, append(path, "job")...) + cs.SetRequired(append(path, "name")...) + AppResourceSecret{}.ToSchema(cs, append(path, "secret")...) + AppResourceServingEndpoint{}.ToSchema(cs, append(path, "serving_endpoint")...) + AppResourceSqlWarehouse{}.ToSchema(cs, append(path, "sql_warehouse")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AppResource. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1111,6 +1204,13 @@ func (newState *AppResourceJob) SyncEffectiveFieldsDuringCreateOrUpdate(plan App func (newState *AppResourceJob) SyncEffectiveFieldsDuringRead(existingState AppResourceJob) { } +func (c AppResourceJob) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "id")...) + cs.SetRequired(append(path, "permission")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AppResourceJob. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1160,6 +1260,14 @@ func (newState *AppResourceSecret) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *AppResourceSecret) SyncEffectiveFieldsDuringRead(existingState AppResourceSecret) { } +func (c AppResourceSecret) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "key")...) + cs.SetRequired(append(path, "permission")...) + cs.SetRequired(append(path, "scope")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AppResourceSecret. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1209,6 +1317,13 @@ func (newState *AppResourceServingEndpoint) SyncEffectiveFieldsDuringCreateOrUpd func (newState *AppResourceServingEndpoint) SyncEffectiveFieldsDuringRead(existingState AppResourceServingEndpoint) { } +func (c AppResourceServingEndpoint) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "permission")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AppResourceServingEndpoint. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1256,6 +1371,13 @@ func (newState *AppResourceSqlWarehouse) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *AppResourceSqlWarehouse) SyncEffectiveFieldsDuringRead(existingState AppResourceSqlWarehouse) { } +func (c AppResourceSqlWarehouse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "id")...) + cs.SetRequired(append(path, "permission")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AppResourceSqlWarehouse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1302,6 +1424,13 @@ func (newState *ApplicationStatus) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ApplicationStatus) SyncEffectiveFieldsDuringRead(existingState ApplicationStatus) { } +func (c ApplicationStatus) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "message")...) + cs.SetComputed(append(path, "state")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ApplicationStatus. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1348,6 +1477,13 @@ func (newState *ComputeStatus) SyncEffectiveFieldsDuringCreateOrUpdate(plan Comp func (newState *ComputeStatus) SyncEffectiveFieldsDuringRead(existingState ComputeStatus) { } +func (c ComputeStatus) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "message")...) + cs.SetComputed(append(path, "state")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ComputeStatus. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1388,12 +1524,6 @@ type CreateAppDeploymentRequest struct { AppName types.String `tfsdk:"-"` } -func (newState *CreateAppDeploymentRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateAppDeploymentRequest) { -} - -func (newState *CreateAppDeploymentRequest) SyncEffectiveFieldsDuringRead(existingState CreateAppDeploymentRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateAppDeploymentRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1462,12 +1592,6 @@ type CreateAppRequest struct { App types.Object `tfsdk:"app" tf:"optional,object"` } -func (newState *CreateAppRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateAppRequest) { -} - -func (newState *CreateAppRequest) SyncEffectiveFieldsDuringRead(existingState CreateAppRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateAppRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1535,12 +1659,6 @@ type DeleteAppRequest struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteAppRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAppRequest) { -} - -func (newState *DeleteAppRequest) SyncEffectiveFieldsDuringRead(existingState DeleteAppRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAppRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1580,12 +1698,6 @@ type GetAppDeploymentRequest struct { DeploymentId types.String `tfsdk:"-"` } -func (newState *GetAppDeploymentRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAppDeploymentRequest) { -} - -func (newState *GetAppDeploymentRequest) SyncEffectiveFieldsDuringRead(existingState GetAppDeploymentRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAppDeploymentRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1625,12 +1737,6 @@ type GetAppPermissionLevelsRequest struct { AppName types.String `tfsdk:"-"` } -func (newState *GetAppPermissionLevelsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAppPermissionLevelsRequest) { -} - -func (newState *GetAppPermissionLevelsRequest) SyncEffectiveFieldsDuringRead(existingState GetAppPermissionLevelsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAppPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1673,6 +1779,12 @@ func (newState *GetAppPermissionLevelsResponse) SyncEffectiveFieldsDuringCreateO func (newState *GetAppPermissionLevelsResponse) SyncEffectiveFieldsDuringRead(existingState GetAppPermissionLevelsResponse) { } +func (c GetAppPermissionLevelsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AppPermissionsDescription{}.ToSchema(cs, append(path, "permission_levels")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAppPermissionLevelsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1740,12 +1852,6 @@ type GetAppPermissionsRequest struct { AppName types.String `tfsdk:"-"` } -func (newState *GetAppPermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAppPermissionsRequest) { -} - -func (newState *GetAppPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState GetAppPermissionsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAppPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1783,12 +1889,6 @@ type GetAppRequest struct { Name types.String `tfsdk:"-"` } -func (newState *GetAppRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAppRequest) { -} - -func (newState *GetAppRequest) SyncEffectiveFieldsDuringRead(existingState GetAppRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAppRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1831,12 +1931,6 @@ type ListAppDeploymentsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListAppDeploymentsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAppDeploymentsRequest) { -} - -func (newState *ListAppDeploymentsRequest) SyncEffectiveFieldsDuringRead(existingState ListAppDeploymentsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAppDeploymentsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1885,6 +1979,12 @@ func (newState *ListAppDeploymentsResponse) SyncEffectiveFieldsDuringCreateOrUpd func (newState *ListAppDeploymentsResponse) SyncEffectiveFieldsDuringRead(existingState ListAppDeploymentsResponse) { } +func (c ListAppDeploymentsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AppDeployment{}.ToSchema(cs, append(path, "app_deployments")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAppDeploymentsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1957,12 +2057,6 @@ type ListAppsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListAppsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAppsRequest) { -} - -func (newState *ListAppsRequest) SyncEffectiveFieldsDuringRead(existingState ListAppsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAppsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2008,6 +2102,12 @@ func (newState *ListAppsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan L func (newState *ListAppsResponse) SyncEffectiveFieldsDuringRead(existingState ListAppsResponse) { } +func (c ListAppsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + App{}.ToSchema(cs, append(path, "apps")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAppsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2082,6 +2182,12 @@ func (newState *StartAppRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan St func (newState *StartAppRequest) SyncEffectiveFieldsDuringRead(existingState StartAppRequest) { } +func (c StartAppRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in StartAppRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2124,6 +2230,12 @@ func (newState *StopAppRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan Sto func (newState *StopAppRequest) SyncEffectiveFieldsDuringRead(existingState StopAppRequest) { } +func (c StopAppRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in StopAppRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2163,12 +2275,6 @@ type UpdateAppRequest struct { Name types.String `tfsdk:"-"` } -func (newState *UpdateAppRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateAppRequest) { -} - -func (newState *UpdateAppRequest) SyncEffectiveFieldsDuringRead(existingState UpdateAppRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateAppRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/billing_tf/legacy_model.go b/internal/service/billing_tf/legacy_model.go index ab728eed7..397833219 100755 --- a/internal/service/billing_tf/legacy_model.go +++ b/internal/service/billing_tf/legacy_model.go @@ -1279,12 +1279,6 @@ type DeleteBudgetConfigurationRequest_SdkV2 struct { BudgetId types.String `tfsdk:"-"` } -func (newState *DeleteBudgetConfigurationRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteBudgetConfigurationRequest_SdkV2) { -} - -func (newState *DeleteBudgetConfigurationRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteBudgetConfigurationRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteBudgetConfigurationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1366,12 +1360,6 @@ type DownloadRequest_SdkV2 struct { StartMonth types.String `tfsdk:"-"` } -func (newState *DownloadRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DownloadRequest_SdkV2) { -} - -func (newState *DownloadRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DownloadRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DownloadRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1411,12 +1399,6 @@ type DownloadResponse_SdkV2 struct { Contents types.Object `tfsdk:"-"` } -func (newState *DownloadResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DownloadResponse_SdkV2) { -} - -func (newState *DownloadResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DownloadResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DownloadResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1459,12 +1441,6 @@ type GetBillingUsageDashboardRequest_SdkV2 struct { WorkspaceId types.Int64 `tfsdk:"-"` } -func (newState *GetBillingUsageDashboardRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetBillingUsageDashboardRequest_SdkV2) { -} - -func (newState *GetBillingUsageDashboardRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetBillingUsageDashboardRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetBillingUsageDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1550,12 +1526,6 @@ type GetBudgetConfigurationRequest_SdkV2 struct { BudgetId types.String `tfsdk:"-"` } -func (newState *GetBudgetConfigurationRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetBudgetConfigurationRequest_SdkV2) { -} - -func (newState *GetBudgetConfigurationRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetBudgetConfigurationRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetBudgetConfigurationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1664,12 +1634,6 @@ type GetLogDeliveryRequest_SdkV2 struct { LogDeliveryConfigurationId types.String `tfsdk:"-"` } -func (newState *GetLogDeliveryRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetLogDeliveryRequest_SdkV2) { -} - -func (newState *GetLogDeliveryRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetLogDeliveryRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetLogDeliveryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1709,12 +1673,6 @@ type ListBudgetConfigurationsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListBudgetConfigurationsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListBudgetConfigurationsRequest_SdkV2) { -} - -func (newState *ListBudgetConfigurationsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListBudgetConfigurationsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListBudgetConfigurationsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1832,12 +1790,6 @@ type ListLogDeliveryRequest_SdkV2 struct { StorageConfigurationId types.String `tfsdk:"-"` } -func (newState *ListLogDeliveryRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListLogDeliveryRequest_SdkV2) { -} - -func (newState *ListLogDeliveryRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListLogDeliveryRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListLogDeliveryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2148,12 +2100,6 @@ func (o LogDeliveryStatus_SdkV2) Type(ctx context.Context) attr.Type { type PatchStatusResponse_SdkV2 struct { } -func (newState *PatchStatusResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan PatchStatusResponse_SdkV2) { -} - -func (newState *PatchStatusResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState PatchStatusResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in PatchStatusResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/billing_tf/model.go b/internal/service/billing_tf/model.go index 3073e7c70..31518605f 100755 --- a/internal/service/billing_tf/model.go +++ b/internal/service/billing_tf/model.go @@ -15,6 +15,7 @@ import ( "reflect" pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common" + "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/tfschema" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/types" @@ -36,6 +37,11 @@ func (newState *ActionConfiguration) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *ActionConfiguration) SyncEffectiveFieldsDuringRead(existingState ActionConfiguration) { } +func (c ActionConfiguration) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ActionConfiguration. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -96,6 +102,12 @@ func (newState *AlertConfiguration) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *AlertConfiguration) SyncEffectiveFieldsDuringRead(existingState AlertConfiguration) { } +func (c AlertConfiguration) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ActionConfiguration{}.ToSchema(cs, append(path, "action_configurations")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AlertConfiguration. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -194,6 +206,13 @@ func (newState *BudgetConfiguration) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *BudgetConfiguration) SyncEffectiveFieldsDuringRead(existingState BudgetConfiguration) { } +func (c BudgetConfiguration) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AlertConfiguration{}.ToSchema(cs, append(path, "alert_configurations")...) + BudgetConfigurationFilter{}.ToSchema(cs, append(path, "filter")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in BudgetConfiguration. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -311,6 +330,13 @@ func (newState *BudgetConfigurationFilter) SyncEffectiveFieldsDuringCreateOrUpda func (newState *BudgetConfigurationFilter) SyncEffectiveFieldsDuringRead(existingState BudgetConfigurationFilter) { } +func (c BudgetConfigurationFilter) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + BudgetConfigurationFilterTagClause{}.ToSchema(cs, append(path, "tags")...) + BudgetConfigurationFilterWorkspaceIdClause{}.ToSchema(cs, append(path, "workspace_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in BudgetConfigurationFilter. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -415,6 +441,11 @@ func (newState *BudgetConfigurationFilterClause) SyncEffectiveFieldsDuringCreate func (newState *BudgetConfigurationFilterClause) SyncEffectiveFieldsDuringRead(existingState BudgetConfigurationFilterClause) { } +func (c BudgetConfigurationFilterClause) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in BudgetConfigurationFilterClause. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -490,6 +521,12 @@ func (newState *BudgetConfigurationFilterTagClause) SyncEffectiveFieldsDuringCre func (newState *BudgetConfigurationFilterTagClause) SyncEffectiveFieldsDuringRead(existingState BudgetConfigurationFilterTagClause) { } +func (c BudgetConfigurationFilterTagClause) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + BudgetConfigurationFilterClause{}.ToSchema(cs, append(path, "value")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in BudgetConfigurationFilterTagClause. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -565,6 +602,11 @@ func (newState *BudgetConfigurationFilterWorkspaceIdClause) SyncEffectiveFieldsD func (newState *BudgetConfigurationFilterWorkspaceIdClause) SyncEffectiveFieldsDuringRead(existingState BudgetConfigurationFilterWorkspaceIdClause) { } +func (c BudgetConfigurationFilterWorkspaceIdClause) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in BudgetConfigurationFilterWorkspaceIdClause. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -644,6 +686,11 @@ func (newState *CreateBillingUsageDashboardRequest) SyncEffectiveFieldsDuringCre func (newState *CreateBillingUsageDashboardRequest) SyncEffectiveFieldsDuringRead(existingState CreateBillingUsageDashboardRequest) { } +func (c CreateBillingUsageDashboardRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateBillingUsageDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -688,6 +735,11 @@ func (newState *CreateBillingUsageDashboardResponse) SyncEffectiveFieldsDuringCr func (newState *CreateBillingUsageDashboardResponse) SyncEffectiveFieldsDuringRead(existingState CreateBillingUsageDashboardResponse) { } +func (c CreateBillingUsageDashboardResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateBillingUsageDashboardResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -740,6 +792,13 @@ func (newState *CreateBudgetConfigurationBudget) SyncEffectiveFieldsDuringCreate func (newState *CreateBudgetConfigurationBudget) SyncEffectiveFieldsDuringRead(existingState CreateBudgetConfigurationBudget) { } +func (c CreateBudgetConfigurationBudget) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CreateBudgetConfigurationBudgetAlertConfigurations{}.ToSchema(cs, append(path, "alert_configurations")...) + BudgetConfigurationFilter{}.ToSchema(cs, append(path, "filter")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateBudgetConfigurationBudget. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -849,6 +908,11 @@ func (newState *CreateBudgetConfigurationBudgetActionConfigurations) SyncEffecti func (newState *CreateBudgetConfigurationBudgetActionConfigurations) SyncEffectiveFieldsDuringRead(existingState CreateBudgetConfigurationBudgetActionConfigurations) { } +func (c CreateBudgetConfigurationBudgetActionConfigurations) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateBudgetConfigurationBudgetActionConfigurations. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -905,6 +969,12 @@ func (newState *CreateBudgetConfigurationBudgetAlertConfigurations) SyncEffectiv func (newState *CreateBudgetConfigurationBudgetAlertConfigurations) SyncEffectiveFieldsDuringRead(existingState CreateBudgetConfigurationBudgetAlertConfigurations) { } +func (c CreateBudgetConfigurationBudgetAlertConfigurations) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CreateBudgetConfigurationBudgetActionConfigurations{}.ToSchema(cs, append(path, "action_configurations")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateBudgetConfigurationBudgetAlertConfigurations. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -985,6 +1055,13 @@ func (newState *CreateBudgetConfigurationRequest) SyncEffectiveFieldsDuringCreat func (newState *CreateBudgetConfigurationRequest) SyncEffectiveFieldsDuringRead(existingState CreateBudgetConfigurationRequest) { } +func (c CreateBudgetConfigurationRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "budget")...) + CreateBudgetConfigurationBudget{}.ToSchema(cs, append(path, "budget")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateBudgetConfigurationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1057,6 +1134,12 @@ func (newState *CreateBudgetConfigurationResponse) SyncEffectiveFieldsDuringCrea func (newState *CreateBudgetConfigurationResponse) SyncEffectiveFieldsDuringRead(existingState CreateBudgetConfigurationResponse) { } +func (c CreateBudgetConfigurationResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + BudgetConfiguration{}.ToSchema(cs, append(path, "budget")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateBudgetConfigurationResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1196,6 +1279,15 @@ func (newState *CreateLogDeliveryConfigurationParams) SyncEffectiveFieldsDuringC func (newState *CreateLogDeliveryConfigurationParams) SyncEffectiveFieldsDuringRead(existingState CreateLogDeliveryConfigurationParams) { } +func (c CreateLogDeliveryConfigurationParams) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "credentials_id")...) + cs.SetRequired(append(path, "log_type")...) + cs.SetRequired(append(path, "output_format")...) + cs.SetRequired(append(path, "storage_configuration_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateLogDeliveryConfigurationParams. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1279,12 +1371,6 @@ type DeleteBudgetConfigurationRequest struct { BudgetId types.String `tfsdk:"-"` } -func (newState *DeleteBudgetConfigurationRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteBudgetConfigurationRequest) { -} - -func (newState *DeleteBudgetConfigurationRequest) SyncEffectiveFieldsDuringRead(existingState DeleteBudgetConfigurationRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteBudgetConfigurationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1325,6 +1411,11 @@ func (newState *DeleteBudgetConfigurationResponse) SyncEffectiveFieldsDuringCrea func (newState *DeleteBudgetConfigurationResponse) SyncEffectiveFieldsDuringRead(existingState DeleteBudgetConfigurationResponse) { } +func (c DeleteBudgetConfigurationResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteBudgetConfigurationResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1366,12 +1457,6 @@ type DownloadRequest struct { StartMonth types.String `tfsdk:"-"` } -func (newState *DownloadRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DownloadRequest) { -} - -func (newState *DownloadRequest) SyncEffectiveFieldsDuringRead(existingState DownloadRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DownloadRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1411,12 +1496,6 @@ type DownloadResponse struct { Contents types.Object `tfsdk:"-"` } -func (newState *DownloadResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DownloadResponse) { -} - -func (newState *DownloadResponse) SyncEffectiveFieldsDuringRead(existingState DownloadResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DownloadResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1459,12 +1538,6 @@ type GetBillingUsageDashboardRequest struct { WorkspaceId types.Int64 `tfsdk:"-"` } -func (newState *GetBillingUsageDashboardRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetBillingUsageDashboardRequest) { -} - -func (newState *GetBillingUsageDashboardRequest) SyncEffectiveFieldsDuringRead(existingState GetBillingUsageDashboardRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetBillingUsageDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1511,6 +1584,11 @@ func (newState *GetBillingUsageDashboardResponse) SyncEffectiveFieldsDuringCreat func (newState *GetBillingUsageDashboardResponse) SyncEffectiveFieldsDuringRead(existingState GetBillingUsageDashboardResponse) { } +func (c GetBillingUsageDashboardResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetBillingUsageDashboardResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1550,12 +1628,6 @@ type GetBudgetConfigurationRequest struct { BudgetId types.String `tfsdk:"-"` } -func (newState *GetBudgetConfigurationRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetBudgetConfigurationRequest) { -} - -func (newState *GetBudgetConfigurationRequest) SyncEffectiveFieldsDuringRead(existingState GetBudgetConfigurationRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetBudgetConfigurationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1597,6 +1669,12 @@ func (newState *GetBudgetConfigurationResponse) SyncEffectiveFieldsDuringCreateO func (newState *GetBudgetConfigurationResponse) SyncEffectiveFieldsDuringRead(existingState GetBudgetConfigurationResponse) { } +func (c GetBudgetConfigurationResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + BudgetConfiguration{}.ToSchema(cs, append(path, "budget")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetBudgetConfigurationResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1664,12 +1742,6 @@ type GetLogDeliveryRequest struct { LogDeliveryConfigurationId types.String `tfsdk:"-"` } -func (newState *GetLogDeliveryRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetLogDeliveryRequest) { -} - -func (newState *GetLogDeliveryRequest) SyncEffectiveFieldsDuringRead(existingState GetLogDeliveryRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetLogDeliveryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1709,12 +1781,6 @@ type ListBudgetConfigurationsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListBudgetConfigurationsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListBudgetConfigurationsRequest) { -} - -func (newState *ListBudgetConfigurationsRequest) SyncEffectiveFieldsDuringRead(existingState ListBudgetConfigurationsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListBudgetConfigurationsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1759,6 +1825,12 @@ func (newState *ListBudgetConfigurationsResponse) SyncEffectiveFieldsDuringCreat func (newState *ListBudgetConfigurationsResponse) SyncEffectiveFieldsDuringRead(existingState ListBudgetConfigurationsResponse) { } +func (c ListBudgetConfigurationsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + BudgetConfiguration{}.ToSchema(cs, append(path, "budgets")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListBudgetConfigurationsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1832,12 +1904,6 @@ type ListLogDeliveryRequest struct { StorageConfigurationId types.String `tfsdk:"-"` } -func (newState *ListLogDeliveryRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListLogDeliveryRequest) { -} - -func (newState *ListLogDeliveryRequest) SyncEffectiveFieldsDuringRead(existingState ListLogDeliveryRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListLogDeliveryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1963,6 +2029,12 @@ func (newState *LogDeliveryConfiguration) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *LogDeliveryConfiguration) SyncEffectiveFieldsDuringRead(existingState LogDeliveryConfiguration) { } +func (c LogDeliveryConfiguration) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + LogDeliveryStatus{}.ToSchema(cs, append(path, "log_delivery_status")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in LogDeliveryConfiguration. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2108,6 +2180,11 @@ func (newState *LogDeliveryStatus) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *LogDeliveryStatus) SyncEffectiveFieldsDuringRead(existingState LogDeliveryStatus) { } +func (c LogDeliveryStatus) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in LogDeliveryStatus. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2148,12 +2225,6 @@ func (o LogDeliveryStatus) Type(ctx context.Context) attr.Type { type PatchStatusResponse struct { } -func (newState *PatchStatusResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan PatchStatusResponse) { -} - -func (newState *PatchStatusResponse) SyncEffectiveFieldsDuringRead(existingState PatchStatusResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in PatchStatusResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2204,6 +2275,13 @@ func (newState *UpdateBudgetConfigurationBudget) SyncEffectiveFieldsDuringCreate func (newState *UpdateBudgetConfigurationBudget) SyncEffectiveFieldsDuringRead(existingState UpdateBudgetConfigurationBudget) { } +func (c UpdateBudgetConfigurationBudget) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AlertConfiguration{}.ToSchema(cs, append(path, "alert_configurations")...) + BudgetConfigurationFilter{}.ToSchema(cs, append(path, "filter")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateBudgetConfigurationBudget. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2316,6 +2394,14 @@ func (newState *UpdateBudgetConfigurationRequest) SyncEffectiveFieldsDuringCreat func (newState *UpdateBudgetConfigurationRequest) SyncEffectiveFieldsDuringRead(existingState UpdateBudgetConfigurationRequest) { } +func (c UpdateBudgetConfigurationRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "budget")...) + UpdateBudgetConfigurationBudget{}.ToSchema(cs, append(path, "budget")...) + cs.SetRequired(append(path, "budget_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateBudgetConfigurationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2390,6 +2476,12 @@ func (newState *UpdateBudgetConfigurationResponse) SyncEffectiveFieldsDuringCrea func (newState *UpdateBudgetConfigurationResponse) SyncEffectiveFieldsDuringRead(existingState UpdateBudgetConfigurationResponse) { } +func (c UpdateBudgetConfigurationResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + BudgetConfiguration{}.ToSchema(cs, append(path, "budget")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateBudgetConfigurationResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2468,6 +2560,13 @@ func (newState *UpdateLogDeliveryConfigurationStatusRequest) SyncEffectiveFields func (newState *UpdateLogDeliveryConfigurationStatusRequest) SyncEffectiveFieldsDuringRead(existingState UpdateLogDeliveryConfigurationStatusRequest) { } +func (c UpdateLogDeliveryConfigurationStatusRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "log_delivery_configuration_id")...) + cs.SetRequired(append(path, "status")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateLogDeliveryConfigurationStatusRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2511,6 +2610,12 @@ func (newState *WrappedCreateLogDeliveryConfiguration) SyncEffectiveFieldsDuring func (newState *WrappedCreateLogDeliveryConfiguration) SyncEffectiveFieldsDuringRead(existingState WrappedCreateLogDeliveryConfiguration) { } +func (c WrappedCreateLogDeliveryConfiguration) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CreateLogDeliveryConfigurationParams{}.ToSchema(cs, append(path, "log_delivery_configuration")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WrappedCreateLogDeliveryConfiguration. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2582,6 +2687,12 @@ func (newState *WrappedLogDeliveryConfiguration) SyncEffectiveFieldsDuringCreate func (newState *WrappedLogDeliveryConfiguration) SyncEffectiveFieldsDuringRead(existingState WrappedLogDeliveryConfiguration) { } +func (c WrappedLogDeliveryConfiguration) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + LogDeliveryConfiguration{}.ToSchema(cs, append(path, "log_delivery_configuration")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WrappedLogDeliveryConfiguration. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2653,6 +2764,12 @@ func (newState *WrappedLogDeliveryConfigurations) SyncEffectiveFieldsDuringCreat func (newState *WrappedLogDeliveryConfigurations) SyncEffectiveFieldsDuringRead(existingState WrappedLogDeliveryConfigurations) { } +func (c WrappedLogDeliveryConfigurations) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + LogDeliveryConfiguration{}.ToSchema(cs, append(path, "log_delivery_configurations")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WrappedLogDeliveryConfigurations. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/catalog_tf/legacy_model.go b/internal/service/catalog_tf/legacy_model.go index e9f275dfa..3ca77e806 100755 --- a/internal/service/catalog_tf/legacy_model.go +++ b/internal/service/catalog_tf/legacy_model.go @@ -826,12 +826,6 @@ func (o ArtifactMatcher_SdkV2) Type(ctx context.Context) attr.Type { type AssignResponse_SdkV2 struct { } -func (newState *AssignResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan AssignResponse_SdkV2) { -} - -func (newState *AssignResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState AssignResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in AssignResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1388,12 +1382,6 @@ type CancelRefreshRequest_SdkV2 struct { TableName types.String `tfsdk:"-"` } -func (newState *CancelRefreshRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CancelRefreshRequest_SdkV2) { -} - -func (newState *CancelRefreshRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState CancelRefreshRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelRefreshRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1430,12 +1418,6 @@ func (o CancelRefreshRequest_SdkV2) Type(ctx context.Context) attr.Type { type CancelRefreshResponse_SdkV2 struct { } -func (newState *CancelRefreshResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CancelRefreshResponse_SdkV2) { -} - -func (newState *CancelRefreshResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState CancelRefreshResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelRefreshResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3545,12 +3527,6 @@ type CreateOnlineTableRequest_SdkV2 struct { Table types.List `tfsdk:"table" tf:"optional,object"` } -func (newState *CreateOnlineTableRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateOnlineTableRequest_SdkV2) { -} - -func (newState *CreateOnlineTableRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateOnlineTableRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateOnlineTableRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3674,12 +3650,6 @@ func (o CreateRegisteredModelRequest_SdkV2) Type(ctx context.Context) attr.Type type CreateResponse_SdkV2 struct { } -func (newState *CreateResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateResponse_SdkV2) { -} - -func (newState *CreateResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4654,12 +4624,6 @@ type DeleteAccountMetastoreAssignmentRequest_SdkV2 struct { WorkspaceId types.Int64 `tfsdk:"-"` } -func (newState *DeleteAccountMetastoreAssignmentRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAccountMetastoreAssignmentRequest_SdkV2) { -} - -func (newState *DeleteAccountMetastoreAssignmentRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteAccountMetastoreAssignmentRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAccountMetastoreAssignmentRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4701,12 +4665,6 @@ type DeleteAccountMetastoreRequest_SdkV2 struct { MetastoreId types.String `tfsdk:"-"` } -func (newState *DeleteAccountMetastoreRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAccountMetastoreRequest_SdkV2) { -} - -func (newState *DeleteAccountMetastoreRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteAccountMetastoreRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAccountMetastoreRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4751,12 +4709,6 @@ type DeleteAccountStorageCredentialRequest_SdkV2 struct { StorageCredentialName types.String `tfsdk:"-"` } -func (newState *DeleteAccountStorageCredentialRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAccountStorageCredentialRequest_SdkV2) { -} - -func (newState *DeleteAccountStorageCredentialRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteAccountStorageCredentialRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAccountStorageCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4800,12 +4752,6 @@ type DeleteAliasRequest_SdkV2 struct { FullName types.String `tfsdk:"-"` } -func (newState *DeleteAliasRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAliasRequest_SdkV2) { -} - -func (newState *DeleteAliasRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteAliasRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAliasRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4842,12 +4788,6 @@ func (o DeleteAliasRequest_SdkV2) Type(ctx context.Context) attr.Type { type DeleteAliasResponse_SdkV2 struct { } -func (newState *DeleteAliasResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAliasResponse_SdkV2) { -} - -func (newState *DeleteAliasResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteAliasResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAliasResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4883,12 +4823,6 @@ type DeleteCatalogRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteCatalogRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteCatalogRequest_SdkV2) { -} - -func (newState *DeleteCatalogRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteCatalogRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCatalogRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4928,12 +4862,6 @@ type DeleteConnectionRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteConnectionRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteConnectionRequest_SdkV2) { -} - -func (newState *DeleteConnectionRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteConnectionRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteConnectionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4975,12 +4903,6 @@ type DeleteCredentialRequest_SdkV2 struct { NameArg types.String `tfsdk:"-"` } -func (newState *DeleteCredentialRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteCredentialRequest_SdkV2) { -} - -func (newState *DeleteCredentialRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteCredentialRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5058,12 +4980,6 @@ type DeleteExternalLocationRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteExternalLocationRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteExternalLocationRequest_SdkV2) { -} - -func (newState *DeleteExternalLocationRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteExternalLocationRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteExternalLocationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5106,12 +5022,6 @@ type DeleteFunctionRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteFunctionRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteFunctionRequest_SdkV2) { -} - -func (newState *DeleteFunctionRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteFunctionRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteFunctionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5153,12 +5063,6 @@ type DeleteMetastoreRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteMetastoreRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteMetastoreRequest_SdkV2) { -} - -func (newState *DeleteMetastoreRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteMetastoreRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteMetastoreRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5200,12 +5104,6 @@ type DeleteModelVersionRequest_SdkV2 struct { Version types.Int64 `tfsdk:"-"` } -func (newState *DeleteModelVersionRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteModelVersionRequest_SdkV2) { -} - -func (newState *DeleteModelVersionRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteModelVersionRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteModelVersionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5245,12 +5143,6 @@ type DeleteOnlineTableRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteOnlineTableRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteOnlineTableRequest_SdkV2) { -} - -func (newState *DeleteOnlineTableRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteOnlineTableRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteOnlineTableRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5288,12 +5180,6 @@ type DeleteQualityMonitorRequest_SdkV2 struct { TableName types.String `tfsdk:"-"` } -func (newState *DeleteQualityMonitorRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteQualityMonitorRequest_SdkV2) { -} - -func (newState *DeleteQualityMonitorRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteQualityMonitorRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteQualityMonitorRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5331,12 +5217,6 @@ type DeleteRegisteredModelRequest_SdkV2 struct { FullName types.String `tfsdk:"-"` } -func (newState *DeleteRegisteredModelRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteRegisteredModelRequest_SdkV2) { -} - -func (newState *DeleteRegisteredModelRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteRegisteredModelRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteRegisteredModelRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5371,12 +5251,6 @@ func (o DeleteRegisteredModelRequest_SdkV2) Type(ctx context.Context) attr.Type type DeleteResponse_SdkV2 struct { } -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse_SdkV2) { -} - -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5412,12 +5286,6 @@ type DeleteSchemaRequest_SdkV2 struct { FullName types.String `tfsdk:"-"` } -func (newState *DeleteSchemaRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteSchemaRequest_SdkV2) { -} - -func (newState *DeleteSchemaRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteSchemaRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteSchemaRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5460,12 +5328,6 @@ type DeleteStorageCredentialRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteStorageCredentialRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteStorageCredentialRequest_SdkV2) { -} - -func (newState *DeleteStorageCredentialRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteStorageCredentialRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteStorageCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5511,12 +5373,6 @@ type DeleteTableConstraintRequest_SdkV2 struct { FullName types.String `tfsdk:"-"` } -func (newState *DeleteTableConstraintRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteTableConstraintRequest_SdkV2) { -} - -func (newState *DeleteTableConstraintRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteTableConstraintRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteTableConstraintRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5558,12 +5414,6 @@ type DeleteTableRequest_SdkV2 struct { FullName types.String `tfsdk:"-"` } -func (newState *DeleteTableRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteTableRequest_SdkV2) { -} - -func (newState *DeleteTableRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteTableRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteTableRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5601,12 +5451,6 @@ type DeleteVolumeRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteVolumeRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteVolumeRequest_SdkV2) { -} - -func (newState *DeleteVolumeRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteVolumeRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteVolumeRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5901,12 +5745,6 @@ type DisableRequest_SdkV2 struct { SchemaName types.String `tfsdk:"-"` } -func (newState *DisableRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DisableRequest_SdkV2) { -} - -func (newState *DisableRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DisableRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DisableRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5943,12 +5781,6 @@ func (o DisableRequest_SdkV2) Type(ctx context.Context) attr.Type { type DisableResponse_SdkV2 struct { } -func (newState *DisableResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DisableResponse_SdkV2) { -} - -func (newState *DisableResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DisableResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DisableResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6241,12 +6073,6 @@ type EnableRequest_SdkV2 struct { SchemaName types.String `tfsdk:"-"` } -func (newState *EnableRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan EnableRequest_SdkV2) { -} - -func (newState *EnableRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState EnableRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in EnableRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6283,12 +6109,6 @@ func (o EnableRequest_SdkV2) Type(ctx context.Context) attr.Type { type EnableResponse_SdkV2 struct { } -func (newState *EnableResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan EnableResponse_SdkV2) { -} - -func (newState *EnableResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState EnableResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in EnableResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6395,12 +6215,6 @@ type ExistsRequest_SdkV2 struct { FullName types.String `tfsdk:"-"` } -func (newState *ExistsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ExistsRequest_SdkV2) { -} - -func (newState *ExistsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ExistsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExistsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7771,12 +7585,6 @@ type GetAccountMetastoreAssignmentRequest_SdkV2 struct { WorkspaceId types.Int64 `tfsdk:"-"` } -func (newState *GetAccountMetastoreAssignmentRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAccountMetastoreAssignmentRequest_SdkV2) { -} - -func (newState *GetAccountMetastoreAssignmentRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetAccountMetastoreAssignmentRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAccountMetastoreAssignmentRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7814,12 +7622,6 @@ type GetAccountMetastoreRequest_SdkV2 struct { MetastoreId types.String `tfsdk:"-"` } -func (newState *GetAccountMetastoreRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAccountMetastoreRequest_SdkV2) { -} - -func (newState *GetAccountMetastoreRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetAccountMetastoreRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAccountMetastoreRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7859,12 +7661,6 @@ type GetAccountStorageCredentialRequest_SdkV2 struct { StorageCredentialName types.String `tfsdk:"-"` } -func (newState *GetAccountStorageCredentialRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAccountStorageCredentialRequest_SdkV2) { -} - -func (newState *GetAccountStorageCredentialRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetAccountStorageCredentialRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAccountStorageCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7904,12 +7700,6 @@ type GetArtifactAllowlistRequest_SdkV2 struct { ArtifactType types.String `tfsdk:"-"` } -func (newState *GetArtifactAllowlistRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetArtifactAllowlistRequest_SdkV2) { -} - -func (newState *GetArtifactAllowlistRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetArtifactAllowlistRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetArtifactAllowlistRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7958,12 +7748,6 @@ type GetBindingsRequest_SdkV2 struct { SecurableType types.String `tfsdk:"-"` } -func (newState *GetBindingsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetBindingsRequest_SdkV2) { -} - -func (newState *GetBindingsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetBindingsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetBindingsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8012,12 +7796,6 @@ type GetByAliasRequest_SdkV2 struct { IncludeAliases types.Bool `tfsdk:"-"` } -func (newState *GetByAliasRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetByAliasRequest_SdkV2) { -} - -func (newState *GetByAliasRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetByAliasRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetByAliasRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8062,12 +7840,6 @@ type GetCatalogRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *GetCatalogRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetCatalogRequest_SdkV2) { -} - -func (newState *GetCatalogRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetCatalogRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetCatalogRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8107,12 +7879,6 @@ type GetConnectionRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *GetConnectionRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetConnectionRequest_SdkV2) { -} - -func (newState *GetConnectionRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetConnectionRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetConnectionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8150,12 +7916,6 @@ type GetCredentialRequest_SdkV2 struct { NameArg types.String `tfsdk:"-"` } -func (newState *GetCredentialRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetCredentialRequest_SdkV2) { -} - -func (newState *GetCredentialRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetCredentialRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8198,12 +7958,6 @@ type GetEffectiveRequest_SdkV2 struct { SecurableType types.String `tfsdk:"-"` } -func (newState *GetEffectiveRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetEffectiveRequest_SdkV2) { -} - -func (newState *GetEffectiveRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetEffectiveRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetEffectiveRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8248,12 +8002,6 @@ type GetExternalLocationRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *GetExternalLocationRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetExternalLocationRequest_SdkV2) { -} - -func (newState *GetExternalLocationRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetExternalLocationRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetExternalLocationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8297,12 +8045,6 @@ type GetFunctionRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *GetFunctionRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetFunctionRequest_SdkV2) { -} - -func (newState *GetFunctionRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetFunctionRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetFunctionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8347,12 +8089,6 @@ type GetGrantRequest_SdkV2 struct { SecurableType types.String `tfsdk:"-"` } -func (newState *GetGrantRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetGrantRequest_SdkV2) { -} - -func (newState *GetGrantRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetGrantRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetGrantRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8394,12 +8130,6 @@ type GetMetastoreRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *GetMetastoreRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetMetastoreRequest_SdkV2) { -} - -func (newState *GetMetastoreRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetMetastoreRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetMetastoreRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8563,12 +8293,6 @@ type GetModelVersionRequest_SdkV2 struct { Version types.Int64 `tfsdk:"-"` } -func (newState *GetModelVersionRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetModelVersionRequest_SdkV2) { -} - -func (newState *GetModelVersionRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetModelVersionRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetModelVersionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8612,12 +8336,6 @@ type GetOnlineTableRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *GetOnlineTableRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetOnlineTableRequest_SdkV2) { -} - -func (newState *GetOnlineTableRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetOnlineTableRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetOnlineTableRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8655,12 +8373,6 @@ type GetQualityMonitorRequest_SdkV2 struct { TableName types.String `tfsdk:"-"` } -func (newState *GetQualityMonitorRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetQualityMonitorRequest_SdkV2) { -} - -func (newState *GetQualityMonitorRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetQualityMonitorRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetQualityMonitorRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8704,12 +8416,6 @@ type GetQuotaRequest_SdkV2 struct { QuotaName types.String `tfsdk:"-"` } -func (newState *GetQuotaRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetQuotaRequest_SdkV2) { -} - -func (newState *GetQuotaRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetQuotaRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetQuotaRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8825,12 +8531,6 @@ type GetRefreshRequest_SdkV2 struct { TableName types.String `tfsdk:"-"` } -func (newState *GetRefreshRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRefreshRequest_SdkV2) { -} - -func (newState *GetRefreshRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetRefreshRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRefreshRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8875,12 +8575,6 @@ type GetRegisteredModelRequest_SdkV2 struct { IncludeBrowse types.Bool `tfsdk:"-"` } -func (newState *GetRegisteredModelRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRegisteredModelRequest_SdkV2) { -} - -func (newState *GetRegisteredModelRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetRegisteredModelRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRegisteredModelRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8925,12 +8619,6 @@ type GetSchemaRequest_SdkV2 struct { IncludeBrowse types.Bool `tfsdk:"-"` } -func (newState *GetSchemaRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetSchemaRequest_SdkV2) { -} - -func (newState *GetSchemaRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetSchemaRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetSchemaRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8970,12 +8658,6 @@ type GetStorageCredentialRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *GetStorageCredentialRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetStorageCredentialRequest_SdkV2) { -} - -func (newState *GetStorageCredentialRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetStorageCredentialRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetStorageCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9020,12 +8702,6 @@ type GetTableRequest_SdkV2 struct { IncludeManifestCapabilities types.Bool `tfsdk:"-"` } -func (newState *GetTableRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetTableRequest_SdkV2) { -} - -func (newState *GetTableRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetTableRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetTableRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9069,12 +8745,6 @@ type GetWorkspaceBindingRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *GetWorkspaceBindingRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWorkspaceBindingRequest_SdkV2) { -} - -func (newState *GetWorkspaceBindingRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetWorkspaceBindingRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWorkspaceBindingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9112,12 +8782,6 @@ type ListAccountMetastoreAssignmentsRequest_SdkV2 struct { MetastoreId types.String `tfsdk:"-"` } -func (newState *ListAccountMetastoreAssignmentsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAccountMetastoreAssignmentsRequest_SdkV2) { -} - -func (newState *ListAccountMetastoreAssignmentsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListAccountMetastoreAssignmentsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAccountMetastoreAssignmentsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9227,12 +8891,6 @@ type ListAccountStorageCredentialsRequest_SdkV2 struct { MetastoreId types.String `tfsdk:"-"` } -func (newState *ListAccountStorageCredentialsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAccountStorageCredentialsRequest_SdkV2) { -} - -func (newState *ListAccountStorageCredentialsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListAccountStorageCredentialsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAccountStorageCredentialsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9355,12 +9013,6 @@ type ListCatalogsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListCatalogsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListCatalogsRequest_SdkV2) { -} - -func (newState *ListCatalogsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListCatalogsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListCatalogsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9487,12 +9139,6 @@ type ListConnectionsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListConnectionsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListConnectionsRequest_SdkV2) { -} - -func (newState *ListConnectionsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListConnectionsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListConnectionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9618,12 +9264,6 @@ type ListCredentialsRequest_SdkV2 struct { Purpose types.String `tfsdk:"-"` } -func (newState *ListCredentialsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListCredentialsRequest_SdkV2) { -} - -func (newState *ListCredentialsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListCredentialsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListCredentialsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9752,12 +9392,6 @@ type ListExternalLocationsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListExternalLocationsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListExternalLocationsRequest_SdkV2) { -} - -func (newState *ListExternalLocationsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListExternalLocationsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListExternalLocationsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9891,12 +9525,6 @@ type ListFunctionsRequest_SdkV2 struct { SchemaName types.String `tfsdk:"-"` } -func (newState *ListFunctionsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListFunctionsRequest_SdkV2) { -} - -func (newState *ListFunctionsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListFunctionsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListFunctionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10106,12 +9734,6 @@ type ListModelVersionsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListModelVersionsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListModelVersionsRequest_SdkV2) { -} - -func (newState *ListModelVersionsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListModelVersionsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListModelVersionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10234,12 +9856,6 @@ type ListQuotasRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListQuotasRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListQuotasRequest_SdkV2) { -} - -func (newState *ListQuotasRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListQuotasRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListQuotasRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10357,12 +9973,6 @@ type ListRefreshesRequest_SdkV2 struct { TableName types.String `tfsdk:"-"` } -func (newState *ListRefreshesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListRefreshesRequest_SdkV2) { -} - -func (newState *ListRefreshesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListRefreshesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListRefreshesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10427,12 +10037,6 @@ type ListRegisteredModelsRequest_SdkV2 struct { SchemaName types.String `tfsdk:"-"` } -func (newState *ListRegisteredModelsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListRegisteredModelsRequest_SdkV2) { -} - -func (newState *ListRegisteredModelsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListRegisteredModelsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListRegisteredModelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10567,12 +10171,6 @@ type ListSchemasRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListSchemasRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListSchemasRequest_SdkV2) { -} - -func (newState *ListSchemasRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListSchemasRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListSchemasRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10701,12 +10299,6 @@ type ListStorageCredentialsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListStorageCredentialsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListStorageCredentialsRequest_SdkV2) { -} - -func (newState *ListStorageCredentialsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListStorageCredentialsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListStorageCredentialsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10842,12 +10434,6 @@ type ListSummariesRequest_SdkV2 struct { TableNamePattern types.String `tfsdk:"-"` } -func (newState *ListSummariesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListSummariesRequest_SdkV2) { -} - -func (newState *ListSummariesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListSummariesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListSummariesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10904,12 +10490,6 @@ type ListSystemSchemasRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListSystemSchemasRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListSystemSchemasRequest_SdkV2) { -} - -func (newState *ListSystemSchemasRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListSystemSchemasRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListSystemSchemasRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11132,12 +10712,6 @@ type ListTablesRequest_SdkV2 struct { SchemaName types.String `tfsdk:"-"` } -func (newState *ListTablesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListTablesRequest_SdkV2) { -} - -func (newState *ListTablesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListTablesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListTablesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11292,12 +10866,6 @@ type ListVolumesRequest_SdkV2 struct { SchemaName types.String `tfsdk:"-"` } -func (newState *ListVolumesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListVolumesRequest_SdkV2) { -} - -func (newState *ListVolumesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListVolumesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListVolumesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14086,12 +13654,6 @@ type ReadVolumeRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *ReadVolumeRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ReadVolumeRequest_SdkV2) { -} - -func (newState *ReadVolumeRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ReadVolumeRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ReadVolumeRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14400,12 +13962,6 @@ type RunRefreshRequest_SdkV2 struct { TableName types.String `tfsdk:"-"` } -func (newState *RunRefreshRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan RunRefreshRequest_SdkV2) { -} - -func (newState *RunRefreshRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState RunRefreshRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in RunRefreshRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16055,12 +15611,6 @@ type UnassignRequest_SdkV2 struct { WorkspaceId types.Int64 `tfsdk:"-"` } -func (newState *UnassignRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UnassignRequest_SdkV2) { -} - -func (newState *UnassignRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState UnassignRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UnassignRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16097,12 +15647,6 @@ func (o UnassignRequest_SdkV2) Type(ctx context.Context) attr.Type { type UnassignResponse_SdkV2 struct { } -func (newState *UnassignResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UnassignResponse_SdkV2) { -} - -func (newState *UnassignResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState UnassignResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UnassignResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16133,12 +15677,6 @@ func (o UnassignResponse_SdkV2) Type(ctx context.Context) attr.Type { type UpdateAssignmentResponse_SdkV2 struct { } -func (newState *UpdateAssignmentResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateAssignmentResponse_SdkV2) { -} - -func (newState *UpdateAssignmentResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdateAssignmentResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateAssignmentResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -17368,12 +16906,6 @@ func (o UpdateRegisteredModelRequest_SdkV2) Type(ctx context.Context) attr.Type type UpdateResponse_SdkV2 struct { } -func (newState *UpdateResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateResponse_SdkV2) { -} - -func (newState *UpdateResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdateResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -17740,12 +17272,6 @@ type UpdateTableRequest_SdkV2 struct { Owner types.String `tfsdk:"owner" tf:"optional"` } -func (newState *UpdateTableRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateTableRequest_SdkV2) { -} - -func (newState *UpdateTableRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdateTableRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateTableRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/catalog_tf/model.go b/internal/service/catalog_tf/model.go index 4b2917471..13489f79e 100755 --- a/internal/service/catalog_tf/model.go +++ b/internal/service/catalog_tf/model.go @@ -15,6 +15,7 @@ import ( "reflect" pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common" + "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/tfschema" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/types" @@ -31,6 +32,12 @@ func (newState *AccountsCreateMetastore) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *AccountsCreateMetastore) SyncEffectiveFieldsDuringRead(existingState AccountsCreateMetastore) { } +func (c AccountsCreateMetastore) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CreateMetastore{}.ToSchema(cs, append(path, "metastore_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AccountsCreateMetastore. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -106,6 +113,14 @@ func (newState *AccountsCreateMetastoreAssignment) SyncEffectiveFieldsDuringCrea func (newState *AccountsCreateMetastoreAssignment) SyncEffectiveFieldsDuringRead(existingState AccountsCreateMetastoreAssignment) { } +func (c AccountsCreateMetastoreAssignment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CreateMetastoreAssignment{}.ToSchema(cs, append(path, "metastore_assignment")...) + cs.SetRequired(append(path, "metastore_id")...) + cs.SetRequired(append(path, "workspace_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AccountsCreateMetastoreAssignment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -183,6 +198,13 @@ func (newState *AccountsCreateStorageCredential) SyncEffectiveFieldsDuringCreate func (newState *AccountsCreateStorageCredential) SyncEffectiveFieldsDuringRead(existingState AccountsCreateStorageCredential) { } +func (c AccountsCreateStorageCredential) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CreateStorageCredential{}.ToSchema(cs, append(path, "credential_info")...) + cs.SetRequired(append(path, "metastore_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AccountsCreateStorageCredential. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -256,6 +278,12 @@ func (newState *AccountsMetastoreAssignment) SyncEffectiveFieldsDuringCreateOrUp func (newState *AccountsMetastoreAssignment) SyncEffectiveFieldsDuringRead(existingState AccountsMetastoreAssignment) { } +func (c AccountsMetastoreAssignment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + MetastoreAssignment{}.ToSchema(cs, append(path, "metastore_assignment")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AccountsMetastoreAssignment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -327,6 +355,12 @@ func (newState *AccountsMetastoreInfo) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *AccountsMetastoreInfo) SyncEffectiveFieldsDuringRead(existingState AccountsMetastoreInfo) { } +func (c AccountsMetastoreInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + MetastoreInfo{}.ToSchema(cs, append(path, "metastore_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AccountsMetastoreInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -398,6 +432,12 @@ func (newState *AccountsStorageCredentialInfo) SyncEffectiveFieldsDuringCreateOr func (newState *AccountsStorageCredentialInfo) SyncEffectiveFieldsDuringRead(existingState AccountsStorageCredentialInfo) { } +func (c AccountsStorageCredentialInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + StorageCredentialInfo{}.ToSchema(cs, append(path, "credential_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AccountsStorageCredentialInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -472,6 +512,13 @@ func (newState *AccountsUpdateMetastore) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *AccountsUpdateMetastore) SyncEffectiveFieldsDuringRead(existingState AccountsUpdateMetastore) { } +func (c AccountsUpdateMetastore) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "metastore_id")...) + UpdateMetastore{}.ToSchema(cs, append(path, "metastore_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AccountsUpdateMetastore. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -549,6 +596,14 @@ func (newState *AccountsUpdateMetastoreAssignment) SyncEffectiveFieldsDuringCrea func (newState *AccountsUpdateMetastoreAssignment) SyncEffectiveFieldsDuringRead(existingState AccountsUpdateMetastoreAssignment) { } +func (c AccountsUpdateMetastoreAssignment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + UpdateMetastoreAssignment{}.ToSchema(cs, append(path, "metastore_assignment")...) + cs.SetRequired(append(path, "metastore_id")...) + cs.SetRequired(append(path, "workspace_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AccountsUpdateMetastoreAssignment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -628,6 +683,14 @@ func (newState *AccountsUpdateStorageCredential) SyncEffectiveFieldsDuringCreate func (newState *AccountsUpdateStorageCredential) SyncEffectiveFieldsDuringRead(existingState AccountsUpdateStorageCredential) { } +func (c AccountsUpdateStorageCredential) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + UpdateStorageCredential{}.ToSchema(cs, append(path, "credential_info")...) + cs.SetRequired(append(path, "metastore_id")...) + cs.SetRequired(append(path, "storage_credential_name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AccountsUpdateStorageCredential. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -710,6 +773,12 @@ func (newState *ArtifactAllowlistInfo) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *ArtifactAllowlistInfo) SyncEffectiveFieldsDuringRead(existingState ArtifactAllowlistInfo) { } +func (c ArtifactAllowlistInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ArtifactMatcher{}.ToSchema(cs, append(path, "artifact_matchers")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ArtifactAllowlistInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -790,6 +859,13 @@ func (newState *ArtifactMatcher) SyncEffectiveFieldsDuringCreateOrUpdate(plan Ar func (newState *ArtifactMatcher) SyncEffectiveFieldsDuringRead(existingState ArtifactMatcher) { } +func (c ArtifactMatcher) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "artifact")...) + cs.SetRequired(append(path, "match_type")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ArtifactMatcher. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -826,12 +902,6 @@ func (o ArtifactMatcher) Type(ctx context.Context) attr.Type { type AssignResponse struct { } -func (newState *AssignResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan AssignResponse) { -} - -func (newState *AssignResponse) SyncEffectiveFieldsDuringRead(existingState AssignResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in AssignResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -880,6 +950,11 @@ func (newState *AwsCredentials) SyncEffectiveFieldsDuringCreateOrUpdate(plan Aws func (newState *AwsCredentials) SyncEffectiveFieldsDuringRead(existingState AwsCredentials) { } +func (c AwsCredentials) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AwsCredentials. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -936,6 +1011,13 @@ func (newState *AwsIamRole) SyncEffectiveFieldsDuringCreateOrUpdate(plan AwsIamR func (newState *AwsIamRole) SyncEffectiveFieldsDuringRead(existingState AwsIamRole) { } +func (c AwsIamRole) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "external_id")...) + cs.SetComputed(append(path, "unity_catalog_iam_arn")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AwsIamRole. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -982,6 +1064,12 @@ func (newState *AwsIamRoleRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *AwsIamRoleRequest) SyncEffectiveFieldsDuringRead(existingState AwsIamRoleRequest) { } +func (c AwsIamRoleRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "role_arn")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AwsIamRoleRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1030,6 +1118,12 @@ func (newState *AwsIamRoleResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *AwsIamRoleResponse) SyncEffectiveFieldsDuringRead(existingState AwsIamRoleResponse) { } +func (c AwsIamRoleResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "role_arn")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AwsIamRoleResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1080,6 +1174,11 @@ func (newState *AzureActiveDirectoryToken) SyncEffectiveFieldsDuringCreateOrUpda func (newState *AzureActiveDirectoryToken) SyncEffectiveFieldsDuringRead(existingState AzureActiveDirectoryToken) { } +func (c AzureActiveDirectoryToken) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AzureActiveDirectoryToken. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1137,6 +1236,12 @@ func (newState *AzureManagedIdentity) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *AzureManagedIdentity) SyncEffectiveFieldsDuringRead(existingState AzureManagedIdentity) { } +func (c AzureManagedIdentity) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "access_connector_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AzureManagedIdentity. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1192,6 +1297,12 @@ func (newState *AzureManagedIdentityRequest) SyncEffectiveFieldsDuringCreateOrUp func (newState *AzureManagedIdentityRequest) SyncEffectiveFieldsDuringRead(existingState AzureManagedIdentityRequest) { } +func (c AzureManagedIdentityRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "access_connector_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AzureManagedIdentityRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1247,6 +1358,12 @@ func (newState *AzureManagedIdentityResponse) SyncEffectiveFieldsDuringCreateOrU func (newState *AzureManagedIdentityResponse) SyncEffectiveFieldsDuringRead(existingState AzureManagedIdentityResponse) { } +func (c AzureManagedIdentityResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "access_connector_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AzureManagedIdentityResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1301,6 +1418,14 @@ func (newState *AzureServicePrincipal) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *AzureServicePrincipal) SyncEffectiveFieldsDuringRead(existingState AzureServicePrincipal) { } +func (c AzureServicePrincipal) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "application_id")...) + cs.SetRequired(append(path, "client_secret")...) + cs.SetRequired(append(path, "directory_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AzureServicePrincipal. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1349,6 +1474,11 @@ func (newState *AzureUserDelegationSas) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *AzureUserDelegationSas) SyncEffectiveFieldsDuringRead(existingState AzureUserDelegationSas) { } +func (c AzureUserDelegationSas) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AzureUserDelegationSas. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1388,12 +1518,6 @@ type CancelRefreshRequest struct { TableName types.String `tfsdk:"-"` } -func (newState *CancelRefreshRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CancelRefreshRequest) { -} - -func (newState *CancelRefreshRequest) SyncEffectiveFieldsDuringRead(existingState CancelRefreshRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelRefreshRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1430,12 +1554,6 @@ func (o CancelRefreshRequest) Type(ctx context.Context) attr.Type { type CancelRefreshResponse struct { } -func (newState *CancelRefreshResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan CancelRefreshResponse) { -} - -func (newState *CancelRefreshResponse) SyncEffectiveFieldsDuringRead(existingState CancelRefreshResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelRefreshResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1527,6 +1645,13 @@ func (newState *CatalogInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Catalo func (newState *CatalogInfo) SyncEffectiveFieldsDuringRead(existingState CatalogInfo) { } +func (c CatalogInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + EffectivePredictiveOptimizationFlag{}.ToSchema(cs, append(path, "effective_predictive_optimization_flag")...) + ProvisioningInfo{}.ToSchema(cs, append(path, "provisioning_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CatalogInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1736,6 +1861,14 @@ func (newState *CloudflareApiToken) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *CloudflareApiToken) SyncEffectiveFieldsDuringRead(existingState CloudflareApiToken) { } +func (c CloudflareApiToken) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "access_key_id")...) + cs.SetRequired(append(path, "account_id")...) + cs.SetRequired(append(path, "secret_access_key")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CloudflareApiToken. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1804,6 +1937,12 @@ func (newState *ColumnInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan ColumnI func (newState *ColumnInfo) SyncEffectiveFieldsDuringRead(existingState ColumnInfo) { } +func (c ColumnInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ColumnMask{}.ToSchema(cs, append(path, "mask")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ColumnInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1903,6 +2042,11 @@ func (newState *ColumnMask) SyncEffectiveFieldsDuringCreateOrUpdate(plan ColumnM func (newState *ColumnMask) SyncEffectiveFieldsDuringRead(existingState ColumnMask) { } +func (c ColumnMask) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ColumnMask. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2014,6 +2158,12 @@ func (newState *ConnectionInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Con func (newState *ConnectionInfo) SyncEffectiveFieldsDuringRead(existingState ConnectionInfo) { } +func (c ConnectionInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ProvisioningInfo{}.ToSchema(cs, append(path, "provisioning_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ConnectionInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2189,6 +2339,12 @@ func (newState *ContinuousUpdateStatus) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *ContinuousUpdateStatus) SyncEffectiveFieldsDuringRead(existingState ContinuousUpdateStatus) { } +func (c ContinuousUpdateStatus) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PipelineProgress{}.ToSchema(cs, append(path, "initial_pipeline_sync_progress")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ContinuousUpdateStatus. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2282,6 +2438,12 @@ func (newState *CreateCatalog) SyncEffectiveFieldsDuringCreateOrUpdate(plan Crea func (newState *CreateCatalog) SyncEffectiveFieldsDuringRead(existingState CreateCatalog) { } +func (c CreateCatalog) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateCatalog. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2408,6 +2570,14 @@ func (newState *CreateConnection) SyncEffectiveFieldsDuringCreateOrUpdate(plan C func (newState *CreateConnection) SyncEffectiveFieldsDuringRead(existingState CreateConnection) { } +func (c CreateConnection) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "connection_type")...) + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "options")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateConnection. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2540,6 +2710,16 @@ func (newState *CreateCredentialRequest) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *CreateCredentialRequest) SyncEffectiveFieldsDuringRead(existingState CreateCredentialRequest) { } +func (c CreateCredentialRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AwsIamRole{}.ToSchema(cs, append(path, "aws_iam_role")...) + AzureManagedIdentity{}.ToSchema(cs, append(path, "azure_managed_identity")...) + AzureServicePrincipal{}.ToSchema(cs, append(path, "azure_service_principal")...) + DatabricksGcpServiceAccount{}.ToSchema(cs, append(path, "databricks_gcp_service_account")...) + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2734,6 +2914,15 @@ func (newState *CreateExternalLocation) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *CreateExternalLocation) SyncEffectiveFieldsDuringRead(existingState CreateExternalLocation) { } +func (c CreateExternalLocation) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "credential_name")...) + EncryptionDetails{}.ToSchema(cs, append(path, "encryption_details")...) + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "url")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateExternalLocation. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2866,6 +3055,28 @@ func (newState *CreateFunction) SyncEffectiveFieldsDuringCreateOrUpdate(plan Cre func (newState *CreateFunction) SyncEffectiveFieldsDuringRead(existingState CreateFunction) { } +func (c CreateFunction) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "catalog_name")...) + cs.SetRequired(append(path, "data_type")...) + cs.SetRequired(append(path, "full_data_type")...) + cs.SetRequired(append(path, "input_params")...) + FunctionParameterInfos{}.ToSchema(cs, append(path, "input_params")...) + cs.SetRequired(append(path, "is_deterministic")...) + cs.SetRequired(append(path, "is_null_call")...) + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "parameter_style")...) + FunctionParameterInfos{}.ToSchema(cs, append(path, "return_params")...) + cs.SetRequired(append(path, "routine_body")...) + cs.SetRequired(append(path, "routine_definition")...) + DependencyList{}.ToSchema(cs, append(path, "routine_dependencies")...) + cs.SetRequired(append(path, "schema_name")...) + cs.SetRequired(append(path, "security_type")...) + cs.SetRequired(append(path, "specific_name")...) + cs.SetRequired(append(path, "sql_data_access")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateFunction. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3036,6 +3247,13 @@ func (newState *CreateFunctionRequest) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *CreateFunctionRequest) SyncEffectiveFieldsDuringRead(existingState CreateFunctionRequest) { } +func (c CreateFunctionRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "function_info")...) + CreateFunction{}.ToSchema(cs, append(path, "function_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateFunctionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3115,6 +3333,12 @@ func (newState *CreateMetastore) SyncEffectiveFieldsDuringCreateOrUpdate(plan Cr func (newState *CreateMetastore) SyncEffectiveFieldsDuringRead(existingState CreateMetastore) { } +func (c CreateMetastore) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateMetastore. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3167,6 +3391,14 @@ func (newState *CreateMetastoreAssignment) SyncEffectiveFieldsDuringCreateOrUpda func (newState *CreateMetastoreAssignment) SyncEffectiveFieldsDuringRead(existingState CreateMetastoreAssignment) { } +func (c CreateMetastoreAssignment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "default_catalog_name")...) + cs.SetRequired(append(path, "metastore_id")...) + cs.SetRequired(append(path, "workspace_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateMetastoreAssignment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3249,6 +3481,21 @@ func (newState *CreateMonitor) SyncEffectiveFieldsDuringCreateOrUpdate(plan Crea func (newState *CreateMonitor) SyncEffectiveFieldsDuringRead(existingState CreateMonitor) { } +func (c CreateMonitor) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "assets_dir")...) + MonitorMetric{}.ToSchema(cs, append(path, "custom_metrics")...) + MonitorDataClassificationConfig{}.ToSchema(cs, append(path, "data_classification_config")...) + MonitorInferenceLog{}.ToSchema(cs, append(path, "inference_log")...) + MonitorNotifications{}.ToSchema(cs, append(path, "notifications")...) + cs.SetRequired(append(path, "output_schema_name")...) + MonitorCronSchedule{}.ToSchema(cs, append(path, "schedule")...) + MonitorSnapshot{}.ToSchema(cs, append(path, "snapshot")...) + cs.SetRequired(append(path, "table_name")...) + MonitorTimeSeries{}.ToSchema(cs, append(path, "time_series")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateMonitor. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3545,12 +3792,6 @@ type CreateOnlineTableRequest struct { Table types.Object `tfsdk:"table" tf:"optional,object"` } -func (newState *CreateOnlineTableRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateOnlineTableRequest) { -} - -func (newState *CreateOnlineTableRequest) SyncEffectiveFieldsDuringRead(existingState CreateOnlineTableRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateOnlineTableRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3632,6 +3873,14 @@ func (newState *CreateRegisteredModelRequest) SyncEffectiveFieldsDuringCreateOrU func (newState *CreateRegisteredModelRequest) SyncEffectiveFieldsDuringRead(existingState CreateRegisteredModelRequest) { } +func (c CreateRegisteredModelRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "catalog_name")...) + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "schema_name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateRegisteredModelRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3674,12 +3923,6 @@ func (o CreateRegisteredModelRequest) Type(ctx context.Context) attr.Type { type CreateResponse struct { } -func (newState *CreateResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateResponse) { -} - -func (newState *CreateResponse) SyncEffectiveFieldsDuringRead(existingState CreateResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3726,6 +3969,13 @@ func (newState *CreateSchema) SyncEffectiveFieldsDuringCreateOrUpdate(plan Creat func (newState *CreateSchema) SyncEffectiveFieldsDuringRead(existingState CreateSchema) { } +func (c CreateSchema) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "catalog_name")...) + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateSchema. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3823,6 +4073,17 @@ func (newState *CreateStorageCredential) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *CreateStorageCredential) SyncEffectiveFieldsDuringRead(existingState CreateStorageCredential) { } +func (c CreateStorageCredential) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AwsIamRoleRequest{}.ToSchema(cs, append(path, "aws_iam_role")...) + AzureManagedIdentityRequest{}.ToSchema(cs, append(path, "azure_managed_identity")...) + AzureServicePrincipal{}.ToSchema(cs, append(path, "azure_service_principal")...) + CloudflareApiToken{}.ToSchema(cs, append(path, "cloudflare_api_token")...) + DatabricksGcpServiceAccountRequest{}.ToSchema(cs, append(path, "databricks_gcp_service_account")...) + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateStorageCredential. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4031,6 +4292,14 @@ func (newState *CreateTableConstraint) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *CreateTableConstraint) SyncEffectiveFieldsDuringRead(existingState CreateTableConstraint) { } +func (c CreateTableConstraint) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "constraint")...) + TableConstraint{}.ToSchema(cs, append(path, "constraint")...) + cs.SetRequired(append(path, "full_name_arg")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateTableConstraint. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4115,6 +4384,15 @@ func (newState *CreateVolumeRequestContent) SyncEffectiveFieldsDuringCreateOrUpd func (newState *CreateVolumeRequestContent) SyncEffectiveFieldsDuringRead(existingState CreateVolumeRequestContent) { } +func (c CreateVolumeRequestContent) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "catalog_name")...) + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "schema_name")...) + cs.SetRequired(append(path, "volume_type")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateVolumeRequestContent. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4207,6 +4485,15 @@ func (newState *CredentialInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Cre func (newState *CredentialInfo) SyncEffectiveFieldsDuringRead(existingState CredentialInfo) { } +func (c CredentialInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AwsIamRole{}.ToSchema(cs, append(path, "aws_iam_role")...) + AzureManagedIdentity{}.ToSchema(cs, append(path, "azure_managed_identity")...) + AzureServicePrincipal{}.ToSchema(cs, append(path, "azure_service_principal")...) + DatabricksGcpServiceAccount{}.ToSchema(cs, append(path, "databricks_gcp_service_account")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CredentialInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4402,6 +4689,11 @@ func (newState *CredentialValidationResult) SyncEffectiveFieldsDuringCreateOrUpd func (newState *CredentialValidationResult) SyncEffectiveFieldsDuringRead(existingState CredentialValidationResult) { } +func (c CredentialValidationResult) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CredentialValidationResult. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4447,6 +4739,11 @@ func (newState *CurrentWorkspaceBindings) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *CurrentWorkspaceBindings) SyncEffectiveFieldsDuringRead(existingState CurrentWorkspaceBindings) { } +func (c CurrentWorkspaceBindings) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CurrentWorkspaceBindings. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4528,6 +4825,11 @@ func (newState *DatabricksGcpServiceAccount) SyncEffectiveFieldsDuringCreateOrUp func (newState *DatabricksGcpServiceAccount) SyncEffectiveFieldsDuringRead(existingState DatabricksGcpServiceAccount) { } +func (c DatabricksGcpServiceAccount) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DatabricksGcpServiceAccount. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4572,6 +4874,11 @@ func (newState *DatabricksGcpServiceAccountRequest) SyncEffectiveFieldsDuringCre func (newState *DatabricksGcpServiceAccountRequest) SyncEffectiveFieldsDuringRead(existingState DatabricksGcpServiceAccountRequest) { } +func (c DatabricksGcpServiceAccountRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DatabricksGcpServiceAccountRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4613,6 +4920,11 @@ func (newState *DatabricksGcpServiceAccountResponse) SyncEffectiveFieldsDuringCr func (newState *DatabricksGcpServiceAccountResponse) SyncEffectiveFieldsDuringRead(existingState DatabricksGcpServiceAccountResponse) { } +func (c DatabricksGcpServiceAccountResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DatabricksGcpServiceAccountResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4654,12 +4966,6 @@ type DeleteAccountMetastoreAssignmentRequest struct { WorkspaceId types.Int64 `tfsdk:"-"` } -func (newState *DeleteAccountMetastoreAssignmentRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAccountMetastoreAssignmentRequest) { -} - -func (newState *DeleteAccountMetastoreAssignmentRequest) SyncEffectiveFieldsDuringRead(existingState DeleteAccountMetastoreAssignmentRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAccountMetastoreAssignmentRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4701,12 +5007,6 @@ type DeleteAccountMetastoreRequest struct { MetastoreId types.String `tfsdk:"-"` } -func (newState *DeleteAccountMetastoreRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAccountMetastoreRequest) { -} - -func (newState *DeleteAccountMetastoreRequest) SyncEffectiveFieldsDuringRead(existingState DeleteAccountMetastoreRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAccountMetastoreRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4751,12 +5051,6 @@ type DeleteAccountStorageCredentialRequest struct { StorageCredentialName types.String `tfsdk:"-"` } -func (newState *DeleteAccountStorageCredentialRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAccountStorageCredentialRequest) { -} - -func (newState *DeleteAccountStorageCredentialRequest) SyncEffectiveFieldsDuringRead(existingState DeleteAccountStorageCredentialRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAccountStorageCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4800,12 +5094,6 @@ type DeleteAliasRequest struct { FullName types.String `tfsdk:"-"` } -func (newState *DeleteAliasRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAliasRequest) { -} - -func (newState *DeleteAliasRequest) SyncEffectiveFieldsDuringRead(existingState DeleteAliasRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAliasRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4842,12 +5130,6 @@ func (o DeleteAliasRequest) Type(ctx context.Context) attr.Type { type DeleteAliasResponse struct { } -func (newState *DeleteAliasResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAliasResponse) { -} - -func (newState *DeleteAliasResponse) SyncEffectiveFieldsDuringRead(existingState DeleteAliasResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAliasResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4883,12 +5165,6 @@ type DeleteCatalogRequest struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteCatalogRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteCatalogRequest) { -} - -func (newState *DeleteCatalogRequest) SyncEffectiveFieldsDuringRead(existingState DeleteCatalogRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCatalogRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4928,12 +5204,6 @@ type DeleteConnectionRequest struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteConnectionRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteConnectionRequest) { -} - -func (newState *DeleteConnectionRequest) SyncEffectiveFieldsDuringRead(existingState DeleteConnectionRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteConnectionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4975,12 +5245,6 @@ type DeleteCredentialRequest struct { NameArg types.String `tfsdk:"-"` } -func (newState *DeleteCredentialRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteCredentialRequest) { -} - -func (newState *DeleteCredentialRequest) SyncEffectiveFieldsDuringRead(existingState DeleteCredentialRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5023,6 +5287,11 @@ func (newState *DeleteCredentialResponse) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *DeleteCredentialResponse) SyncEffectiveFieldsDuringRead(existingState DeleteCredentialResponse) { } +func (c DeleteCredentialResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCredentialResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5058,12 +5327,6 @@ type DeleteExternalLocationRequest struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteExternalLocationRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteExternalLocationRequest) { -} - -func (newState *DeleteExternalLocationRequest) SyncEffectiveFieldsDuringRead(existingState DeleteExternalLocationRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteExternalLocationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5106,12 +5369,6 @@ type DeleteFunctionRequest struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteFunctionRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteFunctionRequest) { -} - -func (newState *DeleteFunctionRequest) SyncEffectiveFieldsDuringRead(existingState DeleteFunctionRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteFunctionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5153,12 +5410,6 @@ type DeleteMetastoreRequest struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteMetastoreRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteMetastoreRequest) { -} - -func (newState *DeleteMetastoreRequest) SyncEffectiveFieldsDuringRead(existingState DeleteMetastoreRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteMetastoreRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5200,12 +5451,6 @@ type DeleteModelVersionRequest struct { Version types.Int64 `tfsdk:"-"` } -func (newState *DeleteModelVersionRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteModelVersionRequest) { -} - -func (newState *DeleteModelVersionRequest) SyncEffectiveFieldsDuringRead(existingState DeleteModelVersionRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteModelVersionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5245,12 +5490,6 @@ type DeleteOnlineTableRequest struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteOnlineTableRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteOnlineTableRequest) { -} - -func (newState *DeleteOnlineTableRequest) SyncEffectiveFieldsDuringRead(existingState DeleteOnlineTableRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteOnlineTableRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5288,12 +5527,6 @@ type DeleteQualityMonitorRequest struct { TableName types.String `tfsdk:"-"` } -func (newState *DeleteQualityMonitorRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteQualityMonitorRequest) { -} - -func (newState *DeleteQualityMonitorRequest) SyncEffectiveFieldsDuringRead(existingState DeleteQualityMonitorRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteQualityMonitorRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5331,12 +5564,6 @@ type DeleteRegisteredModelRequest struct { FullName types.String `tfsdk:"-"` } -func (newState *DeleteRegisteredModelRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteRegisteredModelRequest) { -} - -func (newState *DeleteRegisteredModelRequest) SyncEffectiveFieldsDuringRead(existingState DeleteRegisteredModelRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteRegisteredModelRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5371,12 +5598,6 @@ func (o DeleteRegisteredModelRequest) Type(ctx context.Context) attr.Type { type DeleteResponse struct { } -func (newState *DeleteResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse) { -} - -func (newState *DeleteResponse) SyncEffectiveFieldsDuringRead(existingState DeleteResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5412,12 +5633,6 @@ type DeleteSchemaRequest struct { FullName types.String `tfsdk:"-"` } -func (newState *DeleteSchemaRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteSchemaRequest) { -} - -func (newState *DeleteSchemaRequest) SyncEffectiveFieldsDuringRead(existingState DeleteSchemaRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteSchemaRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5460,12 +5675,6 @@ type DeleteStorageCredentialRequest struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteStorageCredentialRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteStorageCredentialRequest) { -} - -func (newState *DeleteStorageCredentialRequest) SyncEffectiveFieldsDuringRead(existingState DeleteStorageCredentialRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteStorageCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5511,12 +5720,6 @@ type DeleteTableConstraintRequest struct { FullName types.String `tfsdk:"-"` } -func (newState *DeleteTableConstraintRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteTableConstraintRequest) { -} - -func (newState *DeleteTableConstraintRequest) SyncEffectiveFieldsDuringRead(existingState DeleteTableConstraintRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteTableConstraintRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5558,12 +5761,6 @@ type DeleteTableRequest struct { FullName types.String `tfsdk:"-"` } -func (newState *DeleteTableRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteTableRequest) { -} - -func (newState *DeleteTableRequest) SyncEffectiveFieldsDuringRead(existingState DeleteTableRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteTableRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5601,12 +5798,6 @@ type DeleteVolumeRequest struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteVolumeRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteVolumeRequest) { -} - -func (newState *DeleteVolumeRequest) SyncEffectiveFieldsDuringRead(existingState DeleteVolumeRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteVolumeRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5652,6 +5843,12 @@ func (newState *DeltaRuntimePropertiesKvPairs) SyncEffectiveFieldsDuringCreateOr func (newState *DeltaRuntimePropertiesKvPairs) SyncEffectiveFieldsDuringRead(existingState DeltaRuntimePropertiesKvPairs) { } +func (c DeltaRuntimePropertiesKvPairs) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "delta_runtime_properties")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeltaRuntimePropertiesKvPairs. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5728,6 +5925,13 @@ func (newState *Dependency) SyncEffectiveFieldsDuringCreateOrUpdate(plan Depende func (newState *Dependency) SyncEffectiveFieldsDuringRead(existingState Dependency) { } +func (c Dependency) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + FunctionDependency{}.ToSchema(cs, append(path, "function")...) + TableDependency{}.ToSchema(cs, append(path, "table")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Dependency. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5832,6 +6036,12 @@ func (newState *DependencyList) SyncEffectiveFieldsDuringCreateOrUpdate(plan Dep func (newState *DependencyList) SyncEffectiveFieldsDuringRead(existingState DependencyList) { } +func (c DependencyList) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Dependency{}.ToSchema(cs, append(path, "dependencies")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DependencyList. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5901,12 +6111,6 @@ type DisableRequest struct { SchemaName types.String `tfsdk:"-"` } -func (newState *DisableRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DisableRequest) { -} - -func (newState *DisableRequest) SyncEffectiveFieldsDuringRead(existingState DisableRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DisableRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5943,12 +6147,6 @@ func (o DisableRequest) Type(ctx context.Context) attr.Type { type DisableResponse struct { } -func (newState *DisableResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DisableResponse) { -} - -func (newState *DisableResponse) SyncEffectiveFieldsDuringRead(existingState DisableResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DisableResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5988,6 +6186,12 @@ func (newState *EffectivePermissionsList) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *EffectivePermissionsList) SyncEffectiveFieldsDuringRead(existingState EffectivePermissionsList) { } +func (c EffectivePermissionsList) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + EffectivePrivilegeAssignment{}.ToSchema(cs, append(path, "privilege_assignments")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EffectivePermissionsList. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6067,6 +6271,12 @@ func (newState *EffectivePredictiveOptimizationFlag) SyncEffectiveFieldsDuringCr func (newState *EffectivePredictiveOptimizationFlag) SyncEffectiveFieldsDuringRead(existingState EffectivePredictiveOptimizationFlag) { } +func (c EffectivePredictiveOptimizationFlag) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "value")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EffectivePredictiveOptimizationFlag. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6121,6 +6331,11 @@ func (newState *EffectivePrivilege) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *EffectivePrivilege) SyncEffectiveFieldsDuringRead(existingState EffectivePrivilege) { } +func (c EffectivePrivilege) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EffectivePrivilege. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6170,6 +6385,12 @@ func (newState *EffectivePrivilegeAssignment) SyncEffectiveFieldsDuringCreateOrU func (newState *EffectivePrivilegeAssignment) SyncEffectiveFieldsDuringRead(existingState EffectivePrivilegeAssignment) { } +func (c EffectivePrivilegeAssignment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + EffectivePrivilege{}.ToSchema(cs, append(path, "privileges")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EffectivePrivilegeAssignment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6241,12 +6462,6 @@ type EnableRequest struct { SchemaName types.String `tfsdk:"-"` } -func (newState *EnableRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan EnableRequest) { -} - -func (newState *EnableRequest) SyncEffectiveFieldsDuringRead(existingState EnableRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in EnableRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6283,12 +6498,6 @@ func (o EnableRequest) Type(ctx context.Context) attr.Type { type EnableResponse struct { } -func (newState *EnableResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan EnableResponse) { -} - -func (newState *EnableResponse) SyncEffectiveFieldsDuringRead(existingState EnableResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in EnableResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6328,6 +6537,12 @@ func (newState *EncryptionDetails) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *EncryptionDetails) SyncEffectiveFieldsDuringRead(existingState EncryptionDetails) { } +func (c EncryptionDetails) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SseEncryptionDetails{}.ToSchema(cs, append(path, "sse_encryption_details")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EncryptionDetails. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6395,12 +6610,6 @@ type ExistsRequest struct { FullName types.String `tfsdk:"-"` } -func (newState *ExistsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ExistsRequest) { -} - -func (newState *ExistsRequest) SyncEffectiveFieldsDuringRead(existingState ExistsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExistsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6480,6 +6689,12 @@ func (newState *ExternalLocationInfo) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *ExternalLocationInfo) SyncEffectiveFieldsDuringRead(existingState ExternalLocationInfo) { } +func (c ExternalLocationInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + EncryptionDetails{}.ToSchema(cs, append(path, "encryption_details")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExternalLocationInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6593,6 +6808,11 @@ func (newState *FailedStatus) SyncEffectiveFieldsDuringCreateOrUpdate(plan Faile func (newState *FailedStatus) SyncEffectiveFieldsDuringRead(existingState FailedStatus) { } +func (c FailedStatus) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in FailedStatus. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6643,6 +6863,15 @@ func (newState *ForeignKeyConstraint) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *ForeignKeyConstraint) SyncEffectiveFieldsDuringRead(existingState ForeignKeyConstraint) { } +func (c ForeignKeyConstraint) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "child_columns")...) + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "parent_columns")...) + cs.SetRequired(append(path, "parent_table")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ForeignKeyConstraint. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6752,6 +6981,12 @@ func (newState *FunctionDependency) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *FunctionDependency) SyncEffectiveFieldsDuringRead(existingState FunctionDependency) { } +func (c FunctionDependency) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "function_full_name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in FunctionDependency. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6859,6 +7094,14 @@ func (newState *FunctionInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Funct func (newState *FunctionInfo) SyncEffectiveFieldsDuringRead(existingState FunctionInfo) { } +func (c FunctionInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + FunctionParameterInfos{}.ToSchema(cs, append(path, "input_params")...) + FunctionParameterInfos{}.ToSchema(cs, append(path, "return_params")...) + DependencyList{}.ToSchema(cs, append(path, "routine_dependencies")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in FunctionInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7069,6 +7312,15 @@ func (newState *FunctionParameterInfo) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *FunctionParameterInfo) SyncEffectiveFieldsDuringRead(existingState FunctionParameterInfo) { } +func (c FunctionParameterInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "position")...) + cs.SetRequired(append(path, "type_name")...) + cs.SetRequired(append(path, "type_text")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in FunctionParameterInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7134,6 +7386,12 @@ func (newState *FunctionParameterInfos) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *FunctionParameterInfos) SyncEffectiveFieldsDuringRead(existingState FunctionParameterInfos) { } +func (c FunctionParameterInfos) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + FunctionParameterInfo{}.ToSchema(cs, append(path, "parameters")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in FunctionParameterInfos. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7207,6 +7465,11 @@ func (newState *GcpOauthToken) SyncEffectiveFieldsDuringCreateOrUpdate(plan GcpO func (newState *GcpOauthToken) SyncEffectiveFieldsDuringRead(existingState GcpOauthToken) { } +func (c GcpOauthToken) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GcpOauthToken. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7252,6 +7515,11 @@ func (newState *GenerateTemporaryServiceCredentialAzureOptions) SyncEffectiveFie func (newState *GenerateTemporaryServiceCredentialAzureOptions) SyncEffectiveFieldsDuringRead(existingState GenerateTemporaryServiceCredentialAzureOptions) { } +func (c GenerateTemporaryServiceCredentialAzureOptions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GenerateTemporaryServiceCredentialAzureOptions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7327,6 +7595,11 @@ func (newState *GenerateTemporaryServiceCredentialGcpOptions) SyncEffectiveField func (newState *GenerateTemporaryServiceCredentialGcpOptions) SyncEffectiveFieldsDuringRead(existingState GenerateTemporaryServiceCredentialGcpOptions) { } +func (c GenerateTemporaryServiceCredentialGcpOptions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GenerateTemporaryServiceCredentialGcpOptions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7404,6 +7677,14 @@ func (newState *GenerateTemporaryServiceCredentialRequest) SyncEffectiveFieldsDu func (newState *GenerateTemporaryServiceCredentialRequest) SyncEffectiveFieldsDuringRead(existingState GenerateTemporaryServiceCredentialRequest) { } +func (c GenerateTemporaryServiceCredentialRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + GenerateTemporaryServiceCredentialAzureOptions{}.ToSchema(cs, append(path, "azure_options")...) + cs.SetRequired(append(path, "credential_name")...) + GenerateTemporaryServiceCredentialGcpOptions{}.ToSchema(cs, append(path, "gcp_options")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GenerateTemporaryServiceCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7513,6 +7794,11 @@ func (newState *GenerateTemporaryTableCredentialRequest) SyncEffectiveFieldsDuri func (newState *GenerateTemporaryTableCredentialRequest) SyncEffectiveFieldsDuringRead(existingState GenerateTemporaryTableCredentialRequest) { } +func (c GenerateTemporaryTableCredentialRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GenerateTemporaryTableCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7576,6 +7862,16 @@ func (newState *GenerateTemporaryTableCredentialResponse) SyncEffectiveFieldsDur func (newState *GenerateTemporaryTableCredentialResponse) SyncEffectiveFieldsDuringRead(existingState GenerateTemporaryTableCredentialResponse) { } +func (c GenerateTemporaryTableCredentialResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AwsCredentials{}.ToSchema(cs, append(path, "aws_temp_credentials")...) + AzureActiveDirectoryToken{}.ToSchema(cs, append(path, "azure_aad")...) + AzureUserDelegationSas{}.ToSchema(cs, append(path, "azure_user_delegation_sas")...) + GcpOauthToken{}.ToSchema(cs, append(path, "gcp_oauth_token")...) + R2Credentials{}.ToSchema(cs, append(path, "r2_temp_credentials")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GenerateTemporaryTableCredentialResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7771,12 +8067,6 @@ type GetAccountMetastoreAssignmentRequest struct { WorkspaceId types.Int64 `tfsdk:"-"` } -func (newState *GetAccountMetastoreAssignmentRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAccountMetastoreAssignmentRequest) { -} - -func (newState *GetAccountMetastoreAssignmentRequest) SyncEffectiveFieldsDuringRead(existingState GetAccountMetastoreAssignmentRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAccountMetastoreAssignmentRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7814,12 +8104,6 @@ type GetAccountMetastoreRequest struct { MetastoreId types.String `tfsdk:"-"` } -func (newState *GetAccountMetastoreRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAccountMetastoreRequest) { -} - -func (newState *GetAccountMetastoreRequest) SyncEffectiveFieldsDuringRead(existingState GetAccountMetastoreRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAccountMetastoreRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7859,12 +8143,6 @@ type GetAccountStorageCredentialRequest struct { StorageCredentialName types.String `tfsdk:"-"` } -func (newState *GetAccountStorageCredentialRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAccountStorageCredentialRequest) { -} - -func (newState *GetAccountStorageCredentialRequest) SyncEffectiveFieldsDuringRead(existingState GetAccountStorageCredentialRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAccountStorageCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7904,12 +8182,6 @@ type GetArtifactAllowlistRequest struct { ArtifactType types.String `tfsdk:"-"` } -func (newState *GetArtifactAllowlistRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetArtifactAllowlistRequest) { -} - -func (newState *GetArtifactAllowlistRequest) SyncEffectiveFieldsDuringRead(existingState GetArtifactAllowlistRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetArtifactAllowlistRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7958,12 +8230,6 @@ type GetBindingsRequest struct { SecurableType types.String `tfsdk:"-"` } -func (newState *GetBindingsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetBindingsRequest) { -} - -func (newState *GetBindingsRequest) SyncEffectiveFieldsDuringRead(existingState GetBindingsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetBindingsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8012,12 +8278,6 @@ type GetByAliasRequest struct { IncludeAliases types.Bool `tfsdk:"-"` } -func (newState *GetByAliasRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetByAliasRequest) { -} - -func (newState *GetByAliasRequest) SyncEffectiveFieldsDuringRead(existingState GetByAliasRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetByAliasRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8062,12 +8322,6 @@ type GetCatalogRequest struct { Name types.String `tfsdk:"-"` } -func (newState *GetCatalogRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetCatalogRequest) { -} - -func (newState *GetCatalogRequest) SyncEffectiveFieldsDuringRead(existingState GetCatalogRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetCatalogRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8107,12 +8361,6 @@ type GetConnectionRequest struct { Name types.String `tfsdk:"-"` } -func (newState *GetConnectionRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetConnectionRequest) { -} - -func (newState *GetConnectionRequest) SyncEffectiveFieldsDuringRead(existingState GetConnectionRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetConnectionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8150,12 +8398,6 @@ type GetCredentialRequest struct { NameArg types.String `tfsdk:"-"` } -func (newState *GetCredentialRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetCredentialRequest) { -} - -func (newState *GetCredentialRequest) SyncEffectiveFieldsDuringRead(existingState GetCredentialRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8198,12 +8440,6 @@ type GetEffectiveRequest struct { SecurableType types.String `tfsdk:"-"` } -func (newState *GetEffectiveRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetEffectiveRequest) { -} - -func (newState *GetEffectiveRequest) SyncEffectiveFieldsDuringRead(existingState GetEffectiveRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetEffectiveRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8248,12 +8484,6 @@ type GetExternalLocationRequest struct { Name types.String `tfsdk:"-"` } -func (newState *GetExternalLocationRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetExternalLocationRequest) { -} - -func (newState *GetExternalLocationRequest) SyncEffectiveFieldsDuringRead(existingState GetExternalLocationRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetExternalLocationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8297,12 +8527,6 @@ type GetFunctionRequest struct { Name types.String `tfsdk:"-"` } -func (newState *GetFunctionRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetFunctionRequest) { -} - -func (newState *GetFunctionRequest) SyncEffectiveFieldsDuringRead(existingState GetFunctionRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetFunctionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8347,12 +8571,6 @@ type GetGrantRequest struct { SecurableType types.String `tfsdk:"-"` } -func (newState *GetGrantRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetGrantRequest) { -} - -func (newState *GetGrantRequest) SyncEffectiveFieldsDuringRead(existingState GetGrantRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetGrantRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8394,12 +8612,6 @@ type GetMetastoreRequest struct { Id types.String `tfsdk:"-"` } -func (newState *GetMetastoreRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetMetastoreRequest) { -} - -func (newState *GetMetastoreRequest) SyncEffectiveFieldsDuringRead(existingState GetMetastoreRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetMetastoreRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8482,6 +8694,11 @@ func (newState *GetMetastoreSummaryResponse) SyncEffectiveFieldsDuringCreateOrUp func (newState *GetMetastoreSummaryResponse) SyncEffectiveFieldsDuringRead(existingState GetMetastoreSummaryResponse) { } +func (c GetMetastoreSummaryResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetMetastoreSummaryResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8563,12 +8780,6 @@ type GetModelVersionRequest struct { Version types.Int64 `tfsdk:"-"` } -func (newState *GetModelVersionRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetModelVersionRequest) { -} - -func (newState *GetModelVersionRequest) SyncEffectiveFieldsDuringRead(existingState GetModelVersionRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetModelVersionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8612,12 +8823,6 @@ type GetOnlineTableRequest struct { Name types.String `tfsdk:"-"` } -func (newState *GetOnlineTableRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetOnlineTableRequest) { -} - -func (newState *GetOnlineTableRequest) SyncEffectiveFieldsDuringRead(existingState GetOnlineTableRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetOnlineTableRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8655,12 +8860,6 @@ type GetQualityMonitorRequest struct { TableName types.String `tfsdk:"-"` } -func (newState *GetQualityMonitorRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetQualityMonitorRequest) { -} - -func (newState *GetQualityMonitorRequest) SyncEffectiveFieldsDuringRead(existingState GetQualityMonitorRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetQualityMonitorRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8704,12 +8903,6 @@ type GetQuotaRequest struct { QuotaName types.String `tfsdk:"-"` } -func (newState *GetQuotaRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetQuotaRequest) { -} - -func (newState *GetQuotaRequest) SyncEffectiveFieldsDuringRead(existingState GetQuotaRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetQuotaRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8756,6 +8949,12 @@ func (newState *GetQuotaResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan G func (newState *GetQuotaResponse) SyncEffectiveFieldsDuringRead(existingState GetQuotaResponse) { } +func (c GetQuotaResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + QuotaInfo{}.ToSchema(cs, append(path, "quota_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetQuotaResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8825,12 +9024,6 @@ type GetRefreshRequest struct { TableName types.String `tfsdk:"-"` } -func (newState *GetRefreshRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRefreshRequest) { -} - -func (newState *GetRefreshRequest) SyncEffectiveFieldsDuringRead(existingState GetRefreshRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRefreshRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8875,12 +9068,6 @@ type GetRegisteredModelRequest struct { IncludeBrowse types.Bool `tfsdk:"-"` } -func (newState *GetRegisteredModelRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRegisteredModelRequest) { -} - -func (newState *GetRegisteredModelRequest) SyncEffectiveFieldsDuringRead(existingState GetRegisteredModelRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRegisteredModelRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8925,12 +9112,6 @@ type GetSchemaRequest struct { IncludeBrowse types.Bool `tfsdk:"-"` } -func (newState *GetSchemaRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetSchemaRequest) { -} - -func (newState *GetSchemaRequest) SyncEffectiveFieldsDuringRead(existingState GetSchemaRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetSchemaRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8970,12 +9151,6 @@ type GetStorageCredentialRequest struct { Name types.String `tfsdk:"-"` } -func (newState *GetStorageCredentialRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetStorageCredentialRequest) { -} - -func (newState *GetStorageCredentialRequest) SyncEffectiveFieldsDuringRead(existingState GetStorageCredentialRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetStorageCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9020,12 +9195,6 @@ type GetTableRequest struct { IncludeManifestCapabilities types.Bool `tfsdk:"-"` } -func (newState *GetTableRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetTableRequest) { -} - -func (newState *GetTableRequest) SyncEffectiveFieldsDuringRead(existingState GetTableRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetTableRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9069,12 +9238,6 @@ type GetWorkspaceBindingRequest struct { Name types.String `tfsdk:"-"` } -func (newState *GetWorkspaceBindingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWorkspaceBindingRequest) { -} - -func (newState *GetWorkspaceBindingRequest) SyncEffectiveFieldsDuringRead(existingState GetWorkspaceBindingRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWorkspaceBindingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9112,12 +9275,6 @@ type ListAccountMetastoreAssignmentsRequest struct { MetastoreId types.String `tfsdk:"-"` } -func (newState *ListAccountMetastoreAssignmentsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAccountMetastoreAssignmentsRequest) { -} - -func (newState *ListAccountMetastoreAssignmentsRequest) SyncEffectiveFieldsDuringRead(existingState ListAccountMetastoreAssignmentsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAccountMetastoreAssignmentsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9160,6 +9317,11 @@ func (newState *ListAccountMetastoreAssignmentsResponse) SyncEffectiveFieldsDuri func (newState *ListAccountMetastoreAssignmentsResponse) SyncEffectiveFieldsDuringRead(existingState ListAccountMetastoreAssignmentsResponse) { } +func (c ListAccountMetastoreAssignmentsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAccountMetastoreAssignmentsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9227,12 +9389,6 @@ type ListAccountStorageCredentialsRequest struct { MetastoreId types.String `tfsdk:"-"` } -func (newState *ListAccountStorageCredentialsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAccountStorageCredentialsRequest) { -} - -func (newState *ListAccountStorageCredentialsRequest) SyncEffectiveFieldsDuringRead(existingState ListAccountStorageCredentialsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAccountStorageCredentialsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9275,6 +9431,12 @@ func (newState *ListAccountStorageCredentialsResponse) SyncEffectiveFieldsDuring func (newState *ListAccountStorageCredentialsResponse) SyncEffectiveFieldsDuringRead(existingState ListAccountStorageCredentialsResponse) { } +func (c ListAccountStorageCredentialsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + StorageCredentialInfo{}.ToSchema(cs, append(path, "storage_credentials")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAccountStorageCredentialsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9355,12 +9517,6 @@ type ListCatalogsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListCatalogsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListCatalogsRequest) { -} - -func (newState *ListCatalogsRequest) SyncEffectiveFieldsDuringRead(existingState ListCatalogsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListCatalogsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9411,6 +9567,12 @@ func (newState *ListCatalogsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *ListCatalogsResponse) SyncEffectiveFieldsDuringRead(existingState ListCatalogsResponse) { } +func (c ListCatalogsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CatalogInfo{}.ToSchema(cs, append(path, "catalogs")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListCatalogsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9487,12 +9649,6 @@ type ListConnectionsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListConnectionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListConnectionsRequest) { -} - -func (newState *ListConnectionsRequest) SyncEffectiveFieldsDuringRead(existingState ListConnectionsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListConnectionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9541,6 +9697,12 @@ func (newState *ListConnectionsResponse) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *ListConnectionsResponse) SyncEffectiveFieldsDuringRead(existingState ListConnectionsResponse) { } +func (c ListConnectionsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ConnectionInfo{}.ToSchema(cs, append(path, "connections")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListConnectionsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9618,12 +9780,6 @@ type ListCredentialsRequest struct { Purpose types.String `tfsdk:"-"` } -func (newState *ListCredentialsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListCredentialsRequest) { -} - -func (newState *ListCredentialsRequest) SyncEffectiveFieldsDuringRead(existingState ListCredentialsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListCredentialsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9673,6 +9829,12 @@ func (newState *ListCredentialsResponse) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *ListCredentialsResponse) SyncEffectiveFieldsDuringRead(existingState ListCredentialsResponse) { } +func (c ListCredentialsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CredentialInfo{}.ToSchema(cs, append(path, "credentials")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListCredentialsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9752,12 +9914,6 @@ type ListExternalLocationsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListExternalLocationsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListExternalLocationsRequest) { -} - -func (newState *ListExternalLocationsRequest) SyncEffectiveFieldsDuringRead(existingState ListExternalLocationsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListExternalLocationsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9808,6 +9964,12 @@ func (newState *ListExternalLocationsResponse) SyncEffectiveFieldsDuringCreateOr func (newState *ListExternalLocationsResponse) SyncEffectiveFieldsDuringRead(existingState ListExternalLocationsResponse) { } +func (c ListExternalLocationsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ExternalLocationInfo{}.ToSchema(cs, append(path, "external_locations")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListExternalLocationsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9891,12 +10053,6 @@ type ListFunctionsRequest struct { SchemaName types.String `tfsdk:"-"` } -func (newState *ListFunctionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListFunctionsRequest) { -} - -func (newState *ListFunctionsRequest) SyncEffectiveFieldsDuringRead(existingState ListFunctionsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListFunctionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9951,6 +10107,12 @@ func (newState *ListFunctionsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *ListFunctionsResponse) SyncEffectiveFieldsDuringRead(existingState ListFunctionsResponse) { } +func (c ListFunctionsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + FunctionInfo{}.ToSchema(cs, append(path, "functions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListFunctionsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10025,6 +10187,12 @@ func (newState *ListMetastoresResponse) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *ListMetastoresResponse) SyncEffectiveFieldsDuringRead(existingState ListMetastoresResponse) { } +func (c ListMetastoresResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + MetastoreInfo{}.ToSchema(cs, append(path, "metastores")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListMetastoresResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10106,12 +10274,6 @@ type ListModelVersionsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListModelVersionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListModelVersionsRequest) { -} - -func (newState *ListModelVersionsRequest) SyncEffectiveFieldsDuringRead(existingState ListModelVersionsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListModelVersionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10163,6 +10325,12 @@ func (newState *ListModelVersionsResponse) SyncEffectiveFieldsDuringCreateOrUpda func (newState *ListModelVersionsResponse) SyncEffectiveFieldsDuringRead(existingState ListModelVersionsResponse) { } +func (c ListModelVersionsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ModelVersionInfo{}.ToSchema(cs, append(path, "model_versions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListModelVersionsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10234,12 +10402,6 @@ type ListQuotasRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListQuotasRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListQuotasRequest) { -} - -func (newState *ListQuotasRequest) SyncEffectiveFieldsDuringRead(existingState ListQuotasRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListQuotasRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10288,6 +10450,12 @@ func (newState *ListQuotasResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ListQuotasResponse) SyncEffectiveFieldsDuringRead(existingState ListQuotasResponse) { } +func (c ListQuotasResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + QuotaInfo{}.ToSchema(cs, append(path, "quotas")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListQuotasResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10357,12 +10525,6 @@ type ListRefreshesRequest struct { TableName types.String `tfsdk:"-"` } -func (newState *ListRefreshesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListRefreshesRequest) { -} - -func (newState *ListRefreshesRequest) SyncEffectiveFieldsDuringRead(existingState ListRefreshesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListRefreshesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10427,12 +10589,6 @@ type ListRegisteredModelsRequest struct { SchemaName types.String `tfsdk:"-"` } -func (newState *ListRegisteredModelsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListRegisteredModelsRequest) { -} - -func (newState *ListRegisteredModelsRequest) SyncEffectiveFieldsDuringRead(existingState ListRegisteredModelsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListRegisteredModelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10486,6 +10642,12 @@ func (newState *ListRegisteredModelsResponse) SyncEffectiveFieldsDuringCreateOrU func (newState *ListRegisteredModelsResponse) SyncEffectiveFieldsDuringRead(existingState ListRegisteredModelsResponse) { } +func (c ListRegisteredModelsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RegisteredModelInfo{}.ToSchema(cs, append(path, "registered_models")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListRegisteredModelsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10567,12 +10729,6 @@ type ListSchemasRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListSchemasRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListSchemasRequest) { -} - -func (newState *ListSchemasRequest) SyncEffectiveFieldsDuringRead(existingState ListSchemasRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListSchemasRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10625,6 +10781,12 @@ func (newState *ListSchemasResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *ListSchemasResponse) SyncEffectiveFieldsDuringRead(existingState ListSchemasResponse) { } +func (c ListSchemasResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SchemaInfo{}.ToSchema(cs, append(path, "schemas")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListSchemasResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10701,12 +10863,6 @@ type ListStorageCredentialsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListStorageCredentialsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListStorageCredentialsRequest) { -} - -func (newState *ListStorageCredentialsRequest) SyncEffectiveFieldsDuringRead(existingState ListStorageCredentialsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListStorageCredentialsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10755,6 +10911,12 @@ func (newState *ListStorageCredentialsResponse) SyncEffectiveFieldsDuringCreateO func (newState *ListStorageCredentialsResponse) SyncEffectiveFieldsDuringRead(existingState ListStorageCredentialsResponse) { } +func (c ListStorageCredentialsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + StorageCredentialInfo{}.ToSchema(cs, append(path, "storage_credentials")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListStorageCredentialsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10842,12 +11004,6 @@ type ListSummariesRequest struct { TableNamePattern types.String `tfsdk:"-"` } -func (newState *ListSummariesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListSummariesRequest) { -} - -func (newState *ListSummariesRequest) SyncEffectiveFieldsDuringRead(existingState ListSummariesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListSummariesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10904,12 +11060,6 @@ type ListSystemSchemasRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListSystemSchemasRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListSystemSchemasRequest) { -} - -func (newState *ListSystemSchemasRequest) SyncEffectiveFieldsDuringRead(existingState ListSystemSchemasRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListSystemSchemasRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10960,6 +11110,12 @@ func (newState *ListSystemSchemasResponse) SyncEffectiveFieldsDuringCreateOrUpda func (newState *ListSystemSchemasResponse) SyncEffectiveFieldsDuringRead(existingState ListSystemSchemasResponse) { } +func (c ListSystemSchemasResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SystemSchemaInfo{}.ToSchema(cs, append(path, "schemas")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListSystemSchemasResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11035,7 +11191,13 @@ type ListTableSummariesResponse struct { func (newState *ListTableSummariesResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListTableSummariesResponse) { } -func (newState *ListTableSummariesResponse) SyncEffectiveFieldsDuringRead(existingState ListTableSummariesResponse) { +func (newState *ListTableSummariesResponse) SyncEffectiveFieldsDuringRead(existingState ListTableSummariesResponse) { +} + +func (c ListTableSummariesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + TableSummary{}.ToSchema(cs, append(path, "tables")...) + + return cs } // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListTableSummariesResponse. @@ -11132,12 +11294,6 @@ type ListTablesRequest struct { SchemaName types.String `tfsdk:"-"` } -func (newState *ListTablesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListTablesRequest) { -} - -func (newState *ListTablesRequest) SyncEffectiveFieldsDuringRead(existingState ListTablesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListTablesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11202,6 +11358,12 @@ func (newState *ListTablesResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ListTablesResponse) SyncEffectiveFieldsDuringRead(existingState ListTablesResponse) { } +func (c ListTablesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + TableInfo{}.ToSchema(cs, append(path, "tables")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListTablesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11292,12 +11454,6 @@ type ListVolumesRequest struct { SchemaName types.String `tfsdk:"-"` } -func (newState *ListVolumesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListVolumesRequest) { -} - -func (newState *ListVolumesRequest) SyncEffectiveFieldsDuringRead(existingState ListVolumesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListVolumesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11352,6 +11508,12 @@ func (newState *ListVolumesResponseContent) SyncEffectiveFieldsDuringCreateOrUpd func (newState *ListVolumesResponseContent) SyncEffectiveFieldsDuringRead(existingState ListVolumesResponseContent) { } +func (c ListVolumesResponseContent) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + VolumeInfo{}.ToSchema(cs, append(path, "volumes")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListVolumesResponseContent. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11430,6 +11592,13 @@ func (newState *MetastoreAssignment) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *MetastoreAssignment) SyncEffectiveFieldsDuringRead(existingState MetastoreAssignment) { } +func (c MetastoreAssignment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "metastore_id")...) + cs.SetRequired(append(path, "workspace_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MetastoreAssignment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11516,6 +11685,11 @@ func (newState *MetastoreInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Meta func (newState *MetastoreInfo) SyncEffectiveFieldsDuringRead(existingState MetastoreInfo) { } +func (c MetastoreInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MetastoreInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11642,6 +11816,13 @@ func (newState *ModelVersionInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan M func (newState *ModelVersionInfo) SyncEffectiveFieldsDuringRead(existingState ModelVersionInfo) { } +func (c ModelVersionInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RegisteredModelAlias{}.ToSchema(cs, append(path, "aliases")...) + DependencyList{}.ToSchema(cs, append(path, "model_version_dependencies")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ModelVersionInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11786,6 +11967,13 @@ func (newState *MonitorCronSchedule) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *MonitorCronSchedule) SyncEffectiveFieldsDuringRead(existingState MonitorCronSchedule) { } +func (c MonitorCronSchedule) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "quartz_cron_expression")...) + cs.SetRequired(append(path, "timezone_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MonitorCronSchedule. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11832,6 +12020,11 @@ func (newState *MonitorDataClassificationConfig) SyncEffectiveFieldsDuringCreate func (newState *MonitorDataClassificationConfig) SyncEffectiveFieldsDuringRead(existingState MonitorDataClassificationConfig) { } +func (c MonitorDataClassificationConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MonitorDataClassificationConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11875,6 +12068,11 @@ func (newState *MonitorDestination) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *MonitorDestination) SyncEffectiveFieldsDuringRead(existingState MonitorDestination) { } +func (c MonitorDestination) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MonitorDestination. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11973,6 +12171,16 @@ func (newState *MonitorInferenceLog) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *MonitorInferenceLog) SyncEffectiveFieldsDuringRead(existingState MonitorInferenceLog) { } +func (c MonitorInferenceLog) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "granularities")...) + cs.SetRequired(append(path, "model_id_col")...) + cs.SetRequired(append(path, "prediction_col")...) + cs.SetRequired(append(path, "problem_type")...) + cs.SetRequired(append(path, "timestamp_col")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MonitorInferenceLog. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12104,6 +12312,23 @@ func (newState *MonitorInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Monito func (newState *MonitorInfo) SyncEffectiveFieldsDuringRead(existingState MonitorInfo) { } +func (c MonitorInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + MonitorMetric{}.ToSchema(cs, append(path, "custom_metrics")...) + MonitorDataClassificationConfig{}.ToSchema(cs, append(path, "data_classification_config")...) + cs.SetRequired(append(path, "drift_metrics_table_name")...) + MonitorInferenceLog{}.ToSchema(cs, append(path, "inference_log")...) + cs.SetRequired(append(path, "monitor_version")...) + MonitorNotifications{}.ToSchema(cs, append(path, "notifications")...) + cs.SetRequired(append(path, "profile_metrics_table_name")...) + MonitorCronSchedule{}.ToSchema(cs, append(path, "schedule")...) + MonitorSnapshot{}.ToSchema(cs, append(path, "snapshot")...) + cs.SetRequired(append(path, "status")...) + cs.SetRequired(append(path, "table_name")...) + MonitorTimeSeries{}.ToSchema(cs, append(path, "time_series")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MonitorInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12435,6 +12660,16 @@ func (newState *MonitorMetric) SyncEffectiveFieldsDuringCreateOrUpdate(plan Moni func (newState *MonitorMetric) SyncEffectiveFieldsDuringRead(existingState MonitorMetric) { } +func (c MonitorMetric) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "definition")...) + cs.SetRequired(append(path, "input_columns")...) + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "output_data_type")...) + cs.SetRequired(append(path, "type")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MonitorMetric. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12518,6 +12753,13 @@ func (newState *MonitorNotifications) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *MonitorNotifications) SyncEffectiveFieldsDuringRead(existingState MonitorNotifications) { } +func (c MonitorNotifications) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + MonitorDestination{}.ToSchema(cs, append(path, "on_failure")...) + MonitorDestination{}.ToSchema(cs, append(path, "on_new_classification_tag_detected")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MonitorNotifications. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12634,6 +12876,14 @@ func (newState *MonitorRefreshInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *MonitorRefreshInfo) SyncEffectiveFieldsDuringRead(existingState MonitorRefreshInfo) { } +func (c MonitorRefreshInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "refresh_id")...) + cs.SetRequired(append(path, "start_time_ms")...) + cs.SetRequired(append(path, "state")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MonitorRefreshInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12686,6 +12936,12 @@ func (newState *MonitorRefreshListResponse) SyncEffectiveFieldsDuringCreateOrUpd func (newState *MonitorRefreshListResponse) SyncEffectiveFieldsDuringRead(existingState MonitorRefreshListResponse) { } +func (c MonitorRefreshListResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + MonitorRefreshInfo{}.ToSchema(cs, append(path, "refreshes")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MonitorRefreshListResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12756,6 +13012,11 @@ func (newState *MonitorSnapshot) SyncEffectiveFieldsDuringCreateOrUpdate(plan Mo func (newState *MonitorSnapshot) SyncEffectiveFieldsDuringRead(existingState MonitorSnapshot) { } +func (c MonitorSnapshot) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MonitorSnapshot. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12804,6 +13065,13 @@ func (newState *MonitorTimeSeries) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *MonitorTimeSeries) SyncEffectiveFieldsDuringRead(existingState MonitorTimeSeries) { } +func (c MonitorTimeSeries) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "granularities")...) + cs.SetRequired(append(path, "timestamp_col")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MonitorTimeSeries. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12878,6 +13146,12 @@ func (newState *NamedTableConstraint) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *NamedTableConstraint) SyncEffectiveFieldsDuringRead(existingState NamedTableConstraint) { } +func (c NamedTableConstraint) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in NamedTableConstraint. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12932,6 +13206,16 @@ func (newState *OnlineTable) SyncEffectiveFieldsDuringCreateOrUpdate(plan Online func (newState *OnlineTable) SyncEffectiveFieldsDuringRead(existingState OnlineTable) { } +func (c OnlineTable) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + OnlineTableSpec{}.ToSchema(cs, append(path, "spec")...) + cs.SetComputed(append(path, "status")...) + OnlineTableStatus{}.ToSchema(cs, append(path, "status")...) + cs.SetComputed(append(path, "table_serving_url")...) + cs.SetComputed(append(path, "unity_catalog_provisioning_state")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in OnlineTable. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13063,6 +13347,14 @@ func (newState *OnlineTableSpec) SyncEffectiveFieldsDuringCreateOrUpdate(plan On func (newState *OnlineTableSpec) SyncEffectiveFieldsDuringRead(existingState OnlineTableSpec) { } +func (c OnlineTableSpec) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "pipeline_id")...) + OnlineTableSpecContinuousSchedulingPolicy{}.ToSchema(cs, append(path, "run_continuously")...) + OnlineTableSpecTriggeredSchedulingPolicy{}.ToSchema(cs, append(path, "run_triggered")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in OnlineTableSpec. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13203,6 +13495,11 @@ func (newState *OnlineTableSpecContinuousSchedulingPolicy) SyncEffectiveFieldsDu func (newState *OnlineTableSpecContinuousSchedulingPolicy) SyncEffectiveFieldsDuringRead(existingState OnlineTableSpecContinuousSchedulingPolicy) { } +func (c OnlineTableSpecContinuousSchedulingPolicy) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in OnlineTableSpecContinuousSchedulingPolicy. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13239,6 +13536,11 @@ func (newState *OnlineTableSpecTriggeredSchedulingPolicy) SyncEffectiveFieldsDur func (newState *OnlineTableSpecTriggeredSchedulingPolicy) SyncEffectiveFieldsDuringRead(existingState OnlineTableSpecTriggeredSchedulingPolicy) { } +func (c OnlineTableSpecTriggeredSchedulingPolicy) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in OnlineTableSpecTriggeredSchedulingPolicy. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13293,6 +13595,15 @@ func (newState *OnlineTableStatus) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *OnlineTableStatus) SyncEffectiveFieldsDuringRead(existingState OnlineTableStatus) { } +func (c OnlineTableStatus) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ContinuousUpdateStatus{}.ToSchema(cs, append(path, "continuous_update_status")...) + FailedStatus{}.ToSchema(cs, append(path, "failed_status")...) + ProvisioningStatus{}.ToSchema(cs, append(path, "provisioning_status")...) + TriggeredUpdateStatus{}.ToSchema(cs, append(path, "triggered_update_status")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in OnlineTableStatus. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13466,6 +13777,11 @@ func (newState *PermissionsChange) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *PermissionsChange) SyncEffectiveFieldsDuringRead(existingState PermissionsChange) { } +func (c PermissionsChange) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PermissionsChange. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13571,6 +13887,12 @@ func (newState *PermissionsList) SyncEffectiveFieldsDuringCreateOrUpdate(plan Pe func (newState *PermissionsList) SyncEffectiveFieldsDuringRead(existingState PermissionsList) { } +func (c PermissionsList) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PrivilegeAssignment{}.ToSchema(cs, append(path, "privilege_assignments")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PermissionsList. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13654,6 +13976,11 @@ func (newState *PipelineProgress) SyncEffectiveFieldsDuringCreateOrUpdate(plan P func (newState *PipelineProgress) SyncEffectiveFieldsDuringRead(existingState PipelineProgress) { } +func (c PipelineProgress) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PipelineProgress. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13706,6 +14033,13 @@ func (newState *PrimaryKeyConstraint) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *PrimaryKeyConstraint) SyncEffectiveFieldsDuringRead(existingState PrimaryKeyConstraint) { } +func (c PrimaryKeyConstraint) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "child_columns")...) + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PrimaryKeyConstraint. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13782,6 +14116,11 @@ func (newState *PrivilegeAssignment) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *PrivilegeAssignment) SyncEffectiveFieldsDuringRead(existingState PrivilegeAssignment) { } +func (c PrivilegeAssignment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PrivilegeAssignment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13856,6 +14195,11 @@ func (newState *ProvisioningInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan P func (newState *ProvisioningInfo) SyncEffectiveFieldsDuringRead(existingState ProvisioningInfo) { } +func (c ProvisioningInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ProvisioningInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13901,6 +14245,12 @@ func (newState *ProvisioningStatus) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ProvisioningStatus) SyncEffectiveFieldsDuringRead(existingState ProvisioningStatus) { } +func (c ProvisioningStatus) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PipelineProgress{}.ToSchema(cs, append(path, "initial_pipeline_sync_progress")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ProvisioningStatus. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13984,6 +14334,11 @@ func (newState *QuotaInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan QuotaInf func (newState *QuotaInfo) SyncEffectiveFieldsDuringRead(existingState QuotaInfo) { } +func (c QuotaInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in QuotaInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14042,6 +14397,11 @@ func (newState *R2Credentials) SyncEffectiveFieldsDuringCreateOrUpdate(plan R2Cr func (newState *R2Credentials) SyncEffectiveFieldsDuringRead(existingState R2Credentials) { } +func (c R2Credentials) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in R2Credentials. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14086,12 +14446,6 @@ type ReadVolumeRequest struct { Name types.String `tfsdk:"-"` } -func (newState *ReadVolumeRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ReadVolumeRequest) { -} - -func (newState *ReadVolumeRequest) SyncEffectiveFieldsDuringRead(existingState ReadVolumeRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ReadVolumeRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14139,6 +14493,12 @@ func (newState *RegenerateDashboardRequest) SyncEffectiveFieldsDuringCreateOrUpd func (newState *RegenerateDashboardRequest) SyncEffectiveFieldsDuringRead(existingState RegenerateDashboardRequest) { } +func (c RegenerateDashboardRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "table_name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RegenerateDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14185,6 +14545,11 @@ func (newState *RegenerateDashboardResponse) SyncEffectiveFieldsDuringCreateOrUp func (newState *RegenerateDashboardResponse) SyncEffectiveFieldsDuringRead(existingState RegenerateDashboardResponse) { } +func (c RegenerateDashboardResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RegenerateDashboardResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14232,6 +14597,11 @@ func (newState *RegisteredModelAlias) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *RegisteredModelAlias) SyncEffectiveFieldsDuringRead(existingState RegisteredModelAlias) { } +func (c RegisteredModelAlias) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RegisteredModelAlias. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14307,6 +14677,12 @@ func (newState *RegisteredModelInfo) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *RegisteredModelInfo) SyncEffectiveFieldsDuringRead(existingState RegisteredModelInfo) { } +func (c RegisteredModelInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RegisteredModelAlias{}.ToSchema(cs, append(path, "aliases")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RegisteredModelInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14400,12 +14776,6 @@ type RunRefreshRequest struct { TableName types.String `tfsdk:"-"` } -func (newState *RunRefreshRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan RunRefreshRequest) { -} - -func (newState *RunRefreshRequest) SyncEffectiveFieldsDuringRead(existingState RunRefreshRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in RunRefreshRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14485,6 +14855,12 @@ func (newState *SchemaInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan SchemaI func (newState *SchemaInfo) SyncEffectiveFieldsDuringRead(existingState SchemaInfo) { } +func (c SchemaInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + EffectivePredictiveOptimizationFlag{}.ToSchema(cs, append(path, "effective_predictive_optimization_flag")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SchemaInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14622,6 +14998,14 @@ func (newState *SetArtifactAllowlist) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *SetArtifactAllowlist) SyncEffectiveFieldsDuringRead(existingState SetArtifactAllowlist) { } +func (c SetArtifactAllowlist) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "artifact_matchers")...) + ArtifactMatcher{}.ToSchema(cs, append(path, "artifact_matchers")...) + cs.SetRequired(append(path, "artifact_type")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SetArtifactAllowlist. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14700,6 +15084,14 @@ func (newState *SetRegisteredModelAliasRequest) SyncEffectiveFieldsDuringCreateO func (newState *SetRegisteredModelAliasRequest) SyncEffectiveFieldsDuringRead(existingState SetRegisteredModelAliasRequest) { } +func (c SetRegisteredModelAliasRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "alias")...) + cs.SetRequired(append(path, "full_name")...) + cs.SetRequired(append(path, "version_num")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SetRegisteredModelAliasRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14750,6 +15142,11 @@ func (newState *SseEncryptionDetails) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *SseEncryptionDetails) SyncEffectiveFieldsDuringRead(existingState SseEncryptionDetails) { } +func (c SseEncryptionDetails) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SseEncryptionDetails. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14829,6 +15226,16 @@ func (newState *StorageCredentialInfo) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *StorageCredentialInfo) SyncEffectiveFieldsDuringRead(existingState StorageCredentialInfo) { } +func (c StorageCredentialInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AwsIamRoleResponse{}.ToSchema(cs, append(path, "aws_iam_role")...) + AzureManagedIdentityResponse{}.ToSchema(cs, append(path, "azure_managed_identity")...) + AzureServicePrincipal{}.ToSchema(cs, append(path, "azure_service_principal")...) + CloudflareApiToken{}.ToSchema(cs, append(path, "cloudflare_api_token")...) + DatabricksGcpServiceAccountResponse{}.ToSchema(cs, append(path, "databricks_gcp_service_account")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in StorageCredentialInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15054,6 +15461,11 @@ func (newState *SystemSchemaInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan S func (newState *SystemSchemaInfo) SyncEffectiveFieldsDuringRead(existingState SystemSchemaInfo) { } +func (c SystemSchemaInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SystemSchemaInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15104,6 +15516,14 @@ func (newState *TableConstraint) SyncEffectiveFieldsDuringCreateOrUpdate(plan Ta func (newState *TableConstraint) SyncEffectiveFieldsDuringRead(existingState TableConstraint) { } +func (c TableConstraint) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ForeignKeyConstraint{}.ToSchema(cs, append(path, "foreign_key_constraint")...) + NamedTableConstraint{}.ToSchema(cs, append(path, "named_table_constraint")...) + PrimaryKeyConstraint{}.ToSchema(cs, append(path, "primary_key_constraint")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TableConstraint. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15240,6 +15660,12 @@ func (newState *TableDependency) SyncEffectiveFieldsDuringCreateOrUpdate(plan Ta func (newState *TableDependency) SyncEffectiveFieldsDuringRead(existingState TableDependency) { } +func (c TableDependency) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "table_full_name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TableDependency. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15282,6 +15708,11 @@ func (newState *TableExistsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *TableExistsResponse) SyncEffectiveFieldsDuringRead(existingState TableExistsResponse) { } +func (c TableExistsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TableExistsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15399,6 +15830,18 @@ func (newState *TableInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan TableInf func (newState *TableInfo) SyncEffectiveFieldsDuringRead(existingState TableInfo) { } +func (c TableInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ColumnInfo{}.ToSchema(cs, append(path, "columns")...) + DeltaRuntimePropertiesKvPairs{}.ToSchema(cs, append(path, "delta_runtime_properties_kvpairs")...) + EffectivePredictiveOptimizationFlag{}.ToSchema(cs, append(path, "effective_predictive_optimization_flag")...) + EncryptionDetails{}.ToSchema(cs, append(path, "encryption_details")...) + TableRowFilter{}.ToSchema(cs, append(path, "row_filter")...) + TableConstraint{}.ToSchema(cs, append(path, "table_constraints")...) + DependencyList{}.ToSchema(cs, append(path, "view_dependencies")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TableInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15740,6 +16183,13 @@ func (newState *TableRowFilter) SyncEffectiveFieldsDuringCreateOrUpdate(plan Tab func (newState *TableRowFilter) SyncEffectiveFieldsDuringRead(existingState TableRowFilter) { } +func (c TableRowFilter) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "function_name")...) + cs.SetRequired(append(path, "input_column_names")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TableRowFilter. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15816,6 +16266,11 @@ func (newState *TableSummary) SyncEffectiveFieldsDuringCreateOrUpdate(plan Table func (newState *TableSummary) SyncEffectiveFieldsDuringRead(existingState TableSummary) { } +func (c TableSummary) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TableSummary. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15868,6 +16323,13 @@ func (newState *TemporaryCredentials) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *TemporaryCredentials) SyncEffectiveFieldsDuringRead(existingState TemporaryCredentials) { } +func (c TemporaryCredentials) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AwsCredentials{}.ToSchema(cs, append(path, "aws_temp_credentials")...) + AzureActiveDirectoryToken{}.ToSchema(cs, append(path, "azure_aad")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TemporaryCredentials. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15982,6 +16444,12 @@ func (newState *TriggeredUpdateStatus) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *TriggeredUpdateStatus) SyncEffectiveFieldsDuringRead(existingState TriggeredUpdateStatus) { } +func (c TriggeredUpdateStatus) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PipelineProgress{}.ToSchema(cs, append(path, "triggered_update_progress")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TriggeredUpdateStatus. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16055,12 +16523,6 @@ type UnassignRequest struct { WorkspaceId types.Int64 `tfsdk:"-"` } -func (newState *UnassignRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan UnassignRequest) { -} - -func (newState *UnassignRequest) SyncEffectiveFieldsDuringRead(existingState UnassignRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UnassignRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16097,12 +16559,6 @@ func (o UnassignRequest) Type(ctx context.Context) attr.Type { type UnassignResponse struct { } -func (newState *UnassignResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan UnassignResponse) { -} - -func (newState *UnassignResponse) SyncEffectiveFieldsDuringRead(existingState UnassignResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UnassignResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16133,12 +16589,6 @@ func (o UnassignResponse) Type(ctx context.Context) attr.Type { type UpdateAssignmentResponse struct { } -func (newState *UpdateAssignmentResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateAssignmentResponse) { -} - -func (newState *UpdateAssignmentResponse) SyncEffectiveFieldsDuringRead(existingState UpdateAssignmentResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateAssignmentResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16191,6 +16641,12 @@ func (newState *UpdateCatalog) SyncEffectiveFieldsDuringCreateOrUpdate(plan Upda func (newState *UpdateCatalog) SyncEffectiveFieldsDuringRead(existingState UpdateCatalog) { } +func (c UpdateCatalog) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateCatalog. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16281,6 +16737,13 @@ func (newState *UpdateConnection) SyncEffectiveFieldsDuringCreateOrUpdate(plan U func (newState *UpdateConnection) SyncEffectiveFieldsDuringRead(existingState UpdateConnection) { } +func (c UpdateConnection) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "options")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateConnection. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16388,6 +16851,16 @@ func (newState *UpdateCredentialRequest) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *UpdateCredentialRequest) SyncEffectiveFieldsDuringRead(existingState UpdateCredentialRequest) { } +func (c UpdateCredentialRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AwsIamRole{}.ToSchema(cs, append(path, "aws_iam_role")...) + AzureManagedIdentity{}.ToSchema(cs, append(path, "azure_managed_identity")...) + AzureServicePrincipal{}.ToSchema(cs, append(path, "azure_service_principal")...) + DatabricksGcpServiceAccount{}.ToSchema(cs, append(path, "databricks_gcp_service_account")...) + cs.SetRequired(append(path, "name_arg")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16597,6 +17070,13 @@ func (newState *UpdateExternalLocation) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *UpdateExternalLocation) SyncEffectiveFieldsDuringRead(existingState UpdateExternalLocation) { } +func (c UpdateExternalLocation) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + EncryptionDetails{}.ToSchema(cs, append(path, "encryption_details")...) + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateExternalLocation. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16696,6 +17176,12 @@ func (newState *UpdateFunction) SyncEffectiveFieldsDuringCreateOrUpdate(plan Upd func (newState *UpdateFunction) SyncEffectiveFieldsDuringRead(existingState UpdateFunction) { } +func (c UpdateFunction) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateFunction. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16756,6 +17242,12 @@ func (newState *UpdateMetastore) SyncEffectiveFieldsDuringCreateOrUpdate(plan Up func (newState *UpdateMetastore) SyncEffectiveFieldsDuringRead(existingState UpdateMetastore) { } +func (c UpdateMetastore) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateMetastore. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16818,6 +17310,12 @@ func (newState *UpdateMetastoreAssignment) SyncEffectiveFieldsDuringCreateOrUpda func (newState *UpdateMetastoreAssignment) SyncEffectiveFieldsDuringRead(existingState UpdateMetastoreAssignment) { } +func (c UpdateMetastoreAssignment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "workspace_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateMetastoreAssignment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16868,6 +17366,13 @@ func (newState *UpdateModelVersionRequest) SyncEffectiveFieldsDuringCreateOrUpda func (newState *UpdateModelVersionRequest) SyncEffectiveFieldsDuringRead(existingState UpdateModelVersionRequest) { } +func (c UpdateModelVersionRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "full_name")...) + cs.SetRequired(append(path, "version")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateModelVersionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16945,6 +17450,20 @@ func (newState *UpdateMonitor) SyncEffectiveFieldsDuringCreateOrUpdate(plan Upda func (newState *UpdateMonitor) SyncEffectiveFieldsDuringRead(existingState UpdateMonitor) { } +func (c UpdateMonitor) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + MonitorMetric{}.ToSchema(cs, append(path, "custom_metrics")...) + MonitorDataClassificationConfig{}.ToSchema(cs, append(path, "data_classification_config")...) + MonitorInferenceLog{}.ToSchema(cs, append(path, "inference_log")...) + MonitorNotifications{}.ToSchema(cs, append(path, "notifications")...) + cs.SetRequired(append(path, "output_schema_name")...) + MonitorCronSchedule{}.ToSchema(cs, append(path, "schedule")...) + MonitorSnapshot{}.ToSchema(cs, append(path, "snapshot")...) + cs.SetRequired(append(path, "table_name")...) + MonitorTimeSeries{}.ToSchema(cs, append(path, "time_series")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateMonitor. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -17246,6 +17765,14 @@ func (newState *UpdatePermissions) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *UpdatePermissions) SyncEffectiveFieldsDuringRead(existingState UpdatePermissions) { } +func (c UpdatePermissions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PermissionsChange{}.ToSchema(cs, append(path, "changes")...) + cs.SetRequired(append(path, "full_name")...) + cs.SetRequired(append(path, "securable_type")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdatePermissions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -17328,6 +17855,12 @@ func (newState *UpdateRegisteredModelRequest) SyncEffectiveFieldsDuringCreateOrU func (newState *UpdateRegisteredModelRequest) SyncEffectiveFieldsDuringRead(existingState UpdateRegisteredModelRequest) { } +func (c UpdateRegisteredModelRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "full_name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateRegisteredModelRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -17368,12 +17901,6 @@ func (o UpdateRegisteredModelRequest) Type(ctx context.Context) attr.Type { type UpdateResponse struct { } -func (newState *UpdateResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateResponse) { -} - -func (newState *UpdateResponse) SyncEffectiveFieldsDuringRead(existingState UpdateResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -17423,6 +17950,12 @@ func (newState *UpdateSchema) SyncEffectiveFieldsDuringCreateOrUpdate(plan Updat func (newState *UpdateSchema) SyncEffectiveFieldsDuringRead(existingState UpdateSchema) { } +func (c UpdateSchema) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "full_name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateSchema. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -17531,6 +18064,17 @@ func (newState *UpdateStorageCredential) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *UpdateStorageCredential) SyncEffectiveFieldsDuringRead(existingState UpdateStorageCredential) { } +func (c UpdateStorageCredential) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AwsIamRoleRequest{}.ToSchema(cs, append(path, "aws_iam_role")...) + AzureManagedIdentityResponse{}.ToSchema(cs, append(path, "azure_managed_identity")...) + AzureServicePrincipal{}.ToSchema(cs, append(path, "azure_service_principal")...) + CloudflareApiToken{}.ToSchema(cs, append(path, "cloudflare_api_token")...) + DatabricksGcpServiceAccountRequest{}.ToSchema(cs, append(path, "databricks_gcp_service_account")...) + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateStorageCredential. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -17740,12 +18284,6 @@ type UpdateTableRequest struct { Owner types.String `tfsdk:"owner" tf:"optional"` } -func (newState *UpdateTableRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateTableRequest) { -} - -func (newState *UpdateTableRequest) SyncEffectiveFieldsDuringRead(existingState UpdateTableRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateTableRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -17796,6 +18334,12 @@ func (newState *UpdateVolumeRequestContent) SyncEffectiveFieldsDuringCreateOrUpd func (newState *UpdateVolumeRequestContent) SyncEffectiveFieldsDuringRead(existingState UpdateVolumeRequestContent) { } +func (c UpdateVolumeRequestContent) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateVolumeRequestContent. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -17848,6 +18392,12 @@ func (newState *UpdateWorkspaceBindings) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *UpdateWorkspaceBindings) SyncEffectiveFieldsDuringRead(existingState UpdateWorkspaceBindings) { } +func (c UpdateWorkspaceBindings) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateWorkspaceBindings. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -17959,6 +18509,15 @@ func (newState *UpdateWorkspaceBindingsParameters) SyncEffectiveFieldsDuringCrea func (newState *UpdateWorkspaceBindingsParameters) SyncEffectiveFieldsDuringRead(existingState UpdateWorkspaceBindingsParameters) { } +func (c UpdateWorkspaceBindingsParameters) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + WorkspaceBinding{}.ToSchema(cs, append(path, "add")...) + WorkspaceBinding{}.ToSchema(cs, append(path, "remove")...) + cs.SetRequired(append(path, "securable_name")...) + cs.SetRequired(append(path, "securable_type")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateWorkspaceBindingsParameters. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -18083,6 +18642,13 @@ func (newState *ValidateCredentialRequest) SyncEffectiveFieldsDuringCreateOrUpda func (newState *ValidateCredentialRequest) SyncEffectiveFieldsDuringRead(existingState ValidateCredentialRequest) { } +func (c ValidateCredentialRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AwsIamRole{}.ToSchema(cs, append(path, "aws_iam_role")...) + AzureManagedIdentity{}.ToSchema(cs, append(path, "azure_managed_identity")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ValidateCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -18199,6 +18765,12 @@ func (newState *ValidateCredentialResponse) SyncEffectiveFieldsDuringCreateOrUpd func (newState *ValidateCredentialResponse) SyncEffectiveFieldsDuringRead(existingState ValidateCredentialResponse) { } +func (c ValidateCredentialResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CredentialValidationResult{}.ToSchema(cs, append(path, "results")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ValidateCredentialResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -18289,6 +18861,16 @@ func (newState *ValidateStorageCredential) SyncEffectiveFieldsDuringCreateOrUpda func (newState *ValidateStorageCredential) SyncEffectiveFieldsDuringRead(existingState ValidateStorageCredential) { } +func (c ValidateStorageCredential) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AwsIamRoleRequest{}.ToSchema(cs, append(path, "aws_iam_role")...) + AzureManagedIdentityRequest{}.ToSchema(cs, append(path, "azure_managed_identity")...) + AzureServicePrincipal{}.ToSchema(cs, append(path, "azure_service_principal")...) + CloudflareApiToken{}.ToSchema(cs, append(path, "cloudflare_api_token")...) + DatabricksGcpServiceAccountRequest{}.ToSchema(cs, append(path, "databricks_gcp_service_account")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ValidateStorageCredential. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -18495,6 +19077,12 @@ func (newState *ValidateStorageCredentialResponse) SyncEffectiveFieldsDuringCrea func (newState *ValidateStorageCredentialResponse) SyncEffectiveFieldsDuringRead(existingState ValidateStorageCredentialResponse) { } +func (c ValidateStorageCredentialResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ValidationResult{}.ToSchema(cs, append(path, "results")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ValidateStorageCredentialResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -18573,6 +19161,11 @@ func (newState *ValidationResult) SyncEffectiveFieldsDuringCreateOrUpdate(plan V func (newState *ValidationResult) SyncEffectiveFieldsDuringRead(existingState ValidationResult) { } +func (c ValidationResult) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ValidationResult. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -18653,6 +19246,12 @@ func (newState *VolumeInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan VolumeI func (newState *VolumeInfo) SyncEffectiveFieldsDuringRead(existingState VolumeInfo) { } +func (c VolumeInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + EncryptionDetails{}.ToSchema(cs, append(path, "encryption_details")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in VolumeInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -18758,6 +19357,11 @@ func (newState *WorkspaceBinding) SyncEffectiveFieldsDuringCreateOrUpdate(plan W func (newState *WorkspaceBinding) SyncEffectiveFieldsDuringRead(existingState WorkspaceBinding) { } +func (c WorkspaceBinding) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WorkspaceBinding. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -18807,6 +19411,12 @@ func (newState *WorkspaceBindingsResponse) SyncEffectiveFieldsDuringCreateOrUpda func (newState *WorkspaceBindingsResponse) SyncEffectiveFieldsDuringRead(existingState WorkspaceBindingsResponse) { } +func (c WorkspaceBindingsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + WorkspaceBinding{}.ToSchema(cs, append(path, "bindings")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WorkspaceBindingsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/cleanrooms_tf/legacy_model.go b/internal/service/cleanrooms_tf/legacy_model.go index 646aebd6d..e6d5384e4 100755 --- a/internal/service/cleanrooms_tf/legacy_model.go +++ b/internal/service/cleanrooms_tf/legacy_model.go @@ -1575,12 +1575,6 @@ type CreateCleanRoomAssetRequest_SdkV2 struct { CleanRoomName types.String `tfsdk:"-"` } -func (newState *CreateCleanRoomAssetRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateCleanRoomAssetRequest_SdkV2) { -} - -func (newState *CreateCleanRoomAssetRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateCleanRoomAssetRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateCleanRoomAssetRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1652,12 +1646,6 @@ type CreateCleanRoomOutputCatalogRequest_SdkV2 struct { OutputCatalog types.List `tfsdk:"output_catalog" tf:"optional,object"` } -func (newState *CreateCleanRoomOutputCatalogRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateCleanRoomOutputCatalogRequest_SdkV2) { -} - -func (newState *CreateCleanRoomOutputCatalogRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateCleanRoomOutputCatalogRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateCleanRoomOutputCatalogRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1797,12 +1785,6 @@ type CreateCleanRoomRequest_SdkV2 struct { CleanRoom types.List `tfsdk:"clean_room" tf:"optional,object"` } -func (newState *CreateCleanRoomRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateCleanRoomRequest_SdkV2) { -} - -func (newState *CreateCleanRoomRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateCleanRoomRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateCleanRoomRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1875,12 +1857,6 @@ type DeleteCleanRoomAssetRequest_SdkV2 struct { CleanRoomName types.String `tfsdk:"-"` } -func (newState *DeleteCleanRoomAssetRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteCleanRoomAssetRequest_SdkV2) { -} - -func (newState *DeleteCleanRoomAssetRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteCleanRoomAssetRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCleanRoomAssetRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1960,12 +1936,6 @@ type DeleteCleanRoomRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteCleanRoomRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteCleanRoomRequest_SdkV2) { -} - -func (newState *DeleteCleanRoomRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteCleanRoomRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCleanRoomRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2000,12 +1970,6 @@ func (o DeleteCleanRoomRequest_SdkV2) Type(ctx context.Context) attr.Type { type DeleteResponse_SdkV2 struct { } -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse_SdkV2) { -} - -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2044,12 +2008,6 @@ type GetCleanRoomAssetRequest_SdkV2 struct { CleanRoomName types.String `tfsdk:"-"` } -func (newState *GetCleanRoomAssetRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetCleanRoomAssetRequest_SdkV2) { -} - -func (newState *GetCleanRoomAssetRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetCleanRoomAssetRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetCleanRoomAssetRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2090,12 +2048,6 @@ type GetCleanRoomRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *GetCleanRoomRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetCleanRoomRequest_SdkV2) { -} - -func (newState *GetCleanRoomRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetCleanRoomRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetCleanRoomRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2135,12 +2087,6 @@ type ListCleanRoomAssetsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListCleanRoomAssetsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListCleanRoomAssetsRequest_SdkV2) { -} - -func (newState *ListCleanRoomAssetsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListCleanRoomAssetsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListCleanRoomAssetsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2264,12 +2210,6 @@ type ListCleanRoomNotebookTaskRunsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListCleanRoomNotebookTaskRunsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListCleanRoomNotebookTaskRunsRequest_SdkV2) { -} - -func (newState *ListCleanRoomNotebookTaskRunsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListCleanRoomNotebookTaskRunsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListCleanRoomNotebookTaskRunsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2394,12 +2334,6 @@ type ListCleanRoomsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListCleanRoomsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListCleanRoomsRequest_SdkV2) { -} - -func (newState *ListCleanRoomsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListCleanRoomsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListCleanRoomsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2528,12 +2462,6 @@ type UpdateCleanRoomAssetRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *UpdateCleanRoomAssetRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateCleanRoomAssetRequest_SdkV2) { -} - -func (newState *UpdateCleanRoomAssetRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdateCleanRoomAssetRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateCleanRoomAssetRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/cleanrooms_tf/model.go b/internal/service/cleanrooms_tf/model.go index 0f9a3581f..dcb1d8371 100755 --- a/internal/service/cleanrooms_tf/model.go +++ b/internal/service/cleanrooms_tf/model.go @@ -15,6 +15,7 @@ import ( "reflect" pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common" + "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/tfschema" "github.com/databricks/terraform-provider-databricks/internal/service/catalog_tf" "github.com/databricks/terraform-provider-databricks/internal/service/jobs_tf" @@ -64,6 +65,19 @@ func (newState *CleanRoom) SyncEffectiveFieldsDuringCreateOrUpdate(plan CleanRoo func (newState *CleanRoom) SyncEffectiveFieldsDuringRead(existingState CleanRoom) { } +func (c CleanRoom) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "access_restricted")...) + cs.SetComputed(append(path, "created_at")...) + cs.SetComputed(append(path, "local_collaborator_alias")...) + cs.SetComputed(append(path, "output_catalog")...) + CleanRoomOutputCatalog{}.ToSchema(cs, append(path, "output_catalog")...) + CleanRoomRemoteDetail{}.ToSchema(cs, append(path, "remote_detailed_info")...) + cs.SetComputed(append(path, "status")...) + cs.SetComputed(append(path, "updated_at")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CleanRoom. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -222,6 +236,22 @@ func (newState *CleanRoomAsset) SyncEffectiveFieldsDuringCreateOrUpdate(plan Cle func (newState *CleanRoomAsset) SyncEffectiveFieldsDuringRead(existingState CleanRoomAsset) { } +func (c CleanRoomAsset) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "added_at")...) + CleanRoomAssetForeignTable{}.ToSchema(cs, append(path, "foreign_table")...) + CleanRoomAssetForeignTableLocalDetails{}.ToSchema(cs, append(path, "foreign_table_local_details")...) + CleanRoomAssetNotebook{}.ToSchema(cs, append(path, "notebook")...) + cs.SetComputed(append(path, "owner_collaborator_alias")...) + cs.SetComputed(append(path, "status")...) + CleanRoomAssetTable{}.ToSchema(cs, append(path, "table")...) + CleanRoomAssetTableLocalDetails{}.ToSchema(cs, append(path, "table_local_details")...) + CleanRoomAssetView{}.ToSchema(cs, append(path, "view")...) + CleanRoomAssetViewLocalDetails{}.ToSchema(cs, append(path, "view_local_details")...) + CleanRoomAssetVolumeLocalDetails{}.ToSchema(cs, append(path, "volume_local_details")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CleanRoomAsset. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -521,6 +551,12 @@ func (newState *CleanRoomAssetForeignTable) SyncEffectiveFieldsDuringCreateOrUpd func (newState *CleanRoomAssetForeignTable) SyncEffectiveFieldsDuringRead(existingState CleanRoomAssetForeignTable) { } +func (c CleanRoomAssetForeignTable) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "columns")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CleanRoomAssetForeignTable. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -594,6 +630,11 @@ func (newState *CleanRoomAssetForeignTableLocalDetails) SyncEffectiveFieldsDurin func (newState *CleanRoomAssetForeignTableLocalDetails) SyncEffectiveFieldsDuringRead(existingState CleanRoomAssetForeignTableLocalDetails) { } +func (c CleanRoomAssetForeignTableLocalDetails) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CleanRoomAssetForeignTableLocalDetails. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -639,6 +680,12 @@ func (newState *CleanRoomAssetNotebook) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *CleanRoomAssetNotebook) SyncEffectiveFieldsDuringRead(existingState CleanRoomAssetNotebook) { } +func (c CleanRoomAssetNotebook) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "etag")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CleanRoomAssetNotebook. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -683,6 +730,12 @@ func (newState *CleanRoomAssetTable) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *CleanRoomAssetTable) SyncEffectiveFieldsDuringRead(existingState CleanRoomAssetTable) { } +func (c CleanRoomAssetTable) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "columns")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CleanRoomAssetTable. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -758,6 +811,11 @@ func (newState *CleanRoomAssetTableLocalDetails) SyncEffectiveFieldsDuringCreate func (newState *CleanRoomAssetTableLocalDetails) SyncEffectiveFieldsDuringRead(existingState CleanRoomAssetTableLocalDetails) { } +func (c CleanRoomAssetTableLocalDetails) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CleanRoomAssetTableLocalDetails. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -832,6 +890,12 @@ func (newState *CleanRoomAssetView) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *CleanRoomAssetView) SyncEffectiveFieldsDuringRead(existingState CleanRoomAssetView) { } +func (c CleanRoomAssetView) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "columns")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CleanRoomAssetView. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -905,6 +969,11 @@ func (newState *CleanRoomAssetViewLocalDetails) SyncEffectiveFieldsDuringCreateO func (newState *CleanRoomAssetViewLocalDetails) SyncEffectiveFieldsDuringRead(existingState CleanRoomAssetViewLocalDetails) { } +func (c CleanRoomAssetViewLocalDetails) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CleanRoomAssetViewLocalDetails. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -948,6 +1017,11 @@ func (newState *CleanRoomAssetVolumeLocalDetails) SyncEffectiveFieldsDuringCreat func (newState *CleanRoomAssetVolumeLocalDetails) SyncEffectiveFieldsDuringRead(existingState CleanRoomAssetVolumeLocalDetails) { } +func (c CleanRoomAssetVolumeLocalDetails) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CleanRoomAssetVolumeLocalDetails. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1018,6 +1092,13 @@ func (newState *CleanRoomCollaborator) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *CleanRoomCollaborator) SyncEffectiveFieldsDuringRead(existingState CleanRoomCollaborator) { } +func (c CleanRoomCollaborator) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "display_name")...) + cs.SetComputed(append(path, "organization_name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CleanRoomCollaborator. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1088,6 +1169,13 @@ func (newState *CleanRoomNotebookTaskRun) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *CleanRoomNotebookTaskRun) SyncEffectiveFieldsDuringRead(existingState CleanRoomNotebookTaskRun) { } +func (c CleanRoomNotebookTaskRun) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CollaboratorJobRunInfo{}.ToSchema(cs, append(path, "collaborator_job_run_info")...) + jobs_tf.CleanRoomTaskRunState{}.ToSchema(cs, append(path, "notebook_job_run_state")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CleanRoomNotebookTaskRun. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1206,6 +1294,12 @@ func (newState *CleanRoomOutputCatalog) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *CleanRoomOutputCatalog) SyncEffectiveFieldsDuringRead(existingState CleanRoomOutputCatalog) { } +func (c CleanRoomOutputCatalog) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "status")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CleanRoomOutputCatalog. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1270,6 +1364,17 @@ func (newState *CleanRoomRemoteDetail) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *CleanRoomRemoteDetail) SyncEffectiveFieldsDuringRead(existingState CleanRoomRemoteDetail) { } +func (c CleanRoomRemoteDetail) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "central_clean_room_id")...) + CleanRoomCollaborator{}.ToSchema(cs, append(path, "collaborators")...) + ComplianceSecurityProfile{}.ToSchema(cs, append(path, "compliance_security_profile")...) + cs.SetComputed(append(path, "creator")...) + CleanRoomCollaborator{}.ToSchema(cs, append(path, "creator")...) + settings_tf.EgressNetworkPolicy{}.ToSchema(cs, append(path, "egress_network_policy")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CleanRoomRemoteDetail. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1449,6 +1554,11 @@ func (newState *CollaboratorJobRunInfo) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *CollaboratorJobRunInfo) SyncEffectiveFieldsDuringRead(existingState CollaboratorJobRunInfo) { } +func (c CollaboratorJobRunInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CollaboratorJobRunInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1504,6 +1614,11 @@ func (newState *ComplianceSecurityProfile) SyncEffectiveFieldsDuringCreateOrUpda func (newState *ComplianceSecurityProfile) SyncEffectiveFieldsDuringRead(existingState ComplianceSecurityProfile) { } +func (c ComplianceSecurityProfile) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ComplianceSecurityProfile. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1575,12 +1690,6 @@ type CreateCleanRoomAssetRequest struct { CleanRoomName types.String `tfsdk:"-"` } -func (newState *CreateCleanRoomAssetRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateCleanRoomAssetRequest) { -} - -func (newState *CreateCleanRoomAssetRequest) SyncEffectiveFieldsDuringRead(existingState CreateCleanRoomAssetRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateCleanRoomAssetRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1652,12 +1761,6 @@ type CreateCleanRoomOutputCatalogRequest struct { OutputCatalog types.Object `tfsdk:"output_catalog" tf:"optional,object"` } -func (newState *CreateCleanRoomOutputCatalogRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateCleanRoomOutputCatalogRequest) { -} - -func (newState *CreateCleanRoomOutputCatalogRequest) SyncEffectiveFieldsDuringRead(existingState CreateCleanRoomOutputCatalogRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateCleanRoomOutputCatalogRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1731,6 +1834,12 @@ func (newState *CreateCleanRoomOutputCatalogResponse) SyncEffectiveFieldsDuringC func (newState *CreateCleanRoomOutputCatalogResponse) SyncEffectiveFieldsDuringRead(existingState CreateCleanRoomOutputCatalogResponse) { } +func (c CreateCleanRoomOutputCatalogResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CleanRoomOutputCatalog{}.ToSchema(cs, append(path, "output_catalog")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateCleanRoomOutputCatalogResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1797,12 +1906,6 @@ type CreateCleanRoomRequest struct { CleanRoom types.Object `tfsdk:"clean_room" tf:"optional,object"` } -func (newState *CreateCleanRoomRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateCleanRoomRequest) { -} - -func (newState *CreateCleanRoomRequest) SyncEffectiveFieldsDuringRead(existingState CreateCleanRoomRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateCleanRoomRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1875,12 +1978,6 @@ type DeleteCleanRoomAssetRequest struct { CleanRoomName types.String `tfsdk:"-"` } -func (newState *DeleteCleanRoomAssetRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteCleanRoomAssetRequest) { -} - -func (newState *DeleteCleanRoomAssetRequest) SyncEffectiveFieldsDuringRead(existingState DeleteCleanRoomAssetRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCleanRoomAssetRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1927,6 +2024,11 @@ func (newState *DeleteCleanRoomAssetResponse) SyncEffectiveFieldsDuringCreateOrU func (newState *DeleteCleanRoomAssetResponse) SyncEffectiveFieldsDuringRead(existingState DeleteCleanRoomAssetResponse) { } +func (c DeleteCleanRoomAssetResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCleanRoomAssetResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1960,12 +2062,6 @@ type DeleteCleanRoomRequest struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteCleanRoomRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteCleanRoomRequest) { -} - -func (newState *DeleteCleanRoomRequest) SyncEffectiveFieldsDuringRead(existingState DeleteCleanRoomRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCleanRoomRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2000,12 +2096,6 @@ func (o DeleteCleanRoomRequest) Type(ctx context.Context) attr.Type { type DeleteResponse struct { } -func (newState *DeleteResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse) { -} - -func (newState *DeleteResponse) SyncEffectiveFieldsDuringRead(existingState DeleteResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2044,12 +2134,6 @@ type GetCleanRoomAssetRequest struct { CleanRoomName types.String `tfsdk:"-"` } -func (newState *GetCleanRoomAssetRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetCleanRoomAssetRequest) { -} - -func (newState *GetCleanRoomAssetRequest) SyncEffectiveFieldsDuringRead(existingState GetCleanRoomAssetRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetCleanRoomAssetRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2090,12 +2174,6 @@ type GetCleanRoomRequest struct { Name types.String `tfsdk:"-"` } -func (newState *GetCleanRoomRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetCleanRoomRequest) { -} - -func (newState *GetCleanRoomRequest) SyncEffectiveFieldsDuringRead(existingState GetCleanRoomRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetCleanRoomRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2135,12 +2213,6 @@ type ListCleanRoomAssetsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListCleanRoomAssetsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListCleanRoomAssetsRequest) { -} - -func (newState *ListCleanRoomAssetsRequest) SyncEffectiveFieldsDuringRead(existingState ListCleanRoomAssetsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListCleanRoomAssetsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2189,6 +2261,12 @@ func (newState *ListCleanRoomAssetsResponse) SyncEffectiveFieldsDuringCreateOrUp func (newState *ListCleanRoomAssetsResponse) SyncEffectiveFieldsDuringRead(existingState ListCleanRoomAssetsResponse) { } +func (c ListCleanRoomAssetsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CleanRoomAsset{}.ToSchema(cs, append(path, "assets")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListCleanRoomAssetsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2264,12 +2342,6 @@ type ListCleanRoomNotebookTaskRunsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListCleanRoomNotebookTaskRunsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListCleanRoomNotebookTaskRunsRequest) { -} - -func (newState *ListCleanRoomNotebookTaskRunsRequest) SyncEffectiveFieldsDuringRead(existingState ListCleanRoomNotebookTaskRunsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListCleanRoomNotebookTaskRunsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2322,6 +2394,12 @@ func (newState *ListCleanRoomNotebookTaskRunsResponse) SyncEffectiveFieldsDuring func (newState *ListCleanRoomNotebookTaskRunsResponse) SyncEffectiveFieldsDuringRead(existingState ListCleanRoomNotebookTaskRunsResponse) { } +func (c ListCleanRoomNotebookTaskRunsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CleanRoomNotebookTaskRun{}.ToSchema(cs, append(path, "runs")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListCleanRoomNotebookTaskRunsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2394,12 +2472,6 @@ type ListCleanRoomsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListCleanRoomsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListCleanRoomsRequest) { -} - -func (newState *ListCleanRoomsRequest) SyncEffectiveFieldsDuringRead(existingState ListCleanRoomsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListCleanRoomsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2447,6 +2519,12 @@ func (newState *ListCleanRoomsResponse) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *ListCleanRoomsResponse) SyncEffectiveFieldsDuringRead(existingState ListCleanRoomsResponse) { } +func (c ListCleanRoomsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CleanRoom{}.ToSchema(cs, append(path, "clean_rooms")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListCleanRoomsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2528,12 +2606,6 @@ type UpdateCleanRoomAssetRequest struct { Name types.String `tfsdk:"-"` } -func (newState *UpdateCleanRoomAssetRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateCleanRoomAssetRequest) { -} - -func (newState *UpdateCleanRoomAssetRequest) SyncEffectiveFieldsDuringRead(existingState UpdateCleanRoomAssetRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateCleanRoomAssetRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2613,6 +2685,13 @@ func (newState *UpdateCleanRoomRequest) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *UpdateCleanRoomRequest) SyncEffectiveFieldsDuringRead(existingState UpdateCleanRoomRequest) { } +func (c UpdateCleanRoomRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CleanRoom{}.ToSchema(cs, append(path, "clean_room")...) + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateCleanRoomRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/compute_tf/legacy_model.go b/internal/service/compute_tf/legacy_model.go index d99191ded..38386037a 100755 --- a/internal/service/compute_tf/legacy_model.go +++ b/internal/service/compute_tf/legacy_model.go @@ -96,12 +96,6 @@ func (o AddInstanceProfile_SdkV2) Type(ctx context.Context) attr.Type { type AddResponse_SdkV2 struct { } -func (newState *AddResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan AddResponse_SdkV2) { -} - -func (newState *AddResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState AddResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in AddResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -514,12 +508,6 @@ func (o CancelCommand_SdkV2) Type(ctx context.Context) attr.Type { type CancelResponse_SdkV2 struct { } -func (newState *CancelResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CancelResponse_SdkV2) { -} - -func (newState *CancelResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState CancelResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4254,12 +4242,6 @@ type ClusterStatus_SdkV2 struct { ClusterId types.String `tfsdk:"-"` } -func (newState *ClusterStatus_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ClusterStatus_SdkV2) { -} - -func (newState *ClusterStatus_SdkV2) SyncEffectiveFieldsDuringRead(existingState ClusterStatus_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterStatus. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4354,12 +4336,6 @@ type CommandStatusRequest_SdkV2 struct { ContextId types.String `tfsdk:"-"` } -func (newState *CommandStatusRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CommandStatusRequest_SdkV2) { -} - -func (newState *CommandStatusRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState CommandStatusRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CommandStatusRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4481,12 +4457,6 @@ type ContextStatusRequest_SdkV2 struct { ContextId types.String `tfsdk:"-"` } -func (newState *ContextStatusRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ContextStatusRequest_SdkV2) { -} - -func (newState *ContextStatusRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ContextStatusRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ContextStatusRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5834,12 +5804,6 @@ type CreateResponse_SdkV2 struct { ScriptId types.String `tfsdk:"script_id" tf:"optional"` } -func (newState *CreateResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateResponse_SdkV2) { -} - -func (newState *CreateResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6092,12 +6056,6 @@ type DeleteGlobalInitScriptRequest_SdkV2 struct { ScriptId types.String `tfsdk:"-"` } -func (newState *DeleteGlobalInitScriptRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteGlobalInitScriptRequest_SdkV2) { -} - -func (newState *DeleteGlobalInitScriptRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteGlobalInitScriptRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteGlobalInitScriptRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6288,12 +6246,6 @@ func (o DeletePolicyResponse_SdkV2) Type(ctx context.Context) attr.Type { type DeleteResponse_SdkV2 struct { } -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse_SdkV2) { -} - -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6369,12 +6321,6 @@ func (o DestroyContext_SdkV2) Type(ctx context.Context) attr.Type { type DestroyResponse_SdkV2 struct { } -func (newState *DestroyResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DestroyResponse_SdkV2) { -} - -func (newState *DestroyResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DestroyResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DestroyResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7647,12 +7593,6 @@ func (o EditPolicyResponse_SdkV2) Type(ctx context.Context) attr.Type { type EditResponse_SdkV2 struct { } -func (newState *EditResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan EditResponse_SdkV2) { -} - -func (newState *EditResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState EditResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in EditResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8322,12 +8262,6 @@ type GetClusterComplianceRequest_SdkV2 struct { ClusterId types.String `tfsdk:"-"` } -func (newState *GetClusterComplianceRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetClusterComplianceRequest_SdkV2) { -} - -func (newState *GetClusterComplianceRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetClusterComplianceRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetClusterComplianceRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8446,12 +8380,6 @@ type GetClusterPermissionLevelsRequest_SdkV2 struct { ClusterId types.String `tfsdk:"-"` } -func (newState *GetClusterPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetClusterPermissionLevelsRequest_SdkV2) { -} - -func (newState *GetClusterPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetClusterPermissionLevelsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetClusterPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8561,12 +8489,6 @@ type GetClusterPermissionsRequest_SdkV2 struct { ClusterId types.String `tfsdk:"-"` } -func (newState *GetClusterPermissionsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetClusterPermissionsRequest_SdkV2) { -} - -func (newState *GetClusterPermissionsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetClusterPermissionsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetClusterPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8604,12 +8526,6 @@ type GetClusterPolicyPermissionLevelsRequest_SdkV2 struct { ClusterPolicyId types.String `tfsdk:"-"` } -func (newState *GetClusterPolicyPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetClusterPolicyPermissionLevelsRequest_SdkV2) { -} - -func (newState *GetClusterPolicyPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetClusterPolicyPermissionLevelsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetClusterPolicyPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8719,12 +8635,6 @@ type GetClusterPolicyPermissionsRequest_SdkV2 struct { ClusterPolicyId types.String `tfsdk:"-"` } -func (newState *GetClusterPolicyPermissionsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetClusterPolicyPermissionsRequest_SdkV2) { -} - -func (newState *GetClusterPolicyPermissionsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetClusterPolicyPermissionsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetClusterPolicyPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8762,12 +8672,6 @@ type GetClusterPolicyRequest_SdkV2 struct { PolicyId types.String `tfsdk:"-"` } -func (newState *GetClusterPolicyRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetClusterPolicyRequest_SdkV2) { -} - -func (newState *GetClusterPolicyRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetClusterPolicyRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetClusterPolicyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8805,12 +8709,6 @@ type GetClusterRequest_SdkV2 struct { ClusterId types.String `tfsdk:"-"` } -func (newState *GetClusterRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetClusterRequest_SdkV2) { -} - -func (newState *GetClusterRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetClusterRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetClusterRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9061,12 +8959,6 @@ type GetGlobalInitScriptRequest_SdkV2 struct { ScriptId types.String `tfsdk:"-"` } -func (newState *GetGlobalInitScriptRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetGlobalInitScriptRequest_SdkV2) { -} - -func (newState *GetGlobalInitScriptRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetGlobalInitScriptRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetGlobalInitScriptRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9542,12 +9434,6 @@ type GetInstancePoolPermissionLevelsRequest_SdkV2 struct { InstancePoolId types.String `tfsdk:"-"` } -func (newState *GetInstancePoolPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetInstancePoolPermissionLevelsRequest_SdkV2) { -} - -func (newState *GetInstancePoolPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetInstancePoolPermissionLevelsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetInstancePoolPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9657,12 +9543,6 @@ type GetInstancePoolPermissionsRequest_SdkV2 struct { InstancePoolId types.String `tfsdk:"-"` } -func (newState *GetInstancePoolPermissionsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetInstancePoolPermissionsRequest_SdkV2) { -} - -func (newState *GetInstancePoolPermissionsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetInstancePoolPermissionsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetInstancePoolPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9700,12 +9580,6 @@ type GetInstancePoolRequest_SdkV2 struct { InstancePoolId types.String `tfsdk:"-"` } -func (newState *GetInstancePoolRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetInstancePoolRequest_SdkV2) { -} - -func (newState *GetInstancePoolRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetInstancePoolRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetInstancePoolRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9746,12 +9620,6 @@ type GetPolicyFamilyRequest_SdkV2 struct { Version types.Int64 `tfsdk:"-"` } -func (newState *GetPolicyFamilyRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPolicyFamilyRequest_SdkV2) { -} - -func (newState *GetPolicyFamilyRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetPolicyFamilyRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPolicyFamilyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12492,12 +12360,6 @@ type ListClusterCompliancesRequest_SdkV2 struct { PolicyId types.String `tfsdk:"-"` } -func (newState *ListClusterCompliancesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListClusterCompliancesRequest_SdkV2) { -} - -func (newState *ListClusterCompliancesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListClusterCompliancesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListClusterCompliancesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12627,12 +12489,6 @@ type ListClusterPoliciesRequest_SdkV2 struct { SortOrder types.String `tfsdk:"-"` } -func (newState *ListClusterPoliciesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListClusterPoliciesRequest_SdkV2) { -} - -func (newState *ListClusterPoliciesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListClusterPoliciesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListClusterPoliciesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12794,12 +12650,6 @@ type ListClustersRequest_SdkV2 struct { SortBy types.List `tfsdk:"-"` } -func (newState *ListClustersRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListClustersRequest_SdkV2) { -} - -func (newState *ListClustersRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListClustersRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListClustersRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13393,12 +13243,6 @@ type ListPolicyFamiliesRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListPolicyFamiliesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListPolicyFamiliesRequest_SdkV2) { -} - -func (newState *ListPolicyFamiliesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListPolicyFamiliesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListPolicyFamiliesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14508,12 +14352,6 @@ func (o RemoveInstanceProfile_SdkV2) Type(ctx context.Context) attr.Type { type RemoveResponse_SdkV2 struct { } -func (newState *RemoveResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan RemoveResponse_SdkV2) { -} - -func (newState *RemoveResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState RemoveResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in RemoveResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16259,12 +16097,6 @@ func (o UpdateClusterResponse_SdkV2) Type(ctx context.Context) attr.Type { type UpdateResponse_SdkV2 struct { } -func (newState *UpdateResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateResponse_SdkV2) { -} - -func (newState *UpdateResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdateResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/compute_tf/model.go b/internal/service/compute_tf/model.go index b62fa06c3..c0762243d 100755 --- a/internal/service/compute_tf/model.go +++ b/internal/service/compute_tf/model.go @@ -15,6 +15,7 @@ import ( "reflect" pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common" + "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/tfschema" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/types" @@ -56,6 +57,12 @@ func (newState *AddInstanceProfile) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *AddInstanceProfile) SyncEffectiveFieldsDuringRead(existingState AddInstanceProfile) { } +func (c AddInstanceProfile) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "instance_profile_arn")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AddInstanceProfile. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -96,12 +103,6 @@ func (o AddInstanceProfile) Type(ctx context.Context) attr.Type { type AddResponse struct { } -func (newState *AddResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan AddResponse) { -} - -func (newState *AddResponse) SyncEffectiveFieldsDuringRead(existingState AddResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in AddResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -141,6 +142,12 @@ func (newState *Adlsgen2Info) SyncEffectiveFieldsDuringCreateOrUpdate(plan Adlsg func (newState *Adlsgen2Info) SyncEffectiveFieldsDuringRead(existingState Adlsgen2Info) { } +func (c Adlsgen2Info) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "destination")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Adlsgen2Info. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -189,6 +196,11 @@ func (newState *AutoScale) SyncEffectiveFieldsDuringCreateOrUpdate(plan AutoScal func (newState *AutoScale) SyncEffectiveFieldsDuringRead(existingState AutoScale) { } +func (c AutoScale) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AutoScale. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -314,6 +326,11 @@ func (newState *AwsAttributes) SyncEffectiveFieldsDuringCreateOrUpdate(plan AwsA func (newState *AwsAttributes) SyncEffectiveFieldsDuringRead(existingState AwsAttributes) { } +func (c AwsAttributes) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AwsAttributes. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -395,6 +412,12 @@ func (newState *AzureAttributes) SyncEffectiveFieldsDuringCreateOrUpdate(plan Az func (newState *AzureAttributes) SyncEffectiveFieldsDuringRead(existingState AzureAttributes) { } +func (c AzureAttributes) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + LogAnalyticsInfo{}.ToSchema(cs, append(path, "log_analytics_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AzureAttributes. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -476,6 +499,11 @@ func (newState *CancelCommand) SyncEffectiveFieldsDuringCreateOrUpdate(plan Canc func (newState *CancelCommand) SyncEffectiveFieldsDuringRead(existingState CancelCommand) { } +func (c CancelCommand) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelCommand. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -514,12 +542,6 @@ func (o CancelCommand) Type(ctx context.Context) attr.Type { type CancelResponse struct { } -func (newState *CancelResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan CancelResponse) { -} - -func (newState *CancelResponse) SyncEffectiveFieldsDuringRead(existingState CancelResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -560,6 +582,13 @@ func (newState *ChangeClusterOwner) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ChangeClusterOwner) SyncEffectiveFieldsDuringRead(existingState ChangeClusterOwner) { } +func (c ChangeClusterOwner) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "cluster_id")...) + cs.SetRequired(append(path, "owner_username")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ChangeClusterOwner. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -602,6 +631,11 @@ func (newState *ChangeClusterOwnerResponse) SyncEffectiveFieldsDuringCreateOrUpd func (newState *ChangeClusterOwnerResponse) SyncEffectiveFieldsDuringRead(existingState ChangeClusterOwnerResponse) { } +func (c ChangeClusterOwnerResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ChangeClusterOwnerResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -642,6 +676,11 @@ func (newState *ClientsTypes) SyncEffectiveFieldsDuringCreateOrUpdate(plan Clien func (newState *ClientsTypes) SyncEffectiveFieldsDuringRead(existingState ClientsTypes) { } +func (c ClientsTypes) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClientsTypes. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -686,6 +725,12 @@ func (newState *CloneCluster) SyncEffectiveFieldsDuringCreateOrUpdate(plan Clone func (newState *CloneCluster) SyncEffectiveFieldsDuringRead(existingState CloneCluster) { } +func (c CloneCluster) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "source_cluster_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CloneCluster. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -727,6 +772,11 @@ func (newState *CloudProviderNodeInfo) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *CloudProviderNodeInfo) SyncEffectiveFieldsDuringRead(existingState CloudProviderNodeInfo) { } +func (c CloudProviderNodeInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CloudProviderNodeInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -805,6 +855,11 @@ func (newState *ClusterAccessControlRequest) SyncEffectiveFieldsDuringCreateOrUp func (newState *ClusterAccessControlRequest) SyncEffectiveFieldsDuringRead(existingState ClusterAccessControlRequest) { } +func (c ClusterAccessControlRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterAccessControlRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -861,6 +916,12 @@ func (newState *ClusterAccessControlResponse) SyncEffectiveFieldsDuringCreateOrU func (newState *ClusterAccessControlResponse) SyncEffectiveFieldsDuringRead(existingState ClusterAccessControlResponse) { } +func (c ClusterAccessControlResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ClusterPermission{}.ToSchema(cs, append(path, "all_permissions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterAccessControlResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1095,6 +1156,19 @@ func (newState *ClusterAttributes) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ClusterAttributes) SyncEffectiveFieldsDuringRead(existingState ClusterAttributes) { } +func (c ClusterAttributes) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AwsAttributes{}.ToSchema(cs, append(path, "aws_attributes")...) + AzureAttributes{}.ToSchema(cs, append(path, "azure_attributes")...) + ClusterLogConf{}.ToSchema(cs, append(path, "cluster_log_conf")...) + DockerImage{}.ToSchema(cs, append(path, "docker_image")...) + GcpAttributes{}.ToSchema(cs, append(path, "gcp_attributes")...) + InitScriptInfo{}.ToSchema(cs, append(path, "init_scripts")...) + cs.SetRequired(append(path, "spark_version")...) + WorkloadType{}.ToSchema(cs, append(path, "workload_type")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterAttributes. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1517,6 +1591,12 @@ func (newState *ClusterCompliance) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ClusterCompliance) SyncEffectiveFieldsDuringRead(existingState ClusterCompliance) { } +func (c ClusterCompliance) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "cluster_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterCompliance. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1830,6 +1910,24 @@ func (newState *ClusterDetails) SyncEffectiveFieldsDuringCreateOrUpdate(plan Clu func (newState *ClusterDetails) SyncEffectiveFieldsDuringRead(existingState ClusterDetails) { } +func (c ClusterDetails) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AutoScale{}.ToSchema(cs, append(path, "autoscale")...) + AwsAttributes{}.ToSchema(cs, append(path, "aws_attributes")...) + AzureAttributes{}.ToSchema(cs, append(path, "azure_attributes")...) + ClusterLogConf{}.ToSchema(cs, append(path, "cluster_log_conf")...) + LogSyncStatus{}.ToSchema(cs, append(path, "cluster_log_status")...) + DockerImage{}.ToSchema(cs, append(path, "docker_image")...) + SparkNode{}.ToSchema(cs, append(path, "driver")...) + SparkNode{}.ToSchema(cs, append(path, "executors")...) + GcpAttributes{}.ToSchema(cs, append(path, "gcp_attributes")...) + InitScriptInfo{}.ToSchema(cs, append(path, "init_scripts")...) + ClusterSpec{}.ToSchema(cs, append(path, "spec")...) + TerminationReason{}.ToSchema(cs, append(path, "termination_reason")...) + WorkloadType{}.ToSchema(cs, append(path, "workload_type")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterDetails. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2499,6 +2597,14 @@ func (newState *ClusterEvent) SyncEffectiveFieldsDuringCreateOrUpdate(plan Clust func (newState *ClusterEvent) SyncEffectiveFieldsDuringRead(existingState ClusterEvent) { } +func (c ClusterEvent) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "cluster_id")...) + DataPlaneEventDetails{}.ToSchema(cs, append(path, "data_plane_event_details")...) + EventDetails{}.ToSchema(cs, append(path, "details")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterEvent. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2610,6 +2716,12 @@ func (newState *ClusterLibraryStatuses) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *ClusterLibraryStatuses) SyncEffectiveFieldsDuringRead(existingState ClusterLibraryStatuses) { } +func (c ClusterLibraryStatuses) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + LibraryFullStatus{}.ToSchema(cs, append(path, "library_statuses")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterLibraryStatuses. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2691,6 +2803,13 @@ func (newState *ClusterLogConf) SyncEffectiveFieldsDuringCreateOrUpdate(plan Clu func (newState *ClusterLogConf) SyncEffectiveFieldsDuringRead(existingState ClusterLogConf) { } +func (c ClusterLogConf) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + DbfsStorageInfo{}.ToSchema(cs, append(path, "dbfs")...) + S3StorageInfo{}.ToSchema(cs, append(path, "s3")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterLogConf. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2797,6 +2916,11 @@ func (newState *ClusterPermission) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ClusterPermission) SyncEffectiveFieldsDuringRead(existingState ClusterPermission) { } +func (c ClusterPermission) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterPermission. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2876,6 +3000,12 @@ func (newState *ClusterPermissions) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ClusterPermissions) SyncEffectiveFieldsDuringRead(existingState ClusterPermissions) { } +func (c ClusterPermissions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ClusterAccessControlResponse{}.ToSchema(cs, append(path, "access_control_list")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterPermissions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2953,6 +3083,11 @@ func (newState *ClusterPermissionsDescription) SyncEffectiveFieldsDuringCreateOr func (newState *ClusterPermissionsDescription) SyncEffectiveFieldsDuringRead(existingState ClusterPermissionsDescription) { } +func (c ClusterPermissionsDescription) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterPermissionsDescription. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2998,6 +3133,13 @@ func (newState *ClusterPermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpda func (newState *ClusterPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState ClusterPermissionsRequest) { } +func (c ClusterPermissionsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ClusterAccessControlRequest{}.ToSchema(cs, append(path, "access_control_list")...) + cs.SetRequired(append(path, "cluster_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3078,6 +3220,11 @@ func (newState *ClusterPolicyAccessControlRequest) SyncEffectiveFieldsDuringCrea func (newState *ClusterPolicyAccessControlRequest) SyncEffectiveFieldsDuringRead(existingState ClusterPolicyAccessControlRequest) { } +func (c ClusterPolicyAccessControlRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterPolicyAccessControlRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3134,6 +3281,12 @@ func (newState *ClusterPolicyAccessControlResponse) SyncEffectiveFieldsDuringCre func (newState *ClusterPolicyAccessControlResponse) SyncEffectiveFieldsDuringRead(existingState ClusterPolicyAccessControlResponse) { } +func (c ClusterPolicyAccessControlResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ClusterPolicyPermission{}.ToSchema(cs, append(path, "all_permissions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterPolicyAccessControlResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3217,6 +3370,11 @@ func (newState *ClusterPolicyPermission) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *ClusterPolicyPermission) SyncEffectiveFieldsDuringRead(existingState ClusterPolicyPermission) { } +func (c ClusterPolicyPermission) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterPolicyPermission. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3296,6 +3454,12 @@ func (newState *ClusterPolicyPermissions) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *ClusterPolicyPermissions) SyncEffectiveFieldsDuringRead(existingState ClusterPolicyPermissions) { } +func (c ClusterPolicyPermissions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ClusterPolicyAccessControlResponse{}.ToSchema(cs, append(path, "access_control_list")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterPolicyPermissions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3373,6 +3537,11 @@ func (newState *ClusterPolicyPermissionsDescription) SyncEffectiveFieldsDuringCr func (newState *ClusterPolicyPermissionsDescription) SyncEffectiveFieldsDuringRead(existingState ClusterPolicyPermissionsDescription) { } +func (c ClusterPolicyPermissionsDescription) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterPolicyPermissionsDescription. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3418,6 +3587,13 @@ func (newState *ClusterPolicyPermissionsRequest) SyncEffectiveFieldsDuringCreate func (newState *ClusterPolicyPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState ClusterPolicyPermissionsRequest) { } +func (c ClusterPolicyPermissionsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ClusterPolicyAccessControlRequest{}.ToSchema(cs, append(path, "access_control_list")...) + cs.SetRequired(append(path, "cluster_policy_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterPolicyPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3504,6 +3680,11 @@ func (newState *ClusterSettingsChange) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *ClusterSettingsChange) SyncEffectiveFieldsDuringRead(existingState ClusterSettingsChange) { } +func (c ClusterSettingsChange) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterSettingsChange. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3563,6 +3744,12 @@ func (newState *ClusterSize) SyncEffectiveFieldsDuringCreateOrUpdate(plan Cluste func (newState *ClusterSize) SyncEffectiveFieldsDuringRead(existingState ClusterSize) { } +func (c ClusterSize) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AutoScale{}.ToSchema(cs, append(path, "autoscale")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterSize. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3810,6 +3997,19 @@ func (newState *ClusterSpec) SyncEffectiveFieldsDuringCreateOrUpdate(plan Cluste func (newState *ClusterSpec) SyncEffectiveFieldsDuringRead(existingState ClusterSpec) { } +func (c ClusterSpec) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AutoScale{}.ToSchema(cs, append(path, "autoscale")...) + AwsAttributes{}.ToSchema(cs, append(path, "aws_attributes")...) + AzureAttributes{}.ToSchema(cs, append(path, "azure_attributes")...) + ClusterLogConf{}.ToSchema(cs, append(path, "cluster_log_conf")...) + DockerImage{}.ToSchema(cs, append(path, "docker_image")...) + GcpAttributes{}.ToSchema(cs, append(path, "gcp_attributes")...) + InitScriptInfo{}.ToSchema(cs, append(path, "init_scripts")...) + WorkloadType{}.ToSchema(cs, append(path, "workload_type")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterSpec. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4254,12 +4454,6 @@ type ClusterStatus struct { ClusterId types.String `tfsdk:"-"` } -func (newState *ClusterStatus) SyncEffectiveFieldsDuringCreateOrUpdate(plan ClusterStatus) { -} - -func (newState *ClusterStatus) SyncEffectiveFieldsDuringRead(existingState ClusterStatus) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterStatus. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4308,6 +4502,11 @@ func (newState *Command) SyncEffectiveFieldsDuringCreateOrUpdate(plan Command) { func (newState *Command) SyncEffectiveFieldsDuringRead(existingState Command) { } +func (c Command) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Command. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4354,12 +4553,6 @@ type CommandStatusRequest struct { ContextId types.String `tfsdk:"-"` } -func (newState *CommandStatusRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CommandStatusRequest) { -} - -func (newState *CommandStatusRequest) SyncEffectiveFieldsDuringRead(existingState CommandStatusRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CommandStatusRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4409,6 +4602,12 @@ func (newState *CommandStatusResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *CommandStatusResponse) SyncEffectiveFieldsDuringRead(existingState CommandStatusResponse) { } +func (c CommandStatusResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Results{}.ToSchema(cs, append(path, "results")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CommandStatusResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4481,12 +4680,6 @@ type ContextStatusRequest struct { ContextId types.String `tfsdk:"-"` } -func (newState *ContextStatusRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ContextStatusRequest) { -} - -func (newState *ContextStatusRequest) SyncEffectiveFieldsDuringRead(existingState ContextStatusRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ContextStatusRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4532,6 +4725,11 @@ func (newState *ContextStatusResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *ContextStatusResponse) SyncEffectiveFieldsDuringRead(existingState ContextStatusResponse) { } +func (c ContextStatusResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ContextStatusResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4752,6 +4950,21 @@ func (newState *CreateCluster) SyncEffectiveFieldsDuringCreateOrUpdate(plan Crea func (newState *CreateCluster) SyncEffectiveFieldsDuringRead(existingState CreateCluster) { } +func (c CreateCluster) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AutoScale{}.ToSchema(cs, append(path, "autoscale")...) + AwsAttributes{}.ToSchema(cs, append(path, "aws_attributes")...) + AzureAttributes{}.ToSchema(cs, append(path, "azure_attributes")...) + CloneCluster{}.ToSchema(cs, append(path, "clone_from")...) + ClusterLogConf{}.ToSchema(cs, append(path, "cluster_log_conf")...) + DockerImage{}.ToSchema(cs, append(path, "docker_image")...) + GcpAttributes{}.ToSchema(cs, append(path, "gcp_attributes")...) + InitScriptInfo{}.ToSchema(cs, append(path, "init_scripts")...) + cs.SetRequired(append(path, "spark_version")...) + WorkloadType{}.ToSchema(cs, append(path, "workload_type")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateCluster. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5231,6 +5444,11 @@ func (newState *CreateClusterResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *CreateClusterResponse) SyncEffectiveFieldsDuringRead(existingState CreateClusterResponse) { } +func (c CreateClusterResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateClusterResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5275,6 +5493,11 @@ func (newState *CreateContext) SyncEffectiveFieldsDuringCreateOrUpdate(plan Crea func (newState *CreateContext) SyncEffectiveFieldsDuringRead(existingState CreateContext) { } +func (c CreateContext) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateContext. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5371,6 +5594,18 @@ func (newState *CreateInstancePool) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *CreateInstancePool) SyncEffectiveFieldsDuringRead(existingState CreateInstancePool) { } +func (c CreateInstancePool) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + InstancePoolAwsAttributes{}.ToSchema(cs, append(path, "aws_attributes")...) + InstancePoolAzureAttributes{}.ToSchema(cs, append(path, "azure_attributes")...) + DiskSpec{}.ToSchema(cs, append(path, "disk_spec")...) + InstancePoolGcpAttributes{}.ToSchema(cs, append(path, "gcp_attributes")...) + cs.SetRequired(append(path, "instance_pool_name")...) + cs.SetRequired(append(path, "node_type_id")...) + DockerImage{}.ToSchema(cs, append(path, "preloaded_docker_images")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateInstancePool. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5641,6 +5876,11 @@ func (newState *CreateInstancePoolResponse) SyncEffectiveFieldsDuringCreateOrUpd func (newState *CreateInstancePoolResponse) SyncEffectiveFieldsDuringRead(existingState CreateInstancePoolResponse) { } +func (c CreateInstancePoolResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateInstancePoolResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5714,6 +5954,12 @@ func (newState *CreatePolicy) SyncEffectiveFieldsDuringCreateOrUpdate(plan Creat func (newState *CreatePolicy) SyncEffectiveFieldsDuringRead(existingState CreatePolicy) { } +func (c CreatePolicy) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Library{}.ToSchema(cs, append(path, "libraries")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreatePolicy. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5798,6 +6044,11 @@ func (newState *CreatePolicyResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *CreatePolicyResponse) SyncEffectiveFieldsDuringRead(existingState CreatePolicyResponse) { } +func (c CreatePolicyResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreatePolicyResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5834,12 +6085,6 @@ type CreateResponse struct { ScriptId types.String `tfsdk:"script_id" tf:"optional"` } -func (newState *CreateResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateResponse) { -} - -func (newState *CreateResponse) SyncEffectiveFieldsDuringRead(existingState CreateResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5881,6 +6126,11 @@ func (newState *Created) SyncEffectiveFieldsDuringCreateOrUpdate(plan Created) { func (newState *Created) SyncEffectiveFieldsDuringRead(existingState Created) { } +func (c Created) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Created. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5929,6 +6179,11 @@ func (newState *DataPlaneEventDetails) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *DataPlaneEventDetails) SyncEffectiveFieldsDuringRead(existingState DataPlaneEventDetails) { } +func (c DataPlaneEventDetails) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DataPlaneEventDetails. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5977,6 +6232,12 @@ func (newState *DbfsStorageInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Db func (newState *DbfsStorageInfo) SyncEffectiveFieldsDuringRead(existingState DbfsStorageInfo) { } +func (c DbfsStorageInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "destination")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DbfsStorageInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6019,6 +6280,12 @@ func (newState *DeleteCluster) SyncEffectiveFieldsDuringCreateOrUpdate(plan Dele func (newState *DeleteCluster) SyncEffectiveFieldsDuringRead(existingState DeleteCluster) { } +func (c DeleteCluster) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "cluster_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCluster. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6059,6 +6326,11 @@ func (newState *DeleteClusterResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *DeleteClusterResponse) SyncEffectiveFieldsDuringRead(existingState DeleteClusterResponse) { } +func (c DeleteClusterResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteClusterResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6092,12 +6364,6 @@ type DeleteGlobalInitScriptRequest struct { ScriptId types.String `tfsdk:"-"` } -func (newState *DeleteGlobalInitScriptRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteGlobalInitScriptRequest) { -} - -func (newState *DeleteGlobalInitScriptRequest) SyncEffectiveFieldsDuringRead(existingState DeleteGlobalInitScriptRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteGlobalInitScriptRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6140,6 +6406,12 @@ func (newState *DeleteInstancePool) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *DeleteInstancePool) SyncEffectiveFieldsDuringRead(existingState DeleteInstancePool) { } +func (c DeleteInstancePool) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "instance_pool_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteInstancePool. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6180,6 +6452,11 @@ func (newState *DeleteInstancePoolResponse) SyncEffectiveFieldsDuringCreateOrUpd func (newState *DeleteInstancePoolResponse) SyncEffectiveFieldsDuringRead(existingState DeleteInstancePoolResponse) { } +func (c DeleteInstancePoolResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteInstancePoolResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6218,6 +6495,12 @@ func (newState *DeletePolicy) SyncEffectiveFieldsDuringCreateOrUpdate(plan Delet func (newState *DeletePolicy) SyncEffectiveFieldsDuringRead(existingState DeletePolicy) { } +func (c DeletePolicy) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "policy_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeletePolicy. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6258,6 +6541,11 @@ func (newState *DeletePolicyResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *DeletePolicyResponse) SyncEffectiveFieldsDuringRead(existingState DeletePolicyResponse) { } +func (c DeletePolicyResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeletePolicyResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6288,12 +6576,6 @@ func (o DeletePolicyResponse) Type(ctx context.Context) attr.Type { type DeleteResponse struct { } -func (newState *DeleteResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse) { -} - -func (newState *DeleteResponse) SyncEffectiveFieldsDuringRead(existingState DeleteResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6333,6 +6615,13 @@ func (newState *DestroyContext) SyncEffectiveFieldsDuringCreateOrUpdate(plan Des func (newState *DestroyContext) SyncEffectiveFieldsDuringRead(existingState DestroyContext) { } +func (c DestroyContext) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "clusterId")...) + cs.SetRequired(append(path, "contextId")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DestroyContext. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6369,12 +6658,6 @@ func (o DestroyContext) Type(ctx context.Context) attr.Type { type DestroyResponse struct { } -func (newState *DestroyResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DestroyResponse) { -} - -func (newState *DestroyResponse) SyncEffectiveFieldsDuringRead(existingState DestroyResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DestroyResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6443,6 +6726,12 @@ func (newState *DiskSpec) SyncEffectiveFieldsDuringCreateOrUpdate(plan DiskSpec) func (newState *DiskSpec) SyncEffectiveFieldsDuringRead(existingState DiskSpec) { } +func (c DiskSpec) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + DiskType{}.ToSchema(cs, append(path, "disk_type")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DiskSpec. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6524,6 +6813,11 @@ func (newState *DiskType) SyncEffectiveFieldsDuringCreateOrUpdate(plan DiskType) func (newState *DiskType) SyncEffectiveFieldsDuringRead(existingState DiskType) { } +func (c DiskType) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DiskType. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6570,6 +6864,11 @@ func (newState *DockerBasicAuth) SyncEffectiveFieldsDuringCreateOrUpdate(plan Do func (newState *DockerBasicAuth) SyncEffectiveFieldsDuringRead(existingState DockerBasicAuth) { } +func (c DockerBasicAuth) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DockerBasicAuth. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6615,6 +6914,12 @@ func (newState *DockerImage) SyncEffectiveFieldsDuringCreateOrUpdate(plan Docker func (newState *DockerImage) SyncEffectiveFieldsDuringRead(existingState DockerImage) { } +func (c DockerImage) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + DockerBasicAuth{}.ToSchema(cs, append(path, "basic_auth")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DockerImage. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6864,6 +7169,21 @@ func (newState *EditCluster) SyncEffectiveFieldsDuringCreateOrUpdate(plan EditCl func (newState *EditCluster) SyncEffectiveFieldsDuringRead(existingState EditCluster) { } +func (c EditCluster) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AutoScale{}.ToSchema(cs, append(path, "autoscale")...) + AwsAttributes{}.ToSchema(cs, append(path, "aws_attributes")...) + AzureAttributes{}.ToSchema(cs, append(path, "azure_attributes")...) + cs.SetRequired(append(path, "cluster_id")...) + ClusterLogConf{}.ToSchema(cs, append(path, "cluster_log_conf")...) + DockerImage{}.ToSchema(cs, append(path, "docker_image")...) + GcpAttributes{}.ToSchema(cs, append(path, "gcp_attributes")...) + InitScriptInfo{}.ToSchema(cs, append(path, "init_scripts")...) + cs.SetRequired(append(path, "spark_version")...) + WorkloadType{}.ToSchema(cs, append(path, "workload_type")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EditCluster. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7313,6 +7633,11 @@ func (newState *EditClusterResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *EditClusterResponse) SyncEffectiveFieldsDuringRead(existingState EditClusterResponse) { } +func (c EditClusterResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EditClusterResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7380,6 +7705,14 @@ func (newState *EditInstancePool) SyncEffectiveFieldsDuringCreateOrUpdate(plan E func (newState *EditInstancePool) SyncEffectiveFieldsDuringRead(existingState EditInstancePool) { } +func (c EditInstancePool) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "instance_pool_id")...) + cs.SetRequired(append(path, "instance_pool_name")...) + cs.SetRequired(append(path, "node_type_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EditInstancePool. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7462,6 +7795,11 @@ func (newState *EditInstancePoolResponse) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *EditInstancePoolResponse) SyncEffectiveFieldsDuringRead(existingState EditInstancePoolResponse) { } +func (c EditInstancePoolResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EditInstancePoolResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7533,6 +7871,13 @@ func (newState *EditPolicy) SyncEffectiveFieldsDuringCreateOrUpdate(plan EditPol func (newState *EditPolicy) SyncEffectiveFieldsDuringRead(existingState EditPolicy) { } +func (c EditPolicy) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Library{}.ToSchema(cs, append(path, "libraries")...) + cs.SetRequired(append(path, "policy_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EditPolicy. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7617,6 +7962,11 @@ func (newState *EditPolicyResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *EditPolicyResponse) SyncEffectiveFieldsDuringRead(existingState EditPolicyResponse) { } +func (c EditPolicyResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EditPolicyResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7647,12 +7997,6 @@ func (o EditPolicyResponse) Type(ctx context.Context) attr.Type { type EditResponse struct { } -func (newState *EditResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan EditResponse) { -} - -func (newState *EditResponse) SyncEffectiveFieldsDuringRead(existingState EditResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in EditResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7694,6 +8038,12 @@ func (newState *EnforceClusterComplianceRequest) SyncEffectiveFieldsDuringCreate func (newState *EnforceClusterComplianceRequest) SyncEffectiveFieldsDuringRead(existingState EnforceClusterComplianceRequest) { } +func (c EnforceClusterComplianceRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "cluster_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EnforceClusterComplianceRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7742,6 +8092,12 @@ func (newState *EnforceClusterComplianceResponse) SyncEffectiveFieldsDuringCreat func (newState *EnforceClusterComplianceResponse) SyncEffectiveFieldsDuringRead(existingState EnforceClusterComplianceResponse) { } +func (c EnforceClusterComplianceResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ClusterSettingsChange{}.ToSchema(cs, append(path, "changes")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EnforceClusterComplianceResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7829,6 +8185,12 @@ func (newState *Environment) SyncEffectiveFieldsDuringCreateOrUpdate(plan Enviro func (newState *Environment) SyncEffectiveFieldsDuringRead(existingState Environment) { } +func (c Environment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "client")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Environment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7949,6 +8311,17 @@ func (newState *EventDetails) SyncEffectiveFieldsDuringCreateOrUpdate(plan Event func (newState *EventDetails) SyncEffectiveFieldsDuringRead(existingState EventDetails) { } +func (c EventDetails) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ClusterAttributes{}.ToSchema(cs, append(path, "attributes")...) + ClusterSize{}.ToSchema(cs, append(path, "cluster_size")...) + InitScriptEventDetails{}.ToSchema(cs, append(path, "init_scripts")...) + ClusterAttributes{}.ToSchema(cs, append(path, "previous_attributes")...) + ClusterSize{}.ToSchema(cs, append(path, "previous_cluster_size")...) + TerminationReason{}.ToSchema(cs, append(path, "reason")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EventDetails. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8233,6 +8606,11 @@ func (newState *GcpAttributes) SyncEffectiveFieldsDuringCreateOrUpdate(plan GcpA func (newState *GcpAttributes) SyncEffectiveFieldsDuringRead(existingState GcpAttributes) { } +func (c GcpAttributes) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GcpAttributes. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8285,6 +8663,12 @@ func (newState *GcsStorageInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Gcs func (newState *GcsStorageInfo) SyncEffectiveFieldsDuringRead(existingState GcsStorageInfo) { } +func (c GcsStorageInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "destination")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GcsStorageInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8322,12 +8706,6 @@ type GetClusterComplianceRequest struct { ClusterId types.String `tfsdk:"-"` } -func (newState *GetClusterComplianceRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetClusterComplianceRequest) { -} - -func (newState *GetClusterComplianceRequest) SyncEffectiveFieldsDuringRead(existingState GetClusterComplianceRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetClusterComplianceRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8377,6 +8755,11 @@ func (newState *GetClusterComplianceResponse) SyncEffectiveFieldsDuringCreateOrU func (newState *GetClusterComplianceResponse) SyncEffectiveFieldsDuringRead(existingState GetClusterComplianceResponse) { } +func (c GetClusterComplianceResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetClusterComplianceResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8446,12 +8829,6 @@ type GetClusterPermissionLevelsRequest struct { ClusterId types.String `tfsdk:"-"` } -func (newState *GetClusterPermissionLevelsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetClusterPermissionLevelsRequest) { -} - -func (newState *GetClusterPermissionLevelsRequest) SyncEffectiveFieldsDuringRead(existingState GetClusterPermissionLevelsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetClusterPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8494,7 +8871,13 @@ func (newState *GetClusterPermissionLevelsResponse) SyncEffectiveFieldsDuringCre func (newState *GetClusterPermissionLevelsResponse) SyncEffectiveFieldsDuringRead(existingState GetClusterPermissionLevelsResponse) { } -// GetComplexFieldTypes returns a map of the types of elements in complex fields in GetClusterPermissionLevelsResponse. +func (c GetClusterPermissionLevelsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ClusterPermissionsDescription{}.ToSchema(cs, append(path, "permission_levels")...) + + return cs +} + +// GetComplexFieldTypes returns a map of the types of elements in complex fields in GetClusterPermissionLevelsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to // retrieve the type information of the elements in complex fields at runtime. The values of the map @@ -8561,12 +8944,6 @@ type GetClusterPermissionsRequest struct { ClusterId types.String `tfsdk:"-"` } -func (newState *GetClusterPermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetClusterPermissionsRequest) { -} - -func (newState *GetClusterPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState GetClusterPermissionsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetClusterPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8604,12 +8981,6 @@ type GetClusterPolicyPermissionLevelsRequest struct { ClusterPolicyId types.String `tfsdk:"-"` } -func (newState *GetClusterPolicyPermissionLevelsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetClusterPolicyPermissionLevelsRequest) { -} - -func (newState *GetClusterPolicyPermissionLevelsRequest) SyncEffectiveFieldsDuringRead(existingState GetClusterPolicyPermissionLevelsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetClusterPolicyPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8652,6 +9023,12 @@ func (newState *GetClusterPolicyPermissionLevelsResponse) SyncEffectiveFieldsDur func (newState *GetClusterPolicyPermissionLevelsResponse) SyncEffectiveFieldsDuringRead(existingState GetClusterPolicyPermissionLevelsResponse) { } +func (c GetClusterPolicyPermissionLevelsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ClusterPolicyPermissionsDescription{}.ToSchema(cs, append(path, "permission_levels")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetClusterPolicyPermissionLevelsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8719,12 +9096,6 @@ type GetClusterPolicyPermissionsRequest struct { ClusterPolicyId types.String `tfsdk:"-"` } -func (newState *GetClusterPolicyPermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetClusterPolicyPermissionsRequest) { -} - -func (newState *GetClusterPolicyPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState GetClusterPolicyPermissionsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetClusterPolicyPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8762,12 +9133,6 @@ type GetClusterPolicyRequest struct { PolicyId types.String `tfsdk:"-"` } -func (newState *GetClusterPolicyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetClusterPolicyRequest) { -} - -func (newState *GetClusterPolicyRequest) SyncEffectiveFieldsDuringRead(existingState GetClusterPolicyRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetClusterPolicyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8805,12 +9170,6 @@ type GetClusterRequest struct { ClusterId types.String `tfsdk:"-"` } -func (newState *GetClusterRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetClusterRequest) { -} - -func (newState *GetClusterRequest) SyncEffectiveFieldsDuringRead(existingState GetClusterRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetClusterRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8871,6 +9230,12 @@ func (newState *GetEvents) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetEvent func (newState *GetEvents) SyncEffectiveFieldsDuringRead(existingState GetEvents) { } +func (c GetEvents) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "cluster_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetEvents. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8961,6 +9326,13 @@ func (newState *GetEventsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *GetEventsResponse) SyncEffectiveFieldsDuringRead(existingState GetEventsResponse) { } +func (c GetEventsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ClusterEvent{}.ToSchema(cs, append(path, "events")...) + GetEvents{}.ToSchema(cs, append(path, "next_page")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetEventsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9061,12 +9433,6 @@ type GetGlobalInitScriptRequest struct { ScriptId types.String `tfsdk:"-"` } -func (newState *GetGlobalInitScriptRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetGlobalInitScriptRequest) { -} - -func (newState *GetGlobalInitScriptRequest) SyncEffectiveFieldsDuringRead(existingState GetGlobalInitScriptRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetGlobalInitScriptRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9180,6 +9546,19 @@ func (newState *GetInstancePool) SyncEffectiveFieldsDuringCreateOrUpdate(plan Ge func (newState *GetInstancePool) SyncEffectiveFieldsDuringRead(existingState GetInstancePool) { } +func (c GetInstancePool) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + InstancePoolAwsAttributes{}.ToSchema(cs, append(path, "aws_attributes")...) + InstancePoolAzureAttributes{}.ToSchema(cs, append(path, "azure_attributes")...) + DiskSpec{}.ToSchema(cs, append(path, "disk_spec")...) + InstancePoolGcpAttributes{}.ToSchema(cs, append(path, "gcp_attributes")...) + cs.SetRequired(append(path, "instance_pool_id")...) + DockerImage{}.ToSchema(cs, append(path, "preloaded_docker_images")...) + InstancePoolStats{}.ToSchema(cs, append(path, "stats")...) + InstancePoolStatus{}.ToSchema(cs, append(path, "status")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetInstancePool. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9542,12 +9921,6 @@ type GetInstancePoolPermissionLevelsRequest struct { InstancePoolId types.String `tfsdk:"-"` } -func (newState *GetInstancePoolPermissionLevelsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetInstancePoolPermissionLevelsRequest) { -} - -func (newState *GetInstancePoolPermissionLevelsRequest) SyncEffectiveFieldsDuringRead(existingState GetInstancePoolPermissionLevelsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetInstancePoolPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9590,6 +9963,12 @@ func (newState *GetInstancePoolPermissionLevelsResponse) SyncEffectiveFieldsDuri func (newState *GetInstancePoolPermissionLevelsResponse) SyncEffectiveFieldsDuringRead(existingState GetInstancePoolPermissionLevelsResponse) { } +func (c GetInstancePoolPermissionLevelsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + InstancePoolPermissionsDescription{}.ToSchema(cs, append(path, "permission_levels")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetInstancePoolPermissionLevelsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9657,12 +10036,6 @@ type GetInstancePoolPermissionsRequest struct { InstancePoolId types.String `tfsdk:"-"` } -func (newState *GetInstancePoolPermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetInstancePoolPermissionsRequest) { -} - -func (newState *GetInstancePoolPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState GetInstancePoolPermissionsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetInstancePoolPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9700,12 +10073,6 @@ type GetInstancePoolRequest struct { InstancePoolId types.String `tfsdk:"-"` } -func (newState *GetInstancePoolRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetInstancePoolRequest) { -} - -func (newState *GetInstancePoolRequest) SyncEffectiveFieldsDuringRead(existingState GetInstancePoolRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetInstancePoolRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9746,12 +10113,6 @@ type GetPolicyFamilyRequest struct { Version types.Int64 `tfsdk:"-"` } -func (newState *GetPolicyFamilyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPolicyFamilyRequest) { -} - -func (newState *GetPolicyFamilyRequest) SyncEffectiveFieldsDuringRead(existingState GetPolicyFamilyRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPolicyFamilyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9796,6 +10157,12 @@ func (newState *GetSparkVersionsResponse) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *GetSparkVersionsResponse) SyncEffectiveFieldsDuringRead(existingState GetSparkVersionsResponse) { } +func (c GetSparkVersionsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SparkVersion{}.ToSchema(cs, append(path, "versions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetSparkVersionsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9884,6 +10251,13 @@ func (newState *GlobalInitScriptCreateRequest) SyncEffectiveFieldsDuringCreateOr func (newState *GlobalInitScriptCreateRequest) SyncEffectiveFieldsDuringRead(existingState GlobalInitScriptCreateRequest) { } +func (c GlobalInitScriptCreateRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "script")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GlobalInitScriptCreateRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9949,6 +10323,11 @@ func (newState *GlobalInitScriptDetails) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *GlobalInitScriptDetails) SyncEffectiveFieldsDuringRead(existingState GlobalInitScriptDetails) { } +func (c GlobalInitScriptDetails) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GlobalInitScriptDetails. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10024,6 +10403,11 @@ func (newState *GlobalInitScriptDetailsWithContent) SyncEffectiveFieldsDuringCre func (newState *GlobalInitScriptDetailsWithContent) SyncEffectiveFieldsDuringRead(existingState GlobalInitScriptDetailsWithContent) { } +func (c GlobalInitScriptDetailsWithContent) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GlobalInitScriptDetailsWithContent. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10101,6 +10485,14 @@ func (newState *GlobalInitScriptUpdateRequest) SyncEffectiveFieldsDuringCreateOr func (newState *GlobalInitScriptUpdateRequest) SyncEffectiveFieldsDuringRead(existingState GlobalInitScriptUpdateRequest) { } +func (c GlobalInitScriptUpdateRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "script")...) + cs.SetRequired(append(path, "script_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GlobalInitScriptUpdateRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10155,6 +10547,13 @@ func (newState *InitScriptEventDetails) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *InitScriptEventDetails) SyncEffectiveFieldsDuringRead(existingState InitScriptEventDetails) { } +func (c InitScriptEventDetails) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + InitScriptInfoAndExecutionDetails{}.ToSchema(cs, append(path, "cluster")...) + InitScriptInfoAndExecutionDetails{}.ToSchema(cs, append(path, "global")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InitScriptEventDetails. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10264,6 +10663,11 @@ func (newState *InitScriptExecutionDetails) SyncEffectiveFieldsDuringCreateOrUpd func (newState *InitScriptExecutionDetails) SyncEffectiveFieldsDuringRead(existingState InitScriptExecutionDetails) { } +func (c InitScriptExecutionDetails) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InitScriptExecutionDetails. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10333,6 +10737,18 @@ func (newState *InitScriptInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Ini func (newState *InitScriptInfo) SyncEffectiveFieldsDuringRead(existingState InitScriptInfo) { } +func (c InitScriptInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Adlsgen2Info{}.ToSchema(cs, append(path, "abfss")...) + DbfsStorageInfo{}.ToSchema(cs, append(path, "dbfs")...) + LocalFileInfo{}.ToSchema(cs, append(path, "file")...) + GcsStorageInfo{}.ToSchema(cs, append(path, "gcs")...) + S3StorageInfo{}.ToSchema(cs, append(path, "s3")...) + VolumesStorageInfo{}.ToSchema(cs, append(path, "volumes")...) + WorkspaceStorageInfo{}.ToSchema(cs, append(path, "workspace")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InitScriptInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10593,6 +11009,13 @@ func (newState *InitScriptInfoAndExecutionDetails) SyncEffectiveFieldsDuringCrea func (newState *InitScriptInfoAndExecutionDetails) SyncEffectiveFieldsDuringRead(existingState InitScriptInfoAndExecutionDetails) { } +func (c InitScriptInfoAndExecutionDetails) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + InitScriptExecutionDetails{}.ToSchema(cs, append(path, "execution_details")...) + InitScriptInfo{}.ToSchema(cs, append(path, "script")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InitScriptInfoAndExecutionDetails. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10698,6 +11121,14 @@ func (newState *InstallLibraries) SyncEffectiveFieldsDuringCreateOrUpdate(plan I func (newState *InstallLibraries) SyncEffectiveFieldsDuringRead(existingState InstallLibraries) { } +func (c InstallLibraries) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "cluster_id")...) + cs.SetRequired(append(path, "libraries")...) + Library{}.ToSchema(cs, append(path, "libraries")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InstallLibraries. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10770,6 +11201,11 @@ func (newState *InstallLibrariesResponse) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *InstallLibrariesResponse) SyncEffectiveFieldsDuringRead(existingState InstallLibrariesResponse) { } +func (c InstallLibrariesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InstallLibrariesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10814,6 +11250,11 @@ func (newState *InstancePoolAccessControlRequest) SyncEffectiveFieldsDuringCreat func (newState *InstancePoolAccessControlRequest) SyncEffectiveFieldsDuringRead(existingState InstancePoolAccessControlRequest) { } +func (c InstancePoolAccessControlRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InstancePoolAccessControlRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10870,6 +11311,12 @@ func (newState *InstancePoolAccessControlResponse) SyncEffectiveFieldsDuringCrea func (newState *InstancePoolAccessControlResponse) SyncEffectiveFieldsDuringRead(existingState InstancePoolAccessControlResponse) { } +func (c InstancePoolAccessControlResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + InstancePoolPermission{}.ToSchema(cs, append(path, "all_permissions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InstancePoolAccessControlResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11021,6 +11468,18 @@ func (newState *InstancePoolAndStats) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *InstancePoolAndStats) SyncEffectiveFieldsDuringRead(existingState InstancePoolAndStats) { } +func (c InstancePoolAndStats) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + InstancePoolAwsAttributes{}.ToSchema(cs, append(path, "aws_attributes")...) + InstancePoolAzureAttributes{}.ToSchema(cs, append(path, "azure_attributes")...) + DiskSpec{}.ToSchema(cs, append(path, "disk_spec")...) + InstancePoolGcpAttributes{}.ToSchema(cs, append(path, "gcp_attributes")...) + DockerImage{}.ToSchema(cs, append(path, "preloaded_docker_images")...) + InstancePoolStats{}.ToSchema(cs, append(path, "stats")...) + InstancePoolStatus{}.ToSchema(cs, append(path, "status")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InstancePoolAndStats. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11415,6 +11874,11 @@ func (newState *InstancePoolAwsAttributes) SyncEffectiveFieldsDuringCreateOrUpda func (newState *InstancePoolAwsAttributes) SyncEffectiveFieldsDuringRead(existingState InstancePoolAwsAttributes) { } +func (c InstancePoolAwsAttributes) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InstancePoolAwsAttributes. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11467,6 +11931,11 @@ func (newState *InstancePoolAzureAttributes) SyncEffectiveFieldsDuringCreateOrUp func (newState *InstancePoolAzureAttributes) SyncEffectiveFieldsDuringRead(existingState InstancePoolAzureAttributes) { } +func (c InstancePoolAzureAttributes) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InstancePoolAzureAttributes. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11537,6 +12006,11 @@ func (newState *InstancePoolGcpAttributes) SyncEffectiveFieldsDuringCreateOrUpda func (newState *InstancePoolGcpAttributes) SyncEffectiveFieldsDuringRead(existingState InstancePoolGcpAttributes) { } +func (c InstancePoolGcpAttributes) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InstancePoolGcpAttributes. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11586,6 +12060,11 @@ func (newState *InstancePoolPermission) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *InstancePoolPermission) SyncEffectiveFieldsDuringRead(existingState InstancePoolPermission) { } +func (c InstancePoolPermission) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InstancePoolPermission. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11665,6 +12144,12 @@ func (newState *InstancePoolPermissions) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *InstancePoolPermissions) SyncEffectiveFieldsDuringRead(existingState InstancePoolPermissions) { } +func (c InstancePoolPermissions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + InstancePoolAccessControlResponse{}.ToSchema(cs, append(path, "access_control_list")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InstancePoolPermissions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11742,6 +12227,11 @@ func (newState *InstancePoolPermissionsDescription) SyncEffectiveFieldsDuringCre func (newState *InstancePoolPermissionsDescription) SyncEffectiveFieldsDuringRead(existingState InstancePoolPermissionsDescription) { } +func (c InstancePoolPermissionsDescription) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InstancePoolPermissionsDescription. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11787,6 +12277,13 @@ func (newState *InstancePoolPermissionsRequest) SyncEffectiveFieldsDuringCreateO func (newState *InstancePoolPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState InstancePoolPermissionsRequest) { } +func (c InstancePoolPermissionsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + InstancePoolAccessControlRequest{}.ToSchema(cs, append(path, "access_control_list")...) + cs.SetRequired(append(path, "instance_pool_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InstancePoolPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11867,6 +12364,11 @@ func (newState *InstancePoolStats) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *InstancePoolStats) SyncEffectiveFieldsDuringRead(existingState InstancePoolStats) { } +func (c InstancePoolStats) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InstancePoolStats. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11918,6 +12420,12 @@ func (newState *InstancePoolStatus) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *InstancePoolStatus) SyncEffectiveFieldsDuringRead(existingState InstancePoolStatus) { } +func (c InstancePoolStatus) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PendingInstanceError{}.ToSchema(cs, append(path, "pending_instance_errors")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InstancePoolStatus. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12006,6 +12514,12 @@ func (newState *InstanceProfile) SyncEffectiveFieldsDuringCreateOrUpdate(plan In func (newState *InstanceProfile) SyncEffectiveFieldsDuringRead(existingState InstanceProfile) { } +func (c InstanceProfile) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "instance_profile_arn")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InstanceProfile. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12083,6 +12597,14 @@ func (newState *Library) SyncEffectiveFieldsDuringCreateOrUpdate(plan Library) { func (newState *Library) SyncEffectiveFieldsDuringRead(existingState Library) { } +func (c Library) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RCranLibrary{}.ToSchema(cs, append(path, "cran")...) + MavenLibrary{}.ToSchema(cs, append(path, "maven")...) + PythonPyPiLibrary{}.ToSchema(cs, append(path, "pypi")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Library. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12234,6 +12756,12 @@ func (newState *LibraryFullStatus) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *LibraryFullStatus) SyncEffectiveFieldsDuringRead(existingState LibraryFullStatus) { } +func (c LibraryFullStatus) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Library{}.ToSchema(cs, append(path, "library")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in LibraryFullStatus. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12341,6 +12869,12 @@ func (newState *ListAllClusterLibraryStatusesResponse) SyncEffectiveFieldsDuring func (newState *ListAllClusterLibraryStatusesResponse) SyncEffectiveFieldsDuringRead(existingState ListAllClusterLibraryStatusesResponse) { } +func (c ListAllClusterLibraryStatusesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ClusterLibraryStatuses{}.ToSchema(cs, append(path, "statuses")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAllClusterLibraryStatusesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12416,6 +12950,11 @@ func (newState *ListAvailableZonesResponse) SyncEffectiveFieldsDuringCreateOrUpd func (newState *ListAvailableZonesResponse) SyncEffectiveFieldsDuringRead(existingState ListAvailableZonesResponse) { } +func (c ListAvailableZonesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAvailableZonesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12492,12 +13031,6 @@ type ListClusterCompliancesRequest struct { PolicyId types.String `tfsdk:"-"` } -func (newState *ListClusterCompliancesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListClusterCompliancesRequest) { -} - -func (newState *ListClusterCompliancesRequest) SyncEffectiveFieldsDuringRead(existingState ListClusterCompliancesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListClusterCompliancesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12551,6 +13084,12 @@ func (newState *ListClusterCompliancesResponse) SyncEffectiveFieldsDuringCreateO func (newState *ListClusterCompliancesResponse) SyncEffectiveFieldsDuringRead(existingState ListClusterCompliancesResponse) { } +func (c ListClusterCompliancesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ClusterCompliance{}.ToSchema(cs, append(path, "clusters")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListClusterCompliancesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12627,12 +13166,6 @@ type ListClusterPoliciesRequest struct { SortOrder types.String `tfsdk:"-"` } -func (newState *ListClusterPoliciesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListClusterPoliciesRequest) { -} - -func (newState *ListClusterPoliciesRequest) SyncEffectiveFieldsDuringRead(existingState ListClusterPoliciesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListClusterPoliciesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12683,6 +13216,11 @@ func (newState *ListClustersFilterBy) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *ListClustersFilterBy) SyncEffectiveFieldsDuringRead(existingState ListClustersFilterBy) { } +func (c ListClustersFilterBy) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListClustersFilterBy. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12794,12 +13332,6 @@ type ListClustersRequest struct { SortBy types.Object `tfsdk:"-"` } -func (newState *ListClustersRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListClustersRequest) { -} - -func (newState *ListClustersRequest) SyncEffectiveFieldsDuringRead(existingState ListClustersRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListClustersRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12914,6 +13446,12 @@ func (newState *ListClustersResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *ListClustersResponse) SyncEffectiveFieldsDuringRead(existingState ListClustersResponse) { } +func (c ListClustersResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ClusterDetails{}.ToSchema(cs, append(path, "clusters")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListClustersResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12994,6 +13532,11 @@ func (newState *ListClustersSortBy) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ListClustersSortBy) SyncEffectiveFieldsDuringRead(existingState ListClustersSortBy) { } +func (c ListClustersSortBy) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListClustersSortBy. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13037,6 +13580,12 @@ func (newState *ListGlobalInitScriptsResponse) SyncEffectiveFieldsDuringCreateOr func (newState *ListGlobalInitScriptsResponse) SyncEffectiveFieldsDuringRead(existingState ListGlobalInitScriptsResponse) { } +func (c ListGlobalInitScriptsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + GlobalInitScriptDetails{}.ToSchema(cs, append(path, "scripts")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListGlobalInitScriptsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13108,6 +13657,12 @@ func (newState *ListInstancePools) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ListInstancePools) SyncEffectiveFieldsDuringRead(existingState ListInstancePools) { } +func (c ListInstancePools) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + InstancePoolAndStats{}.ToSchema(cs, append(path, "instance_pools")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListInstancePools. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13180,6 +13735,12 @@ func (newState *ListInstanceProfilesResponse) SyncEffectiveFieldsDuringCreateOrU func (newState *ListInstanceProfilesResponse) SyncEffectiveFieldsDuringRead(existingState ListInstanceProfilesResponse) { } +func (c ListInstanceProfilesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + InstanceProfile{}.ToSchema(cs, append(path, "instance_profiles")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListInstanceProfilesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13252,6 +13813,12 @@ func (newState *ListNodeTypesResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *ListNodeTypesResponse) SyncEffectiveFieldsDuringRead(existingState ListNodeTypesResponse) { } +func (c ListNodeTypesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + NodeType{}.ToSchema(cs, append(path, "node_types")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListNodeTypesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13324,6 +13891,12 @@ func (newState *ListPoliciesResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *ListPoliciesResponse) SyncEffectiveFieldsDuringRead(existingState ListPoliciesResponse) { } +func (c ListPoliciesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Policy{}.ToSchema(cs, append(path, "policies")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListPoliciesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13393,12 +13966,6 @@ type ListPolicyFamiliesRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListPolicyFamiliesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListPolicyFamiliesRequest) { -} - -func (newState *ListPolicyFamiliesRequest) SyncEffectiveFieldsDuringRead(existingState ListPolicyFamiliesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListPolicyFamiliesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13446,6 +14013,12 @@ func (newState *ListPolicyFamiliesResponse) SyncEffectiveFieldsDuringCreateOrUpd func (newState *ListPolicyFamiliesResponse) SyncEffectiveFieldsDuringRead(existingState ListPolicyFamiliesResponse) { } +func (c ListPolicyFamiliesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PolicyFamily{}.ToSchema(cs, append(path, "policy_families")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListPolicyFamiliesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13520,6 +14093,12 @@ func (newState *LocalFileInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Loca func (newState *LocalFileInfo) SyncEffectiveFieldsDuringRead(existingState LocalFileInfo) { } +func (c LocalFileInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "destination")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in LocalFileInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13564,6 +14143,11 @@ func (newState *LogAnalyticsInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan L func (newState *LogAnalyticsInfo) SyncEffectiveFieldsDuringRead(existingState LogAnalyticsInfo) { } +func (c LogAnalyticsInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in LogAnalyticsInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13612,6 +14196,11 @@ func (newState *LogSyncStatus) SyncEffectiveFieldsDuringCreateOrUpdate(plan LogS func (newState *LogSyncStatus) SyncEffectiveFieldsDuringRead(existingState LogSyncStatus) { } +func (c LogSyncStatus) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in LogSyncStatus. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13665,6 +14254,12 @@ func (newState *MavenLibrary) SyncEffectiveFieldsDuringCreateOrUpdate(plan Maven func (newState *MavenLibrary) SyncEffectiveFieldsDuringRead(existingState MavenLibrary) { } +func (c MavenLibrary) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "coordinates")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MavenLibrary. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13748,6 +14343,11 @@ func (newState *NodeInstanceType) SyncEffectiveFieldsDuringCreateOrUpdate(plan N func (newState *NodeInstanceType) SyncEffectiveFieldsDuringRead(existingState NodeInstanceType) { } +func (c NodeInstanceType) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in NodeInstanceType. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13843,6 +14443,18 @@ func (newState *NodeType) SyncEffectiveFieldsDuringCreateOrUpdate(plan NodeType) func (newState *NodeType) SyncEffectiveFieldsDuringRead(existingState NodeType) { } +func (c NodeType) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "description")...) + cs.SetRequired(append(path, "instance_type_id")...) + cs.SetRequired(append(path, "memory_mb")...) + CloudProviderNodeInfo{}.ToSchema(cs, append(path, "node_info")...) + NodeInstanceType{}.ToSchema(cs, append(path, "node_instance_type")...) + cs.SetRequired(append(path, "node_type_id")...) + cs.SetRequired(append(path, "num_cores")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in NodeType. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13985,6 +14597,11 @@ func (newState *PendingInstanceError) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *PendingInstanceError) SyncEffectiveFieldsDuringRead(existingState PendingInstanceError) { } +func (c PendingInstanceError) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PendingInstanceError. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14029,6 +14646,12 @@ func (newState *PermanentDeleteCluster) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *PermanentDeleteCluster) SyncEffectiveFieldsDuringRead(existingState PermanentDeleteCluster) { } +func (c PermanentDeleteCluster) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "cluster_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PermanentDeleteCluster. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14069,6 +14692,11 @@ func (newState *PermanentDeleteClusterResponse) SyncEffectiveFieldsDuringCreateO func (newState *PermanentDeleteClusterResponse) SyncEffectiveFieldsDuringRead(existingState PermanentDeleteClusterResponse) { } +func (c PermanentDeleteClusterResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PermanentDeleteClusterResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14107,6 +14735,12 @@ func (newState *PinCluster) SyncEffectiveFieldsDuringCreateOrUpdate(plan PinClus func (newState *PinCluster) SyncEffectiveFieldsDuringRead(existingState PinCluster) { } +func (c PinCluster) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "cluster_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PinCluster. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14147,6 +14781,11 @@ func (newState *PinClusterResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *PinClusterResponse) SyncEffectiveFieldsDuringRead(existingState PinClusterResponse) { } +func (c PinClusterResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PinClusterResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14229,6 +14868,12 @@ func (newState *Policy) SyncEffectiveFieldsDuringCreateOrUpdate(plan Policy) { func (newState *Policy) SyncEffectiveFieldsDuringRead(existingState Policy) { } +func (c Policy) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Library{}.ToSchema(cs, append(path, "libraries")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Policy. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14330,6 +14975,11 @@ func (newState *PolicyFamily) SyncEffectiveFieldsDuringCreateOrUpdate(plan Polic func (newState *PolicyFamily) SyncEffectiveFieldsDuringRead(existingState PolicyFamily) { } +func (c PolicyFamily) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PolicyFamily. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14383,6 +15033,12 @@ func (newState *PythonPyPiLibrary) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *PythonPyPiLibrary) SyncEffectiveFieldsDuringRead(existingState PythonPyPiLibrary) { } +func (c PythonPyPiLibrary) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "package")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PythonPyPiLibrary. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14430,6 +15086,12 @@ func (newState *RCranLibrary) SyncEffectiveFieldsDuringCreateOrUpdate(plan RCran func (newState *RCranLibrary) SyncEffectiveFieldsDuringRead(existingState RCranLibrary) { } +func (c RCranLibrary) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "package")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RCranLibrary. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14474,6 +15136,12 @@ func (newState *RemoveInstanceProfile) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *RemoveInstanceProfile) SyncEffectiveFieldsDuringRead(existingState RemoveInstanceProfile) { } +func (c RemoveInstanceProfile) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "instance_profile_arn")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RemoveInstanceProfile. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14508,12 +15176,6 @@ func (o RemoveInstanceProfile) Type(ctx context.Context) attr.Type { type RemoveResponse struct { } -func (newState *RemoveResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan RemoveResponse) { -} - -func (newState *RemoveResponse) SyncEffectiveFieldsDuringRead(existingState RemoveResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in RemoveResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14567,6 +15229,13 @@ func (newState *ResizeCluster) SyncEffectiveFieldsDuringCreateOrUpdate(plan Resi func (newState *ResizeCluster) SyncEffectiveFieldsDuringRead(existingState ResizeCluster) { } +func (c ResizeCluster) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AutoScale{}.ToSchema(cs, append(path, "autoscale")...) + cs.SetRequired(append(path, "cluster_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ResizeCluster. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14641,6 +15310,11 @@ func (newState *ResizeClusterResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *ResizeClusterResponse) SyncEffectiveFieldsDuringRead(existingState ResizeClusterResponse) { } +func (c ResizeClusterResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ResizeClusterResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14681,6 +15355,12 @@ func (newState *RestartCluster) SyncEffectiveFieldsDuringCreateOrUpdate(plan Res func (newState *RestartCluster) SyncEffectiveFieldsDuringRead(existingState RestartCluster) { } +func (c RestartCluster) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "cluster_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RestartCluster. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14723,6 +15403,11 @@ func (newState *RestartClusterResponse) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *RestartClusterResponse) SyncEffectiveFieldsDuringRead(existingState RestartClusterResponse) { } +func (c RestartClusterResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RestartClusterResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14780,6 +15465,11 @@ func (newState *Results) SyncEffectiveFieldsDuringCreateOrUpdate(plan Results) { func (newState *Results) SyncEffectiveFieldsDuringRead(existingState Results) { } +func (c Results) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Results. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14929,6 +15619,12 @@ func (newState *S3StorageInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan S3St func (newState *S3StorageInfo) SyncEffectiveFieldsDuringRead(existingState S3StorageInfo) { } +func (c S3StorageInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "destination")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in S3StorageInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15006,6 +15702,12 @@ func (newState *SparkNode) SyncEffectiveFieldsDuringCreateOrUpdate(plan SparkNod func (newState *SparkNode) SyncEffectiveFieldsDuringRead(existingState SparkNode) { } +func (c SparkNode) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SparkNodeAwsAttributes{}.ToSchema(cs, append(path, "node_aws_attributes")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SparkNode. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15090,6 +15792,11 @@ func (newState *SparkNodeAwsAttributes) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *SparkNodeAwsAttributes) SyncEffectiveFieldsDuringRead(existingState SparkNodeAwsAttributes) { } +func (c SparkNodeAwsAttributes) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SparkNodeAwsAttributes. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15138,6 +15845,11 @@ func (newState *SparkVersion) SyncEffectiveFieldsDuringCreateOrUpdate(plan Spark func (newState *SparkVersion) SyncEffectiveFieldsDuringRead(existingState SparkVersion) { } +func (c SparkVersion) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SparkVersion. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15182,6 +15894,12 @@ func (newState *StartCluster) SyncEffectiveFieldsDuringCreateOrUpdate(plan Start func (newState *StartCluster) SyncEffectiveFieldsDuringRead(existingState StartCluster) { } +func (c StartCluster) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "cluster_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in StartCluster. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15222,6 +15940,11 @@ func (newState *StartClusterResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *StartClusterResponse) SyncEffectiveFieldsDuringRead(existingState StartClusterResponse) { } +func (c StartClusterResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in StartClusterResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15265,6 +15988,11 @@ func (newState *TerminationReason) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *TerminationReason) SyncEffectiveFieldsDuringRead(existingState TerminationReason) { } +func (c TerminationReason) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TerminationReason. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15343,6 +16071,14 @@ func (newState *UninstallLibraries) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *UninstallLibraries) SyncEffectiveFieldsDuringRead(existingState UninstallLibraries) { } +func (c UninstallLibraries) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "cluster_id")...) + cs.SetRequired(append(path, "libraries")...) + Library{}.ToSchema(cs, append(path, "libraries")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UninstallLibraries. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15415,6 +16151,11 @@ func (newState *UninstallLibrariesResponse) SyncEffectiveFieldsDuringCreateOrUpd func (newState *UninstallLibrariesResponse) SyncEffectiveFieldsDuringRead(existingState UninstallLibrariesResponse) { } +func (c UninstallLibrariesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UninstallLibrariesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15453,6 +16194,12 @@ func (newState *UnpinCluster) SyncEffectiveFieldsDuringCreateOrUpdate(plan Unpin func (newState *UnpinCluster) SyncEffectiveFieldsDuringRead(existingState UnpinCluster) { } +func (c UnpinCluster) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "cluster_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UnpinCluster. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15493,6 +16240,11 @@ func (newState *UnpinClusterResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *UnpinClusterResponse) SyncEffectiveFieldsDuringRead(existingState UnpinClusterResponse) { } +func (c UnpinClusterResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UnpinClusterResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15539,6 +16291,14 @@ func (newState *UpdateCluster) SyncEffectiveFieldsDuringCreateOrUpdate(plan Upda func (newState *UpdateCluster) SyncEffectiveFieldsDuringRead(existingState UpdateCluster) { } +func (c UpdateCluster) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + UpdateClusterResource{}.ToSchema(cs, append(path, "cluster")...) + cs.SetRequired(append(path, "cluster_id")...) + cs.SetRequired(append(path, "update_mask")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateCluster. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15784,6 +16544,19 @@ func (newState *UpdateClusterResource) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *UpdateClusterResource) SyncEffectiveFieldsDuringRead(existingState UpdateClusterResource) { } +func (c UpdateClusterResource) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AutoScale{}.ToSchema(cs, append(path, "autoscale")...) + AwsAttributes{}.ToSchema(cs, append(path, "aws_attributes")...) + AzureAttributes{}.ToSchema(cs, append(path, "azure_attributes")...) + ClusterLogConf{}.ToSchema(cs, append(path, "cluster_log_conf")...) + DockerImage{}.ToSchema(cs, append(path, "docker_image")...) + GcpAttributes{}.ToSchema(cs, append(path, "gcp_attributes")...) + InitScriptInfo{}.ToSchema(cs, append(path, "init_scripts")...) + WorkloadType{}.ToSchema(cs, append(path, "workload_type")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateClusterResource. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16229,6 +17002,11 @@ func (newState *UpdateClusterResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *UpdateClusterResponse) SyncEffectiveFieldsDuringRead(existingState UpdateClusterResponse) { } +func (c UpdateClusterResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateClusterResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16259,12 +17037,6 @@ func (o UpdateClusterResponse) Type(ctx context.Context) attr.Type { type UpdateResponse struct { } -func (newState *UpdateResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateResponse) { -} - -func (newState *UpdateResponse) SyncEffectiveFieldsDuringRead(existingState UpdateResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16303,6 +17075,12 @@ func (newState *VolumesStorageInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *VolumesStorageInfo) SyncEffectiveFieldsDuringRead(existingState VolumesStorageInfo) { } +func (c VolumesStorageInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "destination")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in VolumesStorageInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16345,6 +17123,13 @@ func (newState *WorkloadType) SyncEffectiveFieldsDuringCreateOrUpdate(plan Workl func (newState *WorkloadType) SyncEffectiveFieldsDuringRead(existingState WorkloadType) { } +func (c WorkloadType) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "clients")...) + ClientsTypes{}.ToSchema(cs, append(path, "clients")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WorkloadType. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16418,6 +17203,12 @@ func (newState *WorkspaceStorageInfo) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *WorkspaceStorageInfo) SyncEffectiveFieldsDuringRead(existingState WorkspaceStorageInfo) { } +func (c WorkspaceStorageInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "destination")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WorkspaceStorageInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/dashboards_tf/legacy_model.go b/internal/service/dashboards_tf/legacy_model.go index 5016d5f4b..c59f9af93 100755 --- a/internal/service/dashboards_tf/legacy_model.go +++ b/internal/service/dashboards_tf/legacy_model.go @@ -27,12 +27,6 @@ type CreateDashboardRequest_SdkV2 struct { Dashboard types.List `tfsdk:"dashboard" tf:"optional,object"` } -func (newState *CreateDashboardRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateDashboardRequest_SdkV2) { -} - -func (newState *CreateDashboardRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateDashboardRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -102,12 +96,6 @@ type CreateScheduleRequest_SdkV2 struct { Schedule types.List `tfsdk:"schedule" tf:"optional,object"` } -func (newState *CreateScheduleRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateScheduleRequest_SdkV2) { -} - -func (newState *CreateScheduleRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateScheduleRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateScheduleRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -181,12 +169,6 @@ type CreateSubscriptionRequest_SdkV2 struct { Subscription types.List `tfsdk:"subscription" tf:"optional,object"` } -func (newState *CreateSubscriptionRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateSubscriptionRequest_SdkV2) { -} - -func (newState *CreateSubscriptionRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateSubscriptionRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateSubscriptionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -406,12 +388,6 @@ type DeleteScheduleRequest_SdkV2 struct { ScheduleId types.String `tfsdk:"-"` } -func (newState *DeleteScheduleRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteScheduleRequest_SdkV2) { -} - -func (newState *DeleteScheduleRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteScheduleRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteScheduleRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -450,12 +426,6 @@ func (o DeleteScheduleRequest_SdkV2) Type(ctx context.Context) attr.Type { type DeleteScheduleResponse_SdkV2 struct { } -func (newState *DeleteScheduleResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteScheduleResponse_SdkV2) { -} - -func (newState *DeleteScheduleResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteScheduleResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteScheduleResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -496,12 +466,6 @@ type DeleteSubscriptionRequest_SdkV2 struct { SubscriptionId types.String `tfsdk:"-"` } -func (newState *DeleteSubscriptionRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteSubscriptionRequest_SdkV2) { -} - -func (newState *DeleteSubscriptionRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteSubscriptionRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteSubscriptionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -542,12 +506,6 @@ func (o DeleteSubscriptionRequest_SdkV2) Type(ctx context.Context) attr.Type { type DeleteSubscriptionResponse_SdkV2 struct { } -func (newState *DeleteSubscriptionResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteSubscriptionResponse_SdkV2) { -} - -func (newState *DeleteSubscriptionResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteSubscriptionResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteSubscriptionResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -802,12 +760,6 @@ type GenieExecuteMessageQueryRequest_SdkV2 struct { SpaceId types.String `tfsdk:"-"` } -func (newState *GenieExecuteMessageQueryRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GenieExecuteMessageQueryRequest_SdkV2) { -} - -func (newState *GenieExecuteMessageQueryRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GenieExecuteMessageQueryRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GenieExecuteMessageQueryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -855,12 +807,6 @@ type GenieGetConversationMessageRequest_SdkV2 struct { SpaceId types.String `tfsdk:"-"` } -func (newState *GenieGetConversationMessageRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GenieGetConversationMessageRequest_SdkV2) { -} - -func (newState *GenieGetConversationMessageRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GenieGetConversationMessageRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GenieGetConversationMessageRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -906,12 +852,6 @@ type GenieGetMessageQueryResultRequest_SdkV2 struct { SpaceId types.String `tfsdk:"-"` } -func (newState *GenieGetMessageQueryResultRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GenieGetMessageQueryResultRequest_SdkV2) { -} - -func (newState *GenieGetMessageQueryResultRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GenieGetMessageQueryResultRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GenieGetMessageQueryResultRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1370,12 +1310,6 @@ type GetDashboardRequest_SdkV2 struct { DashboardId types.String `tfsdk:"-"` } -func (newState *GetDashboardRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDashboardRequest_SdkV2) { -} - -func (newState *GetDashboardRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetDashboardRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1413,12 +1347,6 @@ type GetPublishedDashboardRequest_SdkV2 struct { DashboardId types.String `tfsdk:"-"` } -func (newState *GetPublishedDashboardRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPublishedDashboardRequest_SdkV2) { -} - -func (newState *GetPublishedDashboardRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetPublishedDashboardRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPublishedDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1458,12 +1386,6 @@ type GetScheduleRequest_SdkV2 struct { ScheduleId types.String `tfsdk:"-"` } -func (newState *GetScheduleRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetScheduleRequest_SdkV2) { -} - -func (newState *GetScheduleRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetScheduleRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetScheduleRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1507,12 +1429,6 @@ type GetSubscriptionRequest_SdkV2 struct { SubscriptionId types.String `tfsdk:"-"` } -func (newState *GetSubscriptionRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetSubscriptionRequest_SdkV2) { -} - -func (newState *GetSubscriptionRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetSubscriptionRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetSubscriptionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1562,12 +1478,6 @@ type ListDashboardsRequest_SdkV2 struct { View types.String `tfsdk:"-"` } -func (newState *ListDashboardsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListDashboardsRequest_SdkV2) { -} - -func (newState *ListDashboardsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListDashboardsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListDashboardsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1692,12 +1602,6 @@ type ListSchedulesRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListSchedulesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListSchedulesRequest_SdkV2) { -} - -func (newState *ListSchedulesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListSchedulesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListSchedulesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1824,12 +1728,6 @@ type ListSubscriptionsRequest_SdkV2 struct { ScheduleId types.String `tfsdk:"-"` } -func (newState *ListSubscriptionsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListSubscriptionsRequest_SdkV2) { -} - -func (newState *ListSubscriptionsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListSubscriptionsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListSubscriptionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2890,12 +2788,6 @@ type TrashDashboardRequest_SdkV2 struct { DashboardId types.String `tfsdk:"-"` } -func (newState *TrashDashboardRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan TrashDashboardRequest_SdkV2) { -} - -func (newState *TrashDashboardRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState TrashDashboardRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in TrashDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2969,12 +2861,6 @@ type UnpublishDashboardRequest_SdkV2 struct { DashboardId types.String `tfsdk:"-"` } -func (newState *UnpublishDashboardRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UnpublishDashboardRequest_SdkV2) { -} - -func (newState *UnpublishDashboardRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState UnpublishDashboardRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UnpublishDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3049,12 +2935,6 @@ type UpdateDashboardRequest_SdkV2 struct { DashboardId types.String `tfsdk:"-"` } -func (newState *UpdateDashboardRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateDashboardRequest_SdkV2) { -} - -func (newState *UpdateDashboardRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdateDashboardRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3128,12 +3008,6 @@ type UpdateScheduleRequest_SdkV2 struct { ScheduleId types.String `tfsdk:"-"` } -func (newState *UpdateScheduleRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateScheduleRequest_SdkV2) { -} - -func (newState *UpdateScheduleRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdateScheduleRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateScheduleRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/dashboards_tf/model.go b/internal/service/dashboards_tf/model.go index 03eaaae88..583e2020f 100755 --- a/internal/service/dashboards_tf/model.go +++ b/internal/service/dashboards_tf/model.go @@ -15,6 +15,7 @@ import ( "reflect" pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common" + "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/tfschema" "github.com/databricks/terraform-provider-databricks/internal/service/sql_tf" "github.com/hashicorp/terraform-plugin-framework/attr" @@ -27,12 +28,6 @@ type CreateDashboardRequest struct { Dashboard types.Object `tfsdk:"dashboard" tf:"optional,object"` } -func (newState *CreateDashboardRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateDashboardRequest) { -} - -func (newState *CreateDashboardRequest) SyncEffectiveFieldsDuringRead(existingState CreateDashboardRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -102,12 +97,6 @@ type CreateScheduleRequest struct { Schedule types.Object `tfsdk:"schedule" tf:"optional,object"` } -func (newState *CreateScheduleRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateScheduleRequest) { -} - -func (newState *CreateScheduleRequest) SyncEffectiveFieldsDuringRead(existingState CreateScheduleRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateScheduleRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -181,12 +170,6 @@ type CreateSubscriptionRequest struct { Subscription types.Object `tfsdk:"subscription" tf:"optional,object"` } -func (newState *CreateSubscriptionRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateSubscriptionRequest) { -} - -func (newState *CreateSubscriptionRequest) SyncEffectiveFieldsDuringRead(existingState CreateSubscriptionRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateSubscriptionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -271,6 +254,13 @@ func (newState *CronSchedule) SyncEffectiveFieldsDuringCreateOrUpdate(plan CronS func (newState *CronSchedule) SyncEffectiveFieldsDuringRead(existingState CronSchedule) { } +func (c CronSchedule) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "quartz_cron_expression")...) + cs.SetRequired(append(path, "timezone_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CronSchedule. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -346,6 +336,18 @@ func (newState *Dashboard) SyncEffectiveFieldsDuringCreateOrUpdate(plan Dashboar func (newState *Dashboard) SyncEffectiveFieldsDuringRead(existingState Dashboard) { } +func (c Dashboard) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "create_time")...) + cs.SetComputed(append(path, "dashboard_id")...) + cs.SetComputed(append(path, "etag")...) + cs.SetComputed(append(path, "lifecycle_state")...) + cs.SetComputed(append(path, "parent_path")...) + cs.SetComputed(append(path, "path")...) + cs.SetComputed(append(path, "update_time")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Dashboard. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -406,12 +408,6 @@ type DeleteScheduleRequest struct { ScheduleId types.String `tfsdk:"-"` } -func (newState *DeleteScheduleRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteScheduleRequest) { -} - -func (newState *DeleteScheduleRequest) SyncEffectiveFieldsDuringRead(existingState DeleteScheduleRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteScheduleRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -450,12 +446,6 @@ func (o DeleteScheduleRequest) Type(ctx context.Context) attr.Type { type DeleteScheduleResponse struct { } -func (newState *DeleteScheduleResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteScheduleResponse) { -} - -func (newState *DeleteScheduleResponse) SyncEffectiveFieldsDuringRead(existingState DeleteScheduleResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteScheduleResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -496,12 +486,6 @@ type DeleteSubscriptionRequest struct { SubscriptionId types.String `tfsdk:"-"` } -func (newState *DeleteSubscriptionRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteSubscriptionRequest) { -} - -func (newState *DeleteSubscriptionRequest) SyncEffectiveFieldsDuringRead(existingState DeleteSubscriptionRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteSubscriptionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -542,12 +526,6 @@ func (o DeleteSubscriptionRequest) Type(ctx context.Context) attr.Type { type DeleteSubscriptionResponse struct { } -func (newState *DeleteSubscriptionResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteSubscriptionResponse) { -} - -func (newState *DeleteSubscriptionResponse) SyncEffectiveFieldsDuringRead(existingState DeleteSubscriptionResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteSubscriptionResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -588,6 +566,13 @@ func (newState *GenieAttachment) SyncEffectiveFieldsDuringCreateOrUpdate(plan Ge func (newState *GenieAttachment) SyncEffectiveFieldsDuringRead(existingState GenieAttachment) { } +func (c GenieAttachment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + QueryAttachment{}.ToSchema(cs, append(path, "query")...) + TextAttachment{}.ToSchema(cs, append(path, "text")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GenieAttachment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -701,6 +686,15 @@ func (newState *GenieConversation) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *GenieConversation) SyncEffectiveFieldsDuringRead(existingState GenieConversation) { } +func (c GenieConversation) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "id")...) + cs.SetRequired(append(path, "space_id")...) + cs.SetRequired(append(path, "title")...) + cs.SetRequired(append(path, "user_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GenieConversation. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -757,6 +751,14 @@ func (newState *GenieCreateConversationMessageRequest) SyncEffectiveFieldsDuring func (newState *GenieCreateConversationMessageRequest) SyncEffectiveFieldsDuringRead(existingState GenieCreateConversationMessageRequest) { } +func (c GenieCreateConversationMessageRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "content")...) + cs.SetRequired(append(path, "conversation_id")...) + cs.SetRequired(append(path, "space_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GenieCreateConversationMessageRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -802,12 +804,6 @@ type GenieExecuteMessageQueryRequest struct { SpaceId types.String `tfsdk:"-"` } -func (newState *GenieExecuteMessageQueryRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GenieExecuteMessageQueryRequest) { -} - -func (newState *GenieExecuteMessageQueryRequest) SyncEffectiveFieldsDuringRead(existingState GenieExecuteMessageQueryRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GenieExecuteMessageQueryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -855,12 +851,6 @@ type GenieGetConversationMessageRequest struct { SpaceId types.String `tfsdk:"-"` } -func (newState *GenieGetConversationMessageRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GenieGetConversationMessageRequest) { -} - -func (newState *GenieGetConversationMessageRequest) SyncEffectiveFieldsDuringRead(existingState GenieGetConversationMessageRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GenieGetConversationMessageRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -906,12 +896,6 @@ type GenieGetMessageQueryResultRequest struct { SpaceId types.String `tfsdk:"-"` } -func (newState *GenieGetMessageQueryResultRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GenieGetMessageQueryResultRequest) { -} - -func (newState *GenieGetMessageQueryResultRequest) SyncEffectiveFieldsDuringRead(existingState GenieGetMessageQueryResultRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GenieGetMessageQueryResultRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -959,6 +943,12 @@ func (newState *GenieGetMessageQueryResultResponse) SyncEffectiveFieldsDuringCre func (newState *GenieGetMessageQueryResultResponse) SyncEffectiveFieldsDuringRead(existingState GenieGetMessageQueryResultResponse) { } +func (c GenieGetMessageQueryResultResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + sql_tf.StatementResponse{}.ToSchema(cs, append(path, "statement_response")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GenieGetMessageQueryResultResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1066,6 +1056,18 @@ func (newState *GenieMessage) SyncEffectiveFieldsDuringCreateOrUpdate(plan Genie func (newState *GenieMessage) SyncEffectiveFieldsDuringRead(existingState GenieMessage) { } +func (c GenieMessage) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + GenieAttachment{}.ToSchema(cs, append(path, "attachments")...) + cs.SetRequired(append(path, "content")...) + cs.SetRequired(append(path, "conversation_id")...) + MessageError{}.ToSchema(cs, append(path, "error")...) + cs.SetRequired(append(path, "id")...) + Result{}.ToSchema(cs, append(path, "query_result")...) + cs.SetRequired(append(path, "space_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GenieMessage. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1219,6 +1221,13 @@ func (newState *GenieStartConversationMessageRequest) SyncEffectiveFieldsDuringC func (newState *GenieStartConversationMessageRequest) SyncEffectiveFieldsDuringRead(existingState GenieStartConversationMessageRequest) { } +func (c GenieStartConversationMessageRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "content")...) + cs.SetRequired(append(path, "space_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GenieStartConversationMessageRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1268,6 +1277,15 @@ func (newState *GenieStartConversationResponse) SyncEffectiveFieldsDuringCreateO func (newState *GenieStartConversationResponse) SyncEffectiveFieldsDuringRead(existingState GenieStartConversationResponse) { } +func (c GenieStartConversationResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + GenieConversation{}.ToSchema(cs, append(path, "conversation")...) + cs.SetRequired(append(path, "conversation_id")...) + GenieMessage{}.ToSchema(cs, append(path, "message")...) + cs.SetRequired(append(path, "message_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GenieStartConversationResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1370,12 +1388,6 @@ type GetDashboardRequest struct { DashboardId types.String `tfsdk:"-"` } -func (newState *GetDashboardRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDashboardRequest) { -} - -func (newState *GetDashboardRequest) SyncEffectiveFieldsDuringRead(existingState GetDashboardRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1413,12 +1425,6 @@ type GetPublishedDashboardRequest struct { DashboardId types.String `tfsdk:"-"` } -func (newState *GetPublishedDashboardRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPublishedDashboardRequest) { -} - -func (newState *GetPublishedDashboardRequest) SyncEffectiveFieldsDuringRead(existingState GetPublishedDashboardRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPublishedDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1458,12 +1464,6 @@ type GetScheduleRequest struct { ScheduleId types.String `tfsdk:"-"` } -func (newState *GetScheduleRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetScheduleRequest) { -} - -func (newState *GetScheduleRequest) SyncEffectiveFieldsDuringRead(existingState GetScheduleRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetScheduleRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1507,12 +1507,6 @@ type GetSubscriptionRequest struct { SubscriptionId types.String `tfsdk:"-"` } -func (newState *GetSubscriptionRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetSubscriptionRequest) { -} - -func (newState *GetSubscriptionRequest) SyncEffectiveFieldsDuringRead(existingState GetSubscriptionRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetSubscriptionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1562,12 +1556,6 @@ type ListDashboardsRequest struct { View types.String `tfsdk:"-"` } -func (newState *ListDashboardsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListDashboardsRequest) { -} - -func (newState *ListDashboardsRequest) SyncEffectiveFieldsDuringRead(existingState ListDashboardsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListDashboardsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1618,6 +1606,13 @@ func (newState *ListDashboardsResponse) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *ListDashboardsResponse) SyncEffectiveFieldsDuringRead(existingState ListDashboardsResponse) { } +func (c ListDashboardsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Dashboard{}.ToSchema(cs, append(path, "dashboards")...) + cs.SetComputed(append(path, "next_page_token")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListDashboardsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1692,12 +1687,6 @@ type ListSchedulesRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListSchedulesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListSchedulesRequest) { -} - -func (newState *ListSchedulesRequest) SyncEffectiveFieldsDuringRead(existingState ListSchedulesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListSchedulesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1748,6 +1737,13 @@ func (newState *ListSchedulesResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *ListSchedulesResponse) SyncEffectiveFieldsDuringRead(existingState ListSchedulesResponse) { } +func (c ListSchedulesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "next_page_token")...) + Schedule{}.ToSchema(cs, append(path, "schedules")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListSchedulesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1824,12 +1820,6 @@ type ListSubscriptionsRequest struct { ScheduleId types.String `tfsdk:"-"` } -func (newState *ListSubscriptionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListSubscriptionsRequest) { -} - -func (newState *ListSubscriptionsRequest) SyncEffectiveFieldsDuringRead(existingState ListSubscriptionsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListSubscriptionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1882,6 +1872,13 @@ func (newState *ListSubscriptionsResponse) SyncEffectiveFieldsDuringCreateOrUpda func (newState *ListSubscriptionsResponse) SyncEffectiveFieldsDuringRead(existingState ListSubscriptionsResponse) { } +func (c ListSubscriptionsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "next_page_token")...) + Subscription{}.ToSchema(cs, append(path, "subscriptions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListSubscriptionsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1957,6 +1954,11 @@ func (newState *MessageError) SyncEffectiveFieldsDuringCreateOrUpdate(plan Messa func (newState *MessageError) SyncEffectiveFieldsDuringRead(existingState MessageError) { } +func (c MessageError) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MessageError. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2010,6 +2012,12 @@ func (newState *MigrateDashboardRequest) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *MigrateDashboardRequest) SyncEffectiveFieldsDuringRead(existingState MigrateDashboardRequest) { } +func (c MigrateDashboardRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "source_dashboard_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MigrateDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2065,6 +2073,12 @@ func (newState *PublishRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan Pub func (newState *PublishRequest) SyncEffectiveFieldsDuringRead(existingState PublishRequest) { } +func (c PublishRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "dashboard_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PublishRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2117,6 +2131,13 @@ func (newState *PublishedDashboard) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *PublishedDashboard) SyncEffectiveFieldsDuringRead(existingState PublishedDashboard) { } +func (c PublishedDashboard) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "display_name")...) + cs.SetComputed(append(path, "revision_create_time")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PublishedDashboard. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2180,6 +2201,12 @@ func (newState *QueryAttachment) SyncEffectiveFieldsDuringCreateOrUpdate(plan Qu func (newState *QueryAttachment) SyncEffectiveFieldsDuringRead(existingState QueryAttachment) { } +func (c QueryAttachment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + QuerySchema{}.ToSchema(cs, append(path, "cached_query_schema")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryAttachment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2269,6 +2296,12 @@ func (newState *QuerySchema) SyncEffectiveFieldsDuringCreateOrUpdate(plan QueryS func (newState *QuerySchema) SyncEffectiveFieldsDuringRead(existingState QuerySchema) { } +func (c QuerySchema) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + QuerySchemaColumn{}.ToSchema(cs, append(path, "columns")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in QuerySchema. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2348,6 +2381,14 @@ func (newState *QuerySchemaColumn) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *QuerySchemaColumn) SyncEffectiveFieldsDuringRead(existingState QuerySchemaColumn) { } +func (c QuerySchemaColumn) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "data_type")...) + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "type_text")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in QuerySchemaColumn. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2400,6 +2441,11 @@ func (newState *Result) SyncEffectiveFieldsDuringCreateOrUpdate(plan Result) { func (newState *Result) SyncEffectiveFieldsDuringRead(existingState Result) { } +func (c Result) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Result. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2465,6 +2511,18 @@ func (newState *Schedule) SyncEffectiveFieldsDuringCreateOrUpdate(plan Schedule) func (newState *Schedule) SyncEffectiveFieldsDuringRead(existingState Schedule) { } +func (c Schedule) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "create_time")...) + cs.SetRequired(append(path, "cron_schedule")...) + CronSchedule{}.ToSchema(cs, append(path, "cron_schedule")...) + cs.SetComputed(append(path, "dashboard_id")...) + cs.SetComputed(append(path, "etag")...) + cs.SetComputed(append(path, "schedule_id")...) + cs.SetComputed(append(path, "update_time")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Schedule. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2557,6 +2615,13 @@ func (newState *Subscriber) SyncEffectiveFieldsDuringCreateOrUpdate(plan Subscri func (newState *Subscriber) SyncEffectiveFieldsDuringRead(existingState Subscriber) { } +func (c Subscriber) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SubscriptionSubscriberDestination{}.ToSchema(cs, append(path, "destination_subscriber")...) + SubscriptionSubscriberUser{}.ToSchema(cs, append(path, "user_subscriber")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Subscriber. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2678,6 +2743,20 @@ func (newState *Subscription) SyncEffectiveFieldsDuringCreateOrUpdate(plan Subsc func (newState *Subscription) SyncEffectiveFieldsDuringRead(existingState Subscription) { } +func (c Subscription) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "create_time")...) + cs.SetComputed(append(path, "created_by_user_id")...) + cs.SetComputed(append(path, "dashboard_id")...) + cs.SetComputed(append(path, "etag")...) + cs.SetComputed(append(path, "schedule_id")...) + cs.SetRequired(append(path, "subscriber")...) + Subscriber{}.ToSchema(cs, append(path, "subscriber")...) + cs.SetComputed(append(path, "subscription_id")...) + cs.SetComputed(append(path, "update_time")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Subscription. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2765,6 +2844,12 @@ func (newState *SubscriptionSubscriberDestination) SyncEffectiveFieldsDuringCrea func (newState *SubscriptionSubscriberDestination) SyncEffectiveFieldsDuringRead(existingState SubscriptionSubscriberDestination) { } +func (c SubscriptionSubscriberDestination) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "destination_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SubscriptionSubscriberDestination. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2807,6 +2892,12 @@ func (newState *SubscriptionSubscriberUser) SyncEffectiveFieldsDuringCreateOrUpd func (newState *SubscriptionSubscriberUser) SyncEffectiveFieldsDuringRead(existingState SubscriptionSubscriberUser) { } +func (c SubscriptionSubscriberUser) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "user_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SubscriptionSubscriberUser. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2851,6 +2942,11 @@ func (newState *TextAttachment) SyncEffectiveFieldsDuringCreateOrUpdate(plan Tex func (newState *TextAttachment) SyncEffectiveFieldsDuringRead(existingState TextAttachment) { } +func (c TextAttachment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TextAttachment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2890,12 +2986,6 @@ type TrashDashboardRequest struct { DashboardId types.String `tfsdk:"-"` } -func (newState *TrashDashboardRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan TrashDashboardRequest) { -} - -func (newState *TrashDashboardRequest) SyncEffectiveFieldsDuringRead(existingState TrashDashboardRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in TrashDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2936,6 +3026,11 @@ func (newState *TrashDashboardResponse) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *TrashDashboardResponse) SyncEffectiveFieldsDuringRead(existingState TrashDashboardResponse) { } +func (c TrashDashboardResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TrashDashboardResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2969,12 +3064,6 @@ type UnpublishDashboardRequest struct { DashboardId types.String `tfsdk:"-"` } -func (newState *UnpublishDashboardRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan UnpublishDashboardRequest) { -} - -func (newState *UnpublishDashboardRequest) SyncEffectiveFieldsDuringRead(existingState UnpublishDashboardRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UnpublishDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3015,6 +3104,11 @@ func (newState *UnpublishDashboardResponse) SyncEffectiveFieldsDuringCreateOrUpd func (newState *UnpublishDashboardResponse) SyncEffectiveFieldsDuringRead(existingState UnpublishDashboardResponse) { } +func (c UnpublishDashboardResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UnpublishDashboardResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3049,12 +3143,6 @@ type UpdateDashboardRequest struct { DashboardId types.String `tfsdk:"-"` } -func (newState *UpdateDashboardRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateDashboardRequest) { -} - -func (newState *UpdateDashboardRequest) SyncEffectiveFieldsDuringRead(existingState UpdateDashboardRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3128,12 +3216,6 @@ type UpdateScheduleRequest struct { ScheduleId types.String `tfsdk:"-"` } -func (newState *UpdateScheduleRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateScheduleRequest) { -} - -func (newState *UpdateScheduleRequest) SyncEffectiveFieldsDuringRead(existingState UpdateScheduleRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateScheduleRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/files_tf/legacy_model.go b/internal/service/files_tf/legacy_model.go index 5bd55f77d..033a93752 100755 --- a/internal/service/files_tf/legacy_model.go +++ b/internal/service/files_tf/legacy_model.go @@ -234,12 +234,6 @@ type CreateDirectoryRequest_SdkV2 struct { DirectoryPath types.String `tfsdk:"-"` } -func (newState *CreateDirectoryRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateDirectoryRequest_SdkV2) { -} - -func (newState *CreateDirectoryRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateDirectoryRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateDirectoryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -274,12 +268,6 @@ func (o CreateDirectoryRequest_SdkV2) Type(ctx context.Context) attr.Type { type CreateDirectoryResponse_SdkV2 struct { } -func (newState *CreateDirectoryResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateDirectoryResponse_SdkV2) { -} - -func (newState *CreateDirectoryResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateDirectoryResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateDirectoryResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -404,12 +392,6 @@ type DeleteDirectoryRequest_SdkV2 struct { DirectoryPath types.String `tfsdk:"-"` } -func (newState *DeleteDirectoryRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteDirectoryRequest_SdkV2) { -} - -func (newState *DeleteDirectoryRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteDirectoryRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDirectoryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -444,12 +426,6 @@ func (o DeleteDirectoryRequest_SdkV2) Type(ctx context.Context) attr.Type { type DeleteDirectoryResponse_SdkV2 struct { } -func (newState *DeleteDirectoryResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteDirectoryResponse_SdkV2) { -} - -func (newState *DeleteDirectoryResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteDirectoryResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDirectoryResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -483,12 +459,6 @@ type DeleteFileRequest_SdkV2 struct { FilePath types.String `tfsdk:"-"` } -func (newState *DeleteFileRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteFileRequest_SdkV2) { -} - -func (newState *DeleteFileRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteFileRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteFileRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -621,12 +591,6 @@ type DownloadRequest_SdkV2 struct { FilePath types.String `tfsdk:"-"` } -func (newState *DownloadRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DownloadRequest_SdkV2) { -} - -func (newState *DownloadRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DownloadRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DownloadRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -668,12 +632,6 @@ type DownloadResponse_SdkV2 struct { LastModified types.String `tfsdk:"-"` } -func (newState *DownloadResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DownloadResponse_SdkV2) { -} - -func (newState *DownloadResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DownloadResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DownloadResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -771,12 +729,6 @@ type GetDirectoryMetadataRequest_SdkV2 struct { DirectoryPath types.String `tfsdk:"-"` } -func (newState *GetDirectoryMetadataRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDirectoryMetadataRequest_SdkV2) { -} - -func (newState *GetDirectoryMetadataRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetDirectoryMetadataRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDirectoryMetadataRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -811,12 +763,6 @@ func (o GetDirectoryMetadataRequest_SdkV2) Type(ctx context.Context) attr.Type { type GetDirectoryMetadataResponse_SdkV2 struct { } -func (newState *GetDirectoryMetadataResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDirectoryMetadataResponse_SdkV2) { -} - -func (newState *GetDirectoryMetadataResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetDirectoryMetadataResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDirectoryMetadataResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -850,12 +796,6 @@ type GetMetadataRequest_SdkV2 struct { FilePath types.String `tfsdk:"-"` } -func (newState *GetMetadataRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetMetadataRequest_SdkV2) { -} - -func (newState *GetMetadataRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetMetadataRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetMetadataRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -895,12 +835,6 @@ type GetMetadataResponse_SdkV2 struct { LastModified types.String `tfsdk:"-"` } -func (newState *GetMetadataResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetMetadataResponse_SdkV2) { -} - -func (newState *GetMetadataResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetMetadataResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetMetadataResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -943,12 +877,6 @@ type GetStatusRequest_SdkV2 struct { Path types.String `tfsdk:"-"` } -func (newState *GetStatusRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetStatusRequest_SdkV2) { -} - -func (newState *GetStatusRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetStatusRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetStatusRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -987,12 +915,6 @@ type ListDbfsRequest_SdkV2 struct { Path types.String `tfsdk:"-"` } -func (newState *ListDbfsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListDbfsRequest_SdkV2) { -} - -func (newState *ListDbfsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListDbfsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListDbfsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1050,12 +972,6 @@ type ListDirectoryContentsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListDirectoryContentsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListDirectoryContentsRequest_SdkV2) { -} - -func (newState *ListDirectoryContentsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListDirectoryContentsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListDirectoryContentsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1499,12 +1415,6 @@ type ReadDbfsRequest_SdkV2 struct { Path types.String `tfsdk:"-"` } -func (newState *ReadDbfsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ReadDbfsRequest_SdkV2) { -} - -func (newState *ReadDbfsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ReadDbfsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ReadDbfsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1597,12 +1507,6 @@ type UploadRequest_SdkV2 struct { Overwrite types.Bool `tfsdk:"-"` } -func (newState *UploadRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UploadRequest_SdkV2) { -} - -func (newState *UploadRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState UploadRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UploadRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1641,12 +1545,6 @@ func (o UploadRequest_SdkV2) Type(ctx context.Context) attr.Type { type UploadResponse_SdkV2 struct { } -func (newState *UploadResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UploadResponse_SdkV2) { -} - -func (newState *UploadResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState UploadResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UploadResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/files_tf/model.go b/internal/service/files_tf/model.go index c596edcbf..9255129b9 100755 --- a/internal/service/files_tf/model.go +++ b/internal/service/files_tf/model.go @@ -15,6 +15,7 @@ import ( "reflect" pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common" + "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/tfschema" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/types" @@ -35,6 +36,13 @@ func (newState *AddBlock) SyncEffectiveFieldsDuringCreateOrUpdate(plan AddBlock) func (newState *AddBlock) SyncEffectiveFieldsDuringRead(existingState AddBlock) { } +func (c AddBlock) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "data")...) + cs.SetRequired(append(path, "handle")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AddBlock. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -77,6 +85,11 @@ func (newState *AddBlockResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan A func (newState *AddBlockResponse) SyncEffectiveFieldsDuringRead(existingState AddBlockResponse) { } +func (c AddBlockResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AddBlockResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -115,6 +128,12 @@ func (newState *Close) SyncEffectiveFieldsDuringCreateOrUpdate(plan Close) { func (newState *Close) SyncEffectiveFieldsDuringRead(existingState Close) { } +func (c Close) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "handle")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Close. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -155,6 +174,11 @@ func (newState *CloseResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan Clos func (newState *CloseResponse) SyncEffectiveFieldsDuringRead(existingState CloseResponse) { } +func (c CloseResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CloseResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -195,6 +219,12 @@ func (newState *Create) SyncEffectiveFieldsDuringCreateOrUpdate(plan Create) { func (newState *Create) SyncEffectiveFieldsDuringRead(existingState Create) { } +func (c Create) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "path")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Create. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -234,12 +264,6 @@ type CreateDirectoryRequest struct { DirectoryPath types.String `tfsdk:"-"` } -func (newState *CreateDirectoryRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateDirectoryRequest) { -} - -func (newState *CreateDirectoryRequest) SyncEffectiveFieldsDuringRead(existingState CreateDirectoryRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateDirectoryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -274,12 +298,6 @@ func (o CreateDirectoryRequest) Type(ctx context.Context) attr.Type { type CreateDirectoryResponse struct { } -func (newState *CreateDirectoryResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateDirectoryResponse) { -} - -func (newState *CreateDirectoryResponse) SyncEffectiveFieldsDuringRead(existingState CreateDirectoryResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateDirectoryResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -319,6 +337,11 @@ func (newState *CreateResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan Cre func (newState *CreateResponse) SyncEffectiveFieldsDuringRead(existingState CreateResponse) { } +func (c CreateResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -365,6 +388,12 @@ func (newState *Delete) SyncEffectiveFieldsDuringCreateOrUpdate(plan Delete) { func (newState *Delete) SyncEffectiveFieldsDuringRead(existingState Delete) { } +func (c Delete) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "path")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Delete. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -404,12 +433,6 @@ type DeleteDirectoryRequest struct { DirectoryPath types.String `tfsdk:"-"` } -func (newState *DeleteDirectoryRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteDirectoryRequest) { -} - -func (newState *DeleteDirectoryRequest) SyncEffectiveFieldsDuringRead(existingState DeleteDirectoryRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDirectoryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -444,12 +467,6 @@ func (o DeleteDirectoryRequest) Type(ctx context.Context) attr.Type { type DeleteDirectoryResponse struct { } -func (newState *DeleteDirectoryResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteDirectoryResponse) { -} - -func (newState *DeleteDirectoryResponse) SyncEffectiveFieldsDuringRead(existingState DeleteDirectoryResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDirectoryResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -483,12 +500,6 @@ type DeleteFileRequest struct { FilePath types.String `tfsdk:"-"` } -func (newState *DeleteFileRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteFileRequest) { -} - -func (newState *DeleteFileRequest) SyncEffectiveFieldsDuringRead(existingState DeleteFileRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteFileRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -529,6 +540,11 @@ func (newState *DeleteResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan Del func (newState *DeleteResponse) SyncEffectiveFieldsDuringRead(existingState DeleteResponse) { } +func (c DeleteResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -576,6 +592,11 @@ func (newState *DirectoryEntry) SyncEffectiveFieldsDuringCreateOrUpdate(plan Dir func (newState *DirectoryEntry) SyncEffectiveFieldsDuringRead(existingState DirectoryEntry) { } +func (c DirectoryEntry) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DirectoryEntry. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -621,12 +642,6 @@ type DownloadRequest struct { FilePath types.String `tfsdk:"-"` } -func (newState *DownloadRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DownloadRequest) { -} - -func (newState *DownloadRequest) SyncEffectiveFieldsDuringRead(existingState DownloadRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DownloadRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -668,12 +683,6 @@ type DownloadResponse struct { LastModified types.String `tfsdk:"-"` } -func (newState *DownloadResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DownloadResponse) { -} - -func (newState *DownloadResponse) SyncEffectiveFieldsDuringRead(existingState DownloadResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DownloadResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -728,6 +737,11 @@ func (newState *FileInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan FileInfo) func (newState *FileInfo) SyncEffectiveFieldsDuringRead(existingState FileInfo) { } +func (c FileInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in FileInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -771,12 +785,6 @@ type GetDirectoryMetadataRequest struct { DirectoryPath types.String `tfsdk:"-"` } -func (newState *GetDirectoryMetadataRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDirectoryMetadataRequest) { -} - -func (newState *GetDirectoryMetadataRequest) SyncEffectiveFieldsDuringRead(existingState GetDirectoryMetadataRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDirectoryMetadataRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -811,12 +819,6 @@ func (o GetDirectoryMetadataRequest) Type(ctx context.Context) attr.Type { type GetDirectoryMetadataResponse struct { } -func (newState *GetDirectoryMetadataResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDirectoryMetadataResponse) { -} - -func (newState *GetDirectoryMetadataResponse) SyncEffectiveFieldsDuringRead(existingState GetDirectoryMetadataResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDirectoryMetadataResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -850,12 +852,6 @@ type GetMetadataRequest struct { FilePath types.String `tfsdk:"-"` } -func (newState *GetMetadataRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetMetadataRequest) { -} - -func (newState *GetMetadataRequest) SyncEffectiveFieldsDuringRead(existingState GetMetadataRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetMetadataRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -895,12 +891,6 @@ type GetMetadataResponse struct { LastModified types.String `tfsdk:"-"` } -func (newState *GetMetadataResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetMetadataResponse) { -} - -func (newState *GetMetadataResponse) SyncEffectiveFieldsDuringRead(existingState GetMetadataResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetMetadataResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -943,12 +933,6 @@ type GetStatusRequest struct { Path types.String `tfsdk:"-"` } -func (newState *GetStatusRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetStatusRequest) { -} - -func (newState *GetStatusRequest) SyncEffectiveFieldsDuringRead(existingState GetStatusRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetStatusRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -987,12 +971,6 @@ type ListDbfsRequest struct { Path types.String `tfsdk:"-"` } -func (newState *ListDbfsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListDbfsRequest) { -} - -func (newState *ListDbfsRequest) SyncEffectiveFieldsDuringRead(existingState ListDbfsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListDbfsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1050,12 +1028,6 @@ type ListDirectoryContentsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListDirectoryContentsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListDirectoryContentsRequest) { -} - -func (newState *ListDirectoryContentsRequest) SyncEffectiveFieldsDuringRead(existingState ListDirectoryContentsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListDirectoryContentsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1104,6 +1076,12 @@ func (newState *ListDirectoryResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *ListDirectoryResponse) SyncEffectiveFieldsDuringRead(existingState ListDirectoryResponse) { } +func (c ListDirectoryResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + DirectoryEntry{}.ToSchema(cs, append(path, "contents")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListDirectoryResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1179,6 +1157,12 @@ func (newState *ListStatusResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ListStatusResponse) SyncEffectiveFieldsDuringRead(existingState ListStatusResponse) { } +func (c ListStatusResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + FileInfo{}.ToSchema(cs, append(path, "files")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListStatusResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1251,6 +1235,12 @@ func (newState *MkDirs) SyncEffectiveFieldsDuringCreateOrUpdate(plan MkDirs) { func (newState *MkDirs) SyncEffectiveFieldsDuringRead(existingState MkDirs) { } +func (c MkDirs) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "path")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MkDirs. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1291,6 +1281,11 @@ func (newState *MkDirsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan MkD func (newState *MkDirsResponse) SyncEffectiveFieldsDuringRead(existingState MkDirsResponse) { } +func (c MkDirsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MkDirsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1333,6 +1328,13 @@ func (newState *Move) SyncEffectiveFieldsDuringCreateOrUpdate(plan Move) { func (newState *Move) SyncEffectiveFieldsDuringRead(existingState Move) { } +func (c Move) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "destination_path")...) + cs.SetRequired(append(path, "source_path")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Move. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1375,6 +1377,11 @@ func (newState *MoveResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan MoveR func (newState *MoveResponse) SyncEffectiveFieldsDuringRead(existingState MoveResponse) { } +func (c MoveResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MoveResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1417,6 +1424,12 @@ func (newState *Put) SyncEffectiveFieldsDuringCreateOrUpdate(plan Put) { func (newState *Put) SyncEffectiveFieldsDuringRead(existingState Put) { } +func (c Put) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "path")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Put. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1461,6 +1474,11 @@ func (newState *PutResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan PutRes func (newState *PutResponse) SyncEffectiveFieldsDuringRead(existingState PutResponse) { } +func (c PutResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PutResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1499,12 +1517,6 @@ type ReadDbfsRequest struct { Path types.String `tfsdk:"-"` } -func (newState *ReadDbfsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ReadDbfsRequest) { -} - -func (newState *ReadDbfsRequest) SyncEffectiveFieldsDuringRead(existingState ReadDbfsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ReadDbfsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1555,6 +1567,11 @@ func (newState *ReadResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ReadR func (newState *ReadResponse) SyncEffectiveFieldsDuringRead(existingState ReadResponse) { } +func (c ReadResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ReadResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1597,12 +1614,6 @@ type UploadRequest struct { Overwrite types.Bool `tfsdk:"-"` } -func (newState *UploadRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan UploadRequest) { -} - -func (newState *UploadRequest) SyncEffectiveFieldsDuringRead(existingState UploadRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UploadRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1641,12 +1652,6 @@ func (o UploadRequest) Type(ctx context.Context) attr.Type { type UploadResponse struct { } -func (newState *UploadResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan UploadResponse) { -} - -func (newState *UploadResponse) SyncEffectiveFieldsDuringRead(existingState UploadResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UploadResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/iam_tf/legacy_model.go b/internal/service/iam_tf/legacy_model.go index 27b2d0a18..1645cea7c 100755 --- a/internal/service/iam_tf/legacy_model.go +++ b/internal/service/iam_tf/legacy_model.go @@ -226,12 +226,6 @@ type DeleteAccountGroupRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteAccountGroupRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAccountGroupRequest_SdkV2) { -} - -func (newState *DeleteAccountGroupRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteAccountGroupRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAccountGroupRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -269,12 +263,6 @@ type DeleteAccountServicePrincipalRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteAccountServicePrincipalRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAccountServicePrincipalRequest_SdkV2) { -} - -func (newState *DeleteAccountServicePrincipalRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteAccountServicePrincipalRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAccountServicePrincipalRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -312,12 +300,6 @@ type DeleteAccountUserRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteAccountUserRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAccountUserRequest_SdkV2) { -} - -func (newState *DeleteAccountUserRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteAccountUserRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAccountUserRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -355,12 +337,6 @@ type DeleteGroupRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteGroupRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteGroupRequest_SdkV2) { -} - -func (newState *DeleteGroupRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteGroupRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteGroupRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -395,12 +371,6 @@ func (o DeleteGroupRequest_SdkV2) Type(ctx context.Context) attr.Type { type DeleteResponse_SdkV2 struct { } -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse_SdkV2) { -} - -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -434,12 +404,6 @@ type DeleteServicePrincipalRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteServicePrincipalRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteServicePrincipalRequest_SdkV2) { -} - -func (newState *DeleteServicePrincipalRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteServicePrincipalRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteServicePrincipalRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -477,12 +441,6 @@ type DeleteUserRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteUserRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteUserRequest_SdkV2) { -} - -func (newState *DeleteUserRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteUserRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteUserRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -522,12 +480,6 @@ type DeleteWorkspaceAssignmentRequest_SdkV2 struct { WorkspaceId types.Int64 `tfsdk:"-"` } -func (newState *DeleteWorkspaceAssignmentRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteWorkspaceAssignmentRequest_SdkV2) { -} - -func (newState *DeleteWorkspaceAssignmentRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteWorkspaceAssignmentRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteWorkspaceAssignmentRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -603,12 +555,6 @@ type GetAccountGroupRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *GetAccountGroupRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAccountGroupRequest_SdkV2) { -} - -func (newState *GetAccountGroupRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetAccountGroupRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAccountGroupRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -646,12 +592,6 @@ type GetAccountServicePrincipalRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *GetAccountServicePrincipalRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAccountServicePrincipalRequest_SdkV2) { -} - -func (newState *GetAccountServicePrincipalRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetAccountServicePrincipalRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAccountServicePrincipalRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -710,12 +650,6 @@ type GetAccountUserRequest_SdkV2 struct { StartIndex types.Int64 `tfsdk:"-"` } -func (newState *GetAccountUserRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAccountUserRequest_SdkV2) { -} - -func (newState *GetAccountUserRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetAccountUserRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAccountUserRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -767,12 +701,6 @@ type GetAssignableRolesForResourceRequest_SdkV2 struct { Resource types.String `tfsdk:"-"` } -func (newState *GetAssignableRolesForResourceRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAssignableRolesForResourceRequest_SdkV2) { -} - -func (newState *GetAssignableRolesForResourceRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetAssignableRolesForResourceRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAssignableRolesForResourceRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -881,12 +809,6 @@ type GetGroupRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *GetGroupRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetGroupRequest_SdkV2) { -} - -func (newState *GetGroupRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetGroupRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetGroupRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -998,12 +920,6 @@ type GetPermissionLevelsRequest_SdkV2 struct { RequestObjectType types.String `tfsdk:"-"` } -func (newState *GetPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPermissionLevelsRequest_SdkV2) { -} - -func (newState *GetPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetPermissionLevelsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1121,12 +1037,6 @@ type GetPermissionRequest_SdkV2 struct { RequestObjectType types.String `tfsdk:"-"` } -func (newState *GetPermissionRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPermissionRequest_SdkV2) { -} - -func (newState *GetPermissionRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetPermissionRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPermissionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1175,12 +1085,6 @@ type GetRuleSetRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *GetRuleSetRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRuleSetRequest_SdkV2) { -} - -func (newState *GetRuleSetRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetRuleSetRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRuleSetRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1220,12 +1124,6 @@ type GetServicePrincipalRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *GetServicePrincipalRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetServicePrincipalRequest_SdkV2) { -} - -func (newState *GetServicePrincipalRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetServicePrincipalRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetServicePrincipalRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1284,12 +1182,6 @@ type GetUserRequest_SdkV2 struct { StartIndex types.Int64 `tfsdk:"-"` } -func (newState *GetUserRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetUserRequest_SdkV2) { -} - -func (newState *GetUserRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetUserRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetUserRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1341,12 +1233,6 @@ type GetWorkspaceAssignmentRequest_SdkV2 struct { WorkspaceId types.Int64 `tfsdk:"-"` } -func (newState *GetWorkspaceAssignmentRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWorkspaceAssignmentRequest_SdkV2) { -} - -func (newState *GetWorkspaceAssignmentRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetWorkspaceAssignmentRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWorkspaceAssignmentRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1730,12 +1616,6 @@ type ListAccountGroupsRequest_SdkV2 struct { StartIndex types.Int64 `tfsdk:"-"` } -func (newState *ListAccountGroupsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAccountGroupsRequest_SdkV2) { -} - -func (newState *ListAccountGroupsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListAccountGroupsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAccountGroupsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1803,12 +1683,6 @@ type ListAccountServicePrincipalsRequest_SdkV2 struct { StartIndex types.Int64 `tfsdk:"-"` } -func (newState *ListAccountServicePrincipalsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAccountServicePrincipalsRequest_SdkV2) { -} - -func (newState *ListAccountServicePrincipalsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListAccountServicePrincipalsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAccountServicePrincipalsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1877,12 +1751,6 @@ type ListAccountUsersRequest_SdkV2 struct { StartIndex types.Int64 `tfsdk:"-"` } -func (newState *ListAccountUsersRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAccountUsersRequest_SdkV2) { -} - -func (newState *ListAccountUsersRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListAccountUsersRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAccountUsersRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1950,12 +1818,6 @@ type ListGroupsRequest_SdkV2 struct { StartIndex types.Int64 `tfsdk:"-"` } -func (newState *ListGroupsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListGroupsRequest_SdkV2) { -} - -func (newState *ListGroupsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListGroupsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListGroupsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2259,12 +2121,6 @@ type ListServicePrincipalsRequest_SdkV2 struct { StartIndex types.Int64 `tfsdk:"-"` } -func (newState *ListServicePrincipalsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListServicePrincipalsRequest_SdkV2) { -} - -func (newState *ListServicePrincipalsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListServicePrincipalsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListServicePrincipalsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2333,12 +2189,6 @@ type ListUsersRequest_SdkV2 struct { StartIndex types.Int64 `tfsdk:"-"` } -func (newState *ListUsersRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListUsersRequest_SdkV2) { -} - -func (newState *ListUsersRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListUsersRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListUsersRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2506,12 +2356,6 @@ type ListWorkspaceAssignmentRequest_SdkV2 struct { WorkspaceId types.Int64 `tfsdk:"-"` } -func (newState *ListWorkspaceAssignmentRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListWorkspaceAssignmentRequest_SdkV2) { -} - -func (newState *ListWorkspaceAssignmentRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListWorkspaceAssignmentRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListWorkspaceAssignmentRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3344,12 +3188,6 @@ func (o Patch_SdkV2) Type(ctx context.Context) attr.Type { type PatchResponse_SdkV2 struct { } -func (newState *PatchResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan PatchResponse_SdkV2) { -} - -func (newState *PatchResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState PatchResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in PatchResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4317,12 +4155,6 @@ func (o *ServicePrincipal_SdkV2) SetSchemas(ctx context.Context, v []types.Strin type UpdateResponse_SdkV2 struct { } -func (newState *UpdateResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateResponse_SdkV2) { -} - -func (newState *UpdateResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdateResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/iam_tf/model.go b/internal/service/iam_tf/model.go index e70ded669..d4368fd02 100755 --- a/internal/service/iam_tf/model.go +++ b/internal/service/iam_tf/model.go @@ -15,6 +15,7 @@ import ( "reflect" pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common" + "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/tfschema" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/types" @@ -38,6 +39,11 @@ func (newState *AccessControlRequest) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *AccessControlRequest) SyncEffectiveFieldsDuringRead(existingState AccessControlRequest) { } +func (c AccessControlRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AccessControlRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -94,6 +100,12 @@ func (newState *AccessControlResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *AccessControlResponse) SyncEffectiveFieldsDuringRead(existingState AccessControlResponse) { } +func (c AccessControlResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Permission{}.ToSchema(cs, append(path, "all_permissions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AccessControlResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -181,6 +193,11 @@ func (newState *ComplexValue) SyncEffectiveFieldsDuringCreateOrUpdate(plan Compl func (newState *ComplexValue) SyncEffectiveFieldsDuringRead(existingState ComplexValue) { } +func (c ComplexValue) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ComplexValue. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -226,12 +243,6 @@ type DeleteAccountGroupRequest struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteAccountGroupRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAccountGroupRequest) { -} - -func (newState *DeleteAccountGroupRequest) SyncEffectiveFieldsDuringRead(existingState DeleteAccountGroupRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAccountGroupRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -269,12 +280,6 @@ type DeleteAccountServicePrincipalRequest struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteAccountServicePrincipalRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAccountServicePrincipalRequest) { -} - -func (newState *DeleteAccountServicePrincipalRequest) SyncEffectiveFieldsDuringRead(existingState DeleteAccountServicePrincipalRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAccountServicePrincipalRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -312,12 +317,6 @@ type DeleteAccountUserRequest struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteAccountUserRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAccountUserRequest) { -} - -func (newState *DeleteAccountUserRequest) SyncEffectiveFieldsDuringRead(existingState DeleteAccountUserRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAccountUserRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -355,12 +354,6 @@ type DeleteGroupRequest struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteGroupRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteGroupRequest) { -} - -func (newState *DeleteGroupRequest) SyncEffectiveFieldsDuringRead(existingState DeleteGroupRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteGroupRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -395,12 +388,6 @@ func (o DeleteGroupRequest) Type(ctx context.Context) attr.Type { type DeleteResponse struct { } -func (newState *DeleteResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse) { -} - -func (newState *DeleteResponse) SyncEffectiveFieldsDuringRead(existingState DeleteResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -434,12 +421,6 @@ type DeleteServicePrincipalRequest struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteServicePrincipalRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteServicePrincipalRequest) { -} - -func (newState *DeleteServicePrincipalRequest) SyncEffectiveFieldsDuringRead(existingState DeleteServicePrincipalRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteServicePrincipalRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -477,12 +458,6 @@ type DeleteUserRequest struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteUserRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteUserRequest) { -} - -func (newState *DeleteUserRequest) SyncEffectiveFieldsDuringRead(existingState DeleteUserRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteUserRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -522,12 +497,6 @@ type DeleteWorkspaceAssignmentRequest struct { WorkspaceId types.Int64 `tfsdk:"-"` } -func (newState *DeleteWorkspaceAssignmentRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteWorkspaceAssignmentRequest) { -} - -func (newState *DeleteWorkspaceAssignmentRequest) SyncEffectiveFieldsDuringRead(existingState DeleteWorkspaceAssignmentRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteWorkspaceAssignmentRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -570,6 +539,11 @@ func (newState *DeleteWorkspacePermissionAssignmentResponse) SyncEffectiveFields func (newState *DeleteWorkspacePermissionAssignmentResponse) SyncEffectiveFieldsDuringRead(existingState DeleteWorkspacePermissionAssignmentResponse) { } +func (c DeleteWorkspacePermissionAssignmentResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteWorkspacePermissionAssignmentResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -603,12 +577,6 @@ type GetAccountGroupRequest struct { Id types.String `tfsdk:"-"` } -func (newState *GetAccountGroupRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAccountGroupRequest) { -} - -func (newState *GetAccountGroupRequest) SyncEffectiveFieldsDuringRead(existingState GetAccountGroupRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAccountGroupRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -646,12 +614,6 @@ type GetAccountServicePrincipalRequest struct { Id types.String `tfsdk:"-"` } -func (newState *GetAccountServicePrincipalRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAccountServicePrincipalRequest) { -} - -func (newState *GetAccountServicePrincipalRequest) SyncEffectiveFieldsDuringRead(existingState GetAccountServicePrincipalRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAccountServicePrincipalRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -710,12 +672,6 @@ type GetAccountUserRequest struct { StartIndex types.Int64 `tfsdk:"-"` } -func (newState *GetAccountUserRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAccountUserRequest) { -} - -func (newState *GetAccountUserRequest) SyncEffectiveFieldsDuringRead(existingState GetAccountUserRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAccountUserRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -767,12 +723,6 @@ type GetAssignableRolesForResourceRequest struct { Resource types.String `tfsdk:"-"` } -func (newState *GetAssignableRolesForResourceRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAssignableRolesForResourceRequest) { -} - -func (newState *GetAssignableRolesForResourceRequest) SyncEffectiveFieldsDuringRead(existingState GetAssignableRolesForResourceRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAssignableRolesForResourceRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -814,6 +764,12 @@ func (newState *GetAssignableRolesForResourceResponse) SyncEffectiveFieldsDuring func (newState *GetAssignableRolesForResourceResponse) SyncEffectiveFieldsDuringRead(existingState GetAssignableRolesForResourceResponse) { } +func (c GetAssignableRolesForResourceResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Role{}.ToSchema(cs, append(path, "roles")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAssignableRolesForResourceResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -881,12 +837,6 @@ type GetGroupRequest struct { Id types.String `tfsdk:"-"` } -func (newState *GetGroupRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetGroupRequest) { -} - -func (newState *GetGroupRequest) SyncEffectiveFieldsDuringRead(existingState GetGroupRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetGroupRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -929,6 +879,12 @@ func (newState *GetPasswordPermissionLevelsResponse) SyncEffectiveFieldsDuringCr func (newState *GetPasswordPermissionLevelsResponse) SyncEffectiveFieldsDuringRead(existingState GetPasswordPermissionLevelsResponse) { } +func (c GetPasswordPermissionLevelsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PasswordPermissionsDescription{}.ToSchema(cs, append(path, "permission_levels")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPasswordPermissionLevelsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -998,12 +954,6 @@ type GetPermissionLevelsRequest struct { RequestObjectType types.String `tfsdk:"-"` } -func (newState *GetPermissionLevelsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPermissionLevelsRequest) { -} - -func (newState *GetPermissionLevelsRequest) SyncEffectiveFieldsDuringRead(existingState GetPermissionLevelsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1048,6 +998,12 @@ func (newState *GetPermissionLevelsResponse) SyncEffectiveFieldsDuringCreateOrUp func (newState *GetPermissionLevelsResponse) SyncEffectiveFieldsDuringRead(existingState GetPermissionLevelsResponse) { } +func (c GetPermissionLevelsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PermissionsDescription{}.ToSchema(cs, append(path, "permission_levels")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPermissionLevelsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1121,12 +1077,6 @@ type GetPermissionRequest struct { RequestObjectType types.String `tfsdk:"-"` } -func (newState *GetPermissionRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPermissionRequest) { -} - -func (newState *GetPermissionRequest) SyncEffectiveFieldsDuringRead(existingState GetPermissionRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPermissionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1175,12 +1125,6 @@ type GetRuleSetRequest struct { Name types.String `tfsdk:"-"` } -func (newState *GetRuleSetRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRuleSetRequest) { -} - -func (newState *GetRuleSetRequest) SyncEffectiveFieldsDuringRead(existingState GetRuleSetRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRuleSetRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1220,12 +1164,6 @@ type GetServicePrincipalRequest struct { Id types.String `tfsdk:"-"` } -func (newState *GetServicePrincipalRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetServicePrincipalRequest) { -} - -func (newState *GetServicePrincipalRequest) SyncEffectiveFieldsDuringRead(existingState GetServicePrincipalRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetServicePrincipalRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1284,12 +1222,6 @@ type GetUserRequest struct { StartIndex types.Int64 `tfsdk:"-"` } -func (newState *GetUserRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetUserRequest) { -} - -func (newState *GetUserRequest) SyncEffectiveFieldsDuringRead(existingState GetUserRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetUserRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1341,12 +1273,6 @@ type GetWorkspaceAssignmentRequest struct { WorkspaceId types.Int64 `tfsdk:"-"` } -func (newState *GetWorkspaceAssignmentRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWorkspaceAssignmentRequest) { -} - -func (newState *GetWorkspaceAssignmentRequest) SyncEffectiveFieldsDuringRead(existingState GetWorkspaceAssignmentRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWorkspaceAssignmentRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1391,6 +1317,12 @@ func (newState *GrantRule) SyncEffectiveFieldsDuringCreateOrUpdate(plan GrantRul func (newState *GrantRule) SyncEffectiveFieldsDuringRead(existingState GrantRule) { } +func (c GrantRule) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "role")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GrantRule. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1484,6 +1416,16 @@ func (newState *Group) SyncEffectiveFieldsDuringCreateOrUpdate(plan Group) { func (newState *Group) SyncEffectiveFieldsDuringRead(existingState Group) { } +func (c Group) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ComplexValue{}.ToSchema(cs, append(path, "entitlements")...) + ComplexValue{}.ToSchema(cs, append(path, "groups")...) + ComplexValue{}.ToSchema(cs, append(path, "members")...) + ResourceMeta{}.ToSchema(cs, append(path, "meta")...) + ComplexValue{}.ToSchema(cs, append(path, "roles")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Group. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1730,12 +1672,6 @@ type ListAccountGroupsRequest struct { StartIndex types.Int64 `tfsdk:"-"` } -func (newState *ListAccountGroupsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAccountGroupsRequest) { -} - -func (newState *ListAccountGroupsRequest) SyncEffectiveFieldsDuringRead(existingState ListAccountGroupsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAccountGroupsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1803,12 +1739,6 @@ type ListAccountServicePrincipalsRequest struct { StartIndex types.Int64 `tfsdk:"-"` } -func (newState *ListAccountServicePrincipalsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAccountServicePrincipalsRequest) { -} - -func (newState *ListAccountServicePrincipalsRequest) SyncEffectiveFieldsDuringRead(existingState ListAccountServicePrincipalsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAccountServicePrincipalsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1877,12 +1807,6 @@ type ListAccountUsersRequest struct { StartIndex types.Int64 `tfsdk:"-"` } -func (newState *ListAccountUsersRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAccountUsersRequest) { -} - -func (newState *ListAccountUsersRequest) SyncEffectiveFieldsDuringRead(existingState ListAccountUsersRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAccountUsersRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1950,12 +1874,6 @@ type ListGroupsRequest struct { StartIndex types.Int64 `tfsdk:"-"` } -func (newState *ListGroupsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListGroupsRequest) { -} - -func (newState *ListGroupsRequest) SyncEffectiveFieldsDuringRead(existingState ListGroupsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListGroupsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2019,6 +1937,12 @@ func (newState *ListGroupsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ListGroupsResponse) SyncEffectiveFieldsDuringRead(existingState ListGroupsResponse) { } +func (c ListGroupsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Group{}.ToSchema(cs, append(path, "Resources")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListGroupsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2137,6 +2061,12 @@ func (newState *ListServicePrincipalResponse) SyncEffectiveFieldsDuringCreateOrU func (newState *ListServicePrincipalResponse) SyncEffectiveFieldsDuringRead(existingState ListServicePrincipalResponse) { } +func (c ListServicePrincipalResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ServicePrincipal{}.ToSchema(cs, append(path, "Resources")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListServicePrincipalResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2259,12 +2189,6 @@ type ListServicePrincipalsRequest struct { StartIndex types.Int64 `tfsdk:"-"` } -func (newState *ListServicePrincipalsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListServicePrincipalsRequest) { -} - -func (newState *ListServicePrincipalsRequest) SyncEffectiveFieldsDuringRead(existingState ListServicePrincipalsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListServicePrincipalsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2333,12 +2257,6 @@ type ListUsersRequest struct { StartIndex types.Int64 `tfsdk:"-"` } -func (newState *ListUsersRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListUsersRequest) { -} - -func (newState *ListUsersRequest) SyncEffectiveFieldsDuringRead(existingState ListUsersRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListUsersRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2402,6 +2320,12 @@ func (newState *ListUsersResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ListUsersResponse) SyncEffectiveFieldsDuringRead(existingState ListUsersResponse) { } +func (c ListUsersResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + User{}.ToSchema(cs, append(path, "Resources")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListUsersResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2506,12 +2430,6 @@ type ListWorkspaceAssignmentRequest struct { WorkspaceId types.Int64 `tfsdk:"-"` } -func (newState *ListWorkspaceAssignmentRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListWorkspaceAssignmentRequest) { -} - -func (newState *ListWorkspaceAssignmentRequest) SyncEffectiveFieldsDuringRead(existingState ListWorkspaceAssignmentRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListWorkspaceAssignmentRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2561,6 +2479,14 @@ func (newState *MigratePermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpda func (newState *MigratePermissionsRequest) SyncEffectiveFieldsDuringRead(existingState MigratePermissionsRequest) { } +func (c MigratePermissionsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "from_workspace_group_name")...) + cs.SetRequired(append(path, "to_account_group_name")...) + cs.SetRequired(append(path, "workspace_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MigratePermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2609,6 +2535,11 @@ func (newState *MigratePermissionsResponse) SyncEffectiveFieldsDuringCreateOrUpd func (newState *MigratePermissionsResponse) SyncEffectiveFieldsDuringRead(existingState MigratePermissionsResponse) { } +func (c MigratePermissionsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MigratePermissionsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2653,6 +2584,11 @@ func (newState *Name) SyncEffectiveFieldsDuringCreateOrUpdate(plan Name) { func (newState *Name) SyncEffectiveFieldsDuringRead(existingState Name) { } +func (c Name) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Name. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2700,6 +2636,12 @@ func (newState *ObjectPermissions) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ObjectPermissions) SyncEffectiveFieldsDuringRead(existingState ObjectPermissions) { } +func (c ObjectPermissions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AccessControlResponse{}.ToSchema(cs, append(path, "access_control_list")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ObjectPermissions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2781,6 +2723,13 @@ func (newState *PartialUpdate) SyncEffectiveFieldsDuringCreateOrUpdate(plan Part func (newState *PartialUpdate) SyncEffectiveFieldsDuringRead(existingState PartialUpdate) { } +func (c PartialUpdate) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "id")...) + Patch{}.ToSchema(cs, append(path, "Operations")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PartialUpdate. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2892,6 +2841,11 @@ func (newState *PasswordAccessControlRequest) SyncEffectiveFieldsDuringCreateOrU func (newState *PasswordAccessControlRequest) SyncEffectiveFieldsDuringRead(existingState PasswordAccessControlRequest) { } +func (c PasswordAccessControlRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PasswordAccessControlRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2948,6 +2902,12 @@ func (newState *PasswordAccessControlResponse) SyncEffectiveFieldsDuringCreateOr func (newState *PasswordAccessControlResponse) SyncEffectiveFieldsDuringRead(existingState PasswordAccessControlResponse) { } +func (c PasswordAccessControlResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PasswordPermission{}.ToSchema(cs, append(path, "all_permissions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PasswordAccessControlResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3031,6 +2991,11 @@ func (newState *PasswordPermission) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *PasswordPermission) SyncEffectiveFieldsDuringRead(existingState PasswordPermission) { } +func (c PasswordPermission) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PasswordPermission. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3110,6 +3075,12 @@ func (newState *PasswordPermissions) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *PasswordPermissions) SyncEffectiveFieldsDuringRead(existingState PasswordPermissions) { } +func (c PasswordPermissions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PasswordAccessControlResponse{}.ToSchema(cs, append(path, "access_control_list")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PasswordPermissions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3187,6 +3158,11 @@ func (newState *PasswordPermissionsDescription) SyncEffectiveFieldsDuringCreateO func (newState *PasswordPermissionsDescription) SyncEffectiveFieldsDuringRead(existingState PasswordPermissionsDescription) { } +func (c PasswordPermissionsDescription) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PasswordPermissionsDescription. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3230,6 +3206,12 @@ func (newState *PasswordPermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpd func (newState *PasswordPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState PasswordPermissionsRequest) { } +func (c PasswordPermissionsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PasswordAccessControlRequest{}.ToSchema(cs, append(path, "access_control_list")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PasswordPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3306,6 +3288,11 @@ func (newState *Patch) SyncEffectiveFieldsDuringCreateOrUpdate(plan Patch) { func (newState *Patch) SyncEffectiveFieldsDuringRead(existingState Patch) { } +func (c Patch) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Patch. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3344,12 +3331,6 @@ func (o Patch) Type(ctx context.Context) attr.Type { type PatchResponse struct { } -func (newState *PatchResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan PatchResponse) { -} - -func (newState *PatchResponse) SyncEffectiveFieldsDuringRead(existingState PatchResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in PatchResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3391,6 +3372,11 @@ func (newState *Permission) SyncEffectiveFieldsDuringCreateOrUpdate(plan Permiss func (newState *Permission) SyncEffectiveFieldsDuringRead(existingState Permission) { } +func (c Permission) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Permission. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3473,6 +3459,12 @@ func (newState *PermissionAssignment) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *PermissionAssignment) SyncEffectiveFieldsDuringRead(existingState PermissionAssignment) { } +func (c PermissionAssignment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PrincipalOutput{}.ToSchema(cs, append(path, "principal")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PermissionAssignment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3578,6 +3570,12 @@ func (newState *PermissionAssignments) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *PermissionAssignments) SyncEffectiveFieldsDuringRead(existingState PermissionAssignments) { } +func (c PermissionAssignments) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PermissionAssignment{}.ToSchema(cs, append(path, "permission_assignments")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PermissionAssignments. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3652,6 +3650,11 @@ func (newState *PermissionOutput) SyncEffectiveFieldsDuringCreateOrUpdate(plan P func (newState *PermissionOutput) SyncEffectiveFieldsDuringRead(existingState PermissionOutput) { } +func (c PermissionOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PermissionOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3697,6 +3700,11 @@ func (newState *PermissionsDescription) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *PermissionsDescription) SyncEffectiveFieldsDuringRead(existingState PermissionsDescription) { } +func (c PermissionsDescription) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PermissionsDescription. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3748,6 +3756,14 @@ func (newState *PermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *PermissionsRequest) SyncEffectiveFieldsDuringRead(existingState PermissionsRequest) { } +func (c PermissionsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AccessControlRequest{}.ToSchema(cs, append(path, "access_control_list")...) + cs.SetRequired(append(path, "request_object_id")...) + cs.SetRequired(append(path, "request_object_type")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3834,6 +3850,11 @@ func (newState *PrincipalOutput) SyncEffectiveFieldsDuringCreateOrUpdate(plan Pr func (newState *PrincipalOutput) SyncEffectiveFieldsDuringRead(existingState PrincipalOutput) { } +func (c PrincipalOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PrincipalOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3885,6 +3906,11 @@ func (newState *ResourceMeta) SyncEffectiveFieldsDuringCreateOrUpdate(plan Resou func (newState *ResourceMeta) SyncEffectiveFieldsDuringRead(existingState ResourceMeta) { } +func (c ResourceMeta) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ResourceMeta. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3927,6 +3953,12 @@ func (newState *Role) SyncEffectiveFieldsDuringCreateOrUpdate(plan Role) { func (newState *Role) SyncEffectiveFieldsDuringRead(existingState Role) { } +func (c Role) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Role. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3973,6 +4005,12 @@ func (newState *RuleSetResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan Ru func (newState *RuleSetResponse) SyncEffectiveFieldsDuringRead(existingState RuleSetResponse) { } +func (c RuleSetResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + GrantRule{}.ToSchema(cs, append(path, "grant_rules")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RuleSetResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4055,6 +4093,14 @@ func (newState *RuleSetUpdateRequest) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *RuleSetUpdateRequest) SyncEffectiveFieldsDuringRead(existingState RuleSetUpdateRequest) { } +func (c RuleSetUpdateRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "etag")...) + GrantRule{}.ToSchema(cs, append(path, "grant_rules")...) + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RuleSetUpdateRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4150,6 +4196,14 @@ func (newState *ServicePrincipal) SyncEffectiveFieldsDuringCreateOrUpdate(plan S func (newState *ServicePrincipal) SyncEffectiveFieldsDuringRead(existingState ServicePrincipal) { } +func (c ServicePrincipal) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ComplexValue{}.ToSchema(cs, append(path, "entitlements")...) + ComplexValue{}.ToSchema(cs, append(path, "groups")...) + ComplexValue{}.ToSchema(cs, append(path, "roles")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ServicePrincipal. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4317,12 +4371,6 @@ func (o *ServicePrincipal) SetSchemas(ctx context.Context, v []types.String) { type UpdateResponse struct { } -func (newState *UpdateResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateResponse) { -} - -func (newState *UpdateResponse) SyncEffectiveFieldsDuringRead(existingState UpdateResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4363,6 +4411,14 @@ func (newState *UpdateRuleSetRequest) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *UpdateRuleSetRequest) SyncEffectiveFieldsDuringRead(existingState UpdateRuleSetRequest) { } +func (c UpdateRuleSetRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "rule_set")...) + RuleSetUpdateRequest{}.ToSchema(cs, append(path, "rule_set")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateRuleSetRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4446,6 +4502,13 @@ func (newState *UpdateWorkspaceAssignments) SyncEffectiveFieldsDuringCreateOrUpd func (newState *UpdateWorkspaceAssignments) SyncEffectiveFieldsDuringRead(existingState UpdateWorkspaceAssignments) { } +func (c UpdateWorkspaceAssignments) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "principal_id")...) + cs.SetRequired(append(path, "workspace_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateWorkspaceAssignments. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4551,6 +4614,16 @@ func (newState *User) SyncEffectiveFieldsDuringCreateOrUpdate(plan User) { func (newState *User) SyncEffectiveFieldsDuringRead(existingState User) { } +func (c User) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ComplexValue{}.ToSchema(cs, append(path, "emails")...) + ComplexValue{}.ToSchema(cs, append(path, "entitlements")...) + ComplexValue{}.ToSchema(cs, append(path, "groups")...) + Name{}.ToSchema(cs, append(path, "name")...) + ComplexValue{}.ToSchema(cs, append(path, "roles")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in User. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4788,6 +4861,12 @@ func (newState *WorkspacePermissions) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *WorkspacePermissions) SyncEffectiveFieldsDuringRead(existingState WorkspacePermissions) { } +func (c WorkspacePermissions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PermissionOutput{}.ToSchema(cs, append(path, "permissions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WorkspacePermissions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/jobs_tf/legacy_model.go b/internal/service/jobs_tf/legacy_model.go index 83f1687cd..8b515240d 100755 --- a/internal/service/jobs_tf/legacy_model.go +++ b/internal/service/jobs_tf/legacy_model.go @@ -746,12 +746,6 @@ func (o CancelAllRuns_SdkV2) Type(ctx context.Context) attr.Type { type CancelAllRunsResponse_SdkV2 struct { } -func (newState *CancelAllRunsResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CancelAllRunsResponse_SdkV2) { -} - -func (newState *CancelAllRunsResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState CancelAllRunsResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelAllRunsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -824,12 +818,6 @@ func (o CancelRun_SdkV2) Type(ctx context.Context) attr.Type { type CancelRunResponse_SdkV2 struct { } -func (newState *CancelRunResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CancelRunResponse_SdkV2) { -} - -func (newState *CancelRunResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState CancelRunResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelRunResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2296,12 +2284,6 @@ func (o DeleteJob_SdkV2) Type(ctx context.Context) attr.Type { type DeleteResponse_SdkV2 struct { } -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse_SdkV2) { -} - -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2374,12 +2356,6 @@ func (o DeleteRun_SdkV2) Type(ctx context.Context) attr.Type { type DeleteRunResponse_SdkV2 struct { } -func (newState *DeleteRunResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteRunResponse_SdkV2) { -} - -func (newState *DeleteRunResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteRunResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteRunResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2715,12 +2691,6 @@ type ExportRunRequest_SdkV2 struct { ViewsToExport types.String `tfsdk:"-"` } -func (newState *ExportRunRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ExportRunRequest_SdkV2) { -} - -func (newState *ExportRunRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ExportRunRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExportRunRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3118,12 +3088,6 @@ type GetJobPermissionLevelsRequest_SdkV2 struct { JobId types.String `tfsdk:"-"` } -func (newState *GetJobPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetJobPermissionLevelsRequest_SdkV2) { -} - -func (newState *GetJobPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetJobPermissionLevelsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetJobPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3233,12 +3197,6 @@ type GetJobPermissionsRequest_SdkV2 struct { JobId types.String `tfsdk:"-"` } -func (newState *GetJobPermissionsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetJobPermissionsRequest_SdkV2) { -} - -func (newState *GetJobPermissionsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetJobPermissionsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetJobPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3277,12 +3235,6 @@ type GetJobRequest_SdkV2 struct { JobId types.Int64 `tfsdk:"-"` } -func (newState *GetJobRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetJobRequest_SdkV2) { -} - -func (newState *GetJobRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetJobRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetJobRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3320,12 +3272,6 @@ type GetPolicyComplianceRequest_SdkV2 struct { JobId types.Int64 `tfsdk:"-"` } -func (newState *GetPolicyComplianceRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPolicyComplianceRequest_SdkV2) { -} - -func (newState *GetPolicyComplianceRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetPolicyComplianceRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPolicyComplianceRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3446,12 +3392,6 @@ type GetRunOutputRequest_SdkV2 struct { RunId types.Int64 `tfsdk:"-"` } -func (newState *GetRunOutputRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRunOutputRequest_SdkV2) { -} - -func (newState *GetRunOutputRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetRunOutputRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRunOutputRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3497,12 +3437,6 @@ type GetRunRequest_SdkV2 struct { RunId types.Int64 `tfsdk:"-"` } -func (newState *GetRunRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRunRequest_SdkV2) { -} - -func (newState *GetRunRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetRunRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRunRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5910,12 +5844,6 @@ type ListJobComplianceRequest_SdkV2 struct { PolicyId types.String `tfsdk:"-"` } -func (newState *ListJobComplianceRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListJobComplianceRequest_SdkV2) { -} - -func (newState *ListJobComplianceRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListJobComplianceRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListJobComplianceRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5969,12 +5897,6 @@ type ListJobsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListJobsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListJobsRequest_SdkV2) { -} - -func (newState *ListJobsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListJobsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListJobsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6142,12 +6064,6 @@ type ListRunsRequest_SdkV2 struct { StartTimeTo types.Int64 `tfsdk:"-"` } -func (newState *ListRunsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListRunsRequest_SdkV2) { -} - -func (newState *ListRunsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListRunsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListRunsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7537,12 +7453,6 @@ func (o *ResetJob_SdkV2) SetNewSettings(ctx context.Context, v JobSettings_SdkV2 type ResetResponse_SdkV2 struct { } -func (newState *ResetResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ResetResponse_SdkV2) { -} - -func (newState *ResetResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState ResetResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ResetResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16206,12 +16116,6 @@ func (o *UpdateJob_SdkV2) SetNewSettings(ctx context.Context, v JobSettings_SdkV type UpdateResponse_SdkV2 struct { } -func (newState *UpdateResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateResponse_SdkV2) { -} - -func (newState *UpdateResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdateResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/jobs_tf/model.go b/internal/service/jobs_tf/model.go index 954b2faec..280ff8fb9 100755 --- a/internal/service/jobs_tf/model.go +++ b/internal/service/jobs_tf/model.go @@ -15,6 +15,7 @@ import ( "reflect" pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common" + "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/tfschema" "github.com/databricks/terraform-provider-databricks/internal/service/compute_tf" "github.com/hashicorp/terraform-plugin-framework/attr" @@ -49,6 +50,13 @@ func (newState *BaseJob) SyncEffectiveFieldsDuringCreateOrUpdate(plan BaseJob) { func (newState *BaseJob) SyncEffectiveFieldsDuringRead(existingState BaseJob) { } +func (c BaseJob) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "effective_budget_policy_id")...) + JobSettings{}.ToSchema(cs, append(path, "settings")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in BaseJob. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -256,6 +264,23 @@ func (newState *BaseRun) SyncEffectiveFieldsDuringCreateOrUpdate(plan BaseRun) { func (newState *BaseRun) SyncEffectiveFieldsDuringRead(existingState BaseRun) { } +func (c BaseRun) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ClusterInstance{}.ToSchema(cs, append(path, "cluster_instance")...) + ClusterSpec{}.ToSchema(cs, append(path, "cluster_spec")...) + GitSource{}.ToSchema(cs, append(path, "git_source")...) + JobCluster{}.ToSchema(cs, append(path, "job_clusters")...) + JobParameter{}.ToSchema(cs, append(path, "job_parameters")...) + RunParameters{}.ToSchema(cs, append(path, "overriding_parameters")...) + RepairHistoryItem{}.ToSchema(cs, append(path, "repair_history")...) + CronSchedule{}.ToSchema(cs, append(path, "schedule")...) + RunState{}.ToSchema(cs, append(path, "state")...) + RunStatus{}.ToSchema(cs, append(path, "status")...) + RunTask{}.ToSchema(cs, append(path, "tasks")...) + TriggerInfo{}.ToSchema(cs, append(path, "trigger_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in BaseRun. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -710,6 +735,11 @@ func (newState *CancelAllRuns) SyncEffectiveFieldsDuringCreateOrUpdate(plan Canc func (newState *CancelAllRuns) SyncEffectiveFieldsDuringRead(existingState CancelAllRuns) { } +func (c CancelAllRuns) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelAllRuns. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -746,12 +776,6 @@ func (o CancelAllRuns) Type(ctx context.Context) attr.Type { type CancelAllRunsResponse struct { } -func (newState *CancelAllRunsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan CancelAllRunsResponse) { -} - -func (newState *CancelAllRunsResponse) SyncEffectiveFieldsDuringRead(existingState CancelAllRunsResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelAllRunsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -790,6 +814,12 @@ func (newState *CancelRun) SyncEffectiveFieldsDuringCreateOrUpdate(plan CancelRu func (newState *CancelRun) SyncEffectiveFieldsDuringRead(existingState CancelRun) { } +func (c CancelRun) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "run_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelRun. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -824,12 +854,6 @@ func (o CancelRun) Type(ctx context.Context) attr.Type { type CancelRunResponse struct { } -func (newState *CancelRunResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan CancelRunResponse) { -} - -func (newState *CancelRunResponse) SyncEffectiveFieldsDuringRead(existingState CancelRunResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelRunResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -873,6 +897,11 @@ func (newState *CleanRoomTaskRunState) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *CleanRoomTaskRunState) SyncEffectiveFieldsDuringRead(existingState CleanRoomTaskRunState) { } +func (c CleanRoomTaskRunState) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CleanRoomTaskRunState. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -925,6 +954,13 @@ func (newState *CleanRoomsNotebookTask) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *CleanRoomsNotebookTask) SyncEffectiveFieldsDuringRead(existingState CleanRoomsNotebookTask) { } +func (c CleanRoomsNotebookTask) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "clean_room_name")...) + cs.SetRequired(append(path, "notebook_name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CleanRoomsNotebookTask. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1019,6 +1055,11 @@ func (newState *ClusterInstance) SyncEffectiveFieldsDuringCreateOrUpdate(plan Cl func (newState *ClusterInstance) SyncEffectiveFieldsDuringRead(existingState ClusterInstance) { } +func (c ClusterInstance) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterInstance. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1075,6 +1116,12 @@ func (newState *ClusterSpec) SyncEffectiveFieldsDuringCreateOrUpdate(plan Cluste func (newState *ClusterSpec) SyncEffectiveFieldsDuringRead(existingState ClusterSpec) { } +func (c ClusterSpec) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + compute_tf.ClusterSpec{}.ToSchema(cs, append(path, "new_cluster")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterSpec. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1197,6 +1244,14 @@ func (newState *ConditionTask) SyncEffectiveFieldsDuringCreateOrUpdate(plan Cond func (newState *ConditionTask) SyncEffectiveFieldsDuringRead(existingState ConditionTask) { } +func (c ConditionTask) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "left")...) + cs.SetRequired(append(path, "op")...) + cs.SetRequired(append(path, "right")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ConditionTask. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1244,6 +1299,11 @@ func (newState *Continuous) SyncEffectiveFieldsDuringCreateOrUpdate(plan Continu func (newState *Continuous) SyncEffectiveFieldsDuringRead(existingState Continuous) { } +func (c Continuous) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Continuous. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1386,6 +1446,27 @@ func (newState *CreateJob) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateJo func (newState *CreateJob) SyncEffectiveFieldsDuringRead(existingState CreateJob) { } +func (c CreateJob) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + JobAccessControlRequest{}.ToSchema(cs, append(path, "access_control_list")...) + Continuous{}.ToSchema(cs, append(path, "continuous")...) + JobDeployment{}.ToSchema(cs, append(path, "deployment")...) + JobEmailNotifications{}.ToSchema(cs, append(path, "email_notifications")...) + JobEnvironment{}.ToSchema(cs, append(path, "environment")...) + GitSource{}.ToSchema(cs, append(path, "git_source")...) + JobsHealthRules{}.ToSchema(cs, append(path, "health")...) + JobCluster{}.ToSchema(cs, append(path, "job_cluster")...) + JobNotificationSettings{}.ToSchema(cs, append(path, "notification_settings")...) + JobParameterDefinition{}.ToSchema(cs, append(path, "parameter")...) + QueueSettings{}.ToSchema(cs, append(path, "queue")...) + JobRunAs{}.ToSchema(cs, append(path, "run_as")...) + CronSchedule{}.ToSchema(cs, append(path, "schedule")...) + Task{}.ToSchema(cs, append(path, "task")...) + TriggerSettings{}.ToSchema(cs, append(path, "trigger")...) + WebhookNotifications{}.ToSchema(cs, append(path, "webhook_notifications")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateJob. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1969,6 +2050,11 @@ func (newState *CreateResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan Cre func (newState *CreateResponse) SyncEffectiveFieldsDuringRead(existingState CreateResponse) { } +func (c CreateResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2021,6 +2107,13 @@ func (newState *CronSchedule) SyncEffectiveFieldsDuringCreateOrUpdate(plan CronS func (newState *CronSchedule) SyncEffectiveFieldsDuringRead(existingState CronSchedule) { } +func (c CronSchedule) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "quartz_cron_expression")...) + cs.SetRequired(append(path, "timezone_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CronSchedule. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2072,6 +2165,11 @@ func (newState *DbtOutput) SyncEffectiveFieldsDuringCreateOrUpdate(plan DbtOutpu func (newState *DbtOutput) SyncEffectiveFieldsDuringRead(existingState DbtOutput) { } +func (c DbtOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DbtOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2178,6 +2276,12 @@ func (newState *DbtTask) SyncEffectiveFieldsDuringCreateOrUpdate(plan DbtTask) { func (newState *DbtTask) SyncEffectiveFieldsDuringRead(existingState DbtTask) { } +func (c DbtTask) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "commands")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DbtTask. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2262,6 +2366,12 @@ func (newState *DeleteJob) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteJo func (newState *DeleteJob) SyncEffectiveFieldsDuringRead(existingState DeleteJob) { } +func (c DeleteJob) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "job_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteJob. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2296,12 +2406,6 @@ func (o DeleteJob) Type(ctx context.Context) attr.Type { type DeleteResponse struct { } -func (newState *DeleteResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse) { -} - -func (newState *DeleteResponse) SyncEffectiveFieldsDuringRead(existingState DeleteResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2340,6 +2444,12 @@ func (newState *DeleteRun) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteRu func (newState *DeleteRun) SyncEffectiveFieldsDuringRead(existingState DeleteRun) { } +func (c DeleteRun) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "run_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteRun. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2374,12 +2484,6 @@ func (o DeleteRun) Type(ctx context.Context) attr.Type { type DeleteRunResponse struct { } -func (newState *DeleteRunResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteRunResponse) { -} - -func (newState *DeleteRunResponse) SyncEffectiveFieldsDuringRead(existingState DeleteRunResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteRunResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2431,6 +2535,11 @@ func (newState *EnforcePolicyComplianceForJobResponseJobClusterSettingsChange) S func (newState *EnforcePolicyComplianceForJobResponseJobClusterSettingsChange) SyncEffectiveFieldsDuringRead(existingState EnforcePolicyComplianceForJobResponseJobClusterSettingsChange) { } +func (c EnforcePolicyComplianceForJobResponseJobClusterSettingsChange) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EnforcePolicyComplianceForJobResponseJobClusterSettingsChange. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2480,6 +2589,12 @@ func (newState *EnforcePolicyComplianceRequest) SyncEffectiveFieldsDuringCreateO func (newState *EnforcePolicyComplianceRequest) SyncEffectiveFieldsDuringRead(existingState EnforcePolicyComplianceRequest) { } +func (c EnforcePolicyComplianceRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "job_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EnforcePolicyComplianceRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2536,6 +2651,13 @@ func (newState *EnforcePolicyComplianceResponse) SyncEffectiveFieldsDuringCreate func (newState *EnforcePolicyComplianceResponse) SyncEffectiveFieldsDuringRead(existingState EnforcePolicyComplianceResponse) { } +func (c EnforcePolicyComplianceResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + EnforcePolicyComplianceForJobResponseJobClusterSettingsChange{}.ToSchema(cs, append(path, "job_cluster_changes")...) + JobSettings{}.ToSchema(cs, append(path, "settings")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EnforcePolicyComplianceResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2646,6 +2768,12 @@ func (newState *ExportRunOutput) SyncEffectiveFieldsDuringCreateOrUpdate(plan Ex func (newState *ExportRunOutput) SyncEffectiveFieldsDuringRead(existingState ExportRunOutput) { } +func (c ExportRunOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ViewItem{}.ToSchema(cs, append(path, "views")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExportRunOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2715,12 +2843,6 @@ type ExportRunRequest struct { ViewsToExport types.String `tfsdk:"-"` } -func (newState *ExportRunRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ExportRunRequest) { -} - -func (newState *ExportRunRequest) SyncEffectiveFieldsDuringRead(existingState ExportRunRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExportRunRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2775,6 +2897,12 @@ func (newState *FileArrivalTriggerConfiguration) SyncEffectiveFieldsDuringCreate func (newState *FileArrivalTriggerConfiguration) SyncEffectiveFieldsDuringRead(existingState FileArrivalTriggerConfiguration) { } +func (c FileArrivalTriggerConfiguration) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "url")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in FileArrivalTriggerConfiguration. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2823,6 +2951,13 @@ func (newState *ForEachStats) SyncEffectiveFieldsDuringCreateOrUpdate(plan ForEa func (newState *ForEachStats) SyncEffectiveFieldsDuringRead(existingState ForEachStats) { } +func (c ForEachStats) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ForEachTaskErrorMessageStats{}.ToSchema(cs, append(path, "error_message_stats")...) + ForEachTaskTaskRunStats{}.ToSchema(cs, append(path, "task_run_stats")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ForEachStats. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2933,6 +3068,14 @@ func (newState *ForEachTask) SyncEffectiveFieldsDuringCreateOrUpdate(plan ForEac func (newState *ForEachTask) SyncEffectiveFieldsDuringRead(existingState ForEachTask) { } +func (c ForEachTask) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "inputs")...) + cs.SetRequired(append(path, "task")...) + Task{}.ToSchema(cs, append(path, "task")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ForEachTask. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3014,6 +3157,11 @@ func (newState *ForEachTaskErrorMessageStats) SyncEffectiveFieldsDuringCreateOrU func (newState *ForEachTaskErrorMessageStats) SyncEffectiveFieldsDuringRead(existingState ForEachTaskErrorMessageStats) { } +func (c ForEachTaskErrorMessageStats) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ForEachTaskErrorMessageStats. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3071,6 +3219,11 @@ func (newState *ForEachTaskTaskRunStats) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *ForEachTaskTaskRunStats) SyncEffectiveFieldsDuringRead(existingState ForEachTaskTaskRunStats) { } +func (c ForEachTaskTaskRunStats) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ForEachTaskTaskRunStats. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3118,12 +3271,6 @@ type GetJobPermissionLevelsRequest struct { JobId types.String `tfsdk:"-"` } -func (newState *GetJobPermissionLevelsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetJobPermissionLevelsRequest) { -} - -func (newState *GetJobPermissionLevelsRequest) SyncEffectiveFieldsDuringRead(existingState GetJobPermissionLevelsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetJobPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3166,6 +3313,12 @@ func (newState *GetJobPermissionLevelsResponse) SyncEffectiveFieldsDuringCreateO func (newState *GetJobPermissionLevelsResponse) SyncEffectiveFieldsDuringRead(existingState GetJobPermissionLevelsResponse) { } +func (c GetJobPermissionLevelsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + JobPermissionsDescription{}.ToSchema(cs, append(path, "permission_levels")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetJobPermissionLevelsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3233,12 +3386,6 @@ type GetJobPermissionsRequest struct { JobId types.String `tfsdk:"-"` } -func (newState *GetJobPermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetJobPermissionsRequest) { -} - -func (newState *GetJobPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState GetJobPermissionsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetJobPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3277,12 +3424,6 @@ type GetJobRequest struct { JobId types.Int64 `tfsdk:"-"` } -func (newState *GetJobRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetJobRequest) { -} - -func (newState *GetJobRequest) SyncEffectiveFieldsDuringRead(existingState GetJobRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetJobRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3320,12 +3461,6 @@ type GetPolicyComplianceRequest struct { JobId types.Int64 `tfsdk:"-"` } -func (newState *GetPolicyComplianceRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPolicyComplianceRequest) { -} - -func (newState *GetPolicyComplianceRequest) SyncEffectiveFieldsDuringRead(existingState GetPolicyComplianceRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPolicyComplianceRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3377,6 +3512,11 @@ func (newState *GetPolicyComplianceResponse) SyncEffectiveFieldsDuringCreateOrUp func (newState *GetPolicyComplianceResponse) SyncEffectiveFieldsDuringRead(existingState GetPolicyComplianceResponse) { } +func (c GetPolicyComplianceResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPolicyComplianceResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3446,12 +3586,6 @@ type GetRunOutputRequest struct { RunId types.Int64 `tfsdk:"-"` } -func (newState *GetRunOutputRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRunOutputRequest) { -} - -func (newState *GetRunOutputRequest) SyncEffectiveFieldsDuringRead(existingState GetRunOutputRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRunOutputRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3497,12 +3631,6 @@ type GetRunRequest struct { RunId types.Int64 `tfsdk:"-"` } -func (newState *GetRunRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRunRequest) { -} - -func (newState *GetRunRequest) SyncEffectiveFieldsDuringRead(existingState GetRunRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRunRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3555,6 +3683,11 @@ func (newState *GitSnapshot) SyncEffectiveFieldsDuringCreateOrUpdate(plan GitSna func (newState *GitSnapshot) SyncEffectiveFieldsDuringRead(existingState GitSnapshot) { } +func (c GitSnapshot) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GitSnapshot. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3625,6 +3758,15 @@ func (newState *GitSource) SyncEffectiveFieldsDuringCreateOrUpdate(plan GitSourc func (newState *GitSource) SyncEffectiveFieldsDuringRead(existingState GitSource) { } +func (c GitSource) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "git_provider")...) + GitSnapshot{}.ToSchema(cs, append(path, "git_snapshot")...) + cs.SetRequired(append(path, "url")...) + JobSource{}.ToSchema(cs, append(path, "job_source")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GitSource. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3763,6 +3905,13 @@ func (newState *Job) SyncEffectiveFieldsDuringCreateOrUpdate(plan Job) { func (newState *Job) SyncEffectiveFieldsDuringRead(existingState Job) { } +func (c Job) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "effective_budget_policy_id")...) + JobSettings{}.ToSchema(cs, append(path, "settings")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Job. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3851,6 +4000,11 @@ func (newState *JobAccessControlRequest) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *JobAccessControlRequest) SyncEffectiveFieldsDuringRead(existingState JobAccessControlRequest) { } +func (c JobAccessControlRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobAccessControlRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3907,6 +4061,12 @@ func (newState *JobAccessControlResponse) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *JobAccessControlResponse) SyncEffectiveFieldsDuringRead(existingState JobAccessControlResponse) { } +func (c JobAccessControlResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + JobPermission{}.ToSchema(cs, append(path, "all_permissions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobAccessControlResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3991,6 +4151,14 @@ func (newState *JobCluster) SyncEffectiveFieldsDuringCreateOrUpdate(plan JobClus func (newState *JobCluster) SyncEffectiveFieldsDuringRead(existingState JobCluster) { } +func (c JobCluster) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "job_cluster_key")...) + cs.SetRequired(append(path, "new_cluster")...) + compute_tf.ClusterSpec{}.ToSchema(cs, append(path, "new_cluster")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobCluster. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4073,6 +4241,12 @@ func (newState *JobCompliance) SyncEffectiveFieldsDuringCreateOrUpdate(plan JobC func (newState *JobCompliance) SyncEffectiveFieldsDuringRead(existingState JobCompliance) { } +func (c JobCompliance) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "job_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobCompliance. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4153,6 +4327,12 @@ func (newState *JobDeployment) SyncEffectiveFieldsDuringCreateOrUpdate(plan JobD func (newState *JobDeployment) SyncEffectiveFieldsDuringRead(existingState JobDeployment) { } +func (c JobDeployment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "kind")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobDeployment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4228,6 +4408,11 @@ func (newState *JobEmailNotifications) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *JobEmailNotifications) SyncEffectiveFieldsDuringRead(existingState JobEmailNotifications) { } +func (c JobEmailNotifications) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobEmailNotifications. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4430,6 +4615,13 @@ func (newState *JobEnvironment) SyncEffectiveFieldsDuringCreateOrUpdate(plan Job func (newState *JobEnvironment) SyncEffectiveFieldsDuringRead(existingState JobEnvironment) { } +func (c JobEnvironment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "environment_key")...) + compute_tf.Environment{}.ToSchema(cs, append(path, "spec")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobEnvironment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4508,6 +4700,11 @@ func (newState *JobNotificationSettings) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *JobNotificationSettings) SyncEffectiveFieldsDuringRead(existingState JobNotificationSettings) { } +func (c JobNotificationSettings) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobNotificationSettings. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4556,6 +4753,11 @@ func (newState *JobParameter) SyncEffectiveFieldsDuringCreateOrUpdate(plan JobPa func (newState *JobParameter) SyncEffectiveFieldsDuringRead(existingState JobParameter) { } +func (c JobParameter) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobParameter. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4605,6 +4807,13 @@ func (newState *JobParameterDefinition) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *JobParameterDefinition) SyncEffectiveFieldsDuringRead(existingState JobParameterDefinition) { } +func (c JobParameterDefinition) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "default")...) + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobParameterDefinition. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4652,6 +4861,11 @@ func (newState *JobPermission) SyncEffectiveFieldsDuringCreateOrUpdate(plan JobP func (newState *JobPermission) SyncEffectiveFieldsDuringRead(existingState JobPermission) { } +func (c JobPermission) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobPermission. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4731,6 +4945,12 @@ func (newState *JobPermissions) SyncEffectiveFieldsDuringCreateOrUpdate(plan Job func (newState *JobPermissions) SyncEffectiveFieldsDuringRead(existingState JobPermissions) { } +func (c JobPermissions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + JobAccessControlResponse{}.ToSchema(cs, append(path, "access_control_list")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobPermissions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4808,6 +5028,11 @@ func (newState *JobPermissionsDescription) SyncEffectiveFieldsDuringCreateOrUpda func (newState *JobPermissionsDescription) SyncEffectiveFieldsDuringRead(existingState JobPermissionsDescription) { } +func (c JobPermissionsDescription) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobPermissionsDescription. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4853,6 +5078,13 @@ func (newState *JobPermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *JobPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState JobPermissionsRequest) { } +func (c JobPermissionsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + JobAccessControlRequest{}.ToSchema(cs, append(path, "access_control_list")...) + cs.SetRequired(append(path, "job_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4936,6 +5168,11 @@ func (newState *JobRunAs) SyncEffectiveFieldsDuringCreateOrUpdate(plan JobRunAs) func (newState *JobRunAs) SyncEffectiveFieldsDuringRead(existingState JobRunAs) { } +func (c JobRunAs) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobRunAs. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5078,6 +5315,26 @@ func (newState *JobSettings) SyncEffectiveFieldsDuringCreateOrUpdate(plan JobSet func (newState *JobSettings) SyncEffectiveFieldsDuringRead(existingState JobSettings) { } +func (c JobSettings) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Continuous{}.ToSchema(cs, append(path, "continuous")...) + JobDeployment{}.ToSchema(cs, append(path, "deployment")...) + JobEmailNotifications{}.ToSchema(cs, append(path, "email_notifications")...) + JobEnvironment{}.ToSchema(cs, append(path, "environment")...) + GitSource{}.ToSchema(cs, append(path, "git_source")...) + JobsHealthRules{}.ToSchema(cs, append(path, "health")...) + JobCluster{}.ToSchema(cs, append(path, "job_cluster")...) + JobNotificationSettings{}.ToSchema(cs, append(path, "notification_settings")...) + JobParameterDefinition{}.ToSchema(cs, append(path, "parameter")...) + QueueSettings{}.ToSchema(cs, append(path, "queue")...) + JobRunAs{}.ToSchema(cs, append(path, "run_as")...) + CronSchedule{}.ToSchema(cs, append(path, "schedule")...) + Task{}.ToSchema(cs, append(path, "task")...) + TriggerSettings{}.ToSchema(cs, append(path, "trigger")...) + WebhookNotifications{}.ToSchema(cs, append(path, "webhook_notifications")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobSettings. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5643,6 +5900,13 @@ func (newState *JobSource) SyncEffectiveFieldsDuringCreateOrUpdate(plan JobSourc func (newState *JobSource) SyncEffectiveFieldsDuringRead(existingState JobSource) { } +func (c JobSource) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "import_from_git_branch")...) + cs.SetRequired(append(path, "job_config_path")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobSource. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5706,6 +5970,14 @@ func (newState *JobsHealthRule) SyncEffectiveFieldsDuringCreateOrUpdate(plan Job func (newState *JobsHealthRule) SyncEffectiveFieldsDuringRead(existingState JobsHealthRule) { } +func (c JobsHealthRule) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "metric")...) + cs.SetRequired(append(path, "op")...) + cs.SetRequired(append(path, "value")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobsHealthRule. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5752,6 +6024,12 @@ func (newState *JobsHealthRules) SyncEffectiveFieldsDuringCreateOrUpdate(plan Jo func (newState *JobsHealthRules) SyncEffectiveFieldsDuringRead(existingState JobsHealthRules) { } +func (c JobsHealthRules) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + JobsHealthRule{}.ToSchema(cs, append(path, "rules")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobsHealthRules. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5832,6 +6110,12 @@ func (newState *ListJobComplianceForPolicyResponse) SyncEffectiveFieldsDuringCre func (newState *ListJobComplianceForPolicyResponse) SyncEffectiveFieldsDuringRead(existingState ListJobComplianceForPolicyResponse) { } +func (c ListJobComplianceForPolicyResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + JobCompliance{}.ToSchema(cs, append(path, "jobs")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListJobComplianceForPolicyResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5910,12 +6194,6 @@ type ListJobComplianceRequest struct { PolicyId types.String `tfsdk:"-"` } -func (newState *ListJobComplianceRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListJobComplianceRequest) { -} - -func (newState *ListJobComplianceRequest) SyncEffectiveFieldsDuringRead(existingState ListJobComplianceRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListJobComplianceRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5969,12 +6247,6 @@ type ListJobsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListJobsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListJobsRequest) { -} - -func (newState *ListJobsRequest) SyncEffectiveFieldsDuringRead(existingState ListJobsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListJobsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6035,6 +6307,12 @@ func (newState *ListJobsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan L func (newState *ListJobsResponse) SyncEffectiveFieldsDuringRead(existingState ListJobsResponse) { } +func (c ListJobsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + BaseJob{}.ToSchema(cs, append(path, "jobs")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListJobsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6142,12 +6420,6 @@ type ListRunsRequest struct { StartTimeTo types.Int64 `tfsdk:"-"` } -func (newState *ListRunsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListRunsRequest) { -} - -func (newState *ListRunsRequest) SyncEffectiveFieldsDuringRead(existingState ListRunsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListRunsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6218,6 +6490,12 @@ func (newState *ListRunsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan L func (newState *ListRunsResponse) SyncEffectiveFieldsDuringRead(existingState ListRunsResponse) { } +func (c ListRunsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + BaseRun{}.ToSchema(cs, append(path, "runs")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListRunsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6303,6 +6581,11 @@ func (newState *NotebookOutput) SyncEffectiveFieldsDuringCreateOrUpdate(plan Not func (newState *NotebookOutput) SyncEffectiveFieldsDuringRead(existingState NotebookOutput) { } +func (c NotebookOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in NotebookOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6383,6 +6666,12 @@ func (newState *NotebookTask) SyncEffectiveFieldsDuringCreateOrUpdate(plan Noteb func (newState *NotebookTask) SyncEffectiveFieldsDuringRead(existingState NotebookTask) { } +func (c NotebookTask) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "notebook_path")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in NotebookTask. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6463,6 +6752,13 @@ func (newState *PeriodicTriggerConfiguration) SyncEffectiveFieldsDuringCreateOrU func (newState *PeriodicTriggerConfiguration) SyncEffectiveFieldsDuringRead(existingState PeriodicTriggerConfiguration) { } +func (c PeriodicTriggerConfiguration) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "interval")...) + cs.SetRequired(append(path, "unit")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PeriodicTriggerConfiguration. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6507,6 +6803,11 @@ func (newState *PipelineParams) SyncEffectiveFieldsDuringCreateOrUpdate(plan Pip func (newState *PipelineParams) SyncEffectiveFieldsDuringRead(existingState PipelineParams) { } +func (c PipelineParams) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PipelineParams. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6551,6 +6852,12 @@ func (newState *PipelineTask) SyncEffectiveFieldsDuringCreateOrUpdate(plan Pipel func (newState *PipelineTask) SyncEffectiveFieldsDuringRead(existingState PipelineTask) { } +func (c PipelineTask) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "pipeline_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PipelineTask. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6606,6 +6913,13 @@ func (newState *PythonWheelTask) SyncEffectiveFieldsDuringCreateOrUpdate(plan Py func (newState *PythonWheelTask) SyncEffectiveFieldsDuringRead(existingState PythonWheelTask) { } +func (c PythonWheelTask) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "entry_point")...) + cs.SetRequired(append(path, "package_name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PythonWheelTask. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6721,6 +7035,11 @@ func (newState *QueueDetails) SyncEffectiveFieldsDuringCreateOrUpdate(plan Queue func (newState *QueueDetails) SyncEffectiveFieldsDuringRead(existingState QueueDetails) { } +func (c QueueDetails) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in QueueDetails. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6765,6 +7084,12 @@ func (newState *QueueSettings) SyncEffectiveFieldsDuringCreateOrUpdate(plan Queu func (newState *QueueSettings) SyncEffectiveFieldsDuringRead(existingState QueueSettings) { } +func (c QueueSettings) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "enabled")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in QueueSettings. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6822,6 +7147,13 @@ func (newState *RepairHistoryItem) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *RepairHistoryItem) SyncEffectiveFieldsDuringRead(existingState RepairHistoryItem) { } +func (c RepairHistoryItem) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RunState{}.ToSchema(cs, append(path, "state")...) + RunStatus{}.ToSchema(cs, append(path, "status")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RepairHistoryItem. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7062,6 +7394,13 @@ func (newState *RepairRun) SyncEffectiveFieldsDuringCreateOrUpdate(plan RepairRu func (newState *RepairRun) SyncEffectiveFieldsDuringRead(existingState RepairRun) { } +func (c RepairRun) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PipelineParams{}.ToSchema(cs, append(path, "pipeline_params")...) + cs.SetRequired(append(path, "run_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RepairRun. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7423,6 +7762,11 @@ func (newState *RepairRunResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *RepairRunResponse) SyncEffectiveFieldsDuringRead(existingState RepairRunResponse) { } +func (c RepairRunResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RepairRunResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7471,6 +7815,14 @@ func (newState *ResetJob) SyncEffectiveFieldsDuringCreateOrUpdate(plan ResetJob) func (newState *ResetJob) SyncEffectiveFieldsDuringRead(existingState ResetJob) { } +func (c ResetJob) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "job_id")...) + cs.SetRequired(append(path, "new_settings")...) + JobSettings{}.ToSchema(cs, append(path, "new_settings")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ResetJob. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7537,12 +7889,6 @@ func (o *ResetJob) SetNewSettings(ctx context.Context, v JobSettings) { type ResetResponse struct { } -func (newState *ResetResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ResetResponse) { -} - -func (newState *ResetResponse) SyncEffectiveFieldsDuringRead(existingState ResetResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ResetResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7582,6 +7928,11 @@ func (newState *ResolvedConditionTaskValues) SyncEffectiveFieldsDuringCreateOrUp func (newState *ResolvedConditionTaskValues) SyncEffectiveFieldsDuringRead(existingState ResolvedConditionTaskValues) { } +func (c ResolvedConditionTaskValues) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ResolvedConditionTaskValues. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7625,6 +7976,11 @@ func (newState *ResolvedDbtTaskValues) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *ResolvedDbtTaskValues) SyncEffectiveFieldsDuringRead(existingState ResolvedDbtTaskValues) { } +func (c ResolvedDbtTaskValues) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ResolvedDbtTaskValues. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7696,6 +8052,11 @@ func (newState *ResolvedNotebookTaskValues) SyncEffectiveFieldsDuringCreateOrUpd func (newState *ResolvedNotebookTaskValues) SyncEffectiveFieldsDuringRead(existingState ResolvedNotebookTaskValues) { } +func (c ResolvedNotebookTaskValues) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ResolvedNotebookTaskValues. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7767,6 +8128,11 @@ func (newState *ResolvedParamPairValues) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *ResolvedParamPairValues) SyncEffectiveFieldsDuringRead(existingState ResolvedParamPairValues) { } +func (c ResolvedParamPairValues) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ResolvedParamPairValues. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7840,6 +8206,11 @@ func (newState *ResolvedPythonWheelTaskValues) SyncEffectiveFieldsDuringCreateOr func (newState *ResolvedPythonWheelTaskValues) SyncEffectiveFieldsDuringRead(existingState ResolvedPythonWheelTaskValues) { } +func (c ResolvedPythonWheelTaskValues) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ResolvedPythonWheelTaskValues. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7944,6 +8315,11 @@ func (newState *ResolvedRunJobTaskValues) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *ResolvedRunJobTaskValues) SyncEffectiveFieldsDuringRead(existingState ResolvedRunJobTaskValues) { } +func (c ResolvedRunJobTaskValues) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ResolvedRunJobTaskValues. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8046,6 +8422,11 @@ func (newState *ResolvedStringParamsValues) SyncEffectiveFieldsDuringCreateOrUpd func (newState *ResolvedStringParamsValues) SyncEffectiveFieldsDuringRead(existingState ResolvedStringParamsValues) { } +func (c ResolvedStringParamsValues) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ResolvedStringParamsValues. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8135,6 +8516,21 @@ func (newState *ResolvedValues) SyncEffectiveFieldsDuringCreateOrUpdate(plan Res func (newState *ResolvedValues) SyncEffectiveFieldsDuringRead(existingState ResolvedValues) { } +func (c ResolvedValues) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ResolvedConditionTaskValues{}.ToSchema(cs, append(path, "condition_task")...) + ResolvedDbtTaskValues{}.ToSchema(cs, append(path, "dbt_task")...) + ResolvedNotebookTaskValues{}.ToSchema(cs, append(path, "notebook_task")...) + ResolvedPythonWheelTaskValues{}.ToSchema(cs, append(path, "python_wheel_task")...) + ResolvedRunJobTaskValues{}.ToSchema(cs, append(path, "run_job_task")...) + ResolvedParamPairValues{}.ToSchema(cs, append(path, "simulation_task")...) + ResolvedStringParamsValues{}.ToSchema(cs, append(path, "spark_jar_task")...) + ResolvedStringParamsValues{}.ToSchema(cs, append(path, "spark_python_task")...) + ResolvedStringParamsValues{}.ToSchema(cs, append(path, "spark_submit_task")...) + ResolvedParamPairValues{}.ToSchema(cs, append(path, "sql_task")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ResolvedValues. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8619,6 +9015,24 @@ func (newState *Run) SyncEffectiveFieldsDuringCreateOrUpdate(plan Run) { func (newState *Run) SyncEffectiveFieldsDuringRead(existingState Run) { } +func (c Run) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ClusterInstance{}.ToSchema(cs, append(path, "cluster_instance")...) + ClusterSpec{}.ToSchema(cs, append(path, "cluster_spec")...) + GitSource{}.ToSchema(cs, append(path, "git_source")...) + RunTask{}.ToSchema(cs, append(path, "iterations")...) + JobCluster{}.ToSchema(cs, append(path, "job_clusters")...) + JobParameter{}.ToSchema(cs, append(path, "job_parameters")...) + RunParameters{}.ToSchema(cs, append(path, "overriding_parameters")...) + RepairHistoryItem{}.ToSchema(cs, append(path, "repair_history")...) + CronSchedule{}.ToSchema(cs, append(path, "schedule")...) + RunState{}.ToSchema(cs, append(path, "state")...) + RunStatus{}.ToSchema(cs, append(path, "status")...) + RunTask{}.ToSchema(cs, append(path, "tasks")...) + TriggerInfo{}.ToSchema(cs, append(path, "trigger_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Run. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9121,6 +9535,14 @@ func (newState *RunConditionTask) SyncEffectiveFieldsDuringCreateOrUpdate(plan R func (newState *RunConditionTask) SyncEffectiveFieldsDuringRead(existingState RunConditionTask) { } +func (c RunConditionTask) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "left")...) + cs.SetRequired(append(path, "op")...) + cs.SetRequired(append(path, "right")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RunConditionTask. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9179,6 +9601,15 @@ func (newState *RunForEachTask) SyncEffectiveFieldsDuringCreateOrUpdate(plan Run func (newState *RunForEachTask) SyncEffectiveFieldsDuringRead(existingState RunForEachTask) { } +func (c RunForEachTask) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "inputs")...) + ForEachStats{}.ToSchema(cs, append(path, "stats")...) + cs.SetRequired(append(path, "task")...) + Task{}.ToSchema(cs, append(path, "task")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RunForEachTask. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9286,6 +9717,11 @@ func (newState *RunJobOutput) SyncEffectiveFieldsDuringCreateOrUpdate(plan RunJo func (newState *RunJobOutput) SyncEffectiveFieldsDuringRead(existingState RunJobOutput) { } +func (c RunJobOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RunJobOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9412,6 +9848,13 @@ func (newState *RunJobTask) SyncEffectiveFieldsDuringCreateOrUpdate(plan RunJobT func (newState *RunJobTask) SyncEffectiveFieldsDuringRead(existingState RunJobTask) { } +func (c RunJobTask) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "job_id")...) + PipelineParams{}.ToSchema(cs, append(path, "pipeline_params")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RunJobTask. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9839,6 +10282,14 @@ func (newState *RunNow) SyncEffectiveFieldsDuringCreateOrUpdate(plan RunNow) { func (newState *RunNow) SyncEffectiveFieldsDuringRead(existingState RunNow) { } +func (c RunNow) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "job_id")...) + PipelineParams{}.ToSchema(cs, append(path, "pipeline_params")...) + QueueSettings{}.ToSchema(cs, append(path, "queue")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RunNow. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10229,6 +10680,11 @@ func (newState *RunNowResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan Run func (newState *RunNowResponse) SyncEffectiveFieldsDuringRead(existingState RunNowResponse) { } +func (c RunNowResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RunNowResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10308,6 +10764,16 @@ func (newState *RunOutput) SyncEffectiveFieldsDuringCreateOrUpdate(plan RunOutpu func (newState *RunOutput) SyncEffectiveFieldsDuringRead(existingState RunOutput) { } +func (c RunOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + DbtOutput{}.ToSchema(cs, append(path, "dbt_output")...) + Run{}.ToSchema(cs, append(path, "metadata")...) + NotebookOutput{}.ToSchema(cs, append(path, "notebook_output")...) + RunJobOutput{}.ToSchema(cs, append(path, "run_job_output")...) + SqlOutput{}.ToSchema(cs, append(path, "sql_output")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RunOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10594,6 +11060,12 @@ func (newState *RunParameters) SyncEffectiveFieldsDuringCreateOrUpdate(plan RunP func (newState *RunParameters) SyncEffectiveFieldsDuringRead(existingState RunParameters) { } +func (c RunParameters) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PipelineParams{}.ToSchema(cs, append(path, "pipeline_params")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RunParameters. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10896,6 +11368,11 @@ func (newState *RunState) SyncEffectiveFieldsDuringCreateOrUpdate(plan RunState) func (newState *RunState) SyncEffectiveFieldsDuringRead(existingState RunState) { } +func (c RunState) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RunState. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10952,6 +11429,13 @@ func (newState *RunStatus) SyncEffectiveFieldsDuringCreateOrUpdate(plan RunStatu func (newState *RunStatus) SyncEffectiveFieldsDuringRead(existingState RunStatus) { } +func (c RunStatus) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + QueueDetails{}.ToSchema(cs, append(path, "queue_details")...) + TerminationDetails{}.ToSchema(cs, append(path, "termination_details")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RunStatus. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11225,6 +11709,34 @@ func (newState *RunTask) SyncEffectiveFieldsDuringCreateOrUpdate(plan RunTask) { func (newState *RunTask) SyncEffectiveFieldsDuringRead(existingState RunTask) { } +func (c RunTask) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CleanRoomsNotebookTask{}.ToSchema(cs, append(path, "clean_rooms_notebook_task")...) + ClusterInstance{}.ToSchema(cs, append(path, "cluster_instance")...) + RunConditionTask{}.ToSchema(cs, append(path, "condition_task")...) + DbtTask{}.ToSchema(cs, append(path, "dbt_task")...) + TaskDependency{}.ToSchema(cs, append(path, "depends_on")...) + JobEmailNotifications{}.ToSchema(cs, append(path, "email_notifications")...) + RunForEachTask{}.ToSchema(cs, append(path, "for_each_task")...) + GitSource{}.ToSchema(cs, append(path, "git_source")...) + compute_tf.ClusterSpec{}.ToSchema(cs, append(path, "new_cluster")...) + NotebookTask{}.ToSchema(cs, append(path, "notebook_task")...) + TaskNotificationSettings{}.ToSchema(cs, append(path, "notification_settings")...) + PipelineTask{}.ToSchema(cs, append(path, "pipeline_task")...) + PythonWheelTask{}.ToSchema(cs, append(path, "python_wheel_task")...) + ResolvedValues{}.ToSchema(cs, append(path, "resolved_values")...) + RunJobTask{}.ToSchema(cs, append(path, "run_job_task")...) + SparkJarTask{}.ToSchema(cs, append(path, "spark_jar_task")...) + SparkPythonTask{}.ToSchema(cs, append(path, "spark_python_task")...) + SparkSubmitTask{}.ToSchema(cs, append(path, "spark_submit_task")...) + SqlTask{}.ToSchema(cs, append(path, "sql_task")...) + RunState{}.ToSchema(cs, append(path, "state")...) + RunStatus{}.ToSchema(cs, append(path, "status")...) + cs.SetRequired(append(path, "task_key")...) + WebhookNotifications{}.ToSchema(cs, append(path, "webhook_notifications")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RunTask. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12027,6 +12539,11 @@ func (newState *SparkJarTask) SyncEffectiveFieldsDuringCreateOrUpdate(plan Spark func (newState *SparkJarTask) SyncEffectiveFieldsDuringRead(existingState SparkJarTask) { } +func (c SparkJarTask) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SparkJarTask. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12124,6 +12641,12 @@ func (newState *SparkPythonTask) SyncEffectiveFieldsDuringCreateOrUpdate(plan Sp func (newState *SparkPythonTask) SyncEffectiveFieldsDuringRead(existingState SparkPythonTask) { } +func (c SparkPythonTask) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "python_file")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SparkPythonTask. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12205,6 +12728,11 @@ func (newState *SparkSubmitTask) SyncEffectiveFieldsDuringCreateOrUpdate(plan Sp func (newState *SparkSubmitTask) SyncEffectiveFieldsDuringRead(existingState SparkSubmitTask) { } +func (c SparkSubmitTask) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SparkSubmitTask. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12290,6 +12818,12 @@ func (newState *SqlAlertOutput) SyncEffectiveFieldsDuringCreateOrUpdate(plan Sql func (newState *SqlAlertOutput) SyncEffectiveFieldsDuringRead(existingState SqlAlertOutput) { } +func (c SqlAlertOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SqlStatementOutput{}.ToSchema(cs, append(path, "sql_statements")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SqlAlertOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12372,6 +12906,12 @@ func (newState *SqlDashboardOutput) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *SqlDashboardOutput) SyncEffectiveFieldsDuringRead(existingState SqlDashboardOutput) { } +func (c SqlDashboardOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SqlDashboardWidgetOutput{}.ToSchema(cs, append(path, "widgets")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SqlDashboardOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12458,6 +12998,12 @@ func (newState *SqlDashboardWidgetOutput) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *SqlDashboardWidgetOutput) SyncEffectiveFieldsDuringRead(existingState SqlDashboardWidgetOutput) { } +func (c SqlDashboardWidgetOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SqlOutputError{}.ToSchema(cs, append(path, "error")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SqlDashboardWidgetOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12546,6 +13092,14 @@ func (newState *SqlOutput) SyncEffectiveFieldsDuringCreateOrUpdate(plan SqlOutpu func (newState *SqlOutput) SyncEffectiveFieldsDuringRead(existingState SqlOutput) { } +func (c SqlOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SqlAlertOutput{}.ToSchema(cs, append(path, "alert_output")...) + SqlDashboardOutput{}.ToSchema(cs, append(path, "dashboard_output")...) + SqlQueryOutput{}.ToSchema(cs, append(path, "query_output")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SqlOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12680,6 +13234,11 @@ func (newState *SqlOutputError) SyncEffectiveFieldsDuringCreateOrUpdate(plan Sql func (newState *SqlOutputError) SyncEffectiveFieldsDuringRead(existingState SqlOutputError) { } +func (c SqlOutputError) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SqlOutputError. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12730,6 +13289,12 @@ func (newState *SqlQueryOutput) SyncEffectiveFieldsDuringCreateOrUpdate(plan Sql func (newState *SqlQueryOutput) SyncEffectiveFieldsDuringRead(existingState SqlQueryOutput) { } +func (c SqlQueryOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SqlStatementOutput{}.ToSchema(cs, append(path, "sql_statements")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SqlQueryOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12810,6 +13375,11 @@ func (newState *SqlStatementOutput) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *SqlStatementOutput) SyncEffectiveFieldsDuringRead(existingState SqlStatementOutput) { } +func (c SqlStatementOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SqlStatementOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12867,6 +13437,16 @@ func (newState *SqlTask) SyncEffectiveFieldsDuringCreateOrUpdate(plan SqlTask) { func (newState *SqlTask) SyncEffectiveFieldsDuringRead(existingState SqlTask) { } +func (c SqlTask) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SqlTaskAlert{}.ToSchema(cs, append(path, "alert")...) + SqlTaskDashboard{}.ToSchema(cs, append(path, "dashboard")...) + SqlTaskFile{}.ToSchema(cs, append(path, "file")...) + SqlTaskQuery{}.ToSchema(cs, append(path, "query")...) + cs.SetRequired(append(path, "warehouse_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SqlTask. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13069,6 +13649,13 @@ func (newState *SqlTaskAlert) SyncEffectiveFieldsDuringCreateOrUpdate(plan SqlTa func (newState *SqlTaskAlert) SyncEffectiveFieldsDuringRead(existingState SqlTaskAlert) { } +func (c SqlTaskAlert) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "alert_id")...) + SqlTaskSubscription{}.ToSchema(cs, append(path, "subscriptions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SqlTaskAlert. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13152,6 +13739,13 @@ func (newState *SqlTaskDashboard) SyncEffectiveFieldsDuringCreateOrUpdate(plan S func (newState *SqlTaskDashboard) SyncEffectiveFieldsDuringRead(existingState SqlTaskDashboard) { } +func (c SqlTaskDashboard) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "dashboard_id")...) + SqlTaskSubscription{}.ToSchema(cs, append(path, "subscriptions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SqlTaskDashboard. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13240,6 +13834,12 @@ func (newState *SqlTaskFile) SyncEffectiveFieldsDuringCreateOrUpdate(plan SqlTas func (newState *SqlTaskFile) SyncEffectiveFieldsDuringRead(existingState SqlTaskFile) { } +func (c SqlTaskFile) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "path")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SqlTaskFile. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13284,6 +13884,12 @@ func (newState *SqlTaskQuery) SyncEffectiveFieldsDuringCreateOrUpdate(plan SqlTa func (newState *SqlTaskQuery) SyncEffectiveFieldsDuringRead(existingState SqlTaskQuery) { } +func (c SqlTaskQuery) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "query_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SqlTaskQuery. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13333,6 +13939,11 @@ func (newState *SqlTaskSubscription) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *SqlTaskSubscription) SyncEffectiveFieldsDuringRead(existingState SqlTaskSubscription) { } +func (c SqlTaskSubscription) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SqlTaskSubscription. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13434,6 +14045,21 @@ func (newState *SubmitRun) SyncEffectiveFieldsDuringCreateOrUpdate(plan SubmitRu func (newState *SubmitRun) SyncEffectiveFieldsDuringRead(existingState SubmitRun) { } +func (c SubmitRun) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + JobAccessControlRequest{}.ToSchema(cs, append(path, "access_control_list")...) + JobEmailNotifications{}.ToSchema(cs, append(path, "email_notifications")...) + JobEnvironment{}.ToSchema(cs, append(path, "environments")...) + GitSource{}.ToSchema(cs, append(path, "git_source")...) + JobsHealthRules{}.ToSchema(cs, append(path, "health")...) + JobNotificationSettings{}.ToSchema(cs, append(path, "notification_settings")...) + QueueSettings{}.ToSchema(cs, append(path, "queue")...) + JobRunAs{}.ToSchema(cs, append(path, "run_as")...) + SubmitTask{}.ToSchema(cs, append(path, "tasks")...) + WebhookNotifications{}.ToSchema(cs, append(path, "webhook_notifications")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SubmitRun. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13794,6 +14420,11 @@ func (newState *SubmitRunResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *SubmitRunResponse) SyncEffectiveFieldsDuringRead(existingState SubmitRunResponse) { } +func (c SubmitRunResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SubmitRunResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -13936,6 +14567,30 @@ func (newState *SubmitTask) SyncEffectiveFieldsDuringCreateOrUpdate(plan SubmitT func (newState *SubmitTask) SyncEffectiveFieldsDuringRead(existingState SubmitTask) { } +func (c SubmitTask) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CleanRoomsNotebookTask{}.ToSchema(cs, append(path, "clean_rooms_notebook_task")...) + ConditionTask{}.ToSchema(cs, append(path, "condition_task")...) + DbtTask{}.ToSchema(cs, append(path, "dbt_task")...) + TaskDependency{}.ToSchema(cs, append(path, "depends_on")...) + JobEmailNotifications{}.ToSchema(cs, append(path, "email_notifications")...) + ForEachTask{}.ToSchema(cs, append(path, "for_each_task")...) + JobsHealthRules{}.ToSchema(cs, append(path, "health")...) + compute_tf.ClusterSpec{}.ToSchema(cs, append(path, "new_cluster")...) + NotebookTask{}.ToSchema(cs, append(path, "notebook_task")...) + TaskNotificationSettings{}.ToSchema(cs, append(path, "notification_settings")...) + PipelineTask{}.ToSchema(cs, append(path, "pipeline_task")...) + PythonWheelTask{}.ToSchema(cs, append(path, "python_wheel_task")...) + RunJobTask{}.ToSchema(cs, append(path, "run_job_task")...) + SparkJarTask{}.ToSchema(cs, append(path, "spark_jar_task")...) + SparkPythonTask{}.ToSchema(cs, append(path, "spark_python_task")...) + SparkSubmitTask{}.ToSchema(cs, append(path, "spark_submit_task")...) + SqlTask{}.ToSchema(cs, append(path, "sql_task")...) + cs.SetRequired(append(path, "task_key")...) + WebhookNotifications{}.ToSchema(cs, append(path, "webhook_notifications")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SubmitTask. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14590,6 +15245,11 @@ func (newState *TableUpdateTriggerConfiguration) SyncEffectiveFieldsDuringCreate func (newState *TableUpdateTriggerConfiguration) SyncEffectiveFieldsDuringRead(existingState TableUpdateTriggerConfiguration) { } +func (c TableUpdateTriggerConfiguration) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TableUpdateTriggerConfiguration. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -14791,6 +15451,30 @@ func (newState *Task) SyncEffectiveFieldsDuringCreateOrUpdate(plan Task) { func (newState *Task) SyncEffectiveFieldsDuringRead(existingState Task) { } +func (c Task) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CleanRoomsNotebookTask{}.ToSchema(cs, append(path, "clean_rooms_notebook_task")...) + ConditionTask{}.ToSchema(cs, append(path, "condition_task")...) + DbtTask{}.ToSchema(cs, append(path, "dbt_task")...) + TaskDependency{}.ToSchema(cs, append(path, "depends_on")...) + TaskEmailNotifications{}.ToSchema(cs, append(path, "email_notifications")...) + ForEachTask{}.ToSchema(cs, append(path, "for_each_task")...) + JobsHealthRules{}.ToSchema(cs, append(path, "health")...) + compute_tf.ClusterSpec{}.ToSchema(cs, append(path, "new_cluster")...) + NotebookTask{}.ToSchema(cs, append(path, "notebook_task")...) + TaskNotificationSettings{}.ToSchema(cs, append(path, "notification_settings")...) + PipelineTask{}.ToSchema(cs, append(path, "pipeline_task")...) + PythonWheelTask{}.ToSchema(cs, append(path, "python_wheel_task")...) + RunJobTask{}.ToSchema(cs, append(path, "run_job_task")...) + SparkJarTask{}.ToSchema(cs, append(path, "spark_jar_task")...) + SparkPythonTask{}.ToSchema(cs, append(path, "spark_python_task")...) + SparkSubmitTask{}.ToSchema(cs, append(path, "spark_submit_task")...) + SqlTask{}.ToSchema(cs, append(path, "sql_task")...) + cs.SetRequired(append(path, "task_key")...) + WebhookNotifications{}.ToSchema(cs, append(path, "webhook_notifications")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Task. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15446,6 +16130,12 @@ func (newState *TaskDependency) SyncEffectiveFieldsDuringCreateOrUpdate(plan Tas func (newState *TaskDependency) SyncEffectiveFieldsDuringRead(existingState TaskDependency) { } +func (c TaskDependency) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "task_key")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TaskDependency. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15521,6 +16211,11 @@ func (newState *TaskEmailNotifications) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *TaskEmailNotifications) SyncEffectiveFieldsDuringRead(existingState TaskEmailNotifications) { } +func (c TaskEmailNotifications) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TaskEmailNotifications. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15727,6 +16422,11 @@ func (newState *TaskNotificationSettings) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *TaskNotificationSettings) SyncEffectiveFieldsDuringRead(existingState TaskNotificationSettings) { } +func (c TaskNotificationSettings) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TaskNotificationSettings. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15829,6 +16529,11 @@ func (newState *TerminationDetails) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *TerminationDetails) SyncEffectiveFieldsDuringRead(existingState TerminationDetails) { } +func (c TerminationDetails) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TerminationDetails. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15876,6 +16581,11 @@ func (newState *TriggerInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Trigge func (newState *TriggerInfo) SyncEffectiveFieldsDuringRead(existingState TriggerInfo) { } +func (c TriggerInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TriggerInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -15926,6 +16636,15 @@ func (newState *TriggerSettings) SyncEffectiveFieldsDuringCreateOrUpdate(plan Tr func (newState *TriggerSettings) SyncEffectiveFieldsDuringRead(existingState TriggerSettings) { } +func (c TriggerSettings) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + FileArrivalTriggerConfiguration{}.ToSchema(cs, append(path, "file_arrival")...) + PeriodicTriggerConfiguration{}.ToSchema(cs, append(path, "periodic")...) + TableUpdateTriggerConfiguration{}.ToSchema(cs, append(path, "table")...) + TableUpdateTriggerConfiguration{}.ToSchema(cs, append(path, "table_update")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TriggerSettings. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16109,6 +16828,13 @@ func (newState *UpdateJob) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateJo func (newState *UpdateJob) SyncEffectiveFieldsDuringRead(existingState UpdateJob) { } +func (c UpdateJob) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "job_id")...) + JobSettings{}.ToSchema(cs, append(path, "new_settings")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateJob. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16206,12 +16932,6 @@ func (o *UpdateJob) SetNewSettings(ctx context.Context, v JobSettings) { type UpdateResponse struct { } -func (newState *UpdateResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateResponse) { -} - -func (newState *UpdateResponse) SyncEffectiveFieldsDuringRead(existingState UpdateResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16256,6 +16976,11 @@ func (newState *ViewItem) SyncEffectiveFieldsDuringCreateOrUpdate(plan ViewItem) func (newState *ViewItem) SyncEffectiveFieldsDuringRead(existingState ViewItem) { } +func (c ViewItem) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ViewItem. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16301,6 +17026,12 @@ func (newState *Webhook) SyncEffectiveFieldsDuringCreateOrUpdate(plan Webhook) { func (newState *Webhook) SyncEffectiveFieldsDuringRead(existingState Webhook) { } +func (c Webhook) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Webhook. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -16365,6 +17096,16 @@ func (newState *WebhookNotifications) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *WebhookNotifications) SyncEffectiveFieldsDuringRead(existingState WebhookNotifications) { } +func (c WebhookNotifications) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Webhook{}.ToSchema(cs, append(path, "on_duration_warning_threshold_exceeded")...) + Webhook{}.ToSchema(cs, append(path, "on_failure")...) + Webhook{}.ToSchema(cs, append(path, "on_start")...) + Webhook{}.ToSchema(cs, append(path, "on_streaming_backlog_exceeded")...) + Webhook{}.ToSchema(cs, append(path, "on_success")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WebhookNotifications. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/marketplace_tf/legacy_model.go b/internal/service/marketplace_tf/legacy_model.go index 98b3310e8..56474e007 100755 --- a/internal/service/marketplace_tf/legacy_model.go +++ b/internal/service/marketplace_tf/legacy_model.go @@ -142,12 +142,6 @@ type BatchGetListingsRequest_SdkV2 struct { Ids types.List `tfsdk:"-"` } -func (newState *BatchGetListingsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan BatchGetListingsRequest_SdkV2) { -} - -func (newState *BatchGetListingsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState BatchGetListingsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in BatchGetListingsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -285,12 +279,6 @@ type BatchGetProvidersRequest_SdkV2 struct { Ids types.List `tfsdk:"-"` } -func (newState *BatchGetProvidersRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan BatchGetProvidersRequest_SdkV2) { -} - -func (newState *BatchGetProvidersRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState BatchGetProvidersRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in BatchGetProvidersRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1440,12 +1428,6 @@ type DeleteExchangeFilterRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteExchangeFilterRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteExchangeFilterRequest_SdkV2) { -} - -func (newState *DeleteExchangeFilterRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteExchangeFilterRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteExchangeFilterRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1518,12 +1500,6 @@ type DeleteExchangeRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteExchangeRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteExchangeRequest_SdkV2) { -} - -func (newState *DeleteExchangeRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteExchangeRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteExchangeRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1596,12 +1572,6 @@ type DeleteFileRequest_SdkV2 struct { FileId types.String `tfsdk:"-"` } -func (newState *DeleteFileRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteFileRequest_SdkV2) { -} - -func (newState *DeleteFileRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteFileRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteFileRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1676,12 +1646,6 @@ type DeleteInstallationRequest_SdkV2 struct { ListingId types.String `tfsdk:"-"` } -func (newState *DeleteInstallationRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteInstallationRequest_SdkV2) { -} - -func (newState *DeleteInstallationRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteInstallationRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteInstallationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1756,12 +1720,6 @@ type DeleteListingRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteListingRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteListingRequest_SdkV2) { -} - -func (newState *DeleteListingRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteListingRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteListingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1834,12 +1792,6 @@ type DeleteProviderRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteProviderRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteProviderRequest_SdkV2) { -} - -func (newState *DeleteProviderRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteProviderRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteProviderRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2335,12 +2287,6 @@ type GetExchangeRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *GetExchangeRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetExchangeRequest_SdkV2) { -} - -func (newState *GetExchangeRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetExchangeRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetExchangeRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2448,12 +2394,6 @@ type GetFileRequest_SdkV2 struct { FileId types.String `tfsdk:"-"` } -func (newState *GetFileRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetFileRequest_SdkV2) { -} - -func (newState *GetFileRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetFileRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetFileRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2607,12 +2547,6 @@ type GetListingContentMetadataRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *GetListingContentMetadataRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetListingContentMetadataRequest_SdkV2) { -} - -func (newState *GetListingContentMetadataRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetListingContentMetadataRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetListingContentMetadataRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2728,12 +2662,6 @@ type GetListingRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *GetListingRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetListingRequest_SdkV2) { -} - -func (newState *GetListingRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetListingRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetListingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2843,12 +2771,6 @@ type GetListingsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *GetListingsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetListingsRequest_SdkV2) { -} - -func (newState *GetListingsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetListingsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetListingsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2962,12 +2884,6 @@ type GetPersonalizationRequestRequest_SdkV2 struct { ListingId types.String `tfsdk:"-"` } -func (newState *GetPersonalizationRequestRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPersonalizationRequestRequest_SdkV2) { -} - -func (newState *GetPersonalizationRequestRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetPersonalizationRequestRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPersonalizationRequestRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3075,12 +2991,6 @@ type GetProviderRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *GetProviderRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetProviderRequest_SdkV2) { -} - -func (newState *GetProviderRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetProviderRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetProviderRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3409,12 +3319,6 @@ type ListAllInstallationsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListAllInstallationsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAllInstallationsRequest_SdkV2) { -} - -func (newState *ListAllInstallationsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListAllInstallationsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAllInstallationsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3530,12 +3434,6 @@ type ListAllPersonalizationRequestsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListAllPersonalizationRequestsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAllPersonalizationRequestsRequest_SdkV2) { -} - -func (newState *ListAllPersonalizationRequestsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListAllPersonalizationRequestsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAllPersonalizationRequestsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3653,12 +3551,6 @@ type ListExchangeFiltersRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListExchangeFiltersRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListExchangeFiltersRequest_SdkV2) { -} - -func (newState *ListExchangeFiltersRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListExchangeFiltersRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListExchangeFiltersRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3778,12 +3670,6 @@ type ListExchangesForListingRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListExchangesForListingRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListExchangesForListingRequest_SdkV2) { -} - -func (newState *ListExchangesForListingRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListExchangesForListingRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListExchangesForListingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3901,12 +3787,6 @@ type ListExchangesRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListExchangesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListExchangesRequest_SdkV2) { -} - -func (newState *ListExchangesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListExchangesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListExchangesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4024,12 +3904,6 @@ type ListFilesRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListFilesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListFilesRequest_SdkV2) { -} - -func (newState *ListFilesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListFilesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListFilesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4179,12 +4053,6 @@ type ListFulfillmentsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListFulfillmentsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListFulfillmentsRequest_SdkV2) { -} - -func (newState *ListFulfillmentsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListFulfillmentsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListFulfillmentsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4304,12 +4172,6 @@ type ListInstallationsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListInstallationsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListInstallationsRequest_SdkV2) { -} - -func (newState *ListInstallationsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListInstallationsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListInstallationsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4429,12 +4291,6 @@ type ListListingsForExchangeRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListListingsForExchangeRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListListingsForExchangeRequest_SdkV2) { -} - -func (newState *ListListingsForExchangeRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListListingsForExchangeRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListListingsForExchangeRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4567,12 +4423,6 @@ type ListListingsRequest_SdkV2 struct { Tags types.List `tfsdk:"-"` } -func (newState *ListListingsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListListingsRequest_SdkV2) { -} - -func (newState *ListListingsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListListingsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListListingsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4871,12 +4721,6 @@ type ListProvidersRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListProvidersRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListProvidersRequest_SdkV2) { -} - -func (newState *ListProvidersRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListProvidersRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListProvidersRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6292,12 +6136,6 @@ type RemoveExchangeForListingRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *RemoveExchangeForListingRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan RemoveExchangeForListingRequest_SdkV2) { -} - -func (newState *RemoveExchangeForListingRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState RemoveExchangeForListingRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in RemoveExchangeForListingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6475,12 +6313,6 @@ type SearchListingsRequest_SdkV2 struct { Query types.String `tfsdk:"-"` } -func (newState *SearchListingsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan SearchListingsRequest_SdkV2) { -} - -func (newState *SearchListingsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState SearchListingsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in SearchListingsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/marketplace_tf/model.go b/internal/service/marketplace_tf/model.go index dbd7a512c..fdd0e1d6f 100755 --- a/internal/service/marketplace_tf/model.go +++ b/internal/service/marketplace_tf/model.go @@ -15,6 +15,7 @@ import ( "reflect" pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common" + "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/tfschema" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/types" @@ -33,6 +34,13 @@ func (newState *AddExchangeForListingRequest) SyncEffectiveFieldsDuringCreateOrU func (newState *AddExchangeForListingRequest) SyncEffectiveFieldsDuringRead(existingState AddExchangeForListingRequest) { } +func (c AddExchangeForListingRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "exchange_id")...) + cs.SetRequired(append(path, "listing_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AddExchangeForListingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -76,6 +84,12 @@ func (newState *AddExchangeForListingResponse) SyncEffectiveFieldsDuringCreateOr func (newState *AddExchangeForListingResponse) SyncEffectiveFieldsDuringRead(existingState AddExchangeForListingResponse) { } +func (c AddExchangeForListingResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ExchangeListing{}.ToSchema(cs, append(path, "exchange_for_listing")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AddExchangeForListingResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -142,12 +156,6 @@ type BatchGetListingsRequest struct { Ids types.List `tfsdk:"-"` } -func (newState *BatchGetListingsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan BatchGetListingsRequest) { -} - -func (newState *BatchGetListingsRequest) SyncEffectiveFieldsDuringRead(existingState BatchGetListingsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in BatchGetListingsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -219,6 +227,12 @@ func (newState *BatchGetListingsResponse) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *BatchGetListingsResponse) SyncEffectiveFieldsDuringRead(existingState BatchGetListingsResponse) { } +func (c BatchGetListingsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Listing{}.ToSchema(cs, append(path, "listings")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in BatchGetListingsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -285,12 +299,6 @@ type BatchGetProvidersRequest struct { Ids types.List `tfsdk:"-"` } -func (newState *BatchGetProvidersRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan BatchGetProvidersRequest) { -} - -func (newState *BatchGetProvidersRequest) SyncEffectiveFieldsDuringRead(existingState BatchGetProvidersRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in BatchGetProvidersRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -362,6 +370,12 @@ func (newState *BatchGetProvidersResponse) SyncEffectiveFieldsDuringCreateOrUpda func (newState *BatchGetProvidersResponse) SyncEffectiveFieldsDuringRead(existingState BatchGetProvidersResponse) { } +func (c BatchGetProvidersResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ProviderInfo{}.ToSchema(cs, append(path, "providers")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in BatchGetProvidersResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -433,6 +447,12 @@ func (newState *ConsumerTerms) SyncEffectiveFieldsDuringCreateOrUpdate(plan Cons func (newState *ConsumerTerms) SyncEffectiveFieldsDuringRead(existingState ConsumerTerms) { } +func (c ConsumerTerms) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "version")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ConsumerTerms. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -482,6 +502,11 @@ func (newState *ContactInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Contac func (newState *ContactInfo) SyncEffectiveFieldsDuringRead(existingState ContactInfo) { } +func (c ContactInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ContactInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -529,6 +554,13 @@ func (newState *CreateExchangeFilterRequest) SyncEffectiveFieldsDuringCreateOrUp func (newState *CreateExchangeFilterRequest) SyncEffectiveFieldsDuringRead(existingState CreateExchangeFilterRequest) { } +func (c CreateExchangeFilterRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "filter")...) + ExchangeFilter{}.ToSchema(cs, append(path, "filter")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateExchangeFilterRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -600,6 +632,11 @@ func (newState *CreateExchangeFilterResponse) SyncEffectiveFieldsDuringCreateOrU func (newState *CreateExchangeFilterResponse) SyncEffectiveFieldsDuringRead(existingState CreateExchangeFilterResponse) { } +func (c CreateExchangeFilterResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateExchangeFilterResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -641,6 +678,13 @@ func (newState *CreateExchangeRequest) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *CreateExchangeRequest) SyncEffectiveFieldsDuringRead(existingState CreateExchangeRequest) { } +func (c CreateExchangeRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "exchange")...) + Exchange{}.ToSchema(cs, append(path, "exchange")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateExchangeRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -712,6 +756,11 @@ func (newState *CreateExchangeResponse) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *CreateExchangeResponse) SyncEffectiveFieldsDuringRead(existingState CreateExchangeResponse) { } +func (c CreateExchangeResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateExchangeResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -759,6 +808,15 @@ func (newState *CreateFileRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *CreateFileRequest) SyncEffectiveFieldsDuringRead(existingState CreateFileRequest) { } +func (c CreateFileRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "file_parent")...) + FileParent{}.ToSchema(cs, append(path, "file_parent")...) + cs.SetRequired(append(path, "marketplace_file_type")...) + cs.SetRequired(append(path, "mime_type")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateFileRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -838,6 +896,12 @@ func (newState *CreateFileResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *CreateFileResponse) SyncEffectiveFieldsDuringRead(existingState CreateFileResponse) { } +func (c CreateFileResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + FileInfo{}.ToSchema(cs, append(path, "file_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateFileResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -921,6 +985,14 @@ func (newState *CreateInstallationRequest) SyncEffectiveFieldsDuringCreateOrUpda func (newState *CreateInstallationRequest) SyncEffectiveFieldsDuringRead(existingState CreateInstallationRequest) { } +func (c CreateInstallationRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ConsumerTerms{}.ToSchema(cs, append(path, "accepted_consumer_terms")...) + cs.SetRequired(append(path, "listing_id")...) + RepoInstallation{}.ToSchema(cs, append(path, "repo_detail")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateInstallationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1031,6 +1103,13 @@ func (newState *CreateListingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *CreateListingRequest) SyncEffectiveFieldsDuringRead(existingState CreateListingRequest) { } +func (c CreateListingRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "listing")...) + Listing{}.ToSchema(cs, append(path, "listing")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateListingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1102,6 +1181,11 @@ func (newState *CreateListingResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *CreateListingResponse) SyncEffectiveFieldsDuringRead(existingState CreateListingResponse) { } +func (c CreateListingResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateListingResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1160,6 +1244,15 @@ func (newState *CreatePersonalizationRequest) SyncEffectiveFieldsDuringCreateOrU func (newState *CreatePersonalizationRequest) SyncEffectiveFieldsDuringRead(existingState CreatePersonalizationRequest) { } +func (c CreatePersonalizationRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "accepted_consumer_terms")...) + ConsumerTerms{}.ToSchema(cs, append(path, "accepted_consumer_terms")...) + cs.SetRequired(append(path, "intended_use")...) + cs.SetRequired(append(path, "listing_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreatePersonalizationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1247,6 +1340,11 @@ func (newState *CreatePersonalizationRequestResponse) SyncEffectiveFieldsDuringC func (newState *CreatePersonalizationRequestResponse) SyncEffectiveFieldsDuringRead(existingState CreatePersonalizationRequestResponse) { } +func (c CreatePersonalizationRequestResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreatePersonalizationRequestResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1288,6 +1386,13 @@ func (newState *CreateProviderRequest) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *CreateProviderRequest) SyncEffectiveFieldsDuringRead(existingState CreateProviderRequest) { } +func (c CreateProviderRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "provider")...) + ProviderInfo{}.ToSchema(cs, append(path, "provider")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateProviderRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1359,6 +1464,11 @@ func (newState *CreateProviderResponse) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *CreateProviderResponse) SyncEffectiveFieldsDuringRead(existingState CreateProviderResponse) { } +func (c CreateProviderResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateProviderResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1402,6 +1512,13 @@ func (newState *DataRefreshInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Da func (newState *DataRefreshInfo) SyncEffectiveFieldsDuringRead(existingState DataRefreshInfo) { } +func (c DataRefreshInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "interval")...) + cs.SetRequired(append(path, "unit")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DataRefreshInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1440,12 +1557,6 @@ type DeleteExchangeFilterRequest struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteExchangeFilterRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteExchangeFilterRequest) { -} - -func (newState *DeleteExchangeFilterRequest) SyncEffectiveFieldsDuringRead(existingState DeleteExchangeFilterRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteExchangeFilterRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1486,6 +1597,11 @@ func (newState *DeleteExchangeFilterResponse) SyncEffectiveFieldsDuringCreateOrU func (newState *DeleteExchangeFilterResponse) SyncEffectiveFieldsDuringRead(existingState DeleteExchangeFilterResponse) { } +func (c DeleteExchangeFilterResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteExchangeFilterResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1518,12 +1634,6 @@ type DeleteExchangeRequest struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteExchangeRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteExchangeRequest) { -} - -func (newState *DeleteExchangeRequest) SyncEffectiveFieldsDuringRead(existingState DeleteExchangeRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteExchangeRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1564,6 +1674,11 @@ func (newState *DeleteExchangeResponse) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *DeleteExchangeResponse) SyncEffectiveFieldsDuringRead(existingState DeleteExchangeResponse) { } +func (c DeleteExchangeResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteExchangeResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1596,12 +1711,6 @@ type DeleteFileRequest struct { FileId types.String `tfsdk:"-"` } -func (newState *DeleteFileRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteFileRequest) { -} - -func (newState *DeleteFileRequest) SyncEffectiveFieldsDuringRead(existingState DeleteFileRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteFileRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1642,6 +1751,11 @@ func (newState *DeleteFileResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *DeleteFileResponse) SyncEffectiveFieldsDuringRead(existingState DeleteFileResponse) { } +func (c DeleteFileResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteFileResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1676,12 +1790,6 @@ type DeleteInstallationRequest struct { ListingId types.String `tfsdk:"-"` } -func (newState *DeleteInstallationRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteInstallationRequest) { -} - -func (newState *DeleteInstallationRequest) SyncEffectiveFieldsDuringRead(existingState DeleteInstallationRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteInstallationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1724,6 +1832,11 @@ func (newState *DeleteInstallationResponse) SyncEffectiveFieldsDuringCreateOrUpd func (newState *DeleteInstallationResponse) SyncEffectiveFieldsDuringRead(existingState DeleteInstallationResponse) { } +func (c DeleteInstallationResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteInstallationResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1756,12 +1869,6 @@ type DeleteListingRequest struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteListingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteListingRequest) { -} - -func (newState *DeleteListingRequest) SyncEffectiveFieldsDuringRead(existingState DeleteListingRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteListingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1802,6 +1909,11 @@ func (newState *DeleteListingResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *DeleteListingResponse) SyncEffectiveFieldsDuringRead(existingState DeleteListingResponse) { } +func (c DeleteListingResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteListingResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1834,12 +1946,6 @@ type DeleteProviderRequest struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteProviderRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteProviderRequest) { -} - -func (newState *DeleteProviderRequest) SyncEffectiveFieldsDuringRead(existingState DeleteProviderRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteProviderRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1880,6 +1986,11 @@ func (newState *DeleteProviderResponse) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *DeleteProviderResponse) SyncEffectiveFieldsDuringRead(existingState DeleteProviderResponse) { } +func (c DeleteProviderResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteProviderResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1933,6 +2044,14 @@ func (newState *Exchange) SyncEffectiveFieldsDuringCreateOrUpdate(plan Exchange) func (newState *Exchange) SyncEffectiveFieldsDuringRead(existingState Exchange) { } +func (c Exchange) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ExchangeFilter{}.ToSchema(cs, append(path, "filters")...) + ExchangeListing{}.ToSchema(cs, append(path, "linked_listings")...) + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Exchange. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2065,6 +2184,14 @@ func (newState *ExchangeFilter) SyncEffectiveFieldsDuringCreateOrUpdate(plan Exc func (newState *ExchangeFilter) SyncEffectiveFieldsDuringRead(existingState ExchangeFilter) { } +func (c ExchangeFilter) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "exchange_id")...) + cs.SetRequired(append(path, "filter_type")...) + cs.SetRequired(append(path, "filter_value")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExchangeFilter. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2134,6 +2261,11 @@ func (newState *ExchangeListing) SyncEffectiveFieldsDuringCreateOrUpdate(plan Ex func (newState *ExchangeListing) SyncEffectiveFieldsDuringRead(existingState ExchangeListing) { } +func (c ExchangeListing) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExchangeListing. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2206,6 +2338,12 @@ func (newState *FileInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan FileInfo) func (newState *FileInfo) SyncEffectiveFieldsDuringRead(existingState FileInfo) { } +func (c FileInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + FileParent{}.ToSchema(cs, append(path, "file_parent")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in FileInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2297,6 +2435,11 @@ func (newState *FileParent) SyncEffectiveFieldsDuringCreateOrUpdate(plan FilePar func (newState *FileParent) SyncEffectiveFieldsDuringRead(existingState FileParent) { } +func (c FileParent) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in FileParent. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2335,12 +2478,6 @@ type GetExchangeRequest struct { Id types.String `tfsdk:"-"` } -func (newState *GetExchangeRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetExchangeRequest) { -} - -func (newState *GetExchangeRequest) SyncEffectiveFieldsDuringRead(existingState GetExchangeRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetExchangeRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2382,6 +2519,12 @@ func (newState *GetExchangeResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *GetExchangeResponse) SyncEffectiveFieldsDuringRead(existingState GetExchangeResponse) { } +func (c GetExchangeResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Exchange{}.ToSchema(cs, append(path, "exchange")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetExchangeResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2448,12 +2591,6 @@ type GetFileRequest struct { FileId types.String `tfsdk:"-"` } -func (newState *GetFileRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetFileRequest) { -} - -func (newState *GetFileRequest) SyncEffectiveFieldsDuringRead(existingState GetFileRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetFileRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2495,6 +2632,12 @@ func (newState *GetFileResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan Ge func (newState *GetFileResponse) SyncEffectiveFieldsDuringRead(existingState GetFileResponse) { } +func (c GetFileResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + FileInfo{}.ToSchema(cs, append(path, "file_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetFileResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2567,6 +2710,11 @@ func (newState *GetLatestVersionProviderAnalyticsDashboardResponse) SyncEffectiv func (newState *GetLatestVersionProviderAnalyticsDashboardResponse) SyncEffectiveFieldsDuringRead(existingState GetLatestVersionProviderAnalyticsDashboardResponse) { } +func (c GetLatestVersionProviderAnalyticsDashboardResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetLatestVersionProviderAnalyticsDashboardResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2607,12 +2755,6 @@ type GetListingContentMetadataRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *GetListingContentMetadataRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetListingContentMetadataRequest) { -} - -func (newState *GetListingContentMetadataRequest) SyncEffectiveFieldsDuringRead(existingState GetListingContentMetadataRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetListingContentMetadataRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2660,6 +2802,12 @@ func (newState *GetListingContentMetadataResponse) SyncEffectiveFieldsDuringCrea func (newState *GetListingContentMetadataResponse) SyncEffectiveFieldsDuringRead(existingState GetListingContentMetadataResponse) { } +func (c GetListingContentMetadataResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SharedDataObject{}.ToSchema(cs, append(path, "shared_data_objects")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetListingContentMetadataResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2728,12 +2876,6 @@ type GetListingRequest struct { Id types.String `tfsdk:"-"` } -func (newState *GetListingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetListingRequest) { -} - -func (newState *GetListingRequest) SyncEffectiveFieldsDuringRead(existingState GetListingRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetListingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2775,6 +2917,12 @@ func (newState *GetListingResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *GetListingResponse) SyncEffectiveFieldsDuringRead(existingState GetListingResponse) { } +func (c GetListingResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Listing{}.ToSchema(cs, append(path, "listing")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetListingResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2843,12 +2991,6 @@ type GetListingsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *GetListingsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetListingsRequest) { -} - -func (newState *GetListingsRequest) SyncEffectiveFieldsDuringRead(existingState GetListingsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetListingsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2894,6 +3036,12 @@ func (newState *GetListingsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *GetListingsResponse) SyncEffectiveFieldsDuringRead(existingState GetListingsResponse) { } +func (c GetListingsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Listing{}.ToSchema(cs, append(path, "listings")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetListingsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2962,12 +3110,6 @@ type GetPersonalizationRequestRequest struct { ListingId types.String `tfsdk:"-"` } -func (newState *GetPersonalizationRequestRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPersonalizationRequestRequest) { -} - -func (newState *GetPersonalizationRequestRequest) SyncEffectiveFieldsDuringRead(existingState GetPersonalizationRequestRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPersonalizationRequestRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3009,6 +3151,12 @@ func (newState *GetPersonalizationRequestResponse) SyncEffectiveFieldsDuringCrea func (newState *GetPersonalizationRequestResponse) SyncEffectiveFieldsDuringRead(existingState GetPersonalizationRequestResponse) { } +func (c GetPersonalizationRequestResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PersonalizationRequest{}.ToSchema(cs, append(path, "personalization_requests")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPersonalizationRequestResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3075,12 +3223,6 @@ type GetProviderRequest struct { Id types.String `tfsdk:"-"` } -func (newState *GetProviderRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetProviderRequest) { -} - -func (newState *GetProviderRequest) SyncEffectiveFieldsDuringRead(existingState GetProviderRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetProviderRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3122,6 +3264,12 @@ func (newState *GetProviderResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *GetProviderResponse) SyncEffectiveFieldsDuringRead(existingState GetProviderResponse) { } +func (c GetProviderResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ProviderInfo{}.ToSchema(cs, append(path, "provider")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetProviderResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3193,6 +3341,12 @@ func (newState *Installation) SyncEffectiveFieldsDuringCreateOrUpdate(plan Insta func (newState *Installation) SyncEffectiveFieldsDuringRead(existingState Installation) { } +func (c Installation) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + InstallationDetail{}.ToSchema(cs, append(path, "installation")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Installation. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3288,6 +3442,13 @@ func (newState *InstallationDetail) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *InstallationDetail) SyncEffectiveFieldsDuringRead(existingState InstallationDetail) { } +func (c InstallationDetail) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + TokenDetail{}.ToSchema(cs, append(path, "token_detail")...) + TokenInfo{}.ToSchema(cs, append(path, "tokens")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InstallationDetail. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3409,12 +3570,6 @@ type ListAllInstallationsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListAllInstallationsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAllInstallationsRequest) { -} - -func (newState *ListAllInstallationsRequest) SyncEffectiveFieldsDuringRead(existingState ListAllInstallationsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAllInstallationsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3460,6 +3615,12 @@ func (newState *ListAllInstallationsResponse) SyncEffectiveFieldsDuringCreateOrU func (newState *ListAllInstallationsResponse) SyncEffectiveFieldsDuringRead(existingState ListAllInstallationsResponse) { } +func (c ListAllInstallationsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + InstallationDetail{}.ToSchema(cs, append(path, "installations")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAllInstallationsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3530,12 +3691,6 @@ type ListAllPersonalizationRequestsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListAllPersonalizationRequestsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAllPersonalizationRequestsRequest) { -} - -func (newState *ListAllPersonalizationRequestsRequest) SyncEffectiveFieldsDuringRead(existingState ListAllPersonalizationRequestsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAllPersonalizationRequestsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3581,6 +3736,12 @@ func (newState *ListAllPersonalizationRequestsResponse) SyncEffectiveFieldsDurin func (newState *ListAllPersonalizationRequestsResponse) SyncEffectiveFieldsDuringRead(existingState ListAllPersonalizationRequestsResponse) { } +func (c ListAllPersonalizationRequestsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PersonalizationRequest{}.ToSchema(cs, append(path, "personalization_requests")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAllPersonalizationRequestsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3653,12 +3814,6 @@ type ListExchangeFiltersRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListExchangeFiltersRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListExchangeFiltersRequest) { -} - -func (newState *ListExchangeFiltersRequest) SyncEffectiveFieldsDuringRead(existingState ListExchangeFiltersRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListExchangeFiltersRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3706,6 +3861,12 @@ func (newState *ListExchangeFiltersResponse) SyncEffectiveFieldsDuringCreateOrUp func (newState *ListExchangeFiltersResponse) SyncEffectiveFieldsDuringRead(existingState ListExchangeFiltersResponse) { } +func (c ListExchangeFiltersResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ExchangeFilter{}.ToSchema(cs, append(path, "filters")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListExchangeFiltersResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3778,12 +3939,6 @@ type ListExchangesForListingRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListExchangesForListingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListExchangesForListingRequest) { -} - -func (newState *ListExchangesForListingRequest) SyncEffectiveFieldsDuringRead(existingState ListExchangesForListingRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListExchangesForListingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3831,6 +3986,12 @@ func (newState *ListExchangesForListingResponse) SyncEffectiveFieldsDuringCreate func (newState *ListExchangesForListingResponse) SyncEffectiveFieldsDuringRead(existingState ListExchangesForListingResponse) { } +func (c ListExchangesForListingResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ExchangeListing{}.ToSchema(cs, append(path, "exchange_listing")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListExchangesForListingResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3901,12 +4062,6 @@ type ListExchangesRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListExchangesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListExchangesRequest) { -} - -func (newState *ListExchangesRequest) SyncEffectiveFieldsDuringRead(existingState ListExchangesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListExchangesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3952,6 +4107,12 @@ func (newState *ListExchangesResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *ListExchangesResponse) SyncEffectiveFieldsDuringRead(existingState ListExchangesResponse) { } +func (c ListExchangesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Exchange{}.ToSchema(cs, append(path, "exchanges")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListExchangesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4024,12 +4185,6 @@ type ListFilesRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListFilesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListFilesRequest) { -} - -func (newState *ListFilesRequest) SyncEffectiveFieldsDuringRead(existingState ListFilesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListFilesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4107,6 +4262,12 @@ func (newState *ListFilesResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ListFilesResponse) SyncEffectiveFieldsDuringRead(existingState ListFilesResponse) { } +func (c ListFilesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + FileInfo{}.ToSchema(cs, append(path, "file_infos")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListFilesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4179,12 +4340,6 @@ type ListFulfillmentsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListFulfillmentsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListFulfillmentsRequest) { -} - -func (newState *ListFulfillmentsRequest) SyncEffectiveFieldsDuringRead(existingState ListFulfillmentsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListFulfillmentsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4232,6 +4387,12 @@ func (newState *ListFulfillmentsResponse) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *ListFulfillmentsResponse) SyncEffectiveFieldsDuringRead(existingState ListFulfillmentsResponse) { } +func (c ListFulfillmentsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ListingFulfillment{}.ToSchema(cs, append(path, "fulfillments")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListFulfillmentsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4304,12 +4465,6 @@ type ListInstallationsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListInstallationsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListInstallationsRequest) { -} - -func (newState *ListInstallationsRequest) SyncEffectiveFieldsDuringRead(existingState ListInstallationsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListInstallationsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4357,6 +4512,12 @@ func (newState *ListInstallationsResponse) SyncEffectiveFieldsDuringCreateOrUpda func (newState *ListInstallationsResponse) SyncEffectiveFieldsDuringRead(existingState ListInstallationsResponse) { } +func (c ListInstallationsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + InstallationDetail{}.ToSchema(cs, append(path, "installations")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListInstallationsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4429,12 +4590,6 @@ type ListListingsForExchangeRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListListingsForExchangeRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListListingsForExchangeRequest) { -} - -func (newState *ListListingsForExchangeRequest) SyncEffectiveFieldsDuringRead(existingState ListListingsForExchangeRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListListingsForExchangeRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4482,6 +4637,12 @@ func (newState *ListListingsForExchangeResponse) SyncEffectiveFieldsDuringCreate func (newState *ListListingsForExchangeResponse) SyncEffectiveFieldsDuringRead(existingState ListListingsForExchangeResponse) { } +func (c ListListingsForExchangeResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ExchangeListing{}.ToSchema(cs, append(path, "exchange_listings")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListListingsForExchangeResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4567,12 +4728,6 @@ type ListListingsRequest struct { Tags types.List `tfsdk:"-"` } -func (newState *ListListingsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListListingsRequest) { -} - -func (newState *ListListingsRequest) SyncEffectiveFieldsDuringRead(existingState ListListingsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListListingsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4749,6 +4904,12 @@ func (newState *ListListingsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *ListListingsResponse) SyncEffectiveFieldsDuringRead(existingState ListListingsResponse) { } +func (c ListListingsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Listing{}.ToSchema(cs, append(path, "listings")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListListingsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4827,6 +4988,13 @@ func (newState *ListProviderAnalyticsDashboardResponse) SyncEffectiveFieldsDurin func (newState *ListProviderAnalyticsDashboardResponse) SyncEffectiveFieldsDuringRead(existingState ListProviderAnalyticsDashboardResponse) { } +func (c ListProviderAnalyticsDashboardResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "dashboard_id")...) + cs.SetRequired(append(path, "id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListProviderAnalyticsDashboardResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4871,12 +5039,6 @@ type ListProvidersRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListProvidersRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListProvidersRequest) { -} - -func (newState *ListProvidersRequest) SyncEffectiveFieldsDuringRead(existingState ListProvidersRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListProvidersRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4924,6 +5086,12 @@ func (newState *ListProvidersResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *ListProvidersResponse) SyncEffectiveFieldsDuringRead(existingState ListProvidersResponse) { } +func (c ListProvidersResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ProviderInfo{}.ToSchema(cs, append(path, "providers")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListProvidersResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5001,6 +5169,14 @@ func (newState *Listing) SyncEffectiveFieldsDuringCreateOrUpdate(plan Listing) { func (newState *Listing) SyncEffectiveFieldsDuringRead(existingState Listing) { } +func (c Listing) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ListingDetail{}.ToSchema(cs, append(path, "detail")...) + cs.SetRequired(append(path, "summary")...) + ListingSummary{}.ToSchema(cs, append(path, "summary")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Listing. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5152,6 +5328,15 @@ func (newState *ListingDetail) SyncEffectiveFieldsDuringCreateOrUpdate(plan List func (newState *ListingDetail) SyncEffectiveFieldsDuringRead(existingState ListingDetail) { } +func (c ListingDetail) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + DataRefreshInfo{}.ToSchema(cs, append(path, "collection_granularity")...) + FileInfo{}.ToSchema(cs, append(path, "embedded_notebook_file_infos")...) + ListingTag{}.ToSchema(cs, append(path, "tags")...) + DataRefreshInfo{}.ToSchema(cs, append(path, "update_frequency")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListingDetail. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5412,6 +5597,14 @@ func (newState *ListingFulfillment) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ListingFulfillment) SyncEffectiveFieldsDuringRead(existingState ListingFulfillment) { } +func (c ListingFulfillment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "listing_id")...) + RepoInfo{}.ToSchema(cs, append(path, "repo_info")...) + ShareInfo{}.ToSchema(cs, append(path, "share_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListingFulfillment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5520,6 +5713,11 @@ func (newState *ListingSetting) SyncEffectiveFieldsDuringCreateOrUpdate(plan Lis func (newState *ListingSetting) SyncEffectiveFieldsDuringRead(existingState ListingSetting) { } +func (c ListingSetting) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListingSetting. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5599,6 +5797,17 @@ func (newState *ListingSummary) SyncEffectiveFieldsDuringCreateOrUpdate(plan Lis func (newState *ListingSummary) SyncEffectiveFieldsDuringRead(existingState ListingSummary) { } +func (c ListingSummary) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RepoInfo{}.ToSchema(cs, append(path, "git_repo")...) + cs.SetRequired(append(path, "listingType")...) + cs.SetRequired(append(path, "name")...) + RegionInfo{}.ToSchema(cs, append(path, "provider_region")...) + ListingSetting{}.ToSchema(cs, append(path, "setting")...) + ShareInfo{}.ToSchema(cs, append(path, "share")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListingSummary. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5855,6 +6064,11 @@ func (newState *ListingTag) SyncEffectiveFieldsDuringCreateOrUpdate(plan Listing func (newState *ListingTag) SyncEffectiveFieldsDuringRead(existingState ListingTag) { } +func (c ListingTag) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListingTag. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5959,6 +6173,15 @@ func (newState *PersonalizationRequest) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *PersonalizationRequest) SyncEffectiveFieldsDuringRead(existingState PersonalizationRequest) { } +func (c PersonalizationRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "consumer_region")...) + RegionInfo{}.ToSchema(cs, append(path, "consumer_region")...) + ContactInfo{}.ToSchema(cs, append(path, "contact_info")...) + ShareInfo{}.ToSchema(cs, append(path, "share")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PersonalizationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6118,6 +6341,12 @@ func (newState *ProviderAnalyticsDashboard) SyncEffectiveFieldsDuringCreateOrUpd func (newState *ProviderAnalyticsDashboard) SyncEffectiveFieldsDuringRead(existingState ProviderAnalyticsDashboard) { } +func (c ProviderAnalyticsDashboard) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ProviderAnalyticsDashboard. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6185,6 +6414,15 @@ func (newState *ProviderInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Provi func (newState *ProviderInfo) SyncEffectiveFieldsDuringRead(existingState ProviderInfo) { } +func (c ProviderInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "business_contact_email")...) + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "privacy_policy_link")...) + cs.SetRequired(append(path, "term_of_service_link")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ProviderInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6254,6 +6492,11 @@ func (newState *RegionInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan RegionI func (newState *RegionInfo) SyncEffectiveFieldsDuringRead(existingState RegionInfo) { } +func (c RegionInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RegionInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6292,12 +6535,6 @@ type RemoveExchangeForListingRequest struct { Id types.String `tfsdk:"-"` } -func (newState *RemoveExchangeForListingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan RemoveExchangeForListingRequest) { -} - -func (newState *RemoveExchangeForListingRequest) SyncEffectiveFieldsDuringRead(existingState RemoveExchangeForListingRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in RemoveExchangeForListingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6338,6 +6575,11 @@ func (newState *RemoveExchangeForListingResponse) SyncEffectiveFieldsDuringCreat func (newState *RemoveExchangeForListingResponse) SyncEffectiveFieldsDuringRead(existingState RemoveExchangeForListingResponse) { } +func (c RemoveExchangeForListingResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RemoveExchangeForListingResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6376,6 +6618,12 @@ func (newState *RepoInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan RepoInfo) func (newState *RepoInfo) SyncEffectiveFieldsDuringRead(existingState RepoInfo) { } +func (c RepoInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "git_repo_url")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RepoInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6422,6 +6670,13 @@ func (newState *RepoInstallation) SyncEffectiveFieldsDuringCreateOrUpdate(plan R func (newState *RepoInstallation) SyncEffectiveFieldsDuringRead(existingState RepoInstallation) { } +func (c RepoInstallation) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "repo_name")...) + cs.SetRequired(append(path, "repo_path")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RepoInstallation. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6475,12 +6730,6 @@ type SearchListingsRequest struct { Query types.String `tfsdk:"-"` } -func (newState *SearchListingsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan SearchListingsRequest) { -} - -func (newState *SearchListingsRequest) SyncEffectiveFieldsDuringRead(existingState SearchListingsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in SearchListingsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6626,6 +6875,12 @@ func (newState *SearchListingsResponse) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *SearchListingsResponse) SyncEffectiveFieldsDuringRead(existingState SearchListingsResponse) { } +func (c SearchListingsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Listing{}.ToSchema(cs, append(path, "listings")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SearchListingsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6701,6 +6956,13 @@ func (newState *ShareInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan ShareInf func (newState *ShareInfo) SyncEffectiveFieldsDuringRead(existingState ShareInfo) { } +func (c ShareInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "type")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ShareInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6748,6 +7010,11 @@ func (newState *SharedDataObject) SyncEffectiveFieldsDuringCreateOrUpdate(plan S func (newState *SharedDataObject) SyncEffectiveFieldsDuringRead(existingState SharedDataObject) { } +func (c SharedDataObject) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SharedDataObject. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6799,6 +7066,11 @@ func (newState *TokenDetail) SyncEffectiveFieldsDuringCreateOrUpdate(plan TokenD func (newState *TokenDetail) SyncEffectiveFieldsDuringRead(existingState TokenDetail) { } +func (c TokenDetail) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TokenDetail. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6860,6 +7132,11 @@ func (newState *TokenInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan TokenInf func (newState *TokenInfo) SyncEffectiveFieldsDuringRead(existingState TokenInfo) { } +func (c TokenInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TokenInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6915,6 +7192,14 @@ func (newState *UpdateExchangeFilterRequest) SyncEffectiveFieldsDuringCreateOrUp func (newState *UpdateExchangeFilterRequest) SyncEffectiveFieldsDuringRead(existingState UpdateExchangeFilterRequest) { } +func (c UpdateExchangeFilterRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "filter")...) + ExchangeFilter{}.ToSchema(cs, append(path, "filter")...) + cs.SetRequired(append(path, "id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateExchangeFilterRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6988,6 +7273,12 @@ func (newState *UpdateExchangeFilterResponse) SyncEffectiveFieldsDuringCreateOrU func (newState *UpdateExchangeFilterResponse) SyncEffectiveFieldsDuringRead(existingState UpdateExchangeFilterResponse) { } +func (c UpdateExchangeFilterResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ExchangeFilter{}.ToSchema(cs, append(path, "filter")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateExchangeFilterResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7061,6 +7352,14 @@ func (newState *UpdateExchangeRequest) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *UpdateExchangeRequest) SyncEffectiveFieldsDuringRead(existingState UpdateExchangeRequest) { } +func (c UpdateExchangeRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "exchange")...) + Exchange{}.ToSchema(cs, append(path, "exchange")...) + cs.SetRequired(append(path, "id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateExchangeRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7134,6 +7433,12 @@ func (newState *UpdateExchangeResponse) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *UpdateExchangeResponse) SyncEffectiveFieldsDuringRead(existingState UpdateExchangeResponse) { } +func (c UpdateExchangeResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Exchange{}.ToSchema(cs, append(path, "exchange")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateExchangeResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7211,6 +7516,15 @@ func (newState *UpdateInstallationRequest) SyncEffectiveFieldsDuringCreateOrUpda func (newState *UpdateInstallationRequest) SyncEffectiveFieldsDuringRead(existingState UpdateInstallationRequest) { } +func (c UpdateInstallationRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "installation")...) + InstallationDetail{}.ToSchema(cs, append(path, "installation")...) + cs.SetRequired(append(path, "installation_id")...) + cs.SetRequired(append(path, "listing_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateInstallationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7288,6 +7602,12 @@ func (newState *UpdateInstallationResponse) SyncEffectiveFieldsDuringCreateOrUpd func (newState *UpdateInstallationResponse) SyncEffectiveFieldsDuringRead(existingState UpdateInstallationResponse) { } +func (c UpdateInstallationResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + InstallationDetail{}.ToSchema(cs, append(path, "installation")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateInstallationResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7361,6 +7681,14 @@ func (newState *UpdateListingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *UpdateListingRequest) SyncEffectiveFieldsDuringRead(existingState UpdateListingRequest) { } +func (c UpdateListingRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "id")...) + cs.SetRequired(append(path, "listing")...) + Listing{}.ToSchema(cs, append(path, "listing")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateListingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7434,6 +7762,12 @@ func (newState *UpdateListingResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *UpdateListingResponse) SyncEffectiveFieldsDuringRead(existingState UpdateListingResponse) { } +func (c UpdateListingResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Listing{}.ToSchema(cs, append(path, "listing")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateListingResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7513,6 +7847,15 @@ func (newState *UpdatePersonalizationRequestRequest) SyncEffectiveFieldsDuringCr func (newState *UpdatePersonalizationRequestRequest) SyncEffectiveFieldsDuringRead(existingState UpdatePersonalizationRequestRequest) { } +func (c UpdatePersonalizationRequestRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "listing_id")...) + cs.SetRequired(append(path, "request_id")...) + ShareInfo{}.ToSchema(cs, append(path, "share")...) + cs.SetRequired(append(path, "status")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdatePersonalizationRequestRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7592,6 +7935,12 @@ func (newState *UpdatePersonalizationRequestResponse) SyncEffectiveFieldsDuringC func (newState *UpdatePersonalizationRequestResponse) SyncEffectiveFieldsDuringRead(existingState UpdatePersonalizationRequestResponse) { } +func (c UpdatePersonalizationRequestResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PersonalizationRequest{}.ToSchema(cs, append(path, "request")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdatePersonalizationRequestResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7668,6 +8017,12 @@ func (newState *UpdateProviderAnalyticsDashboardRequest) SyncEffectiveFieldsDuri func (newState *UpdateProviderAnalyticsDashboardRequest) SyncEffectiveFieldsDuringRead(existingState UpdateProviderAnalyticsDashboardRequest) { } +func (c UpdateProviderAnalyticsDashboardRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateProviderAnalyticsDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7716,6 +8071,13 @@ func (newState *UpdateProviderAnalyticsDashboardResponse) SyncEffectiveFieldsDur func (newState *UpdateProviderAnalyticsDashboardResponse) SyncEffectiveFieldsDuringRead(existingState UpdateProviderAnalyticsDashboardResponse) { } +func (c UpdateProviderAnalyticsDashboardResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "dashboard_id")...) + cs.SetRequired(append(path, "id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateProviderAnalyticsDashboardResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7763,6 +8125,14 @@ func (newState *UpdateProviderRequest) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *UpdateProviderRequest) SyncEffectiveFieldsDuringRead(existingState UpdateProviderRequest) { } +func (c UpdateProviderRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "id")...) + cs.SetRequired(append(path, "provider")...) + ProviderInfo{}.ToSchema(cs, append(path, "provider")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateProviderRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7836,6 +8206,12 @@ func (newState *UpdateProviderResponse) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *UpdateProviderResponse) SyncEffectiveFieldsDuringRead(existingState UpdateProviderResponse) { } +func (c UpdateProviderResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ProviderInfo{}.ToSchema(cs, append(path, "provider")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateProviderResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/ml_tf/legacy_model.go b/internal/service/ml_tf/legacy_model.go index 1a2925293..14ff33529 100755 --- a/internal/service/ml_tf/legacy_model.go +++ b/internal/service/ml_tf/legacy_model.go @@ -202,12 +202,6 @@ type ApproveTransitionRequestResponse_SdkV2 struct { Activity types.List `tfsdk:"activity" tf:"optional,object"` } -func (newState *ApproveTransitionRequestResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ApproveTransitionRequestResponse_SdkV2) { -} - -func (newState *ApproveTransitionRequestResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState ApproveTransitionRequestResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ApproveTransitionRequestResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -417,12 +411,6 @@ type CreateCommentResponse_SdkV2 struct { Comment types.List `tfsdk:"comment" tf:"optional,object"` } -func (newState *CreateCommentResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateCommentResponse_SdkV2) { -} - -func (newState *CreateCommentResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateCommentResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateCommentResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1342,12 +1330,6 @@ type CreateTransitionRequestResponse_SdkV2 struct { Request types.List `tfsdk:"request" tf:"optional,object"` } -func (newState *CreateTransitionRequestResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateTransitionRequestResponse_SdkV2) { -} - -func (newState *CreateTransitionRequestResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateTransitionRequestResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateTransitionRequestResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1413,12 +1395,6 @@ type CreateWebhookResponse_SdkV2 struct { Webhook types.List `tfsdk:"webhook" tf:"optional,object"` } -func (newState *CreateWebhookResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateWebhookResponse_SdkV2) { -} - -func (newState *CreateWebhookResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateWebhookResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateWebhookResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1661,12 +1637,6 @@ type DeleteCommentRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteCommentRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteCommentRequest_SdkV2) { -} - -func (newState *DeleteCommentRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteCommentRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCommentRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1701,12 +1671,6 @@ func (o DeleteCommentRequest_SdkV2) Type(ctx context.Context) attr.Type { type DeleteCommentResponse_SdkV2 struct { } -func (newState *DeleteCommentResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteCommentResponse_SdkV2) { -} - -func (newState *DeleteCommentResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteCommentResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCommentResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1818,12 +1782,6 @@ type DeleteModelRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteModelRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteModelRequest_SdkV2) { -} - -func (newState *DeleteModelRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteModelRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteModelRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1858,12 +1816,6 @@ func (o DeleteModelRequest_SdkV2) Type(ctx context.Context) attr.Type { type DeleteModelResponse_SdkV2 struct { } -func (newState *DeleteModelResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteModelResponse_SdkV2) { -} - -func (newState *DeleteModelResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteModelResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteModelResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1900,12 +1852,6 @@ type DeleteModelTagRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteModelTagRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteModelTagRequest_SdkV2) { -} - -func (newState *DeleteModelTagRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteModelTagRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteModelTagRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1942,12 +1888,6 @@ func (o DeleteModelTagRequest_SdkV2) Type(ctx context.Context) attr.Type { type DeleteModelTagResponse_SdkV2 struct { } -func (newState *DeleteModelTagResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteModelTagResponse_SdkV2) { -} - -func (newState *DeleteModelTagResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteModelTagResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteModelTagResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1983,12 +1923,6 @@ type DeleteModelVersionRequest_SdkV2 struct { Version types.String `tfsdk:"-"` } -func (newState *DeleteModelVersionRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteModelVersionRequest_SdkV2) { -} - -func (newState *DeleteModelVersionRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteModelVersionRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteModelVersionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2025,12 +1959,6 @@ func (o DeleteModelVersionRequest_SdkV2) Type(ctx context.Context) attr.Type { type DeleteModelVersionResponse_SdkV2 struct { } -func (newState *DeleteModelVersionResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteModelVersionResponse_SdkV2) { -} - -func (newState *DeleteModelVersionResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteModelVersionResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteModelVersionResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2069,12 +1997,6 @@ type DeleteModelVersionTagRequest_SdkV2 struct { Version types.String `tfsdk:"-"` } -func (newState *DeleteModelVersionTagRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteModelVersionTagRequest_SdkV2) { -} - -func (newState *DeleteModelVersionTagRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteModelVersionTagRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteModelVersionTagRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2113,12 +2035,6 @@ func (o DeleteModelVersionTagRequest_SdkV2) Type(ctx context.Context) attr.Type type DeleteModelVersionTagResponse_SdkV2 struct { } -func (newState *DeleteModelVersionTagResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteModelVersionTagResponse_SdkV2) { -} - -func (newState *DeleteModelVersionTagResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteModelVersionTagResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteModelVersionTagResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2425,12 +2341,6 @@ type DeleteTransitionRequestRequest_SdkV2 struct { Version types.String `tfsdk:"-"` } -func (newState *DeleteTransitionRequestRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteTransitionRequestRequest_SdkV2) { -} - -func (newState *DeleteTransitionRequestRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteTransitionRequestRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteTransitionRequestRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2473,12 +2383,6 @@ func (o DeleteTransitionRequestRequest_SdkV2) Type(ctx context.Context) attr.Typ type DeleteTransitionRequestResponse_SdkV2 struct { } -func (newState *DeleteTransitionRequestResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteTransitionRequestResponse_SdkV2) { -} - -func (newState *DeleteTransitionRequestResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteTransitionRequestResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteTransitionRequestResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2512,12 +2416,6 @@ type DeleteWebhookRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteWebhookRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteWebhookRequest_SdkV2) { -} - -func (newState *DeleteWebhookRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteWebhookRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteWebhookRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2552,12 +2450,6 @@ func (o DeleteWebhookRequest_SdkV2) Type(ctx context.Context) attr.Type { type DeleteWebhookResponse_SdkV2 struct { } -func (newState *DeleteWebhookResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteWebhookResponse_SdkV2) { -} - -func (newState *DeleteWebhookResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteWebhookResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteWebhookResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3204,12 +3096,6 @@ type GetByNameRequest_SdkV2 struct { ExperimentName types.String `tfsdk:"-"` } -func (newState *GetByNameRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetByNameRequest_SdkV2) { -} - -func (newState *GetByNameRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetByNameRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetByNameRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3247,12 +3133,6 @@ type GetExperimentPermissionLevelsRequest_SdkV2 struct { ExperimentId types.String `tfsdk:"-"` } -func (newState *GetExperimentPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetExperimentPermissionLevelsRequest_SdkV2) { -} - -func (newState *GetExperimentPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetExperimentPermissionLevelsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetExperimentPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3362,12 +3242,6 @@ type GetExperimentPermissionsRequest_SdkV2 struct { ExperimentId types.String `tfsdk:"-"` } -func (newState *GetExperimentPermissionsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetExperimentPermissionsRequest_SdkV2) { -} - -func (newState *GetExperimentPermissionsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetExperimentPermissionsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetExperimentPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3405,12 +3279,6 @@ type GetExperimentRequest_SdkV2 struct { ExperimentId types.String `tfsdk:"-"` } -func (newState *GetExperimentRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetExperimentRequest_SdkV2) { -} - -func (newState *GetExperimentRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetExperimentRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetExperimentRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3531,12 +3399,6 @@ type GetHistoryRequest_SdkV2 struct { RunUuid types.String `tfsdk:"-"` } -func (newState *GetHistoryRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetHistoryRequest_SdkV2) { -} - -func (newState *GetHistoryRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetHistoryRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetHistoryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3809,12 +3671,6 @@ type GetModelRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *GetModelRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetModelRequest_SdkV2) { -} - -func (newState *GetModelRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetModelRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetModelRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3850,12 +3706,6 @@ type GetModelResponse_SdkV2 struct { RegisteredModelDatabricks types.List `tfsdk:"registered_model_databricks" tf:"optional,object"` } -func (newState *GetModelResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetModelResponse_SdkV2) { -} - -func (newState *GetModelResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetModelResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetModelResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3925,12 +3775,6 @@ type GetModelVersionDownloadUriRequest_SdkV2 struct { Version types.String `tfsdk:"-"` } -func (newState *GetModelVersionDownloadUriRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetModelVersionDownloadUriRequest_SdkV2) { -} - -func (newState *GetModelVersionDownloadUriRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetModelVersionDownloadUriRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetModelVersionDownloadUriRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4014,12 +3858,6 @@ type GetModelVersionRequest_SdkV2 struct { Version types.String `tfsdk:"-"` } -func (newState *GetModelVersionRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetModelVersionRequest_SdkV2) { -} - -func (newState *GetModelVersionRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetModelVersionRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetModelVersionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4130,12 +3968,6 @@ type GetRegisteredModelPermissionLevelsRequest_SdkV2 struct { RegisteredModelId types.String `tfsdk:"-"` } -func (newState *GetRegisteredModelPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRegisteredModelPermissionLevelsRequest_SdkV2) { -} - -func (newState *GetRegisteredModelPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetRegisteredModelPermissionLevelsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRegisteredModelPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4245,12 +4077,6 @@ type GetRegisteredModelPermissionsRequest_SdkV2 struct { RegisteredModelId types.String `tfsdk:"-"` } -func (newState *GetRegisteredModelPermissionsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRegisteredModelPermissionsRequest_SdkV2) { -} - -func (newState *GetRegisteredModelPermissionsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetRegisteredModelPermissionsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRegisteredModelPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4291,12 +4117,6 @@ type GetRunRequest_SdkV2 struct { RunUuid types.String `tfsdk:"-"` } -func (newState *GetRunRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRunRequest_SdkV2) { -} - -func (newState *GetRunRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetRunRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRunRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4685,12 +4505,6 @@ type ListArtifactsRequest_SdkV2 struct { RunUuid types.String `tfsdk:"-"` } -func (newState *ListArtifactsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListArtifactsRequest_SdkV2) { -} - -func (newState *ListArtifactsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListArtifactsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListArtifactsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4823,12 +4637,6 @@ type ListExperimentsRequest_SdkV2 struct { ViewType types.String `tfsdk:"-"` } -func (newState *ListExperimentsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListExperimentsRequest_SdkV2) { -} - -func (newState *ListExperimentsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListExperimentsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListExperimentsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4950,12 +4758,6 @@ type ListModelsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListModelsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListModelsRequest_SdkV2) { -} - -func (newState *ListModelsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListModelsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListModelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5149,12 +4951,6 @@ type ListTransitionRequestsRequest_SdkV2 struct { Version types.String `tfsdk:"-"` } -func (newState *ListTransitionRequestsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListTransitionRequestsRequest_SdkV2) { -} - -func (newState *ListTransitionRequestsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListTransitionRequestsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListTransitionRequestsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5193,12 +4989,6 @@ type ListTransitionRequestsResponse_SdkV2 struct { Requests types.List `tfsdk:"requests" tf:"optional"` } -func (newState *ListTransitionRequestsResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListTransitionRequestsResponse_SdkV2) { -} - -func (newState *ListTransitionRequestsResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListTransitionRequestsResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListTransitionRequestsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5273,12 +5063,6 @@ type ListWebhooksRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListWebhooksRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListWebhooksRequest_SdkV2) { -} - -func (newState *ListWebhooksRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListWebhooksRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListWebhooksRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7317,12 +7101,6 @@ type RejectTransitionRequestResponse_SdkV2 struct { Activity types.List `tfsdk:"activity" tf:"optional,object"` } -func (newState *RejectTransitionRequestResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan RejectTransitionRequestResponse_SdkV2) { -} - -func (newState *RejectTransitionRequestResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState RejectTransitionRequestResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in RejectTransitionRequestResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8412,12 +8190,6 @@ type SearchModelVersionsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *SearchModelVersionsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan SearchModelVersionsRequest_SdkV2) { -} - -func (newState *SearchModelVersionsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState SearchModelVersionsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in SearchModelVersionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8578,12 +8350,6 @@ type SearchModelsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *SearchModelsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan SearchModelsRequest_SdkV2) { -} - -func (newState *SearchModelsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState SearchModelsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in SearchModelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9410,12 +9176,6 @@ type TestRegistryWebhookResponse_SdkV2 struct { Webhook types.List `tfsdk:"webhook" tf:"optional,object"` } -func (newState *TestRegistryWebhookResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan TestRegistryWebhookResponse_SdkV2) { -} - -func (newState *TestRegistryWebhookResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState TestRegistryWebhookResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in TestRegistryWebhookResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9646,12 +9406,6 @@ type TransitionStageResponse_SdkV2 struct { ModelVersion types.List `tfsdk:"model_version" tf:"optional,object"` } -func (newState *TransitionStageResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan TransitionStageResponse_SdkV2) { -} - -func (newState *TransitionStageResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState TransitionStageResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in TransitionStageResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9764,12 +9518,6 @@ type UpdateCommentResponse_SdkV2 struct { Comment types.List `tfsdk:"comment" tf:"optional,object"` } -func (newState *UpdateCommentResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateCommentResponse_SdkV2) { -} - -func (newState *UpdateCommentResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdateCommentResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateCommentResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9963,12 +9711,6 @@ func (o UpdateModelRequest_SdkV2) Type(ctx context.Context) attr.Type { type UpdateModelResponse_SdkV2 struct { } -func (newState *UpdateModelResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateModelResponse_SdkV2) { -} - -func (newState *UpdateModelResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdateModelResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateModelResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10049,12 +9791,6 @@ func (o UpdateModelVersionRequest_SdkV2) Type(ctx context.Context) attr.Type { type UpdateModelVersionResponse_SdkV2 struct { } -func (newState *UpdateModelVersionResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateModelVersionResponse_SdkV2) { -} - -func (newState *UpdateModelVersionResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdateModelVersionResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateModelVersionResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10401,12 +10137,6 @@ func (o *UpdateRunResponse_SdkV2) SetRunInfo(ctx context.Context, v RunInfo_SdkV type UpdateWebhookResponse_SdkV2 struct { } -func (newState *UpdateWebhookResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateWebhookResponse_SdkV2) { -} - -func (newState *UpdateWebhookResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdateWebhookResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateWebhookResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/ml_tf/model.go b/internal/service/ml_tf/model.go index 12c5b7079..14ef65aa6 100755 --- a/internal/service/ml_tf/model.go +++ b/internal/service/ml_tf/model.go @@ -15,6 +15,7 @@ import ( "reflect" pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common" + "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/tfschema" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/types" @@ -83,6 +84,11 @@ func (newState *Activity) SyncEffectiveFieldsDuringCreateOrUpdate(plan Activity) func (newState *Activity) SyncEffectiveFieldsDuringRead(existingState Activity) { } +func (c Activity) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Activity. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -158,6 +164,15 @@ func (newState *ApproveTransitionRequest) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *ApproveTransitionRequest) SyncEffectiveFieldsDuringRead(existingState ApproveTransitionRequest) { } +func (c ApproveTransitionRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "archive_existing_versions")...) + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "stage")...) + cs.SetRequired(append(path, "version")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ApproveTransitionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -202,12 +217,6 @@ type ApproveTransitionRequestResponse struct { Activity types.Object `tfsdk:"activity" tf:"optional,object"` } -func (newState *ApproveTransitionRequestResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ApproveTransitionRequestResponse) { -} - -func (newState *ApproveTransitionRequestResponse) SyncEffectiveFieldsDuringRead(existingState ApproveTransitionRequestResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ApproveTransitionRequestResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -291,6 +300,11 @@ func (newState *CommentObject) SyncEffectiveFieldsDuringCreateOrUpdate(plan Comm func (newState *CommentObject) SyncEffectiveFieldsDuringRead(existingState CommentObject) { } +func (c CommentObject) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CommentObject. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -377,6 +391,14 @@ func (newState *CreateComment) SyncEffectiveFieldsDuringCreateOrUpdate(plan Crea func (newState *CreateComment) SyncEffectiveFieldsDuringRead(existingState CreateComment) { } +func (c CreateComment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "comment")...) + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "version")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateComment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -417,12 +439,6 @@ type CreateCommentResponse struct { Comment types.Object `tfsdk:"comment" tf:"optional,object"` } -func (newState *CreateCommentResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateCommentResponse) { -} - -func (newState *CreateCommentResponse) SyncEffectiveFieldsDuringRead(existingState CreateCommentResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateCommentResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -504,6 +520,13 @@ func (newState *CreateExperiment) SyncEffectiveFieldsDuringCreateOrUpdate(plan C func (newState *CreateExperiment) SyncEffectiveFieldsDuringRead(existingState CreateExperiment) { } +func (c CreateExperiment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + ExperimentTag{}.ToSchema(cs, append(path, "tags")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateExperiment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -580,6 +603,11 @@ func (newState *CreateExperimentResponse) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *CreateExperimentResponse) SyncEffectiveFieldsDuringRead(existingState CreateExperimentResponse) { } +func (c CreateExperimentResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateExperimentResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -626,6 +654,13 @@ func (newState *CreateModelRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *CreateModelRequest) SyncEffectiveFieldsDuringRead(existingState CreateModelRequest) { } +func (c CreateModelRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + ModelTag{}.ToSchema(cs, append(path, "tags")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateModelRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -701,6 +736,12 @@ func (newState *CreateModelResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *CreateModelResponse) SyncEffectiveFieldsDuringRead(existingState CreateModelResponse) { } +func (c CreateModelResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Model{}.ToSchema(cs, append(path, "registered_model")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateModelResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -785,6 +826,14 @@ func (newState *CreateModelVersionRequest) SyncEffectiveFieldsDuringCreateOrUpda func (newState *CreateModelVersionRequest) SyncEffectiveFieldsDuringRead(existingState CreateModelVersionRequest) { } +func (c CreateModelVersionRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "source")...) + ModelVersionTag{}.ToSchema(cs, append(path, "tags")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateModelVersionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -867,6 +916,12 @@ func (newState *CreateModelVersionResponse) SyncEffectiveFieldsDuringCreateOrUpd func (newState *CreateModelVersionResponse) SyncEffectiveFieldsDuringRead(existingState CreateModelVersionResponse) { } +func (c CreateModelVersionResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ModelVersion{}.ToSchema(cs, append(path, "model_version")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateModelVersionResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -988,6 +1043,14 @@ func (newState *CreateRegistryWebhook) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *CreateRegistryWebhook) SyncEffectiveFieldsDuringRead(existingState CreateRegistryWebhook) { } +func (c CreateRegistryWebhook) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "events")...) + HttpUrlSpec{}.ToSchema(cs, append(path, "http_url_spec")...) + JobSpec{}.ToSchema(cs, append(path, "job_spec")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateRegistryWebhook. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1136,6 +1199,12 @@ func (newState *CreateRun) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateRu func (newState *CreateRun) SyncEffectiveFieldsDuringRead(existingState CreateRun) { } +func (c CreateRun) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RunTag{}.ToSchema(cs, append(path, "tags")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateRun. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1214,6 +1283,12 @@ func (newState *CreateRunResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *CreateRunResponse) SyncEffectiveFieldsDuringRead(existingState CreateRunResponse) { } +func (c CreateRunResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Run{}.ToSchema(cs, append(path, "run")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateRunResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1300,6 +1375,14 @@ func (newState *CreateTransitionRequest) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *CreateTransitionRequest) SyncEffectiveFieldsDuringRead(existingState CreateTransitionRequest) { } +func (c CreateTransitionRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "stage")...) + cs.SetRequired(append(path, "version")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateTransitionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1342,12 +1425,6 @@ type CreateTransitionRequestResponse struct { Request types.Object `tfsdk:"request" tf:"optional,object"` } -func (newState *CreateTransitionRequestResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateTransitionRequestResponse) { -} - -func (newState *CreateTransitionRequestResponse) SyncEffectiveFieldsDuringRead(existingState CreateTransitionRequestResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateTransitionRequestResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1413,12 +1490,6 @@ type CreateWebhookResponse struct { Webhook types.Object `tfsdk:"webhook" tf:"optional,object"` } -func (newState *CreateWebhookResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateWebhookResponse) { -} - -func (newState *CreateWebhookResponse) SyncEffectiveFieldsDuringRead(existingState CreateWebhookResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateWebhookResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1509,6 +1580,11 @@ func (newState *Dataset) SyncEffectiveFieldsDuringCreateOrUpdate(plan Dataset) { func (newState *Dataset) SyncEffectiveFieldsDuringRead(existingState Dataset) { } +func (c Dataset) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Dataset. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1564,6 +1640,13 @@ func (newState *DatasetInput) SyncEffectiveFieldsDuringCreateOrUpdate(plan Datas func (newState *DatasetInput) SyncEffectiveFieldsDuringRead(existingState DatasetInput) { } +func (c DatasetInput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Dataset{}.ToSchema(cs, append(path, "dataset")...) + InputTag{}.ToSchema(cs, append(path, "tags")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DatasetInput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1661,12 +1744,6 @@ type DeleteCommentRequest struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteCommentRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteCommentRequest) { -} - -func (newState *DeleteCommentRequest) SyncEffectiveFieldsDuringRead(existingState DeleteCommentRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCommentRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1701,12 +1778,6 @@ func (o DeleteCommentRequest) Type(ctx context.Context) attr.Type { type DeleteCommentResponse struct { } -func (newState *DeleteCommentResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteCommentResponse) { -} - -func (newState *DeleteCommentResponse) SyncEffectiveFieldsDuringRead(existingState DeleteCommentResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCommentResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1745,6 +1816,12 @@ func (newState *DeleteExperiment) SyncEffectiveFieldsDuringCreateOrUpdate(plan D func (newState *DeleteExperiment) SyncEffectiveFieldsDuringRead(existingState DeleteExperiment) { } +func (c DeleteExperiment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "experiment_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteExperiment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1785,6 +1862,11 @@ func (newState *DeleteExperimentResponse) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *DeleteExperimentResponse) SyncEffectiveFieldsDuringRead(existingState DeleteExperimentResponse) { } +func (c DeleteExperimentResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteExperimentResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1818,12 +1900,6 @@ type DeleteModelRequest struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteModelRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteModelRequest) { -} - -func (newState *DeleteModelRequest) SyncEffectiveFieldsDuringRead(existingState DeleteModelRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteModelRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1858,12 +1934,6 @@ func (o DeleteModelRequest) Type(ctx context.Context) attr.Type { type DeleteModelResponse struct { } -func (newState *DeleteModelResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteModelResponse) { -} - -func (newState *DeleteModelResponse) SyncEffectiveFieldsDuringRead(existingState DeleteModelResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteModelResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1900,12 +1970,6 @@ type DeleteModelTagRequest struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteModelTagRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteModelTagRequest) { -} - -func (newState *DeleteModelTagRequest) SyncEffectiveFieldsDuringRead(existingState DeleteModelTagRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteModelTagRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1942,12 +2006,6 @@ func (o DeleteModelTagRequest) Type(ctx context.Context) attr.Type { type DeleteModelTagResponse struct { } -func (newState *DeleteModelTagResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteModelTagResponse) { -} - -func (newState *DeleteModelTagResponse) SyncEffectiveFieldsDuringRead(existingState DeleteModelTagResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteModelTagResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1983,12 +2041,6 @@ type DeleteModelVersionRequest struct { Version types.String `tfsdk:"-"` } -func (newState *DeleteModelVersionRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteModelVersionRequest) { -} - -func (newState *DeleteModelVersionRequest) SyncEffectiveFieldsDuringRead(existingState DeleteModelVersionRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteModelVersionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2025,12 +2077,6 @@ func (o DeleteModelVersionRequest) Type(ctx context.Context) attr.Type { type DeleteModelVersionResponse struct { } -func (newState *DeleteModelVersionResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteModelVersionResponse) { -} - -func (newState *DeleteModelVersionResponse) SyncEffectiveFieldsDuringRead(existingState DeleteModelVersionResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteModelVersionResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2069,12 +2115,6 @@ type DeleteModelVersionTagRequest struct { Version types.String `tfsdk:"-"` } -func (newState *DeleteModelVersionTagRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteModelVersionTagRequest) { -} - -func (newState *DeleteModelVersionTagRequest) SyncEffectiveFieldsDuringRead(existingState DeleteModelVersionTagRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteModelVersionTagRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2113,12 +2153,6 @@ func (o DeleteModelVersionTagRequest) Type(ctx context.Context) attr.Type { type DeleteModelVersionTagResponse struct { } -func (newState *DeleteModelVersionTagResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteModelVersionTagResponse) { -} - -func (newState *DeleteModelVersionTagResponse) SyncEffectiveFieldsDuringRead(existingState DeleteModelVersionTagResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteModelVersionTagResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2157,6 +2191,12 @@ func (newState *DeleteRun) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteRu func (newState *DeleteRun) SyncEffectiveFieldsDuringRead(existingState DeleteRun) { } +func (c DeleteRun) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "run_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteRun. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2197,6 +2237,11 @@ func (newState *DeleteRunResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *DeleteRunResponse) SyncEffectiveFieldsDuringRead(existingState DeleteRunResponse) { } +func (c DeleteRunResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteRunResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2242,6 +2287,13 @@ func (newState *DeleteRuns) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteR func (newState *DeleteRuns) SyncEffectiveFieldsDuringRead(existingState DeleteRuns) { } +func (c DeleteRuns) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "experiment_id")...) + cs.SetRequired(append(path, "max_timestamp_millis")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteRuns. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2288,6 +2340,11 @@ func (newState *DeleteRunsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *DeleteRunsResponse) SyncEffectiveFieldsDuringRead(existingState DeleteRunsResponse) { } +func (c DeleteRunsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteRunsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2332,6 +2389,13 @@ func (newState *DeleteTag) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteTa func (newState *DeleteTag) SyncEffectiveFieldsDuringRead(existingState DeleteTag) { } +func (c DeleteTag) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "key")...) + cs.SetRequired(append(path, "run_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteTag. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2374,6 +2438,11 @@ func (newState *DeleteTagResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *DeleteTagResponse) SyncEffectiveFieldsDuringRead(existingState DeleteTagResponse) { } +func (c DeleteTagResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteTagResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2425,12 +2494,6 @@ type DeleteTransitionRequestRequest struct { Version types.String `tfsdk:"-"` } -func (newState *DeleteTransitionRequestRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteTransitionRequestRequest) { -} - -func (newState *DeleteTransitionRequestRequest) SyncEffectiveFieldsDuringRead(existingState DeleteTransitionRequestRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteTransitionRequestRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2473,12 +2536,6 @@ func (o DeleteTransitionRequestRequest) Type(ctx context.Context) attr.Type { type DeleteTransitionRequestResponse struct { } -func (newState *DeleteTransitionRequestResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteTransitionRequestResponse) { -} - -func (newState *DeleteTransitionRequestResponse) SyncEffectiveFieldsDuringRead(existingState DeleteTransitionRequestResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteTransitionRequestResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2512,12 +2569,6 @@ type DeleteWebhookRequest struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteWebhookRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteWebhookRequest) { -} - -func (newState *DeleteWebhookRequest) SyncEffectiveFieldsDuringRead(existingState DeleteWebhookRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteWebhookRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2552,12 +2603,6 @@ func (o DeleteWebhookRequest) Type(ctx context.Context) attr.Type { type DeleteWebhookResponse struct { } -func (newState *DeleteWebhookResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteWebhookResponse) { -} - -func (newState *DeleteWebhookResponse) SyncEffectiveFieldsDuringRead(existingState DeleteWebhookResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteWebhookResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2609,6 +2654,12 @@ func (newState *Experiment) SyncEffectiveFieldsDuringCreateOrUpdate(plan Experim func (newState *Experiment) SyncEffectiveFieldsDuringRead(existingState Experiment) { } +func (c Experiment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ExperimentTag{}.ToSchema(cs, append(path, "tags")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Experiment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2699,6 +2750,11 @@ func (newState *ExperimentAccessControlRequest) SyncEffectiveFieldsDuringCreateO func (newState *ExperimentAccessControlRequest) SyncEffectiveFieldsDuringRead(existingState ExperimentAccessControlRequest) { } +func (c ExperimentAccessControlRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExperimentAccessControlRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2755,6 +2811,12 @@ func (newState *ExperimentAccessControlResponse) SyncEffectiveFieldsDuringCreate func (newState *ExperimentAccessControlResponse) SyncEffectiveFieldsDuringRead(existingState ExperimentAccessControlResponse) { } +func (c ExperimentAccessControlResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ExperimentPermission{}.ToSchema(cs, append(path, "all_permissions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExperimentAccessControlResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2838,6 +2900,11 @@ func (newState *ExperimentPermission) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *ExperimentPermission) SyncEffectiveFieldsDuringRead(existingState ExperimentPermission) { } +func (c ExperimentPermission) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExperimentPermission. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2917,6 +2984,12 @@ func (newState *ExperimentPermissions) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *ExperimentPermissions) SyncEffectiveFieldsDuringRead(existingState ExperimentPermissions) { } +func (c ExperimentPermissions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ExperimentAccessControlResponse{}.ToSchema(cs, append(path, "access_control_list")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExperimentPermissions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2994,6 +3067,11 @@ func (newState *ExperimentPermissionsDescription) SyncEffectiveFieldsDuringCreat func (newState *ExperimentPermissionsDescription) SyncEffectiveFieldsDuringRead(existingState ExperimentPermissionsDescription) { } +func (c ExperimentPermissionsDescription) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExperimentPermissionsDescription. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3039,6 +3117,13 @@ func (newState *ExperimentPermissionsRequest) SyncEffectiveFieldsDuringCreateOrU func (newState *ExperimentPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState ExperimentPermissionsRequest) { } +func (c ExperimentPermissionsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ExperimentAccessControlRequest{}.ToSchema(cs, append(path, "access_control_list")...) + cs.SetRequired(append(path, "experiment_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExperimentPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3115,6 +3200,11 @@ func (newState *ExperimentTag) SyncEffectiveFieldsDuringCreateOrUpdate(plan Expe func (newState *ExperimentTag) SyncEffectiveFieldsDuringRead(existingState ExperimentTag) { } +func (c ExperimentTag) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExperimentTag. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3163,6 +3253,11 @@ func (newState *FileInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan FileInfo) func (newState *FileInfo) SyncEffectiveFieldsDuringRead(existingState FileInfo) { } +func (c FileInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in FileInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3204,12 +3299,6 @@ type GetByNameRequest struct { ExperimentName types.String `tfsdk:"-"` } -func (newState *GetByNameRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetByNameRequest) { -} - -func (newState *GetByNameRequest) SyncEffectiveFieldsDuringRead(existingState GetByNameRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetByNameRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3247,12 +3336,6 @@ type GetExperimentPermissionLevelsRequest struct { ExperimentId types.String `tfsdk:"-"` } -func (newState *GetExperimentPermissionLevelsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetExperimentPermissionLevelsRequest) { -} - -func (newState *GetExperimentPermissionLevelsRequest) SyncEffectiveFieldsDuringRead(existingState GetExperimentPermissionLevelsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetExperimentPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3295,6 +3378,12 @@ func (newState *GetExperimentPermissionLevelsResponse) SyncEffectiveFieldsDuring func (newState *GetExperimentPermissionLevelsResponse) SyncEffectiveFieldsDuringRead(existingState GetExperimentPermissionLevelsResponse) { } +func (c GetExperimentPermissionLevelsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ExperimentPermissionsDescription{}.ToSchema(cs, append(path, "permission_levels")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetExperimentPermissionLevelsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3362,12 +3451,6 @@ type GetExperimentPermissionsRequest struct { ExperimentId types.String `tfsdk:"-"` } -func (newState *GetExperimentPermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetExperimentPermissionsRequest) { -} - -func (newState *GetExperimentPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState GetExperimentPermissionsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetExperimentPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3405,12 +3488,6 @@ type GetExperimentRequest struct { ExperimentId types.String `tfsdk:"-"` } -func (newState *GetExperimentRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetExperimentRequest) { -} - -func (newState *GetExperimentRequest) SyncEffectiveFieldsDuringRead(existingState GetExperimentRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetExperimentRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3453,6 +3530,12 @@ func (newState *GetExperimentResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *GetExperimentResponse) SyncEffectiveFieldsDuringRead(existingState GetExperimentResponse) { } +func (c GetExperimentResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Experiment{}.ToSchema(cs, append(path, "experiment")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetExperimentResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3531,12 +3614,6 @@ type GetHistoryRequest struct { RunUuid types.String `tfsdk:"-"` } -func (newState *GetHistoryRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetHistoryRequest) { -} - -func (newState *GetHistoryRequest) SyncEffectiveFieldsDuringRead(existingState GetHistoryRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetHistoryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3589,6 +3666,12 @@ func (newState *GetLatestVersionsRequest) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *GetLatestVersionsRequest) SyncEffectiveFieldsDuringRead(existingState GetLatestVersionsRequest) { } +func (c GetLatestVersionsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetLatestVersionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3665,6 +3748,12 @@ func (newState *GetLatestVersionsResponse) SyncEffectiveFieldsDuringCreateOrUpda func (newState *GetLatestVersionsResponse) SyncEffectiveFieldsDuringRead(existingState GetLatestVersionsResponse) { } +func (c GetLatestVersionsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ModelVersion{}.ToSchema(cs, append(path, "model_versions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetLatestVersionsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3740,6 +3829,12 @@ func (newState *GetMetricHistoryResponse) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *GetMetricHistoryResponse) SyncEffectiveFieldsDuringRead(existingState GetMetricHistoryResponse) { } +func (c GetMetricHistoryResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Metric{}.ToSchema(cs, append(path, "metrics")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetMetricHistoryResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3809,12 +3904,6 @@ type GetModelRequest struct { Name types.String `tfsdk:"-"` } -func (newState *GetModelRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetModelRequest) { -} - -func (newState *GetModelRequest) SyncEffectiveFieldsDuringRead(existingState GetModelRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetModelRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3850,12 +3939,6 @@ type GetModelResponse struct { RegisteredModelDatabricks types.Object `tfsdk:"registered_model_databricks" tf:"optional,object"` } -func (newState *GetModelResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetModelResponse) { -} - -func (newState *GetModelResponse) SyncEffectiveFieldsDuringRead(existingState GetModelResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetModelResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3925,12 +4008,6 @@ type GetModelVersionDownloadUriRequest struct { Version types.String `tfsdk:"-"` } -func (newState *GetModelVersionDownloadUriRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetModelVersionDownloadUriRequest) { -} - -func (newState *GetModelVersionDownloadUriRequest) SyncEffectiveFieldsDuringRead(existingState GetModelVersionDownloadUriRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetModelVersionDownloadUriRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3975,6 +4052,11 @@ func (newState *GetModelVersionDownloadUriResponse) SyncEffectiveFieldsDuringCre func (newState *GetModelVersionDownloadUriResponse) SyncEffectiveFieldsDuringRead(existingState GetModelVersionDownloadUriResponse) { } +func (c GetModelVersionDownloadUriResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetModelVersionDownloadUriResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4014,12 +4096,6 @@ type GetModelVersionRequest struct { Version types.String `tfsdk:"-"` } -func (newState *GetModelVersionRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetModelVersionRequest) { -} - -func (newState *GetModelVersionRequest) SyncEffectiveFieldsDuringRead(existingState GetModelVersionRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetModelVersionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4063,6 +4139,12 @@ func (newState *GetModelVersionResponse) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *GetModelVersionResponse) SyncEffectiveFieldsDuringRead(existingState GetModelVersionResponse) { } +func (c GetModelVersionResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ModelVersion{}.ToSchema(cs, append(path, "model_version")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetModelVersionResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4130,12 +4212,6 @@ type GetRegisteredModelPermissionLevelsRequest struct { RegisteredModelId types.String `tfsdk:"-"` } -func (newState *GetRegisteredModelPermissionLevelsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRegisteredModelPermissionLevelsRequest) { -} - -func (newState *GetRegisteredModelPermissionLevelsRequest) SyncEffectiveFieldsDuringRead(existingState GetRegisteredModelPermissionLevelsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRegisteredModelPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4178,6 +4254,12 @@ func (newState *GetRegisteredModelPermissionLevelsResponse) SyncEffectiveFieldsD func (newState *GetRegisteredModelPermissionLevelsResponse) SyncEffectiveFieldsDuringRead(existingState GetRegisteredModelPermissionLevelsResponse) { } +func (c GetRegisteredModelPermissionLevelsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RegisteredModelPermissionsDescription{}.ToSchema(cs, append(path, "permission_levels")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRegisteredModelPermissionLevelsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4245,12 +4327,6 @@ type GetRegisteredModelPermissionsRequest struct { RegisteredModelId types.String `tfsdk:"-"` } -func (newState *GetRegisteredModelPermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRegisteredModelPermissionsRequest) { -} - -func (newState *GetRegisteredModelPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState GetRegisteredModelPermissionsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRegisteredModelPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4291,12 +4367,6 @@ type GetRunRequest struct { RunUuid types.String `tfsdk:"-"` } -func (newState *GetRunRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRunRequest) { -} - -func (newState *GetRunRequest) SyncEffectiveFieldsDuringRead(existingState GetRunRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRunRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4342,6 +4412,12 @@ func (newState *GetRunResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan Get func (newState *GetRunResponse) SyncEffectiveFieldsDuringRead(existingState GetRunResponse) { } +func (c GetRunResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Run{}.ToSchema(cs, append(path, "run")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRunResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4431,6 +4507,12 @@ func (newState *HttpUrlSpec) SyncEffectiveFieldsDuringCreateOrUpdate(plan HttpUr func (newState *HttpUrlSpec) SyncEffectiveFieldsDuringRead(existingState HttpUrlSpec) { } +func (c HttpUrlSpec) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "url")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in HttpUrlSpec. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4487,6 +4569,11 @@ func (newState *HttpUrlSpecWithoutSecret) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *HttpUrlSpecWithoutSecret) SyncEffectiveFieldsDuringRead(existingState HttpUrlSpecWithoutSecret) { } +func (c HttpUrlSpecWithoutSecret) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in HttpUrlSpecWithoutSecret. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4533,6 +4620,11 @@ func (newState *InputTag) SyncEffectiveFieldsDuringCreateOrUpdate(plan InputTag) func (newState *InputTag) SyncEffectiveFieldsDuringRead(existingState InputTag) { } +func (c InputTag) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in InputTag. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4583,6 +4675,13 @@ func (newState *JobSpec) SyncEffectiveFieldsDuringCreateOrUpdate(plan JobSpec) { func (newState *JobSpec) SyncEffectiveFieldsDuringRead(existingState JobSpec) { } +func (c JobSpec) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "access_token")...) + cs.SetRequired(append(path, "job_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobSpec. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4633,6 +4732,11 @@ func (newState *JobSpecWithoutSecret) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *JobSpecWithoutSecret) SyncEffectiveFieldsDuringRead(existingState JobSpecWithoutSecret) { } +func (c JobSpecWithoutSecret) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in JobSpecWithoutSecret. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4685,12 +4789,6 @@ type ListArtifactsRequest struct { RunUuid types.String `tfsdk:"-"` } -func (newState *ListArtifactsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListArtifactsRequest) { -} - -func (newState *ListArtifactsRequest) SyncEffectiveFieldsDuringRead(existingState ListArtifactsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListArtifactsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4743,6 +4841,12 @@ func (newState *ListArtifactsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *ListArtifactsResponse) SyncEffectiveFieldsDuringRead(existingState ListArtifactsResponse) { } +func (c ListArtifactsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + FileInfo{}.ToSchema(cs, append(path, "files")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListArtifactsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4823,12 +4927,6 @@ type ListExperimentsRequest struct { ViewType types.String `tfsdk:"-"` } -func (newState *ListExperimentsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListExperimentsRequest) { -} - -func (newState *ListExperimentsRequest) SyncEffectiveFieldsDuringRead(existingState ListExperimentsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListExperimentsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4879,6 +4977,12 @@ func (newState *ListExperimentsResponse) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *ListExperimentsResponse) SyncEffectiveFieldsDuringRead(existingState ListExperimentsResponse) { } +func (c ListExperimentsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Experiment{}.ToSchema(cs, append(path, "experiments")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListExperimentsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4950,12 +5054,6 @@ type ListModelsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListModelsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListModelsRequest) { -} - -func (newState *ListModelsRequest) SyncEffectiveFieldsDuringRead(existingState ListModelsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListModelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5002,6 +5100,12 @@ func (newState *ListModelsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ListModelsResponse) SyncEffectiveFieldsDuringRead(existingState ListModelsResponse) { } +func (c ListModelsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Model{}.ToSchema(cs, append(path, "registered_models")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListModelsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5078,6 +5182,12 @@ func (newState *ListRegistryWebhooks) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *ListRegistryWebhooks) SyncEffectiveFieldsDuringRead(existingState ListRegistryWebhooks) { } +func (c ListRegistryWebhooks) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RegistryWebhook{}.ToSchema(cs, append(path, "webhooks")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListRegistryWebhooks. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5149,12 +5259,6 @@ type ListTransitionRequestsRequest struct { Version types.String `tfsdk:"-"` } -func (newState *ListTransitionRequestsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListTransitionRequestsRequest) { -} - -func (newState *ListTransitionRequestsRequest) SyncEffectiveFieldsDuringRead(existingState ListTransitionRequestsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListTransitionRequestsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5193,12 +5297,6 @@ type ListTransitionRequestsResponse struct { Requests types.List `tfsdk:"requests" tf:"optional"` } -func (newState *ListTransitionRequestsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListTransitionRequestsResponse) { -} - -func (newState *ListTransitionRequestsResponse) SyncEffectiveFieldsDuringRead(existingState ListTransitionRequestsResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListTransitionRequestsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5273,12 +5371,6 @@ type ListWebhooksRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListWebhooksRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListWebhooksRequest) { -} - -func (newState *ListWebhooksRequest) SyncEffectiveFieldsDuringRead(existingState ListWebhooksRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListWebhooksRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5364,6 +5456,14 @@ func (newState *LogBatch) SyncEffectiveFieldsDuringCreateOrUpdate(plan LogBatch) func (newState *LogBatch) SyncEffectiveFieldsDuringRead(existingState LogBatch) { } +func (c LogBatch) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Metric{}.ToSchema(cs, append(path, "metrics")...) + Param{}.ToSchema(cs, append(path, "params")...) + RunTag{}.ToSchema(cs, append(path, "tags")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in LogBatch. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5498,6 +5598,11 @@ func (newState *LogBatchResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan L func (newState *LogBatchResponse) SyncEffectiveFieldsDuringRead(existingState LogBatchResponse) { } +func (c LogBatchResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in LogBatchResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5538,6 +5643,12 @@ func (newState *LogInputs) SyncEffectiveFieldsDuringCreateOrUpdate(plan LogInput func (newState *LogInputs) SyncEffectiveFieldsDuringRead(existingState LogInputs) { } +func (c LogInputs) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + DatasetInput{}.ToSchema(cs, append(path, "datasets")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in LogInputs. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5610,6 +5721,11 @@ func (newState *LogInputsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *LogInputsResponse) SyncEffectiveFieldsDuringRead(existingState LogInputsResponse) { } +func (c LogInputsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in LogInputsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5659,6 +5775,14 @@ func (newState *LogMetric) SyncEffectiveFieldsDuringCreateOrUpdate(plan LogMetri func (newState *LogMetric) SyncEffectiveFieldsDuringRead(existingState LogMetric) { } +func (c LogMetric) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "key")...) + cs.SetRequired(append(path, "timestamp")...) + cs.SetRequired(append(path, "value")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in LogMetric. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5709,6 +5833,11 @@ func (newState *LogMetricResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *LogMetricResponse) SyncEffectiveFieldsDuringRead(existingState LogMetricResponse) { } +func (c LogMetricResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in LogMetricResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5749,6 +5878,11 @@ func (newState *LogModel) SyncEffectiveFieldsDuringCreateOrUpdate(plan LogModel) func (newState *LogModel) SyncEffectiveFieldsDuringRead(existingState LogModel) { } +func (c LogModel) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in LogModel. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5791,6 +5925,11 @@ func (newState *LogModelResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan L func (newState *LogModelResponse) SyncEffectiveFieldsDuringRead(existingState LogModelResponse) { } +func (c LogModelResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in LogModelResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5836,6 +5975,13 @@ func (newState *LogParam) SyncEffectiveFieldsDuringCreateOrUpdate(plan LogParam) func (newState *LogParam) SyncEffectiveFieldsDuringRead(existingState LogParam) { } +func (c LogParam) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "key")...) + cs.SetRequired(append(path, "value")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in LogParam. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5882,6 +6028,11 @@ func (newState *LogParamResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan L func (newState *LogParamResponse) SyncEffectiveFieldsDuringRead(existingState LogParamResponse) { } +func (c LogParamResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in LogParamResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5926,6 +6077,11 @@ func (newState *Metric) SyncEffectiveFieldsDuringCreateOrUpdate(plan Metric) { func (newState *Metric) SyncEffectiveFieldsDuringRead(existingState Metric) { } +func (c Metric) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Metric. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5988,6 +6144,13 @@ func (newState *Model) SyncEffectiveFieldsDuringCreateOrUpdate(plan Model) { func (newState *Model) SyncEffectiveFieldsDuringRead(existingState Model) { } +func (c Model) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ModelVersion{}.ToSchema(cs, append(path, "latest_versions")...) + ModelTag{}.ToSchema(cs, append(path, "tags")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Model. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6118,6 +6281,13 @@ func (newState *ModelDatabricks) SyncEffectiveFieldsDuringCreateOrUpdate(plan Mo func (newState *ModelDatabricks) SyncEffectiveFieldsDuringRead(existingState ModelDatabricks) { } +func (c ModelDatabricks) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ModelVersion{}.ToSchema(cs, append(path, "latest_versions")...) + ModelTag{}.ToSchema(cs, append(path, "tags")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ModelDatabricks. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6237,6 +6407,11 @@ func (newState *ModelTag) SyncEffectiveFieldsDuringCreateOrUpdate(plan ModelTag) func (newState *ModelTag) SyncEffectiveFieldsDuringRead(existingState ModelTag) { } +func (c ModelTag) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ModelTag. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6308,6 +6483,12 @@ func (newState *ModelVersion) SyncEffectiveFieldsDuringCreateOrUpdate(plan Model func (newState *ModelVersion) SyncEffectiveFieldsDuringRead(existingState ModelVersion) { } +func (c ModelVersion) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ModelVersionTag{}.ToSchema(cs, append(path, "tags")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ModelVersion. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6450,6 +6631,12 @@ func (newState *ModelVersionDatabricks) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *ModelVersionDatabricks) SyncEffectiveFieldsDuringRead(existingState ModelVersionDatabricks) { } +func (c ModelVersionDatabricks) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ModelVersionTag{}.ToSchema(cs, append(path, "tags")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ModelVersionDatabricks. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6550,6 +6737,11 @@ func (newState *ModelVersionTag) SyncEffectiveFieldsDuringCreateOrUpdate(plan Mo func (newState *ModelVersionTag) SyncEffectiveFieldsDuringRead(existingState ModelVersionTag) { } +func (c ModelVersionTag) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ModelVersionTag. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6596,6 +6788,11 @@ func (newState *Param) SyncEffectiveFieldsDuringCreateOrUpdate(plan Param) { func (newState *Param) SyncEffectiveFieldsDuringRead(existingState Param) { } +func (c Param) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Param. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6646,6 +6843,11 @@ func (newState *RegisteredModelAccessControlRequest) SyncEffectiveFieldsDuringCr func (newState *RegisteredModelAccessControlRequest) SyncEffectiveFieldsDuringRead(existingState RegisteredModelAccessControlRequest) { } +func (c RegisteredModelAccessControlRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RegisteredModelAccessControlRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6702,6 +6904,12 @@ func (newState *RegisteredModelAccessControlResponse) SyncEffectiveFieldsDuringC func (newState *RegisteredModelAccessControlResponse) SyncEffectiveFieldsDuringRead(existingState RegisteredModelAccessControlResponse) { } +func (c RegisteredModelAccessControlResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RegisteredModelPermission{}.ToSchema(cs, append(path, "all_permissions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RegisteredModelAccessControlResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6785,6 +6993,11 @@ func (newState *RegisteredModelPermission) SyncEffectiveFieldsDuringCreateOrUpda func (newState *RegisteredModelPermission) SyncEffectiveFieldsDuringRead(existingState RegisteredModelPermission) { } +func (c RegisteredModelPermission) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RegisteredModelPermission. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6864,6 +7077,12 @@ func (newState *RegisteredModelPermissions) SyncEffectiveFieldsDuringCreateOrUpd func (newState *RegisteredModelPermissions) SyncEffectiveFieldsDuringRead(existingState RegisteredModelPermissions) { } +func (c RegisteredModelPermissions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RegisteredModelAccessControlResponse{}.ToSchema(cs, append(path, "access_control_list")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RegisteredModelPermissions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6941,6 +7160,11 @@ func (newState *RegisteredModelPermissionsDescription) SyncEffectiveFieldsDuring func (newState *RegisteredModelPermissionsDescription) SyncEffectiveFieldsDuringRead(existingState RegisteredModelPermissionsDescription) { } +func (c RegisteredModelPermissionsDescription) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RegisteredModelPermissionsDescription. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6986,6 +7210,13 @@ func (newState *RegisteredModelPermissionsRequest) SyncEffectiveFieldsDuringCrea func (newState *RegisteredModelPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState RegisteredModelPermissionsRequest) { } +func (c RegisteredModelPermissionsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RegisteredModelAccessControlRequest{}.ToSchema(cs, append(path, "access_control_list")...) + cs.SetRequired(append(path, "registered_model_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RegisteredModelPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7115,6 +7346,13 @@ func (newState *RegistryWebhook) SyncEffectiveFieldsDuringCreateOrUpdate(plan Re func (newState *RegistryWebhook) SyncEffectiveFieldsDuringRead(existingState RegistryWebhook) { } +func (c RegistryWebhook) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + HttpUrlSpecWithoutSecret{}.ToSchema(cs, append(path, "http_url_spec")...) + JobSpecWithoutSecret{}.ToSchema(cs, append(path, "job_spec")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RegistryWebhook. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7275,6 +7513,14 @@ func (newState *RejectTransitionRequest) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *RejectTransitionRequest) SyncEffectiveFieldsDuringRead(existingState RejectTransitionRequest) { } +func (c RejectTransitionRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "stage")...) + cs.SetRequired(append(path, "version")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RejectTransitionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7317,12 +7563,6 @@ type RejectTransitionRequestResponse struct { Activity types.Object `tfsdk:"activity" tf:"optional,object"` } -func (newState *RejectTransitionRequestResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan RejectTransitionRequestResponse) { -} - -func (newState *RejectTransitionRequestResponse) SyncEffectiveFieldsDuringRead(existingState RejectTransitionRequestResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in RejectTransitionRequestResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7397,6 +7637,12 @@ func (newState *RenameModelRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *RenameModelRequest) SyncEffectiveFieldsDuringRead(existingState RenameModelRequest) { } +func (c RenameModelRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RenameModelRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7440,6 +7686,12 @@ func (newState *RenameModelResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *RenameModelResponse) SyncEffectiveFieldsDuringRead(existingState RenameModelResponse) { } +func (c RenameModelResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Model{}.ToSchema(cs, append(path, "registered_model")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RenameModelResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7512,6 +7764,12 @@ func (newState *RestoreExperiment) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *RestoreExperiment) SyncEffectiveFieldsDuringRead(existingState RestoreExperiment) { } +func (c RestoreExperiment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "experiment_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RestoreExperiment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7552,6 +7810,11 @@ func (newState *RestoreExperimentResponse) SyncEffectiveFieldsDuringCreateOrUpda func (newState *RestoreExperimentResponse) SyncEffectiveFieldsDuringRead(existingState RestoreExperimentResponse) { } +func (c RestoreExperimentResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RestoreExperimentResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7590,6 +7853,12 @@ func (newState *RestoreRun) SyncEffectiveFieldsDuringCreateOrUpdate(plan Restore func (newState *RestoreRun) SyncEffectiveFieldsDuringRead(existingState RestoreRun) { } +func (c RestoreRun) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "run_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RestoreRun. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7630,6 +7899,11 @@ func (newState *RestoreRunResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *RestoreRunResponse) SyncEffectiveFieldsDuringRead(existingState RestoreRunResponse) { } +func (c RestoreRunResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RestoreRunResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7675,6 +7949,13 @@ func (newState *RestoreRuns) SyncEffectiveFieldsDuringCreateOrUpdate(plan Restor func (newState *RestoreRuns) SyncEffectiveFieldsDuringRead(existingState RestoreRuns) { } +func (c RestoreRuns) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "experiment_id")...) + cs.SetRequired(append(path, "min_timestamp_millis")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RestoreRuns. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7721,6 +8002,11 @@ func (newState *RestoreRunsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *RestoreRunsResponse) SyncEffectiveFieldsDuringRead(existingState RestoreRunsResponse) { } +func (c RestoreRunsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RestoreRunsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7767,6 +8053,14 @@ func (newState *Run) SyncEffectiveFieldsDuringCreateOrUpdate(plan Run) { func (newState *Run) SyncEffectiveFieldsDuringRead(existingState Run) { } +func (c Run) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RunData{}.ToSchema(cs, append(path, "data")...) + RunInfo{}.ToSchema(cs, append(path, "info")...) + RunInputs{}.ToSchema(cs, append(path, "inputs")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Run. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7905,6 +8199,14 @@ func (newState *RunData) SyncEffectiveFieldsDuringCreateOrUpdate(plan RunData) { func (newState *RunData) SyncEffectiveFieldsDuringRead(existingState RunData) { } +func (c RunData) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Metric{}.ToSchema(cs, append(path, "metrics")...) + Param{}.ToSchema(cs, append(path, "params")...) + RunTag{}.ToSchema(cs, append(path, "tags")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RunData. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8061,6 +8363,11 @@ func (newState *RunInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan RunInfo) { func (newState *RunInfo) SyncEffectiveFieldsDuringRead(existingState RunInfo) { } +func (c RunInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RunInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8119,6 +8426,12 @@ func (newState *RunInputs) SyncEffectiveFieldsDuringCreateOrUpdate(plan RunInput func (newState *RunInputs) SyncEffectiveFieldsDuringRead(existingState RunInputs) { } +func (c RunInputs) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + DatasetInput{}.ToSchema(cs, append(path, "dataset_inputs")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RunInputs. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8193,6 +8506,11 @@ func (newState *RunTag) SyncEffectiveFieldsDuringCreateOrUpdate(plan RunTag) { func (newState *RunTag) SyncEffectiveFieldsDuringRead(existingState RunTag) { } +func (c RunTag) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RunTag. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8250,6 +8568,11 @@ func (newState *SearchExperiments) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *SearchExperiments) SyncEffectiveFieldsDuringRead(existingState SearchExperiments) { } +func (c SearchExperiments) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SearchExperiments. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8333,6 +8656,12 @@ func (newState *SearchExperimentsResponse) SyncEffectiveFieldsDuringCreateOrUpda func (newState *SearchExperimentsResponse) SyncEffectiveFieldsDuringRead(existingState SearchExperimentsResponse) { } +func (c SearchExperimentsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Experiment{}.ToSchema(cs, append(path, "experiments")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SearchExperimentsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8412,12 +8741,6 @@ type SearchModelVersionsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *SearchModelVersionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan SearchModelVersionsRequest) { -} - -func (newState *SearchModelVersionsRequest) SyncEffectiveFieldsDuringRead(existingState SearchModelVersionsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in SearchModelVersionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8499,6 +8822,12 @@ func (newState *SearchModelVersionsResponse) SyncEffectiveFieldsDuringCreateOrUp func (newState *SearchModelVersionsResponse) SyncEffectiveFieldsDuringRead(existingState SearchModelVersionsResponse) { } +func (c SearchModelVersionsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ModelVersion{}.ToSchema(cs, append(path, "model_versions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SearchModelVersionsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8578,12 +8907,6 @@ type SearchModelsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *SearchModelsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan SearchModelsRequest) { -} - -func (newState *SearchModelsRequest) SyncEffectiveFieldsDuringRead(existingState SearchModelsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in SearchModelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8664,6 +8987,12 @@ func (newState *SearchModelsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *SearchModelsResponse) SyncEffectiveFieldsDuringRead(existingState SearchModelsResponse) { } +func (c SearchModelsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Model{}.ToSchema(cs, append(path, "registered_models")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SearchModelsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8765,6 +9094,11 @@ func (newState *SearchRuns) SyncEffectiveFieldsDuringCreateOrUpdate(plan SearchR func (newState *SearchRuns) SyncEffectiveFieldsDuringRead(existingState SearchRuns) { } +func (c SearchRuns) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SearchRuns. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8878,6 +9212,12 @@ func (newState *SearchRunsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *SearchRunsResponse) SyncEffectiveFieldsDuringRead(existingState SearchRunsResponse) { } +func (c SearchRunsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Run{}.ToSchema(cs, append(path, "runs")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SearchRunsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8959,6 +9299,14 @@ func (newState *SetExperimentTag) SyncEffectiveFieldsDuringCreateOrUpdate(plan S func (newState *SetExperimentTag) SyncEffectiveFieldsDuringRead(existingState SetExperimentTag) { } +func (c SetExperimentTag) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "experiment_id")...) + cs.SetRequired(append(path, "key")...) + cs.SetRequired(append(path, "value")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SetExperimentTag. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9003,6 +9351,11 @@ func (newState *SetExperimentTagResponse) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *SetExperimentTagResponse) SyncEffectiveFieldsDuringRead(existingState SetExperimentTagResponse) { } +func (c SetExperimentTagResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SetExperimentTagResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9050,6 +9403,14 @@ func (newState *SetModelTagRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *SetModelTagRequest) SyncEffectiveFieldsDuringRead(existingState SetModelTagRequest) { } +func (c SetModelTagRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "key")...) + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "value")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SetModelTagRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9094,6 +9455,11 @@ func (newState *SetModelTagResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *SetModelTagResponse) SyncEffectiveFieldsDuringRead(existingState SetModelTagResponse) { } +func (c SetModelTagResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SetModelTagResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9143,6 +9509,15 @@ func (newState *SetModelVersionTagRequest) SyncEffectiveFieldsDuringCreateOrUpda func (newState *SetModelVersionTagRequest) SyncEffectiveFieldsDuringRead(existingState SetModelVersionTagRequest) { } +func (c SetModelVersionTagRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "key")...) + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "value")...) + cs.SetRequired(append(path, "version")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SetModelVersionTagRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9189,6 +9564,11 @@ func (newState *SetModelVersionTagResponse) SyncEffectiveFieldsDuringCreateOrUpd func (newState *SetModelVersionTagResponse) SyncEffectiveFieldsDuringRead(existingState SetModelVersionTagResponse) { } +func (c SetModelVersionTagResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SetModelVersionTagResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9237,6 +9617,13 @@ func (newState *SetTag) SyncEffectiveFieldsDuringCreateOrUpdate(plan SetTag) { func (newState *SetTag) SyncEffectiveFieldsDuringRead(existingState SetTag) { } +func (c SetTag) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "key")...) + cs.SetRequired(append(path, "value")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SetTag. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9283,6 +9670,11 @@ func (newState *SetTagResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan Set func (newState *SetTagResponse) SyncEffectiveFieldsDuringRead(existingState SetTagResponse) { } +func (c SetTagResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SetTagResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9324,6 +9716,11 @@ func (newState *TestRegistryWebhook) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *TestRegistryWebhook) SyncEffectiveFieldsDuringRead(existingState TestRegistryWebhook) { } +func (c TestRegistryWebhook) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TestRegistryWebhook. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9372,6 +9769,12 @@ func (newState *TestRegistryWebhookRequest) SyncEffectiveFieldsDuringCreateOrUpd func (newState *TestRegistryWebhookRequest) SyncEffectiveFieldsDuringRead(existingState TestRegistryWebhookRequest) { } +func (c TestRegistryWebhookRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TestRegistryWebhookRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9410,12 +9813,6 @@ type TestRegistryWebhookResponse struct { Webhook types.Object `tfsdk:"webhook" tf:"optional,object"` } -func (newState *TestRegistryWebhookResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan TestRegistryWebhookResponse) { -} - -func (newState *TestRegistryWebhookResponse) SyncEffectiveFieldsDuringRead(existingState TestRegistryWebhookResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in TestRegistryWebhookResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9505,6 +9902,15 @@ func (newState *TransitionModelVersionStageDatabricks) SyncEffectiveFieldsDuring func (newState *TransitionModelVersionStageDatabricks) SyncEffectiveFieldsDuringRead(existingState TransitionModelVersionStageDatabricks) { } +func (c TransitionModelVersionStageDatabricks) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "archive_existing_versions")...) + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "stage")...) + cs.SetRequired(append(path, "version")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TransitionModelVersionStageDatabricks. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9573,6 +9979,11 @@ func (newState *TransitionRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *TransitionRequest) SyncEffectiveFieldsDuringRead(existingState TransitionRequest) { } +func (c TransitionRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TransitionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9646,12 +10057,6 @@ type TransitionStageResponse struct { ModelVersion types.Object `tfsdk:"model_version" tf:"optional,object"` } -func (newState *TransitionStageResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan TransitionStageResponse) { -} - -func (newState *TransitionStageResponse) SyncEffectiveFieldsDuringRead(existingState TransitionStageResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in TransitionStageResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9726,6 +10131,13 @@ func (newState *UpdateComment) SyncEffectiveFieldsDuringCreateOrUpdate(plan Upda func (newState *UpdateComment) SyncEffectiveFieldsDuringRead(existingState UpdateComment) { } +func (c UpdateComment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "comment")...) + cs.SetRequired(append(path, "id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateComment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9764,12 +10176,6 @@ type UpdateCommentResponse struct { Comment types.Object `tfsdk:"comment" tf:"optional,object"` } -func (newState *UpdateCommentResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateCommentResponse) { -} - -func (newState *UpdateCommentResponse) SyncEffectiveFieldsDuringRead(existingState UpdateCommentResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateCommentResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9845,6 +10251,12 @@ func (newState *UpdateExperiment) SyncEffectiveFieldsDuringCreateOrUpdate(plan U func (newState *UpdateExperiment) SyncEffectiveFieldsDuringRead(existingState UpdateExperiment) { } +func (c UpdateExperiment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "experiment_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateExperiment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9887,6 +10299,11 @@ func (newState *UpdateExperimentResponse) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *UpdateExperimentResponse) SyncEffectiveFieldsDuringRead(existingState UpdateExperimentResponse) { } +func (c UpdateExperimentResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateExperimentResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9927,6 +10344,12 @@ func (newState *UpdateModelRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *UpdateModelRequest) SyncEffectiveFieldsDuringRead(existingState UpdateModelRequest) { } +func (c UpdateModelRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateModelRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9963,12 +10386,6 @@ func (o UpdateModelRequest) Type(ctx context.Context) attr.Type { type UpdateModelResponse struct { } -func (newState *UpdateModelResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateModelResponse) { -} - -func (newState *UpdateModelResponse) SyncEffectiveFieldsDuringRead(existingState UpdateModelResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateModelResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10011,6 +10428,13 @@ func (newState *UpdateModelVersionRequest) SyncEffectiveFieldsDuringCreateOrUpda func (newState *UpdateModelVersionRequest) SyncEffectiveFieldsDuringRead(existingState UpdateModelVersionRequest) { } +func (c UpdateModelVersionRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "version")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateModelVersionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10049,12 +10473,6 @@ func (o UpdateModelVersionRequest) Type(ctx context.Context) attr.Type { type UpdateModelVersionResponse struct { } -func (newState *UpdateModelVersionResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateModelVersionResponse) { -} - -func (newState *UpdateModelVersionResponse) SyncEffectiveFieldsDuringRead(existingState UpdateModelVersionResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateModelVersionResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10142,6 +10560,14 @@ func (newState *UpdateRegistryWebhook) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *UpdateRegistryWebhook) SyncEffectiveFieldsDuringRead(existingState UpdateRegistryWebhook) { } +func (c UpdateRegistryWebhook) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + HttpUrlSpec{}.ToSchema(cs, append(path, "http_url_spec")...) + cs.SetRequired(append(path, "id")...) + JobSpec{}.ToSchema(cs, append(path, "job_spec")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateRegistryWebhook. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10289,6 +10715,11 @@ func (newState *UpdateRun) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateRu func (newState *UpdateRun) SyncEffectiveFieldsDuringRead(existingState UpdateRun) { } +func (c UpdateRun) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateRun. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10337,6 +10768,12 @@ func (newState *UpdateRunResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *UpdateRunResponse) SyncEffectiveFieldsDuringRead(existingState UpdateRunResponse) { } +func (c UpdateRunResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RunInfo{}.ToSchema(cs, append(path, "run_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateRunResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10401,12 +10838,6 @@ func (o *UpdateRunResponse) SetRunInfo(ctx context.Context, v RunInfo) { type UpdateWebhookResponse struct { } -func (newState *UpdateWebhookResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateWebhookResponse) { -} - -func (newState *UpdateWebhookResponse) SyncEffectiveFieldsDuringRead(existingState UpdateWebhookResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateWebhookResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/oauth2_tf/legacy_model.go b/internal/service/oauth2_tf/legacy_model.go index a11894aa5..0f8268440 100755 --- a/internal/service/oauth2_tf/legacy_model.go +++ b/internal/service/oauth2_tf/legacy_model.go @@ -29,12 +29,6 @@ type CreateAccountFederationPolicyRequest_SdkV2 struct { PolicyId types.String `tfsdk:"-"` } -func (newState *CreateAccountFederationPolicyRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateAccountFederationPolicyRequest_SdkV2) { -} - -func (newState *CreateAccountFederationPolicyRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateAccountFederationPolicyRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateAccountFederationPolicyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -426,12 +420,6 @@ type CreateServicePrincipalFederationPolicyRequest_SdkV2 struct { ServicePrincipalId types.Int64 `tfsdk:"-"` } -func (newState *CreateServicePrincipalFederationPolicyRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateServicePrincipalFederationPolicyRequest_SdkV2) { -} - -func (newState *CreateServicePrincipalFederationPolicyRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateServicePrincipalFederationPolicyRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateServicePrincipalFederationPolicyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -503,12 +491,6 @@ type CreateServicePrincipalSecretRequest_SdkV2 struct { ServicePrincipalId types.Int64 `tfsdk:"-"` } -func (newState *CreateServicePrincipalSecretRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateServicePrincipalSecretRequest_SdkV2) { -} - -func (newState *CreateServicePrincipalSecretRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateServicePrincipalSecretRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateServicePrincipalSecretRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -653,12 +635,6 @@ type DeleteAccountFederationPolicyRequest_SdkV2 struct { PolicyId types.String `tfsdk:"-"` } -func (newState *DeleteAccountFederationPolicyRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAccountFederationPolicyRequest_SdkV2) { -} - -func (newState *DeleteAccountFederationPolicyRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteAccountFederationPolicyRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAccountFederationPolicyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -731,12 +707,6 @@ type DeleteCustomAppIntegrationRequest_SdkV2 struct { IntegrationId types.String `tfsdk:"-"` } -func (newState *DeleteCustomAppIntegrationRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteCustomAppIntegrationRequest_SdkV2) { -} - -func (newState *DeleteCustomAppIntegrationRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteCustomAppIntegrationRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCustomAppIntegrationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -809,12 +779,6 @@ type DeletePublishedAppIntegrationRequest_SdkV2 struct { IntegrationId types.String `tfsdk:"-"` } -func (newState *DeletePublishedAppIntegrationRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeletePublishedAppIntegrationRequest_SdkV2) { -} - -func (newState *DeletePublishedAppIntegrationRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeletePublishedAppIntegrationRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeletePublishedAppIntegrationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -849,12 +813,6 @@ func (o DeletePublishedAppIntegrationRequest_SdkV2) Type(ctx context.Context) at type DeleteResponse_SdkV2 struct { } -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse_SdkV2) { -} - -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -889,12 +847,6 @@ type DeleteServicePrincipalFederationPolicyRequest_SdkV2 struct { ServicePrincipalId types.Int64 `tfsdk:"-"` } -func (newState *DeleteServicePrincipalFederationPolicyRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteServicePrincipalFederationPolicyRequest_SdkV2) { -} - -func (newState *DeleteServicePrincipalFederationPolicyRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteServicePrincipalFederationPolicyRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteServicePrincipalFederationPolicyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -936,12 +888,6 @@ type DeleteServicePrincipalSecretRequest_SdkV2 struct { ServicePrincipalId types.Int64 `tfsdk:"-"` } -func (newState *DeleteServicePrincipalSecretRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteServicePrincipalSecretRequest_SdkV2) { -} - -func (newState *DeleteServicePrincipalSecretRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteServicePrincipalSecretRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteServicePrincipalSecretRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1075,12 +1021,6 @@ type GetAccountFederationPolicyRequest_SdkV2 struct { PolicyId types.String `tfsdk:"-"` } -func (newState *GetAccountFederationPolicyRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAccountFederationPolicyRequest_SdkV2) { -} - -func (newState *GetAccountFederationPolicyRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetAccountFederationPolicyRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAccountFederationPolicyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1285,12 +1225,6 @@ type GetCustomAppIntegrationRequest_SdkV2 struct { IntegrationId types.String `tfsdk:"-"` } -func (newState *GetCustomAppIntegrationRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetCustomAppIntegrationRequest_SdkV2) { -} - -func (newState *GetCustomAppIntegrationRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetCustomAppIntegrationRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetCustomAppIntegrationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1495,12 +1429,6 @@ type GetPublishedAppIntegrationRequest_SdkV2 struct { IntegrationId types.String `tfsdk:"-"` } -func (newState *GetPublishedAppIntegrationRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPublishedAppIntegrationRequest_SdkV2) { -} - -func (newState *GetPublishedAppIntegrationRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetPublishedAppIntegrationRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPublishedAppIntegrationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1692,12 +1620,6 @@ type GetServicePrincipalFederationPolicyRequest_SdkV2 struct { ServicePrincipalId types.Int64 `tfsdk:"-"` } -func (newState *GetServicePrincipalFederationPolicyRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetServicePrincipalFederationPolicyRequest_SdkV2) { -} - -func (newState *GetServicePrincipalFederationPolicyRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetServicePrincipalFederationPolicyRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetServicePrincipalFederationPolicyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1738,12 +1660,6 @@ type ListAccountFederationPoliciesRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListAccountFederationPoliciesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAccountFederationPoliciesRequest_SdkV2) { -} - -func (newState *ListAccountFederationPoliciesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListAccountFederationPoliciesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAccountFederationPoliciesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1786,12 +1702,6 @@ type ListCustomAppIntegrationsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListCustomAppIntegrationsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListCustomAppIntegrationsRequest_SdkV2) { -} - -func (newState *ListCustomAppIntegrationsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListCustomAppIntegrationsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListCustomAppIntegrationsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1910,12 +1820,6 @@ type ListOAuthPublishedAppsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListOAuthPublishedAppsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListOAuthPublishedAppsRequest_SdkV2) { -} - -func (newState *ListOAuthPublishedAppsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListOAuthPublishedAppsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListOAuthPublishedAppsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1956,12 +1860,6 @@ type ListPublishedAppIntegrationsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListPublishedAppIntegrationsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListPublishedAppIntegrationsRequest_SdkV2) { -} - -func (newState *ListPublishedAppIntegrationsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListPublishedAppIntegrationsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListPublishedAppIntegrationsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2004,12 +1902,6 @@ type ListServicePrincipalFederationPoliciesRequest_SdkV2 struct { ServicePrincipalId types.Int64 `tfsdk:"-"` } -func (newState *ListServicePrincipalFederationPoliciesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListServicePrincipalFederationPoliciesRequest_SdkV2) { -} - -func (newState *ListServicePrincipalFederationPoliciesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListServicePrincipalFederationPoliciesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListServicePrincipalFederationPoliciesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2061,12 +1953,6 @@ type ListServicePrincipalSecretsRequest_SdkV2 struct { ServicePrincipalId types.Int64 `tfsdk:"-"` } -func (newState *ListServicePrincipalSecretsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListServicePrincipalSecretsRequest_SdkV2) { -} - -func (newState *ListServicePrincipalSecretsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListServicePrincipalSecretsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListServicePrincipalSecretsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2522,12 +2408,6 @@ type UpdateAccountFederationPolicyRequest_SdkV2 struct { UpdateMask types.String `tfsdk:"-"` } -func (newState *UpdateAccountFederationPolicyRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateAccountFederationPolicyRequest_SdkV2) { -} - -func (newState *UpdateAccountFederationPolicyRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdateAccountFederationPolicyRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateAccountFederationPolicyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2863,12 +2743,6 @@ type UpdateServicePrincipalFederationPolicyRequest_SdkV2 struct { UpdateMask types.String `tfsdk:"-"` } -func (newState *UpdateServicePrincipalFederationPolicyRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateServicePrincipalFederationPolicyRequest_SdkV2) { -} - -func (newState *UpdateServicePrincipalFederationPolicyRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdateServicePrincipalFederationPolicyRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateServicePrincipalFederationPolicyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/oauth2_tf/model.go b/internal/service/oauth2_tf/model.go index 6f63b32b0..5daa906bc 100755 --- a/internal/service/oauth2_tf/model.go +++ b/internal/service/oauth2_tf/model.go @@ -15,6 +15,7 @@ import ( "reflect" pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common" + "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/tfschema" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/types" @@ -29,12 +30,6 @@ type CreateAccountFederationPolicyRequest struct { PolicyId types.String `tfsdk:"-"` } -func (newState *CreateAccountFederationPolicyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateAccountFederationPolicyRequest) { -} - -func (newState *CreateAccountFederationPolicyRequest) SyncEffectiveFieldsDuringRead(existingState CreateAccountFederationPolicyRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateAccountFederationPolicyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -119,6 +114,12 @@ func (newState *CreateCustomAppIntegration) SyncEffectiveFieldsDuringCreateOrUpd func (newState *CreateCustomAppIntegration) SyncEffectiveFieldsDuringRead(existingState CreateCustomAppIntegration) { } +func (c CreateCustomAppIntegration) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + TokenAccessPolicy{}.ToSchema(cs, append(path, "token_access_policy")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateCustomAppIntegration. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -262,6 +263,11 @@ func (newState *CreateCustomAppIntegrationOutput) SyncEffectiveFieldsDuringCreat func (newState *CreateCustomAppIntegrationOutput) SyncEffectiveFieldsDuringRead(existingState CreateCustomAppIntegrationOutput) { } +func (c CreateCustomAppIntegrationOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateCustomAppIntegrationOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -311,6 +317,12 @@ func (newState *CreatePublishedAppIntegration) SyncEffectiveFieldsDuringCreateOr func (newState *CreatePublishedAppIntegration) SyncEffectiveFieldsDuringRead(existingState CreatePublishedAppIntegration) { } +func (c CreatePublishedAppIntegration) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + TokenAccessPolicy{}.ToSchema(cs, append(path, "token_access_policy")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreatePublishedAppIntegration. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -385,6 +397,11 @@ func (newState *CreatePublishedAppIntegrationOutput) SyncEffectiveFieldsDuringCr func (newState *CreatePublishedAppIntegrationOutput) SyncEffectiveFieldsDuringRead(existingState CreatePublishedAppIntegrationOutput) { } +func (c CreatePublishedAppIntegrationOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreatePublishedAppIntegrationOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -426,12 +443,6 @@ type CreateServicePrincipalFederationPolicyRequest struct { ServicePrincipalId types.Int64 `tfsdk:"-"` } -func (newState *CreateServicePrincipalFederationPolicyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateServicePrincipalFederationPolicyRequest) { -} - -func (newState *CreateServicePrincipalFederationPolicyRequest) SyncEffectiveFieldsDuringRead(existingState CreateServicePrincipalFederationPolicyRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateServicePrincipalFederationPolicyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -503,12 +514,6 @@ type CreateServicePrincipalSecretRequest struct { ServicePrincipalId types.Int64 `tfsdk:"-"` } -func (newState *CreateServicePrincipalSecretRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateServicePrincipalSecretRequest) { -} - -func (newState *CreateServicePrincipalSecretRequest) SyncEffectiveFieldsDuringRead(existingState CreateServicePrincipalSecretRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateServicePrincipalSecretRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -561,6 +566,11 @@ func (newState *CreateServicePrincipalSecretResponse) SyncEffectiveFieldsDuringC func (newState *CreateServicePrincipalSecretResponse) SyncEffectiveFieldsDuringRead(existingState CreateServicePrincipalSecretResponse) { } +func (c CreateServicePrincipalSecretResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateServicePrincipalSecretResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -615,6 +625,11 @@ func (newState *DataPlaneInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Data func (newState *DataPlaneInfo) SyncEffectiveFieldsDuringRead(existingState DataPlaneInfo) { } +func (c DataPlaneInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DataPlaneInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -653,12 +668,6 @@ type DeleteAccountFederationPolicyRequest struct { PolicyId types.String `tfsdk:"-"` } -func (newState *DeleteAccountFederationPolicyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAccountFederationPolicyRequest) { -} - -func (newState *DeleteAccountFederationPolicyRequest) SyncEffectiveFieldsDuringRead(existingState DeleteAccountFederationPolicyRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAccountFederationPolicyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -699,6 +708,11 @@ func (newState *DeleteCustomAppIntegrationOutput) SyncEffectiveFieldsDuringCreat func (newState *DeleteCustomAppIntegrationOutput) SyncEffectiveFieldsDuringRead(existingState DeleteCustomAppIntegrationOutput) { } +func (c DeleteCustomAppIntegrationOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCustomAppIntegrationOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -731,12 +745,6 @@ type DeleteCustomAppIntegrationRequest struct { IntegrationId types.String `tfsdk:"-"` } -func (newState *DeleteCustomAppIntegrationRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteCustomAppIntegrationRequest) { -} - -func (newState *DeleteCustomAppIntegrationRequest) SyncEffectiveFieldsDuringRead(existingState DeleteCustomAppIntegrationRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCustomAppIntegrationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -777,6 +785,11 @@ func (newState *DeletePublishedAppIntegrationOutput) SyncEffectiveFieldsDuringCr func (newState *DeletePublishedAppIntegrationOutput) SyncEffectiveFieldsDuringRead(existingState DeletePublishedAppIntegrationOutput) { } +func (c DeletePublishedAppIntegrationOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeletePublishedAppIntegrationOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -809,12 +822,6 @@ type DeletePublishedAppIntegrationRequest struct { IntegrationId types.String `tfsdk:"-"` } -func (newState *DeletePublishedAppIntegrationRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeletePublishedAppIntegrationRequest) { -} - -func (newState *DeletePublishedAppIntegrationRequest) SyncEffectiveFieldsDuringRead(existingState DeletePublishedAppIntegrationRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeletePublishedAppIntegrationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -849,12 +856,6 @@ func (o DeletePublishedAppIntegrationRequest) Type(ctx context.Context) attr.Typ type DeleteResponse struct { } -func (newState *DeleteResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse) { -} - -func (newState *DeleteResponse) SyncEffectiveFieldsDuringRead(existingState DeleteResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -889,12 +890,6 @@ type DeleteServicePrincipalFederationPolicyRequest struct { ServicePrincipalId types.Int64 `tfsdk:"-"` } -func (newState *DeleteServicePrincipalFederationPolicyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteServicePrincipalFederationPolicyRequest) { -} - -func (newState *DeleteServicePrincipalFederationPolicyRequest) SyncEffectiveFieldsDuringRead(existingState DeleteServicePrincipalFederationPolicyRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteServicePrincipalFederationPolicyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -936,12 +931,6 @@ type DeleteServicePrincipalSecretRequest struct { ServicePrincipalId types.Int64 `tfsdk:"-"` } -func (newState *DeleteServicePrincipalSecretRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteServicePrincipalSecretRequest) { -} - -func (newState *DeleteServicePrincipalSecretRequest) SyncEffectiveFieldsDuringRead(existingState DeleteServicePrincipalSecretRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteServicePrincipalSecretRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -999,6 +988,15 @@ func (newState *FederationPolicy) SyncEffectiveFieldsDuringCreateOrUpdate(plan F func (newState *FederationPolicy) SyncEffectiveFieldsDuringRead(existingState FederationPolicy) { } +func (c FederationPolicy) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "create_time")...) + OidcFederationPolicy{}.ToSchema(cs, append(path, "oidc_policy")...) + cs.SetComputed(append(path, "uid")...) + cs.SetComputed(append(path, "update_time")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in FederationPolicy. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1075,12 +1073,6 @@ type GetAccountFederationPolicyRequest struct { PolicyId types.String `tfsdk:"-"` } -func (newState *GetAccountFederationPolicyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAccountFederationPolicyRequest) { -} - -func (newState *GetAccountFederationPolicyRequest) SyncEffectiveFieldsDuringRead(existingState GetAccountFederationPolicyRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAccountFederationPolicyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1142,6 +1134,12 @@ func (newState *GetCustomAppIntegrationOutput) SyncEffectiveFieldsDuringCreateOr func (newState *GetCustomAppIntegrationOutput) SyncEffectiveFieldsDuringRead(existingState GetCustomAppIntegrationOutput) { } +func (c GetCustomAppIntegrationOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + TokenAccessPolicy{}.ToSchema(cs, append(path, "token_access_policy")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetCustomAppIntegrationOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1285,12 +1283,6 @@ type GetCustomAppIntegrationRequest struct { IntegrationId types.String `tfsdk:"-"` } -func (newState *GetCustomAppIntegrationRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetCustomAppIntegrationRequest) { -} - -func (newState *GetCustomAppIntegrationRequest) SyncEffectiveFieldsDuringRead(existingState GetCustomAppIntegrationRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetCustomAppIntegrationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1335,6 +1327,12 @@ func (newState *GetCustomAppIntegrationsOutput) SyncEffectiveFieldsDuringCreateO func (newState *GetCustomAppIntegrationsOutput) SyncEffectiveFieldsDuringRead(existingState GetCustomAppIntegrationsOutput) { } +func (c GetCustomAppIntegrationsOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + GetCustomAppIntegrationOutput{}.ToSchema(cs, append(path, "apps")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetCustomAppIntegrationsOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1419,6 +1417,12 @@ func (newState *GetPublishedAppIntegrationOutput) SyncEffectiveFieldsDuringCreat func (newState *GetPublishedAppIntegrationOutput) SyncEffectiveFieldsDuringRead(existingState GetPublishedAppIntegrationOutput) { } +func (c GetPublishedAppIntegrationOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + TokenAccessPolicy{}.ToSchema(cs, append(path, "token_access_policy")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPublishedAppIntegrationOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1495,12 +1499,6 @@ type GetPublishedAppIntegrationRequest struct { IntegrationId types.String `tfsdk:"-"` } -func (newState *GetPublishedAppIntegrationRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPublishedAppIntegrationRequest) { -} - -func (newState *GetPublishedAppIntegrationRequest) SyncEffectiveFieldsDuringRead(existingState GetPublishedAppIntegrationRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPublishedAppIntegrationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1545,6 +1543,12 @@ func (newState *GetPublishedAppIntegrationsOutput) SyncEffectiveFieldsDuringCrea func (newState *GetPublishedAppIntegrationsOutput) SyncEffectiveFieldsDuringRead(existingState GetPublishedAppIntegrationsOutput) { } +func (c GetPublishedAppIntegrationsOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + GetPublishedAppIntegrationOutput{}.ToSchema(cs, append(path, "apps")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPublishedAppIntegrationsOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1622,6 +1626,12 @@ func (newState *GetPublishedAppsOutput) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *GetPublishedAppsOutput) SyncEffectiveFieldsDuringRead(existingState GetPublishedAppsOutput) { } +func (c GetPublishedAppsOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PublishedAppOutput{}.ToSchema(cs, append(path, "apps")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPublishedAppsOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1692,12 +1702,6 @@ type GetServicePrincipalFederationPolicyRequest struct { ServicePrincipalId types.Int64 `tfsdk:"-"` } -func (newState *GetServicePrincipalFederationPolicyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetServicePrincipalFederationPolicyRequest) { -} - -func (newState *GetServicePrincipalFederationPolicyRequest) SyncEffectiveFieldsDuringRead(existingState GetServicePrincipalFederationPolicyRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetServicePrincipalFederationPolicyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1738,12 +1742,6 @@ type ListAccountFederationPoliciesRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListAccountFederationPoliciesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAccountFederationPoliciesRequest) { -} - -func (newState *ListAccountFederationPoliciesRequest) SyncEffectiveFieldsDuringRead(existingState ListAccountFederationPoliciesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAccountFederationPoliciesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1786,12 +1784,6 @@ type ListCustomAppIntegrationsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListCustomAppIntegrationsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListCustomAppIntegrationsRequest) { -} - -func (newState *ListCustomAppIntegrationsRequest) SyncEffectiveFieldsDuringRead(existingState ListCustomAppIntegrationsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListCustomAppIntegrationsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1839,6 +1831,12 @@ func (newState *ListFederationPoliciesResponse) SyncEffectiveFieldsDuringCreateO func (newState *ListFederationPoliciesResponse) SyncEffectiveFieldsDuringRead(existingState ListFederationPoliciesResponse) { } +func (c ListFederationPoliciesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + FederationPolicy{}.ToSchema(cs, append(path, "policies")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListFederationPoliciesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1910,12 +1908,6 @@ type ListOAuthPublishedAppsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListOAuthPublishedAppsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListOAuthPublishedAppsRequest) { -} - -func (newState *ListOAuthPublishedAppsRequest) SyncEffectiveFieldsDuringRead(existingState ListOAuthPublishedAppsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListOAuthPublishedAppsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1956,12 +1948,6 @@ type ListPublishedAppIntegrationsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListPublishedAppIntegrationsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListPublishedAppIntegrationsRequest) { -} - -func (newState *ListPublishedAppIntegrationsRequest) SyncEffectiveFieldsDuringRead(existingState ListPublishedAppIntegrationsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListPublishedAppIntegrationsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2004,12 +1990,6 @@ type ListServicePrincipalFederationPoliciesRequest struct { ServicePrincipalId types.Int64 `tfsdk:"-"` } -func (newState *ListServicePrincipalFederationPoliciesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListServicePrincipalFederationPoliciesRequest) { -} - -func (newState *ListServicePrincipalFederationPoliciesRequest) SyncEffectiveFieldsDuringRead(existingState ListServicePrincipalFederationPoliciesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListServicePrincipalFederationPoliciesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2061,12 +2041,6 @@ type ListServicePrincipalSecretsRequest struct { ServicePrincipalId types.Int64 `tfsdk:"-"` } -func (newState *ListServicePrincipalSecretsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListServicePrincipalSecretsRequest) { -} - -func (newState *ListServicePrincipalSecretsRequest) SyncEffectiveFieldsDuringRead(existingState ListServicePrincipalSecretsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListServicePrincipalSecretsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2113,6 +2087,12 @@ func (newState *ListServicePrincipalSecretsResponse) SyncEffectiveFieldsDuringCr func (newState *ListServicePrincipalSecretsResponse) SyncEffectiveFieldsDuringRead(existingState ListServicePrincipalSecretsResponse) { } +func (c ListServicePrincipalSecretsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SecretInfo{}.ToSchema(cs, append(path, "secrets")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListServicePrincipalSecretsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2210,6 +2190,11 @@ func (newState *OidcFederationPolicy) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *OidcFederationPolicy) SyncEffectiveFieldsDuringRead(existingState OidcFederationPolicy) { } +func (c OidcFederationPolicy) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in OidcFederationPolicy. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2304,6 +2289,11 @@ func (newState *PublishedAppOutput) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *PublishedAppOutput) SyncEffectiveFieldsDuringRead(existingState PublishedAppOutput) { } +func (c PublishedAppOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PublishedAppOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2425,6 +2415,11 @@ func (newState *SecretInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan SecretI func (newState *SecretInfo) SyncEffectiveFieldsDuringRead(existingState SecretInfo) { } +func (c SecretInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SecretInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2477,6 +2472,11 @@ func (newState *TokenAccessPolicy) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *TokenAccessPolicy) SyncEffectiveFieldsDuringRead(existingState TokenAccessPolicy) { } +func (c TokenAccessPolicy) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TokenAccessPolicy. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2522,12 +2522,6 @@ type UpdateAccountFederationPolicyRequest struct { UpdateMask types.String `tfsdk:"-"` } -func (newState *UpdateAccountFederationPolicyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateAccountFederationPolicyRequest) { -} - -func (newState *UpdateAccountFederationPolicyRequest) SyncEffectiveFieldsDuringRead(existingState UpdateAccountFederationPolicyRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateAccountFederationPolicyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2608,6 +2602,13 @@ func (newState *UpdateCustomAppIntegration) SyncEffectiveFieldsDuringCreateOrUpd func (newState *UpdateCustomAppIntegration) SyncEffectiveFieldsDuringRead(existingState UpdateCustomAppIntegration) { } +func (c UpdateCustomAppIntegration) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "integration_id")...) + TokenAccessPolicy{}.ToSchema(cs, append(path, "token_access_policy")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateCustomAppIntegration. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2711,6 +2712,11 @@ func (newState *UpdateCustomAppIntegrationOutput) SyncEffectiveFieldsDuringCreat func (newState *UpdateCustomAppIntegrationOutput) SyncEffectiveFieldsDuringRead(existingState UpdateCustomAppIntegrationOutput) { } +func (c UpdateCustomAppIntegrationOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateCustomAppIntegrationOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2750,6 +2756,13 @@ func (newState *UpdatePublishedAppIntegration) SyncEffectiveFieldsDuringCreateOr func (newState *UpdatePublishedAppIntegration) SyncEffectiveFieldsDuringRead(existingState UpdatePublishedAppIntegration) { } +func (c UpdatePublishedAppIntegration) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "integration_id")...) + TokenAccessPolicy{}.ToSchema(cs, append(path, "token_access_policy")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdatePublishedAppIntegration. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2822,6 +2835,11 @@ func (newState *UpdatePublishedAppIntegrationOutput) SyncEffectiveFieldsDuringCr func (newState *UpdatePublishedAppIntegrationOutput) SyncEffectiveFieldsDuringRead(existingState UpdatePublishedAppIntegrationOutput) { } +func (c UpdatePublishedAppIntegrationOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdatePublishedAppIntegrationOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2863,12 +2881,6 @@ type UpdateServicePrincipalFederationPolicyRequest struct { UpdateMask types.String `tfsdk:"-"` } -func (newState *UpdateServicePrincipalFederationPolicyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateServicePrincipalFederationPolicyRequest) { -} - -func (newState *UpdateServicePrincipalFederationPolicyRequest) SyncEffectiveFieldsDuringRead(existingState UpdateServicePrincipalFederationPolicyRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateServicePrincipalFederationPolicyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/pipelines_tf/legacy_model.go b/internal/service/pipelines_tf/legacy_model.go index 35df38afc..1b8ee4c6b 100755 --- a/internal/service/pipelines_tf/legacy_model.go +++ b/internal/service/pipelines_tf/legacy_model.go @@ -634,12 +634,6 @@ type DeletePipelineRequest_SdkV2 struct { PipelineId types.String `tfsdk:"-"` } -func (newState *DeletePipelineRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeletePipelineRequest_SdkV2) { -} - -func (newState *DeletePipelineRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeletePipelineRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeletePipelineRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1417,12 +1411,6 @@ type GetPipelinePermissionLevelsRequest_SdkV2 struct { PipelineId types.String `tfsdk:"-"` } -func (newState *GetPipelinePermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPipelinePermissionLevelsRequest_SdkV2) { -} - -func (newState *GetPipelinePermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetPipelinePermissionLevelsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPipelinePermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1532,12 +1520,6 @@ type GetPipelinePermissionsRequest_SdkV2 struct { PipelineId types.String `tfsdk:"-"` } -func (newState *GetPipelinePermissionsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPipelinePermissionsRequest_SdkV2) { -} - -func (newState *GetPipelinePermissionsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetPipelinePermissionsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPipelinePermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1574,12 +1556,6 @@ type GetPipelineRequest_SdkV2 struct { PipelineId types.String `tfsdk:"-"` } -func (newState *GetPipelineRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPipelineRequest_SdkV2) { -} - -func (newState *GetPipelineRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetPipelineRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPipelineRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1766,12 +1742,6 @@ type GetUpdateRequest_SdkV2 struct { UpdateId types.String `tfsdk:"-"` } -func (newState *GetUpdateRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetUpdateRequest_SdkV2) { -} - -func (newState *GetUpdateRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetUpdateRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetUpdateRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2227,12 +2197,6 @@ type ListPipelineEventsRequest_SdkV2 struct { PipelineId types.String `tfsdk:"-"` } -func (newState *ListPipelineEventsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListPipelineEventsRequest_SdkV2) { -} - -func (newState *ListPipelineEventsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListPipelineEventsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListPipelineEventsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2407,12 +2371,6 @@ type ListPipelinesRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListPipelinesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListPipelinesRequest_SdkV2) { -} - -func (newState *ListPipelinesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListPipelinesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListPipelinesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2568,12 +2526,6 @@ type ListUpdatesRequest_SdkV2 struct { UntilUpdateId types.String `tfsdk:"-"` } -func (newState *ListUpdatesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListUpdatesRequest_SdkV2) { -} - -func (newState *ListUpdatesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListUpdatesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListUpdatesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5608,12 +5560,6 @@ type StopRequest_SdkV2 struct { PipelineId types.String `tfsdk:"-"` } -func (newState *StopRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan StopRequest_SdkV2) { -} - -func (newState *StopRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState StopRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in StopRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/pipelines_tf/model.go b/internal/service/pipelines_tf/model.go index 780d60e4f..f5bd57159 100755 --- a/internal/service/pipelines_tf/model.go +++ b/internal/service/pipelines_tf/model.go @@ -15,6 +15,7 @@ import ( "reflect" pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common" + "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/tfschema" "github.com/databricks/terraform-provider-databricks/internal/service/compute_tf" "github.com/hashicorp/terraform-plugin-framework/attr" @@ -91,6 +92,20 @@ func (newState *CreatePipeline) SyncEffectiveFieldsDuringCreateOrUpdate(plan Cre func (newState *CreatePipeline) SyncEffectiveFieldsDuringRead(existingState CreatePipeline) { } +func (c CreatePipeline) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PipelineCluster{}.ToSchema(cs, append(path, "clusters")...) + PipelineDeployment{}.ToSchema(cs, append(path, "deployment")...) + Filters{}.ToSchema(cs, append(path, "filters")...) + IngestionGatewayPipelineDefinition{}.ToSchema(cs, append(path, "gateway_definition")...) + IngestionPipelineDefinition{}.ToSchema(cs, append(path, "ingestion_definition")...) + PipelineLibrary{}.ToSchema(cs, append(path, "libraries")...) + Notifications{}.ToSchema(cs, append(path, "notifications")...) + RestartWindow{}.ToSchema(cs, append(path, "restart_window")...) + PipelineTrigger{}.ToSchema(cs, append(path, "trigger")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreatePipeline. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -475,6 +490,12 @@ func (newState *CreatePipelineResponse) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *CreatePipelineResponse) SyncEffectiveFieldsDuringRead(existingState CreatePipelineResponse) { } +func (c CreatePipelineResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PipelineSpec{}.ToSchema(cs, append(path, "effective_settings")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreatePipelineResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -550,6 +571,11 @@ func (newState *CronTrigger) SyncEffectiveFieldsDuringCreateOrUpdate(plan CronTr func (newState *CronTrigger) SyncEffectiveFieldsDuringRead(existingState CronTrigger) { } +func (c CronTrigger) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CronTrigger. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -596,6 +622,11 @@ func (newState *DataPlaneId) SyncEffectiveFieldsDuringCreateOrUpdate(plan DataPl func (newState *DataPlaneId) SyncEffectiveFieldsDuringRead(existingState DataPlaneId) { } +func (c DataPlaneId) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DataPlaneId. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -634,12 +665,6 @@ type DeletePipelineRequest struct { PipelineId types.String `tfsdk:"-"` } -func (newState *DeletePipelineRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeletePipelineRequest) { -} - -func (newState *DeletePipelineRequest) SyncEffectiveFieldsDuringRead(existingState DeletePipelineRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeletePipelineRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -680,6 +705,11 @@ func (newState *DeletePipelineResponse) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *DeletePipelineResponse) SyncEffectiveFieldsDuringRead(existingState DeletePipelineResponse) { } +func (c DeletePipelineResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeletePipelineResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -780,6 +810,20 @@ func (newState *EditPipeline) SyncEffectiveFieldsDuringCreateOrUpdate(plan EditP func (newState *EditPipeline) SyncEffectiveFieldsDuringRead(existingState EditPipeline) { } +func (c EditPipeline) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PipelineCluster{}.ToSchema(cs, append(path, "clusters")...) + PipelineDeployment{}.ToSchema(cs, append(path, "deployment")...) + Filters{}.ToSchema(cs, append(path, "filters")...) + IngestionGatewayPipelineDefinition{}.ToSchema(cs, append(path, "gateway_definition")...) + IngestionPipelineDefinition{}.ToSchema(cs, append(path, "ingestion_definition")...) + PipelineLibrary{}.ToSchema(cs, append(path, "libraries")...) + Notifications{}.ToSchema(cs, append(path, "notifications")...) + RestartWindow{}.ToSchema(cs, append(path, "restart_window")...) + PipelineTrigger{}.ToSchema(cs, append(path, "trigger")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EditPipeline. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1161,6 +1205,11 @@ func (newState *EditPipelineResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *EditPipelineResponse) SyncEffectiveFieldsDuringRead(existingState EditPipelineResponse) { } +func (c EditPipelineResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EditPipelineResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1201,6 +1250,12 @@ func (newState *ErrorDetail) SyncEffectiveFieldsDuringCreateOrUpdate(plan ErrorD func (newState *ErrorDetail) SyncEffectiveFieldsDuringRead(existingState ErrorDetail) { } +func (c ErrorDetail) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SerializedException{}.ToSchema(cs, append(path, "exceptions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ErrorDetail. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1275,6 +1330,11 @@ func (newState *FileLibrary) SyncEffectiveFieldsDuringCreateOrUpdate(plan FileLi func (newState *FileLibrary) SyncEffectiveFieldsDuringRead(existingState FileLibrary) { } +func (c FileLibrary) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in FileLibrary. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1319,6 +1379,11 @@ func (newState *Filters) SyncEffectiveFieldsDuringCreateOrUpdate(plan Filters) { func (newState *Filters) SyncEffectiveFieldsDuringRead(existingState Filters) { } +func (c Filters) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Filters. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1417,12 +1482,6 @@ type GetPipelinePermissionLevelsRequest struct { PipelineId types.String `tfsdk:"-"` } -func (newState *GetPipelinePermissionLevelsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPipelinePermissionLevelsRequest) { -} - -func (newState *GetPipelinePermissionLevelsRequest) SyncEffectiveFieldsDuringRead(existingState GetPipelinePermissionLevelsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPipelinePermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1465,6 +1524,12 @@ func (newState *GetPipelinePermissionLevelsResponse) SyncEffectiveFieldsDuringCr func (newState *GetPipelinePermissionLevelsResponse) SyncEffectiveFieldsDuringRead(existingState GetPipelinePermissionLevelsResponse) { } +func (c GetPipelinePermissionLevelsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PipelinePermissionsDescription{}.ToSchema(cs, append(path, "permission_levels")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPipelinePermissionLevelsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1532,12 +1597,6 @@ type GetPipelinePermissionsRequest struct { PipelineId types.String `tfsdk:"-"` } -func (newState *GetPipelinePermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPipelinePermissionsRequest) { -} - -func (newState *GetPipelinePermissionsRequest) SyncEffectiveFieldsDuringRead(existingState GetPipelinePermissionsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPipelinePermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1574,12 +1633,6 @@ type GetPipelineRequest struct { PipelineId types.String `tfsdk:"-"` } -func (newState *GetPipelineRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPipelineRequest) { -} - -func (newState *GetPipelineRequest) SyncEffectiveFieldsDuringRead(existingState GetPipelineRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPipelineRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1646,6 +1699,13 @@ func (newState *GetPipelineResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *GetPipelineResponse) SyncEffectiveFieldsDuringRead(existingState GetPipelineResponse) { } +func (c GetPipelineResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + UpdateStateInfo{}.ToSchema(cs, append(path, "latest_updates")...) + PipelineSpec{}.ToSchema(cs, append(path, "spec")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPipelineResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1766,12 +1826,6 @@ type GetUpdateRequest struct { UpdateId types.String `tfsdk:"-"` } -func (newState *GetUpdateRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetUpdateRequest) { -} - -func (newState *GetUpdateRequest) SyncEffectiveFieldsDuringRead(existingState GetUpdateRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetUpdateRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1816,6 +1870,12 @@ func (newState *GetUpdateResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *GetUpdateResponse) SyncEffectiveFieldsDuringRead(existingState GetUpdateResponse) { } +func (c GetUpdateResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + UpdateInfo{}.ToSchema(cs, append(path, "update")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetUpdateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1892,6 +1952,14 @@ func (newState *IngestionConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan In func (newState *IngestionConfig) SyncEffectiveFieldsDuringRead(existingState IngestionConfig) { } +func (c IngestionConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ReportSpec{}.ToSchema(cs, append(path, "report")...) + SchemaSpec{}.ToSchema(cs, append(path, "schema")...) + TableSpec{}.ToSchema(cs, append(path, "table")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in IngestionConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2042,6 +2110,11 @@ func (newState *IngestionGatewayPipelineDefinition) SyncEffectiveFieldsDuringCre func (newState *IngestionGatewayPipelineDefinition) SyncEffectiveFieldsDuringRead(existingState IngestionGatewayPipelineDefinition) { } +func (c IngestionGatewayPipelineDefinition) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in IngestionGatewayPipelineDefinition. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2104,6 +2177,13 @@ func (newState *IngestionPipelineDefinition) SyncEffectiveFieldsDuringCreateOrUp func (newState *IngestionPipelineDefinition) SyncEffectiveFieldsDuringRead(existingState IngestionPipelineDefinition) { } +func (c IngestionPipelineDefinition) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + IngestionConfig{}.ToSchema(cs, append(path, "objects")...) + TableSpecificConfig{}.ToSchema(cs, append(path, "table_configuration")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in IngestionPipelineDefinition. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2227,12 +2307,6 @@ type ListPipelineEventsRequest struct { PipelineId types.String `tfsdk:"-"` } -func (newState *ListPipelineEventsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListPipelineEventsRequest) { -} - -func (newState *ListPipelineEventsRequest) SyncEffectiveFieldsDuringRead(existingState ListPipelineEventsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListPipelineEventsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2317,6 +2391,12 @@ func (newState *ListPipelineEventsResponse) SyncEffectiveFieldsDuringCreateOrUpd func (newState *ListPipelineEventsResponse) SyncEffectiveFieldsDuringRead(existingState ListPipelineEventsResponse) { } +func (c ListPipelineEventsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PipelineEvent{}.ToSchema(cs, append(path, "events")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListPipelineEventsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2407,12 +2487,6 @@ type ListPipelinesRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListPipelinesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListPipelinesRequest) { -} - -func (newState *ListPipelinesRequest) SyncEffectiveFieldsDuringRead(existingState ListPipelinesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListPipelinesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2493,6 +2567,12 @@ func (newState *ListPipelinesResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *ListPipelinesResponse) SyncEffectiveFieldsDuringRead(existingState ListPipelinesResponse) { } +func (c ListPipelinesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PipelineStateInfo{}.ToSchema(cs, append(path, "statuses")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListPipelinesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2568,12 +2648,6 @@ type ListUpdatesRequest struct { UntilUpdateId types.String `tfsdk:"-"` } -func (newState *ListUpdatesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListUpdatesRequest) { -} - -func (newState *ListUpdatesRequest) SyncEffectiveFieldsDuringRead(existingState ListUpdatesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListUpdatesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2628,6 +2702,12 @@ func (newState *ListUpdatesResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *ListUpdatesResponse) SyncEffectiveFieldsDuringRead(existingState ListUpdatesResponse) { } +func (c ListUpdatesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + UpdateInfo{}.ToSchema(cs, append(path, "updates")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListUpdatesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2702,6 +2782,11 @@ func (newState *ManualTrigger) SyncEffectiveFieldsDuringCreateOrUpdate(plan Manu func (newState *ManualTrigger) SyncEffectiveFieldsDuringRead(existingState ManualTrigger) { } +func (c ManualTrigger) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ManualTrigger. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2740,6 +2825,11 @@ func (newState *NotebookLibrary) SyncEffectiveFieldsDuringCreateOrUpdate(plan No func (newState *NotebookLibrary) SyncEffectiveFieldsDuringRead(existingState NotebookLibrary) { } +func (c NotebookLibrary) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in NotebookLibrary. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2790,6 +2880,11 @@ func (newState *Notifications) SyncEffectiveFieldsDuringCreateOrUpdate(plan Noti func (newState *Notifications) SyncEffectiveFieldsDuringRead(existingState Notifications) { } +func (c Notifications) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Notifications. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2926,6 +3021,11 @@ func (newState *Origin) SyncEffectiveFieldsDuringCreateOrUpdate(plan Origin) { func (newState *Origin) SyncEffectiveFieldsDuringRead(existingState Origin) { } +func (c Origin) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Origin. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3006,6 +3106,11 @@ func (newState *PipelineAccessControlRequest) SyncEffectiveFieldsDuringCreateOrU func (newState *PipelineAccessControlRequest) SyncEffectiveFieldsDuringRead(existingState PipelineAccessControlRequest) { } +func (c PipelineAccessControlRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PipelineAccessControlRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3062,6 +3167,12 @@ func (newState *PipelineAccessControlResponse) SyncEffectiveFieldsDuringCreateOr func (newState *PipelineAccessControlResponse) SyncEffectiveFieldsDuringRead(existingState PipelineAccessControlResponse) { } +func (c PipelineAccessControlResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PipelinePermission{}.ToSchema(cs, append(path, "all_permissions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PipelineAccessControlResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3234,6 +3345,16 @@ func (newState *PipelineCluster) SyncEffectiveFieldsDuringCreateOrUpdate(plan Pi func (newState *PipelineCluster) SyncEffectiveFieldsDuringRead(existingState PipelineCluster) { } +func (c PipelineCluster) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PipelineClusterAutoscale{}.ToSchema(cs, append(path, "autoscale")...) + compute_tf.AwsAttributes{}.ToSchema(cs, append(path, "aws_attributes")...) + compute_tf.AzureAttributes{}.ToSchema(cs, append(path, "azure_attributes")...) + compute_tf.ClusterLogConf{}.ToSchema(cs, append(path, "cluster_log_conf")...) + compute_tf.GcpAttributes{}.ToSchema(cs, append(path, "gcp_attributes")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PipelineCluster. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3614,6 +3735,13 @@ func (newState *PipelineClusterAutoscale) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *PipelineClusterAutoscale) SyncEffectiveFieldsDuringRead(existingState PipelineClusterAutoscale) { } +func (c PipelineClusterAutoscale) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "max_workers")...) + cs.SetRequired(append(path, "min_workers")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PipelineClusterAutoscale. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3662,6 +3790,11 @@ func (newState *PipelineDeployment) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *PipelineDeployment) SyncEffectiveFieldsDuringRead(existingState PipelineDeployment) { } +func (c PipelineDeployment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PipelineDeployment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3722,6 +3855,14 @@ func (newState *PipelineEvent) SyncEffectiveFieldsDuringCreateOrUpdate(plan Pipe func (newState *PipelineEvent) SyncEffectiveFieldsDuringRead(existingState PipelineEvent) { } +func (c PipelineEvent) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ErrorDetail{}.ToSchema(cs, append(path, "error")...) + Origin{}.ToSchema(cs, append(path, "origin")...) + Sequencing{}.ToSchema(cs, append(path, "sequence")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PipelineEvent. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3878,6 +4019,14 @@ func (newState *PipelineLibrary) SyncEffectiveFieldsDuringCreateOrUpdate(plan Pi func (newState *PipelineLibrary) SyncEffectiveFieldsDuringRead(existingState PipelineLibrary) { } +func (c PipelineLibrary) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + FileLibrary{}.ToSchema(cs, append(path, "file")...) + compute_tf.MavenLibrary{}.ToSchema(cs, append(path, "maven")...) + NotebookLibrary{}.ToSchema(cs, append(path, "notebook")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PipelineLibrary. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4019,6 +4168,11 @@ func (newState *PipelinePermission) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *PipelinePermission) SyncEffectiveFieldsDuringRead(existingState PipelinePermission) { } +func (c PipelinePermission) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PipelinePermission. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4098,6 +4252,12 @@ func (newState *PipelinePermissions) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *PipelinePermissions) SyncEffectiveFieldsDuringRead(existingState PipelinePermissions) { } +func (c PipelinePermissions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PipelineAccessControlResponse{}.ToSchema(cs, append(path, "access_control_list")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PipelinePermissions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4175,6 +4335,11 @@ func (newState *PipelinePermissionsDescription) SyncEffectiveFieldsDuringCreateO func (newState *PipelinePermissionsDescription) SyncEffectiveFieldsDuringRead(existingState PipelinePermissionsDescription) { } +func (c PipelinePermissionsDescription) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PipelinePermissionsDescription. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4220,6 +4385,13 @@ func (newState *PipelinePermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpd func (newState *PipelinePermissionsRequest) SyncEffectiveFieldsDuringRead(existingState PipelinePermissionsRequest) { } +func (c PipelinePermissionsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PipelineAccessControlRequest{}.ToSchema(cs, append(path, "access_control_list")...) + cs.SetRequired(append(path, "pipeline_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PipelinePermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4347,6 +4519,20 @@ func (newState *PipelineSpec) SyncEffectiveFieldsDuringCreateOrUpdate(plan Pipel func (newState *PipelineSpec) SyncEffectiveFieldsDuringRead(existingState PipelineSpec) { } +func (c PipelineSpec) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PipelineCluster{}.ToSchema(cs, append(path, "clusters")...) + PipelineDeployment{}.ToSchema(cs, append(path, "deployment")...) + Filters{}.ToSchema(cs, append(path, "filters")...) + IngestionGatewayPipelineDefinition{}.ToSchema(cs, append(path, "gateway_definition")...) + IngestionPipelineDefinition{}.ToSchema(cs, append(path, "ingestion_definition")...) + PipelineLibrary{}.ToSchema(cs, append(path, "libraries")...) + Notifications{}.ToSchema(cs, append(path, "notifications")...) + RestartWindow{}.ToSchema(cs, append(path, "restart_window")...) + PipelineTrigger{}.ToSchema(cs, append(path, "trigger")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PipelineSpec. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4740,6 +4926,12 @@ func (newState *PipelineStateInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *PipelineStateInfo) SyncEffectiveFieldsDuringRead(existingState PipelineStateInfo) { } +func (c PipelineStateInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + UpdateStateInfo{}.ToSchema(cs, append(path, "latest_updates")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PipelineStateInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4827,6 +5019,13 @@ func (newState *PipelineTrigger) SyncEffectiveFieldsDuringCreateOrUpdate(plan Pi func (newState *PipelineTrigger) SyncEffectiveFieldsDuringRead(existingState PipelineTrigger) { } +func (c PipelineTrigger) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CronTrigger{}.ToSchema(cs, append(path, "cron")...) + ManualTrigger{}.ToSchema(cs, append(path, "manual")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PipelineTrigger. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4941,6 +5140,12 @@ func (newState *ReportSpec) SyncEffectiveFieldsDuringCreateOrUpdate(plan ReportS func (newState *ReportSpec) SyncEffectiveFieldsDuringRead(existingState ReportSpec) { } +func (c ReportSpec) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + TableSpecificConfig{}.ToSchema(cs, append(path, "table_configuration")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ReportSpec. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5031,6 +5236,12 @@ func (newState *RestartWindow) SyncEffectiveFieldsDuringCreateOrUpdate(plan Rest func (newState *RestartWindow) SyncEffectiveFieldsDuringRead(existingState RestartWindow) { } +func (c RestartWindow) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "start_hour")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RestartWindow. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5120,6 +5331,12 @@ func (newState *SchemaSpec) SyncEffectiveFieldsDuringCreateOrUpdate(plan SchemaS func (newState *SchemaSpec) SyncEffectiveFieldsDuringRead(existingState SchemaSpec) { } +func (c SchemaSpec) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + TableSpecificConfig{}.ToSchema(cs, append(path, "table_configuration")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SchemaSpec. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5202,6 +5419,12 @@ func (newState *Sequencing) SyncEffectiveFieldsDuringCreateOrUpdate(plan Sequenc func (newState *Sequencing) SyncEffectiveFieldsDuringRead(existingState Sequencing) { } +func (c Sequencing) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + DataPlaneId{}.ToSchema(cs, append(path, "data_plane_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Sequencing. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5280,6 +5503,12 @@ func (newState *SerializedException) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *SerializedException) SyncEffectiveFieldsDuringRead(existingState SerializedException) { } +func (c SerializedException) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + StackFrame{}.ToSchema(cs, append(path, "stack")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SerializedException. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5362,6 +5591,11 @@ func (newState *StackFrame) SyncEffectiveFieldsDuringCreateOrUpdate(plan StackFr func (newState *StackFrame) SyncEffectiveFieldsDuringRead(existingState StackFrame) { } +func (c StackFrame) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in StackFrame. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5426,6 +5660,12 @@ func (newState *StartUpdate) SyncEffectiveFieldsDuringCreateOrUpdate(plan StartU func (newState *StartUpdate) SyncEffectiveFieldsDuringRead(existingState StartUpdate) { } +func (c StartUpdate) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "pipeline_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in StartUpdate. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5536,6 +5776,11 @@ func (newState *StartUpdateResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *StartUpdateResponse) SyncEffectiveFieldsDuringRead(existingState StartUpdateResponse) { } +func (c StartUpdateResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in StartUpdateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5576,6 +5821,11 @@ func (newState *StopPipelineResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *StopPipelineResponse) SyncEffectiveFieldsDuringRead(existingState StopPipelineResponse) { } +func (c StopPipelineResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in StopPipelineResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5608,12 +5858,6 @@ type StopRequest struct { PipelineId types.String `tfsdk:"-"` } -func (newState *StopRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan StopRequest) { -} - -func (newState *StopRequest) SyncEffectiveFieldsDuringRead(existingState StopRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in StopRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5672,6 +5916,12 @@ func (newState *TableSpec) SyncEffectiveFieldsDuringCreateOrUpdate(plan TableSpe func (newState *TableSpec) SyncEffectiveFieldsDuringRead(existingState TableSpec) { } +func (c TableSpec) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + TableSpecificConfig{}.ToSchema(cs, append(path, "table_configuration")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TableSpec. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5765,6 +6015,11 @@ func (newState *TableSpecificConfig) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *TableSpecificConfig) SyncEffectiveFieldsDuringRead(existingState TableSpecificConfig) { } +func (c TableSpecificConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TableSpecificConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5900,6 +6155,12 @@ func (newState *UpdateInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateI func (newState *UpdateInfo) SyncEffectiveFieldsDuringRead(existingState UpdateInfo) { } +func (c UpdateInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PipelineSpec{}.ToSchema(cs, append(path, "config")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6053,6 +6314,11 @@ func (newState *UpdateStateInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Up func (newState *UpdateStateInfo) SyncEffectiveFieldsDuringRead(existingState UpdateStateInfo) { } +func (c UpdateStateInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateStateInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/provisioning_tf/legacy_model.go b/internal/service/provisioning_tf/legacy_model.go index 0acd5d338..b0c6b5854 100755 --- a/internal/service/provisioning_tf/legacy_model.go +++ b/internal/service/provisioning_tf/legacy_model.go @@ -1623,12 +1623,6 @@ type DeleteCredentialRequest_SdkV2 struct { CredentialsId types.String `tfsdk:"-"` } -func (newState *DeleteCredentialRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteCredentialRequest_SdkV2) { -} - -func (newState *DeleteCredentialRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteCredentialRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1666,12 +1660,6 @@ type DeleteEncryptionKeyRequest_SdkV2 struct { CustomerManagedKeyId types.String `tfsdk:"-"` } -func (newState *DeleteEncryptionKeyRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteEncryptionKeyRequest_SdkV2) { -} - -func (newState *DeleteEncryptionKeyRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteEncryptionKeyRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteEncryptionKeyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1709,12 +1697,6 @@ type DeleteNetworkRequest_SdkV2 struct { NetworkId types.String `tfsdk:"-"` } -func (newState *DeleteNetworkRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteNetworkRequest_SdkV2) { -} - -func (newState *DeleteNetworkRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteNetworkRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteNetworkRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1752,12 +1734,6 @@ type DeletePrivateAccesRequest_SdkV2 struct { PrivateAccessSettingsId types.String `tfsdk:"-"` } -func (newState *DeletePrivateAccesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeletePrivateAccesRequest_SdkV2) { -} - -func (newState *DeletePrivateAccesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeletePrivateAccesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeletePrivateAccesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1792,12 +1768,6 @@ func (o DeletePrivateAccesRequest_SdkV2) Type(ctx context.Context) attr.Type { type DeleteResponse_SdkV2 struct { } -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse_SdkV2) { -} - -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1831,12 +1801,6 @@ type DeleteStorageRequest_SdkV2 struct { StorageConfigurationId types.String `tfsdk:"-"` } -func (newState *DeleteStorageRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteStorageRequest_SdkV2) { -} - -func (newState *DeleteStorageRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteStorageRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteStorageRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1874,12 +1838,6 @@ type DeleteVpcEndpointRequest_SdkV2 struct { VpcEndpointId types.String `tfsdk:"-"` } -func (newState *DeleteVpcEndpointRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteVpcEndpointRequest_SdkV2) { -} - -func (newState *DeleteVpcEndpointRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteVpcEndpointRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteVpcEndpointRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1917,12 +1875,6 @@ type DeleteWorkspaceRequest_SdkV2 struct { WorkspaceId types.Int64 `tfsdk:"-"` } -func (newState *DeleteWorkspaceRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteWorkspaceRequest_SdkV2) { -} - -func (newState *DeleteWorkspaceRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteWorkspaceRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteWorkspaceRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2259,12 +2211,6 @@ type GetCredentialRequest_SdkV2 struct { CredentialsId types.String `tfsdk:"-"` } -func (newState *GetCredentialRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetCredentialRequest_SdkV2) { -} - -func (newState *GetCredentialRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetCredentialRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2302,12 +2248,6 @@ type GetEncryptionKeyRequest_SdkV2 struct { CustomerManagedKeyId types.String `tfsdk:"-"` } -func (newState *GetEncryptionKeyRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetEncryptionKeyRequest_SdkV2) { -} - -func (newState *GetEncryptionKeyRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetEncryptionKeyRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetEncryptionKeyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2345,12 +2285,6 @@ type GetNetworkRequest_SdkV2 struct { NetworkId types.String `tfsdk:"-"` } -func (newState *GetNetworkRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetNetworkRequest_SdkV2) { -} - -func (newState *GetNetworkRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetNetworkRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetNetworkRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2388,12 +2322,6 @@ type GetPrivateAccesRequest_SdkV2 struct { PrivateAccessSettingsId types.String `tfsdk:"-"` } -func (newState *GetPrivateAccesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPrivateAccesRequest_SdkV2) { -} - -func (newState *GetPrivateAccesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetPrivateAccesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPrivateAccesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2431,12 +2359,6 @@ type GetStorageRequest_SdkV2 struct { StorageConfigurationId types.String `tfsdk:"-"` } -func (newState *GetStorageRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetStorageRequest_SdkV2) { -} - -func (newState *GetStorageRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetStorageRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetStorageRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2474,12 +2396,6 @@ type GetVpcEndpointRequest_SdkV2 struct { VpcEndpointId types.String `tfsdk:"-"` } -func (newState *GetVpcEndpointRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetVpcEndpointRequest_SdkV2) { -} - -func (newState *GetVpcEndpointRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetVpcEndpointRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetVpcEndpointRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2517,12 +2433,6 @@ type GetWorkspaceRequest_SdkV2 struct { WorkspaceId types.Int64 `tfsdk:"-"` } -func (newState *GetWorkspaceRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWorkspaceRequest_SdkV2) { -} - -func (newState *GetWorkspaceRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetWorkspaceRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWorkspaceRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3197,12 +3107,6 @@ func (o *PrivateAccessSettings_SdkV2) SetAllowedVpcEndpointIds(ctx context.Conte type ReplaceResponse_SdkV2 struct { } -func (newState *ReplaceResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ReplaceResponse_SdkV2) { -} - -func (newState *ReplaceResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState ReplaceResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ReplaceResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3411,12 +3315,6 @@ func (o StsRole_SdkV2) Type(ctx context.Context) attr.Type { type UpdateResponse_SdkV2 struct { } -func (newState *UpdateResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateResponse_SdkV2) { -} - -func (newState *UpdateResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdateResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/provisioning_tf/model.go b/internal/service/provisioning_tf/model.go index 2f59ce068..e8666e99b 100755 --- a/internal/service/provisioning_tf/model.go +++ b/internal/service/provisioning_tf/model.go @@ -15,6 +15,7 @@ import ( "reflect" pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common" + "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/tfschema" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/types" @@ -31,6 +32,12 @@ func (newState *AwsCredentials) SyncEffectiveFieldsDuringCreateOrUpdate(plan Aws func (newState *AwsCredentials) SyncEffectiveFieldsDuringRead(existingState AwsCredentials) { } +func (c AwsCredentials) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + StsRole{}.ToSchema(cs, append(path, "sts_role")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AwsCredentials. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -112,6 +119,13 @@ func (newState *AwsKeyInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan AwsKeyI func (newState *AwsKeyInfo) SyncEffectiveFieldsDuringRead(existingState AwsKeyInfo) { } +func (c AwsKeyInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "key_arn")...) + cs.SetRequired(append(path, "key_region")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AwsKeyInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -162,6 +176,11 @@ func (newState *AzureWorkspaceInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *AzureWorkspaceInfo) SyncEffectiveFieldsDuringRead(existingState AzureWorkspaceInfo) { } +func (c AzureWorkspaceInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AzureWorkspaceInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -207,6 +226,12 @@ func (newState *CloudResourceContainer) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *CloudResourceContainer) SyncEffectiveFieldsDuringRead(existingState CloudResourceContainer) { } +func (c CloudResourceContainer) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CustomerFacingGcpCloudResourceContainer{}.ToSchema(cs, append(path, "gcp")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CloudResourceContainer. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -287,6 +312,12 @@ func (newState *CreateAwsKeyInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan C func (newState *CreateAwsKeyInfo) SyncEffectiveFieldsDuringRead(existingState CreateAwsKeyInfo) { } +func (c CreateAwsKeyInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "key_arn")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateAwsKeyInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -332,6 +363,12 @@ func (newState *CreateCredentialAwsCredentials) SyncEffectiveFieldsDuringCreateO func (newState *CreateCredentialAwsCredentials) SyncEffectiveFieldsDuringRead(existingState CreateCredentialAwsCredentials) { } +func (c CreateCredentialAwsCredentials) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CreateCredentialStsRole{}.ToSchema(cs, append(path, "sts_role")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateCredentialAwsCredentials. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -405,6 +442,14 @@ func (newState *CreateCredentialRequest) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *CreateCredentialRequest) SyncEffectiveFieldsDuringRead(existingState CreateCredentialRequest) { } +func (c CreateCredentialRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "aws_credentials")...) + CreateCredentialAwsCredentials{}.ToSchema(cs, append(path, "aws_credentials")...) + cs.SetRequired(append(path, "credentials_name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -479,6 +524,11 @@ func (newState *CreateCredentialStsRole) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *CreateCredentialStsRole) SyncEffectiveFieldsDuringRead(existingState CreateCredentialStsRole) { } +func (c CreateCredentialStsRole) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateCredentialStsRole. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -524,6 +574,14 @@ func (newState *CreateCustomerManagedKeyRequest) SyncEffectiveFieldsDuringCreate func (newState *CreateCustomerManagedKeyRequest) SyncEffectiveFieldsDuringRead(existingState CreateCustomerManagedKeyRequest) { } +func (c CreateCustomerManagedKeyRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CreateAwsKeyInfo{}.ToSchema(cs, append(path, "aws_key_info")...) + CreateGcpKeyInfo{}.ToSchema(cs, append(path, "gcp_key_info")...) + cs.SetRequired(append(path, "use_cases")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateCustomerManagedKeyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -658,6 +716,12 @@ func (newState *CreateGcpKeyInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan C func (newState *CreateGcpKeyInfo) SyncEffectiveFieldsDuringRead(existingState CreateGcpKeyInfo) { } +func (c CreateGcpKeyInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "kms_key_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateGcpKeyInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -717,6 +781,14 @@ func (newState *CreateNetworkRequest) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *CreateNetworkRequest) SyncEffectiveFieldsDuringRead(existingState CreateNetworkRequest) { } +func (c CreateNetworkRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + GcpNetworkInfo{}.ToSchema(cs, append(path, "gcp_network_info")...) + cs.SetRequired(append(path, "network_name")...) + NetworkVpcEndpoints{}.ToSchema(cs, append(path, "vpc_endpoints")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateNetworkRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -888,6 +960,14 @@ func (newState *CreateStorageConfigurationRequest) SyncEffectiveFieldsDuringCrea func (newState *CreateStorageConfigurationRequest) SyncEffectiveFieldsDuringRead(existingState CreateStorageConfigurationRequest) { } +func (c CreateStorageConfigurationRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "root_bucket_info")...) + RootBucketInfo{}.ToSchema(cs, append(path, "root_bucket_info")...) + cs.SetRequired(append(path, "storage_configuration_name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateStorageConfigurationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -969,6 +1049,13 @@ func (newState *CreateVpcEndpointRequest) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *CreateVpcEndpointRequest) SyncEffectiveFieldsDuringRead(existingState CreateVpcEndpointRequest) { } +func (c CreateVpcEndpointRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + GcpVpcEndpointInfo{}.ToSchema(cs, append(path, "gcp_vpc_endpoint_info")...) + cs.SetRequired(append(path, "vpc_endpoint_name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateVpcEndpointRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1155,6 +1242,15 @@ func (newState *CreateWorkspaceRequest) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *CreateWorkspaceRequest) SyncEffectiveFieldsDuringRead(existingState CreateWorkspaceRequest) { } +func (c CreateWorkspaceRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CloudResourceContainer{}.ToSchema(cs, append(path, "cloud_resource_container")...) + GcpManagedNetworkConfig{}.ToSchema(cs, append(path, "gcp_managed_network_config")...) + GkeConfig{}.ToSchema(cs, append(path, "gke_config")...) + cs.SetRequired(append(path, "workspace_name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateWorkspaceRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1354,6 +1450,13 @@ func (newState *Credential) SyncEffectiveFieldsDuringCreateOrUpdate(plan Credent func (newState *Credential) SyncEffectiveFieldsDuringRead(existingState Credential) { } +func (c Credential) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AwsCredentials{}.ToSchema(cs, append(path, "aws_credentials")...) + cs.SetComputed(append(path, "creation_time")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Credential. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1436,6 +1539,11 @@ func (newState *CustomerFacingGcpCloudResourceContainer) SyncEffectiveFieldsDuri func (newState *CustomerFacingGcpCloudResourceContainer) SyncEffectiveFieldsDuringRead(existingState CustomerFacingGcpCloudResourceContainer) { } +func (c CustomerFacingGcpCloudResourceContainer) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CustomerFacingGcpCloudResourceContainer. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1488,6 +1596,14 @@ func (newState *CustomerManagedKey) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *CustomerManagedKey) SyncEffectiveFieldsDuringRead(existingState CustomerManagedKey) { } +func (c CustomerManagedKey) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AwsKeyInfo{}.ToSchema(cs, append(path, "aws_key_info")...) + cs.SetComputed(append(path, "creation_time")...) + GcpKeyInfo{}.ToSchema(cs, append(path, "gcp_key_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CustomerManagedKey. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1623,12 +1739,6 @@ type DeleteCredentialRequest struct { CredentialsId types.String `tfsdk:"-"` } -func (newState *DeleteCredentialRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteCredentialRequest) { -} - -func (newState *DeleteCredentialRequest) SyncEffectiveFieldsDuringRead(existingState DeleteCredentialRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1666,12 +1776,6 @@ type DeleteEncryptionKeyRequest struct { CustomerManagedKeyId types.String `tfsdk:"-"` } -func (newState *DeleteEncryptionKeyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteEncryptionKeyRequest) { -} - -func (newState *DeleteEncryptionKeyRequest) SyncEffectiveFieldsDuringRead(existingState DeleteEncryptionKeyRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteEncryptionKeyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1709,12 +1813,6 @@ type DeleteNetworkRequest struct { NetworkId types.String `tfsdk:"-"` } -func (newState *DeleteNetworkRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteNetworkRequest) { -} - -func (newState *DeleteNetworkRequest) SyncEffectiveFieldsDuringRead(existingState DeleteNetworkRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteNetworkRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1752,12 +1850,6 @@ type DeletePrivateAccesRequest struct { PrivateAccessSettingsId types.String `tfsdk:"-"` } -func (newState *DeletePrivateAccesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeletePrivateAccesRequest) { -} - -func (newState *DeletePrivateAccesRequest) SyncEffectiveFieldsDuringRead(existingState DeletePrivateAccesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeletePrivateAccesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1792,12 +1884,6 @@ func (o DeletePrivateAccesRequest) Type(ctx context.Context) attr.Type { type DeleteResponse struct { } -func (newState *DeleteResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse) { -} - -func (newState *DeleteResponse) SyncEffectiveFieldsDuringRead(existingState DeleteResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1831,12 +1917,6 @@ type DeleteStorageRequest struct { StorageConfigurationId types.String `tfsdk:"-"` } -func (newState *DeleteStorageRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteStorageRequest) { -} - -func (newState *DeleteStorageRequest) SyncEffectiveFieldsDuringRead(existingState DeleteStorageRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteStorageRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1874,12 +1954,6 @@ type DeleteVpcEndpointRequest struct { VpcEndpointId types.String `tfsdk:"-"` } -func (newState *DeleteVpcEndpointRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteVpcEndpointRequest) { -} - -func (newState *DeleteVpcEndpointRequest) SyncEffectiveFieldsDuringRead(existingState DeleteVpcEndpointRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteVpcEndpointRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1917,12 +1991,6 @@ type DeleteWorkspaceRequest struct { WorkspaceId types.Int64 `tfsdk:"-"` } -func (newState *DeleteWorkspaceRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteWorkspaceRequest) { -} - -func (newState *DeleteWorkspaceRequest) SyncEffectiveFieldsDuringRead(existingState DeleteWorkspaceRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteWorkspaceRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1969,6 +2037,11 @@ func (newState *ExternalCustomerInfo) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *ExternalCustomerInfo) SyncEffectiveFieldsDuringRead(existingState ExternalCustomerInfo) { } +func (c ExternalCustomerInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExternalCustomerInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2015,6 +2088,12 @@ func (newState *GcpKeyInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan GcpKeyI func (newState *GcpKeyInfo) SyncEffectiveFieldsDuringRead(existingState GcpKeyInfo) { } +func (c GcpKeyInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "kms_key_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GcpKeyInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2087,6 +2166,11 @@ func (newState *GcpManagedNetworkConfig) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *GcpManagedNetworkConfig) SyncEffectiveFieldsDuringRead(existingState GcpManagedNetworkConfig) { } +func (c GcpManagedNetworkConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GcpManagedNetworkConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2151,6 +2235,17 @@ func (newState *GcpNetworkInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Gcp func (newState *GcpNetworkInfo) SyncEffectiveFieldsDuringRead(existingState GcpNetworkInfo) { } +func (c GcpNetworkInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "network_project_id")...) + cs.SetRequired(append(path, "pod_ip_range_name")...) + cs.SetRequired(append(path, "service_ip_range_name")...) + cs.SetRequired(append(path, "subnet_id")...) + cs.SetRequired(append(path, "subnet_region")...) + cs.SetRequired(append(path, "vpc_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GcpNetworkInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2214,6 +2309,14 @@ func (newState *GcpVpcEndpointInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *GcpVpcEndpointInfo) SyncEffectiveFieldsDuringRead(existingState GcpVpcEndpointInfo) { } +func (c GcpVpcEndpointInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "endpoint_region")...) + cs.SetRequired(append(path, "project_id")...) + cs.SetRequired(append(path, "psc_endpoint_name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GcpVpcEndpointInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2259,12 +2362,6 @@ type GetCredentialRequest struct { CredentialsId types.String `tfsdk:"-"` } -func (newState *GetCredentialRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetCredentialRequest) { -} - -func (newState *GetCredentialRequest) SyncEffectiveFieldsDuringRead(existingState GetCredentialRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetCredentialRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2302,12 +2399,6 @@ type GetEncryptionKeyRequest struct { CustomerManagedKeyId types.String `tfsdk:"-"` } -func (newState *GetEncryptionKeyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetEncryptionKeyRequest) { -} - -func (newState *GetEncryptionKeyRequest) SyncEffectiveFieldsDuringRead(existingState GetEncryptionKeyRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetEncryptionKeyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2345,12 +2436,6 @@ type GetNetworkRequest struct { NetworkId types.String `tfsdk:"-"` } -func (newState *GetNetworkRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetNetworkRequest) { -} - -func (newState *GetNetworkRequest) SyncEffectiveFieldsDuringRead(existingState GetNetworkRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetNetworkRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2388,12 +2473,6 @@ type GetPrivateAccesRequest struct { PrivateAccessSettingsId types.String `tfsdk:"-"` } -func (newState *GetPrivateAccesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPrivateAccesRequest) { -} - -func (newState *GetPrivateAccesRequest) SyncEffectiveFieldsDuringRead(existingState GetPrivateAccesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPrivateAccesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2431,12 +2510,6 @@ type GetStorageRequest struct { StorageConfigurationId types.String `tfsdk:"-"` } -func (newState *GetStorageRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetStorageRequest) { -} - -func (newState *GetStorageRequest) SyncEffectiveFieldsDuringRead(existingState GetStorageRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetStorageRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2474,12 +2547,6 @@ type GetVpcEndpointRequest struct { VpcEndpointId types.String `tfsdk:"-"` } -func (newState *GetVpcEndpointRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetVpcEndpointRequest) { -} - -func (newState *GetVpcEndpointRequest) SyncEffectiveFieldsDuringRead(existingState GetVpcEndpointRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetVpcEndpointRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2517,12 +2584,6 @@ type GetWorkspaceRequest struct { WorkspaceId types.Int64 `tfsdk:"-"` } -func (newState *GetWorkspaceRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWorkspaceRequest) { -} - -func (newState *GetWorkspaceRequest) SyncEffectiveFieldsDuringRead(existingState GetWorkspaceRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWorkspaceRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2578,6 +2639,11 @@ func (newState *GkeConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan GkeConfi func (newState *GkeConfig) SyncEffectiveFieldsDuringRead(existingState GkeConfig) { } +func (c GkeConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GkeConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2653,6 +2719,19 @@ func (newState *Network) SyncEffectiveFieldsDuringCreateOrUpdate(plan Network) { func (newState *Network) SyncEffectiveFieldsDuringRead(existingState Network) { } +func (c Network) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "creation_time")...) + cs.SetComputed(append(path, "error_messages")...) + NetworkHealth{}.ToSchema(cs, append(path, "error_messages")...) + GcpNetworkInfo{}.ToSchema(cs, append(path, "gcp_network_info")...) + NetworkVpcEndpoints{}.ToSchema(cs, append(path, "vpc_endpoints")...) + cs.SetComputed(append(path, "vpc_status")...) + cs.SetComputed(append(path, "warning_messages")...) + NetworkWarning{}.ToSchema(cs, append(path, "warning_messages")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Network. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2897,6 +2976,11 @@ func (newState *NetworkHealth) SyncEffectiveFieldsDuringCreateOrUpdate(plan Netw func (newState *NetworkHealth) SyncEffectiveFieldsDuringRead(existingState NetworkHealth) { } +func (c NetworkHealth) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in NetworkHealth. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2949,6 +3033,13 @@ func (newState *NetworkVpcEndpoints) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *NetworkVpcEndpoints) SyncEffectiveFieldsDuringRead(existingState NetworkVpcEndpoints) { } +func (c NetworkVpcEndpoints) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "dataplane_relay")...) + cs.SetRequired(append(path, "rest_api")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in NetworkVpcEndpoints. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3055,6 +3146,11 @@ func (newState *NetworkWarning) SyncEffectiveFieldsDuringCreateOrUpdate(plan Net func (newState *NetworkWarning) SyncEffectiveFieldsDuringRead(existingState NetworkWarning) { } +func (c NetworkWarning) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in NetworkWarning. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3121,6 +3217,11 @@ func (newState *PrivateAccessSettings) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *PrivateAccessSettings) SyncEffectiveFieldsDuringRead(existingState PrivateAccessSettings) { } +func (c PrivateAccessSettings) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PrivateAccessSettings. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3197,12 +3298,6 @@ func (o *PrivateAccessSettings) SetAllowedVpcEndpointIds(ctx context.Context, v type ReplaceResponse struct { } -func (newState *ReplaceResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ReplaceResponse) { -} - -func (newState *ReplaceResponse) SyncEffectiveFieldsDuringRead(existingState ReplaceResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ReplaceResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3242,6 +3337,11 @@ func (newState *RootBucketInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Roo func (newState *RootBucketInfo) SyncEffectiveFieldsDuringRead(existingState RootBucketInfo) { } +func (c RootBucketInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RootBucketInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3292,6 +3392,14 @@ func (newState *StorageConfiguration) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *StorageConfiguration) SyncEffectiveFieldsDuringRead(existingState StorageConfiguration) { } +func (c StorageConfiguration) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "account_id")...) + cs.SetComputed(append(path, "creation_time")...) + RootBucketInfo{}.ToSchema(cs, append(path, "root_bucket_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in StorageConfiguration. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3375,6 +3483,11 @@ func (newState *StsRole) SyncEffectiveFieldsDuringCreateOrUpdate(plan StsRole) { func (newState *StsRole) SyncEffectiveFieldsDuringRead(existingState StsRole) { } +func (c StsRole) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in StsRole. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3411,12 +3524,6 @@ func (o StsRole) Type(ctx context.Context) attr.Type { type UpdateResponse struct { } -func (newState *UpdateResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateResponse) { -} - -func (newState *UpdateResponse) SyncEffectiveFieldsDuringRead(existingState UpdateResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3485,6 +3592,12 @@ func (newState *UpdateWorkspaceRequest) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *UpdateWorkspaceRequest) SyncEffectiveFieldsDuringRead(existingState UpdateWorkspaceRequest) { } +func (c UpdateWorkspaceRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "workspace_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateWorkspaceRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3608,6 +3721,14 @@ func (newState *UpsertPrivateAccessSettingsRequest) SyncEffectiveFieldsDuringCre func (newState *UpsertPrivateAccessSettingsRequest) SyncEffectiveFieldsDuringRead(existingState UpsertPrivateAccessSettingsRequest) { } +func (c UpsertPrivateAccessSettingsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "private_access_settings_id")...) + cs.SetRequired(append(path, "private_access_settings_name")...) + cs.SetRequired(append(path, "region")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpsertPrivateAccessSettingsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3723,6 +3844,12 @@ func (newState *VpcEndpoint) SyncEffectiveFieldsDuringCreateOrUpdate(plan VpcEnd func (newState *VpcEndpoint) SyncEffectiveFieldsDuringRead(existingState VpcEndpoint) { } +func (c VpcEndpoint) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + GcpVpcEndpointInfo{}.ToSchema(cs, append(path, "gcp_vpc_endpoint_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in VpcEndpoint. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3908,6 +4035,19 @@ func (newState *Workspace) SyncEffectiveFieldsDuringCreateOrUpdate(plan Workspac func (newState *Workspace) SyncEffectiveFieldsDuringRead(existingState Workspace) { } +func (c Workspace) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AzureWorkspaceInfo{}.ToSchema(cs, append(path, "azure_workspace_info")...) + CloudResourceContainer{}.ToSchema(cs, append(path, "cloud_resource_container")...) + cs.SetComputed(append(path, "creation_time")...) + ExternalCustomerInfo{}.ToSchema(cs, append(path, "external_customer_info")...) + GcpManagedNetworkConfig{}.ToSchema(cs, append(path, "gcp_managed_network_config")...) + GkeConfig{}.ToSchema(cs, append(path, "gke_config")...) + cs.SetComputed(append(path, "workspace_status")...) + cs.SetComputed(append(path, "workspace_status_message")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Workspace. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/serving_tf/legacy_model.go b/internal/service/serving_tf/legacy_model.go index faa0dbe8e..fe27cdaa4 100755 --- a/internal/service/serving_tf/legacy_model.go +++ b/internal/service/serving_tf/legacy_model.go @@ -1059,12 +1059,6 @@ type BuildLogsRequest_SdkV2 struct { ServedModelName types.String `tfsdk:"-"` } -func (newState *BuildLogsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan BuildLogsRequest_SdkV2) { -} - -func (newState *BuildLogsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState BuildLogsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in BuildLogsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1628,12 +1622,6 @@ func (o *DataframeSplitInput_SdkV2) SetIndex(ctx context.Context, v []types.Int6 type DeleteResponse_SdkV2 struct { } -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse_SdkV2) { -} - -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1667,12 +1655,6 @@ type DeleteServingEndpointRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteServingEndpointRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteServingEndpointRequest_SdkV2) { -} - -func (newState *DeleteServingEndpointRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteServingEndpointRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteServingEndpointRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2534,12 +2516,6 @@ type ExportMetricsRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *ExportMetricsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ExportMetricsRequest_SdkV2) { -} - -func (newState *ExportMetricsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ExportMetricsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExportMetricsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2575,12 +2551,6 @@ type ExportMetricsResponse_SdkV2 struct { Contents types.Object `tfsdk:"-"` } -func (newState *ExportMetricsResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ExportMetricsResponse_SdkV2) { -} - -func (newState *ExportMetricsResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState ExportMetricsResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExportMetricsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3043,12 +3013,6 @@ type GetOpenApiRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *GetOpenApiRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetOpenApiRequest_SdkV2) { -} - -func (newState *GetOpenApiRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetOpenApiRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetOpenApiRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3085,12 +3049,6 @@ func (o GetOpenApiRequest_SdkV2) Type(ctx context.Context) attr.Type { type GetOpenApiResponse_SdkV2 struct { } -func (newState *GetOpenApiResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetOpenApiResponse_SdkV2) { -} - -func (newState *GetOpenApiResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetOpenApiResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetOpenApiResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3124,12 +3082,6 @@ type GetServingEndpointPermissionLevelsRequest_SdkV2 struct { ServingEndpointId types.String `tfsdk:"-"` } -func (newState *GetServingEndpointPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetServingEndpointPermissionLevelsRequest_SdkV2) { -} - -func (newState *GetServingEndpointPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetServingEndpointPermissionLevelsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetServingEndpointPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3239,12 +3191,6 @@ type GetServingEndpointPermissionsRequest_SdkV2 struct { ServingEndpointId types.String `tfsdk:"-"` } -func (newState *GetServingEndpointPermissionsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetServingEndpointPermissionsRequest_SdkV2) { -} - -func (newState *GetServingEndpointPermissionsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetServingEndpointPermissionsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetServingEndpointPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3282,12 +3228,6 @@ type GetServingEndpointRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *GetServingEndpointRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetServingEndpointRequest_SdkV2) { -} - -func (newState *GetServingEndpointRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetServingEndpointRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetServingEndpointRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3474,12 +3414,6 @@ type LogsRequest_SdkV2 struct { ServedModelName types.String `tfsdk:"-"` } -func (newState *LogsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan LogsRequest_SdkV2) { -} - -func (newState *LogsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState LogsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in LogsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3928,12 +3862,6 @@ type PutAiGatewayRequest_SdkV2 struct { UsageTrackingConfig types.List `tfsdk:"usage_tracking_config" tf:"optional,object"` } -func (newState *PutAiGatewayRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan PutAiGatewayRequest_SdkV2) { -} - -func (newState *PutAiGatewayRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState PutAiGatewayRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in PutAiGatewayRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4106,12 +4034,6 @@ type PutAiGatewayResponse_SdkV2 struct { UsageTrackingConfig types.List `tfsdk:"usage_tracking_config" tf:"optional,object"` } -func (newState *PutAiGatewayResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan PutAiGatewayResponse_SdkV2) { -} - -func (newState *PutAiGatewayResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState PutAiGatewayResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in PutAiGatewayResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4275,12 +4197,6 @@ type PutRequest_SdkV2 struct { RateLimits types.List `tfsdk:"rate_limits" tf:"optional"` } -func (newState *PutRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan PutRequest_SdkV2) { -} - -func (newState *PutRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState PutRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in PutRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4349,12 +4265,6 @@ type PutResponse_SdkV2 struct { RateLimits types.List `tfsdk:"rate_limits" tf:"optional"` } -func (newState *PutResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan PutResponse_SdkV2) { -} - -func (newState *PutResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState PutResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in PutResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/serving_tf/model.go b/internal/service/serving_tf/model.go index f9bf0ddbb..f24b0ab52 100755 --- a/internal/service/serving_tf/model.go +++ b/internal/service/serving_tf/model.go @@ -15,6 +15,7 @@ import ( "reflect" pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common" + "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/tfschema" "github.com/databricks/terraform-provider-databricks/internal/service/oauth2_tf" "github.com/hashicorp/terraform-plugin-framework/attr" @@ -41,6 +42,11 @@ func (newState *Ai21LabsConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan Ai2 func (newState *Ai21LabsConfig) SyncEffectiveFieldsDuringRead(existingState Ai21LabsConfig) { } +func (c Ai21LabsConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Ai21LabsConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -96,6 +102,15 @@ func (newState *AiGatewayConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan Ai func (newState *AiGatewayConfig) SyncEffectiveFieldsDuringRead(existingState AiGatewayConfig) { } +func (c AiGatewayConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AiGatewayGuardrails{}.ToSchema(cs, append(path, "guardrails")...) + AiGatewayInferenceTableConfig{}.ToSchema(cs, append(path, "inference_table_config")...) + AiGatewayRateLimit{}.ToSchema(cs, append(path, "rate_limits")...) + AiGatewayUsageTrackingConfig{}.ToSchema(cs, append(path, "usage_tracking_config")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AiGatewayConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -269,6 +284,12 @@ func (newState *AiGatewayGuardrailParameters) SyncEffectiveFieldsDuringCreateOrU func (newState *AiGatewayGuardrailParameters) SyncEffectiveFieldsDuringRead(existingState AiGatewayGuardrailParameters) { } +func (c AiGatewayGuardrailParameters) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AiGatewayGuardrailPiiBehavior{}.ToSchema(cs, append(path, "pii")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AiGatewayGuardrailParameters. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -410,6 +431,12 @@ func (newState *AiGatewayGuardrailPiiBehavior) SyncEffectiveFieldsDuringCreateOr func (newState *AiGatewayGuardrailPiiBehavior) SyncEffectiveFieldsDuringRead(existingState AiGatewayGuardrailPiiBehavior) { } +func (c AiGatewayGuardrailPiiBehavior) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "behavior")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AiGatewayGuardrailPiiBehavior. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -454,6 +481,13 @@ func (newState *AiGatewayGuardrails) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *AiGatewayGuardrails) SyncEffectiveFieldsDuringRead(existingState AiGatewayGuardrails) { } +func (c AiGatewayGuardrails) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AiGatewayGuardrailParameters{}.ToSchema(cs, append(path, "input")...) + AiGatewayGuardrailParameters{}.ToSchema(cs, append(path, "output")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AiGatewayGuardrails. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -568,6 +602,11 @@ func (newState *AiGatewayInferenceTableConfig) SyncEffectiveFieldsDuringCreateOr func (newState *AiGatewayInferenceTableConfig) SyncEffectiveFieldsDuringRead(existingState AiGatewayInferenceTableConfig) { } +func (c AiGatewayInferenceTableConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AiGatewayInferenceTableConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -623,6 +662,13 @@ func (newState *AiGatewayRateLimit) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *AiGatewayRateLimit) SyncEffectiveFieldsDuringRead(existingState AiGatewayRateLimit) { } +func (c AiGatewayRateLimit) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "calls")...) + cs.SetRequired(append(path, "renewal_period")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AiGatewayRateLimit. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -669,6 +715,11 @@ func (newState *AiGatewayUsageTrackingConfig) SyncEffectiveFieldsDuringCreateOrU func (newState *AiGatewayUsageTrackingConfig) SyncEffectiveFieldsDuringRead(existingState AiGatewayUsageTrackingConfig) { } +func (c AiGatewayUsageTrackingConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AiGatewayUsageTrackingConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -740,6 +791,13 @@ func (newState *AmazonBedrockConfig) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *AmazonBedrockConfig) SyncEffectiveFieldsDuringRead(existingState AmazonBedrockConfig) { } +func (c AmazonBedrockConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "aws_region")...) + cs.SetRequired(append(path, "bedrock_provider")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AmazonBedrockConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -800,6 +858,11 @@ func (newState *AnthropicConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan An func (newState *AnthropicConfig) SyncEffectiveFieldsDuringRead(existingState AnthropicConfig) { } +func (c AnthropicConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AnthropicConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -853,6 +916,11 @@ func (newState *AutoCaptureConfigInput) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *AutoCaptureConfigInput) SyncEffectiveFieldsDuringRead(existingState AutoCaptureConfigInput) { } +func (c AutoCaptureConfigInput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AutoCaptureConfigInput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -909,6 +977,12 @@ func (newState *AutoCaptureConfigOutput) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *AutoCaptureConfigOutput) SyncEffectiveFieldsDuringRead(existingState AutoCaptureConfigOutput) { } +func (c AutoCaptureConfigOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AutoCaptureState{}.ToSchema(cs, append(path, "state")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AutoCaptureConfigOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -988,6 +1062,12 @@ func (newState *AutoCaptureState) SyncEffectiveFieldsDuringCreateOrUpdate(plan A func (newState *AutoCaptureState) SyncEffectiveFieldsDuringRead(existingState AutoCaptureState) { } +func (c AutoCaptureState) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PayloadTable{}.ToSchema(cs, append(path, "payload_table")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AutoCaptureState. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1059,12 +1139,6 @@ type BuildLogsRequest struct { ServedModelName types.String `tfsdk:"-"` } -func (newState *BuildLogsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan BuildLogsRequest) { -} - -func (newState *BuildLogsRequest) SyncEffectiveFieldsDuringRead(existingState BuildLogsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in BuildLogsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1109,6 +1183,12 @@ func (newState *BuildLogsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *BuildLogsResponse) SyncEffectiveFieldsDuringRead(existingState BuildLogsResponse) { } +func (c BuildLogsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "logs")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in BuildLogsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1153,6 +1233,11 @@ func (newState *ChatMessage) SyncEffectiveFieldsDuringCreateOrUpdate(plan ChatMe func (newState *ChatMessage) SyncEffectiveFieldsDuringRead(existingState ChatMessage) { } +func (c ChatMessage) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ChatMessage. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1208,6 +1293,11 @@ func (newState *CohereConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan Coher func (newState *CohereConfig) SyncEffectiveFieldsDuringRead(existingState CohereConfig) { } +func (c CohereConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CohereConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1269,6 +1359,17 @@ func (newState *CreateServingEndpoint) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *CreateServingEndpoint) SyncEffectiveFieldsDuringRead(existingState CreateServingEndpoint) { } +func (c CreateServingEndpoint) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AiGatewayConfig{}.ToSchema(cs, append(path, "ai_gateway")...) + cs.SetRequired(append(path, "config")...) + EndpointCoreConfigInput{}.ToSchema(cs, append(path, "config")...) + cs.SetRequired(append(path, "name")...) + RateLimit{}.ToSchema(cs, append(path, "rate_limits")...) + EndpointTag{}.ToSchema(cs, append(path, "tags")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateServingEndpoint. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1453,6 +1554,12 @@ func (newState *DatabricksModelServingConfig) SyncEffectiveFieldsDuringCreateOrU func (newState *DatabricksModelServingConfig) SyncEffectiveFieldsDuringRead(existingState DatabricksModelServingConfig) { } +func (c DatabricksModelServingConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "databricks_workspace_url")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DatabricksModelServingConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1502,6 +1609,11 @@ func (newState *DataframeSplitInput) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *DataframeSplitInput) SyncEffectiveFieldsDuringRead(existingState DataframeSplitInput) { } +func (c DataframeSplitInput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DataframeSplitInput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1628,12 +1740,6 @@ func (o *DataframeSplitInput) SetIndex(ctx context.Context, v []types.Int64) { type DeleteResponse struct { } -func (newState *DeleteResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse) { -} - -func (newState *DeleteResponse) SyncEffectiveFieldsDuringRead(existingState DeleteResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1667,12 +1773,6 @@ type DeleteServingEndpointRequest struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteServingEndpointRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteServingEndpointRequest) { -} - -func (newState *DeleteServingEndpointRequest) SyncEffectiveFieldsDuringRead(existingState DeleteServingEndpointRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteServingEndpointRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1718,6 +1818,11 @@ func (newState *EmbeddingsV1ResponseEmbeddingElement) SyncEffectiveFieldsDuringC func (newState *EmbeddingsV1ResponseEmbeddingElement) SyncEffectiveFieldsDuringRead(existingState EmbeddingsV1ResponseEmbeddingElement) { } +func (c EmbeddingsV1ResponseEmbeddingElement) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EmbeddingsV1ResponseEmbeddingElement. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1806,6 +1911,16 @@ func (newState *EndpointCoreConfigInput) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *EndpointCoreConfigInput) SyncEffectiveFieldsDuringRead(existingState EndpointCoreConfigInput) { } +func (c EndpointCoreConfigInput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AutoCaptureConfigInput{}.ToSchema(cs, append(path, "auto_capture_config")...) + cs.SetRequired(append(path, "name")...) + ServedEntityInput{}.ToSchema(cs, append(path, "served_entities")...) + ServedModelInput{}.ToSchema(cs, append(path, "served_models")...) + TrafficConfig{}.ToSchema(cs, append(path, "traffic_config")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointCoreConfigInput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1983,6 +2098,15 @@ func (newState *EndpointCoreConfigOutput) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *EndpointCoreConfigOutput) SyncEffectiveFieldsDuringRead(existingState EndpointCoreConfigOutput) { } +func (c EndpointCoreConfigOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AutoCaptureConfigOutput{}.ToSchema(cs, append(path, "auto_capture_config")...) + ServedEntityOutput{}.ToSchema(cs, append(path, "served_entities")...) + ServedModelOutput{}.ToSchema(cs, append(path, "served_models")...) + TrafficConfig{}.ToSchema(cs, append(path, "traffic_config")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointCoreConfigOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2153,6 +2277,13 @@ func (newState *EndpointCoreConfigSummary) SyncEffectiveFieldsDuringCreateOrUpda func (newState *EndpointCoreConfigSummary) SyncEffectiveFieldsDuringRead(existingState EndpointCoreConfigSummary) { } +func (c EndpointCoreConfigSummary) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ServedEntitySpec{}.ToSchema(cs, append(path, "served_entities")...) + ServedModelSpec{}.ToSchema(cs, append(path, "served_models")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointCoreConfigSummary. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2270,6 +2401,15 @@ func (newState *EndpointPendingConfig) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *EndpointPendingConfig) SyncEffectiveFieldsDuringRead(existingState EndpointPendingConfig) { } +func (c EndpointPendingConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AutoCaptureConfigOutput{}.ToSchema(cs, append(path, "auto_capture_config")...) + ServedEntityOutput{}.ToSchema(cs, append(path, "served_entities")...) + ServedModelOutput{}.ToSchema(cs, append(path, "served_models")...) + TrafficConfig{}.ToSchema(cs, append(path, "traffic_config")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointPendingConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2448,6 +2588,11 @@ func (newState *EndpointState) SyncEffectiveFieldsDuringCreateOrUpdate(plan Endp func (newState *EndpointState) SyncEffectiveFieldsDuringRead(existingState EndpointState) { } +func (c EndpointState) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointState. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2494,6 +2639,12 @@ func (newState *EndpointTag) SyncEffectiveFieldsDuringCreateOrUpdate(plan Endpoi func (newState *EndpointTag) SyncEffectiveFieldsDuringRead(existingState EndpointTag) { } +func (c EndpointTag) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "key")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointTag. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2534,12 +2685,6 @@ type ExportMetricsRequest struct { Name types.String `tfsdk:"-"` } -func (newState *ExportMetricsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ExportMetricsRequest) { -} - -func (newState *ExportMetricsRequest) SyncEffectiveFieldsDuringRead(existingState ExportMetricsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExportMetricsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2575,12 +2720,6 @@ type ExportMetricsResponse struct { Contents types.Object `tfsdk:"-"` } -func (newState *ExportMetricsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ExportMetricsResponse) { -} - -func (newState *ExportMetricsResponse) SyncEffectiveFieldsDuringRead(existingState ExportMetricsResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExportMetricsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2648,6 +2787,22 @@ func (newState *ExternalModel) SyncEffectiveFieldsDuringCreateOrUpdate(plan Exte func (newState *ExternalModel) SyncEffectiveFieldsDuringRead(existingState ExternalModel) { } +func (c ExternalModel) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Ai21LabsConfig{}.ToSchema(cs, append(path, "ai21labs_config")...) + AmazonBedrockConfig{}.ToSchema(cs, append(path, "amazon_bedrock_config")...) + AnthropicConfig{}.ToSchema(cs, append(path, "anthropic_config")...) + CohereConfig{}.ToSchema(cs, append(path, "cohere_config")...) + DatabricksModelServingConfig{}.ToSchema(cs, append(path, "databricks_model_serving_config")...) + GoogleCloudVertexAiConfig{}.ToSchema(cs, append(path, "google_cloud_vertex_ai_config")...) + cs.SetRequired(append(path, "name")...) + OpenAiConfig{}.ToSchema(cs, append(path, "openai_config")...) + PaLmConfig{}.ToSchema(cs, append(path, "palm_config")...) + cs.SetRequired(append(path, "provider")...) + cs.SetRequired(append(path, "task")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExternalModel. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2947,6 +3102,11 @@ func (newState *ExternalModelUsageElement) SyncEffectiveFieldsDuringCreateOrUpda func (newState *ExternalModelUsageElement) SyncEffectiveFieldsDuringRead(existingState ExternalModelUsageElement) { } +func (c ExternalModelUsageElement) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExternalModelUsageElement. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2999,6 +3159,11 @@ func (newState *FoundationModel) SyncEffectiveFieldsDuringCreateOrUpdate(plan Fo func (newState *FoundationModel) SyncEffectiveFieldsDuringRead(existingState FoundationModel) { } +func (c FoundationModel) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in FoundationModel. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3043,12 +3208,6 @@ type GetOpenApiRequest struct { Name types.String `tfsdk:"-"` } -func (newState *GetOpenApiRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetOpenApiRequest) { -} - -func (newState *GetOpenApiRequest) SyncEffectiveFieldsDuringRead(existingState GetOpenApiRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetOpenApiRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3085,12 +3244,6 @@ func (o GetOpenApiRequest) Type(ctx context.Context) attr.Type { type GetOpenApiResponse struct { } -func (newState *GetOpenApiResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetOpenApiResponse) { -} - -func (newState *GetOpenApiResponse) SyncEffectiveFieldsDuringRead(existingState GetOpenApiResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetOpenApiResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3124,12 +3277,6 @@ type GetServingEndpointPermissionLevelsRequest struct { ServingEndpointId types.String `tfsdk:"-"` } -func (newState *GetServingEndpointPermissionLevelsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetServingEndpointPermissionLevelsRequest) { -} - -func (newState *GetServingEndpointPermissionLevelsRequest) SyncEffectiveFieldsDuringRead(existingState GetServingEndpointPermissionLevelsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetServingEndpointPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3172,6 +3319,12 @@ func (newState *GetServingEndpointPermissionLevelsResponse) SyncEffectiveFieldsD func (newState *GetServingEndpointPermissionLevelsResponse) SyncEffectiveFieldsDuringRead(existingState GetServingEndpointPermissionLevelsResponse) { } +func (c GetServingEndpointPermissionLevelsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ServingEndpointPermissionsDescription{}.ToSchema(cs, append(path, "permission_levels")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetServingEndpointPermissionLevelsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3239,12 +3392,6 @@ type GetServingEndpointPermissionsRequest struct { ServingEndpointId types.String `tfsdk:"-"` } -func (newState *GetServingEndpointPermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetServingEndpointPermissionsRequest) { -} - -func (newState *GetServingEndpointPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState GetServingEndpointPermissionsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetServingEndpointPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3282,12 +3429,6 @@ type GetServingEndpointRequest struct { Name types.String `tfsdk:"-"` } -func (newState *GetServingEndpointRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetServingEndpointRequest) { -} - -func (newState *GetServingEndpointRequest) SyncEffectiveFieldsDuringRead(existingState GetServingEndpointRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetServingEndpointRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3355,6 +3496,11 @@ func (newState *GoogleCloudVertexAiConfig) SyncEffectiveFieldsDuringCreateOrUpda func (newState *GoogleCloudVertexAiConfig) SyncEffectiveFieldsDuringRead(existingState GoogleCloudVertexAiConfig) { } +func (c GoogleCloudVertexAiConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GoogleCloudVertexAiConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3403,6 +3549,12 @@ func (newState *ListEndpointsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *ListEndpointsResponse) SyncEffectiveFieldsDuringRead(existingState ListEndpointsResponse) { } +func (c ListEndpointsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ServingEndpoint{}.ToSchema(cs, append(path, "endpoints")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListEndpointsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3474,12 +3626,6 @@ type LogsRequest struct { ServedModelName types.String `tfsdk:"-"` } -func (newState *LogsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan LogsRequest) { -} - -func (newState *LogsRequest) SyncEffectiveFieldsDuringRead(existingState LogsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in LogsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3524,6 +3670,12 @@ func (newState *ModelDataPlaneInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ModelDataPlaneInfo) SyncEffectiveFieldsDuringRead(existingState ModelDataPlaneInfo) { } +func (c ModelDataPlaneInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + oauth2_tf.DataPlaneInfo{}.ToSchema(cs, append(path, "query_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ModelDataPlaneInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3645,6 +3797,11 @@ func (newState *OpenAiConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan OpenA func (newState *OpenAiConfig) SyncEffectiveFieldsDuringRead(existingState OpenAiConfig) { } +func (c OpenAiConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in OpenAiConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3715,6 +3872,11 @@ func (newState *PaLmConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan PaLmCon func (newState *PaLmConfig) SyncEffectiveFieldsDuringRead(existingState PaLmConfig) { } +func (c PaLmConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PaLmConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3764,6 +3926,13 @@ func (newState *PatchServingEndpointTags) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *PatchServingEndpointTags) SyncEffectiveFieldsDuringRead(existingState PatchServingEndpointTags) { } +func (c PatchServingEndpointTags) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + EndpointTag{}.ToSchema(cs, append(path, "add_tags")...) + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PatchServingEndpointTags. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3873,6 +4042,11 @@ func (newState *PayloadTable) SyncEffectiveFieldsDuringCreateOrUpdate(plan Paylo func (newState *PayloadTable) SyncEffectiveFieldsDuringRead(existingState PayloadTable) { } +func (c PayloadTable) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PayloadTable. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3928,12 +4102,6 @@ type PutAiGatewayRequest struct { UsageTrackingConfig types.Object `tfsdk:"usage_tracking_config" tf:"optional,object"` } -func (newState *PutAiGatewayRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan PutAiGatewayRequest) { -} - -func (newState *PutAiGatewayRequest) SyncEffectiveFieldsDuringRead(existingState PutAiGatewayRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in PutAiGatewayRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4106,12 +4274,6 @@ type PutAiGatewayResponse struct { UsageTrackingConfig types.Object `tfsdk:"usage_tracking_config" tf:"optional,object"` } -func (newState *PutAiGatewayResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan PutAiGatewayResponse) { -} - -func (newState *PutAiGatewayResponse) SyncEffectiveFieldsDuringRead(existingState PutAiGatewayResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in PutAiGatewayResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4275,12 +4437,6 @@ type PutRequest struct { RateLimits types.List `tfsdk:"rate_limits" tf:"optional"` } -func (newState *PutRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan PutRequest) { -} - -func (newState *PutRequest) SyncEffectiveFieldsDuringRead(existingState PutRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in PutRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4349,12 +4505,6 @@ type PutResponse struct { RateLimits types.List `tfsdk:"rate_limits" tf:"optional"` } -func (newState *PutResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan PutResponse) { -} - -func (newState *PutResponse) SyncEffectiveFieldsDuringRead(existingState PutResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in PutResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4474,6 +4624,14 @@ func (newState *QueryEndpointInput) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *QueryEndpointInput) SyncEffectiveFieldsDuringRead(existingState QueryEndpointInput) { } +func (c QueryEndpointInput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + DataframeSplitInput{}.ToSchema(cs, append(path, "dataframe_split")...) + ChatMessage{}.ToSchema(cs, append(path, "messages")...) + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryEndpointInput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4743,6 +4901,14 @@ func (newState *QueryEndpointResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *QueryEndpointResponse) SyncEffectiveFieldsDuringRead(existingState QueryEndpointResponse) { } +func (c QueryEndpointResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + V1ResponseChoiceElement{}.ToSchema(cs, append(path, "choices")...) + EmbeddingsV1ResponseEmbeddingElement{}.ToSchema(cs, append(path, "data")...) + ExternalModelUsageElement{}.ToSchema(cs, append(path, "usage")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryEndpointResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4926,6 +5092,13 @@ func (newState *RateLimit) SyncEffectiveFieldsDuringCreateOrUpdate(plan RateLimi func (newState *RateLimit) SyncEffectiveFieldsDuringRead(existingState RateLimit) { } +func (c RateLimit) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "calls")...) + cs.SetRequired(append(path, "renewal_period")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RateLimit. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4975,6 +5148,13 @@ func (newState *Route) SyncEffectiveFieldsDuringCreateOrUpdate(plan Route) { func (newState *Route) SyncEffectiveFieldsDuringRead(existingState Route) { } +func (c Route) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "served_model_name")...) + cs.SetRequired(append(path, "traffic_percentage")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Route. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5075,6 +5255,12 @@ func (newState *ServedEntityInput) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ServedEntityInput) SyncEffectiveFieldsDuringRead(existingState ServedEntityInput) { } +func (c ServedEntityInput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ExternalModel{}.ToSchema(cs, append(path, "external_model")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ServedEntityInput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5254,6 +5440,14 @@ func (newState *ServedEntityOutput) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ServedEntityOutput) SyncEffectiveFieldsDuringRead(existingState ServedEntityOutput) { } +func (c ServedEntityOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ExternalModel{}.ToSchema(cs, append(path, "external_model")...) + FoundationModel{}.ToSchema(cs, append(path, "foundation_model")...) + ServedModelState{}.ToSchema(cs, append(path, "state")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ServedEntityOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5458,6 +5652,13 @@ func (newState *ServedEntitySpec) SyncEffectiveFieldsDuringCreateOrUpdate(plan S func (newState *ServedEntitySpec) SyncEffectiveFieldsDuringRead(existingState ServedEntitySpec) { } +func (c ServedEntitySpec) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ExternalModel{}.ToSchema(cs, append(path, "external_model")...) + FoundationModel{}.ToSchema(cs, append(path, "foundation_model")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ServedEntitySpec. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5610,6 +5811,14 @@ func (newState *ServedModelInput) SyncEffectiveFieldsDuringCreateOrUpdate(plan S func (newState *ServedModelInput) SyncEffectiveFieldsDuringRead(existingState ServedModelInput) { } +func (c ServedModelInput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "model_name")...) + cs.SetRequired(append(path, "model_version")...) + cs.SetRequired(append(path, "scale_to_zero_enabled")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ServedModelInput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5741,6 +5950,12 @@ func (newState *ServedModelOutput) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ServedModelOutput) SyncEffectiveFieldsDuringRead(existingState ServedModelOutput) { } +func (c ServedModelOutput) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ServedModelState{}.ToSchema(cs, append(path, "state")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ServedModelOutput. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5868,6 +6083,11 @@ func (newState *ServedModelSpec) SyncEffectiveFieldsDuringCreateOrUpdate(plan Se func (newState *ServedModelSpec) SyncEffectiveFieldsDuringRead(existingState ServedModelSpec) { } +func (c ServedModelSpec) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ServedModelSpec. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5927,6 +6147,11 @@ func (newState *ServedModelState) SyncEffectiveFieldsDuringCreateOrUpdate(plan S func (newState *ServedModelState) SyncEffectiveFieldsDuringRead(existingState ServedModelState) { } +func (c ServedModelState) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ServedModelState. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5972,6 +6197,12 @@ func (newState *ServerLogsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ServerLogsResponse) SyncEffectiveFieldsDuringRead(existingState ServerLogsResponse) { } +func (c ServerLogsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "logs")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ServerLogsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6034,6 +6265,15 @@ func (newState *ServingEndpoint) SyncEffectiveFieldsDuringCreateOrUpdate(plan Se func (newState *ServingEndpoint) SyncEffectiveFieldsDuringRead(existingState ServingEndpoint) { } +func (c ServingEndpoint) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AiGatewayConfig{}.ToSchema(cs, append(path, "ai_gateway")...) + EndpointCoreConfigSummary{}.ToSchema(cs, append(path, "config")...) + EndpointState{}.ToSchema(cs, append(path, "state")...) + EndpointTag{}.ToSchema(cs, append(path, "tags")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ServingEndpoint. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6217,6 +6457,11 @@ func (newState *ServingEndpointAccessControlRequest) SyncEffectiveFieldsDuringCr func (newState *ServingEndpointAccessControlRequest) SyncEffectiveFieldsDuringRead(existingState ServingEndpointAccessControlRequest) { } +func (c ServingEndpointAccessControlRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ServingEndpointAccessControlRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6273,6 +6518,12 @@ func (newState *ServingEndpointAccessControlResponse) SyncEffectiveFieldsDuringC func (newState *ServingEndpointAccessControlResponse) SyncEffectiveFieldsDuringRead(existingState ServingEndpointAccessControlResponse) { } +func (c ServingEndpointAccessControlResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ServingEndpointPermission{}.ToSchema(cs, append(path, "all_permissions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ServingEndpointAccessControlResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6384,6 +6635,17 @@ func (newState *ServingEndpointDetailed) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *ServingEndpointDetailed) SyncEffectiveFieldsDuringRead(existingState ServingEndpointDetailed) { } +func (c ServingEndpointDetailed) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AiGatewayConfig{}.ToSchema(cs, append(path, "ai_gateway")...) + EndpointCoreConfigOutput{}.ToSchema(cs, append(path, "config")...) + ModelDataPlaneInfo{}.ToSchema(cs, append(path, "data_plane_info")...) + EndpointPendingConfig{}.ToSchema(cs, append(path, "pending_config")...) + EndpointState{}.ToSchema(cs, append(path, "state")...) + EndpointTag{}.ToSchema(cs, append(path, "tags")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ServingEndpointDetailed. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6632,6 +6894,11 @@ func (newState *ServingEndpointPermission) SyncEffectiveFieldsDuringCreateOrUpda func (newState *ServingEndpointPermission) SyncEffectiveFieldsDuringRead(existingState ServingEndpointPermission) { } +func (c ServingEndpointPermission) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ServingEndpointPermission. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6711,6 +6978,12 @@ func (newState *ServingEndpointPermissions) SyncEffectiveFieldsDuringCreateOrUpd func (newState *ServingEndpointPermissions) SyncEffectiveFieldsDuringRead(existingState ServingEndpointPermissions) { } +func (c ServingEndpointPermissions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ServingEndpointAccessControlResponse{}.ToSchema(cs, append(path, "access_control_list")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ServingEndpointPermissions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6788,6 +7061,11 @@ func (newState *ServingEndpointPermissionsDescription) SyncEffectiveFieldsDuring func (newState *ServingEndpointPermissionsDescription) SyncEffectiveFieldsDuringRead(existingState ServingEndpointPermissionsDescription) { } +func (c ServingEndpointPermissionsDescription) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ServingEndpointPermissionsDescription. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6833,6 +7111,13 @@ func (newState *ServingEndpointPermissionsRequest) SyncEffectiveFieldsDuringCrea func (newState *ServingEndpointPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState ServingEndpointPermissionsRequest) { } +func (c ServingEndpointPermissionsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ServingEndpointAccessControlRequest{}.ToSchema(cs, append(path, "access_control_list")...) + cs.SetRequired(append(path, "serving_endpoint_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ServingEndpointPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6907,6 +7192,12 @@ func (newState *TrafficConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan Traf func (newState *TrafficConfig) SyncEffectiveFieldsDuringRead(existingState TrafficConfig) { } +func (c TrafficConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Route{}.ToSchema(cs, append(path, "routes")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TrafficConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6987,6 +7278,12 @@ func (newState *V1ResponseChoiceElement) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *V1ResponseChoiceElement) SyncEffectiveFieldsDuringRead(existingState V1ResponseChoiceElement) { } +func (c V1ResponseChoiceElement) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ChatMessage{}.ToSchema(cs, append(path, "message")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in V1ResponseChoiceElement. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/settings_tf/legacy_model.go b/internal/service/settings_tf/legacy_model.go index 15b2e7a38..8b3f46f79 100755 --- a/internal/service/settings_tf/legacy_model.go +++ b/internal/service/settings_tf/legacy_model.go @@ -2046,12 +2046,6 @@ type DeleteAccountIpAccessListRequest_SdkV2 struct { IpAccessListId types.String `tfsdk:"-"` } -func (newState *DeleteAccountIpAccessListRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAccountIpAccessListRequest_SdkV2) { -} - -func (newState *DeleteAccountIpAccessListRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteAccountIpAccessListRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAccountIpAccessListRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2095,12 +2089,6 @@ type DeleteAibiDashboardEmbeddingAccessPolicySettingRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *DeleteAibiDashboardEmbeddingAccessPolicySettingRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAibiDashboardEmbeddingAccessPolicySettingRequest_SdkV2) { -} - -func (newState *DeleteAibiDashboardEmbeddingAccessPolicySettingRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteAibiDashboardEmbeddingAccessPolicySettingRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAibiDashboardEmbeddingAccessPolicySettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2193,12 +2181,6 @@ type DeleteAibiDashboardEmbeddingApprovedDomainsSettingRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *DeleteAibiDashboardEmbeddingApprovedDomainsSettingRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAibiDashboardEmbeddingApprovedDomainsSettingRequest_SdkV2) { -} - -func (newState *DeleteAibiDashboardEmbeddingApprovedDomainsSettingRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteAibiDashboardEmbeddingApprovedDomainsSettingRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAibiDashboardEmbeddingApprovedDomainsSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2291,12 +2273,6 @@ type DeleteDefaultNamespaceSettingRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *DeleteDefaultNamespaceSettingRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteDefaultNamespaceSettingRequest_SdkV2) { -} - -func (newState *DeleteDefaultNamespaceSettingRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteDefaultNamespaceSettingRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDefaultNamespaceSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2389,12 +2365,6 @@ type DeleteDisableLegacyAccessRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *DeleteDisableLegacyAccessRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteDisableLegacyAccessRequest_SdkV2) { -} - -func (newState *DeleteDisableLegacyAccessRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteDisableLegacyAccessRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDisableLegacyAccessRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2487,12 +2457,6 @@ type DeleteDisableLegacyDbfsRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *DeleteDisableLegacyDbfsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteDisableLegacyDbfsRequest_SdkV2) { -} - -func (newState *DeleteDisableLegacyDbfsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteDisableLegacyDbfsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDisableLegacyDbfsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2585,12 +2549,6 @@ type DeleteDisableLegacyFeaturesRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *DeleteDisableLegacyFeaturesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteDisableLegacyFeaturesRequest_SdkV2) { -} - -func (newState *DeleteDisableLegacyFeaturesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteDisableLegacyFeaturesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDisableLegacyFeaturesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2677,12 +2635,6 @@ type DeleteIpAccessListRequest_SdkV2 struct { IpAccessListId types.String `tfsdk:"-"` } -func (newState *DeleteIpAccessListRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteIpAccessListRequest_SdkV2) { -} - -func (newState *DeleteIpAccessListRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteIpAccessListRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteIpAccessListRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2720,12 +2672,6 @@ type DeleteNetworkConnectivityConfigurationRequest_SdkV2 struct { NetworkConnectivityConfigId types.String `tfsdk:"-"` } -func (newState *DeleteNetworkConnectivityConfigurationRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteNetworkConnectivityConfigurationRequest_SdkV2) { -} - -func (newState *DeleteNetworkConnectivityConfigurationRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteNetworkConnectivityConfigurationRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteNetworkConnectivityConfigurationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2760,12 +2706,6 @@ func (o DeleteNetworkConnectivityConfigurationRequest_SdkV2) Type(ctx context.Co type DeleteNetworkConnectivityConfigurationResponse_SdkV2 struct { } -func (newState *DeleteNetworkConnectivityConfigurationResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteNetworkConnectivityConfigurationResponse_SdkV2) { -} - -func (newState *DeleteNetworkConnectivityConfigurationResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteNetworkConnectivityConfigurationResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteNetworkConnectivityConfigurationResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2798,12 +2738,6 @@ type DeleteNotificationDestinationRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteNotificationDestinationRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteNotificationDestinationRequest_SdkV2) { -} - -func (newState *DeleteNotificationDestinationRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteNotificationDestinationRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteNotificationDestinationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2847,12 +2781,6 @@ type DeletePersonalComputeSettingRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *DeletePersonalComputeSettingRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeletePersonalComputeSettingRequest_SdkV2) { -} - -func (newState *DeletePersonalComputeSettingRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeletePersonalComputeSettingRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeletePersonalComputeSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2941,12 +2869,6 @@ type DeletePrivateEndpointRuleRequest_SdkV2 struct { PrivateEndpointRuleId types.String `tfsdk:"-"` } -func (newState *DeletePrivateEndpointRuleRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeletePrivateEndpointRuleRequest_SdkV2) { -} - -func (newState *DeletePrivateEndpointRuleRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeletePrivateEndpointRuleRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeletePrivateEndpointRuleRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2983,12 +2905,6 @@ func (o DeletePrivateEndpointRuleRequest_SdkV2) Type(ctx context.Context) attr.T type DeleteResponse_SdkV2 struct { } -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse_SdkV2) { -} - -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3028,12 +2944,6 @@ type DeleteRestrictWorkspaceAdminsSettingRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *DeleteRestrictWorkspaceAdminsSettingRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteRestrictWorkspaceAdminsSettingRequest_SdkV2) { -} - -func (newState *DeleteRestrictWorkspaceAdminsSettingRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteRestrictWorkspaceAdminsSettingRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteRestrictWorkspaceAdminsSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3120,12 +3030,6 @@ type DeleteTokenManagementRequest_SdkV2 struct { TokenId types.String `tfsdk:"-"` } -func (newState *DeleteTokenManagementRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteTokenManagementRequest_SdkV2) { -} - -func (newState *DeleteTokenManagementRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteTokenManagementRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteTokenManagementRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4692,12 +4596,6 @@ type GetAccountIpAccessListRequest_SdkV2 struct { IpAccessListId types.String `tfsdk:"-"` } -func (newState *GetAccountIpAccessListRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAccountIpAccessListRequest_SdkV2) { -} - -func (newState *GetAccountIpAccessListRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetAccountIpAccessListRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAccountIpAccessListRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4741,12 +4639,6 @@ type GetAibiDashboardEmbeddingAccessPolicySettingRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *GetAibiDashboardEmbeddingAccessPolicySettingRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAibiDashboardEmbeddingAccessPolicySettingRequest_SdkV2) { -} - -func (newState *GetAibiDashboardEmbeddingAccessPolicySettingRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetAibiDashboardEmbeddingAccessPolicySettingRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAibiDashboardEmbeddingAccessPolicySettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4790,12 +4682,6 @@ type GetAibiDashboardEmbeddingApprovedDomainsSettingRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *GetAibiDashboardEmbeddingApprovedDomainsSettingRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAibiDashboardEmbeddingApprovedDomainsSettingRequest_SdkV2) { -} - -func (newState *GetAibiDashboardEmbeddingApprovedDomainsSettingRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetAibiDashboardEmbeddingApprovedDomainsSettingRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAibiDashboardEmbeddingApprovedDomainsSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4839,12 +4725,6 @@ type GetAutomaticClusterUpdateSettingRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *GetAutomaticClusterUpdateSettingRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAutomaticClusterUpdateSettingRequest_SdkV2) { -} - -func (newState *GetAutomaticClusterUpdateSettingRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetAutomaticClusterUpdateSettingRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAutomaticClusterUpdateSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4888,12 +4768,6 @@ type GetComplianceSecurityProfileSettingRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *GetComplianceSecurityProfileSettingRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetComplianceSecurityProfileSettingRequest_SdkV2) { -} - -func (newState *GetComplianceSecurityProfileSettingRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetComplianceSecurityProfileSettingRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetComplianceSecurityProfileSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4937,12 +4811,6 @@ type GetCspEnablementAccountSettingRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *GetCspEnablementAccountSettingRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetCspEnablementAccountSettingRequest_SdkV2) { -} - -func (newState *GetCspEnablementAccountSettingRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetCspEnablementAccountSettingRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetCspEnablementAccountSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4986,12 +4854,6 @@ type GetDefaultNamespaceSettingRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *GetDefaultNamespaceSettingRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDefaultNamespaceSettingRequest_SdkV2) { -} - -func (newState *GetDefaultNamespaceSettingRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetDefaultNamespaceSettingRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDefaultNamespaceSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5035,12 +4897,6 @@ type GetDisableLegacyAccessRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *GetDisableLegacyAccessRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDisableLegacyAccessRequest_SdkV2) { -} - -func (newState *GetDisableLegacyAccessRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetDisableLegacyAccessRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDisableLegacyAccessRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5084,12 +4940,6 @@ type GetDisableLegacyDbfsRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *GetDisableLegacyDbfsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDisableLegacyDbfsRequest_SdkV2) { -} - -func (newState *GetDisableLegacyDbfsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetDisableLegacyDbfsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDisableLegacyDbfsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5133,12 +4983,6 @@ type GetDisableLegacyFeaturesRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *GetDisableLegacyFeaturesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDisableLegacyFeaturesRequest_SdkV2) { -} - -func (newState *GetDisableLegacyFeaturesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetDisableLegacyFeaturesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDisableLegacyFeaturesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5182,12 +5026,6 @@ type GetEnhancedSecurityMonitoringSettingRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *GetEnhancedSecurityMonitoringSettingRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetEnhancedSecurityMonitoringSettingRequest_SdkV2) { -} - -func (newState *GetEnhancedSecurityMonitoringSettingRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetEnhancedSecurityMonitoringSettingRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetEnhancedSecurityMonitoringSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5231,12 +5069,6 @@ type GetEsmEnablementAccountSettingRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *GetEsmEnablementAccountSettingRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetEsmEnablementAccountSettingRequest_SdkV2) { -} - -func (newState *GetEsmEnablementAccountSettingRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetEsmEnablementAccountSettingRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetEsmEnablementAccountSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5274,12 +5106,6 @@ type GetIpAccessListRequest_SdkV2 struct { IpAccessListId types.String `tfsdk:"-"` } -func (newState *GetIpAccessListRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetIpAccessListRequest_SdkV2) { -} - -func (newState *GetIpAccessListRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetIpAccessListRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetIpAccessListRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5461,12 +5287,6 @@ type GetNetworkConnectivityConfigurationRequest_SdkV2 struct { NetworkConnectivityConfigId types.String `tfsdk:"-"` } -func (newState *GetNetworkConnectivityConfigurationRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetNetworkConnectivityConfigurationRequest_SdkV2) { -} - -func (newState *GetNetworkConnectivityConfigurationRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetNetworkConnectivityConfigurationRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetNetworkConnectivityConfigurationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5503,12 +5323,6 @@ type GetNotificationDestinationRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *GetNotificationDestinationRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetNotificationDestinationRequest_SdkV2) { -} - -func (newState *GetNotificationDestinationRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetNotificationDestinationRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetNotificationDestinationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5552,12 +5366,6 @@ type GetPersonalComputeSettingRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *GetPersonalComputeSettingRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPersonalComputeSettingRequest_SdkV2) { -} - -func (newState *GetPersonalComputeSettingRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetPersonalComputeSettingRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPersonalComputeSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5597,12 +5405,6 @@ type GetPrivateEndpointRuleRequest_SdkV2 struct { PrivateEndpointRuleId types.String `tfsdk:"-"` } -func (newState *GetPrivateEndpointRuleRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPrivateEndpointRuleRequest_SdkV2) { -} - -func (newState *GetPrivateEndpointRuleRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetPrivateEndpointRuleRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPrivateEndpointRuleRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5648,12 +5450,6 @@ type GetRestrictWorkspaceAdminsSettingRequest_SdkV2 struct { Etag types.String `tfsdk:"-"` } -func (newState *GetRestrictWorkspaceAdminsSettingRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRestrictWorkspaceAdminsSettingRequest_SdkV2) { -} - -func (newState *GetRestrictWorkspaceAdminsSettingRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetRestrictWorkspaceAdminsSettingRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRestrictWorkspaceAdminsSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5690,12 +5486,6 @@ type GetStatusRequest_SdkV2 struct { Keys types.String `tfsdk:"-"` } -func (newState *GetStatusRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetStatusRequest_SdkV2) { -} - -func (newState *GetStatusRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetStatusRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetStatusRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5733,12 +5523,6 @@ type GetTokenManagementRequest_SdkV2 struct { TokenId types.String `tfsdk:"-"` } -func (newState *GetTokenManagementRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetTokenManagementRequest_SdkV2) { -} - -func (newState *GetTokenManagementRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetTokenManagementRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetTokenManagementRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6182,12 +5966,6 @@ type ListNetworkConnectivityConfigurationsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListNetworkConnectivityConfigurationsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListNetworkConnectivityConfigurationsRequest_SdkV2) { -} - -func (newState *ListNetworkConnectivityConfigurationsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListNetworkConnectivityConfigurationsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListNetworkConnectivityConfigurationsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6302,12 +6080,6 @@ type ListNotificationDestinationsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListNotificationDestinationsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListNotificationDestinationsRequest_SdkV2) { -} - -func (newState *ListNotificationDestinationsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListNotificationDestinationsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListNotificationDestinationsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6476,12 +6248,6 @@ type ListPrivateEndpointRulesRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListPrivateEndpointRulesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListPrivateEndpointRulesRequest_SdkV2) { -} - -func (newState *ListPrivateEndpointRulesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListPrivateEndpointRulesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListPrivateEndpointRulesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6595,12 +6361,6 @@ type ListTokenManagementRequest_SdkV2 struct { CreatedByUsername types.String `tfsdk:"-"` } -func (newState *ListTokenManagementRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListTokenManagementRequest_SdkV2) { -} - -func (newState *ListTokenManagementRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListTokenManagementRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListTokenManagementRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7897,12 +7657,6 @@ func (o *ReplaceIpAccessList_SdkV2) SetIpAddresses(ctx context.Context, v []type type ReplaceResponse_SdkV2 struct { } -func (newState *ReplaceResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ReplaceResponse_SdkV2) { -} - -func (newState *ReplaceResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState ReplaceResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ReplaceResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8142,12 +7896,6 @@ func (o RevokeTokenResponse_SdkV2) Type(ctx context.Context) attr.Type { type SetStatusResponse_SdkV2 struct { } -func (newState *SetStatusResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan SetStatusResponse_SdkV2) { -} - -func (newState *SetStatusResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState SetStatusResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in SetStatusResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9961,12 +9709,6 @@ func (o *UpdatePersonalComputeSettingRequest_SdkV2) SetSetting(ctx context.Conte type UpdateResponse_SdkV2 struct { } -func (newState *UpdateResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateResponse_SdkV2) { -} - -func (newState *UpdateResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdateResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/settings_tf/model.go b/internal/service/settings_tf/model.go index 14010b78d..c82316dbb 100755 --- a/internal/service/settings_tf/model.go +++ b/internal/service/settings_tf/model.go @@ -15,6 +15,7 @@ import ( "reflect" pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common" + "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/tfschema" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/types" @@ -31,6 +32,12 @@ func (newState *AibiDashboardEmbeddingAccessPolicy) SyncEffectiveFieldsDuringCre func (newState *AibiDashboardEmbeddingAccessPolicy) SyncEffectiveFieldsDuringRead(existingState AibiDashboardEmbeddingAccessPolicy) { } +func (c AibiDashboardEmbeddingAccessPolicy) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "access_policy_type")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AibiDashboardEmbeddingAccessPolicy. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -86,6 +93,13 @@ func (newState *AibiDashboardEmbeddingAccessPolicySetting) SyncEffectiveFieldsDu func (newState *AibiDashboardEmbeddingAccessPolicySetting) SyncEffectiveFieldsDuringRead(existingState AibiDashboardEmbeddingAccessPolicySetting) { } +func (c AibiDashboardEmbeddingAccessPolicySetting) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "aibi_dashboard_embedding_access_policy")...) + AibiDashboardEmbeddingAccessPolicy{}.ToSchema(cs, append(path, "aibi_dashboard_embedding_access_policy")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AibiDashboardEmbeddingAccessPolicySetting. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -161,6 +175,11 @@ func (newState *AibiDashboardEmbeddingApprovedDomains) SyncEffectiveFieldsDuring func (newState *AibiDashboardEmbeddingApprovedDomains) SyncEffectiveFieldsDuringRead(existingState AibiDashboardEmbeddingApprovedDomains) { } +func (c AibiDashboardEmbeddingApprovedDomains) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AibiDashboardEmbeddingApprovedDomains. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -246,6 +265,13 @@ func (newState *AibiDashboardEmbeddingApprovedDomainsSetting) SyncEffectiveField func (newState *AibiDashboardEmbeddingApprovedDomainsSetting) SyncEffectiveFieldsDuringRead(existingState AibiDashboardEmbeddingApprovedDomainsSetting) { } +func (c AibiDashboardEmbeddingApprovedDomainsSetting) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "aibi_dashboard_embedding_approved_domains")...) + AibiDashboardEmbeddingApprovedDomains{}.ToSchema(cs, append(path, "aibi_dashboard_embedding_approved_domains")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AibiDashboardEmbeddingApprovedDomainsSetting. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -335,6 +361,13 @@ func (newState *AutomaticClusterUpdateSetting) SyncEffectiveFieldsDuringCreateOr func (newState *AutomaticClusterUpdateSetting) SyncEffectiveFieldsDuringRead(existingState AutomaticClusterUpdateSetting) { } +func (c AutomaticClusterUpdateSetting) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "automatic_cluster_update_workspace")...) + ClusterAutoRestartMessage{}.ToSchema(cs, append(path, "automatic_cluster_update_workspace")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AutomaticClusterUpdateSetting. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -410,6 +443,11 @@ func (newState *BooleanMessage) SyncEffectiveFieldsDuringCreateOrUpdate(plan Boo func (newState *BooleanMessage) SyncEffectiveFieldsDuringRead(existingState BooleanMessage) { } +func (c BooleanMessage) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in BooleanMessage. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -464,6 +502,13 @@ func (newState *ClusterAutoRestartMessage) SyncEffectiveFieldsDuringCreateOrUpda func (newState *ClusterAutoRestartMessage) SyncEffectiveFieldsDuringRead(existingState ClusterAutoRestartMessage) { } +func (c ClusterAutoRestartMessage) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ClusterAutoRestartMessageEnablementDetails{}.ToSchema(cs, append(path, "enablement_details")...) + ClusterAutoRestartMessageMaintenanceWindow{}.ToSchema(cs, append(path, "maintenance_window")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterAutoRestartMessage. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -584,6 +629,11 @@ func (newState *ClusterAutoRestartMessageEnablementDetails) SyncEffectiveFieldsD func (newState *ClusterAutoRestartMessageEnablementDetails) SyncEffectiveFieldsDuringRead(existingState ClusterAutoRestartMessageEnablementDetails) { } +func (c ClusterAutoRestartMessageEnablementDetails) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterAutoRestartMessageEnablementDetails. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -629,6 +679,12 @@ func (newState *ClusterAutoRestartMessageMaintenanceWindow) SyncEffectiveFieldsD func (newState *ClusterAutoRestartMessageMaintenanceWindow) SyncEffectiveFieldsDuringRead(existingState ClusterAutoRestartMessageMaintenanceWindow) { } +func (c ClusterAutoRestartMessageMaintenanceWindow) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ClusterAutoRestartMessageMaintenanceWindowWeekDayBasedSchedule{}.ToSchema(cs, append(path, "week_day_based_schedule")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterAutoRestartMessageMaintenanceWindow. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -704,6 +760,12 @@ func (newState *ClusterAutoRestartMessageMaintenanceWindowWeekDayBasedSchedule) func (newState *ClusterAutoRestartMessageMaintenanceWindowWeekDayBasedSchedule) SyncEffectiveFieldsDuringRead(existingState ClusterAutoRestartMessageMaintenanceWindowWeekDayBasedSchedule) { } +func (c ClusterAutoRestartMessageMaintenanceWindowWeekDayBasedSchedule) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ClusterAutoRestartMessageMaintenanceWindowWindowStartTime{}.ToSchema(cs, append(path, "window_start_time")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterAutoRestartMessageMaintenanceWindowWeekDayBasedSchedule. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -781,6 +843,11 @@ func (newState *ClusterAutoRestartMessageMaintenanceWindowWindowStartTime) SyncE func (newState *ClusterAutoRestartMessageMaintenanceWindowWindowStartTime) SyncEffectiveFieldsDuringRead(existingState ClusterAutoRestartMessageMaintenanceWindowWindowStartTime) { } +func (c ClusterAutoRestartMessageMaintenanceWindowWindowStartTime) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ClusterAutoRestartMessageMaintenanceWindowWindowStartTime. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -828,6 +895,11 @@ func (newState *ComplianceSecurityProfile) SyncEffectiveFieldsDuringCreateOrUpda func (newState *ComplianceSecurityProfile) SyncEffectiveFieldsDuringRead(existingState ComplianceSecurityProfile) { } +func (c ComplianceSecurityProfile) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ComplianceSecurityProfile. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -916,6 +988,13 @@ func (newState *ComplianceSecurityProfileSetting) SyncEffectiveFieldsDuringCreat func (newState *ComplianceSecurityProfileSetting) SyncEffectiveFieldsDuringRead(existingState ComplianceSecurityProfileSetting) { } +func (c ComplianceSecurityProfileSetting) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "compliance_security_profile_workspace")...) + ComplianceSecurityProfile{}.ToSchema(cs, append(path, "compliance_security_profile_workspace")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ComplianceSecurityProfileSetting. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -999,6 +1078,16 @@ func (newState *Config) SyncEffectiveFieldsDuringCreateOrUpdate(plan Config) { func (newState *Config) SyncEffectiveFieldsDuringRead(existingState Config) { } +func (c Config) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + EmailConfig{}.ToSchema(cs, append(path, "email")...) + GenericWebhookConfig{}.ToSchema(cs, append(path, "generic_webhook")...) + MicrosoftTeamsConfig{}.ToSchema(cs, append(path, "microsoft_teams")...) + PagerdutyConfig{}.ToSchema(cs, append(path, "pagerduty")...) + SlackConfig{}.ToSchema(cs, append(path, "slack")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Config. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1204,6 +1293,13 @@ func (newState *CreateIpAccessList) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *CreateIpAccessList) SyncEffectiveFieldsDuringRead(existingState CreateIpAccessList) { } +func (c CreateIpAccessList) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "label")...) + cs.SetRequired(append(path, "list_type")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateIpAccessList. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1281,6 +1377,12 @@ func (newState *CreateIpAccessListResponse) SyncEffectiveFieldsDuringCreateOrUpd func (newState *CreateIpAccessListResponse) SyncEffectiveFieldsDuringRead(existingState CreateIpAccessListResponse) { } +func (c CreateIpAccessListResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + IpAccessListInfo{}.ToSchema(cs, append(path, "ip_access_list")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateIpAccessListResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1360,6 +1462,13 @@ func (newState *CreateNetworkConnectivityConfigRequest) SyncEffectiveFieldsDurin func (newState *CreateNetworkConnectivityConfigRequest) SyncEffectiveFieldsDuringRead(existingState CreateNetworkConnectivityConfigRequest) { } +func (c CreateNetworkConnectivityConfigRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "region")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateNetworkConnectivityConfigRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1407,6 +1516,12 @@ func (newState *CreateNotificationDestinationRequest) SyncEffectiveFieldsDuringC func (newState *CreateNotificationDestinationRequest) SyncEffectiveFieldsDuringRead(existingState CreateNotificationDestinationRequest) { } +func (c CreateNotificationDestinationRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Config{}.ToSchema(cs, append(path, "config")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateNotificationDestinationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1486,6 +1601,12 @@ func (newState *CreateOboTokenRequest) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *CreateOboTokenRequest) SyncEffectiveFieldsDuringRead(existingState CreateOboTokenRequest) { } +func (c CreateOboTokenRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "application_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateOboTokenRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1534,6 +1655,12 @@ func (newState *CreateOboTokenResponse) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *CreateOboTokenResponse) SyncEffectiveFieldsDuringRead(existingState CreateOboTokenResponse) { } +func (c CreateOboTokenResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + TokenInfo{}.ToSchema(cs, append(path, "token_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateOboTokenResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1614,6 +1741,14 @@ func (newState *CreatePrivateEndpointRuleRequest) SyncEffectiveFieldsDuringCreat func (newState *CreatePrivateEndpointRuleRequest) SyncEffectiveFieldsDuringRead(existingState CreatePrivateEndpointRuleRequest) { } +func (c CreatePrivateEndpointRuleRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "group_id")...) + cs.SetRequired(append(path, "network_connectivity_config_id")...) + cs.SetRequired(append(path, "resource_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreatePrivateEndpointRuleRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1664,6 +1799,11 @@ func (newState *CreateTokenRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *CreateTokenRequest) SyncEffectiveFieldsDuringRead(existingState CreateTokenRequest) { } +func (c CreateTokenRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateTokenRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1710,6 +1850,12 @@ func (newState *CreateTokenResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *CreateTokenResponse) SyncEffectiveFieldsDuringRead(existingState CreateTokenResponse) { } +func (c CreateTokenResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PublicTokenInfo{}.ToSchema(cs, append(path, "token_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateTokenResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1788,6 +1934,11 @@ func (newState *CspEnablementAccount) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *CspEnablementAccount) SyncEffectiveFieldsDuringRead(existingState CspEnablementAccount) { } +func (c CspEnablementAccount) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CspEnablementAccount. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1876,6 +2027,13 @@ func (newState *CspEnablementAccountSetting) SyncEffectiveFieldsDuringCreateOrUp func (newState *CspEnablementAccountSetting) SyncEffectiveFieldsDuringRead(existingState CspEnablementAccountSetting) { } +func (c CspEnablementAccountSetting) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "csp_enablement_account")...) + CspEnablementAccount{}.ToSchema(cs, append(path, "csp_enablement_account")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CspEnablementAccountSetting. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1975,6 +2133,13 @@ func (newState *DefaultNamespaceSetting) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *DefaultNamespaceSetting) SyncEffectiveFieldsDuringRead(existingState DefaultNamespaceSetting) { } +func (c DefaultNamespaceSetting) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "namespace")...) + StringMessage{}.ToSchema(cs, append(path, "namespace")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DefaultNamespaceSetting. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2046,12 +2211,6 @@ type DeleteAccountIpAccessListRequest struct { IpAccessListId types.String `tfsdk:"-"` } -func (newState *DeleteAccountIpAccessListRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAccountIpAccessListRequest) { -} - -func (newState *DeleteAccountIpAccessListRequest) SyncEffectiveFieldsDuringRead(existingState DeleteAccountIpAccessListRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAccountIpAccessListRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2095,12 +2254,6 @@ type DeleteAibiDashboardEmbeddingAccessPolicySettingRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *DeleteAibiDashboardEmbeddingAccessPolicySettingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAibiDashboardEmbeddingAccessPolicySettingRequest) { -} - -func (newState *DeleteAibiDashboardEmbeddingAccessPolicySettingRequest) SyncEffectiveFieldsDuringRead(existingState DeleteAibiDashboardEmbeddingAccessPolicySettingRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAibiDashboardEmbeddingAccessPolicySettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2150,6 +2303,12 @@ func (newState *DeleteAibiDashboardEmbeddingAccessPolicySettingResponse) SyncEff func (newState *DeleteAibiDashboardEmbeddingAccessPolicySettingResponse) SyncEffectiveFieldsDuringRead(existingState DeleteAibiDashboardEmbeddingAccessPolicySettingResponse) { } +func (c DeleteAibiDashboardEmbeddingAccessPolicySettingResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "etag")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAibiDashboardEmbeddingAccessPolicySettingResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2193,12 +2352,6 @@ type DeleteAibiDashboardEmbeddingApprovedDomainsSettingRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *DeleteAibiDashboardEmbeddingApprovedDomainsSettingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAibiDashboardEmbeddingApprovedDomainsSettingRequest) { -} - -func (newState *DeleteAibiDashboardEmbeddingApprovedDomainsSettingRequest) SyncEffectiveFieldsDuringRead(existingState DeleteAibiDashboardEmbeddingApprovedDomainsSettingRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAibiDashboardEmbeddingApprovedDomainsSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2248,6 +2401,12 @@ func (newState *DeleteAibiDashboardEmbeddingApprovedDomainsSettingResponse) Sync func (newState *DeleteAibiDashboardEmbeddingApprovedDomainsSettingResponse) SyncEffectiveFieldsDuringRead(existingState DeleteAibiDashboardEmbeddingApprovedDomainsSettingResponse) { } +func (c DeleteAibiDashboardEmbeddingApprovedDomainsSettingResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "etag")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAibiDashboardEmbeddingApprovedDomainsSettingResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2291,12 +2450,6 @@ type DeleteDefaultNamespaceSettingRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *DeleteDefaultNamespaceSettingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteDefaultNamespaceSettingRequest) { -} - -func (newState *DeleteDefaultNamespaceSettingRequest) SyncEffectiveFieldsDuringRead(existingState DeleteDefaultNamespaceSettingRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDefaultNamespaceSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2346,6 +2499,12 @@ func (newState *DeleteDefaultNamespaceSettingResponse) SyncEffectiveFieldsDuring func (newState *DeleteDefaultNamespaceSettingResponse) SyncEffectiveFieldsDuringRead(existingState DeleteDefaultNamespaceSettingResponse) { } +func (c DeleteDefaultNamespaceSettingResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "etag")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDefaultNamespaceSettingResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2389,12 +2548,6 @@ type DeleteDisableLegacyAccessRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *DeleteDisableLegacyAccessRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteDisableLegacyAccessRequest) { -} - -func (newState *DeleteDisableLegacyAccessRequest) SyncEffectiveFieldsDuringRead(existingState DeleteDisableLegacyAccessRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDisableLegacyAccessRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2444,6 +2597,12 @@ func (newState *DeleteDisableLegacyAccessResponse) SyncEffectiveFieldsDuringCrea func (newState *DeleteDisableLegacyAccessResponse) SyncEffectiveFieldsDuringRead(existingState DeleteDisableLegacyAccessResponse) { } +func (c DeleteDisableLegacyAccessResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "etag")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDisableLegacyAccessResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2487,12 +2646,6 @@ type DeleteDisableLegacyDbfsRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *DeleteDisableLegacyDbfsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteDisableLegacyDbfsRequest) { -} - -func (newState *DeleteDisableLegacyDbfsRequest) SyncEffectiveFieldsDuringRead(existingState DeleteDisableLegacyDbfsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDisableLegacyDbfsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2542,6 +2695,12 @@ func (newState *DeleteDisableLegacyDbfsResponse) SyncEffectiveFieldsDuringCreate func (newState *DeleteDisableLegacyDbfsResponse) SyncEffectiveFieldsDuringRead(existingState DeleteDisableLegacyDbfsResponse) { } +func (c DeleteDisableLegacyDbfsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "etag")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDisableLegacyDbfsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2585,12 +2744,6 @@ type DeleteDisableLegacyFeaturesRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *DeleteDisableLegacyFeaturesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteDisableLegacyFeaturesRequest) { -} - -func (newState *DeleteDisableLegacyFeaturesRequest) SyncEffectiveFieldsDuringRead(existingState DeleteDisableLegacyFeaturesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDisableLegacyFeaturesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2640,6 +2793,12 @@ func (newState *DeleteDisableLegacyFeaturesResponse) SyncEffectiveFieldsDuringCr func (newState *DeleteDisableLegacyFeaturesResponse) SyncEffectiveFieldsDuringRead(existingState DeleteDisableLegacyFeaturesResponse) { } +func (c DeleteDisableLegacyFeaturesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "etag")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDisableLegacyFeaturesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2677,12 +2836,6 @@ type DeleteIpAccessListRequest struct { IpAccessListId types.String `tfsdk:"-"` } -func (newState *DeleteIpAccessListRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteIpAccessListRequest) { -} - -func (newState *DeleteIpAccessListRequest) SyncEffectiveFieldsDuringRead(existingState DeleteIpAccessListRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteIpAccessListRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2720,12 +2873,6 @@ type DeleteNetworkConnectivityConfigurationRequest struct { NetworkConnectivityConfigId types.String `tfsdk:"-"` } -func (newState *DeleteNetworkConnectivityConfigurationRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteNetworkConnectivityConfigurationRequest) { -} - -func (newState *DeleteNetworkConnectivityConfigurationRequest) SyncEffectiveFieldsDuringRead(existingState DeleteNetworkConnectivityConfigurationRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteNetworkConnectivityConfigurationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2760,12 +2907,6 @@ func (o DeleteNetworkConnectivityConfigurationRequest) Type(ctx context.Context) type DeleteNetworkConnectivityConfigurationResponse struct { } -func (newState *DeleteNetworkConnectivityConfigurationResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteNetworkConnectivityConfigurationResponse) { -} - -func (newState *DeleteNetworkConnectivityConfigurationResponse) SyncEffectiveFieldsDuringRead(existingState DeleteNetworkConnectivityConfigurationResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteNetworkConnectivityConfigurationResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2798,12 +2939,6 @@ type DeleteNotificationDestinationRequest struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteNotificationDestinationRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteNotificationDestinationRequest) { -} - -func (newState *DeleteNotificationDestinationRequest) SyncEffectiveFieldsDuringRead(existingState DeleteNotificationDestinationRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteNotificationDestinationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2847,12 +2982,6 @@ type DeletePersonalComputeSettingRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *DeletePersonalComputeSettingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeletePersonalComputeSettingRequest) { -} - -func (newState *DeletePersonalComputeSettingRequest) SyncEffectiveFieldsDuringRead(existingState DeletePersonalComputeSettingRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeletePersonalComputeSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2902,6 +3031,12 @@ func (newState *DeletePersonalComputeSettingResponse) SyncEffectiveFieldsDuringC func (newState *DeletePersonalComputeSettingResponse) SyncEffectiveFieldsDuringRead(existingState DeletePersonalComputeSettingResponse) { } +func (c DeletePersonalComputeSettingResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "etag")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeletePersonalComputeSettingResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2941,12 +3076,6 @@ type DeletePrivateEndpointRuleRequest struct { PrivateEndpointRuleId types.String `tfsdk:"-"` } -func (newState *DeletePrivateEndpointRuleRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeletePrivateEndpointRuleRequest) { -} - -func (newState *DeletePrivateEndpointRuleRequest) SyncEffectiveFieldsDuringRead(existingState DeletePrivateEndpointRuleRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeletePrivateEndpointRuleRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2983,12 +3112,6 @@ func (o DeletePrivateEndpointRuleRequest) Type(ctx context.Context) attr.Type { type DeleteResponse struct { } -func (newState *DeleteResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse) { -} - -func (newState *DeleteResponse) SyncEffectiveFieldsDuringRead(existingState DeleteResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3028,12 +3151,6 @@ type DeleteRestrictWorkspaceAdminsSettingRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *DeleteRestrictWorkspaceAdminsSettingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteRestrictWorkspaceAdminsSettingRequest) { -} - -func (newState *DeleteRestrictWorkspaceAdminsSettingRequest) SyncEffectiveFieldsDuringRead(existingState DeleteRestrictWorkspaceAdminsSettingRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteRestrictWorkspaceAdminsSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3083,6 +3200,12 @@ func (newState *DeleteRestrictWorkspaceAdminsSettingResponse) SyncEffectiveField func (newState *DeleteRestrictWorkspaceAdminsSettingResponse) SyncEffectiveFieldsDuringRead(existingState DeleteRestrictWorkspaceAdminsSettingResponse) { } +func (c DeleteRestrictWorkspaceAdminsSettingResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "etag")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteRestrictWorkspaceAdminsSettingResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3120,12 +3243,6 @@ type DeleteTokenManagementRequest struct { TokenId types.String `tfsdk:"-"` } -func (newState *DeleteTokenManagementRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteTokenManagementRequest) { -} - -func (newState *DeleteTokenManagementRequest) SyncEffectiveFieldsDuringRead(existingState DeleteTokenManagementRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteTokenManagementRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3181,6 +3298,13 @@ func (newState *DisableLegacyAccess) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *DisableLegacyAccess) SyncEffectiveFieldsDuringRead(existingState DisableLegacyAccess) { } +func (c DisableLegacyAccess) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "disable_legacy_access")...) + BooleanMessage{}.ToSchema(cs, append(path, "disable_legacy_access")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DisableLegacyAccess. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3270,6 +3394,13 @@ func (newState *DisableLegacyDbfs) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *DisableLegacyDbfs) SyncEffectiveFieldsDuringRead(existingState DisableLegacyDbfs) { } +func (c DisableLegacyDbfs) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "disable_legacy_dbfs")...) + BooleanMessage{}.ToSchema(cs, append(path, "disable_legacy_dbfs")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DisableLegacyDbfs. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3359,6 +3490,13 @@ func (newState *DisableLegacyFeatures) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *DisableLegacyFeatures) SyncEffectiveFieldsDuringRead(existingState DisableLegacyFeatures) { } +func (c DisableLegacyFeatures) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "disable_legacy_features")...) + BooleanMessage{}.ToSchema(cs, append(path, "disable_legacy_features")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DisableLegacyFeatures. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3439,6 +3577,12 @@ func (newState *EgressNetworkPolicy) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *EgressNetworkPolicy) SyncEffectiveFieldsDuringRead(existingState EgressNetworkPolicy) { } +func (c EgressNetworkPolicy) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + EgressNetworkPolicyInternetAccessPolicy{}.ToSchema(cs, append(path, "internet_access")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EgressNetworkPolicy. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3522,6 +3666,14 @@ func (newState *EgressNetworkPolicyInternetAccessPolicy) SyncEffectiveFieldsDuri func (newState *EgressNetworkPolicyInternetAccessPolicy) SyncEffectiveFieldsDuringRead(existingState EgressNetworkPolicyInternetAccessPolicy) { } +func (c EgressNetworkPolicyInternetAccessPolicy) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + EgressNetworkPolicyInternetAccessPolicyInternetDestination{}.ToSchema(cs, append(path, "allowed_internet_destinations")...) + EgressNetworkPolicyInternetAccessPolicyStorageDestination{}.ToSchema(cs, append(path, "allowed_storage_destinations")...) + EgressNetworkPolicyInternetAccessPolicyLogOnlyMode{}.ToSchema(cs, append(path, "log_only_mode")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EgressNetworkPolicyInternetAccessPolicy. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3668,6 +3820,11 @@ func (newState *EgressNetworkPolicyInternetAccessPolicyInternetDestination) Sync func (newState *EgressNetworkPolicyInternetAccessPolicyInternetDestination) SyncEffectiveFieldsDuringRead(existingState EgressNetworkPolicyInternetAccessPolicyInternetDestination) { } +func (c EgressNetworkPolicyInternetAccessPolicyInternetDestination) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EgressNetworkPolicyInternetAccessPolicyInternetDestination. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3715,6 +3872,11 @@ func (newState *EgressNetworkPolicyInternetAccessPolicyLogOnlyMode) SyncEffectiv func (newState *EgressNetworkPolicyInternetAccessPolicyLogOnlyMode) SyncEffectiveFieldsDuringRead(existingState EgressNetworkPolicyInternetAccessPolicyLogOnlyMode) { } +func (c EgressNetworkPolicyInternetAccessPolicyLogOnlyMode) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EgressNetworkPolicyInternetAccessPolicyLogOnlyMode. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3803,6 +3965,11 @@ func (newState *EgressNetworkPolicyInternetAccessPolicyStorageDestination) SyncE func (newState *EgressNetworkPolicyInternetAccessPolicyStorageDestination) SyncEffectiveFieldsDuringRead(existingState EgressNetworkPolicyInternetAccessPolicyStorageDestination) { } +func (c EgressNetworkPolicyInternetAccessPolicyStorageDestination) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EgressNetworkPolicyInternetAccessPolicyStorageDestination. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3889,6 +4056,11 @@ func (newState *EmailConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan EmailC func (newState *EmailConfig) SyncEffectiveFieldsDuringRead(existingState EmailConfig) { } +func (c EmailConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EmailConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3959,6 +4131,11 @@ func (newState *Empty) SyncEffectiveFieldsDuringCreateOrUpdate(plan Empty) { func (newState *Empty) SyncEffectiveFieldsDuringRead(existingState Empty) { } +func (c Empty) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Empty. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3997,6 +4174,11 @@ func (newState *EnhancedSecurityMonitoring) SyncEffectiveFieldsDuringCreateOrUpd func (newState *EnhancedSecurityMonitoring) SyncEffectiveFieldsDuringRead(existingState EnhancedSecurityMonitoring) { } +func (c EnhancedSecurityMonitoring) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EnhancedSecurityMonitoring. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4053,6 +4235,13 @@ func (newState *EnhancedSecurityMonitoringSetting) SyncEffectiveFieldsDuringCrea func (newState *EnhancedSecurityMonitoringSetting) SyncEffectiveFieldsDuringRead(existingState EnhancedSecurityMonitoringSetting) { } +func (c EnhancedSecurityMonitoringSetting) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "enhanced_security_monitoring_workspace")...) + EnhancedSecurityMonitoring{}.ToSchema(cs, append(path, "enhanced_security_monitoring_workspace")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EnhancedSecurityMonitoringSetting. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4129,6 +4318,11 @@ func (newState *EsmEnablementAccount) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *EsmEnablementAccount) SyncEffectiveFieldsDuringRead(existingState EsmEnablementAccount) { } +func (c EsmEnablementAccount) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EsmEnablementAccount. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4185,6 +4379,13 @@ func (newState *EsmEnablementAccountSetting) SyncEffectiveFieldsDuringCreateOrUp func (newState *EsmEnablementAccountSetting) SyncEffectiveFieldsDuringRead(existingState EsmEnablementAccountSetting) { } +func (c EsmEnablementAccountSetting) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "esm_enablement_account")...) + EsmEnablementAccount{}.ToSchema(cs, append(path, "esm_enablement_account")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EsmEnablementAccountSetting. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4271,6 +4472,11 @@ func (newState *ExchangeToken) SyncEffectiveFieldsDuringCreateOrUpdate(plan Exch func (newState *ExchangeToken) SyncEffectiveFieldsDuringRead(existingState ExchangeToken) { } +func (c ExchangeToken) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExchangeToken. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4356,6 +4562,15 @@ func (newState *ExchangeTokenRequest) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *ExchangeTokenRequest) SyncEffectiveFieldsDuringRead(existingState ExchangeTokenRequest) { } +func (c ExchangeTokenRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "partitionId")...) + PartitionId{}.ToSchema(cs, append(path, "partitionId")...) + cs.SetRequired(append(path, "scopes")...) + cs.SetRequired(append(path, "tokenType")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExchangeTokenRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4490,6 +4705,12 @@ func (newState *ExchangeTokenResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *ExchangeTokenResponse) SyncEffectiveFieldsDuringRead(existingState ExchangeTokenResponse) { } +func (c ExchangeTokenResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ExchangeToken{}.ToSchema(cs, append(path, "values")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExchangeTokenResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4563,6 +4784,12 @@ func (newState *FetchIpAccessListResponse) SyncEffectiveFieldsDuringCreateOrUpda func (newState *FetchIpAccessListResponse) SyncEffectiveFieldsDuringRead(existingState FetchIpAccessListResponse) { } +func (c FetchIpAccessListResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + IpAccessListInfo{}.ToSchema(cs, append(path, "ip_access_list")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in FetchIpAccessListResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4645,6 +4872,11 @@ func (newState *GenericWebhookConfig) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *GenericWebhookConfig) SyncEffectiveFieldsDuringRead(existingState GenericWebhookConfig) { } +func (c GenericWebhookConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GenericWebhookConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4692,12 +4924,6 @@ type GetAccountIpAccessListRequest struct { IpAccessListId types.String `tfsdk:"-"` } -func (newState *GetAccountIpAccessListRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAccountIpAccessListRequest) { -} - -func (newState *GetAccountIpAccessListRequest) SyncEffectiveFieldsDuringRead(existingState GetAccountIpAccessListRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAccountIpAccessListRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4741,12 +4967,6 @@ type GetAibiDashboardEmbeddingAccessPolicySettingRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *GetAibiDashboardEmbeddingAccessPolicySettingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAibiDashboardEmbeddingAccessPolicySettingRequest) { -} - -func (newState *GetAibiDashboardEmbeddingAccessPolicySettingRequest) SyncEffectiveFieldsDuringRead(existingState GetAibiDashboardEmbeddingAccessPolicySettingRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAibiDashboardEmbeddingAccessPolicySettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4790,12 +5010,6 @@ type GetAibiDashboardEmbeddingApprovedDomainsSettingRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *GetAibiDashboardEmbeddingApprovedDomainsSettingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAibiDashboardEmbeddingApprovedDomainsSettingRequest) { -} - -func (newState *GetAibiDashboardEmbeddingApprovedDomainsSettingRequest) SyncEffectiveFieldsDuringRead(existingState GetAibiDashboardEmbeddingApprovedDomainsSettingRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAibiDashboardEmbeddingApprovedDomainsSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4839,12 +5053,6 @@ type GetAutomaticClusterUpdateSettingRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *GetAutomaticClusterUpdateSettingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAutomaticClusterUpdateSettingRequest) { -} - -func (newState *GetAutomaticClusterUpdateSettingRequest) SyncEffectiveFieldsDuringRead(existingState GetAutomaticClusterUpdateSettingRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAutomaticClusterUpdateSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4888,12 +5096,6 @@ type GetComplianceSecurityProfileSettingRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *GetComplianceSecurityProfileSettingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetComplianceSecurityProfileSettingRequest) { -} - -func (newState *GetComplianceSecurityProfileSettingRequest) SyncEffectiveFieldsDuringRead(existingState GetComplianceSecurityProfileSettingRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetComplianceSecurityProfileSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4937,12 +5139,6 @@ type GetCspEnablementAccountSettingRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *GetCspEnablementAccountSettingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetCspEnablementAccountSettingRequest) { -} - -func (newState *GetCspEnablementAccountSettingRequest) SyncEffectiveFieldsDuringRead(existingState GetCspEnablementAccountSettingRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetCspEnablementAccountSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4986,12 +5182,6 @@ type GetDefaultNamespaceSettingRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *GetDefaultNamespaceSettingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDefaultNamespaceSettingRequest) { -} - -func (newState *GetDefaultNamespaceSettingRequest) SyncEffectiveFieldsDuringRead(existingState GetDefaultNamespaceSettingRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDefaultNamespaceSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5035,12 +5225,6 @@ type GetDisableLegacyAccessRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *GetDisableLegacyAccessRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDisableLegacyAccessRequest) { -} - -func (newState *GetDisableLegacyAccessRequest) SyncEffectiveFieldsDuringRead(existingState GetDisableLegacyAccessRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDisableLegacyAccessRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5084,12 +5268,6 @@ type GetDisableLegacyDbfsRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *GetDisableLegacyDbfsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDisableLegacyDbfsRequest) { -} - -func (newState *GetDisableLegacyDbfsRequest) SyncEffectiveFieldsDuringRead(existingState GetDisableLegacyDbfsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDisableLegacyDbfsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5133,12 +5311,6 @@ type GetDisableLegacyFeaturesRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *GetDisableLegacyFeaturesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDisableLegacyFeaturesRequest) { -} - -func (newState *GetDisableLegacyFeaturesRequest) SyncEffectiveFieldsDuringRead(existingState GetDisableLegacyFeaturesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDisableLegacyFeaturesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5182,12 +5354,6 @@ type GetEnhancedSecurityMonitoringSettingRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *GetEnhancedSecurityMonitoringSettingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetEnhancedSecurityMonitoringSettingRequest) { -} - -func (newState *GetEnhancedSecurityMonitoringSettingRequest) SyncEffectiveFieldsDuringRead(existingState GetEnhancedSecurityMonitoringSettingRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetEnhancedSecurityMonitoringSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5231,12 +5397,6 @@ type GetEsmEnablementAccountSettingRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *GetEsmEnablementAccountSettingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetEsmEnablementAccountSettingRequest) { -} - -func (newState *GetEsmEnablementAccountSettingRequest) SyncEffectiveFieldsDuringRead(existingState GetEsmEnablementAccountSettingRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetEsmEnablementAccountSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5274,12 +5434,6 @@ type GetIpAccessListRequest struct { IpAccessListId types.String `tfsdk:"-"` } -func (newState *GetIpAccessListRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetIpAccessListRequest) { -} - -func (newState *GetIpAccessListRequest) SyncEffectiveFieldsDuringRead(existingState GetIpAccessListRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetIpAccessListRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5322,6 +5476,12 @@ func (newState *GetIpAccessListResponse) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *GetIpAccessListResponse) SyncEffectiveFieldsDuringRead(existingState GetIpAccessListResponse) { } +func (c GetIpAccessListResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + IpAccessListInfo{}.ToSchema(cs, append(path, "ip_access_list")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetIpAccessListResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5394,6 +5554,12 @@ func (newState *GetIpAccessListsResponse) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *GetIpAccessListsResponse) SyncEffectiveFieldsDuringRead(existingState GetIpAccessListsResponse) { } +func (c GetIpAccessListsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + IpAccessListInfo{}.ToSchema(cs, append(path, "ip_access_lists")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetIpAccessListsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5461,12 +5627,6 @@ type GetNetworkConnectivityConfigurationRequest struct { NetworkConnectivityConfigId types.String `tfsdk:"-"` } -func (newState *GetNetworkConnectivityConfigurationRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetNetworkConnectivityConfigurationRequest) { -} - -func (newState *GetNetworkConnectivityConfigurationRequest) SyncEffectiveFieldsDuringRead(existingState GetNetworkConnectivityConfigurationRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetNetworkConnectivityConfigurationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5503,12 +5663,6 @@ type GetNotificationDestinationRequest struct { Id types.String `tfsdk:"-"` } -func (newState *GetNotificationDestinationRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetNotificationDestinationRequest) { -} - -func (newState *GetNotificationDestinationRequest) SyncEffectiveFieldsDuringRead(existingState GetNotificationDestinationRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetNotificationDestinationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5552,12 +5706,6 @@ type GetPersonalComputeSettingRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *GetPersonalComputeSettingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPersonalComputeSettingRequest) { -} - -func (newState *GetPersonalComputeSettingRequest) SyncEffectiveFieldsDuringRead(existingState GetPersonalComputeSettingRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPersonalComputeSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5597,12 +5745,6 @@ type GetPrivateEndpointRuleRequest struct { PrivateEndpointRuleId types.String `tfsdk:"-"` } -func (newState *GetPrivateEndpointRuleRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetPrivateEndpointRuleRequest) { -} - -func (newState *GetPrivateEndpointRuleRequest) SyncEffectiveFieldsDuringRead(existingState GetPrivateEndpointRuleRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetPrivateEndpointRuleRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5648,12 +5790,6 @@ type GetRestrictWorkspaceAdminsSettingRequest struct { Etag types.String `tfsdk:"-"` } -func (newState *GetRestrictWorkspaceAdminsSettingRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRestrictWorkspaceAdminsSettingRequest) { -} - -func (newState *GetRestrictWorkspaceAdminsSettingRequest) SyncEffectiveFieldsDuringRead(existingState GetRestrictWorkspaceAdminsSettingRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRestrictWorkspaceAdminsSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5690,12 +5826,6 @@ type GetStatusRequest struct { Keys types.String `tfsdk:"-"` } -func (newState *GetStatusRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetStatusRequest) { -} - -func (newState *GetStatusRequest) SyncEffectiveFieldsDuringRead(existingState GetStatusRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetStatusRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5733,12 +5863,6 @@ type GetTokenManagementRequest struct { TokenId types.String `tfsdk:"-"` } -func (newState *GetTokenManagementRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetTokenManagementRequest) { -} - -func (newState *GetTokenManagementRequest) SyncEffectiveFieldsDuringRead(existingState GetTokenManagementRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetTokenManagementRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5781,6 +5905,12 @@ func (newState *GetTokenPermissionLevelsResponse) SyncEffectiveFieldsDuringCreat func (newState *GetTokenPermissionLevelsResponse) SyncEffectiveFieldsDuringRead(existingState GetTokenPermissionLevelsResponse) { } +func (c GetTokenPermissionLevelsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + TokenPermissionsDescription{}.ToSchema(cs, append(path, "permission_levels")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetTokenPermissionLevelsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5853,6 +5983,12 @@ func (newState *GetTokenResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan G func (newState *GetTokenResponse) SyncEffectiveFieldsDuringRead(existingState GetTokenResponse) { } +func (c GetTokenResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + TokenInfo{}.ToSchema(cs, append(path, "token_info")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetTokenResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5949,6 +6085,11 @@ func (newState *IpAccessListInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan I func (newState *IpAccessListInfo) SyncEffectiveFieldsDuringRead(existingState IpAccessListInfo) { } +func (c IpAccessListInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in IpAccessListInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6039,6 +6180,12 @@ func (newState *ListIpAccessListResponse) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *ListIpAccessListResponse) SyncEffectiveFieldsDuringRead(existingState ListIpAccessListResponse) { } +func (c ListIpAccessListResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + IpAccessListInfo{}.ToSchema(cs, append(path, "ip_access_lists")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListIpAccessListResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6113,6 +6260,12 @@ func (newState *ListNccAzurePrivateEndpointRulesResponse) SyncEffectiveFieldsDur func (newState *ListNccAzurePrivateEndpointRulesResponse) SyncEffectiveFieldsDuringRead(existingState ListNccAzurePrivateEndpointRulesResponse) { } +func (c ListNccAzurePrivateEndpointRulesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + NccAzurePrivateEndpointRule{}.ToSchema(cs, append(path, "items")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListNccAzurePrivateEndpointRulesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6182,12 +6335,6 @@ type ListNetworkConnectivityConfigurationsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListNetworkConnectivityConfigurationsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListNetworkConnectivityConfigurationsRequest) { -} - -func (newState *ListNetworkConnectivityConfigurationsRequest) SyncEffectiveFieldsDuringRead(existingState ListNetworkConnectivityConfigurationsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListNetworkConnectivityConfigurationsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6232,6 +6379,12 @@ func (newState *ListNetworkConnectivityConfigurationsResponse) SyncEffectiveFiel func (newState *ListNetworkConnectivityConfigurationsResponse) SyncEffectiveFieldsDuringRead(existingState ListNetworkConnectivityConfigurationsResponse) { } +func (c ListNetworkConnectivityConfigurationsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + NetworkConnectivityConfiguration{}.ToSchema(cs, append(path, "items")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListNetworkConnectivityConfigurationsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6302,12 +6455,6 @@ type ListNotificationDestinationsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListNotificationDestinationsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListNotificationDestinationsRequest) { -} - -func (newState *ListNotificationDestinationsRequest) SyncEffectiveFieldsDuringRead(existingState ListNotificationDestinationsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListNotificationDestinationsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6354,6 +6501,12 @@ func (newState *ListNotificationDestinationsResponse) SyncEffectiveFieldsDuringC func (newState *ListNotificationDestinationsResponse) SyncEffectiveFieldsDuringRead(existingState ListNotificationDestinationsResponse) { } +func (c ListNotificationDestinationsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ListNotificationDestinationsResult{}.ToSchema(cs, append(path, "results")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListNotificationDestinationsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6433,6 +6586,11 @@ func (newState *ListNotificationDestinationsResult) SyncEffectiveFieldsDuringCre func (newState *ListNotificationDestinationsResult) SyncEffectiveFieldsDuringRead(existingState ListNotificationDestinationsResult) { } +func (c ListNotificationDestinationsResult) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListNotificationDestinationsResult. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6476,12 +6634,6 @@ type ListPrivateEndpointRulesRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListPrivateEndpointRulesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListPrivateEndpointRulesRequest) { -} - -func (newState *ListPrivateEndpointRulesRequest) SyncEffectiveFieldsDuringRead(existingState ListPrivateEndpointRulesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListPrivateEndpointRulesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6526,6 +6678,12 @@ func (newState *ListPublicTokensResponse) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *ListPublicTokensResponse) SyncEffectiveFieldsDuringRead(existingState ListPublicTokensResponse) { } +func (c ListPublicTokensResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PublicTokenInfo{}.ToSchema(cs, append(path, "token_infos")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListPublicTokensResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6595,12 +6753,6 @@ type ListTokenManagementRequest struct { CreatedByUsername types.String `tfsdk:"-"` } -func (newState *ListTokenManagementRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListTokenManagementRequest) { -} - -func (newState *ListTokenManagementRequest) SyncEffectiveFieldsDuringRead(existingState ListTokenManagementRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListTokenManagementRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6646,6 +6798,12 @@ func (newState *ListTokensResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ListTokensResponse) SyncEffectiveFieldsDuringRead(existingState ListTokensResponse) { } +func (c ListTokensResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + TokenInfo{}.ToSchema(cs, append(path, "token_infos")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListTokensResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6720,6 +6878,11 @@ func (newState *MicrosoftTeamsConfig) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *MicrosoftTeamsConfig) SyncEffectiveFieldsDuringRead(existingState MicrosoftTeamsConfig) { } +func (c MicrosoftTeamsConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MicrosoftTeamsConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6767,6 +6930,11 @@ func (newState *NccAwsStableIpRule) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *NccAwsStableIpRule) SyncEffectiveFieldsDuringRead(existingState NccAwsStableIpRule) { } +func (c NccAwsStableIpRule) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in NccAwsStableIpRule. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6872,6 +7040,17 @@ func (newState *NccAzurePrivateEndpointRule) SyncEffectiveFieldsDuringCreateOrUp func (newState *NccAzurePrivateEndpointRule) SyncEffectiveFieldsDuringRead(existingState NccAzurePrivateEndpointRule) { } +func (c NccAzurePrivateEndpointRule) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "creation_time")...) + cs.SetComputed(append(path, "deactivated")...) + cs.SetComputed(append(path, "deactivated_at")...) + cs.SetComputed(append(path, "endpoint_name")...) + cs.SetComputed(append(path, "rule_id")...) + cs.SetComputed(append(path, "updated_time")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in NccAzurePrivateEndpointRule. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6940,6 +7119,11 @@ func (newState *NccAzureServiceEndpointRule) SyncEffectiveFieldsDuringCreateOrUp func (newState *NccAzureServiceEndpointRule) SyncEffectiveFieldsDuringRead(existingState NccAzureServiceEndpointRule) { } +func (c NccAzureServiceEndpointRule) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in NccAzureServiceEndpointRule. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7052,6 +7236,14 @@ func (newState *NccEgressConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan Nc func (newState *NccEgressConfig) SyncEffectiveFieldsDuringRead(existingState NccEgressConfig) { } +func (c NccEgressConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "default_rules")...) + NccEgressDefaultRules{}.ToSchema(cs, append(path, "default_rules")...) + NccEgressTargetRules{}.ToSchema(cs, append(path, "target_rules")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in NccEgressConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7164,6 +7356,13 @@ func (newState *NccEgressDefaultRules) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *NccEgressDefaultRules) SyncEffectiveFieldsDuringRead(existingState NccEgressDefaultRules) { } +func (c NccEgressDefaultRules) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + NccAwsStableIpRule{}.ToSchema(cs, append(path, "aws_stable_ip_rule")...) + NccAzureServiceEndpointRule{}.ToSchema(cs, append(path, "azure_service_endpoint_rule")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in NccEgressDefaultRules. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7268,6 +7467,12 @@ func (newState *NccEgressTargetRules) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *NccEgressTargetRules) SyncEffectiveFieldsDuringRead(existingState NccEgressTargetRules) { } +func (c NccEgressTargetRules) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + NccAzurePrivateEndpointRule{}.ToSchema(cs, append(path, "azure_private_endpoint_rules")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in NccEgressTargetRules. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7358,6 +7563,15 @@ func (newState *NetworkConnectivityConfiguration) SyncEffectiveFieldsDuringCreat func (newState *NetworkConnectivityConfiguration) SyncEffectiveFieldsDuringRead(existingState NetworkConnectivityConfiguration) { } +func (c NetworkConnectivityConfiguration) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "creation_time")...) + NccEgressConfig{}.ToSchema(cs, append(path, "egress_config")...) + cs.SetComputed(append(path, "network_connectivity_config_id")...) + cs.SetComputed(append(path, "updated_time")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in NetworkConnectivityConfiguration. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7451,6 +7665,12 @@ func (newState *NotificationDestination) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *NotificationDestination) SyncEffectiveFieldsDuringRead(existingState NotificationDestination) { } +func (c NotificationDestination) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Config{}.ToSchema(cs, append(path, "config")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in NotificationDestination. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7531,6 +7751,11 @@ func (newState *PagerdutyConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan Pa func (newState *PagerdutyConfig) SyncEffectiveFieldsDuringRead(existingState PagerdutyConfig) { } +func (c PagerdutyConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PagerdutyConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7576,6 +7801,11 @@ func (newState *PartitionId) SyncEffectiveFieldsDuringCreateOrUpdate(plan Partit func (newState *PartitionId) SyncEffectiveFieldsDuringRead(existingState PartitionId) { } +func (c PartitionId) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PartitionId. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7624,6 +7854,12 @@ func (newState *PersonalComputeMessage) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *PersonalComputeMessage) SyncEffectiveFieldsDuringRead(existingState PersonalComputeMessage) { } +func (c PersonalComputeMessage) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "value")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PersonalComputeMessage. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7680,6 +7916,13 @@ func (newState *PersonalComputeSetting) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *PersonalComputeSetting) SyncEffectiveFieldsDuringRead(existingState PersonalComputeSetting) { } +func (c PersonalComputeSetting) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "personal_compute")...) + PersonalComputeMessage{}.ToSchema(cs, append(path, "personal_compute")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PersonalComputeSetting. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7763,6 +8006,11 @@ func (newState *PublicTokenInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Pu func (newState *PublicTokenInfo) SyncEffectiveFieldsDuringRead(existingState PublicTokenInfo) { } +func (c PublicTokenInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PublicTokenInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7825,6 +8073,15 @@ func (newState *ReplaceIpAccessList) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *ReplaceIpAccessList) SyncEffectiveFieldsDuringRead(existingState ReplaceIpAccessList) { } +func (c ReplaceIpAccessList) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "enabled")...) + cs.SetRequired(append(path, "ip_access_list_id")...) + cs.SetRequired(append(path, "label")...) + cs.SetRequired(append(path, "list_type")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ReplaceIpAccessList. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7897,12 +8154,6 @@ func (o *ReplaceIpAccessList) SetIpAddresses(ctx context.Context, v []types.Stri type ReplaceResponse struct { } -func (newState *ReplaceResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ReplaceResponse) { -} - -func (newState *ReplaceResponse) SyncEffectiveFieldsDuringRead(existingState ReplaceResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ReplaceResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7940,6 +8191,12 @@ func (newState *RestrictWorkspaceAdminsMessage) SyncEffectiveFieldsDuringCreateO func (newState *RestrictWorkspaceAdminsMessage) SyncEffectiveFieldsDuringRead(existingState RestrictWorkspaceAdminsMessage) { } +func (c RestrictWorkspaceAdminsMessage) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "status")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RestrictWorkspaceAdminsMessage. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7996,6 +8253,13 @@ func (newState *RestrictWorkspaceAdminsSetting) SyncEffectiveFieldsDuringCreateO func (newState *RestrictWorkspaceAdminsSetting) SyncEffectiveFieldsDuringRead(existingState RestrictWorkspaceAdminsSetting) { } +func (c RestrictWorkspaceAdminsSetting) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "restrict_workspace_admins")...) + RestrictWorkspaceAdminsMessage{}.ToSchema(cs, append(path, "restrict_workspace_admins")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RestrictWorkspaceAdminsSetting. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8072,6 +8336,12 @@ func (newState *RevokeTokenRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *RevokeTokenRequest) SyncEffectiveFieldsDuringRead(existingState RevokeTokenRequest) { } +func (c RevokeTokenRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "token_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RevokeTokenRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8112,6 +8382,11 @@ func (newState *RevokeTokenResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *RevokeTokenResponse) SyncEffectiveFieldsDuringRead(existingState RevokeTokenResponse) { } +func (c RevokeTokenResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RevokeTokenResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8142,12 +8417,6 @@ func (o RevokeTokenResponse) Type(ctx context.Context) attr.Type { type SetStatusResponse struct { } -func (newState *SetStatusResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan SetStatusResponse) { -} - -func (newState *SetStatusResponse) SyncEffectiveFieldsDuringRead(existingState SetStatusResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in SetStatusResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8188,6 +8457,11 @@ func (newState *SlackConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan SlackC func (newState *SlackConfig) SyncEffectiveFieldsDuringRead(existingState SlackConfig) { } +func (c SlackConfig) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SlackConfig. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8232,6 +8506,11 @@ func (newState *StringMessage) SyncEffectiveFieldsDuringCreateOrUpdate(plan Stri func (newState *StringMessage) SyncEffectiveFieldsDuringRead(existingState StringMessage) { } +func (c StringMessage) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in StringMessage. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8280,6 +8559,11 @@ func (newState *TokenAccessControlRequest) SyncEffectiveFieldsDuringCreateOrUpda func (newState *TokenAccessControlRequest) SyncEffectiveFieldsDuringRead(existingState TokenAccessControlRequest) { } +func (c TokenAccessControlRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TokenAccessControlRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8336,6 +8620,12 @@ func (newState *TokenAccessControlResponse) SyncEffectiveFieldsDuringCreateOrUpd func (newState *TokenAccessControlResponse) SyncEffectiveFieldsDuringRead(existingState TokenAccessControlResponse) { } +func (c TokenAccessControlResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + TokenPermission{}.ToSchema(cs, append(path, "all_permissions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TokenAccessControlResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8434,6 +8724,11 @@ func (newState *TokenInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan TokenInf func (newState *TokenInfo) SyncEffectiveFieldsDuringRead(existingState TokenInfo) { } +func (c TokenInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TokenInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8495,6 +8790,11 @@ func (newState *TokenPermission) SyncEffectiveFieldsDuringCreateOrUpdate(plan To func (newState *TokenPermission) SyncEffectiveFieldsDuringRead(existingState TokenPermission) { } +func (c TokenPermission) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TokenPermission. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8574,6 +8874,12 @@ func (newState *TokenPermissions) SyncEffectiveFieldsDuringCreateOrUpdate(plan T func (newState *TokenPermissions) SyncEffectiveFieldsDuringRead(existingState TokenPermissions) { } +func (c TokenPermissions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + TokenAccessControlResponse{}.ToSchema(cs, append(path, "access_control_list")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TokenPermissions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8651,6 +8957,11 @@ func (newState *TokenPermissionsDescription) SyncEffectiveFieldsDuringCreateOrUp func (newState *TokenPermissionsDescription) SyncEffectiveFieldsDuringRead(existingState TokenPermissionsDescription) { } +func (c TokenPermissionsDescription) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TokenPermissionsDescription. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8694,6 +9005,12 @@ func (newState *TokenPermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *TokenPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState TokenPermissionsRequest) { } +func (c TokenPermissionsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + TokenAccessControlRequest{}.ToSchema(cs, append(path, "access_control_list")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TokenPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8775,6 +9092,15 @@ func (newState *UpdateAibiDashboardEmbeddingAccessPolicySettingRequest) SyncEffe func (newState *UpdateAibiDashboardEmbeddingAccessPolicySettingRequest) SyncEffectiveFieldsDuringRead(existingState UpdateAibiDashboardEmbeddingAccessPolicySettingRequest) { } +func (c UpdateAibiDashboardEmbeddingAccessPolicySettingRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "allow_missing")...) + cs.SetRequired(append(path, "field_mask")...) + cs.SetRequired(append(path, "setting")...) + AibiDashboardEmbeddingAccessPolicySetting{}.ToSchema(cs, append(path, "setting")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateAibiDashboardEmbeddingAccessPolicySettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8860,6 +9186,15 @@ func (newState *UpdateAibiDashboardEmbeddingApprovedDomainsSettingRequest) SyncE func (newState *UpdateAibiDashboardEmbeddingApprovedDomainsSettingRequest) SyncEffectiveFieldsDuringRead(existingState UpdateAibiDashboardEmbeddingApprovedDomainsSettingRequest) { } +func (c UpdateAibiDashboardEmbeddingApprovedDomainsSettingRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "allow_missing")...) + cs.SetRequired(append(path, "field_mask")...) + cs.SetRequired(append(path, "setting")...) + AibiDashboardEmbeddingApprovedDomainsSetting{}.ToSchema(cs, append(path, "setting")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateAibiDashboardEmbeddingApprovedDomainsSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8945,6 +9280,15 @@ func (newState *UpdateAutomaticClusterUpdateSettingRequest) SyncEffectiveFieldsD func (newState *UpdateAutomaticClusterUpdateSettingRequest) SyncEffectiveFieldsDuringRead(existingState UpdateAutomaticClusterUpdateSettingRequest) { } +func (c UpdateAutomaticClusterUpdateSettingRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "allow_missing")...) + cs.SetRequired(append(path, "field_mask")...) + cs.SetRequired(append(path, "setting")...) + AutomaticClusterUpdateSetting{}.ToSchema(cs, append(path, "setting")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateAutomaticClusterUpdateSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9030,6 +9374,15 @@ func (newState *UpdateComplianceSecurityProfileSettingRequest) SyncEffectiveFiel func (newState *UpdateComplianceSecurityProfileSettingRequest) SyncEffectiveFieldsDuringRead(existingState UpdateComplianceSecurityProfileSettingRequest) { } +func (c UpdateComplianceSecurityProfileSettingRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "allow_missing")...) + cs.SetRequired(append(path, "field_mask")...) + cs.SetRequired(append(path, "setting")...) + ComplianceSecurityProfileSetting{}.ToSchema(cs, append(path, "setting")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateComplianceSecurityProfileSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9115,6 +9468,15 @@ func (newState *UpdateCspEnablementAccountSettingRequest) SyncEffectiveFieldsDur func (newState *UpdateCspEnablementAccountSettingRequest) SyncEffectiveFieldsDuringRead(existingState UpdateCspEnablementAccountSettingRequest) { } +func (c UpdateCspEnablementAccountSettingRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "allow_missing")...) + cs.SetRequired(append(path, "field_mask")...) + cs.SetRequired(append(path, "setting")...) + CspEnablementAccountSetting{}.ToSchema(cs, append(path, "setting")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateCspEnablementAccountSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9208,6 +9570,15 @@ func (newState *UpdateDefaultNamespaceSettingRequest) SyncEffectiveFieldsDuringC func (newState *UpdateDefaultNamespaceSettingRequest) SyncEffectiveFieldsDuringRead(existingState UpdateDefaultNamespaceSettingRequest) { } +func (c UpdateDefaultNamespaceSettingRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "allow_missing")...) + cs.SetRequired(append(path, "field_mask")...) + cs.SetRequired(append(path, "setting")...) + DefaultNamespaceSetting{}.ToSchema(cs, append(path, "setting")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateDefaultNamespaceSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9293,6 +9664,15 @@ func (newState *UpdateDisableLegacyAccessRequest) SyncEffectiveFieldsDuringCreat func (newState *UpdateDisableLegacyAccessRequest) SyncEffectiveFieldsDuringRead(existingState UpdateDisableLegacyAccessRequest) { } +func (c UpdateDisableLegacyAccessRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "allow_missing")...) + cs.SetRequired(append(path, "field_mask")...) + cs.SetRequired(append(path, "setting")...) + DisableLegacyAccess{}.ToSchema(cs, append(path, "setting")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateDisableLegacyAccessRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9378,6 +9758,15 @@ func (newState *UpdateDisableLegacyDbfsRequest) SyncEffectiveFieldsDuringCreateO func (newState *UpdateDisableLegacyDbfsRequest) SyncEffectiveFieldsDuringRead(existingState UpdateDisableLegacyDbfsRequest) { } +func (c UpdateDisableLegacyDbfsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "allow_missing")...) + cs.SetRequired(append(path, "field_mask")...) + cs.SetRequired(append(path, "setting")...) + DisableLegacyDbfs{}.ToSchema(cs, append(path, "setting")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateDisableLegacyDbfsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9463,6 +9852,15 @@ func (newState *UpdateDisableLegacyFeaturesRequest) SyncEffectiveFieldsDuringCre func (newState *UpdateDisableLegacyFeaturesRequest) SyncEffectiveFieldsDuringRead(existingState UpdateDisableLegacyFeaturesRequest) { } +func (c UpdateDisableLegacyFeaturesRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "allow_missing")...) + cs.SetRequired(append(path, "field_mask")...) + cs.SetRequired(append(path, "setting")...) + DisableLegacyFeatures{}.ToSchema(cs, append(path, "setting")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateDisableLegacyFeaturesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9548,6 +9946,15 @@ func (newState *UpdateEnhancedSecurityMonitoringSettingRequest) SyncEffectiveFie func (newState *UpdateEnhancedSecurityMonitoringSettingRequest) SyncEffectiveFieldsDuringRead(existingState UpdateEnhancedSecurityMonitoringSettingRequest) { } +func (c UpdateEnhancedSecurityMonitoringSettingRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "allow_missing")...) + cs.SetRequired(append(path, "field_mask")...) + cs.SetRequired(append(path, "setting")...) + EnhancedSecurityMonitoringSetting{}.ToSchema(cs, append(path, "setting")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateEnhancedSecurityMonitoringSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9633,6 +10040,15 @@ func (newState *UpdateEsmEnablementAccountSettingRequest) SyncEffectiveFieldsDur func (newState *UpdateEsmEnablementAccountSettingRequest) SyncEffectiveFieldsDuringRead(existingState UpdateEsmEnablementAccountSettingRequest) { } +func (c UpdateEsmEnablementAccountSettingRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "allow_missing")...) + cs.SetRequired(append(path, "field_mask")...) + cs.SetRequired(append(path, "setting")...) + EsmEnablementAccountSetting{}.ToSchema(cs, append(path, "setting")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateEsmEnablementAccountSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9723,6 +10139,12 @@ func (newState *UpdateIpAccessList) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *UpdateIpAccessList) SyncEffectiveFieldsDuringRead(existingState UpdateIpAccessList) { } +func (c UpdateIpAccessList) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "ip_access_list_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateIpAccessList. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9808,6 +10230,13 @@ func (newState *UpdateNotificationDestinationRequest) SyncEffectiveFieldsDuringC func (newState *UpdateNotificationDestinationRequest) SyncEffectiveFieldsDuringRead(existingState UpdateNotificationDestinationRequest) { } +func (c UpdateNotificationDestinationRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Config{}.ToSchema(cs, append(path, "config")...) + cs.SetRequired(append(path, "id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateNotificationDestinationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9893,6 +10322,15 @@ func (newState *UpdatePersonalComputeSettingRequest) SyncEffectiveFieldsDuringCr func (newState *UpdatePersonalComputeSettingRequest) SyncEffectiveFieldsDuringRead(existingState UpdatePersonalComputeSettingRequest) { } +func (c UpdatePersonalComputeSettingRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "allow_missing")...) + cs.SetRequired(append(path, "field_mask")...) + cs.SetRequired(append(path, "setting")...) + PersonalComputeSetting{}.ToSchema(cs, append(path, "setting")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdatePersonalComputeSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9961,12 +10399,6 @@ func (o *UpdatePersonalComputeSettingRequest) SetSetting(ctx context.Context, v type UpdateResponse struct { } -func (newState *UpdateResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateResponse) { -} - -func (newState *UpdateResponse) SyncEffectiveFieldsDuringRead(existingState UpdateResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10014,6 +10446,15 @@ func (newState *UpdateRestrictWorkspaceAdminsSettingRequest) SyncEffectiveFields func (newState *UpdateRestrictWorkspaceAdminsSettingRequest) SyncEffectiveFieldsDuringRead(existingState UpdateRestrictWorkspaceAdminsSettingRequest) { } +func (c UpdateRestrictWorkspaceAdminsSettingRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "allow_missing")...) + cs.SetRequired(append(path, "field_mask")...) + cs.SetRequired(append(path, "setting")...) + RestrictWorkspaceAdminsSetting{}.ToSchema(cs, append(path, "setting")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateRestrictWorkspaceAdminsSettingRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/sharing_tf/legacy_model.go b/internal/service/sharing_tf/legacy_model.go index 6bbf36a8e..dc958e483 100755 --- a/internal/service/sharing_tf/legacy_model.go +++ b/internal/service/sharing_tf/legacy_model.go @@ -270,12 +270,6 @@ type DeleteProviderRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteProviderRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteProviderRequest_SdkV2) { -} - -func (newState *DeleteProviderRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteProviderRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteProviderRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -313,12 +307,6 @@ type DeleteRecipientRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteRecipientRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteRecipientRequest_SdkV2) { -} - -func (newState *DeleteRecipientRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteRecipientRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteRecipientRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -353,12 +341,6 @@ func (o DeleteRecipientRequest_SdkV2) Type(ctx context.Context) attr.Type { type DeleteResponse_SdkV2 struct { } -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse_SdkV2) { -} - -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -392,12 +374,6 @@ type DeleteShareRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteShareRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteShareRequest_SdkV2) { -} - -func (newState *DeleteShareRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteShareRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteShareRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -435,12 +411,6 @@ type GetActivationUrlInfoRequest_SdkV2 struct { ActivationUrl types.String `tfsdk:"-"` } -func (newState *GetActivationUrlInfoRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetActivationUrlInfoRequest_SdkV2) { -} - -func (newState *GetActivationUrlInfoRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetActivationUrlInfoRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetActivationUrlInfoRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -514,12 +484,6 @@ type GetProviderRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *GetProviderRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetProviderRequest_SdkV2) { -} - -func (newState *GetProviderRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetProviderRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetProviderRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -557,12 +521,6 @@ type GetRecipientRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *GetRecipientRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRecipientRequest_SdkV2) { -} - -func (newState *GetRecipientRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetRecipientRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRecipientRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -680,12 +638,6 @@ type GetShareRequest_SdkV2 struct { Name types.String `tfsdk:"-"` } -func (newState *GetShareRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetShareRequest_SdkV2) { -} - -func (newState *GetShareRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetShareRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetShareRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -888,12 +840,6 @@ type ListProvidersRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListProvidersRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListProvidersRequest_SdkV2) { -} - -func (newState *ListProvidersRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListProvidersRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListProvidersRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1026,12 +972,6 @@ type ListRecipientsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListRecipientsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListRecipientsRequest_SdkV2) { -} - -func (newState *ListRecipientsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListRecipientsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListRecipientsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1163,12 +1103,6 @@ type ListSharesRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListSharesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListSharesRequest_SdkV2) { -} - -func (newState *ListSharesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListSharesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListSharesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2063,12 +1997,6 @@ type RetrieveTokenRequest_SdkV2 struct { ActivationUrl types.String `tfsdk:"-"` } -func (newState *RetrieveTokenRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan RetrieveTokenRequest_SdkV2) { -} - -func (newState *RetrieveTokenRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState RetrieveTokenRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in RetrieveTokenRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2403,12 +2331,6 @@ type SharePermissionsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *SharePermissionsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan SharePermissionsRequest_SdkV2) { -} - -func (newState *SharePermissionsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState SharePermissionsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in SharePermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2776,12 +2698,6 @@ func (o *SharedDataObjectUpdate_SdkV2) SetDataObject(ctx context.Context, v Shar type UpdatePermissionsResponse_SdkV2 struct { } -func (newState *UpdatePermissionsResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdatePermissionsResponse_SdkV2) { -} - -func (newState *UpdatePermissionsResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdatePermissionsResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdatePermissionsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2999,12 +2915,6 @@ func (o *UpdateRecipient_SdkV2) SetPropertiesKvpairs(ctx context.Context, v Secu type UpdateResponse_SdkV2 struct { } -func (newState *UpdateResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateResponse_SdkV2) { -} - -func (newState *UpdateResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdateResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/sharing_tf/model.go b/internal/service/sharing_tf/model.go index d1918325e..b51e976ff 100755 --- a/internal/service/sharing_tf/model.go +++ b/internal/service/sharing_tf/model.go @@ -15,6 +15,7 @@ import ( "reflect" pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common" + "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/tfschema" "github.com/databricks/terraform-provider-databricks/internal/service/catalog_tf" "github.com/hashicorp/terraform-plugin-framework/attr" @@ -40,6 +41,13 @@ func (newState *CreateProvider) SyncEffectiveFieldsDuringCreateOrUpdate(plan Cre func (newState *CreateProvider) SyncEffectiveFieldsDuringRead(existingState CreateProvider) { } +func (c CreateProvider) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "authentication_type")...) + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateProvider. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -108,6 +116,15 @@ func (newState *CreateRecipient) SyncEffectiveFieldsDuringCreateOrUpdate(plan Cr func (newState *CreateRecipient) SyncEffectiveFieldsDuringRead(existingState CreateRecipient) { } +func (c CreateRecipient) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "authentication_type")...) + IpAccessList{}.ToSchema(cs, append(path, "ip_access_list")...) + cs.SetRequired(append(path, "name")...) + SecurablePropertiesKvPairs{}.ToSchema(cs, append(path, "properties_kvpairs")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateRecipient. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -229,6 +246,12 @@ func (newState *CreateShare) SyncEffectiveFieldsDuringCreateOrUpdate(plan Create func (newState *CreateShare) SyncEffectiveFieldsDuringRead(existingState CreateShare) { } +func (c CreateShare) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateShare. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -270,12 +293,6 @@ type DeleteProviderRequest struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteProviderRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteProviderRequest) { -} - -func (newState *DeleteProviderRequest) SyncEffectiveFieldsDuringRead(existingState DeleteProviderRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteProviderRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -313,12 +330,6 @@ type DeleteRecipientRequest struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteRecipientRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteRecipientRequest) { -} - -func (newState *DeleteRecipientRequest) SyncEffectiveFieldsDuringRead(existingState DeleteRecipientRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteRecipientRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -353,12 +364,6 @@ func (o DeleteRecipientRequest) Type(ctx context.Context) attr.Type { type DeleteResponse struct { } -func (newState *DeleteResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse) { -} - -func (newState *DeleteResponse) SyncEffectiveFieldsDuringRead(existingState DeleteResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -392,12 +397,6 @@ type DeleteShareRequest struct { Name types.String `tfsdk:"-"` } -func (newState *DeleteShareRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteShareRequest) { -} - -func (newState *DeleteShareRequest) SyncEffectiveFieldsDuringRead(existingState DeleteShareRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteShareRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -435,12 +434,6 @@ type GetActivationUrlInfoRequest struct { ActivationUrl types.String `tfsdk:"-"` } -func (newState *GetActivationUrlInfoRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetActivationUrlInfoRequest) { -} - -func (newState *GetActivationUrlInfoRequest) SyncEffectiveFieldsDuringRead(existingState GetActivationUrlInfoRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetActivationUrlInfoRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -481,6 +474,11 @@ func (newState *GetActivationUrlInfoResponse) SyncEffectiveFieldsDuringCreateOrU func (newState *GetActivationUrlInfoResponse) SyncEffectiveFieldsDuringRead(existingState GetActivationUrlInfoResponse) { } +func (c GetActivationUrlInfoResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetActivationUrlInfoResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -514,12 +512,6 @@ type GetProviderRequest struct { Name types.String `tfsdk:"-"` } -func (newState *GetProviderRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetProviderRequest) { -} - -func (newState *GetProviderRequest) SyncEffectiveFieldsDuringRead(existingState GetProviderRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetProviderRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -557,12 +549,6 @@ type GetRecipientRequest struct { Name types.String `tfsdk:"-"` } -func (newState *GetRecipientRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRecipientRequest) { -} - -func (newState *GetRecipientRequest) SyncEffectiveFieldsDuringRead(existingState GetRecipientRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRecipientRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -609,6 +595,12 @@ func (newState *GetRecipientSharePermissionsResponse) SyncEffectiveFieldsDuringC func (newState *GetRecipientSharePermissionsResponse) SyncEffectiveFieldsDuringRead(existingState GetRecipientSharePermissionsResponse) { } +func (c GetRecipientSharePermissionsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ShareToPrivilegeAssignment{}.ToSchema(cs, append(path, "permissions_out")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRecipientSharePermissionsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -680,12 +672,6 @@ type GetShareRequest struct { Name types.String `tfsdk:"-"` } -func (newState *GetShareRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetShareRequest) { -} - -func (newState *GetShareRequest) SyncEffectiveFieldsDuringRead(existingState GetShareRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetShareRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -730,6 +716,11 @@ func (newState *IpAccessList) SyncEffectiveFieldsDuringCreateOrUpdate(plan IpAcc func (newState *IpAccessList) SyncEffectiveFieldsDuringRead(existingState IpAccessList) { } +func (c IpAccessList) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in IpAccessList. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -806,6 +797,12 @@ func (newState *ListProviderSharesResponse) SyncEffectiveFieldsDuringCreateOrUpd func (newState *ListProviderSharesResponse) SyncEffectiveFieldsDuringRead(existingState ListProviderSharesResponse) { } +func (c ListProviderSharesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ProviderShare{}.ToSchema(cs, append(path, "shares")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListProviderSharesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -888,12 +885,6 @@ type ListProvidersRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListProvidersRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListProvidersRequest) { -} - -func (newState *ListProvidersRequest) SyncEffectiveFieldsDuringRead(existingState ListProvidersRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListProvidersRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -944,6 +935,12 @@ func (newState *ListProvidersResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *ListProvidersResponse) SyncEffectiveFieldsDuringRead(existingState ListProvidersResponse) { } +func (c ListProvidersResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ProviderInfo{}.ToSchema(cs, append(path, "providers")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListProvidersResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1026,12 +1023,6 @@ type ListRecipientsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListRecipientsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListRecipientsRequest) { -} - -func (newState *ListRecipientsRequest) SyncEffectiveFieldsDuringRead(existingState ListRecipientsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListRecipientsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1082,6 +1073,12 @@ func (newState *ListRecipientsResponse) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *ListRecipientsResponse) SyncEffectiveFieldsDuringRead(existingState ListRecipientsResponse) { } +func (c ListRecipientsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RecipientInfo{}.ToSchema(cs, append(path, "recipients")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListRecipientsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1163,12 +1160,6 @@ type ListSharesRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListSharesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListSharesRequest) { -} - -func (newState *ListSharesRequest) SyncEffectiveFieldsDuringRead(existingState ListSharesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListSharesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1219,6 +1210,12 @@ func (newState *ListSharesResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ListSharesResponse) SyncEffectiveFieldsDuringRead(existingState ListSharesResponse) { } +func (c ListSharesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ShareInfo{}.ToSchema(cs, append(path, "shares")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListSharesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1293,6 +1290,12 @@ func (newState *Partition) SyncEffectiveFieldsDuringCreateOrUpdate(plan Partitio func (newState *Partition) SyncEffectiveFieldsDuringRead(existingState Partition) { } +func (c Partition) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PartitionValue{}.ToSchema(cs, append(path, "value")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Partition. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1365,6 +1368,12 @@ func (newState *PartitionSpecificationPartition) SyncEffectiveFieldsDuringCreate func (newState *PartitionSpecificationPartition) SyncEffectiveFieldsDuringRead(existingState PartitionSpecificationPartition) { } +func (c PartitionSpecificationPartition) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PartitionValue{}.ToSchema(cs, append(path, "value")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PartitionSpecificationPartition. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1447,6 +1456,11 @@ func (newState *PartitionValue) SyncEffectiveFieldsDuringCreateOrUpdate(plan Par func (newState *PartitionValue) SyncEffectiveFieldsDuringRead(existingState PartitionValue) { } +func (c PartitionValue) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PartitionValue. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1497,6 +1511,11 @@ func (newState *PrivilegeAssignment) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *PrivilegeAssignment) SyncEffectiveFieldsDuringRead(existingState PrivilegeAssignment) { } +func (c PrivilegeAssignment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PrivilegeAssignment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1604,6 +1623,12 @@ func (newState *ProviderInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Provi func (newState *ProviderInfo) SyncEffectiveFieldsDuringRead(existingState ProviderInfo) { } +func (c ProviderInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RecipientProfile{}.ToSchema(cs, append(path, "recipient_profile")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ProviderInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1702,6 +1727,11 @@ func (newState *ProviderShare) SyncEffectiveFieldsDuringCreateOrUpdate(plan Prov func (newState *ProviderShare) SyncEffectiveFieldsDuringRead(existingState ProviderShare) { } +func (c ProviderShare) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ProviderShare. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1787,6 +1817,14 @@ func (newState *RecipientInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Reci func (newState *RecipientInfo) SyncEffectiveFieldsDuringRead(existingState RecipientInfo) { } +func (c RecipientInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + IpAccessList{}.ToSchema(cs, append(path, "ip_access_list")...) + SecurablePropertiesKvPairs{}.ToSchema(cs, append(path, "properties_kvpairs")...) + RecipientTokenInfo{}.ToSchema(cs, append(path, "tokens")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RecipientInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1955,6 +1993,11 @@ func (newState *RecipientProfile) SyncEffectiveFieldsDuringCreateOrUpdate(plan R func (newState *RecipientProfile) SyncEffectiveFieldsDuringRead(existingState RecipientProfile) { } +func (c RecipientProfile) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RecipientProfile. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2014,6 +2057,11 @@ func (newState *RecipientTokenInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *RecipientTokenInfo) SyncEffectiveFieldsDuringRead(existingState RecipientTokenInfo) { } +func (c RecipientTokenInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RecipientTokenInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2063,12 +2111,6 @@ type RetrieveTokenRequest struct { ActivationUrl types.String `tfsdk:"-"` } -func (newState *RetrieveTokenRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan RetrieveTokenRequest) { -} - -func (newState *RetrieveTokenRequest) SyncEffectiveFieldsDuringRead(existingState RetrieveTokenRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in RetrieveTokenRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2117,6 +2159,11 @@ func (newState *RetrieveTokenResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *RetrieveTokenResponse) SyncEffectiveFieldsDuringRead(existingState RetrieveTokenResponse) { } +func (c RetrieveTokenResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RetrieveTokenResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2170,6 +2217,13 @@ func (newState *RotateRecipientToken) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *RotateRecipientToken) SyncEffectiveFieldsDuringRead(existingState RotateRecipientToken) { } +func (c RotateRecipientToken) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "existing_token_expire_in_seconds")...) + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RotateRecipientToken. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2216,6 +2270,12 @@ func (newState *SecurablePropertiesKvPairs) SyncEffectiveFieldsDuringCreateOrUpd func (newState *SecurablePropertiesKvPairs) SyncEffectiveFieldsDuringRead(existingState SecurablePropertiesKvPairs) { } +func (c SecurablePropertiesKvPairs) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "properties")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SecurablePropertiesKvPairs. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2306,6 +2366,17 @@ func (newState *ShareInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan ShareInf func (newState *ShareInfo) SyncEffectiveFieldsDuringRead(existingState ShareInfo) { } +func (c ShareInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "created_at")...) + cs.SetComputed(append(path, "created_by")...) + SharedDataObject{}.ToSchema(cs, append(path, "object")...) + cs.SetComputed(append(path, "owner")...) + cs.SetComputed(append(path, "updated_at")...) + cs.SetComputed(append(path, "updated_by")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ShareInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2403,12 +2474,6 @@ type SharePermissionsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *SharePermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan SharePermissionsRequest) { -} - -func (newState *SharePermissionsRequest) SyncEffectiveFieldsDuringRead(existingState SharePermissionsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in SharePermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2457,6 +2522,12 @@ func (newState *ShareToPrivilegeAssignment) SyncEffectiveFieldsDuringCreateOrUpd func (newState *ShareToPrivilegeAssignment) SyncEffectiveFieldsDuringRead(existingState ShareToPrivilegeAssignment) { } +func (c ShareToPrivilegeAssignment) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + PrivilegeAssignment{}.ToSchema(cs, append(path, "privilege_assignments")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ShareToPrivilegeAssignment. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2604,6 +2675,20 @@ func (newState *SharedDataObject) SyncEffectiveFieldsDuringRead(existingState Sh } } +func (c SharedDataObject) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetComputed(append(path, "added_at")...) + cs.SetComputed(append(path, "added_by")...) + cs.SetComputed(append(path, "effective_cdf_enabled")...) + cs.SetComputed(append(path, "effective_history_data_sharing_status")...) + cs.SetRequired(append(path, "name")...) + Partition{}.ToSchema(cs, append(path, "partition")...) + cs.SetComputed(append(path, "effective_shared_as")...) + cs.SetComputed(append(path, "effective_start_version")...) + cs.SetComputed(append(path, "status")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SharedDataObject. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2710,6 +2795,12 @@ func (newState *SharedDataObjectUpdate) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *SharedDataObjectUpdate) SyncEffectiveFieldsDuringRead(existingState SharedDataObjectUpdate) { } +func (c SharedDataObjectUpdate) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SharedDataObject{}.ToSchema(cs, append(path, "data_object")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SharedDataObjectUpdate. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2776,12 +2867,6 @@ func (o *SharedDataObjectUpdate) SetDataObject(ctx context.Context, v SharedData type UpdatePermissionsResponse struct { } -func (newState *UpdatePermissionsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdatePermissionsResponse) { -} - -func (newState *UpdatePermissionsResponse) SyncEffectiveFieldsDuringRead(existingState UpdatePermissionsResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdatePermissionsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2829,6 +2914,12 @@ func (newState *UpdateProvider) SyncEffectiveFieldsDuringCreateOrUpdate(plan Upd func (newState *UpdateProvider) SyncEffectiveFieldsDuringRead(existingState UpdateProvider) { } +func (c UpdateProvider) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateProvider. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2894,6 +2985,14 @@ func (newState *UpdateRecipient) SyncEffectiveFieldsDuringCreateOrUpdate(plan Up func (newState *UpdateRecipient) SyncEffectiveFieldsDuringRead(existingState UpdateRecipient) { } +func (c UpdateRecipient) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + IpAccessList{}.ToSchema(cs, append(path, "ip_access_list")...) + cs.SetRequired(append(path, "name")...) + SecurablePropertiesKvPairs{}.ToSchema(cs, append(path, "properties_kvpairs")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateRecipient. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2999,12 +3098,6 @@ func (o *UpdateRecipient) SetPropertiesKvpairs(ctx context.Context, v SecurableP type UpdateResponse struct { } -func (newState *UpdateResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateResponse) { -} - -func (newState *UpdateResponse) SyncEffectiveFieldsDuringRead(existingState UpdateResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3053,6 +3146,14 @@ func (newState *UpdateShare) SyncEffectiveFieldsDuringCreateOrUpdate(plan Update func (newState *UpdateShare) SyncEffectiveFieldsDuringRead(existingState UpdateShare) { } +func (c UpdateShare) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + cs.SetComputed(append(path, "owner")...) + SharedDataObjectUpdate{}.ToSchema(cs, append(path, "updates")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateShare. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3149,6 +3250,12 @@ func (newState *UpdateSharePermissions) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *UpdateSharePermissions) SyncEffectiveFieldsDuringRead(existingState UpdateSharePermissions) { } +func (c UpdateSharePermissions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateSharePermissions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/sql_tf/legacy_model.go b/internal/service/sql_tf/legacy_model.go index 38e1e401f..1903114c7 100755 --- a/internal/service/sql_tf/legacy_model.go +++ b/internal/service/sql_tf/legacy_model.go @@ -862,12 +862,6 @@ type CancelExecutionRequest_SdkV2 struct { StatementId types.String `tfsdk:"-"` } -func (newState *CancelExecutionRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CancelExecutionRequest_SdkV2) { -} - -func (newState *CancelExecutionRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState CancelExecutionRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelExecutionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -902,12 +896,6 @@ func (o CancelExecutionRequest_SdkV2) Type(ctx context.Context) attr.Type { type CancelExecutionResponse_SdkV2 struct { } -func (newState *CancelExecutionResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CancelExecutionResponse_SdkV2) { -} - -func (newState *CancelExecutionResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState CancelExecutionResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelExecutionResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1600,12 +1588,6 @@ type CreateQueryVisualizationsLegacyRequest_SdkV2 struct { Type_ types.String `tfsdk:"type" tf:""` } -func (newState *CreateQueryVisualizationsLegacyRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateQueryVisualizationsLegacyRequest_SdkV2) { -} - -func (newState *CreateQueryVisualizationsLegacyRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateQueryVisualizationsLegacyRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateQueryVisualizationsLegacyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2826,12 +2808,6 @@ type DeleteAlertsLegacyRequest_SdkV2 struct { AlertId types.String `tfsdk:"-"` } -func (newState *DeleteAlertsLegacyRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAlertsLegacyRequest_SdkV2) { -} - -func (newState *DeleteAlertsLegacyRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteAlertsLegacyRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAlertsLegacyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2868,12 +2844,6 @@ type DeleteDashboardRequest_SdkV2 struct { DashboardId types.String `tfsdk:"-"` } -func (newState *DeleteDashboardRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteDashboardRequest_SdkV2) { -} - -func (newState *DeleteDashboardRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteDashboardRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2911,12 +2881,6 @@ type DeleteDashboardWidgetRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteDashboardWidgetRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteDashboardWidgetRequest_SdkV2) { -} - -func (newState *DeleteDashboardWidgetRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteDashboardWidgetRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDashboardWidgetRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2953,12 +2917,6 @@ type DeleteQueriesLegacyRequest_SdkV2 struct { QueryId types.String `tfsdk:"-"` } -func (newState *DeleteQueriesLegacyRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteQueriesLegacyRequest_SdkV2) { -} - -func (newState *DeleteQueriesLegacyRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteQueriesLegacyRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteQueriesLegacyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2996,12 +2954,6 @@ type DeleteQueryVisualizationsLegacyRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteQueryVisualizationsLegacyRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteQueryVisualizationsLegacyRequest_SdkV2) { -} - -func (newState *DeleteQueryVisualizationsLegacyRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteQueryVisualizationsLegacyRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteQueryVisualizationsLegacyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3036,12 +2988,6 @@ func (o DeleteQueryVisualizationsLegacyRequest_SdkV2) Type(ctx context.Context) type DeleteResponse_SdkV2 struct { } -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse_SdkV2) { -} - -func (newState *DeleteResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3074,12 +3020,6 @@ type DeleteVisualizationRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteVisualizationRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteVisualizationRequest_SdkV2) { -} - -func (newState *DeleteVisualizationRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteVisualizationRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteVisualizationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3117,12 +3057,6 @@ type DeleteWarehouseRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteWarehouseRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteWarehouseRequest_SdkV2) { -} - -func (newState *DeleteWarehouseRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteWarehouseRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteWarehouseRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4502,12 +4436,6 @@ type GetAlertRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *GetAlertRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAlertRequest_SdkV2) { -} - -func (newState *GetAlertRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetAlertRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAlertRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4544,12 +4472,6 @@ type GetAlertsLegacyRequest_SdkV2 struct { AlertId types.String `tfsdk:"-"` } -func (newState *GetAlertsLegacyRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAlertsLegacyRequest_SdkV2) { -} - -func (newState *GetAlertsLegacyRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetAlertsLegacyRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAlertsLegacyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4586,12 +4508,6 @@ type GetDashboardRequest_SdkV2 struct { DashboardId types.String `tfsdk:"-"` } -func (newState *GetDashboardRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDashboardRequest_SdkV2) { -} - -func (newState *GetDashboardRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetDashboardRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4631,12 +4547,6 @@ type GetDbsqlPermissionRequest_SdkV2 struct { ObjectType types.String `tfsdk:"-"` } -func (newState *GetDbsqlPermissionRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDbsqlPermissionRequest_SdkV2) { -} - -func (newState *GetDbsqlPermissionRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetDbsqlPermissionRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDbsqlPermissionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4675,12 +4585,6 @@ type GetQueriesLegacyRequest_SdkV2 struct { QueryId types.String `tfsdk:"-"` } -func (newState *GetQueriesLegacyRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetQueriesLegacyRequest_SdkV2) { -} - -func (newState *GetQueriesLegacyRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetQueriesLegacyRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetQueriesLegacyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4717,12 +4621,6 @@ type GetQueryRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *GetQueryRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetQueryRequest_SdkV2) { -} - -func (newState *GetQueryRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetQueryRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetQueryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4762,12 +4660,6 @@ type GetResponse_SdkV2 struct { ObjectType types.String `tfsdk:"object_type" tf:"optional"` } -func (newState *GetResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetResponse_SdkV2) { -} - -func (newState *GetResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4840,12 +4732,6 @@ type GetStatementRequest_SdkV2 struct { StatementId types.String `tfsdk:"-"` } -func (newState *GetStatementRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetStatementRequest_SdkV2) { -} - -func (newState *GetStatementRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetStatementRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetStatementRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4885,12 +4771,6 @@ type GetStatementResultChunkNRequest_SdkV2 struct { StatementId types.String `tfsdk:"-"` } -func (newState *GetStatementResultChunkNRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetStatementResultChunkNRequest_SdkV2) { -} - -func (newState *GetStatementResultChunkNRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetStatementResultChunkNRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetStatementResultChunkNRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4930,12 +4810,6 @@ type GetWarehousePermissionLevelsRequest_SdkV2 struct { WarehouseId types.String `tfsdk:"-"` } -func (newState *GetWarehousePermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWarehousePermissionLevelsRequest_SdkV2) { -} - -func (newState *GetWarehousePermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetWarehousePermissionLevelsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWarehousePermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5045,12 +4919,6 @@ type GetWarehousePermissionsRequest_SdkV2 struct { WarehouseId types.String `tfsdk:"-"` } -func (newState *GetWarehousePermissionsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWarehousePermissionsRequest_SdkV2) { -} - -func (newState *GetWarehousePermissionsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetWarehousePermissionsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWarehousePermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5088,12 +4956,6 @@ type GetWarehouseRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *GetWarehouseRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWarehouseRequest_SdkV2) { -} - -func (newState *GetWarehouseRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetWarehouseRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWarehouseRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6239,12 +6101,6 @@ type ListAlertsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListAlertsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAlertsRequest_SdkV2) { -} - -func (newState *ListAlertsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListAlertsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAlertsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6502,12 +6358,6 @@ type ListDashboardsRequest_SdkV2 struct { Q types.String `tfsdk:"-"` } -func (newState *ListDashboardsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListDashboardsRequest_SdkV2) { -} - -func (newState *ListDashboardsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListDashboardsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListDashboardsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6570,12 +6420,6 @@ type ListQueriesLegacyRequest_SdkV2 struct { Q types.String `tfsdk:"-"` } -func (newState *ListQueriesLegacyRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListQueriesLegacyRequest_SdkV2) { -} - -func (newState *ListQueriesLegacyRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListQueriesLegacyRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListQueriesLegacyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6620,12 +6464,6 @@ type ListQueriesRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListQueriesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListQueriesRequest_SdkV2) { -} - -func (newState *ListQueriesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListQueriesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListQueriesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6756,12 +6594,6 @@ type ListQueryHistoryRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListQueryHistoryRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListQueryHistoryRequest_SdkV2) { -} - -func (newState *ListQueryHistoryRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListQueryHistoryRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListQueryHistoryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7078,12 +6910,6 @@ type ListResponse_SdkV2 struct { Results types.List `tfsdk:"results" tf:"optional"` } -func (newState *ListResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListResponse_SdkV2) { -} - -func (newState *ListResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7160,12 +6986,6 @@ type ListVisualizationsForQueryRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListVisualizationsForQueryRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListVisualizationsForQueryRequest_SdkV2) { -} - -func (newState *ListVisualizationsForQueryRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListVisualizationsForQueryRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListVisualizationsForQueryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7283,12 +7103,6 @@ type ListWarehousesRequest_SdkV2 struct { RunAsUserId types.Int64 `tfsdk:"-"` } -func (newState *ListWarehousesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListWarehousesRequest_SdkV2) { -} - -func (newState *ListWarehousesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListWarehousesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListWarehousesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9194,12 +9008,6 @@ type RestoreDashboardRequest_SdkV2 struct { DashboardId types.String `tfsdk:"-"` } -func (newState *RestoreDashboardRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan RestoreDashboardRequest_SdkV2) { -} - -func (newState *RestoreDashboardRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState RestoreDashboardRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in RestoreDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9236,12 +9044,6 @@ type RestoreQueriesLegacyRequest_SdkV2 struct { QueryId types.String `tfsdk:"-"` } -func (newState *RestoreQueriesLegacyRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan RestoreQueriesLegacyRequest_SdkV2) { -} - -func (newState *RestoreQueriesLegacyRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState RestoreQueriesLegacyRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in RestoreQueriesLegacyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9276,12 +9078,6 @@ func (o RestoreQueriesLegacyRequest_SdkV2) Type(ctx context.Context) attr.Type { type RestoreResponse_SdkV2 struct { } -func (newState *RestoreResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan RestoreResponse_SdkV2) { -} - -func (newState *RestoreResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState RestoreResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in RestoreResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9707,12 +9503,6 @@ type SetRequest_SdkV2 struct { ObjectType types.String `tfsdk:"-"` } -func (newState *SetRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan SetRequest_SdkV2) { -} - -func (newState *SetRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState SetRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in SetRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9786,12 +9576,6 @@ type SetResponse_SdkV2 struct { ObjectType types.String `tfsdk:"object_type" tf:"optional"` } -func (newState *SetResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan SetResponse_SdkV2) { -} - -func (newState *SetResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState SetResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in SetResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10155,12 +9939,6 @@ type StartRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *StartRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan StartRequest_SdkV2) { -} - -func (newState *StartRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState StartRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in StartRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10518,12 +10296,6 @@ type StopRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *StopRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan StopRequest_SdkV2) { -} - -func (newState *StopRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState StopRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in StopRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10852,12 +10624,6 @@ type TransferOwnershipRequest_SdkV2 struct { ObjectType types.String `tfsdk:"-"` } -func (newState *TransferOwnershipRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan TransferOwnershipRequest_SdkV2) { -} - -func (newState *TransferOwnershipRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState TransferOwnershipRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in TransferOwnershipRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10928,12 +10694,6 @@ type TrashAlertRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *TrashAlertRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan TrashAlertRequest_SdkV2) { -} - -func (newState *TrashAlertRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState TrashAlertRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in TrashAlertRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10970,12 +10730,6 @@ type TrashQueryRequest_SdkV2 struct { Id types.String `tfsdk:"-"` } -func (newState *TrashQueryRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan TrashQueryRequest_SdkV2) { -} - -func (newState *TrashQueryRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState TrashQueryRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in TrashQueryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11427,12 +11181,6 @@ func (o *UpdateQueryRequestQuery_SdkV2) SetTags(ctx context.Context, v []types.S type UpdateResponse_SdkV2 struct { } -func (newState *UpdateResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateResponse_SdkV2) { -} - -func (newState *UpdateResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState UpdateResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/sql_tf/model.go b/internal/service/sql_tf/model.go index e204a761c..6d4956d85 100755 --- a/internal/service/sql_tf/model.go +++ b/internal/service/sql_tf/model.go @@ -15,6 +15,7 @@ import ( "reflect" pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common" + "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/tfschema" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/types" @@ -36,6 +37,11 @@ func (newState *AccessControl) SyncEffectiveFieldsDuringCreateOrUpdate(plan Acce func (newState *AccessControl) SyncEffectiveFieldsDuringRead(existingState AccessControl) { } +func (c AccessControl) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AccessControl. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -123,6 +129,12 @@ func (newState *Alert) SyncEffectiveFieldsDuringCreateOrUpdate(plan Alert) { func (newState *Alert) SyncEffectiveFieldsDuringRead(existingState Alert) { } +func (c Alert) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AlertCondition{}.ToSchema(cs, append(path, "condition")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Alert. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -230,6 +242,13 @@ func (newState *AlertCondition) SyncEffectiveFieldsDuringCreateOrUpdate(plan Ale func (newState *AlertCondition) SyncEffectiveFieldsDuringRead(existingState AlertCondition) { } +func (c AlertCondition) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AlertConditionOperand{}.ToSchema(cs, append(path, "operand")...) + AlertConditionThreshold{}.ToSchema(cs, append(path, "threshold")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AlertCondition. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -336,6 +355,12 @@ func (newState *AlertConditionOperand) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *AlertConditionOperand) SyncEffectiveFieldsDuringRead(existingState AlertConditionOperand) { } +func (c AlertConditionOperand) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AlertOperandColumn{}.ToSchema(cs, append(path, "column")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AlertConditionOperand. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -407,6 +432,12 @@ func (newState *AlertConditionThreshold) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *AlertConditionThreshold) SyncEffectiveFieldsDuringRead(existingState AlertConditionThreshold) { } +func (c AlertConditionThreshold) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AlertOperandValue{}.ToSchema(cs, append(path, "value")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AlertConditionThreshold. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -478,6 +509,11 @@ func (newState *AlertOperandColumn) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *AlertOperandColumn) SyncEffectiveFieldsDuringRead(existingState AlertOperandColumn) { } +func (c AlertOperandColumn) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AlertOperandColumn. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -523,6 +559,11 @@ func (newState *AlertOperandValue) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *AlertOperandValue) SyncEffectiveFieldsDuringRead(existingState AlertOperandValue) { } +func (c AlertOperandValue) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AlertOperandValue. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -592,6 +633,14 @@ func (newState *AlertOptions) SyncEffectiveFieldsDuringCreateOrUpdate(plan Alert func (newState *AlertOptions) SyncEffectiveFieldsDuringRead(existingState AlertOptions) { } +func (c AlertOptions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "column")...) + cs.SetRequired(append(path, "op")...) + cs.SetRequired(append(path, "value")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AlertOptions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -683,6 +732,12 @@ func (newState *AlertQuery) SyncEffectiveFieldsDuringCreateOrUpdate(plan AlertQu func (newState *AlertQuery) SyncEffectiveFieldsDuringRead(existingState AlertQuery) { } +func (c AlertQuery) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + QueryOptions{}.ToSchema(cs, append(path, "options")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AlertQuery. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -818,6 +873,11 @@ func (newState *BaseChunkInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Base func (newState *BaseChunkInfo) SyncEffectiveFieldsDuringRead(existingState BaseChunkInfo) { } +func (c BaseChunkInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in BaseChunkInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -862,12 +922,6 @@ type CancelExecutionRequest struct { StatementId types.String `tfsdk:"-"` } -func (newState *CancelExecutionRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CancelExecutionRequest) { -} - -func (newState *CancelExecutionRequest) SyncEffectiveFieldsDuringRead(existingState CancelExecutionRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelExecutionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -902,12 +956,6 @@ func (o CancelExecutionRequest) Type(ctx context.Context) attr.Type { type CancelExecutionResponse struct { } -func (newState *CancelExecutionResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan CancelExecutionResponse) { -} - -func (newState *CancelExecutionResponse) SyncEffectiveFieldsDuringRead(existingState CancelExecutionResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelExecutionResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -949,6 +997,11 @@ func (newState *Channel) SyncEffectiveFieldsDuringCreateOrUpdate(plan Channel) { func (newState *Channel) SyncEffectiveFieldsDuringRead(existingState Channel) { } +func (c Channel) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Channel. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -996,6 +1049,11 @@ func (newState *ChannelInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Channe func (newState *ChannelInfo) SyncEffectiveFieldsDuringRead(existingState ChannelInfo) { } +func (c ChannelInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ChannelInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1055,6 +1113,11 @@ func (newState *ColumnInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan ColumnI func (newState *ColumnInfo) SyncEffectiveFieldsDuringRead(existingState ColumnInfo) { } +func (c ColumnInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ColumnInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1119,6 +1182,15 @@ func (newState *CreateAlert) SyncEffectiveFieldsDuringCreateOrUpdate(plan Create func (newState *CreateAlert) SyncEffectiveFieldsDuringRead(existingState CreateAlert) { } +func (c CreateAlert) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "options")...) + AlertOptions{}.ToSchema(cs, append(path, "options")...) + cs.SetRequired(append(path, "query_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateAlert. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1198,6 +1270,12 @@ func (newState *CreateAlertRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *CreateAlertRequest) SyncEffectiveFieldsDuringRead(existingState CreateAlertRequest) { } +func (c CreateAlertRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CreateAlertRequestAlert{}.ToSchema(cs, append(path, "alert")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateAlertRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1293,6 +1371,12 @@ func (newState *CreateAlertRequestAlert) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *CreateAlertRequestAlert) SyncEffectiveFieldsDuringRead(existingState CreateAlertRequestAlert) { } +func (c CreateAlertRequestAlert) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AlertCondition{}.ToSchema(cs, append(path, "condition")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateAlertRequestAlert. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1378,6 +1462,12 @@ func (newState *CreateQueryRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *CreateQueryRequest) SyncEffectiveFieldsDuringRead(existingState CreateQueryRequest) { } +func (c CreateQueryRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CreateQueryRequestQuery{}.ToSchema(cs, append(path, "query")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateQueryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1472,6 +1562,12 @@ func (newState *CreateQueryRequestQuery) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *CreateQueryRequestQuery) SyncEffectiveFieldsDuringRead(existingState CreateQueryRequestQuery) { } +func (c CreateQueryRequestQuery) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + QueryParameter{}.ToSchema(cs, append(path, "parameters")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateQueryRequestQuery. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1600,12 +1696,6 @@ type CreateQueryVisualizationsLegacyRequest struct { Type_ types.String `tfsdk:"type" tf:""` } -func (newState *CreateQueryVisualizationsLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateQueryVisualizationsLegacyRequest) { -} - -func (newState *CreateQueryVisualizationsLegacyRequest) SyncEffectiveFieldsDuringRead(existingState CreateQueryVisualizationsLegacyRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateQueryVisualizationsLegacyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1655,6 +1745,12 @@ func (newState *CreateVisualizationRequest) SyncEffectiveFieldsDuringCreateOrUpd func (newState *CreateVisualizationRequest) SyncEffectiveFieldsDuringRead(existingState CreateVisualizationRequest) { } +func (c CreateVisualizationRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CreateVisualizationRequestVisualization{}.ToSchema(cs, append(path, "visualization")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateVisualizationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1739,6 +1835,11 @@ func (newState *CreateVisualizationRequestVisualization) SyncEffectiveFieldsDuri func (newState *CreateVisualizationRequestVisualization) SyncEffectiveFieldsDuringRead(existingState CreateVisualizationRequestVisualization) { } +func (c CreateVisualizationRequestVisualization) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateVisualizationRequestVisualization. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1848,6 +1949,13 @@ func (newState *CreateWarehouseRequest) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *CreateWarehouseRequest) SyncEffectiveFieldsDuringRead(existingState CreateWarehouseRequest) { } +func (c CreateWarehouseRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Channel{}.ToSchema(cs, append(path, "channel")...) + EndpointTags{}.ToSchema(cs, append(path, "tags")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateWarehouseRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1973,6 +2081,11 @@ func (newState *CreateWarehouseResponse) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *CreateWarehouseResponse) SyncEffectiveFieldsDuringRead(existingState CreateWarehouseResponse) { } +func (c CreateWarehouseResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateWarehouseResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2027,6 +2140,16 @@ func (newState *CreateWidget) SyncEffectiveFieldsDuringCreateOrUpdate(plan Creat func (newState *CreateWidget) SyncEffectiveFieldsDuringRead(existingState CreateWidget) { } +func (c CreateWidget) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "dashboard_id")...) + cs.SetRequired(append(path, "id")...) + cs.SetRequired(append(path, "options")...) + WidgetOptions{}.ToSchema(cs, append(path, "options")...) + cs.SetRequired(append(path, "width")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateWidget. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2153,6 +2276,14 @@ func (newState *Dashboard) SyncEffectiveFieldsDuringCreateOrUpdate(plan Dashboar func (newState *Dashboard) SyncEffectiveFieldsDuringRead(existingState Dashboard) { } +func (c Dashboard) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + DashboardOptions{}.ToSchema(cs, append(path, "options")...) + User{}.ToSchema(cs, append(path, "user")...) + Widget{}.ToSchema(cs, append(path, "widgets")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Dashboard. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2352,6 +2483,12 @@ func (newState *DashboardEditContent) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *DashboardEditContent) SyncEffectiveFieldsDuringRead(existingState DashboardEditContent) { } +func (c DashboardEditContent) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "dashboard_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DashboardEditContent. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2432,6 +2569,11 @@ func (newState *DashboardOptions) SyncEffectiveFieldsDuringCreateOrUpdate(plan D func (newState *DashboardOptions) SyncEffectiveFieldsDuringRead(existingState DashboardOptions) { } +func (c DashboardOptions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DashboardOptions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2488,6 +2630,12 @@ func (newState *DashboardPostContent) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *DashboardPostContent) SyncEffectiveFieldsDuringRead(existingState DashboardPostContent) { } +func (c DashboardPostContent) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DashboardPostContent. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2593,6 +2741,11 @@ func (newState *DataSource) SyncEffectiveFieldsDuringCreateOrUpdate(plan DataSou func (newState *DataSource) SyncEffectiveFieldsDuringRead(existingState DataSource) { } +func (c DataSource) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DataSource. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2652,6 +2805,13 @@ func (newState *DateRange) SyncEffectiveFieldsDuringCreateOrUpdate(plan DateRang func (newState *DateRange) SyncEffectiveFieldsDuringRead(existingState DateRange) { } +func (c DateRange) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "end")...) + cs.SetRequired(append(path, "start")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DateRange. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2703,6 +2863,12 @@ func (newState *DateRangeValue) SyncEffectiveFieldsDuringCreateOrUpdate(plan Dat func (newState *DateRangeValue) SyncEffectiveFieldsDuringRead(existingState DateRangeValue) { } +func (c DateRangeValue) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + DateRange{}.ToSchema(cs, append(path, "date_range_value")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DateRangeValue. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2786,6 +2952,11 @@ func (newState *DateValue) SyncEffectiveFieldsDuringCreateOrUpdate(plan DateValu func (newState *DateValue) SyncEffectiveFieldsDuringRead(existingState DateValue) { } +func (c DateValue) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DateValue. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2826,12 +2997,6 @@ type DeleteAlertsLegacyRequest struct { AlertId types.String `tfsdk:"-"` } -func (newState *DeleteAlertsLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAlertsLegacyRequest) { -} - -func (newState *DeleteAlertsLegacyRequest) SyncEffectiveFieldsDuringRead(existingState DeleteAlertsLegacyRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAlertsLegacyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2868,12 +3033,6 @@ type DeleteDashboardRequest struct { DashboardId types.String `tfsdk:"-"` } -func (newState *DeleteDashboardRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteDashboardRequest) { -} - -func (newState *DeleteDashboardRequest) SyncEffectiveFieldsDuringRead(existingState DeleteDashboardRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2911,12 +3070,6 @@ type DeleteDashboardWidgetRequest struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteDashboardWidgetRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteDashboardWidgetRequest) { -} - -func (newState *DeleteDashboardWidgetRequest) SyncEffectiveFieldsDuringRead(existingState DeleteDashboardWidgetRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDashboardWidgetRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2953,12 +3106,6 @@ type DeleteQueriesLegacyRequest struct { QueryId types.String `tfsdk:"-"` } -func (newState *DeleteQueriesLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteQueriesLegacyRequest) { -} - -func (newState *DeleteQueriesLegacyRequest) SyncEffectiveFieldsDuringRead(existingState DeleteQueriesLegacyRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteQueriesLegacyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2996,12 +3143,6 @@ type DeleteQueryVisualizationsLegacyRequest struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteQueryVisualizationsLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteQueryVisualizationsLegacyRequest) { -} - -func (newState *DeleteQueryVisualizationsLegacyRequest) SyncEffectiveFieldsDuringRead(existingState DeleteQueryVisualizationsLegacyRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteQueryVisualizationsLegacyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3036,12 +3177,6 @@ func (o DeleteQueryVisualizationsLegacyRequest) Type(ctx context.Context) attr.T type DeleteResponse struct { } -func (newState *DeleteResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse) { -} - -func (newState *DeleteResponse) SyncEffectiveFieldsDuringRead(existingState DeleteResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3074,12 +3209,6 @@ type DeleteVisualizationRequest struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteVisualizationRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteVisualizationRequest) { -} - -func (newState *DeleteVisualizationRequest) SyncEffectiveFieldsDuringRead(existingState DeleteVisualizationRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteVisualizationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3117,12 +3246,6 @@ type DeleteWarehouseRequest struct { Id types.String `tfsdk:"-"` } -func (newState *DeleteWarehouseRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteWarehouseRequest) { -} - -func (newState *DeleteWarehouseRequest) SyncEffectiveFieldsDuringRead(existingState DeleteWarehouseRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteWarehouseRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3163,6 +3286,11 @@ func (newState *DeleteWarehouseResponse) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *DeleteWarehouseResponse) SyncEffectiveFieldsDuringRead(existingState DeleteWarehouseResponse) { } +func (c DeleteWarehouseResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteWarehouseResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3210,6 +3338,16 @@ func (newState *EditAlert) SyncEffectiveFieldsDuringCreateOrUpdate(plan EditAler func (newState *EditAlert) SyncEffectiveFieldsDuringRead(existingState EditAlert) { } +func (c EditAlert) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "alert_id")...) + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "options")...) + AlertOptions{}.ToSchema(cs, append(path, "options")...) + cs.SetRequired(append(path, "query_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EditAlert. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3349,6 +3487,14 @@ func (newState *EditWarehouseRequest) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *EditWarehouseRequest) SyncEffectiveFieldsDuringRead(existingState EditWarehouseRequest) { } +func (c EditWarehouseRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Channel{}.ToSchema(cs, append(path, "channel")...) + cs.SetRequired(append(path, "id")...) + EndpointTags{}.ToSchema(cs, append(path, "tags")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EditWarehouseRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3474,6 +3620,11 @@ func (newState *EditWarehouseResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *EditWarehouseResponse) SyncEffectiveFieldsDuringRead(existingState EditWarehouseResponse) { } +func (c EditWarehouseResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EditWarehouseResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3512,6 +3663,11 @@ func (newState *Empty) SyncEffectiveFieldsDuringCreateOrUpdate(plan Empty) { func (newState *Empty) SyncEffectiveFieldsDuringRead(existingState Empty) { } +func (c Empty) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Empty. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3551,6 +3707,11 @@ func (newState *EndpointConfPair) SyncEffectiveFieldsDuringCreateOrUpdate(plan E func (newState *EndpointConfPair) SyncEffectiveFieldsDuringRead(existingState EndpointConfPair) { } +func (c EndpointConfPair) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointConfPair. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3605,6 +3766,12 @@ func (newState *EndpointHealth) SyncEffectiveFieldsDuringCreateOrUpdate(plan End func (newState *EndpointHealth) SyncEffectiveFieldsDuringRead(existingState EndpointHealth) { } +func (c EndpointHealth) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + TerminationReason{}.ToSchema(cs, append(path, "failure_reason")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointHealth. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3757,6 +3924,15 @@ func (newState *EndpointInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Endpo func (newState *EndpointInfo) SyncEffectiveFieldsDuringRead(existingState EndpointInfo) { } +func (c EndpointInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Channel{}.ToSchema(cs, append(path, "channel")...) + EndpointHealth{}.ToSchema(cs, append(path, "health")...) + OdbcParams{}.ToSchema(cs, append(path, "odbc_params")...) + EndpointTags{}.ToSchema(cs, append(path, "tags")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3955,6 +4131,11 @@ func (newState *EndpointTagPair) SyncEffectiveFieldsDuringCreateOrUpdate(plan En func (newState *EndpointTagPair) SyncEffectiveFieldsDuringRead(existingState EndpointTagPair) { } +func (c EndpointTagPair) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointTagPair. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3998,6 +4179,12 @@ func (newState *EndpointTags) SyncEffectiveFieldsDuringCreateOrUpdate(plan Endpo func (newState *EndpointTags) SyncEffectiveFieldsDuringRead(existingState EndpointTags) { } +func (c EndpointTags) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + EndpointTagPair{}.ToSchema(cs, append(path, "custom_tags")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointTags. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4074,6 +4261,12 @@ func (newState *EnumValue) SyncEffectiveFieldsDuringCreateOrUpdate(plan EnumValu func (newState *EnumValue) SyncEffectiveFieldsDuringRead(existingState EnumValue) { } +func (c EnumValue) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + MultiValuesOptions{}.ToSchema(cs, append(path, "multi_values_options")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EnumValue. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4300,6 +4493,14 @@ func (newState *ExecuteStatementRequest) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *ExecuteStatementRequest) SyncEffectiveFieldsDuringRead(existingState ExecuteStatementRequest) { } +func (c ExecuteStatementRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + StatementParameterListItem{}.ToSchema(cs, append(path, "parameters")...) + cs.SetRequired(append(path, "statement")...) + cs.SetRequired(append(path, "warehouse_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExecuteStatementRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4420,6 +4621,11 @@ func (newState *ExternalLink) SyncEffectiveFieldsDuringCreateOrUpdate(plan Exter func (newState *ExternalLink) SyncEffectiveFieldsDuringRead(existingState ExternalLink) { } +func (c ExternalLink) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExternalLink. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4502,12 +4708,6 @@ type GetAlertRequest struct { Id types.String `tfsdk:"-"` } -func (newState *GetAlertRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAlertRequest) { -} - -func (newState *GetAlertRequest) SyncEffectiveFieldsDuringRead(existingState GetAlertRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAlertRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4544,12 +4744,6 @@ type GetAlertsLegacyRequest struct { AlertId types.String `tfsdk:"-"` } -func (newState *GetAlertsLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAlertsLegacyRequest) { -} - -func (newState *GetAlertsLegacyRequest) SyncEffectiveFieldsDuringRead(existingState GetAlertsLegacyRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAlertsLegacyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4586,12 +4780,6 @@ type GetDashboardRequest struct { DashboardId types.String `tfsdk:"-"` } -func (newState *GetDashboardRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDashboardRequest) { -} - -func (newState *GetDashboardRequest) SyncEffectiveFieldsDuringRead(existingState GetDashboardRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4631,12 +4819,6 @@ type GetDbsqlPermissionRequest struct { ObjectType types.String `tfsdk:"-"` } -func (newState *GetDbsqlPermissionRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDbsqlPermissionRequest) { -} - -func (newState *GetDbsqlPermissionRequest) SyncEffectiveFieldsDuringRead(existingState GetDbsqlPermissionRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDbsqlPermissionRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4675,12 +4857,6 @@ type GetQueriesLegacyRequest struct { QueryId types.String `tfsdk:"-"` } -func (newState *GetQueriesLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetQueriesLegacyRequest) { -} - -func (newState *GetQueriesLegacyRequest) SyncEffectiveFieldsDuringRead(existingState GetQueriesLegacyRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetQueriesLegacyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4717,12 +4893,6 @@ type GetQueryRequest struct { Id types.String `tfsdk:"-"` } -func (newState *GetQueryRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetQueryRequest) { -} - -func (newState *GetQueryRequest) SyncEffectiveFieldsDuringRead(existingState GetQueryRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetQueryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4762,12 +4932,6 @@ type GetResponse struct { ObjectType types.String `tfsdk:"object_type" tf:"optional"` } -func (newState *GetResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetResponse) { -} - -func (newState *GetResponse) SyncEffectiveFieldsDuringRead(existingState GetResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4840,12 +5004,6 @@ type GetStatementRequest struct { StatementId types.String `tfsdk:"-"` } -func (newState *GetStatementRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetStatementRequest) { -} - -func (newState *GetStatementRequest) SyncEffectiveFieldsDuringRead(existingState GetStatementRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetStatementRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4885,12 +5043,6 @@ type GetStatementResultChunkNRequest struct { StatementId types.String `tfsdk:"-"` } -func (newState *GetStatementResultChunkNRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetStatementResultChunkNRequest) { -} - -func (newState *GetStatementResultChunkNRequest) SyncEffectiveFieldsDuringRead(existingState GetStatementResultChunkNRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetStatementResultChunkNRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4930,12 +5082,6 @@ type GetWarehousePermissionLevelsRequest struct { WarehouseId types.String `tfsdk:"-"` } -func (newState *GetWarehousePermissionLevelsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWarehousePermissionLevelsRequest) { -} - -func (newState *GetWarehousePermissionLevelsRequest) SyncEffectiveFieldsDuringRead(existingState GetWarehousePermissionLevelsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWarehousePermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4978,6 +5124,12 @@ func (newState *GetWarehousePermissionLevelsResponse) SyncEffectiveFieldsDuringC func (newState *GetWarehousePermissionLevelsResponse) SyncEffectiveFieldsDuringRead(existingState GetWarehousePermissionLevelsResponse) { } +func (c GetWarehousePermissionLevelsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + WarehousePermissionsDescription{}.ToSchema(cs, append(path, "permission_levels")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWarehousePermissionLevelsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5045,12 +5197,6 @@ type GetWarehousePermissionsRequest struct { WarehouseId types.String `tfsdk:"-"` } -func (newState *GetWarehousePermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWarehousePermissionsRequest) { -} - -func (newState *GetWarehousePermissionsRequest) SyncEffectiveFieldsDuringRead(existingState GetWarehousePermissionsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWarehousePermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5088,12 +5234,6 @@ type GetWarehouseRequest struct { Id types.String `tfsdk:"-"` } -func (newState *GetWarehouseRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWarehouseRequest) { -} - -func (newState *GetWarehouseRequest) SyncEffectiveFieldsDuringRead(existingState GetWarehouseRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWarehouseRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5208,6 +5348,15 @@ func (newState *GetWarehouseResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *GetWarehouseResponse) SyncEffectiveFieldsDuringRead(existingState GetWarehouseResponse) { } +func (c GetWarehouseResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Channel{}.ToSchema(cs, append(path, "channel")...) + EndpointHealth{}.ToSchema(cs, append(path, "health")...) + OdbcParams{}.ToSchema(cs, append(path, "odbc_params")...) + EndpointTags{}.ToSchema(cs, append(path, "tags")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWarehouseResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5428,6 +5577,17 @@ func (newState *GetWorkspaceWarehouseConfigResponse) SyncEffectiveFieldsDuringCr func (newState *GetWorkspaceWarehouseConfigResponse) SyncEffectiveFieldsDuringRead(existingState GetWorkspaceWarehouseConfigResponse) { } +func (c GetWorkspaceWarehouseConfigResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Channel{}.ToSchema(cs, append(path, "channel")...) + RepeatedEndpointConfPairs{}.ToSchema(cs, append(path, "config_param")...) + EndpointConfPair{}.ToSchema(cs, append(path, "data_access_config")...) + WarehouseTypePair{}.ToSchema(cs, append(path, "enabled_warehouse_types")...) + RepeatedEndpointConfPairs{}.ToSchema(cs, append(path, "global_param")...) + RepeatedEndpointConfPairs{}.ToSchema(cs, append(path, "sql_configuration_parameters")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWorkspaceWarehouseConfigResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5685,6 +5845,14 @@ func (newState *LegacyAlert) SyncEffectiveFieldsDuringCreateOrUpdate(plan Legacy func (newState *LegacyAlert) SyncEffectiveFieldsDuringRead(existingState LegacyAlert) { } +func (c LegacyAlert) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AlertOptions{}.ToSchema(cs, append(path, "options")...) + AlertQuery{}.ToSchema(cs, append(path, "query")...) + User{}.ToSchema(cs, append(path, "user")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in LegacyAlert. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -5901,6 +6069,15 @@ func (newState *LegacyQuery) SyncEffectiveFieldsDuringCreateOrUpdate(plan Legacy func (newState *LegacyQuery) SyncEffectiveFieldsDuringRead(existingState LegacyQuery) { } +func (c LegacyQuery) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + User{}.ToSchema(cs, append(path, "last_modified_by")...) + QueryOptions{}.ToSchema(cs, append(path, "options")...) + User{}.ToSchema(cs, append(path, "user")...) + LegacyVisualization{}.ToSchema(cs, append(path, "visualizations")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in LegacyQuery. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6157,6 +6334,12 @@ func (newState *LegacyVisualization) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *LegacyVisualization) SyncEffectiveFieldsDuringRead(existingState LegacyVisualization) { } +func (c LegacyVisualization) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + LegacyQuery{}.ToSchema(cs, append(path, "query")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in LegacyVisualization. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6239,12 +6422,6 @@ type ListAlertsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListAlertsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAlertsRequest) { -} - -func (newState *ListAlertsRequest) SyncEffectiveFieldsDuringRead(existingState ListAlertsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAlertsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6290,6 +6467,12 @@ func (newState *ListAlertsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ListAlertsResponse) SyncEffectiveFieldsDuringRead(existingState ListAlertsResponse) { } +func (c ListAlertsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ListAlertsResponseAlert{}.ToSchema(cs, append(path, "results")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAlertsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6403,6 +6586,12 @@ func (newState *ListAlertsResponseAlert) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *ListAlertsResponseAlert) SyncEffectiveFieldsDuringRead(existingState ListAlertsResponseAlert) { } +func (c ListAlertsResponseAlert) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AlertCondition{}.ToSchema(cs, append(path, "condition")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAlertsResponseAlert. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6502,12 +6691,6 @@ type ListDashboardsRequest struct { Q types.String `tfsdk:"-"` } -func (newState *ListDashboardsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListDashboardsRequest) { -} - -func (newState *ListDashboardsRequest) SyncEffectiveFieldsDuringRead(existingState ListDashboardsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListDashboardsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6570,12 +6753,6 @@ type ListQueriesLegacyRequest struct { Q types.String `tfsdk:"-"` } -func (newState *ListQueriesLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListQueriesLegacyRequest) { -} - -func (newState *ListQueriesLegacyRequest) SyncEffectiveFieldsDuringRead(existingState ListQueriesLegacyRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListQueriesLegacyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6620,12 +6797,6 @@ type ListQueriesRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListQueriesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListQueriesRequest) { -} - -func (newState *ListQueriesRequest) SyncEffectiveFieldsDuringRead(existingState ListQueriesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListQueriesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6674,6 +6845,12 @@ func (newState *ListQueriesResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *ListQueriesResponse) SyncEffectiveFieldsDuringRead(existingState ListQueriesResponse) { } +func (c ListQueriesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + QueryInfo{}.ToSchema(cs, append(path, "res")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListQueriesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6756,12 +6933,6 @@ type ListQueryHistoryRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListQueryHistoryRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListQueryHistoryRequest) { -} - -func (newState *ListQueryHistoryRequest) SyncEffectiveFieldsDuringRead(existingState ListQueryHistoryRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListQueryHistoryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6841,6 +7012,12 @@ func (newState *ListQueryObjectsResponse) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *ListQueryObjectsResponse) SyncEffectiveFieldsDuringRead(existingState ListQueryObjectsResponse) { } +func (c ListQueryObjectsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ListQueryObjectsResponseQuery{}.ToSchema(cs, append(path, "results")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListQueryObjectsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -6947,6 +7124,12 @@ func (newState *ListQueryObjectsResponseQuery) SyncEffectiveFieldsDuringCreateOr func (newState *ListQueryObjectsResponseQuery) SyncEffectiveFieldsDuringRead(existingState ListQueryObjectsResponseQuery) { } +func (c ListQueryObjectsResponseQuery) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + QueryParameter{}.ToSchema(cs, append(path, "parameters")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListQueryObjectsResponseQuery. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7078,12 +7261,6 @@ type ListResponse struct { Results types.List `tfsdk:"results" tf:"optional"` } -func (newState *ListResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListResponse) { -} - -func (newState *ListResponse) SyncEffectiveFieldsDuringRead(existingState ListResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7160,12 +7337,6 @@ type ListVisualizationsForQueryRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListVisualizationsForQueryRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListVisualizationsForQueryRequest) { -} - -func (newState *ListVisualizationsForQueryRequest) SyncEffectiveFieldsDuringRead(existingState ListVisualizationsForQueryRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListVisualizationsForQueryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7213,6 +7384,12 @@ func (newState *ListVisualizationsForQueryResponse) SyncEffectiveFieldsDuringCre func (newState *ListVisualizationsForQueryResponse) SyncEffectiveFieldsDuringRead(existingState ListVisualizationsForQueryResponse) { } +func (c ListVisualizationsForQueryResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Visualization{}.ToSchema(cs, append(path, "results")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListVisualizationsForQueryResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7283,12 +7460,6 @@ type ListWarehousesRequest struct { RunAsUserId types.Int64 `tfsdk:"-"` } -func (newState *ListWarehousesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListWarehousesRequest) { -} - -func (newState *ListWarehousesRequest) SyncEffectiveFieldsDuringRead(existingState ListWarehousesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListWarehousesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7331,6 +7502,12 @@ func (newState *ListWarehousesResponse) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *ListWarehousesResponse) SyncEffectiveFieldsDuringRead(existingState ListWarehousesResponse) { } +func (c ListWarehousesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + EndpointInfo{}.ToSchema(cs, append(path, "warehouses")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListWarehousesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7408,6 +7585,11 @@ func (newState *MultiValuesOptions) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *MultiValuesOptions) SyncEffectiveFieldsDuringRead(existingState MultiValuesOptions) { } +func (c MultiValuesOptions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MultiValuesOptions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7453,6 +7635,11 @@ func (newState *NumericValue) SyncEffectiveFieldsDuringCreateOrUpdate(plan Numer func (newState *NumericValue) SyncEffectiveFieldsDuringRead(existingState NumericValue) { } +func (c NumericValue) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in NumericValue. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7500,6 +7687,11 @@ func (newState *OdbcParams) SyncEffectiveFieldsDuringCreateOrUpdate(plan OdbcPar func (newState *OdbcParams) SyncEffectiveFieldsDuringRead(existingState OdbcParams) { } +func (c OdbcParams) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in OdbcParams. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7564,6 +7756,12 @@ func (newState *Parameter) SyncEffectiveFieldsDuringCreateOrUpdate(plan Paramete func (newState *Parameter) SyncEffectiveFieldsDuringRead(existingState Parameter) { } +func (c Parameter) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + MultiValuesOptions{}.ToSchema(cs, append(path, "multiValuesOptions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Parameter. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7682,6 +7880,12 @@ func (newState *Query) SyncEffectiveFieldsDuringCreateOrUpdate(plan Query) { func (newState *Query) SyncEffectiveFieldsDuringRead(existingState Query) { } +func (c Query) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + QueryParameter{}.ToSchema(cs, append(path, "parameters")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Query. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7819,6 +8023,12 @@ func (newState *QueryBackedValue) SyncEffectiveFieldsDuringCreateOrUpdate(plan Q func (newState *QueryBackedValue) SyncEffectiveFieldsDuringRead(existingState QueryBackedValue) { } +func (c QueryBackedValue) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + MultiValuesOptions{}.ToSchema(cs, append(path, "multi_values_options")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryBackedValue. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -7947,6 +8157,12 @@ func (newState *QueryEditContent) SyncEffectiveFieldsDuringCreateOrUpdate(plan Q func (newState *QueryEditContent) SyncEffectiveFieldsDuringRead(existingState QueryEditContent) { } +func (c QueryEditContent) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "query_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryEditContent. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8042,6 +8258,12 @@ func (newState *QueryFilter) SyncEffectiveFieldsDuringCreateOrUpdate(plan QueryF func (newState *QueryFilter) SyncEffectiveFieldsDuringRead(existingState QueryFilter) { } +func (c QueryFilter) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + TimeRange{}.ToSchema(cs, append(path, "query_start_time_range")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryFilter. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8285,6 +8507,13 @@ func (newState *QueryInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan QueryInf func (newState *QueryInfo) SyncEffectiveFieldsDuringRead(existingState QueryInfo) { } +func (c QueryInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ChannelInfo{}.ToSchema(cs, append(path, "channel_used")...) + QueryMetrics{}.ToSchema(cs, append(path, "metrics")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8434,6 +8663,12 @@ func (newState *QueryList) SyncEffectiveFieldsDuringCreateOrUpdate(plan QueryLis func (newState *QueryList) SyncEffectiveFieldsDuringRead(existingState QueryList) { } +func (c QueryList) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + LegacyQuery{}.ToSchema(cs, append(path, "results")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryList. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8568,6 +8803,11 @@ func (newState *QueryMetrics) SyncEffectiveFieldsDuringCreateOrUpdate(plan Query func (newState *QueryMetrics) SyncEffectiveFieldsDuringRead(existingState QueryMetrics) { } +func (c QueryMetrics) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryMetrics. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8660,6 +8900,12 @@ func (newState *QueryOptions) SyncEffectiveFieldsDuringCreateOrUpdate(plan Query func (newState *QueryOptions) SyncEffectiveFieldsDuringRead(existingState QueryOptions) { } +func (c QueryOptions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Parameter{}.ToSchema(cs, append(path, "parameters")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryOptions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -8755,6 +9001,17 @@ func (newState *QueryParameter) SyncEffectiveFieldsDuringCreateOrUpdate(plan Que func (newState *QueryParameter) SyncEffectiveFieldsDuringRead(existingState QueryParameter) { } +func (c QueryParameter) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + DateRangeValue{}.ToSchema(cs, append(path, "date_range_value")...) + DateValue{}.ToSchema(cs, append(path, "date_value")...) + EnumValue{}.ToSchema(cs, append(path, "enum_value")...) + NumericValue{}.ToSchema(cs, append(path, "numeric_value")...) + QueryBackedValue{}.ToSchema(cs, append(path, "query_backed_value")...) + TextValue{}.ToSchema(cs, append(path, "text_value")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryParameter. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9009,6 +9266,11 @@ func (newState *QueryPostContent) SyncEffectiveFieldsDuringCreateOrUpdate(plan Q func (newState *QueryPostContent) SyncEffectiveFieldsDuringRead(existingState QueryPostContent) { } +func (c QueryPostContent) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryPostContent. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9097,6 +9359,13 @@ func (newState *RepeatedEndpointConfPairs) SyncEffectiveFieldsDuringCreateOrUpda func (newState *RepeatedEndpointConfPairs) SyncEffectiveFieldsDuringRead(existingState RepeatedEndpointConfPairs) { } +func (c RepeatedEndpointConfPairs) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + EndpointConfPair{}.ToSchema(cs, append(path, "config_pair")...) + EndpointConfPair{}.ToSchema(cs, append(path, "configuration_pairs")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RepeatedEndpointConfPairs. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9194,12 +9463,6 @@ type RestoreDashboardRequest struct { DashboardId types.String `tfsdk:"-"` } -func (newState *RestoreDashboardRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan RestoreDashboardRequest) { -} - -func (newState *RestoreDashboardRequest) SyncEffectiveFieldsDuringRead(existingState RestoreDashboardRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in RestoreDashboardRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9236,12 +9499,6 @@ type RestoreQueriesLegacyRequest struct { QueryId types.String `tfsdk:"-"` } -func (newState *RestoreQueriesLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan RestoreQueriesLegacyRequest) { -} - -func (newState *RestoreQueriesLegacyRequest) SyncEffectiveFieldsDuringRead(existingState RestoreQueriesLegacyRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in RestoreQueriesLegacyRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9276,12 +9533,6 @@ func (o RestoreQueriesLegacyRequest) Type(ctx context.Context) attr.Type { type RestoreResponse struct { } -func (newState *RestoreResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan RestoreResponse) { -} - -func (newState *RestoreResponse) SyncEffectiveFieldsDuringRead(existingState RestoreResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in RestoreResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9342,6 +9593,12 @@ func (newState *ResultData) SyncEffectiveFieldsDuringCreateOrUpdate(plan ResultD func (newState *ResultData) SyncEffectiveFieldsDuringRead(existingState ResultData) { } +func (c ResultData) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ExternalLink{}.ToSchema(cs, append(path, "external_links")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ResultData. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9474,6 +9731,13 @@ func (newState *ResultManifest) SyncEffectiveFieldsDuringCreateOrUpdate(plan Res func (newState *ResultManifest) SyncEffectiveFieldsDuringRead(existingState ResultManifest) { } +func (c ResultManifest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + BaseChunkInfo{}.ToSchema(cs, append(path, "chunks")...) + ResultSchema{}.ToSchema(cs, append(path, "schema")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ResultManifest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9589,6 +9853,12 @@ func (newState *ResultSchema) SyncEffectiveFieldsDuringCreateOrUpdate(plan Resul func (newState *ResultSchema) SyncEffectiveFieldsDuringRead(existingState ResultSchema) { } +func (c ResultSchema) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ColumnInfo{}.ToSchema(cs, append(path, "columns")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ResultSchema. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9664,6 +9934,11 @@ func (newState *ServiceError) SyncEffectiveFieldsDuringCreateOrUpdate(plan Servi func (newState *ServiceError) SyncEffectiveFieldsDuringRead(existingState ServiceError) { } +func (c ServiceError) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ServiceError. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9707,12 +9982,6 @@ type SetRequest struct { ObjectType types.String `tfsdk:"-"` } -func (newState *SetRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan SetRequest) { -} - -func (newState *SetRequest) SyncEffectiveFieldsDuringRead(existingState SetRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in SetRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9786,12 +10055,6 @@ type SetResponse struct { ObjectType types.String `tfsdk:"object_type" tf:"optional"` } -func (newState *SetResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan SetResponse) { -} - -func (newState *SetResponse) SyncEffectiveFieldsDuringRead(existingState SetResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in SetResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -9891,6 +10154,17 @@ func (newState *SetWorkspaceWarehouseConfigRequest) SyncEffectiveFieldsDuringCre func (newState *SetWorkspaceWarehouseConfigRequest) SyncEffectiveFieldsDuringRead(existingState SetWorkspaceWarehouseConfigRequest) { } +func (c SetWorkspaceWarehouseConfigRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Channel{}.ToSchema(cs, append(path, "channel")...) + RepeatedEndpointConfPairs{}.ToSchema(cs, append(path, "config_param")...) + EndpointConfPair{}.ToSchema(cs, append(path, "data_access_config")...) + WarehouseTypePair{}.ToSchema(cs, append(path, "enabled_warehouse_types")...) + RepeatedEndpointConfPairs{}.ToSchema(cs, append(path, "global_param")...) + RepeatedEndpointConfPairs{}.ToSchema(cs, append(path, "sql_configuration_parameters")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SetWorkspaceWarehouseConfigRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10122,6 +10396,11 @@ func (newState *SetWorkspaceWarehouseConfigResponse) SyncEffectiveFieldsDuringCr func (newState *SetWorkspaceWarehouseConfigResponse) SyncEffectiveFieldsDuringRead(existingState SetWorkspaceWarehouseConfigResponse) { } +func (c SetWorkspaceWarehouseConfigResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SetWorkspaceWarehouseConfigResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10155,12 +10434,6 @@ type StartRequest struct { Id types.String `tfsdk:"-"` } -func (newState *StartRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan StartRequest) { -} - -func (newState *StartRequest) SyncEffectiveFieldsDuringRead(existingState StartRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in StartRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10201,6 +10474,11 @@ func (newState *StartWarehouseResponse) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *StartWarehouseResponse) SyncEffectiveFieldsDuringRead(existingState StartWarehouseResponse) { } +func (c StartWarehouseResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in StartWarehouseResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10250,6 +10528,12 @@ func (newState *StatementParameterListItem) SyncEffectiveFieldsDuringCreateOrUpd func (newState *StatementParameterListItem) SyncEffectiveFieldsDuringRead(existingState StatementParameterListItem) { } +func (c StatementParameterListItem) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in StatementParameterListItem. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10304,6 +10588,14 @@ func (newState *StatementResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *StatementResponse) SyncEffectiveFieldsDuringRead(existingState StatementResponse) { } +func (c StatementResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ResultManifest{}.ToSchema(cs, append(path, "manifest")...) + ResultData{}.ToSchema(cs, append(path, "result")...) + StatementStatus{}.ToSchema(cs, append(path, "status")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in StatementResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10449,6 +10741,12 @@ func (newState *StatementStatus) SyncEffectiveFieldsDuringCreateOrUpdate(plan St func (newState *StatementStatus) SyncEffectiveFieldsDuringRead(existingState StatementStatus) { } +func (c StatementStatus) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ServiceError{}.ToSchema(cs, append(path, "error")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in StatementStatus. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10518,12 +10816,6 @@ type StopRequest struct { Id types.String `tfsdk:"-"` } -func (newState *StopRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan StopRequest) { -} - -func (newState *StopRequest) SyncEffectiveFieldsDuringRead(existingState StopRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in StopRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10564,6 +10856,11 @@ func (newState *StopWarehouseResponse) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *StopWarehouseResponse) SyncEffectiveFieldsDuringRead(existingState StopWarehouseResponse) { } +func (c StopWarehouseResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in StopWarehouseResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10601,6 +10898,11 @@ func (newState *Success) SyncEffectiveFieldsDuringCreateOrUpdate(plan Success) { func (newState *Success) SyncEffectiveFieldsDuringRead(existingState Success) { } +func (c Success) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Success. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10648,6 +10950,11 @@ func (newState *TerminationReason) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *TerminationReason) SyncEffectiveFieldsDuringRead(existingState TerminationReason) { } +func (c TerminationReason) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TerminationReason. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10723,6 +11030,11 @@ func (newState *TextValue) SyncEffectiveFieldsDuringCreateOrUpdate(plan TextValu func (newState *TextValue) SyncEffectiveFieldsDuringRead(existingState TextValue) { } +func (c TextValue) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TextValue. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10767,6 +11079,11 @@ func (newState *TimeRange) SyncEffectiveFieldsDuringCreateOrUpdate(plan TimeRang func (newState *TimeRange) SyncEffectiveFieldsDuringRead(existingState TimeRange) { } +func (c TimeRange) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TimeRange. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10811,6 +11128,11 @@ func (newState *TransferOwnershipObjectId) SyncEffectiveFieldsDuringCreateOrUpda func (newState *TransferOwnershipObjectId) SyncEffectiveFieldsDuringRead(existingState TransferOwnershipObjectId) { } +func (c TransferOwnershipObjectId) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in TransferOwnershipObjectId. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10852,12 +11174,6 @@ type TransferOwnershipRequest struct { ObjectType types.String `tfsdk:"-"` } -func (newState *TransferOwnershipRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan TransferOwnershipRequest) { -} - -func (newState *TransferOwnershipRequest) SyncEffectiveFieldsDuringRead(existingState TransferOwnershipRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in TransferOwnershipRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10928,12 +11244,6 @@ type TrashAlertRequest struct { Id types.String `tfsdk:"-"` } -func (newState *TrashAlertRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan TrashAlertRequest) { -} - -func (newState *TrashAlertRequest) SyncEffectiveFieldsDuringRead(existingState TrashAlertRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in TrashAlertRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -10970,12 +11280,6 @@ type TrashQueryRequest struct { Id types.String `tfsdk:"-"` } -func (newState *TrashQueryRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan TrashQueryRequest) { -} - -func (newState *TrashQueryRequest) SyncEffectiveFieldsDuringRead(existingState TrashQueryRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in TrashQueryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11024,6 +11328,14 @@ func (newState *UpdateAlertRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *UpdateAlertRequest) SyncEffectiveFieldsDuringRead(existingState UpdateAlertRequest) { } +func (c UpdateAlertRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + UpdateAlertRequestAlert{}.ToSchema(cs, append(path, "alert")...) + cs.SetRequired(append(path, "id")...) + cs.SetRequired(append(path, "update_mask")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateAlertRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11124,6 +11436,12 @@ func (newState *UpdateAlertRequestAlert) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *UpdateAlertRequestAlert) SyncEffectiveFieldsDuringRead(existingState UpdateAlertRequestAlert) { } +func (c UpdateAlertRequestAlert) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AlertCondition{}.ToSchema(cs, append(path, "condition")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateAlertRequestAlert. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11216,6 +11534,14 @@ func (newState *UpdateQueryRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *UpdateQueryRequest) SyncEffectiveFieldsDuringRead(existingState UpdateQueryRequest) { } +func (c UpdateQueryRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "id")...) + UpdateQueryRequestQuery{}.ToSchema(cs, append(path, "query")...) + cs.SetRequired(append(path, "update_mask")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateQueryRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11314,6 +11640,12 @@ func (newState *UpdateQueryRequestQuery) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *UpdateQueryRequestQuery) SyncEffectiveFieldsDuringRead(existingState UpdateQueryRequestQuery) { } +func (c UpdateQueryRequestQuery) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + QueryParameter{}.ToSchema(cs, append(path, "parameters")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateQueryRequestQuery. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11427,12 +11759,6 @@ func (o *UpdateQueryRequestQuery) SetTags(ctx context.Context, v []types.String) type UpdateResponse struct { } -func (newState *UpdateResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateResponse) { -} - -func (newState *UpdateResponse) SyncEffectiveFieldsDuringRead(existingState UpdateResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11477,6 +11803,14 @@ func (newState *UpdateVisualizationRequest) SyncEffectiveFieldsDuringCreateOrUpd func (newState *UpdateVisualizationRequest) SyncEffectiveFieldsDuringRead(existingState UpdateVisualizationRequest) { } +func (c UpdateVisualizationRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "id")...) + cs.SetRequired(append(path, "update_mask")...) + UpdateVisualizationRequestVisualization{}.ToSchema(cs, append(path, "visualization")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateVisualizationRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11563,6 +11897,11 @@ func (newState *UpdateVisualizationRequestVisualization) SyncEffectiveFieldsDuri func (newState *UpdateVisualizationRequestVisualization) SyncEffectiveFieldsDuringRead(existingState UpdateVisualizationRequestVisualization) { } +func (c UpdateVisualizationRequestVisualization) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateVisualizationRequestVisualization. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11614,6 +11953,11 @@ func (newState *User) SyncEffectiveFieldsDuringCreateOrUpdate(plan User) { func (newState *User) SyncEffectiveFieldsDuringRead(existingState User) { } +func (c User) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in User. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11678,6 +12022,11 @@ func (newState *Visualization) SyncEffectiveFieldsDuringCreateOrUpdate(plan Visu func (newState *Visualization) SyncEffectiveFieldsDuringRead(existingState Visualization) { } +func (c Visualization) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Visualization. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11740,6 +12089,11 @@ func (newState *WarehouseAccessControlRequest) SyncEffectiveFieldsDuringCreateOr func (newState *WarehouseAccessControlRequest) SyncEffectiveFieldsDuringRead(existingState WarehouseAccessControlRequest) { } +func (c WarehouseAccessControlRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WarehouseAccessControlRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11796,6 +12150,12 @@ func (newState *WarehouseAccessControlResponse) SyncEffectiveFieldsDuringCreateO func (newState *WarehouseAccessControlResponse) SyncEffectiveFieldsDuringRead(existingState WarehouseAccessControlResponse) { } +func (c WarehouseAccessControlResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + WarehousePermission{}.ToSchema(cs, append(path, "all_permissions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WarehouseAccessControlResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11879,6 +12239,11 @@ func (newState *WarehousePermission) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *WarehousePermission) SyncEffectiveFieldsDuringRead(existingState WarehousePermission) { } +func (c WarehousePermission) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WarehousePermission. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -11958,6 +12323,12 @@ func (newState *WarehousePermissions) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *WarehousePermissions) SyncEffectiveFieldsDuringRead(existingState WarehousePermissions) { } +func (c WarehousePermissions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + WarehouseAccessControlResponse{}.ToSchema(cs, append(path, "access_control_list")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WarehousePermissions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12035,6 +12406,11 @@ func (newState *WarehousePermissionsDescription) SyncEffectiveFieldsDuringCreate func (newState *WarehousePermissionsDescription) SyncEffectiveFieldsDuringRead(existingState WarehousePermissionsDescription) { } +func (c WarehousePermissionsDescription) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WarehousePermissionsDescription. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12080,6 +12456,13 @@ func (newState *WarehousePermissionsRequest) SyncEffectiveFieldsDuringCreateOrUp func (newState *WarehousePermissionsRequest) SyncEffectiveFieldsDuringRead(existingState WarehousePermissionsRequest) { } +func (c WarehousePermissionsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + WarehouseAccessControlRequest{}.ToSchema(cs, append(path, "access_control_list")...) + cs.SetRequired(append(path, "warehouse_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WarehousePermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12157,6 +12540,11 @@ func (newState *WarehouseTypePair) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *WarehouseTypePair) SyncEffectiveFieldsDuringRead(existingState WarehouseTypePair) { } +func (c WarehouseTypePair) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WarehouseTypePair. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12211,6 +12599,13 @@ func (newState *Widget) SyncEffectiveFieldsDuringCreateOrUpdate(plan Widget) { func (newState *Widget) SyncEffectiveFieldsDuringRead(existingState Widget) { } +func (c Widget) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + WidgetOptions{}.ToSchema(cs, append(path, "options")...) + LegacyVisualization{}.ToSchema(cs, append(path, "visualization")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Widget. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12333,6 +12728,12 @@ func (newState *WidgetOptions) SyncEffectiveFieldsDuringCreateOrUpdate(plan Widg func (newState *WidgetOptions) SyncEffectiveFieldsDuringRead(existingState WidgetOptions) { } +func (c WidgetOptions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + WidgetPosition{}.ToSchema(cs, append(path, "position")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WidgetOptions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -12427,6 +12828,11 @@ func (newState *WidgetPosition) SyncEffectiveFieldsDuringCreateOrUpdate(plan Wid func (newState *WidgetPosition) SyncEffectiveFieldsDuringRead(existingState WidgetPosition) { } +func (c WidgetPosition) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WidgetPosition. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/vectorsearch_tf/legacy_model.go b/internal/service/vectorsearch_tf/legacy_model.go index 27e70adf8..4cee30dbc 100755 --- a/internal/service/vectorsearch_tf/legacy_model.go +++ b/internal/service/vectorsearch_tf/legacy_model.go @@ -547,12 +547,6 @@ type DeleteEndpointRequest_SdkV2 struct { EndpointName types.String `tfsdk:"-"` } -func (newState *DeleteEndpointRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteEndpointRequest_SdkV2) { -} - -func (newState *DeleteEndpointRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteEndpointRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteEndpointRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -587,12 +581,6 @@ func (o DeleteEndpointRequest_SdkV2) Type(ctx context.Context) attr.Type { type DeleteEndpointResponse_SdkV2 struct { } -func (newState *DeleteEndpointResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteEndpointResponse_SdkV2) { -} - -func (newState *DeleteEndpointResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteEndpointResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteEndpointResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -626,12 +614,6 @@ type DeleteIndexRequest_SdkV2 struct { IndexName types.String `tfsdk:"-"` } -func (newState *DeleteIndexRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteIndexRequest_SdkV2) { -} - -func (newState *DeleteIndexRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteIndexRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteIndexRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -666,12 +648,6 @@ func (o DeleteIndexRequest_SdkV2) Type(ctx context.Context) attr.Type { type DeleteIndexResponse_SdkV2 struct { } -func (newState *DeleteIndexResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteIndexResponse_SdkV2) { -} - -func (newState *DeleteIndexResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteIndexResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteIndexResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1354,12 +1330,6 @@ type GetEndpointRequest_SdkV2 struct { EndpointName types.String `tfsdk:"-"` } -func (newState *GetEndpointRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetEndpointRequest_SdkV2) { -} - -func (newState *GetEndpointRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetEndpointRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetEndpointRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1397,12 +1367,6 @@ type GetIndexRequest_SdkV2 struct { IndexName types.String `tfsdk:"-"` } -func (newState *GetIndexRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetIndexRequest_SdkV2) { -} - -func (newState *GetIndexRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetIndexRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetIndexRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1517,12 +1481,6 @@ type ListEndpointsRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListEndpointsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListEndpointsRequest_SdkV2) { -} - -func (newState *ListEndpointsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListEndpointsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListEndpointsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1562,12 +1520,6 @@ type ListIndexesRequest_SdkV2 struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListIndexesRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListIndexesRequest_SdkV2) { -} - -func (newState *ListIndexesRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListIndexesRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListIndexesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2550,12 +2502,6 @@ type SyncIndexRequest_SdkV2 struct { IndexName types.String `tfsdk:"-"` } -func (newState *SyncIndexRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan SyncIndexRequest_SdkV2) { -} - -func (newState *SyncIndexRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState SyncIndexRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in SyncIndexRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2590,12 +2536,6 @@ func (o SyncIndexRequest_SdkV2) Type(ctx context.Context) attr.Type { type SyncIndexResponse_SdkV2 struct { } -func (newState *SyncIndexResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan SyncIndexResponse_SdkV2) { -} - -func (newState *SyncIndexResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState SyncIndexResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in SyncIndexResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/vectorsearch_tf/model.go b/internal/service/vectorsearch_tf/model.go index ae0141c7f..a021c5478 100755 --- a/internal/service/vectorsearch_tf/model.go +++ b/internal/service/vectorsearch_tf/model.go @@ -15,6 +15,7 @@ import ( "reflect" pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common" + "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/tfschema" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/types" @@ -32,6 +33,11 @@ func (newState *ColumnInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan ColumnI func (newState *ColumnInfo) SyncEffectiveFieldsDuringRead(existingState ColumnInfo) { } +func (c ColumnInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ColumnInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -76,6 +82,13 @@ func (newState *CreateEndpoint) SyncEffectiveFieldsDuringCreateOrUpdate(plan Cre func (newState *CreateEndpoint) SyncEffectiveFieldsDuringRead(existingState CreateEndpoint) { } +func (c CreateEndpoint) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "endpoint_type")...) + cs.SetRequired(append(path, "name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateEndpoint. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -138,6 +151,17 @@ func (newState *CreateVectorIndexRequest) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *CreateVectorIndexRequest) SyncEffectiveFieldsDuringRead(existingState CreateVectorIndexRequest) { } +func (c CreateVectorIndexRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + DeltaSyncVectorIndexSpecRequest{}.ToSchema(cs, append(path, "delta_sync_index_spec")...) + DirectAccessVectorIndexSpec{}.ToSchema(cs, append(path, "direct_access_index_spec")...) + cs.SetRequired(append(path, "endpoint_name")...) + cs.SetRequired(append(path, "index_type")...) + cs.SetRequired(append(path, "name")...) + cs.SetRequired(append(path, "primary_key")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateVectorIndexRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -248,6 +272,12 @@ func (newState *CreateVectorIndexResponse) SyncEffectiveFieldsDuringCreateOrUpda func (newState *CreateVectorIndexResponse) SyncEffectiveFieldsDuringRead(existingState CreateVectorIndexResponse) { } +func (c CreateVectorIndexResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + VectorIndex{}.ToSchema(cs, append(path, "vector_index")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateVectorIndexResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -323,6 +353,11 @@ func (newState *DeleteDataResult) SyncEffectiveFieldsDuringCreateOrUpdate(plan D func (newState *DeleteDataResult) SyncEffectiveFieldsDuringRead(existingState DeleteDataResult) { } +func (c DeleteDataResult) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDataResult. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -401,6 +436,13 @@ func (newState *DeleteDataVectorIndexRequest) SyncEffectiveFieldsDuringCreateOrU func (newState *DeleteDataVectorIndexRequest) SyncEffectiveFieldsDuringRead(existingState DeleteDataVectorIndexRequest) { } +func (c DeleteDataVectorIndexRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "index_name")...) + cs.SetRequired(append(path, "primary_keys")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDataVectorIndexRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -478,6 +520,12 @@ func (newState *DeleteDataVectorIndexResponse) SyncEffectiveFieldsDuringCreateOr func (newState *DeleteDataVectorIndexResponse) SyncEffectiveFieldsDuringRead(existingState DeleteDataVectorIndexResponse) { } +func (c DeleteDataVectorIndexResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + DeleteDataResult{}.ToSchema(cs, append(path, "result")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDataVectorIndexResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -547,12 +595,6 @@ type DeleteEndpointRequest struct { EndpointName types.String `tfsdk:"-"` } -func (newState *DeleteEndpointRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteEndpointRequest) { -} - -func (newState *DeleteEndpointRequest) SyncEffectiveFieldsDuringRead(existingState DeleteEndpointRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteEndpointRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -587,12 +629,6 @@ func (o DeleteEndpointRequest) Type(ctx context.Context) attr.Type { type DeleteEndpointResponse struct { } -func (newState *DeleteEndpointResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteEndpointResponse) { -} - -func (newState *DeleteEndpointResponse) SyncEffectiveFieldsDuringRead(existingState DeleteEndpointResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteEndpointResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -626,12 +662,6 @@ type DeleteIndexRequest struct { IndexName types.String `tfsdk:"-"` } -func (newState *DeleteIndexRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteIndexRequest) { -} - -func (newState *DeleteIndexRequest) SyncEffectiveFieldsDuringRead(existingState DeleteIndexRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteIndexRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -666,12 +696,6 @@ func (o DeleteIndexRequest) Type(ctx context.Context) attr.Type { type DeleteIndexResponse struct { } -func (newState *DeleteIndexResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteIndexResponse) { -} - -func (newState *DeleteIndexResponse) SyncEffectiveFieldsDuringRead(existingState DeleteIndexResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteIndexResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -733,6 +757,13 @@ func (newState *DeltaSyncVectorIndexSpecRequest) SyncEffectiveFieldsDuringCreate func (newState *DeltaSyncVectorIndexSpecRequest) SyncEffectiveFieldsDuringRead(existingState DeltaSyncVectorIndexSpecRequest) { } +func (c DeltaSyncVectorIndexSpecRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + EmbeddingSourceColumn{}.ToSchema(cs, append(path, "embedding_source_columns")...) + EmbeddingVectorColumn{}.ToSchema(cs, append(path, "embedding_vector_columns")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeltaSyncVectorIndexSpecRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -891,6 +922,13 @@ func (newState *DeltaSyncVectorIndexSpecResponse) SyncEffectiveFieldsDuringCreat func (newState *DeltaSyncVectorIndexSpecResponse) SyncEffectiveFieldsDuringRead(existingState DeltaSyncVectorIndexSpecResponse) { } +func (c DeltaSyncVectorIndexSpecResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + EmbeddingSourceColumn{}.ToSchema(cs, append(path, "embedding_source_columns")...) + EmbeddingVectorColumn{}.ToSchema(cs, append(path, "embedding_vector_columns")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeltaSyncVectorIndexSpecResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1011,6 +1049,13 @@ func (newState *DirectAccessVectorIndexSpec) SyncEffectiveFieldsDuringCreateOrUp func (newState *DirectAccessVectorIndexSpec) SyncEffectiveFieldsDuringRead(existingState DirectAccessVectorIndexSpec) { } +func (c DirectAccessVectorIndexSpec) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + EmbeddingSourceColumn{}.ToSchema(cs, append(path, "embedding_source_columns")...) + EmbeddingVectorColumn{}.ToSchema(cs, append(path, "embedding_vector_columns")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DirectAccessVectorIndexSpec. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1118,6 +1163,11 @@ func (newState *EmbeddingSourceColumn) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *EmbeddingSourceColumn) SyncEffectiveFieldsDuringRead(existingState EmbeddingSourceColumn) { } +func (c EmbeddingSourceColumn) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EmbeddingSourceColumn. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1164,6 +1214,11 @@ func (newState *EmbeddingVectorColumn) SyncEffectiveFieldsDuringCreateOrUpdate(p func (newState *EmbeddingVectorColumn) SyncEffectiveFieldsDuringRead(existingState EmbeddingVectorColumn) { } +func (c EmbeddingVectorColumn) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EmbeddingVectorColumn. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1224,6 +1279,12 @@ func (newState *EndpointInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Endpo func (newState *EndpointInfo) SyncEffectiveFieldsDuringRead(existingState EndpointInfo) { } +func (c EndpointInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + EndpointStatus{}.ToSchema(cs, append(path, "endpoint_status")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1315,6 +1376,11 @@ func (newState *EndpointStatus) SyncEffectiveFieldsDuringCreateOrUpdate(plan End func (newState *EndpointStatus) SyncEffectiveFieldsDuringRead(existingState EndpointStatus) { } +func (c EndpointStatus) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointStatus. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1354,12 +1420,6 @@ type GetEndpointRequest struct { EndpointName types.String `tfsdk:"-"` } -func (newState *GetEndpointRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetEndpointRequest) { -} - -func (newState *GetEndpointRequest) SyncEffectiveFieldsDuringRead(existingState GetEndpointRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetEndpointRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1397,12 +1457,6 @@ type GetIndexRequest struct { IndexName types.String `tfsdk:"-"` } -func (newState *GetIndexRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetIndexRequest) { -} - -func (newState *GetIndexRequest) SyncEffectiveFieldsDuringRead(existingState GetIndexRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetIndexRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1448,6 +1502,12 @@ func (newState *ListEndpointResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *ListEndpointResponse) SyncEffectiveFieldsDuringRead(existingState ListEndpointResponse) { } +func (c ListEndpointResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + EndpointInfo{}.ToSchema(cs, append(path, "endpoints")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListEndpointResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1517,12 +1577,6 @@ type ListEndpointsRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListEndpointsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListEndpointsRequest) { -} - -func (newState *ListEndpointsRequest) SyncEffectiveFieldsDuringRead(existingState ListEndpointsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListEndpointsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1562,12 +1616,6 @@ type ListIndexesRequest struct { PageToken types.String `tfsdk:"-"` } -func (newState *ListIndexesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListIndexesRequest) { -} - -func (newState *ListIndexesRequest) SyncEffectiveFieldsDuringRead(existingState ListIndexesRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListIndexesRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1611,6 +1659,12 @@ func (newState *ListValue) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListValu func (newState *ListValue) SyncEffectiveFieldsDuringRead(existingState ListValue) { } +func (c ListValue) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Value{}.ToSchema(cs, append(path, "values")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListValue. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1686,6 +1740,12 @@ func (newState *ListVectorIndexesResponse) SyncEffectiveFieldsDuringCreateOrUpda func (newState *ListVectorIndexesResponse) SyncEffectiveFieldsDuringRead(existingState ListVectorIndexesResponse) { } +func (c ListVectorIndexesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + MiniVectorIndex{}.ToSchema(cs, append(path, "vector_indexes")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListVectorIndexesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1763,6 +1823,12 @@ func (newState *MapStringValueEntry) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *MapStringValueEntry) SyncEffectiveFieldsDuringRead(existingState MapStringValueEntry) { } +func (c MapStringValueEntry) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Value{}.ToSchema(cs, append(path, "value")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MapStringValueEntry. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1851,6 +1917,11 @@ func (newState *MiniVectorIndex) SyncEffectiveFieldsDuringCreateOrUpdate(plan Mi func (newState *MiniVectorIndex) SyncEffectiveFieldsDuringRead(existingState MiniVectorIndex) { } +func (c MiniVectorIndex) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MiniVectorIndex. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1907,6 +1978,12 @@ func (newState *QueryVectorIndexNextPageRequest) SyncEffectiveFieldsDuringCreate func (newState *QueryVectorIndexNextPageRequest) SyncEffectiveFieldsDuringRead(existingState QueryVectorIndexNextPageRequest) { } +func (c QueryVectorIndexNextPageRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "index_name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryVectorIndexNextPageRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1973,6 +2050,13 @@ func (newState *QueryVectorIndexRequest) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *QueryVectorIndexRequest) SyncEffectiveFieldsDuringRead(existingState QueryVectorIndexRequest) { } +func (c QueryVectorIndexRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "columns")...) + cs.SetRequired(append(path, "index_name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryVectorIndexRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2094,6 +2178,13 @@ func (newState *QueryVectorIndexResponse) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *QueryVectorIndexResponse) SyncEffectiveFieldsDuringRead(existingState QueryVectorIndexResponse) { } +func (c QueryVectorIndexResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ResultManifest{}.ToSchema(cs, append(path, "manifest")...) + ResultData{}.ToSchema(cs, append(path, "result")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryVectorIndexResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2202,6 +2293,11 @@ func (newState *ResultData) SyncEffectiveFieldsDuringCreateOrUpdate(plan ResultD func (newState *ResultData) SyncEffectiveFieldsDuringRead(existingState ResultData) { } +func (c ResultData) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ResultData. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2281,6 +2377,12 @@ func (newState *ResultManifest) SyncEffectiveFieldsDuringCreateOrUpdate(plan Res func (newState *ResultManifest) SyncEffectiveFieldsDuringRead(existingState ResultManifest) { } +func (c ResultManifest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ColumnInfo{}.ToSchema(cs, append(path, "columns")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ResultManifest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2360,6 +2462,12 @@ func (newState *ScanVectorIndexRequest) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *ScanVectorIndexRequest) SyncEffectiveFieldsDuringRead(existingState ScanVectorIndexRequest) { } +func (c ScanVectorIndexRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "index_name")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ScanVectorIndexRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2409,6 +2517,12 @@ func (newState *ScanVectorIndexResponse) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *ScanVectorIndexResponse) SyncEffectiveFieldsDuringRead(existingState ScanVectorIndexResponse) { } +func (c ScanVectorIndexResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + Struct{}.ToSchema(cs, append(path, "data")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ScanVectorIndexResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2483,6 +2597,12 @@ func (newState *Struct) SyncEffectiveFieldsDuringCreateOrUpdate(plan Struct) { func (newState *Struct) SyncEffectiveFieldsDuringRead(existingState Struct) { } +func (c Struct) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + MapStringValueEntry{}.ToSchema(cs, append(path, "fields")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Struct. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2550,12 +2670,6 @@ type SyncIndexRequest struct { IndexName types.String `tfsdk:"-"` } -func (newState *SyncIndexRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan SyncIndexRequest) { -} - -func (newState *SyncIndexRequest) SyncEffectiveFieldsDuringRead(existingState SyncIndexRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in SyncIndexRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2590,12 +2704,6 @@ func (o SyncIndexRequest) Type(ctx context.Context) attr.Type { type SyncIndexResponse struct { } -func (newState *SyncIndexResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan SyncIndexResponse) { -} - -func (newState *SyncIndexResponse) SyncEffectiveFieldsDuringRead(existingState SyncIndexResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in SyncIndexResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2637,6 +2745,11 @@ func (newState *UpsertDataResult) SyncEffectiveFieldsDuringCreateOrUpdate(plan U func (newState *UpsertDataResult) SyncEffectiveFieldsDuringRead(existingState UpsertDataResult) { } +func (c UpsertDataResult) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpsertDataResult. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2715,6 +2828,13 @@ func (newState *UpsertDataVectorIndexRequest) SyncEffectiveFieldsDuringCreateOrU func (newState *UpsertDataVectorIndexRequest) SyncEffectiveFieldsDuringRead(existingState UpsertDataVectorIndexRequest) { } +func (c UpsertDataVectorIndexRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "index_name")...) + cs.SetRequired(append(path, "inputs_json")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpsertDataVectorIndexRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2762,6 +2882,12 @@ func (newState *UpsertDataVectorIndexResponse) SyncEffectiveFieldsDuringCreateOr func (newState *UpsertDataVectorIndexResponse) SyncEffectiveFieldsDuringRead(existingState UpsertDataVectorIndexResponse) { } +func (c UpsertDataVectorIndexResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + UpsertDataResult{}.ToSchema(cs, append(path, "result")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpsertDataVectorIndexResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2845,6 +2971,13 @@ func (newState *Value) SyncEffectiveFieldsDuringCreateOrUpdate(plan Value) { func (newState *Value) SyncEffectiveFieldsDuringRead(existingState Value) { } +func (c Value) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ListValue{}.ToSchema(cs, append(path, "list_value")...) + Struct{}.ToSchema(cs, append(path, "struct_value")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Value. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2976,6 +3109,14 @@ func (newState *VectorIndex) SyncEffectiveFieldsDuringCreateOrUpdate(plan Vector func (newState *VectorIndex) SyncEffectiveFieldsDuringRead(existingState VectorIndex) { } +func (c VectorIndex) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + DeltaSyncVectorIndexSpecResponse{}.ToSchema(cs, append(path, "delta_sync_index_spec")...) + DirectAccessVectorIndexSpec{}.ToSchema(cs, append(path, "direct_access_index_spec")...) + VectorIndexStatus{}.ToSchema(cs, append(path, "status")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in VectorIndex. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3126,6 +3267,11 @@ func (newState *VectorIndexStatus) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *VectorIndexStatus) SyncEffectiveFieldsDuringRead(existingState VectorIndexStatus) { } +func (c VectorIndexStatus) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in VectorIndexStatus. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/workspace_tf/legacy_model.go b/internal/service/workspace_tf/legacy_model.go index 676ad91b7..ca349b097 100755 --- a/internal/service/workspace_tf/legacy_model.go +++ b/internal/service/workspace_tf/legacy_model.go @@ -504,12 +504,6 @@ func (o *CreateScope_SdkV2) SetBackendAzureKeyvault(ctx context.Context, v Azure type CreateScopeResponse_SdkV2 struct { } -func (newState *CreateScopeResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateScopeResponse_SdkV2) { -} - -func (newState *CreateScopeResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState CreateScopeResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateScopeResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -686,12 +680,6 @@ func (o DeleteAcl_SdkV2) Type(ctx context.Context) attr.Type { type DeleteAclResponse_SdkV2 struct { } -func (newState *DeleteAclResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAclResponse_SdkV2) { -} - -func (newState *DeleteAclResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteAclResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAclResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -725,12 +713,6 @@ type DeleteCredentialsRequest_SdkV2 struct { CredentialId types.Int64 `tfsdk:"-"` } -func (newState *DeleteCredentialsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteCredentialsRequest_SdkV2) { -} - -func (newState *DeleteCredentialsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteCredentialsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCredentialsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -804,12 +786,6 @@ type DeleteRepoRequest_SdkV2 struct { RepoId types.Int64 `tfsdk:"-"` } -func (newState *DeleteRepoRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteRepoRequest_SdkV2) { -} - -func (newState *DeleteRepoRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteRepoRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteRepoRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -958,12 +934,6 @@ func (o DeleteScope_SdkV2) Type(ctx context.Context) attr.Type { type DeleteScopeResponse_SdkV2 struct { } -func (newState *DeleteScopeResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteScopeResponse_SdkV2) { -} - -func (newState *DeleteScopeResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState DeleteScopeResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteScopeResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1095,12 +1065,6 @@ type ExportRequest_SdkV2 struct { Path types.String `tfsdk:"-"` } -func (newState *ExportRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ExportRequest_SdkV2) { -} - -func (newState *ExportRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ExportRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExportRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1189,12 +1153,6 @@ type GetAclRequest_SdkV2 struct { Scope types.String `tfsdk:"-"` } -func (newState *GetAclRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAclRequest_SdkV2) { -} - -func (newState *GetAclRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetAclRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAclRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1234,12 +1192,6 @@ type GetCredentialsRequest_SdkV2 struct { CredentialId types.Int64 `tfsdk:"-"` } -func (newState *GetCredentialsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetCredentialsRequest_SdkV2) { -} - -func (newState *GetCredentialsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetCredentialsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetCredentialsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1328,12 +1280,6 @@ type GetRepoPermissionLevelsRequest_SdkV2 struct { RepoId types.String `tfsdk:"-"` } -func (newState *GetRepoPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRepoPermissionLevelsRequest_SdkV2) { -} - -func (newState *GetRepoPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetRepoPermissionLevelsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRepoPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1443,12 +1389,6 @@ type GetRepoPermissionsRequest_SdkV2 struct { RepoId types.String `tfsdk:"-"` } -func (newState *GetRepoPermissionsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRepoPermissionsRequest_SdkV2) { -} - -func (newState *GetRepoPermissionsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetRepoPermissionsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRepoPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1486,12 +1426,6 @@ type GetRepoRequest_SdkV2 struct { RepoId types.Int64 `tfsdk:"-"` } -func (newState *GetRepoRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRepoRequest_SdkV2) { -} - -func (newState *GetRepoRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetRepoRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRepoRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1627,12 +1561,6 @@ type GetSecretRequest_SdkV2 struct { Scope types.String `tfsdk:"-"` } -func (newState *GetSecretRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetSecretRequest_SdkV2) { -} - -func (newState *GetSecretRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetSecretRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetSecretRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1718,12 +1646,6 @@ type GetStatusRequest_SdkV2 struct { Path types.String `tfsdk:"-"` } -func (newState *GetStatusRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetStatusRequest_SdkV2) { -} - -func (newState *GetStatusRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetStatusRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetStatusRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1763,12 +1685,6 @@ type GetWorkspaceObjectPermissionLevelsRequest_SdkV2 struct { WorkspaceObjectType types.String `tfsdk:"-"` } -func (newState *GetWorkspaceObjectPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWorkspaceObjectPermissionLevelsRequest_SdkV2) { -} - -func (newState *GetWorkspaceObjectPermissionLevelsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetWorkspaceObjectPermissionLevelsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWorkspaceObjectPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1882,12 +1798,6 @@ type GetWorkspaceObjectPermissionsRequest_SdkV2 struct { WorkspaceObjectType types.String `tfsdk:"-"` } -func (newState *GetWorkspaceObjectPermissionsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWorkspaceObjectPermissionsRequest_SdkV2) { -} - -func (newState *GetWorkspaceObjectPermissionsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState GetWorkspaceObjectPermissionsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWorkspaceObjectPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2041,12 +1951,6 @@ type ListAclsRequest_SdkV2 struct { Scope types.String `tfsdk:"-"` } -func (newState *ListAclsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAclsRequest_SdkV2) { -} - -func (newState *ListAclsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListAclsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAclsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2234,12 +2138,6 @@ type ListReposRequest_SdkV2 struct { PathPrefix types.String `tfsdk:"-"` } -func (newState *ListReposRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListReposRequest_SdkV2) { -} - -func (newState *ListReposRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListReposRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListReposRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2500,12 +2398,6 @@ type ListSecretsRequest_SdkV2 struct { Scope types.String `tfsdk:"-"` } -func (newState *ListSecretsRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListSecretsRequest_SdkV2) { -} - -func (newState *ListSecretsRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListSecretsRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListSecretsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2617,12 +2509,6 @@ type ListWorkspaceRequest_SdkV2 struct { Path types.String `tfsdk:"-"` } -func (newState *ListWorkspaceRequest_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListWorkspaceRequest_SdkV2) { -} - -func (newState *ListWorkspaceRequest_SdkV2) SyncEffectiveFieldsDuringRead(existingState ListWorkspaceRequest_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListWorkspaceRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2865,12 +2751,6 @@ func (o PutAcl_SdkV2) Type(ctx context.Context) attr.Type { type PutAclResponse_SdkV2 struct { } -func (newState *PutAclResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan PutAclResponse_SdkV2) { -} - -func (newState *PutAclResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState PutAclResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in PutAclResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2955,12 +2835,6 @@ func (o PutSecret_SdkV2) Type(ctx context.Context) attr.Type { type PutSecretResponse_SdkV2 struct { } -func (newState *PutSecretResponse_SdkV2) SyncEffectiveFieldsDuringCreateOrUpdate(plan PutSecretResponse_SdkV2) { -} - -func (newState *PutSecretResponse_SdkV2) SyncEffectiveFieldsDuringRead(existingState PutSecretResponse_SdkV2) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in PutSecretResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to diff --git a/internal/service/workspace_tf/model.go b/internal/service/workspace_tf/model.go index 17d354dc5..e360344d7 100755 --- a/internal/service/workspace_tf/model.go +++ b/internal/service/workspace_tf/model.go @@ -15,6 +15,7 @@ import ( "reflect" pluginfwcommon "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/common" + "github.com/databricks/terraform-provider-databricks/internal/providers/pluginfw/tfschema" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/types" @@ -34,6 +35,13 @@ func (newState *AclItem) SyncEffectiveFieldsDuringCreateOrUpdate(plan AclItem) { func (newState *AclItem) SyncEffectiveFieldsDuringRead(existingState AclItem) { } +func (c AclItem) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "permission")...) + cs.SetRequired(append(path, "principal")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AclItem. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -81,6 +89,13 @@ func (newState *AzureKeyVaultSecretScopeMetadata) SyncEffectiveFieldsDuringCreat func (newState *AzureKeyVaultSecretScopeMetadata) SyncEffectiveFieldsDuringRead(existingState AzureKeyVaultSecretScopeMetadata) { } +func (c AzureKeyVaultSecretScopeMetadata) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "dns_name")...) + cs.SetRequired(append(path, "resource_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in AzureKeyVaultSecretScopeMetadata. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -142,6 +157,12 @@ func (newState *CreateCredentialsRequest) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *CreateCredentialsRequest) SyncEffectiveFieldsDuringRead(existingState CreateCredentialsRequest) { } +func (c CreateCredentialsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "git_provider")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateCredentialsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -193,6 +214,13 @@ func (newState *CreateCredentialsResponse) SyncEffectiveFieldsDuringCreateOrUpda func (newState *CreateCredentialsResponse) SyncEffectiveFieldsDuringRead(existingState CreateCredentialsResponse) { } +func (c CreateCredentialsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "credential_id")...) + cs.SetRequired(append(path, "git_provider")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateCredentialsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -251,6 +279,14 @@ func (newState *CreateRepoRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *CreateRepoRequest) SyncEffectiveFieldsDuringRead(existingState CreateRepoRequest) { } +func (c CreateRepoRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "provider")...) + SparseCheckout{}.ToSchema(cs, append(path, "sparse_checkout")...) + cs.SetRequired(append(path, "url")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateRepoRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -342,6 +378,12 @@ func (newState *CreateRepoResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *CreateRepoResponse) SyncEffectiveFieldsDuringRead(existingState CreateRepoResponse) { } +func (c CreateRepoResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SparseCheckout{}.ToSchema(cs, append(path, "sparse_checkout")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateRepoResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -434,6 +476,13 @@ func (newState *CreateScope) SyncEffectiveFieldsDuringCreateOrUpdate(plan Create func (newState *CreateScope) SyncEffectiveFieldsDuringRead(existingState CreateScope) { } +func (c CreateScope) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AzureKeyVaultSecretScopeMetadata{}.ToSchema(cs, append(path, "backend_azure_keyvault")...) + cs.SetRequired(append(path, "scope")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateScope. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -504,12 +553,6 @@ func (o *CreateScope) SetBackendAzureKeyvault(ctx context.Context, v AzureKeyVau type CreateScopeResponse struct { } -func (newState *CreateScopeResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateScopeResponse) { -} - -func (newState *CreateScopeResponse) SyncEffectiveFieldsDuringRead(existingState CreateScopeResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateScopeResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -553,6 +596,12 @@ func (newState *CredentialInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan Cre func (newState *CredentialInfo) SyncEffectiveFieldsDuringRead(existingState CredentialInfo) { } +func (c CredentialInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "credential_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in CredentialInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -604,6 +653,12 @@ func (newState *Delete) SyncEffectiveFieldsDuringCreateOrUpdate(plan Delete) { func (newState *Delete) SyncEffectiveFieldsDuringRead(existingState Delete) { } +func (c Delete) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "path")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Delete. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -650,6 +705,13 @@ func (newState *DeleteAcl) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAc func (newState *DeleteAcl) SyncEffectiveFieldsDuringRead(existingState DeleteAcl) { } +func (c DeleteAcl) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "principal")...) + cs.SetRequired(append(path, "scope")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAcl. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -686,12 +748,6 @@ func (o DeleteAcl) Type(ctx context.Context) attr.Type { type DeleteAclResponse struct { } -func (newState *DeleteAclResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAclResponse) { -} - -func (newState *DeleteAclResponse) SyncEffectiveFieldsDuringRead(existingState DeleteAclResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAclResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -725,12 +781,6 @@ type DeleteCredentialsRequest struct { CredentialId types.Int64 `tfsdk:"-"` } -func (newState *DeleteCredentialsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteCredentialsRequest) { -} - -func (newState *DeleteCredentialsRequest) SyncEffectiveFieldsDuringRead(existingState DeleteCredentialsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCredentialsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -771,6 +821,11 @@ func (newState *DeleteCredentialsResponse) SyncEffectiveFieldsDuringCreateOrUpda func (newState *DeleteCredentialsResponse) SyncEffectiveFieldsDuringRead(existingState DeleteCredentialsResponse) { } +func (c DeleteCredentialsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteCredentialsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -804,12 +859,6 @@ type DeleteRepoRequest struct { RepoId types.Int64 `tfsdk:"-"` } -func (newState *DeleteRepoRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteRepoRequest) { -} - -func (newState *DeleteRepoRequest) SyncEffectiveFieldsDuringRead(existingState DeleteRepoRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteRepoRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -850,6 +899,11 @@ func (newState *DeleteRepoResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *DeleteRepoResponse) SyncEffectiveFieldsDuringRead(existingState DeleteRepoResponse) { } +func (c DeleteRepoResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteRepoResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -886,6 +940,11 @@ func (newState *DeleteResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan Del func (newState *DeleteResponse) SyncEffectiveFieldsDuringRead(existingState DeleteResponse) { } +func (c DeleteResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -924,6 +983,12 @@ func (newState *DeleteScope) SyncEffectiveFieldsDuringCreateOrUpdate(plan Delete func (newState *DeleteScope) SyncEffectiveFieldsDuringRead(existingState DeleteScope) { } +func (c DeleteScope) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "scope")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteScope. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -958,12 +1023,6 @@ func (o DeleteScope) Type(ctx context.Context) attr.Type { type DeleteScopeResponse struct { } -func (newState *DeleteScopeResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteScopeResponse) { -} - -func (newState *DeleteScopeResponse) SyncEffectiveFieldsDuringRead(existingState DeleteScopeResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteScopeResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1004,6 +1063,13 @@ func (newState *DeleteSecret) SyncEffectiveFieldsDuringCreateOrUpdate(plan Delet func (newState *DeleteSecret) SyncEffectiveFieldsDuringRead(existingState DeleteSecret) { } +func (c DeleteSecret) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "key")...) + cs.SetRequired(append(path, "scope")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteSecret. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1046,6 +1112,11 @@ func (newState *DeleteSecretResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *DeleteSecretResponse) SyncEffectiveFieldsDuringRead(existingState DeleteSecretResponse) { } +func (c DeleteSecretResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteSecretResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1095,12 +1166,6 @@ type ExportRequest struct { Path types.String `tfsdk:"-"` } -func (newState *ExportRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ExportRequest) { -} - -func (newState *ExportRequest) SyncEffectiveFieldsDuringRead(existingState ExportRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExportRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1148,6 +1213,11 @@ func (newState *ExportResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan Exp func (newState *ExportResponse) SyncEffectiveFieldsDuringRead(existingState ExportResponse) { } +func (c ExportResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ExportResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1189,12 +1259,6 @@ type GetAclRequest struct { Scope types.String `tfsdk:"-"` } -func (newState *GetAclRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAclRequest) { -} - -func (newState *GetAclRequest) SyncEffectiveFieldsDuringRead(existingState GetAclRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAclRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1234,12 +1298,6 @@ type GetCredentialsRequest struct { CredentialId types.Int64 `tfsdk:"-"` } -func (newState *GetCredentialsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetCredentialsRequest) { -} - -func (newState *GetCredentialsRequest) SyncEffectiveFieldsDuringRead(existingState GetCredentialsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetCredentialsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1287,6 +1345,12 @@ func (newState *GetCredentialsResponse) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *GetCredentialsResponse) SyncEffectiveFieldsDuringRead(existingState GetCredentialsResponse) { } +func (c GetCredentialsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "credential_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetCredentialsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1328,12 +1392,6 @@ type GetRepoPermissionLevelsRequest struct { RepoId types.String `tfsdk:"-"` } -func (newState *GetRepoPermissionLevelsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRepoPermissionLevelsRequest) { -} - -func (newState *GetRepoPermissionLevelsRequest) SyncEffectiveFieldsDuringRead(existingState GetRepoPermissionLevelsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRepoPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1376,6 +1434,12 @@ func (newState *GetRepoPermissionLevelsResponse) SyncEffectiveFieldsDuringCreate func (newState *GetRepoPermissionLevelsResponse) SyncEffectiveFieldsDuringRead(existingState GetRepoPermissionLevelsResponse) { } +func (c GetRepoPermissionLevelsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RepoPermissionsDescription{}.ToSchema(cs, append(path, "permission_levels")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRepoPermissionLevelsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1443,12 +1507,6 @@ type GetRepoPermissionsRequest struct { RepoId types.String `tfsdk:"-"` } -func (newState *GetRepoPermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRepoPermissionsRequest) { -} - -func (newState *GetRepoPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState GetRepoPermissionsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRepoPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1486,12 +1544,6 @@ type GetRepoRequest struct { RepoId types.Int64 `tfsdk:"-"` } -func (newState *GetRepoRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetRepoRequest) { -} - -func (newState *GetRepoRequest) SyncEffectiveFieldsDuringRead(existingState GetRepoRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRepoRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1546,6 +1598,12 @@ func (newState *GetRepoResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan Ge func (newState *GetRepoResponse) SyncEffectiveFieldsDuringRead(existingState GetRepoResponse) { } +func (c GetRepoResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SparseCheckout{}.ToSchema(cs, append(path, "sparse_checkout")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetRepoResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1627,12 +1685,6 @@ type GetSecretRequest struct { Scope types.String `tfsdk:"-"` } -func (newState *GetSecretRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetSecretRequest) { -} - -func (newState *GetSecretRequest) SyncEffectiveFieldsDuringRead(existingState GetSecretRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetSecretRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1679,6 +1731,11 @@ func (newState *GetSecretResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *GetSecretResponse) SyncEffectiveFieldsDuringRead(existingState GetSecretResponse) { } +func (c GetSecretResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetSecretResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1718,12 +1775,6 @@ type GetStatusRequest struct { Path types.String `tfsdk:"-"` } -func (newState *GetStatusRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetStatusRequest) { -} - -func (newState *GetStatusRequest) SyncEffectiveFieldsDuringRead(existingState GetStatusRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetStatusRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1763,12 +1814,6 @@ type GetWorkspaceObjectPermissionLevelsRequest struct { WorkspaceObjectType types.String `tfsdk:"-"` } -func (newState *GetWorkspaceObjectPermissionLevelsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWorkspaceObjectPermissionLevelsRequest) { -} - -func (newState *GetWorkspaceObjectPermissionLevelsRequest) SyncEffectiveFieldsDuringRead(existingState GetWorkspaceObjectPermissionLevelsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWorkspaceObjectPermissionLevelsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1813,6 +1858,12 @@ func (newState *GetWorkspaceObjectPermissionLevelsResponse) SyncEffectiveFieldsD func (newState *GetWorkspaceObjectPermissionLevelsResponse) SyncEffectiveFieldsDuringRead(existingState GetWorkspaceObjectPermissionLevelsResponse) { } +func (c GetWorkspaceObjectPermissionLevelsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + WorkspaceObjectPermissionsDescription{}.ToSchema(cs, append(path, "permission_levels")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWorkspaceObjectPermissionLevelsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1882,12 +1933,6 @@ type GetWorkspaceObjectPermissionsRequest struct { WorkspaceObjectType types.String `tfsdk:"-"` } -func (newState *GetWorkspaceObjectPermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWorkspaceObjectPermissionsRequest) { -} - -func (newState *GetWorkspaceObjectPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState GetWorkspaceObjectPermissionsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWorkspaceObjectPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -1960,6 +2005,12 @@ func (newState *Import) SyncEffectiveFieldsDuringCreateOrUpdate(plan Import) { func (newState *Import) SyncEffectiveFieldsDuringRead(existingState Import) { } +func (c Import) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "path")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Import. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2008,6 +2059,11 @@ func (newState *ImportResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan Imp func (newState *ImportResponse) SyncEffectiveFieldsDuringRead(existingState ImportResponse) { } +func (c ImportResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ImportResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2041,12 +2097,6 @@ type ListAclsRequest struct { Scope types.String `tfsdk:"-"` } -func (newState *ListAclsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAclsRequest) { -} - -func (newState *ListAclsRequest) SyncEffectiveFieldsDuringRead(existingState ListAclsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAclsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2089,6 +2139,12 @@ func (newState *ListAclsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan L func (newState *ListAclsResponse) SyncEffectiveFieldsDuringRead(existingState ListAclsResponse) { } +func (c ListAclsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AclItem{}.ToSchema(cs, append(path, "items")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAclsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2161,6 +2217,12 @@ func (newState *ListCredentialsResponse) SyncEffectiveFieldsDuringCreateOrUpdate func (newState *ListCredentialsResponse) SyncEffectiveFieldsDuringRead(existingState ListCredentialsResponse) { } +func (c ListCredentialsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + CredentialInfo{}.ToSchema(cs, append(path, "credentials")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListCredentialsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2234,12 +2296,6 @@ type ListReposRequest struct { PathPrefix types.String `tfsdk:"-"` } -func (newState *ListReposRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListReposRequest) { -} - -func (newState *ListReposRequest) SyncEffectiveFieldsDuringRead(existingState ListReposRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListReposRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2287,6 +2343,12 @@ func (newState *ListReposResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ListReposResponse) SyncEffectiveFieldsDuringRead(existingState ListReposResponse) { } +func (c ListReposResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RepoInfo{}.ToSchema(cs, append(path, "repos")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListReposResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2361,6 +2423,12 @@ func (newState *ListResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListR func (newState *ListResponse) SyncEffectiveFieldsDuringRead(existingState ListResponse) { } +func (c ListResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + ObjectInfo{}.ToSchema(cs, append(path, "objects")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2433,6 +2501,12 @@ func (newState *ListScopesResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *ListScopesResponse) SyncEffectiveFieldsDuringRead(existingState ListScopesResponse) { } +func (c ListScopesResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SecretScope{}.ToSchema(cs, append(path, "scopes")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListScopesResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2500,12 +2574,6 @@ type ListSecretsRequest struct { Scope types.String `tfsdk:"-"` } -func (newState *ListSecretsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListSecretsRequest) { -} - -func (newState *ListSecretsRequest) SyncEffectiveFieldsDuringRead(existingState ListSecretsRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListSecretsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2548,6 +2616,12 @@ func (newState *ListSecretsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(pla func (newState *ListSecretsResponse) SyncEffectiveFieldsDuringRead(existingState ListSecretsResponse) { } +func (c ListSecretsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SecretMetadata{}.ToSchema(cs, append(path, "secrets")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListSecretsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2617,12 +2691,6 @@ type ListWorkspaceRequest struct { Path types.String `tfsdk:"-"` } -func (newState *ListWorkspaceRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListWorkspaceRequest) { -} - -func (newState *ListWorkspaceRequest) SyncEffectiveFieldsDuringRead(existingState ListWorkspaceRequest) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in ListWorkspaceRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2669,6 +2737,12 @@ func (newState *Mkdirs) SyncEffectiveFieldsDuringCreateOrUpdate(plan Mkdirs) { func (newState *Mkdirs) SyncEffectiveFieldsDuringRead(existingState Mkdirs) { } +func (c Mkdirs) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "path")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in Mkdirs. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2709,6 +2783,11 @@ func (newState *MkdirsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan Mkd func (newState *MkdirsResponse) SyncEffectiveFieldsDuringRead(existingState MkdirsResponse) { } +func (c MkdirsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in MkdirsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2767,6 +2846,11 @@ func (newState *ObjectInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan ObjectI func (newState *ObjectInfo) SyncEffectiveFieldsDuringRead(existingState ObjectInfo) { } +func (c ObjectInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in ObjectInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2827,6 +2911,14 @@ func (newState *PutAcl) SyncEffectiveFieldsDuringCreateOrUpdate(plan PutAcl) { func (newState *PutAcl) SyncEffectiveFieldsDuringRead(existingState PutAcl) { } +func (c PutAcl) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "permission")...) + cs.SetRequired(append(path, "principal")...) + cs.SetRequired(append(path, "scope")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PutAcl. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2865,12 +2957,6 @@ func (o PutAcl) Type(ctx context.Context) attr.Type { type PutAclResponse struct { } -func (newState *PutAclResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan PutAclResponse) { -} - -func (newState *PutAclResponse) SyncEffectiveFieldsDuringRead(existingState PutAclResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in PutAclResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2915,6 +3001,13 @@ func (newState *PutSecret) SyncEffectiveFieldsDuringCreateOrUpdate(plan PutSecre func (newState *PutSecret) SyncEffectiveFieldsDuringRead(existingState PutSecret) { } +func (c PutSecret) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "key")...) + cs.SetRequired(append(path, "scope")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in PutSecret. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -2955,12 +3048,6 @@ func (o PutSecret) Type(ctx context.Context) attr.Type { type PutSecretResponse struct { } -func (newState *PutSecretResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan PutSecretResponse) { -} - -func (newState *PutSecretResponse) SyncEffectiveFieldsDuringRead(existingState PutSecretResponse) { -} - // GetComplexFieldTypes returns a map of the types of elements in complex fields in PutSecretResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3005,6 +3092,11 @@ func (newState *RepoAccessControlRequest) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *RepoAccessControlRequest) SyncEffectiveFieldsDuringRead(existingState RepoAccessControlRequest) { } +func (c RepoAccessControlRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RepoAccessControlRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3061,6 +3153,12 @@ func (newState *RepoAccessControlResponse) SyncEffectiveFieldsDuringCreateOrUpda func (newState *RepoAccessControlResponse) SyncEffectiveFieldsDuringRead(existingState RepoAccessControlResponse) { } +func (c RepoAccessControlResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RepoPermission{}.ToSchema(cs, append(path, "all_permissions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RepoAccessControlResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3154,6 +3252,12 @@ func (newState *RepoInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan RepoInfo) func (newState *RepoInfo) SyncEffectiveFieldsDuringRead(existingState RepoInfo) { } +func (c RepoInfo) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + SparseCheckout{}.ToSchema(cs, append(path, "sparse_checkout")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RepoInfo. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3241,6 +3345,11 @@ func (newState *RepoPermission) SyncEffectiveFieldsDuringCreateOrUpdate(plan Rep func (newState *RepoPermission) SyncEffectiveFieldsDuringRead(existingState RepoPermission) { } +func (c RepoPermission) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RepoPermission. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3320,6 +3429,12 @@ func (newState *RepoPermissions) SyncEffectiveFieldsDuringCreateOrUpdate(plan Re func (newState *RepoPermissions) SyncEffectiveFieldsDuringRead(existingState RepoPermissions) { } +func (c RepoPermissions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RepoAccessControlResponse{}.ToSchema(cs, append(path, "access_control_list")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RepoPermissions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3397,6 +3512,11 @@ func (newState *RepoPermissionsDescription) SyncEffectiveFieldsDuringCreateOrUpd func (newState *RepoPermissionsDescription) SyncEffectiveFieldsDuringRead(existingState RepoPermissionsDescription) { } +func (c RepoPermissionsDescription) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RepoPermissionsDescription. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3442,6 +3562,13 @@ func (newState *RepoPermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate( func (newState *RepoPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState RepoPermissionsRequest) { } +func (c RepoPermissionsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + RepoAccessControlRequest{}.ToSchema(cs, append(path, "access_control_list")...) + cs.SetRequired(append(path, "repo_id")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in RepoPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3518,6 +3645,11 @@ func (newState *SecretMetadata) SyncEffectiveFieldsDuringCreateOrUpdate(plan Sec func (newState *SecretMetadata) SyncEffectiveFieldsDuringRead(existingState SecretMetadata) { } +func (c SecretMetadata) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SecretMetadata. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3566,6 +3698,12 @@ func (newState *SecretScope) SyncEffectiveFieldsDuringCreateOrUpdate(plan Secret func (newState *SecretScope) SyncEffectiveFieldsDuringRead(existingState SecretScope) { } +func (c SecretScope) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + AzureKeyVaultSecretScopeMetadata{}.ToSchema(cs, append(path, "keyvault_metadata")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SecretScope. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3646,6 +3784,11 @@ func (newState *SparseCheckout) SyncEffectiveFieldsDuringCreateOrUpdate(plan Spa func (newState *SparseCheckout) SyncEffectiveFieldsDuringRead(existingState SparseCheckout) { } +func (c SparseCheckout) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SparseCheckout. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3722,6 +3865,11 @@ func (newState *SparseCheckoutUpdate) SyncEffectiveFieldsDuringCreateOrUpdate(pl func (newState *SparseCheckoutUpdate) SyncEffectiveFieldsDuringRead(existingState SparseCheckoutUpdate) { } +func (c SparseCheckoutUpdate) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in SparseCheckoutUpdate. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3813,6 +3961,13 @@ func (newState *UpdateCredentialsRequest) SyncEffectiveFieldsDuringCreateOrUpdat func (newState *UpdateCredentialsRequest) SyncEffectiveFieldsDuringRead(existingState UpdateCredentialsRequest) { } +func (c UpdateCredentialsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "credential_id")...) + cs.SetRequired(append(path, "git_provider")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateCredentialsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3859,6 +4014,11 @@ func (newState *UpdateCredentialsResponse) SyncEffectiveFieldsDuringCreateOrUpda func (newState *UpdateCredentialsResponse) SyncEffectiveFieldsDuringRead(existingState UpdateCredentialsResponse) { } +func (c UpdateCredentialsResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateCredentialsResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3907,6 +4067,13 @@ func (newState *UpdateRepoRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *UpdateRepoRequest) SyncEffectiveFieldsDuringRead(existingState UpdateRepoRequest) { } +func (c UpdateRepoRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + cs.SetRequired(append(path, "repo_id")...) + SparseCheckoutUpdate{}.ToSchema(cs, append(path, "sparse_checkout")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateRepoRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -3983,6 +4150,11 @@ func (newState *UpdateRepoResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan func (newState *UpdateRepoResponse) SyncEffectiveFieldsDuringRead(existingState UpdateRepoResponse) { } +func (c UpdateRepoResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateRepoResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4027,6 +4199,11 @@ func (newState *WorkspaceObjectAccessControlRequest) SyncEffectiveFieldsDuringCr func (newState *WorkspaceObjectAccessControlRequest) SyncEffectiveFieldsDuringRead(existingState WorkspaceObjectAccessControlRequest) { } +func (c WorkspaceObjectAccessControlRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WorkspaceObjectAccessControlRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4083,6 +4260,12 @@ func (newState *WorkspaceObjectAccessControlResponse) SyncEffectiveFieldsDuringC func (newState *WorkspaceObjectAccessControlResponse) SyncEffectiveFieldsDuringRead(existingState WorkspaceObjectAccessControlResponse) { } +func (c WorkspaceObjectAccessControlResponse) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + WorkspaceObjectPermission{}.ToSchema(cs, append(path, "all_permissions")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WorkspaceObjectAccessControlResponse. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4166,6 +4349,11 @@ func (newState *WorkspaceObjectPermission) SyncEffectiveFieldsDuringCreateOrUpda func (newState *WorkspaceObjectPermission) SyncEffectiveFieldsDuringRead(existingState WorkspaceObjectPermission) { } +func (c WorkspaceObjectPermission) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WorkspaceObjectPermission. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4245,6 +4433,12 @@ func (newState *WorkspaceObjectPermissions) SyncEffectiveFieldsDuringCreateOrUpd func (newState *WorkspaceObjectPermissions) SyncEffectiveFieldsDuringRead(existingState WorkspaceObjectPermissions) { } +func (c WorkspaceObjectPermissions) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + WorkspaceObjectAccessControlResponse{}.ToSchema(cs, append(path, "access_control_list")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WorkspaceObjectPermissions. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4322,6 +4516,11 @@ func (newState *WorkspaceObjectPermissionsDescription) SyncEffectiveFieldsDuring func (newState *WorkspaceObjectPermissionsDescription) SyncEffectiveFieldsDuringRead(existingState WorkspaceObjectPermissionsDescription) { } +func (c WorkspaceObjectPermissionsDescription) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WorkspaceObjectPermissionsDescription. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to @@ -4369,6 +4568,14 @@ func (newState *WorkspaceObjectPermissionsRequest) SyncEffectiveFieldsDuringCrea func (newState *WorkspaceObjectPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState WorkspaceObjectPermissionsRequest) { } +func (c WorkspaceObjectPermissionsRequest) ToSchema(cs tfschema.CustomizableSchema, path ...string) tfschema.CustomizableSchema { + WorkspaceObjectAccessControlRequest{}.ToSchema(cs, append(path, "access_control_list")...) + cs.SetRequired(append(path, "workspace_object_id")...) + cs.SetRequired(append(path, "workspace_object_type")...) + + return cs +} + // GetComplexFieldTypes returns a map of the types of elements in complex fields in WorkspaceObjectPermissionsRequest. // Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry // the type information of their elements in the Go type system. This function provides a way to