@maxim_mazurok/gapi.client.aiplatform-v1 0.0.20240510 → 0.0.20240520
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 +66 -22
- 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: 20240520
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -25,9 +25,9 @@ declare namespace gapi.client {
|
|
|
25
25
|
|
|
26
26
|
namespace aiplatform {
|
|
27
27
|
interface CloudAiLargeModelsVisionFilteredText {
|
|
28
|
-
/** Confidence level */
|
|
29
|
-
category?: string;
|
|
30
28
|
/** Filtered category */
|
|
29
|
+
category?: string;
|
|
30
|
+
/** Confidence score */
|
|
31
31
|
confidence?: string;
|
|
32
32
|
/** Input prompt */
|
|
33
33
|
prompt?: string;
|
|
@@ -82,11 +82,20 @@ declare namespace gapi.client {
|
|
|
82
82
|
y2?: number;
|
|
83
83
|
}
|
|
84
84
|
interface CloudAiLargeModelsVisionRaiInfo {
|
|
85
|
+
detectedLabels?: CloudAiLargeModelsVisionRaiInfoDetectedLabels[];
|
|
85
86
|
/** List of rai categories' information to return */
|
|
86
87
|
raiCategories?: string[];
|
|
87
88
|
/** List of rai scores mapping to the rai categories. Rounded to 1 decimal place. */
|
|
88
89
|
scores?: number[];
|
|
89
90
|
}
|
|
91
|
+
interface CloudAiLargeModelsVisionRaiInfoDetectedLabels {
|
|
92
|
+
/** Descriptions of the detected labels. */
|
|
93
|
+
descriptions?: string[];
|
|
94
|
+
/** The RAI category for the deteceted labels. */
|
|
95
|
+
raiCategory?: string;
|
|
96
|
+
/** Confidence scores mapping to the labels. */
|
|
97
|
+
scores?: number[];
|
|
98
|
+
}
|
|
90
99
|
interface CloudAiLargeModelsVisionSemanticFilterResponse {
|
|
91
100
|
/** Class labels of the bounding boxes that failed the semantic filtering. Bounding box coordinates. */
|
|
92
101
|
namedBoundingBoxes?: CloudAiLargeModelsVisionNamedBoundingBox[];
|
|
@@ -1075,8 +1084,14 @@ declare namespace gapi.client {
|
|
|
1075
1084
|
createTime?: string;
|
|
1076
1085
|
/** Required. The underlying DedicatedResources that the DeploymentResourcePool uses. */
|
|
1077
1086
|
dedicatedResources?: GoogleCloudAiplatformV1DedicatedResources;
|
|
1087
|
+
/** If the DeploymentResourcePool is deployed with custom-trained Models or AutoML Tabular Models, the container(s) of the DeploymentResourcePool will send `stderr` and `stdout` streams to Cloud Logging by default. Please note that the logs incur cost, which are subject to [Cloud Logging pricing](https://cloud.google.com/logging/pricing). User can disable container logging by setting this flag to true. */
|
|
1088
|
+
disableContainerLogging?: boolean;
|
|
1089
|
+
/** Customer-managed encryption key spec for a DeploymentResourcePool. If set, this DeploymentResourcePool will be secured by this key. Endpoints and the DeploymentResourcePool they deploy in need to have the same EncryptionSpec. */
|
|
1090
|
+
encryptionSpec?: GoogleCloudAiplatformV1EncryptionSpec;
|
|
1078
1091
|
/** Immutable. The resource name of the DeploymentResourcePool. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */
|
|
1079
1092
|
name?: string;
|
|
1093
|
+
/** The service account that the DeploymentResourcePool's container(s) run as. Specify the email address of the service account. If this service account is not specified, the container(s) run as a service account that doesn't have access to the resource project. Users deploying the Models to this DeploymentResourcePool must have the `iam.serviceAccounts.actAs` permission on this service account. */
|
|
1094
|
+
serviceAccount?: string;
|
|
1080
1095
|
}
|
|
1081
1096
|
interface GoogleCloudAiplatformV1DeployModelOperationMetadata {
|
|
1082
1097
|
/** The operation generic information. */
|
|
@@ -1760,6 +1775,8 @@ declare namespace gapi.client {
|
|
|
1760
1775
|
stringArrayValue?: GoogleCloudAiplatformV1StringArray;
|
|
1761
1776
|
/** String feature value. */
|
|
1762
1777
|
stringValue?: string;
|
|
1778
|
+
/** A struct type feature value. */
|
|
1779
|
+
structValue?: GoogleCloudAiplatformV1StructValue;
|
|
1763
1780
|
}
|
|
1764
1781
|
interface GoogleCloudAiplatformV1FeatureValueDestination {
|
|
1765
1782
|
/** Output in BigQuery format. BigQueryDestination.output_uri in FeatureValueDestination.bigquery_destination must refer to a table. */
|
|
@@ -2032,8 +2049,6 @@ declare namespace gapi.client {
|
|
|
2032
2049
|
presencePenalty?: number;
|
|
2033
2050
|
/** 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. */
|
|
2034
2051
|
responseMimeType?: string;
|
|
2035
|
-
/** Optional. Control Three levels of creativity in the model output. Default: RESPONSE_STYLE_BALANCED */
|
|
2036
|
-
responseStyle?: string;
|
|
2037
2052
|
/** Optional. Stop sequences. */
|
|
2038
2053
|
stopSequences?: string[];
|
|
2039
2054
|
/** Optional. Controls the randomness of predictions. */
|
|
@@ -2055,6 +2070,7 @@ declare namespace gapi.client {
|
|
|
2055
2070
|
/** Required. The public base model URI. */
|
|
2056
2071
|
baseModelUri?: string;
|
|
2057
2072
|
}
|
|
2073
|
+
interface GoogleCloudAiplatformV1GoogleSearchRetrieval {}
|
|
2058
2074
|
interface GoogleCloudAiplatformV1GroundingMetadata {
|
|
2059
2075
|
/** Optional. Google search entry for the following-up web searches. */
|
|
2060
2076
|
searchEntryPoint?: GoogleCloudAiplatformV1SearchEntryPoint;
|
|
@@ -2674,6 +2690,8 @@ declare namespace gapi.client {
|
|
|
2674
2690
|
interface GoogleCloudAiplatformV1MetadataStore {
|
|
2675
2691
|
/** Output only. Timestamp when this MetadataStore was created. */
|
|
2676
2692
|
createTime?: string;
|
|
2693
|
+
/** Optional. Dataplex integration settings. */
|
|
2694
|
+
dataplexConfig?: GoogleCloudAiplatformV1MetadataStoreDataplexConfig;
|
|
2677
2695
|
/** Description of the MetadataStore. */
|
|
2678
2696
|
description?: string;
|
|
2679
2697
|
/** Customer-managed encryption key spec for a Metadata Store. If set, this Metadata Store and all sub-resources of this Metadata Store are secured using this key. */
|
|
@@ -2685,6 +2703,10 @@ declare namespace gapi.client {
|
|
|
2685
2703
|
/** Output only. Timestamp when this MetadataStore was last updated. */
|
|
2686
2704
|
updateTime?: string;
|
|
2687
2705
|
}
|
|
2706
|
+
interface GoogleCloudAiplatformV1MetadataStoreDataplexConfig {
|
|
2707
|
+
/** Optional. Whether or not Data Lineage synchronization is enabled for Vertex Pipelines. */
|
|
2708
|
+
enabledPipelinesLineage?: boolean;
|
|
2709
|
+
}
|
|
2688
2710
|
interface GoogleCloudAiplatformV1MetadataStoreMetadataStoreState {
|
|
2689
2711
|
/** The disk utilization of the MetadataStore in bytes. */
|
|
2690
2712
|
diskUtilizationBytes?: string;
|
|
@@ -3399,14 +3421,6 @@ declare namespace gapi.client {
|
|
|
3399
3421
|
/** Required. Duration is accurate to the second. In Notebook, Idle Timeout is accurate to minute so the range of idle_timeout (second) is: 10 * 60 ~ 1440 * 60. */
|
|
3400
3422
|
idleTimeout?: string;
|
|
3401
3423
|
}
|
|
3402
|
-
interface GoogleCloudAiplatformV1NotebookReservationAffinity {
|
|
3403
|
-
/** Required. Specifies the type of reservation from which this instance can consume resources: RESERVATION_ANY (default), RESERVATION_SPECIFIC, or RESERVATION_NONE. See Consuming reserved instances for examples. */
|
|
3404
|
-
consumeReservationType?: string;
|
|
3405
|
-
/** Optional. Corresponds to the label key of a reservation resource. To target a RESERVATION_SPECIFIC by name, use compute.googleapis.com/reservation-name as the key and specify the name of your reservation as its value. */
|
|
3406
|
-
key?: string;
|
|
3407
|
-
/** Optional. Corresponds to the label values of a reservation resource. This must be the full path name of Reservation. */
|
|
3408
|
-
values?: string[];
|
|
3409
|
-
}
|
|
3410
3424
|
interface GoogleCloudAiplatformV1NotebookRuntime {
|
|
3411
3425
|
/** Output only. Timestamp when this NotebookRuntime was created. */
|
|
3412
3426
|
createTime?: string;
|
|
@@ -3418,6 +3432,8 @@ declare namespace gapi.client {
|
|
|
3418
3432
|
expirationTime?: string;
|
|
3419
3433
|
/** Output only. The health state of the NotebookRuntime. */
|
|
3420
3434
|
healthState?: string;
|
|
3435
|
+
/** Output only. The idle shutdown configuration of the notebook runtime. */
|
|
3436
|
+
idleShutdownConfig?: GoogleCloudAiplatformV1NotebookIdleShutdownConfig;
|
|
3421
3437
|
/** Output only. Whether NotebookRuntime is upgradable. */
|
|
3422
3438
|
isUpgradable?: boolean;
|
|
3423
3439
|
/** The labels with user-defined metadata to organize your NotebookRuntime. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one NotebookRuntime (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable. Following system labels exist for NotebookRuntime: * "aiplatform.googleapis.com/notebook_runtime_gce_instance_id": output only, its value is the Compute Engine instance id. * "aiplatform.googleapis.com/colab_enterprise_entry_service": its value is either "bigquery" or "vertex"; if absent, it should be "vertex". This is to describe the entry service, either BigQuery or Vertex. */
|
|
@@ -3432,8 +3448,6 @@ declare namespace gapi.client {
|
|
|
3432
3448
|
notebookRuntimeType?: string;
|
|
3433
3449
|
/** Output only. The proxy endpoint used to access the NotebookRuntime. */
|
|
3434
3450
|
proxyUri?: string;
|
|
3435
|
-
/** Output only. Reservation Affinity of the notebook runtime. */
|
|
3436
|
-
reservationAffinity?: GoogleCloudAiplatformV1NotebookReservationAffinity;
|
|
3437
3451
|
/** Output only. The runtime (instance) state of the NotebookRuntime. */
|
|
3438
3452
|
runtimeState?: string;
|
|
3439
3453
|
/** Required. The user email of the NotebookRuntime. */
|
|
@@ -3458,6 +3472,8 @@ declare namespace gapi.client {
|
|
|
3458
3472
|
description?: string;
|
|
3459
3473
|
/** Required. The display name of the NotebookRuntimeTemplate. The name can be up to 128 characters long and can consist of any UTF-8 characters. */
|
|
3460
3474
|
displayName?: string;
|
|
3475
|
+
/** Customer-managed encryption key spec for the notebook runtime. */
|
|
3476
|
+
encryptionSpec?: GoogleCloudAiplatformV1EncryptionSpec;
|
|
3461
3477
|
/** Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. */
|
|
3462
3478
|
etag?: string;
|
|
3463
3479
|
/** EUC configuration of the NotebookRuntimeTemplate. */
|
|
@@ -3478,8 +3494,6 @@ declare namespace gapi.client {
|
|
|
3478
3494
|
networkTags?: string[];
|
|
3479
3495
|
/** Optional. Immutable. The type of the notebook runtime template. */
|
|
3480
3496
|
notebookRuntimeType?: string;
|
|
3481
|
-
/** Optional. Reservation Affinity of the notebook runtime template. */
|
|
3482
|
-
reservationAffinity?: GoogleCloudAiplatformV1NotebookReservationAffinity;
|
|
3483
3497
|
/** The service account that the runtime workload runs as. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the [Compute Engine default service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used. */
|
|
3484
3498
|
serviceAccount?: string;
|
|
3485
3499
|
/** Optional. Immutable. Runtime Shielded VM spec. */
|
|
@@ -3533,7 +3547,7 @@ declare namespace gapi.client {
|
|
|
3533
3547
|
/** Required. The spec of the pools of different resources. */
|
|
3534
3548
|
resourcePools?: GoogleCloudAiplatformV1ResourcePool[];
|
|
3535
3549
|
/** Output only. Runtime information of the Persistent Resource. */
|
|
3536
|
-
resourceRuntime?:
|
|
3550
|
+
resourceRuntime?: GoogleCloudAiplatformV1ResourceRuntime;
|
|
3537
3551
|
/** Optional. Persistent Resource runtime spec. For example, used for Ray cluster configuration. */
|
|
3538
3552
|
resourceRuntimeSpec?: GoogleCloudAiplatformV1ResourceRuntimeSpec;
|
|
3539
3553
|
/** Output only. Time when the PersistentResource for the first time entered the `RUNNING` state. */
|
|
@@ -3746,7 +3760,7 @@ declare namespace gapi.client {
|
|
|
3746
3760
|
projectAllowlist?: string[];
|
|
3747
3761
|
}
|
|
3748
3762
|
interface GoogleCloudAiplatformV1Probe {
|
|
3749
|
-
/**
|
|
3763
|
+
/** ExecAction probes the health of a container by executing a command. */
|
|
3750
3764
|
exec?: GoogleCloudAiplatformV1ProbeExecAction;
|
|
3751
3765
|
/** How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Must be less than timeout_seconds. Maps to Kubernetes probe argument 'periodSeconds'. */
|
|
3752
3766
|
periodSeconds?: number;
|
|
@@ -3961,7 +3975,20 @@ declare namespace gapi.client {
|
|
|
3961
3975
|
/** The prediction input. Supports HTTP headers and arbitrary data payload. A DeployedModel may have an upper limit on the number of instances it supports per request. When this limit it is exceeded for an AutoML model, the RawPredict method returns an error. When this limit is exceeded for a custom-trained model, the behavior varies depending on the model. You can specify the schema for each instance in the predict_schemata.instance_schema_uri field when you create a Model. This schema applies when you deploy the `Model` as a `DeployedModel` to an Endpoint and use the `RawPredict` method. */
|
|
3962
3976
|
httpBody?: GoogleApiHttpBody;
|
|
3963
3977
|
}
|
|
3964
|
-
interface
|
|
3978
|
+
interface GoogleCloudAiplatformV1RayMetricSpec {
|
|
3979
|
+
/** Optional. Flag to disable the Ray metrics collection. */
|
|
3980
|
+
disabled?: boolean;
|
|
3981
|
+
}
|
|
3982
|
+
interface GoogleCloudAiplatformV1RaySpec {
|
|
3983
|
+
/** Optional. This will be used to indicate which resource pool will serve as the Ray head node(the first node within that pool). Will use the machine from the first workerpool as the head node by default if this field isn't set. */
|
|
3984
|
+
headNodeResourcePoolId?: string;
|
|
3985
|
+
/** Optional. Default image for user to choose a preferred ML framework (for example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt images](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). Either this or the resource_pool_images is required. Use this field if you need all the resource pools to have the same Ray image. Otherwise, use the {@code resource_pool_images} field. */
|
|
3986
|
+
imageUri?: string;
|
|
3987
|
+
/** Optional. Ray metrics configurations. */
|
|
3988
|
+
rayMetricSpec?: GoogleCloudAiplatformV1RayMetricSpec;
|
|
3989
|
+
/** Optional. Required if image_uri isn't set. A map of resource_pool_id to prebuild Ray image if user need to use different images for different head/worker pools. This map needs to cover all the resource pool ids. Example: { "ray_head_node_pool": "head image" "ray_worker_node_pool1": "worker image" "ray_worker_node_pool2": "another worker image" } */
|
|
3990
|
+
resourcePoolImages?: {[P in string]: string};
|
|
3991
|
+
}
|
|
3965
3992
|
interface GoogleCloudAiplatformV1ReadFeatureValuesRequest {
|
|
3966
3993
|
/** Required. ID for a specific entity. For example, for a machine learning model predicting user clicks on a website, an entity ID could be `user_123`. */
|
|
3967
3994
|
entityId?: string;
|
|
@@ -4071,10 +4098,13 @@ declare namespace gapi.client {
|
|
|
4071
4098
|
/** Optional. min replicas in the node pool, must be ≤ replica_count and < max_replica_count or will throw error */
|
|
4072
4099
|
minReplicaCount?: string;
|
|
4073
4100
|
}
|
|
4074
|
-
interface GoogleCloudAiplatformV1ResourceRuntime {
|
|
4101
|
+
interface GoogleCloudAiplatformV1ResourceRuntime {
|
|
4102
|
+
/** Output only. URIs for user to connect to the Cluster. Example: { "RAY_HEAD_NODE_INTERNAL_IP": "head-node-IP:10001" "RAY_DASHBOARD_URI": "ray-dashboard-address:8888" } */
|
|
4103
|
+
accessUris?: {[P in string]: string};
|
|
4104
|
+
}
|
|
4075
4105
|
interface GoogleCloudAiplatformV1ResourceRuntimeSpec {
|
|
4076
4106
|
/** Optional. Ray cluster configuration. Required when creating a dedicated RayCluster on the PersistentResource. */
|
|
4077
|
-
raySpec?:
|
|
4107
|
+
raySpec?: GoogleCloudAiplatformV1RaySpec;
|
|
4078
4108
|
/** Optional. Configure the use of workload identity on the PersistentResource */
|
|
4079
4109
|
serviceAccountSpec?: GoogleCloudAiplatformV1ServiceAccountSpec;
|
|
4080
4110
|
}
|
|
@@ -4932,6 +4962,8 @@ declare namespace gapi.client {
|
|
|
4932
4962
|
gcsUri?: string;
|
|
4933
4963
|
/** Grounding checking configuration. */
|
|
4934
4964
|
groundingConfig?: GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfig;
|
|
4965
|
+
/** Whether the prompt dataset has prompt variable. */
|
|
4966
|
+
hasPromptVariable?: boolean;
|
|
4935
4967
|
/** Value of the maximum number of tokens generated set when the dataset was saved. */
|
|
4936
4968
|
maxOutputTokens?: string;
|
|
4937
4969
|
/** User-created prompt note. Note size limit is 2KB. */
|
|
@@ -5711,6 +5743,16 @@ declare namespace gapi.client {
|
|
|
5711
5743
|
/** A list of string values. */
|
|
5712
5744
|
values?: string[];
|
|
5713
5745
|
}
|
|
5746
|
+
interface GoogleCloudAiplatformV1StructFieldValue {
|
|
5747
|
+
/** Name of the field in the struct feature. */
|
|
5748
|
+
name?: string;
|
|
5749
|
+
/** The value for this field. */
|
|
5750
|
+
value?: GoogleCloudAiplatformV1FeatureValue;
|
|
5751
|
+
}
|
|
5752
|
+
interface GoogleCloudAiplatformV1StructValue {
|
|
5753
|
+
/** A list of field values. */
|
|
5754
|
+
values?: GoogleCloudAiplatformV1StructFieldValue[];
|
|
5755
|
+
}
|
|
5714
5756
|
interface GoogleCloudAiplatformV1Study {
|
|
5715
5757
|
/** Output only. Time at which the study was created. */
|
|
5716
5758
|
createTime?: string;
|
|
@@ -6139,6 +6181,8 @@ declare namespace gapi.client {
|
|
|
6139
6181
|
interface GoogleCloudAiplatformV1Tool {
|
|
6140
6182
|
/** 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. */
|
|
6141
6183
|
functionDeclarations?: GoogleCloudAiplatformV1FunctionDeclaration[];
|
|
6184
|
+
/** Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search. */
|
|
6185
|
+
googleSearchRetrieval?: any;
|
|
6142
6186
|
/** Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation. */
|
|
6143
6187
|
retrieval?: GoogleCloudAiplatformV1Retrieval;
|
|
6144
6188
|
}
|