Skip to content

Commit 7e5b1fb

Browse files
committed
omitempty
1 parent 04b059d commit 7e5b1fb

16 files changed

+16
-16
lines changed

bundle/config/resources/apps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type App struct {
4242
URL string `json:"url,omitempty" bundle:"internal"`
4343

4444
apps.App
45-
Lifecycle Lifecycle `json:"lifecycle"`
45+
Lifecycle Lifecycle `json:"lifecycle,omitempty"`
4646
}
4747

4848
func (a *App) UnmarshalJSON(b []byte) error {

bundle/config/resources/clusters.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type Cluster struct {
2929
URL string `json:"url,omitempty" bundle:"internal"`
3030

3131
compute.ClusterSpec
32-
Lifecycle Lifecycle `json:"lifecycle"`
32+
Lifecycle Lifecycle `json:"lifecycle,omitempty"`
3333
}
3434

3535
func (s *Cluster) UnmarshalJSON(b []byte) error {

bundle/config/resources/dashboard.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type Dashboard struct {
5151
URL string `json:"url,omitempty" bundle:"internal"`
5252

5353
DashboardConfig
54-
Lifecycle Lifecycle `json:"lifecycle"`
54+
Lifecycle Lifecycle `json:"lifecycle,omitempty"`
5555

5656
// FilePath points to the local `.lvdash.json` file containing the dashboard definition.
5757
// This is inlined into serialized_dashboard during deployment. The file_path is kept around

bundle/config/resources/database_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type DatabaseInstance struct {
2929
ModifiedStatus ModifiedStatus `json:"modified_status,omitempty" bundle:"internal"`
3030

3131
database.DatabaseInstance
32-
Lifecycle Lifecycle `json:"lifecycle"`
32+
Lifecycle Lifecycle `json:"lifecycle,omitempty"`
3333
}
3434

3535
func (d *DatabaseInstance) Exists(ctx context.Context, w *databricks.WorkspaceClient, name string) (bool, error) {

bundle/config/resources/job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type Job struct {
3030
URL string `json:"url,omitempty" bundle:"internal"`
3131

3232
jobs.JobSettings
33-
Lifecycle Lifecycle `json:"lifecycle"`
33+
Lifecycle Lifecycle `json:"lifecycle,omitempty"`
3434
}
3535

3636
func (j *Job) UnmarshalJSON(b []byte) error {

bundle/config/resources/mlflow_experiment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type MlflowExperiment struct {
2929
URL string `json:"url,omitempty" bundle:"internal"`
3030

3131
ml.Experiment
32-
Lifecycle Lifecycle `json:"lifecycle"`
32+
Lifecycle Lifecycle `json:"lifecycle,omitempty"`
3333
}
3434

3535
func (s *MlflowExperiment) UnmarshalJSON(b []byte) error {

bundle/config/resources/mlflow_model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type MlflowModel struct {
2929
URL string `json:"url,omitempty" bundle:"internal"`
3030

3131
ml.CreateModelRequest
32-
Lifecycle Lifecycle `json:"lifecycle"`
32+
Lifecycle Lifecycle `json:"lifecycle,omitempty"`
3333
}
3434

3535
func (s *MlflowModel) UnmarshalJSON(b []byte) error {

bundle/config/resources/model_serving_endpoint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type ModelServingEndpoint struct {
2626
// This represents the input args for terraform, and will get converted
2727
// to a HCL representation for CRUD
2828
serving.CreateServingEndpoint
29-
Lifecycle Lifecycle `json:"lifecycle"`
29+
Lifecycle Lifecycle `json:"lifecycle,omitempty"`
3030

3131
// This represents the id (ie serving_endpoint_id) that can be used
3232
// as a reference in other resources. This value is returned by terraform.

bundle/config/resources/pipeline.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type Pipeline struct {
2929
URL string `json:"url,omitempty" bundle:"internal"`
3030

3131
pipelines.CreatePipeline
32-
Lifecycle Lifecycle `json:"lifecycle"`
32+
Lifecycle Lifecycle `json:"lifecycle,omitempty"`
3333
}
3434

3535
func (p *Pipeline) UnmarshalJSON(b []byte) error {

bundle/config/resources/quality_monitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type QualityMonitor struct {
2121

2222
// This struct defines the creation payload for a monitor.
2323
catalog.CreateMonitor
24-
Lifecycle Lifecycle `json:"lifecycle"`
24+
Lifecycle Lifecycle `json:"lifecycle,omitempty"`
2525
}
2626

2727
func (s *QualityMonitor) UnmarshalJSON(b []byte) error {

0 commit comments

Comments
 (0)