Skip to content

Commit

Permalink
feat(language): update the API
Browse files Browse the repository at this point in the history
#### language:v1beta2

The following keys were changed:
- schemas.CpuMetric.properties.machineSpec.enum
- schemas.CpuMetric.properties.machineSpec.enumDescriptions
- schemas.GpuMetric.properties.machineSpec.enum
- schemas.GpuMetric.properties.machineSpec.enumDescriptions
- schemas.RamMetric.properties.machineSpec.enum
- schemas.RamMetric.properties.machineSpec.enumDescriptions
- schemas.XPSImageModelServingSpecModelThroughputEstimation.properties.computeEngineAcceleratorType.enum
- schemas.XPSImageModelServingSpecModelThroughputEstimation.properties.computeEngineAcceleratorType.enumDescriptions

#### language:v1

The following keys were changed:
- schemas.CpuMetric.properties.machineSpec.enum
- schemas.CpuMetric.properties.machineSpec.enumDescriptions
- schemas.GpuMetric.properties.machineSpec.enum
- schemas.GpuMetric.properties.machineSpec.enumDescriptions
- schemas.RamMetric.properties.machineSpec.enum
- schemas.RamMetric.properties.machineSpec.enumDescriptions
- schemas.XPSImageModelServingSpecModelThroughputEstimation.properties.computeEngineAcceleratorType.enum
- schemas.XPSImageModelServingSpecModelThroughputEstimation.properties.computeEngineAcceleratorType.enumDescriptions

#### language:v2

The following keys were added:
- schemas.ClassificationCategory.properties.severity.description
- schemas.ClassificationCategory.properties.severity.format
- schemas.ClassificationCategory.properties.severity.type
- schemas.ModerateTextRequest.properties.modelVersion.description
- schemas.ModerateTextRequest.properties.modelVersion.enum
- schemas.ModerateTextRequest.properties.modelVersion.enumDescriptions
- schemas.ModerateTextRequest.properties.modelVersion.type

The following keys were changed:
- schemas.CpuMetric.properties.machineSpec.enum
- schemas.CpuMetric.properties.machineSpec.enumDescriptions
- schemas.GpuMetric.properties.machineSpec.enum
- schemas.GpuMetric.properties.machineSpec.enumDescriptions
- schemas.RamMetric.properties.machineSpec.enum
- schemas.RamMetric.properties.machineSpec.enumDescriptions
  • Loading branch information
