diff --git a/internal/service/apps_tf/model.go b/internal/service/apps_tf/model.go index 58d1e0fd0..ea4345a1d 100755 --- a/internal/service/apps_tf/model.go +++ b/internal/service/apps_tf/model.go @@ -24,11 +24,11 @@ import ( type App struct { // The active deployment of the app. A deployment is considered active when // it has been deployed to the app compute. - ActiveDeployment types.Object `tfsdk:"active_deployment" tf:"optional,object"` + ActiveDeployment types.Object `tfsdk:"active_deployment" tf:"computed"` - AppStatus types.Object `tfsdk:"app_status" tf:"optional,object"` + AppStatus types.Object `tfsdk:"app_status" tf:"computed"` - ComputeStatus types.Object `tfsdk:"compute_status" tf:"optional,object"` + ComputeStatus types.Object `tfsdk:"compute_status" tf:"computed"` // The creation time of the app. Formatted timestamp in ISO 6801. CreateTime types.String `tfsdk:"create_time" tf:"computed"` // The email of the user that created the app. @@ -36,7 +36,7 @@ type App struct { // The default workspace file system path of the source code from which app // deployment are created. This field tracks the workspace source code path // of the last active deployment. - DefaultSourceCodePath types.String `tfsdk:"default_source_code_path" tf:"optional"` + DefaultSourceCodePath types.String `tfsdk:"default_source_code_path" tf:"computed"` // The description of the app. Description types.String `tfsdk:"description" tf:"optional"` // The name of the app. The name must contain only lowercase alphanumeric @@ -44,7 +44,7 @@ type App struct { Name types.String `tfsdk:"name" tf:""` // The pending deployment of the app. A deployment is considered pending // when it is being prepared for deployment to the app compute. - PendingDeployment types.Object `tfsdk:"pending_deployment" tf:"optional,object"` + PendingDeployment types.Object `tfsdk:"pending_deployment" tf:"computed"` // Resources for the app. Resources types.List `tfsdk:"resources" tf:"optional"` @@ -422,7 +422,7 @@ type AppDeployment struct { // The email of the user creates the deployment. Creator types.String `tfsdk:"creator" tf:"computed"` // The deployment artifacts for an app. - DeploymentArtifacts types.Object `tfsdk:"deployment_artifacts" tf:"optional,object"` + DeploymentArtifacts types.Object `tfsdk:"deployment_artifacts" tf:"computed"` // The unique id of the deployment. DeploymentId types.String `tfsdk:"deployment_id" tf:"optional"` // The mode of which the deployment will manage the source code. @@ -436,7 +436,7 @@ type AppDeployment struct { // the deployment. SourceCodePath types.String `tfsdk:"source_code_path" tf:"optional"` // Status and status message of the deployment - Status types.Object `tfsdk:"status" tf:"optional,object"` + Status types.Object `tfsdk:"status" tf:"computed"` // The update time of the deployment. Formatted timestamp in ISO 6801. UpdateTime types.String `tfsdk:"update_time" tf:"computed"` } @@ -598,7 +598,7 @@ type AppDeploymentStatus struct { // Message corresponding with the deployment state. Message types.String `tfsdk:"message" tf:"computed"` // State of the deployment. - State types.String `tfsdk:"state" tf:"optional"` + State types.String `tfsdk:"state" tf:"computed"` } func (newState *AppDeploymentStatus) SyncEffectiveFieldsDuringCreateOrUpdate(plan AppDeploymentStatus) { @@ -1293,7 +1293,7 @@ type ApplicationStatus struct { // Application status message Message types.String `tfsdk:"message" tf:"computed"` // State of the application. - State types.String `tfsdk:"state" tf:"optional"` + State types.String `tfsdk:"state" tf:"computed"` } func (newState *ApplicationStatus) SyncEffectiveFieldsDuringCreateOrUpdate(plan ApplicationStatus) { @@ -1339,7 +1339,7 @@ type ComputeStatus struct { // Compute status message Message types.String `tfsdk:"message" tf:"computed"` // State of the app compute. - State types.String `tfsdk:"state" tf:"optional"` + State types.String `tfsdk:"state" tf:"computed"` } func (newState *ComputeStatus) SyncEffectiveFieldsDuringCreateOrUpdate(plan ComputeStatus) { diff --git a/internal/service/catalog_tf/model.go b/internal/service/catalog_tf/model.go index ffdbcd4f2..1c3726153 100755 --- a/internal/service/catalog_tf/model.go +++ b/internal/service/catalog_tf/model.go @@ -921,13 +921,13 @@ func (o AwsCredentials) Type(ctx context.Context) attr.Type { type AwsIamRole struct { // The external ID used in role assumption to prevent the confused deputy // problem. - ExternalId types.String `tfsdk:"external_id" tf:"optional"` + ExternalId types.String `tfsdk:"external_id" tf:"computed"` // The Amazon Resource Name (ARN) of the AWS IAM role used to vend temporary // credentials. RoleArn types.String `tfsdk:"role_arn" tf:"optional"` // The Amazon Resource Name (ARN) of the AWS IAM user managed by Databricks. // This is the identity that is going to assume the AWS IAM role. - UnityCatalogIamArn types.String `tfsdk:"unity_catalog_iam_arn" tf:"optional"` + UnityCatalogIamArn types.String `tfsdk:"unity_catalog_iam_arn" tf:"computed"` } func (newState *AwsIamRole) SyncEffectiveFieldsDuringCreateOrUpdate(plan AwsIamRole) { @@ -12916,14 +12916,14 @@ type OnlineTable struct { // Specification of the online table. Spec types.List `tfsdk:"spec" tf:"optional,object"` // Online Table data synchronization status - Status types.List `tfsdk:"status" tf:"optional,object"` + Status types.List `tfsdk:"status" tf:"computed"` // Data serving REST API URL for this table TableServingUrl types.String `tfsdk:"table_serving_url" tf:"computed"` // The provisioning state of the online table entity in Unity Catalog. This // is distinct from the state of the data synchronization pipeline (i.e. the // table may be in "ACTIVE" but the pipeline may be in "PROVISIONING" as it // runs asynchronously). - UnityCatalogProvisioningState types.String `tfsdk:"unity_catalog_provisioning_state" tf:"optional"` + UnityCatalogProvisioningState types.String `tfsdk:"unity_catalog_provisioning_state" tf:"computed"` } func (newState *OnlineTable) SyncEffectiveFieldsDuringCreateOrUpdate(plan OnlineTable) { diff --git a/internal/service/cleanrooms_tf/model.go b/internal/service/cleanrooms_tf/model.go index 71f1a6263..8878194a0 100755 --- a/internal/service/cleanrooms_tf/model.go +++ b/internal/service/cleanrooms_tf/model.go @@ -29,13 +29,13 @@ type CleanRoom struct { // Whether clean room access is restricted due to [CSP] // // [CSP]: https://docs.databricks.com/en/security/privacy/security-profile.html - AccessRestricted types.String `tfsdk:"access_restricted" tf:"optional"` + AccessRestricted types.String `tfsdk:"access_restricted" tf:"computed"` Comment types.String `tfsdk:"comment" tf:"optional"` // When the clean room was created, in epoch milliseconds. - CreatedAt types.Int64 `tfsdk:"created_at" tf:"optional"` + CreatedAt types.Int64 `tfsdk:"created_at" tf:"computed"` // The alias of the collaborator tied to the local clean room. - LocalCollaboratorAlias types.String `tfsdk:"local_collaborator_alias" tf:"optional"` + LocalCollaboratorAlias types.String `tfsdk:"local_collaborator_alias" tf:"computed"` // The name of the clean room. It should follow [UC securable naming // requirements]. // @@ -44,7 +44,7 @@ type CleanRoom struct { // Output catalog of the clean room. It is an output only field. Output // catalog is manipulated using the separate CreateCleanRoomOutputCatalog // API. - OutputCatalog types.List `tfsdk:"output_catalog" tf:"optional,object"` + OutputCatalog types.List `tfsdk:"output_catalog" tf:"computed"` // This is Databricks username of the owner of the local clean room // securable for permission management. Owner types.String `tfsdk:"owner" tf:"optional"` @@ -53,9 +53,9 @@ type CleanRoom struct { // will not be filled in the ListCleanRooms call. RemoteDetailedInfo types.List `tfsdk:"remote_detailed_info" tf:"optional,object"` // Clean room status. - Status types.String `tfsdk:"status" tf:"optional"` + Status types.String `tfsdk:"status" tf:"computed"` // When the clean room was last updated, in epoch milliseconds. - UpdatedAt types.Int64 `tfsdk:"updated_at" tf:"optional"` + UpdatedAt types.Int64 `tfsdk:"updated_at" tf:"computed"` } func (newState *CleanRoom) SyncEffectiveFieldsDuringCreateOrUpdate(plan CleanRoom) { @@ -175,7 +175,7 @@ func (o *CleanRoom) SetRemoteDetailedInfo(ctx context.Context, v CleanRoomRemote // Metadata of the clean room asset type CleanRoomAsset struct { // When the asset is added to the clean room, in epoch milliseconds. - AddedAt types.Int64 `tfsdk:"added_at" tf:"optional"` + AddedAt types.Int64 `tfsdk:"added_at" tf:"computed"` // The type of the asset. AssetType types.String `tfsdk:"asset_type" tf:"optional"` // Foreign table details available to all collaborators of the clean room. @@ -196,9 +196,9 @@ type CleanRoomAsset struct { // Present if and only if **asset_type** is **NOTEBOOK_FILE** Notebook types.List `tfsdk:"notebook" tf:"optional,object"` // The alias of the collaborator who owns this asset - OwnerCollaboratorAlias types.String `tfsdk:"owner_collaborator_alias" tf:"optional"` + OwnerCollaboratorAlias types.String `tfsdk:"owner_collaborator_alias" tf:"computed"` // Status of the asset - Status types.String `tfsdk:"status" tf:"optional"` + Status types.String `tfsdk:"status" tf:"computed"` // Table details available to all collaborators of the clean room. Present // if and only if **asset_type** is **TABLE** Table types.List `tfsdk:"table" tf:"optional,object"` @@ -512,7 +512,7 @@ func (o *CleanRoomAsset) SetVolumeLocalDetails(ctx context.Context, v CleanRoomA type CleanRoomAssetForeignTable struct { // The metadata information of the columns in the foreign table - Columns types.List `tfsdk:"columns" tf:"optional"` + Columns types.List `tfsdk:"columns" tf:"computed"` } func (newState *CleanRoomAssetForeignTable) SyncEffectiveFieldsDuringCreateOrUpdate(plan CleanRoomAssetForeignTable) { @@ -627,7 +627,7 @@ func (o CleanRoomAssetForeignTableLocalDetails) Type(ctx context.Context) attr.T type CleanRoomAssetNotebook struct { // Server generated checksum that represents the notebook version. - Etag types.String `tfsdk:"etag" tf:"optional"` + Etag types.String `tfsdk:"etag" tf:"computed"` // Base 64 representation of the notebook contents. This is the same format // as returned by :method:workspace/export with the format of **HTML**. NotebookContent types.String `tfsdk:"notebook_content" tf:"optional"` @@ -674,7 +674,7 @@ func (o CleanRoomAssetNotebook) Type(ctx context.Context) attr.Type { type CleanRoomAssetTable struct { // The metadata information of the columns in the table - Columns types.List `tfsdk:"columns" tf:"optional"` + Columns types.List `tfsdk:"columns" tf:"computed"` } func (newState *CleanRoomAssetTable) SyncEffectiveFieldsDuringCreateOrUpdate(plan CleanRoomAssetTable) { @@ -823,7 +823,7 @@ func (o *CleanRoomAssetTableLocalDetails) SetPartitions(ctx context.Context, v [ type CleanRoomAssetView struct { // The metadata information of the columns in the view - Columns types.List `tfsdk:"columns" tf:"optional"` + Columns types.List `tfsdk:"columns" tf:"computed"` } func (newState *CleanRoomAssetView) SyncEffectiveFieldsDuringCreateOrUpdate(plan CleanRoomAssetView) { @@ -993,7 +993,7 @@ type CleanRoomCollaborator struct { // metastore clean room, it is the clean room name. For x-metastore clean // rooms, it is the organization name of the metastore. It is not restricted // to these values and could change in the future - DisplayName types.String `tfsdk:"display_name" tf:"optional"` + DisplayName types.String `tfsdk:"display_name" tf:"computed"` // The global Unity Catalog metastore id of the collaborator. The identifier // is of format cloud:region:metastore-uuid. GlobalMetastoreId types.String `tfsdk:"global_metastore_id" tf:"optional"` @@ -1009,7 +1009,7 @@ type CleanRoomCollaborator struct { // [Organization // name](:method:metastores/list#metastores-delta_sharing_organization_name) // configured in the metastore - OrganizationName types.String `tfsdk:"organization_name" tf:"optional"` + OrganizationName types.String `tfsdk:"organization_name" tf:"computed"` } func (newState *CleanRoomCollaborator) SyncEffectiveFieldsDuringCreateOrUpdate(plan CleanRoomCollaborator) { @@ -1197,7 +1197,7 @@ type CleanRoomOutputCatalog struct { // [UC securable naming requirements]: https://docs.databricks.com/en/data-governance/unity-catalog/index.html#securable-object-naming-requirements CatalogName types.String `tfsdk:"catalog_name" tf:"optional"` - Status types.String `tfsdk:"status" tf:"optional"` + Status types.String `tfsdk:"status" tf:"computed"` } func (newState *CleanRoomOutputCatalog) SyncEffectiveFieldsDuringCreateOrUpdate(plan CleanRoomOutputCatalog) { @@ -1242,7 +1242,7 @@ func (o CleanRoomOutputCatalog) Type(ctx context.Context) attr.Type { // Publicly visible central clean room details. type CleanRoomRemoteDetail struct { // Central clean room ID. - CentralCleanRoomId types.String `tfsdk:"central_clean_room_id" tf:"optional"` + CentralCleanRoomId types.String `tfsdk:"central_clean_room_id" tf:"computed"` // Cloud vendor (aws,azure,gcp) of the central clean room. CloudVendor types.String `tfsdk:"cloud_vendor" tf:"optional"` // Collaborators in the central clean room. There should one and only one @@ -1257,7 +1257,7 @@ type CleanRoomRemoteDetail struct { // compliance standards. ComplianceSecurityProfile types.List `tfsdk:"compliance_security_profile" tf:"optional,object"` // Collaborator who creates the clean room. - Creator types.List `tfsdk:"creator" tf:"optional,object"` + Creator types.List `tfsdk:"creator" tf:"computed"` // Egress network policy to apply to the central clean room workspace. EgressNetworkPolicy types.List `tfsdk:"egress_network_policy" tf:"optional,object"` // Region of the central clean room. diff --git a/internal/service/dashboards_tf/model.go b/internal/service/dashboards_tf/model.go index 8ee4bb52e..71b2320c1 100755 --- a/internal/service/dashboards_tf/model.go +++ b/internal/service/dashboards_tf/model.go @@ -316,7 +316,7 @@ type Dashboard struct { // field is excluded in List Dashboards responses. Etag types.String `tfsdk:"etag" tf:"computed"` // The state of the dashboard resource. Used for tracking trashed status. - LifecycleState types.String `tfsdk:"lifecycle_state" tf:"optional"` + LifecycleState types.String `tfsdk:"lifecycle_state" tf:"computed"` // The workspace path of the folder containing the dashboard. Includes // leading slash and no trailing slash. This field is excluded in List // Dashboards responses. diff --git a/internal/service/sharing_tf/model.go b/internal/service/sharing_tf/model.go index b50f924d9..ecddf5236 100755 --- a/internal/service/sharing_tf/model.go +++ b/internal/service/sharing_tf/model.go @@ -2289,7 +2289,7 @@ type ShareInfo struct { // A list of shared data objects within the share. Objects types.List `tfsdk:"object" tf:"optional"` // Username of current owner of share. - Owner types.String `tfsdk:"owner" tf:"computed,optional"` + Owner types.String `tfsdk:"owner" tf:"computed"` // Storage Location URL (full path) for the share. StorageLocation types.String `tfsdk:"storage_location" tf:"optional"` // Storage root URL for the share.