Connector: vertexai schema (#17632)

* vertexai connection schema

* remove yaml file
This commit is contained in:
harshsoni2024 2024-08-30 09:49:07 +05:30 committed by harshsoni2024
parent 75be6b69dd
commit 5aba41ef58
3 changed files with 59 additions and 1 deletions

View File

@ -0,0 +1,14 @@
{
"name": "VertexAI",
"displayName": "VertexAI Test Connection",
"description": "Test Connection to validate the access against models and basic metadata extraction",
"steps": [
{
"name": "GetModels",
"description": "Validate that we can get the instances with the given credentials.",
"errorMessage": "Failed to get VertexAI models, please validate to the credentials of service account",
"shortCircuit": true,
"mandatory": true
}
]
}

View File

@ -0,0 +1,38 @@
{
"$id": "https://open-metadata.org/schema/entity/services/connections/mlmodel/vertexaiConnection.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "VertexAIConnection",
"description": "Google VertexAI Connection Config",
"type": "object",
"javaType": "org.openmetadata.schema.services.connections.mlmodel.VertexAIConnection",
"definitions": {
"vertexAIType": {
"description": "Service type.",
"type": "string",
"enum": ["VertexAI"],
"default": "VertexAI"
}
},
"properties": {
"type": {
"title": "Service Type",
"description": "Service Type",
"$ref": "#/definitions/vertexAIType",
"default": "VertexAI"
},
"credentials": {
"title": "GCP Credentials",
"description": "GCP Credentials",
"$ref": "../../../../security/credentials/gcpCredentials.json"
},
"location": {
"title": "Project location",
"description": "location/region of google cloud project",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"credentials", "location"
]
}

View File

@ -14,7 +14,7 @@
"description": "Type of MlModel service", "description": "Type of MlModel service",
"type": "string", "type": "string",
"javaInterfaces": ["org.openmetadata.schema.EnumInterface"], "javaInterfaces": ["org.openmetadata.schema.EnumInterface"],
"enum": ["Mlflow", "Sklearn", "CustomMlModel", "SageMaker"], "enum": ["Mlflow", "Sklearn", "CustomMlModel", "SageMaker", "VertexAI"],
"javaEnums": [ "javaEnums": [
{ {
"name": "Mlflow" "name": "Mlflow"
@ -27,6 +27,9 @@
}, },
{ {
"name": "SageMaker" "name": "SageMaker"
},
{
"name": "VertexAI"
} }
] ]
}, },
@ -52,6 +55,9 @@
}, },
{ {
"$ref": "./connections/mlmodel/sageMakerConnection.json" "$ref": "./connections/mlmodel/sageMakerConnection.json"
},
{
"$ref": "./connections/mlmodel/vertexaiConnection.json"
} }
] ]
} }