Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(all): auto-regenerate discovery clients #2258

Merged
merged 1 commit into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
311 changes: 197 additions & 114 deletions aiplatform/v1/aiplatform-api.json

Large diffs are not rendered by default.

976 changes: 765 additions & 211 deletions aiplatform/v1/aiplatform-gen.go

Large diffs are not rendered by default.

117 changes: 114 additions & 3 deletions aiplatform/v1beta1/aiplatform-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -3083,6 +3083,34 @@
},
"endpoints": {
"methods": {
"computeTokens": {
"description": "Return a list of tokens based on the input text.",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:computeTokens",
"httpMethod": "POST",
"id": "aiplatform.projects.locations.endpoints.computeTokens",
"parameterOrder": [
"endpoint"
],
"parameters": {
"endpoint": {
"description": "Required. The name of the Endpoint requested to get lists of tokens and token ids.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta1/{+endpoint}:computeTokens",
"request": {
"$ref": "GoogleCloudAiplatformV1beta1ComputeTokensRequest"
},
"response": {
"$ref": "GoogleCloudAiplatformV1beta1ComputeTokensResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"countTokens": {
"description": "Perform a token counting.",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:countTokens",
Expand Down Expand Up @@ -12439,6 +12467,34 @@
"resources": {
"models": {
"methods": {
"computeTokens": {
"description": "Return a list of tokens based on the input text.",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:computeTokens",
"httpMethod": "POST",
"id": "aiplatform.projects.locations.publishers.models.computeTokens",
"parameterOrder": [
"endpoint"
],
"parameters": {
"endpoint": {
"description": "Required. The name of the Endpoint requested to get lists of tokens and token ids.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta1/{+endpoint}:computeTokens",
"request": {
"$ref": "GoogleCloudAiplatformV1beta1ComputeTokensRequest"
},
"response": {
"$ref": "GoogleCloudAiplatformV1beta1ComputeTokensResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"countTokens": {
"description": "Perform a token counting.",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:countTokens",
Expand Down Expand Up @@ -16122,7 +16178,7 @@
}
}
},
"revision": "20231101",
"revision": "20231107",
"rootUrl": "https://aiplatform.googleapis.com/",
"schemas": {
"GoogleApiHttpBody": {
Expand Down Expand Up @@ -17342,6 +17398,34 @@
},
"type": "object"
},
"GoogleCloudAiplatformV1beta1ComputeTokensRequest": {
"description": "Request message for ComputeTokens RPC call.",
"id": "GoogleCloudAiplatformV1beta1ComputeTokensRequest",
"properties": {
"instances": {
"description": "Required. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.",
"items": {
"type": "any"
},
"type": "array"
}
},
"type": "object"
},
"GoogleCloudAiplatformV1beta1ComputeTokensResponse": {
"description": "Response message for ComputeTokens RPC call.",
"id": "GoogleCloudAiplatformV1beta1ComputeTokensResponse",
"properties": {
"tokensInfo": {
"description": "Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.",
"items": {
"$ref": "GoogleCloudAiplatformV1beta1TokensInfo"
},
"type": "array"
}
},
"type": "object"
},
"GoogleCloudAiplatformV1beta1ContainerRegistryDestination": {
"description": "The Container Registry location for the container image.",
"id": "GoogleCloudAiplatformV1beta1ContainerRegistryDestination",
Expand Down Expand Up @@ -18623,7 +18707,7 @@
},
"dedicatedResources": {
"$ref": "GoogleCloudAiplatformV1beta1DedicatedResources",
"description": "Optional. A description of resources that are dedicated to the DeployedIndex, and that need a higher degree of manual configuration. If min_replica_count is not set, the default value is 2 (we don't provide SLA when min_replica_count=1). If max_replica_count is not set, the default value is min_replica_count. The max allowed replica count is 1000. Available machine types for SMALL shard: e2-standard-2 and all machine types available for MEDIUM and LARGE shard. Available machine types for MEDIUM shard: e2-standard-16 and all machine types available for LARGE shard. Available machine types for LARGE shard: e2-highmem-16, n2d-standard-32. n1-standard-16 and n1-standard-32 are still available, but we recommend e2-standard-16 and e2-highmem-16 for cost efficiency."
"description": "Optional. A description of resources that are dedicated to the DeployedIndex, and that need a higher degree of manual configuration. The field min_replica_count must be set to a value strictly greater than 0, or else validation will fail. We don't provide SLA when min_replica_count=1. If max_replica_count is not set, the default value is min_replica_count. The max allowed replica count is 1000. Available machine types for SMALL shard: e2-standard-2 and all machine types available for MEDIUM and LARGE shard. Available machine types for MEDIUM shard: e2-standard-16 and all machine types available for LARGE shard. Available machine types for LARGE shard: e2-highmem-16, n2d-standard-32. n1-standard-16 and n1-standard-32 are still available, but we recommend e2-standard-16 and e2-highmem-16 for cost efficiency."
},
"deployedIndexAuthConfig": {
"$ref": "GoogleCloudAiplatformV1beta1DeployedIndexAuthConfig",
Expand Down Expand Up @@ -26988,6 +27072,10 @@
],
"type": "string"
},
"status": {
"$ref": "GoogleRpcStatus",
"description": "Optional. The error details of the event."
},
"vmToken": {
"description": "Required. The VM identity token (a JWT) for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity",
"type": "string"
Expand Down Expand Up @@ -31407,7 +31495,7 @@
"type": "object"
},
"GoogleCloudAiplatformV1beta1Study": {
"description": "A message representing a Study. Next id: 12",
"description": "A message representing a Study.",
"id": "GoogleCloudAiplatformV1beta1Study",
"properties": {
"createTime": {
Expand Down Expand Up @@ -32585,6 +32673,29 @@
},
"type": "object"
},
"GoogleCloudAiplatformV1beta1TokensInfo": {
"description": "Tokens info with a list of tokens and the corresponding list of token ids.",
"id": "GoogleCloudAiplatformV1beta1TokensInfo",
"properties": {
"tokenIds": {
"description": "A list of token ids from the input.",
"items": {
"format": "int64",
"type": "string"
},
"type": "array"
},
"tokens": {
"description": "A list of tokens from the input.",
"items": {
"format": "byte",
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"GoogleCloudAiplatformV1beta1TrainingConfig": {
"description": "CMLE training config. For every active learning labeling iteration, system will train a machine learning model on CMLE. The trained model will be used by data sampling algorithm to select DataItems.",
"id": "GoogleCloudAiplatformV1beta1TrainingConfig",
Expand Down