yoshi-automation authored and sofisl committed Oct 10, 2024
1 parent 4e8d031 commit 923b951
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 3 deletions.
28 changes: 27 additions & 1 deletion discovery/language-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
}
}
},
"revision": "20240310",
"revision": "20240929",
"rootUrl": "https://language.googleapis.com/",
"schemas": {
"AnalyzeEntitiesRequest": {
Expand Down Expand Up @@ -756,7 +756,11 @@
"A2_ULTRAGPU_2G",
"A2_ULTRAGPU_4G",
"A2_ULTRAGPU_8G",
"A3_HIGHGPU_1G",
"A3_HIGHGPU_2G",
"A3_HIGHGPU_4G",
"A3_HIGHGPU_8G",
"A3_MEGAGPU_8G",
"E2_STANDARD_2",
"E2_STANDARD_4",
"E2_STANDARD_8",
Expand Down Expand Up @@ -1042,6 +1046,10 @@
"",
"",
"",
"",
"",
"",
"",
""
],
"type": "string"
Expand Down Expand Up @@ -1473,7 +1481,11 @@
"A2_ULTRAGPU_2G",
"A2_ULTRAGPU_4G",
"A2_ULTRAGPU_8G",
"A3_HIGHGPU_1G",
"A3_HIGHGPU_2G",
"A3_HIGHGPU_4G",
"A3_HIGHGPU_8G",
"A3_MEGAGPU_8G",
"E2_STANDARD_2",
"E2_STANDARD_4",
"E2_STANDARD_8",
Expand Down Expand Up @@ -1759,6 +1771,10 @@
"",
"",
"",
"",
"",
"",
"",
""
],
"type": "string"
Expand Down Expand Up @@ -2149,7 +2165,11 @@
"A2_ULTRAGPU_2G",
"A2_ULTRAGPU_4G",
"A2_ULTRAGPU_8G",
"A3_HIGHGPU_1G",
"A3_HIGHGPU_2G",
"A3_HIGHGPU_4G",
"A3_HIGHGPU_8G",
"A3_MEGAGPU_8G",
"E2_STANDARD_2",
"E2_STANDARD_4",
"E2_STANDARD_8",
Expand Down Expand Up @@ -2435,6 +2455,10 @@
"",
"",
"",
"",
"",
"",
"",
""
],
"type": "string"
Expand Down Expand Up @@ -3616,6 +3640,7 @@
"NVIDIA_A100_80GB",
"NVIDIA_L4",
"NVIDIA_H100_80GB",
"NVIDIA_H100_MEGA_80GB",
"TPU_V2",
"TPU_V3",
"TPU_V4_POD",
Expand All @@ -3632,6 +3657,7 @@
"Nvidia A100 80GB GPU.",
"Nvidia L4 GPU.",
"Nvidia H100 80Gb GPU.",
"Nvidia H100 80Gb GPU.",
"TPU v2 (JellyFish).",
"TPU v3 (DragonFish).",
"TPU_v4 (PufferFish).",
Expand Down
28 changes: 27 additions & 1 deletion discovery/language-v1beta2.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
}
}
},
"revision": "20240225",
"revision": "20240929",
"rootUrl": "https://language.googleapis.com/",
"schemas": {
"AnalyzeEntitiesRequest": {
Expand Down Expand Up @@ -756,7 +756,11 @@
"A2_ULTRAGPU_2G",
"A2_ULTRAGPU_4G",
"A2_ULTRAGPU_8G",
"A3_HIGHGPU_1G",
"A3_HIGHGPU_2G",
"A3_HIGHGPU_4G",
"A3_HIGHGPU_8G",
"A3_MEGAGPU_8G",
"E2_STANDARD_2",
"E2_STANDARD_4",
"E2_STANDARD_8",
Expand Down Expand Up @@ -1042,6 +1046,10 @@
"",
"",
"",
"",
"",
"",
"",
""
],
"type": "string"
Expand Down Expand Up @@ -1491,7 +1499,11 @@
"A2_ULTRAGPU_2G",
"A2_ULTRAGPU_4G",
"A2_ULTRAGPU_8G",
"A3_HIGHGPU_1G",
"A3_HIGHGPU_2G",
"A3_HIGHGPU_4G",
"A3_HIGHGPU_8G",
"A3_MEGAGPU_8G",
"E2_STANDARD_2",
"E2_STANDARD_4",
"E2_STANDARD_8",
Expand Down Expand Up @@ -1777,6 +1789,10 @@
"",
"",
"",
"",
"",
"",
"",
""
],
"type": "string"
Expand Down Expand Up @@ -2167,7 +2183,11 @@
"A2_ULTRAGPU_2G",
"A2_ULTRAGPU_4G",
"A2_ULTRAGPU_8G",
"A3_HIGHGPU_1G",
"A3_HIGHGPU_2G",
"A3_HIGHGPU_4G",
"A3_HIGHGPU_8G",
"A3_MEGAGPU_8G",
"E2_STANDARD_2",
"E2_STANDARD_4",
"E2_STANDARD_8",
Expand Down Expand Up @@ -2453,6 +2473,10 @@
"",
"",
"",
"",
"",
"",
"",
""
],
"type": "string"
Expand Down Expand Up @@ -3634,6 +3658,7 @@
"NVIDIA_A100_80GB",
"NVIDIA_L4",
"NVIDIA_H100_80GB",
"NVIDIA_H100_MEGA_80GB",
"TPU_V2",
"TPU_V3",
"TPU_V4_POD",
Expand All @@ -3650,6 +3675,7 @@
"Nvidia A100 80GB GPU.",
"Nvidia L4 GPU.",
"Nvidia H100 80Gb GPU.",
"Nvidia H100 80Gb GPU.",
"TPU v2 (JellyFish).",
"TPU v3 (DragonFish).",
"TPU_v4 (PufferFish).",
Expand Down
39 changes: 38 additions & 1 deletion discovery/language-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
}
}
},
"revision": "20240713",
"revision": "20240929",
"rootUrl": "https://language.googleapis.com/",
"schemas": {
"AnalyzeEntitiesRequest": {
Expand Down Expand Up @@ -426,6 +426,11 @@
"name": {
"description": "The name of the category representing the document.",
"type": "string"
},
"severity": {
"description": "Optional. The classifier's severity of the category. This is only present when the ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, and the corresponding category has a severity score.",
"format": "float",
"type": "number"
}
},
"type": "object"
Expand Down Expand Up @@ -576,6 +581,9 @@
"A2_ULTRAGPU_2G",
"A2_ULTRAGPU_4G",
"A2_ULTRAGPU_8G",
"A3_HIGHGPU_1G",
"A3_HIGHGPU_2G",
"A3_HIGHGPU_4G",
"A3_HIGHGPU_8G",
"A3_MEGAGPU_8G",
"E2_STANDARD_2",
Expand Down Expand Up @@ -864,6 +872,9 @@
"",
"",
"",
"",
"",
"",
""
],
"type": "string"
Expand Down Expand Up @@ -1109,6 +1120,9 @@
"A2_ULTRAGPU_2G",
"A2_ULTRAGPU_4G",
"A2_ULTRAGPU_8G",
"A3_HIGHGPU_1G",
"A3_HIGHGPU_2G",
"A3_HIGHGPU_4G",
"A3_HIGHGPU_8G",
"A3_MEGAGPU_8G",
"E2_STANDARD_2",
Expand Down Expand Up @@ -1397,6 +1411,9 @@
"",
"",
"",
"",
"",
"",
""
],
"type": "string"
Expand Down Expand Up @@ -1460,6 +1477,20 @@
"document": {
"$ref": "Document",
"description": "Required. Input document."
},
"modelVersion": {
"description": "Optional. The model version to use for ModerateText.",
"enum": [
"MODEL_VERSION_UNSPECIFIED",
"MODEL_VERSION_1",
"MODEL_VERSION_2"
],
"enumDescriptions": [
"The default model version.",
"Use the v1 model, this model is used by default when not provided. The v1 model only returns probability (confidence) score for each category.",
"Use the v2 model. The v2 model only returns probability (confidence) score for each category, and returns severity score for a subset of the categories."
],
"type": "string"
}
},
"type": "object"
Expand Down Expand Up @@ -1528,6 +1559,9 @@
"A2_ULTRAGPU_2G",
"A2_ULTRAGPU_4G",
"A2_ULTRAGPU_8G",
"A3_HIGHGPU_1G",
"A3_HIGHGPU_2G",
"A3_HIGHGPU_4G",
"A3_HIGHGPU_8G",
"A3_MEGAGPU_8G",
"E2_STANDARD_2",
Expand Down Expand Up @@ -1816,6 +1850,9 @@
"",
"",
"",
"",
"",
"",
""
],
"type": "string"
Expand Down
8 changes: 8 additions & 0 deletions src/apis/language/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,10 @@ export namespace language_v2 {
* The name of the category representing the document.
*/
name?: string | null;
/**
* Optional. The classifier's severity of the category. This is only present when the ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, and the corresponding category has a severity score.
*/
severity?: number | null;
}
/**
* The document classification request message.
Expand Down Expand Up @@ -472,6 +476,10 @@ export namespace language_v2 {
* Required. Input document.
*/
document?: Schema$Document;
/**
* Optional. The model version to use for ModerateText.
*/
modelVersion?: string | null;
}
/**
* The document moderation response message.
Expand Down

0 comments on commit 923b951

Please sign in to comment.