Skip to content

Commit

Permalink
use sdkv2 for existing resources
Browse files Browse the repository at this point in the history
  • Loading branch information
mgyucht committed Dec 19, 2024
1 parent 2c088af commit 01231d8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type FunctionsData struct {

func (FunctionsData) GetComplexFieldTypes(context.Context) map[string]reflect.Type {
return map[string]reflect.Type{
"functions": reflect.TypeOf(catalog_tf.FunctionInfo{}),
"functions": reflect.TypeOf(catalog_tf.FunctionInfo_SdkV2{}),
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type ClusterInfo struct {

func (ClusterInfo) GetComplexFieldTypes(context.Context) map[string]reflect.Type {
return map[string]reflect.Type{
"cluster_info": reflect.TypeOf(compute_tf.ClusterDetails{}),
"cluster_info": reflect.TypeOf(compute_tf.ClusterDetails_SdkV2{}),
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type RegisteredModelVersionsData struct {

func (RegisteredModelVersionsData) GetComplexFieldTypes(context.Context) map[string]reflect.Type {
return map[string]reflect.Type{
"model_versions": reflect.TypeOf(catalog_tf.ModelVersionInfo{}),
"model_versions": reflect.TypeOf(catalog_tf.ModelVersionInfo_SdkV2{}),
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type ServingEndpointsData struct {

func (ServingEndpointsData) GetComplexFieldTypes(context.Context) map[string]reflect.Type {
return map[string]reflect.Type{
"endpoints": reflect.TypeOf(serving_tf.ServingEndpoint{}),
"endpoints": reflect.TypeOf(serving_tf.ServingEndpoint_SdkV2{}),
}
}

Expand Down

0 comments on commit 01231d8

Please sign in to comment.