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 #2468

Merged
merged 1 commit into from
Mar 13, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
150 changes: 140 additions & 10 deletions aiplatform/v1/aiplatform-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -3217,7 +3217,7 @@
],
"parameters": {
"filter": {
"description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * `display_name` supports = and, != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `endpoint=1` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`",
"description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * `display_name` supports = and, != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. * `base_model_name` only supports = Some examples: * `endpoint=1` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"` * `baseModelName=\"text-bison\"`",
"location": "query",
"type": "string"
},
Expand Down Expand Up @@ -10036,7 +10036,7 @@
],
"parameters": {
"filter": {
"description": "An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `model` supports = and !=. `model` represents the Model ID, i.e. the last segment of the Model's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `model=1234` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`",
"description": "An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `model` supports = and !=. `model` represents the Model ID, i.e. the last segment of the Model's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. * `base_model_name` only supports = Some examples: * `model=1234` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"` * `baseModelName=\"text-bison\"`",
"location": "query",
"type": "string"
},
Expand Down Expand Up @@ -15557,6 +15557,64 @@
}
}
}
},
"tuningJobs": {
"resources": {
"operations": {
"methods": {
"cancel": {
"description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs/{tuningJobsId}/operations/{operationsId}:cancel",
"httpMethod": "POST",
"id": "aiplatform.projects.locations.tuningJobs.operations.cancel",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the operation resource to be cancelled.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:cancel",
"response": {
"$ref": "GoogleProtobufEmpty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs/{tuningJobsId}/operations/{operationsId}",
"httpMethod": "GET",
"id": "aiplatform.projects.locations.tuningJobs.operations.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the operation resource.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "GoogleLongrunningOperation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
}
}
}
}
Expand Down Expand Up @@ -15618,7 +15676,7 @@
}
}
},
"revision": "20240229",
"revision": "20240301",
"rootUrl": "https://aiplatform.googleapis.com/",
"schemas": {
"CloudAiLargeModelsVisionEmbedVideoResponse": {
Expand Down Expand Up @@ -16237,6 +16295,10 @@
"description": "A single part of a message.",
"id": "CloudAiNlLlmProtoServicePart",
"properties": {
"documentMetadata": {
"$ref": "CloudAiNlLlmProtoServicePartDocumentMetadata",
"description": "Document metadata. The metadata should only be used by the Cloud LLM when supporting document mime types. It will only be populated when this image input part is converted from a document input part."
},
"fileData": {
"$ref": "CloudAiNlLlmProtoServicePartFileData",
"description": "URI-based data."
Expand Down Expand Up @@ -16284,6 +16346,22 @@
},
"type": "object"
},
"CloudAiNlLlmProtoServicePartDocumentMetadata": {
"description": "Metadata describes the original input document content.",
"id": "CloudAiNlLlmProtoServicePartDocumentMetadata",
"properties": {
"originalDocumentBlob": {
"$ref": "CloudAiNlLlmProtoServicePartBlob",
"description": "The original document blob."
},
"pageNumber": {
"description": "The (1-indexed) page number of the image in the original document. The first page carries the original document content and mime type.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"CloudAiNlLlmProtoServicePartFileData": {
"description": "Represents file data.",
"id": "CloudAiNlLlmProtoServicePartFileData",
Expand Down Expand Up @@ -16429,6 +16507,13 @@
"description": "Whether the category is flagged as being present. Currently, this is set to true if score \u003e= 0.5.",
"type": "boolean"
},
"influentialTerms": {
"description": "The influential terms that could potentially block the response.",
"items": {
"$ref": "CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm"
},
"type": "array"
},
"raiCategory": {
"description": "The RAI category.",
"enum": [
Expand Down Expand Up @@ -16517,6 +16602,41 @@
},
"type": "object"
},
"CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm": {
"description": "The influential term that could potentially block the response.",
"id": "CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm",
"properties": {
"beginOffset": {
"description": "The beginning offset of the influential term.",
"format": "int32",
"type": "integer"
},
"confidence": {
"description": "The confidence score of the influential term.",
"format": "float",
"type": "number"
},
"source": {
"description": "The source of the influential term, prompt or response.",
"enum": [
"SOURCE_UNSPECIFIED",
"PROMPT",
"RESPONSE"
],
"enumDescriptions": [
"Unspecified source.",
"The influential term comes from the prompt.",
"The influential term comes from the response."
],
"type": "string"
},
"term": {
"description": "The influential term.",
"type": "string"
}
},
"type": "object"
},
"CloudAiNlLlmProtoServiceSafetyRating": {
"description": "Safety rating corresponding to the generated content.",
"id": "CloudAiNlLlmProtoServiceSafetyRating",
Expand Down Expand Up @@ -17827,15 +17947,21 @@
"MAX_TOKENS",
"SAFETY",
"RECITATION",
"OTHER"
"OTHER",
"BLOCKLIST",
"PROHIBITED_CONTENT",
"SPII"
],
"enumDescriptions": [
"The finish reason is unspecified.",
"Natural stop point of the model or provided stop sequence.",
"The maximum number of tokens as specified in the request was reached.",
"The token generation was stopped as the response was flagged for safety reasons. NOTE: When streaming the Candidate.content will be empty if content filters blocked the output.",
"The token generation was stopped as the response was flagged for unauthorized citations.",
"All other reasons that stopped the token generation"
"All other reasons that stopped the token generation",
"The token generation was stopped as the response was flagged for the terms which are included from the terminology blocklist.",
"The token generation was stopped as the response was flagged for the prohibited contents.",
"The token generation was stopped as the response was flagged for Sensitive Personally Identifiable Information (SPII) contents."
],
"readOnly": true,
"type": "string"
Expand Down Expand Up @@ -21798,7 +21924,7 @@
"type": "object"
},
"GoogleCloudAiplatformV1FindNeighborsRequest": {
"description": "The request message for MatchService.FindNeighbors.",
"description": "LINT.IfChange The request message for MatchService.FindNeighbors.",
"id": "GoogleCloudAiplatformV1FindNeighborsRequest",
"properties": {
"deployedIndexId": {
Expand Down Expand Up @@ -22067,12 +22193,16 @@
"enum": [
"BLOCKED_REASON_UNSPECIFIED",
"SAFETY",
"OTHER"
"OTHER",
"BLOCKLIST",
"PROHIBITED_CONTENT"
],
"enumDescriptions": [
"Unspecified blocked reason.",
"Candidates blocked due to safety.",
"Candidates blocked due to other reason."
"Candidates blocked due to other reason.",
"Candidates blocked due to the terms which are included from the terminology blocklist.",
"Candidates blocked due to prohibited content."
],
"readOnly": true,
"type": "string"
Expand Down Expand Up @@ -27240,15 +27370,13 @@
"description": "Optional. Indicates the launch stage of the model.",
"enum": [
"LAUNCH_STAGE_UNSPECIFIED",
"DOGFOOD",
"EXPERIMENTAL",
"PRIVATE_PREVIEW",
"PUBLIC_PREVIEW",
"GA"
],
"enumDescriptions": [
"The model launch stage is unspecified.",
"Used to indicate the PublisherModel is at Google internal testing launch stage.",
"Used to indicate the PublisherModel is at Experimental launch stage, available to a small set of customers.",
"Used to indicate the PublisherModel is at Private Preview launch stage, only available to a small set of customers, although a larger set of customers than an Experimental launch. Previews are the first launch stage used to get feedback from customers.",
"Used to indicate the PublisherModel is at Public Preview launch stage, available to all customers, although not supported for production workloads.",
Expand Down Expand Up @@ -38113,6 +38241,7 @@
"C",
"DART",
"GRADLE",
"GROOVY",
"JAVADOC",
"JSON",
"MAKEFILE",
Expand Down Expand Up @@ -38140,6 +38269,7 @@
"C code.",
"Dart code.",
"Gradle code.",
"Groovy code.",
"API documentation.",
"JSON code.",
"Makefile code.",
Expand Down
Loading