Skip to content

Commit

Permalink
feat(all): auto-regenerate discovery clients (#2794)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored Sep 22, 2024
1 parent ac7c6de commit d0e0dc3
Show file tree
Hide file tree
Showing 22 changed files with 2,411 additions and 229 deletions.
181 changes: 179 additions & 2 deletions aiplatform/v1/aiplatform-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -17476,6 +17476,34 @@
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"rebaseTunedModel": {
"description": "Rebase a TunedModel.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs:rebaseTunedModel",
"httpMethod": "POST",
"id": "aiplatform.projects.locations.tuningJobs.rebaseTunedModel",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. The resource name of the Location into which to rebase the Model. Format: `projects/{project}/locations/{location}`",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+parent}/tuningJobs:rebaseTunedModel",
"request": {
"$ref": "GoogleCloudAiplatformV1RebaseTunedModelRequest"
},
"response": {
"$ref": "GoogleLongrunningOperation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
},
"resources": {
Expand Down Expand Up @@ -17506,6 +17534,31 @@
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs/{tuningJobsId}/operations/{operationsId}",
"httpMethod": "DELETE",
"id": "aiplatform.projects.locations.tuningJobs.operations.delete",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the operation resource to be deleted.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}",
"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}",
Expand Down Expand Up @@ -17760,7 +17813,7 @@
}
}
},
"revision": "20240907",
"revision": "20240916",
"rootUrl": "https://aiplatform.googleapis.com/",
"schemas": {
"CloudAiLargeModelsVisionGenerateVideoResponse": {
Expand Down Expand Up @@ -19412,6 +19465,11 @@
"readOnly": true,
"type": "integer"
},
"logprobsResult": {
"$ref": "GoogleCloudAiplatformV1LogprobsResult",
"description": "Output only. Log-likelihood scores for the response tokens and top tokens",
"readOnly": true
},
"safetyRatings": {
"description": "Output only. List of ratings for the safety of a response candidate. There is at most one rating per category.",
"items": {
Expand Down Expand Up @@ -24535,6 +24593,11 @@
"readOnly": true,
"type": "array"
},
"modelVersion": {
"description": "Output only. The model version used to generate the response.",
"readOnly": true,
"type": "string"
},
"promptFeedback": {
"$ref": "GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback",
"description": "Output only. Content filter results for a prompt sent in the request. Note: Sent only in the first stream chunk. Only happens when no candidates were generated due to content violations.",
Expand Down Expand Up @@ -24622,6 +24685,11 @@
"format": "float",
"type": "number"
},
"logprobs": {
"description": "Optional. Logit probabilities.",
"format": "int32",
"type": "integer"
},
"maxOutputTokens": {
"description": "Optional. The maximum number of output tokens to generate per message.",
"format": "int32",
Expand All @@ -24632,6 +24700,10 @@
"format": "float",
"type": "number"
},
"responseLogprobs": {
"description": "Optional. If true, export the logprobs results in response.",
"type": "boolean"
},
"responseMimeType": {
"description": "Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.",
"type": "string"
Expand Down Expand Up @@ -26660,6 +26732,62 @@
},
"type": "object"
},
"GoogleCloudAiplatformV1LogprobsResult": {
"description": "Logprobs Result",
"id": "GoogleCloudAiplatformV1LogprobsResult",
"properties": {
"chosenCandidates": {
"description": "Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.",
"items": {
"$ref": "GoogleCloudAiplatformV1LogprobsResultCandidate"
},
"type": "array"
},
"topCandidates": {
"description": "Length = total number of decoding steps.",
"items": {
"$ref": "GoogleCloudAiplatformV1LogprobsResultTopCandidates"
},
"type": "array"
}
},
"type": "object"
},
"GoogleCloudAiplatformV1LogprobsResultCandidate": {
"description": "Candidate for the logprobs token and score.",
"id": "GoogleCloudAiplatformV1LogprobsResultCandidate",
"properties": {
"logProbability": {
"description": "The candidate's log probability.",
"format": "float",
"type": "number"
},
"token": {
"description": "The candidate’s token string value.",
"type": "string"
},
"tokenId": {
"description": "The candidate’s token id value.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"GoogleCloudAiplatformV1LogprobsResultTopCandidates": {
"description": "Candidates with top log probabilities at each decoding step.",
"id": "GoogleCloudAiplatformV1LogprobsResultTopCandidates",
"properties": {
"candidates": {
"description": "Sorted by log probability in descending order.",
"items": {
"$ref": "GoogleCloudAiplatformV1LogprobsResultCandidate"
},
"type": "array"
}
},
"type": "object"
},
"GoogleCloudAiplatformV1LookupStudyRequest": {
"description": "Request message for VizierService.LookupStudy.",
"id": "GoogleCloudAiplatformV1LookupStudyRequest",
Expand Down Expand Up @@ -31900,6 +32028,29 @@
},
"type": "object"
},
"GoogleCloudAiplatformV1RebaseTunedModelRequest": {
"description": "Request message for GenAiTuningService.RebaseTunedModel.",
"id": "GoogleCloudAiplatformV1RebaseTunedModelRequest",
"properties": {
"artifactDestination": {
"$ref": "GoogleCloudAiplatformV1GcsDestination",
"description": "Optional. The Google Cloud Storage location to write the artifacts."
},
"deployToSameEndpoint": {
"description": "Optional. By default, bison to gemini migration will always create new model/endpoint, but for gemini-1.0 to gemini-1.5 migration, we default deploy to the same endpoint. See details in this Section.",
"type": "boolean"
},
"tunedModelRef": {
"$ref": "GoogleCloudAiplatformV1TunedModelRef",
"description": "Required. TunedModel reference to retrieve the legacy model information."
},
"tuningJob": {
"$ref": "GoogleCloudAiplatformV1TuningJob",
"description": "Optional. The TuningJob to be updated. Users can use this TuningJob field to overwrite tuning configs."
}
},
"type": "object"
},
"GoogleCloudAiplatformV1RebootPersistentResourceOperationMetadata": {
"description": "Details of operations that perform reboot PersistentResource.",
"id": "GoogleCloudAiplatformV1RebootPersistentResourceOperationMetadata",
Expand Down Expand Up @@ -32742,6 +32893,13 @@
"description": "Schema is used to define the format of input/output data. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may be added in the future as needed.",
"id": "GoogleCloudAiplatformV1Schema",
"properties": {
"anyOf": {
"description": "Optional. The value should be validated against any (one or more) of the subschemas in the list.",
"items": {
"$ref": "GoogleCloudAiplatformV1Schema"
},
"type": "array"
},
"default": {
"description": "Optional. Default value of the data.",
"type": "any"
Expand Down Expand Up @@ -38742,7 +38900,7 @@
"id": "GoogleCloudAiplatformV1Tool",
"properties": {
"functionDeclarations": {
"description": "Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 64 function declarations can be provided.",
"description": "Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 128 function declarations can be provided.",
"items": {
"$ref": "GoogleCloudAiplatformV1FunctionDeclaration"
},
Expand Down Expand Up @@ -39312,6 +39470,25 @@
},
"type": "object"
},
"GoogleCloudAiplatformV1TunedModelRef": {
"description": "TunedModel Reference for legacy model migration.",
"id": "GoogleCloudAiplatformV1TunedModelRef",
"properties": {
"pipelineJob": {
"description": "Support migration from tuning job list page, from bison model to gemini model.",
"type": "string"
},
"tunedModel": {
"description": "Support migration from model registry.",
"type": "string"
},
"tuningJob": {
"description": "Support migration from tuning job list page, from gemini-1.0-pro-002 to 1.5 and above.",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudAiplatformV1TuningDataStats": {
"description": "The tuning data statistic values for TuningJob.",
"id": "GoogleCloudAiplatformV1TuningDataStats",
Expand Down
Loading

0 comments on commit d0e0dc3

Please sign in to comment.