curl --request PATCH \
--url https://api.example.com/v1/instances/{instance}/databases/{database}/catalog \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"schemas": [
{
"name": "<string>",
"tables": [
{
"name": "<string>",
"columns": {
"columns": [
{
"name": "<string>",
"semanticType": "<string>",
"labels": {},
"classification": "<string>",
"objectSchema": {
"type": "TYPE_UNSPECIFIED",
"structKind": {
"properties": {}
},
"arrayKind": {
"kind": "<unknown>"
},
"semanticType": "<string>"
}
}
]
},
"objectSchema": {
"type": "TYPE_UNSPECIFIED",
"structKind": {
"properties": {}
},
"arrayKind": {
"kind": "<unknown>"
},
"semanticType": "<string>"
},
"classification": "<string>"
}
]
}
]
}
'{
"name": "<string>",
"schemas": [
{
"name": "<string>",
"tables": [
{
"name": "<string>",
"columns": {
"columns": [
{
"name": "<string>",
"semanticType": "<string>",
"labels": {},
"classification": "<string>",
"objectSchema": {
"type": "TYPE_UNSPECIFIED",
"structKind": {
"properties": {}
},
"arrayKind": {
"kind": "<unknown>"
},
"semanticType": "<string>"
}
}
]
},
"objectSchema": {
"type": "TYPE_UNSPECIFIED",
"structKind": {
"properties": {}
},
"arrayKind": {
"kind": "<unknown>"
},
"semanticType": "<string>"
},
"classification": "<string>"
}
]
}
]
}Updates catalog metadata such as classifications and labels. Permissions required: bb.databaseCatalogs.update
curl --request PATCH \
--url https://api.example.com/v1/instances/{instance}/databases/{database}/catalog \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"schemas": [
{
"name": "<string>",
"tables": [
{
"name": "<string>",
"columns": {
"columns": [
{
"name": "<string>",
"semanticType": "<string>",
"labels": {},
"classification": "<string>",
"objectSchema": {
"type": "TYPE_UNSPECIFIED",
"structKind": {
"properties": {}
},
"arrayKind": {
"kind": "<unknown>"
},
"semanticType": "<string>"
}
}
]
},
"objectSchema": {
"type": "TYPE_UNSPECIFIED",
"structKind": {
"properties": {}
},
"arrayKind": {
"kind": "<unknown>"
},
"semanticType": "<string>"
},
"classification": "<string>"
}
]
}
]
}
'{
"name": "<string>",
"schemas": [
{
"name": "<string>",
"tables": [
{
"name": "<string>",
"columns": {
"columns": [
{
"name": "<string>",
"semanticType": "<string>",
"labels": {},
"classification": "<string>",
"objectSchema": {
"type": "TYPE_UNSPECIFIED",
"structKind": {
"properties": {}
},
"arrayKind": {
"kind": "<unknown>"
},
"semanticType": "<string>"
}
}
]
},
"objectSchema": {
"type": "TYPE_UNSPECIFIED",
"structKind": {
"properties": {}
},
"arrayKind": {
"kind": "<unknown>"
},
"semanticType": "<string>"
},
"classification": "<string>"
}
]
}
]
}If set to true, and the database catalog is not found, a new database catalog will be created.
In this situation, update_mask is ignored.
Was this page helpful?