Skip to content

Commit b45fdec

Browse files
committed
fix lint issues
1 parent 13104aa commit b45fdec

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

bundle/direct/dresources/registered_model.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ func (*ResourceRegisteredModel) RemapState(model *catalog.RegisteredModelInfo) *
3131
SchemaName: model.SchemaName,
3232
StorageLocation: model.StorageLocation,
3333
ForceSendFields: filterFields[catalog.CreateRegisteredModelRequest](model.ForceSendFields),
34+
35+
Aliases: model.Aliases,
36+
BrowseOnly: model.BrowseOnly,
37+
CreatedAt: model.CreatedAt,
38+
CreatedBy: model.CreatedBy,
39+
FullName: model.FullName,
40+
MetastoreId: model.MetastoreId,
41+
Owner: model.Owner,
42+
UpdatedAt: model.UpdatedAt,
43+
UpdatedBy: model.UpdatedBy,
3444
}
3545
}
3646

@@ -64,6 +74,18 @@ func (r *ResourceRegisteredModel) DoUpdate(ctx context.Context, id string, confi
6474
// Name updates are not supported yet without recreating. Can be added as a follow-up.
6575
// Note: TF also does not support changing name without a recreate so the current behavior matches TF.
6676
NewName: "",
77+
78+
Aliases: config.Aliases,
79+
BrowseOnly: config.BrowseOnly,
80+
CreatedAt: config.CreatedAt,
81+
CreatedBy: config.CreatedBy,
82+
MetastoreId: config.MetastoreId,
83+
UpdatedAt: config.UpdatedAt,
84+
UpdatedBy: config.UpdatedBy,
85+
SchemaName: config.SchemaName,
86+
StorageLocation: config.StorageLocation,
87+
Name: config.Name,
88+
CatalogName: config.CatalogName,
6789
}
6890

6991
response, err := r.client.RegisteredModels.Update(ctx, updateRequest)

0 commit comments

Comments
 (0)