@@ -15,6 +15,7 @@ import (
1515 "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
1616
1717 "github.com/databricks/databricks-sdk-go/apierr"
18+ "github.com/databricks/databricks-sdk-go/service/compute"
1819 "github.com/databricks/terraform-provider-databricks/clusters"
1920 "github.com/databricks/terraform-provider-databricks/common"
2021 "github.com/databricks/terraform-provider-databricks/libraries"
@@ -172,6 +173,7 @@ type JobTaskSettings struct {
172173 ExistingClusterID string `json:"existing_cluster_id,omitempty" tf:"group:cluster_type"`
173174 NewCluster * clusters.Cluster `json:"new_cluster,omitempty" tf:"group:cluster_type"`
174175 JobClusterKey string `json:"job_cluster_key,omitempty" tf:"group:cluster_type"`
176+ ComputeKey string `json:"compute_key,omitempty" tf:"group:cluster_type"`
175177 Libraries []libraries.Library `json:"libraries,omitempty" tf:"slice_set,alias:library"`
176178 NotebookTask * NotebookTask `json:"notebook_task,omitempty" tf:"group:task_type"`
177179 SparkJarTask * SparkJarTask `json:"spark_jar_task,omitempty" tf:"group:task_type"`
@@ -193,6 +195,11 @@ type JobCluster struct {
193195 NewCluster * clusters.Cluster `json:"new_cluster,omitempty" tf:"group:cluster_type"`
194196}
195197
198+ type JobCompute struct {
199+ ComputeKey string `json:"compute_key,omitempty" tf:"group:cluster_type"`
200+ ComputeSpec * compute.ComputeSpec `json:"spec,omitempty" tf:"group:cluster_type"`
201+ }
202+
196203type ContinuousConf struct {
197204 PauseStatus string `json:"pause_status,omitempty" tf:"computed"`
198205}
@@ -241,6 +248,7 @@ type JobSettings struct {
241248 Tasks []JobTaskSettings `json:"tasks,omitempty" tf:"alias:task"`
242249 Format string `json:"format,omitempty" tf:"computed"`
243250 JobClusters []JobCluster `json:"job_clusters,omitempty" tf:"alias:job_cluster"`
251+ Compute []JobCompute `json:"compute,omitempty" tf:"alias:compute"`
244252 // END Jobs API 2.1
245253
246254 // BEGIN Jobs + Repo integration preview
0 commit comments