@maxim_mazurok/gapi.client.aiplatform-v1 0.4.20251028 → 0.4.20251101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +90 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://aiplatform.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20251101
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1155,7 +1155,7 @@ declare namespace gapi.client {
|
|
|
1155
1155
|
gcsSource?: GoogleCloudAiplatformV1GcsSource;
|
|
1156
1156
|
}
|
|
1157
1157
|
interface GoogleCloudAiplatformV1CustomCodeExecutionSpec {
|
|
1158
|
-
/** Required. Python function. Expected user to define the following function, e.g.: def evaluate(instance: dict[str, Any]) -> float: Please include this function signature in the code snippet. Instance is the evaluation instance, any fields populated in the instance are available to the function as instance[field_name]. Example: Example input: ``` instance= EvaluationInstance( response=EvaluationInstance.InstanceData(text="The answer is 4."), reference=EvaluationInstance.InstanceData(text="4") ) ``` Example converted input: ``` { 'response': {'text': 'The answer is 4.'}, 'reference': {'text': '4'} } ``` Example python function: ``` def evaluate(instance: dict[str, Any]) -> float: if instance'response' == instance'reference': return 1.0 return 0.0 ``` */
|
|
1158
|
+
/** Required. Python function. Expected user to define the following function, e.g.: def evaluate(instance: dict[str, Any]) -> float: Please include this function signature in the code snippet. Instance is the evaluation instance, any fields populated in the instance are available to the function as instance[field_name]. Example: Example input: ``` instance= EvaluationInstance( response=EvaluationInstance.InstanceData(text="The answer is 4."), reference=EvaluationInstance.InstanceData(text="4") ) ``` Example converted input: ``` { 'response': {'text': 'The answer is 4.'}, 'reference': {'text': '4'} } ``` Example python function: ``` def evaluate(instance: dict[str, Any]) -> float: if instance'response' == instance'reference': return 1.0 return 0.0 ``` CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset RPC) and Tuning Evaluation. Each line in the input jsonl file will be converted to dict[str, Any] and passed to the evaluation function. */
|
|
1159
1159
|
evaluationFunction?: string;
|
|
1160
1160
|
}
|
|
1161
1161
|
interface GoogleCloudAiplatformV1CustomJob {
|
|
@@ -2056,8 +2056,6 @@ declare namespace gapi.client {
|
|
|
2056
2056
|
developerInstruction?: GoogleCloudAiplatformV1EvaluationInstanceInstanceData;
|
|
2057
2057
|
/** A list of events. */
|
|
2058
2058
|
events?: GoogleCloudAiplatformV1EvaluationInstanceAgentDataEvents;
|
|
2059
|
-
/** A JSON string containing a sequence of events. */
|
|
2060
|
-
eventsText?: string;
|
|
2061
2059
|
/** List of tools. */
|
|
2062
2060
|
tools?: GoogleCloudAiplatformV1EvaluationInstanceAgentDataTools;
|
|
2063
2061
|
/** A JSON string containing a list of tools available to an agent with info such as name, description, parameters and required parameters. Example: [ { "name": "search_actors", "description": "Search for actors in a movie. Returns a list of actors, their roles, their birthdate, and their place of birth.", "parameters": [ { "name": "movie_name", "description": "The name of the movie." }, { "name": "character_name", "description": "The name of the character." } ], "required": ["movie_name", "character_name"] } ] */
|
|
@@ -18702,6 +18700,35 @@ declare namespace gapi.client {
|
|
|
18702
18700
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
18703
18701
|
uploadType?: string;
|
|
18704
18702
|
}): Request<GoogleCloudAiplatformV1Dataset>;
|
|
18703
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
18704
|
+
getIamPolicy(request?: {
|
|
18705
|
+
/** V1 error format. */
|
|
18706
|
+
'$.xgafv'?: string;
|
|
18707
|
+
/** OAuth access token. */
|
|
18708
|
+
access_token?: string;
|
|
18709
|
+
/** Data format for response. */
|
|
18710
|
+
alt?: string;
|
|
18711
|
+
/** JSONP */
|
|
18712
|
+
callback?: string;
|
|
18713
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
18714
|
+
fields?: string;
|
|
18715
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
18716
|
+
key?: string;
|
|
18717
|
+
/** OAuth 2.0 token for the current user. */
|
|
18718
|
+
oauth_token?: string;
|
|
18719
|
+
/** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
|
|
18720
|
+
'options.requestedPolicyVersion'?: number;
|
|
18721
|
+
/** Returns response with indentations and line breaks. */
|
|
18722
|
+
prettyPrint?: boolean;
|
|
18723
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
18724
|
+
quotaUser?: string;
|
|
18725
|
+
/** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
|
|
18726
|
+
resource: string;
|
|
18727
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
18728
|
+
upload_protocol?: string;
|
|
18729
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
18730
|
+
uploadType?: string;
|
|
18731
|
+
}): Request<GoogleIamV1Policy>;
|
|
18705
18732
|
/** Imports data into a Dataset. */
|
|
18706
18733
|
import(request: {
|
|
18707
18734
|
/** V1 error format. */
|
|
@@ -18912,6 +18939,65 @@ declare namespace gapi.client {
|
|
|
18912
18939
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
18913
18940
|
uploadType?: string;
|
|
18914
18941
|
}): Request<GoogleCloudAiplatformV1SearchDataItemsResponse>;
|
|
18942
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
18943
|
+
setIamPolicy(
|
|
18944
|
+
request: {
|
|
18945
|
+
/** V1 error format. */
|
|
18946
|
+
'$.xgafv'?: string;
|
|
18947
|
+
/** OAuth access token. */
|
|
18948
|
+
access_token?: string;
|
|
18949
|
+
/** Data format for response. */
|
|
18950
|
+
alt?: string;
|
|
18951
|
+
/** JSONP */
|
|
18952
|
+
callback?: string;
|
|
18953
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
18954
|
+
fields?: string;
|
|
18955
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
18956
|
+
key?: string;
|
|
18957
|
+
/** OAuth 2.0 token for the current user. */
|
|
18958
|
+
oauth_token?: string;
|
|
18959
|
+
/** Returns response with indentations and line breaks. */
|
|
18960
|
+
prettyPrint?: boolean;
|
|
18961
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
18962
|
+
quotaUser?: string;
|
|
18963
|
+
/** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
|
|
18964
|
+
resource: string;
|
|
18965
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
18966
|
+
upload_protocol?: string;
|
|
18967
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
18968
|
+
uploadType?: string;
|
|
18969
|
+
},
|
|
18970
|
+
body: GoogleIamV1SetIamPolicyRequest,
|
|
18971
|
+
): Request<GoogleIamV1Policy>;
|
|
18972
|
+
/** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
|
|
18973
|
+
testIamPermissions(request?: {
|
|
18974
|
+
/** V1 error format. */
|
|
18975
|
+
'$.xgafv'?: string;
|
|
18976
|
+
/** OAuth access token. */
|
|
18977
|
+
access_token?: string;
|
|
18978
|
+
/** Data format for response. */
|
|
18979
|
+
alt?: string;
|
|
18980
|
+
/** JSONP */
|
|
18981
|
+
callback?: string;
|
|
18982
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
18983
|
+
fields?: string;
|
|
18984
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
18985
|
+
key?: string;
|
|
18986
|
+
/** OAuth 2.0 token for the current user. */
|
|
18987
|
+
oauth_token?: string;
|
|
18988
|
+
/** The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). */
|
|
18989
|
+
permissions?: string | string[];
|
|
18990
|
+
/** Returns response with indentations and line breaks. */
|
|
18991
|
+
prettyPrint?: boolean;
|
|
18992
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
18993
|
+
quotaUser?: string;
|
|
18994
|
+
/** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
|
|
18995
|
+
resource: string;
|
|
18996
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
18997
|
+
upload_protocol?: string;
|
|
18998
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
18999
|
+
uploadType?: string;
|
|
19000
|
+
}): Request<GoogleIamV1TestIamPermissionsResponse>;
|
|
18915
19001
|
annotationSpecs: AnnotationSpecsResource;
|
|
18916
19002
|
dataItems: DataItemsResource;
|
|
18917
19003
|
datasetVersions: DatasetVersionsResource;
|