@@ -195,14 +195,14 @@ func tableGcpVertexAIModel(ctx context.Context) *plugin.Table {
195
195
{
196
196
Name : "akas" ,
197
197
Type : proto .ColumnType_JSON ,
198
- Transform : transform .FromP (gcpModelNameToAkas , "akas" ),
198
+ Transform : transform .FromP (gcpModelStandard , "akas" ),
199
199
Description : ColumnDescriptionAkas ,
200
200
},
201
201
// Standard gcp columns
202
202
{
203
203
Name : "location" ,
204
204
Type : proto .ColumnType_STRING ,
205
- Transform : transform .FromP (gcpAIPlatformTurbotData , "Location" ),
205
+ Transform : transform .FromP (gcpModelStandard , "Location" ),
206
206
Description : ColumnDescriptionLocation ,
207
207
},
208
208
{
@@ -300,7 +300,7 @@ func getAIPlatformModel(ctx context.Context, d *plugin.QueryData, h *plugin.Hydr
300
300
getProjectCached := plugin .HydrateFunc (getProject ).WithCache ()
301
301
projectId , err := getProjectCached (ctx , d , h )
302
302
if err != nil {
303
- logger .Error ("gcp_vertex_ai_endpoint.getAIPlatformEndpoint " , "cache_error" , err )
303
+ logger .Error ("gcp_vertex_ai_model.getAIPlatformModel " , "cache_error" , err )
304
304
return nil , err
305
305
}
306
306
project := projectId .(string )
@@ -343,7 +343,7 @@ func getAIPlatformModel(ctx context.Context, d *plugin.QueryData, h *plugin.Hydr
343
343
344
344
/// TRANSFORM FUNCTIONS
345
345
346
- func gcpModelNameToAkas (ctx context.Context , d * transform.TransformData ) (interface {}, error ) {
346
+ func gcpModelStandard (ctx context.Context , d * transform.TransformData ) (interface {}, error ) {
347
347
param := d .Param .(string )
348
348
AIData := d .HydrateItem .(* aiplatformpb.Model )
349
349
akas := []string {"gcp://aiplatform.googleapis.com/" + AIData .Name }
0 commit comments