@@ -48,8 +48,7 @@ func (m *applyPresets) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnos
48
48
prefix := t .NamePrefix
49
49
tags := toTagArray (t .Tags )
50
50
51
- // Jobs presets.
52
- // Supported: Prefix, Tags, JobsMaxConcurrentRuns, TriggerPauseStatus
51
+ // Jobs presets: Prefix, Tags, JobsMaxConcurrentRuns, TriggerPauseStatus
53
52
for key , j := range r .Jobs {
54
53
if j .JobSettings == nil {
55
54
diags = diags .Extend (diag .Errorf ("job %s is not defined" , key ))
@@ -85,9 +84,8 @@ func (m *applyPresets) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnos
85
84
}
86
85
}
87
86
88
- // Pipelines presets.
89
- // Supported: Prefix, PipelinesDevelopment
90
- // Not supported: Tags (as of 2024-10 not in pipelines API)
87
+ // Pipelines presets: Prefix, PipelinesDevelopment
88
+ // Not supported: Tags (not in API as of 2024-12)
91
89
for key , p := range r .Pipelines {
92
90
if p .PipelineSpec == nil {
93
91
diags = diags .Extend (diag .Errorf ("pipeline %s is not defined" , key ))
@@ -102,8 +100,7 @@ func (m *applyPresets) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnos
102
100
}
103
101
}
104
102
105
- // Models presets
106
- // Supported: Prefix, Tags
103
+ // Models presets: Prefix, Tags
107
104
for key , m := range r .Models {
108
105
if m .Model == nil {
109
106
diags = diags .Extend (diag .Errorf ("model %s is not defined" , key ))
@@ -121,8 +118,7 @@ func (m *applyPresets) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnos
121
118
}
122
119
}
123
120
124
- // Experiments presets
125
- // Supported: Prefix, Tags
121
+ // Experiments presets: Prefix, Tags
126
122
for key , e := range r .Experiments {
127
123
if e .Experiment == nil {
128
124
diags = diags .Extend (diag .Errorf ("experiment %s is not defined" , key ))
@@ -150,9 +146,8 @@ func (m *applyPresets) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnos
150
146
}
151
147
}
152
148
153
- // Model serving endpoint presets
154
- // Supported: Prefix
155
- // Not supported: Tags (not in API as of 2024-10)
149
+ // Model serving endpoint presets: Prefix
150
+ // Not supported: Tags (not in API as of 2024-12)
156
151
for key , e := range r .ModelServingEndpoints {
157
152
if e .CreateServingEndpoint == nil {
158
153
diags = diags .Extend (diag .Errorf ("model serving endpoint %s is not defined" , key ))
@@ -161,9 +156,8 @@ func (m *applyPresets) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnos
161
156
e .Name = normalizePrefix (prefix ) + e .Name
162
157
}
163
158
164
- // Registered models presets
165
- // Supported: Prefix
166
- // Not supported: Tags (not in API as of 2024-10)
159
+ // Registered models presets: Prefix
160
+ // Not supported: Tags (not in API as of 2024-12)
167
161
for key , m := range r .RegisteredModels {
168
162
if m .CreateRegisteredModelRequest == nil {
169
163
diags = diags .Extend (diag .Errorf ("registered model %s is not defined" , key ))
@@ -172,9 +166,8 @@ func (m *applyPresets) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnos
172
166
m .Name = normalizePrefix (prefix ) + m .Name
173
167
}
174
168
175
- // Quality monitors presets
176
- // Supported: Schedule
177
- // Not supported: Tags (not in API as of 2024-10)
169
+ // Quality monitors presets: Schedule
170
+ // Not supported: Tags (not in API as of 2024-12)
178
171
for key , q := range r .QualityMonitors {
179
172
if q .CreateMonitor == nil {
180
173
diags = diags .Extend (diag .Errorf ("quality monitor %s is not defined" , key ))
@@ -190,8 +183,8 @@ func (m *applyPresets) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnos
190
183
}
191
184
}
192
185
193
- // Schemas: Prefix only
194
- // Not supported: Tags (as of 2024-10, only supported in Databricks UI / SQL API)
186
+ // Schemas: Prefix
187
+ // Not supported: Tags (only supported in Databricks UI / SQL API as of 2024-12 )
195
188
for key , s := range r .Schemas {
196
189
if s .CreateSchema == nil {
197
190
diags = diags .Extend (diag .Errorf ("schema %s is not defined" , key ))
0 commit comments