@maxim_mazurok/gapi.client.aiplatform-v1beta1 0.0.20250131 → 0.0.20250205

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.
Files changed (2) hide show
  1. package/index.d.ts +108 -4
  2. 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=v1beta1
12
- // Revision: 20250131
12
+ // Revision: 20250205
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -355,6 +355,14 @@ declare namespace gapi.client {
355
355
  /** Immutable. The minimum number of replicas this DeployedModel will be always deployed on. If traffic against it increases, it may dynamically be deployed onto more replicas up to max_replica_count, and as traffic decreases, some of these extra replicas may be freed. If the requested value is too large, the deployment will error. */
356
356
  minReplicaCount?: number;
357
357
  }
358
+ interface GoogleCloudAiplatformV1beta1AutoraterConfig {
359
+ /** Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
360
+ autoraterModel?: string;
361
+ /** Optional. Whether to flip the candidate and baseline responses. This is only applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and PairwiseMetricSpec.baseline_response_field_name. When rendering PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped for half of the samples to reduce bias. */
362
+ flipEnabled?: boolean;
363
+ /** Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32. */
364
+ samplingCount?: number;
365
+ }
358
366
  interface GoogleCloudAiplatformV1beta1AutoscalingMetricSpec {
359
367
  /** Required. The resource metric name. Supported metrics: * For Online Prediction: * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` * `aiplatform.googleapis.com/prediction/online/cpu/utilization` */
360
368
  metricName?: string;
@@ -1470,6 +1478,8 @@ declare namespace gapi.client {
1470
1478
  modelVersionId?: string;
1471
1479
  /** Output only. Provide paths for users to send predict/explain/health requests directly to the deployed model services running on Cloud via private services access. This field is populated if network is configured. */
1472
1480
  privateEndpoints?: GoogleCloudAiplatformV1beta1PrivateEndpoints;
1481
+ /** Options for configuring rolling deployments. */
1482
+ rolloutOptions?: GoogleCloudAiplatformV1beta1RolloutOptions;
1473
1483
  /** The service account that the DeployedModel's container runs as. Specify the email address of the service account. If this service account is not specified, the container runs as a service account that doesn't have access to the resource project. Users deploying the Model must have the `iam.serviceAccounts.actAs` permission on this service account. */
1474
1484
  serviceAccount?: string;
1475
1485
  /** The resource name of the shared DeploymentResourcePool to deploy on. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */
@@ -1753,6 +1763,8 @@ declare namespace gapi.client {
1753
1763
  explanationType?: string;
1754
1764
  }
1755
1765
  interface GoogleCloudAiplatformV1beta1EvaluateInstancesRequest {
1766
+ /** Optional. Autorater config used for evaluation. */
1767
+ autoraterConfig?: GoogleCloudAiplatformV1beta1AutoraterConfig;
1756
1768
  /** Instances and metric spec for bleu metric. */
1757
1769
  bleuInput?: GoogleCloudAiplatformV1beta1BleuInput;
1758
1770
  /** Input for coherence metric. */
@@ -3953,6 +3965,8 @@ declare namespace gapi.client {
3953
3965
  acceleratorType?: string;
3954
3966
  /** Immutable. The type of the machine. See the [list of machine types supported for prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types) See the [list of machine types supported for custom training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types). For DeployedModel this field is optional, and the default value is `n1-standard-2`. For BatchPredictionJob or as part of WorkerPoolSpec this field is required. */
3955
3967
  machineType?: string;
3968
+ /** Optional. Immutable. The number of nodes per replica for multihost GPU deployments. */
3969
+ multihostGpuNodeCount?: number;
3956
3970
  /** Optional. Immutable. Configuration controlling how this resource pool consumes reservation. */
3957
3971
  reservationAffinity?: GoogleCloudAiplatformV1beta1ReservationAffinity;
3958
3972
  /** Immutable. The topology of the TPUs. Corresponds to the TPU topologies available from GKE. (Example: tpu_topology: "2x2x1"). */
@@ -4415,7 +4429,7 @@ declare namespace gapi.client {
4415
4429
  interface GoogleCloudAiplatformV1beta1ModelExportFormat {
4416
4430
  /** Output only. The content of this Model that may be exported. */
4417
4431
  exportableContents?: string[];
4418
- /** Output only. The ID of the export format. The possible format IDs are: * `tflite` Used for Android mobile devices. * `edgetpu-tflite` Used for [Edge TPU](https://cloud.google.com/edge-tpu/) devices. * `tf-saved-model` A tensorflow model in SavedModel format. * `tf-js` A [TensorFlow.js](https://www.tensorflow.org/js) model that can be used in the browser and in Node.js using JavaScript. * `core-ml` Used for iOS mobile devices. * `custom-trained` A Model that was uploaded or trained by custom code. */
4432
+ /** Output only. The ID of the export format. The possible format IDs are: * `tflite` Used for Android mobile devices. * `edgetpu-tflite` Used for [Edge TPU](https://cloud.google.com/edge-tpu/) devices. * `tf-saved-model` A tensorflow model in SavedModel format. * `tf-js` A [TensorFlow.js](https://www.tensorflow.org/js) model that can be used in the browser and in Node.js using JavaScript. * `core-ml` Used for iOS mobile devices. * `custom-trained` A Model that was uploaded or trained by custom code. * `genie` A tuned Model Garden model. */
4419
4433
  id?: string;
4420
4434
  }
4421
4435
  interface GoogleCloudAiplatformV1beta1ModelGardenSource {
@@ -5280,8 +5294,14 @@ declare namespace gapi.client {
5280
5294
  pairwiseChoice?: string;
5281
5295
  }
5282
5296
  interface GoogleCloudAiplatformV1beta1PairwiseMetricSpec {
5297
+ /** Optional. The field name of the baseline response. */
5298
+ baselineResponseFieldName?: string;
5299
+ /** Optional. The field name of the candidate response. */
5300
+ candidateResponseFieldName?: string;
5283
5301
  /** Required. Metric prompt template for pairwise metric. */
5284
5302
  metricPromptTemplate?: string;
5303
+ /** Optional. System instructions for pairwise metric. */
5304
+ systemInstruction?: string;
5285
5305
  }
5286
5306
  interface GoogleCloudAiplatformV1beta1PairwiseQuestionAnsweringQualityInput {
5287
5307
  /** Required. Pairwise question answering quality instance. */
@@ -5624,6 +5644,8 @@ declare namespace gapi.client {
5624
5644
  interface GoogleCloudAiplatformV1beta1PointwiseMetricSpec {
5625
5645
  /** Required. Metric prompt template for pointwise metric. */
5626
5646
  metricPromptTemplate?: string;
5647
+ /** Optional. System instructions for pointwise metric. */
5648
+ systemInstruction?: string;
5627
5649
  }
5628
5650
  interface GoogleCloudAiplatformV1beta1Port {
5629
5651
  /** The number of the port to expose on the pod's IP address. Must be a valid port number, between 1 and 65535 inclusive. */
@@ -5721,12 +5743,18 @@ declare namespace gapi.client {
5721
5743
  interface GoogleCloudAiplatformV1beta1Probe {
5722
5744
  /** ExecAction probes the health of a container by executing a command. */
5723
5745
  exec?: GoogleCloudAiplatformV1beta1ProbeExecAction;
5746
+ /** Number of consecutive failures before the probe is considered failed. Defaults to 3. Minimum value is 1. Maps to Kubernetes probe argument 'failureThreshold'. */
5747
+ failureThreshold?: number;
5724
5748
  /** GrpcAction probes the health of a container by sending a gRPC request. */
5725
5749
  grpc?: GoogleCloudAiplatformV1beta1ProbeGrpcAction;
5726
5750
  /** HttpGetAction probes the health of a container by sending an HTTP GET request. */
5727
5751
  httpGet?: GoogleCloudAiplatformV1beta1ProbeHttpGetAction;
5752
+ /** Number of seconds to wait before starting the probe. Defaults to 0. Minimum value is 0. Maps to Kubernetes probe argument 'initialDelaySeconds'. */
5753
+ initialDelaySeconds?: number;
5728
5754
  /** 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'. */
5729
5755
  periodSeconds?: number;
5756
+ /** Number of consecutive successes before the probe is considered successful. Defaults to 1. Minimum value is 1. Maps to Kubernetes probe argument 'successThreshold'. */
5757
+ successThreshold?: number;
5730
5758
  /** TcpSocketAction probes the health of a container by opening a TCP socket connection. */
5731
5759
  tcpSocket?: GoogleCloudAiplatformV1beta1ProbeTcpSocketAction;
5732
5760
  /** Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Must be greater or equal to period_seconds. Maps to Kubernetes probe argument 'timeoutSeconds'. */
@@ -6650,6 +6678,20 @@ declare namespace gapi.client {
6650
6678
  /** The contexts of the query. */
6651
6679
  contexts?: GoogleCloudAiplatformV1beta1RagContexts;
6652
6680
  }
6681
+ interface GoogleCloudAiplatformV1beta1RolloutOptions {
6682
+ /** Percentage of allowed additional replicas. For autoscaling deployments, this refers to the target replica count. */
6683
+ maxSurgePercentage?: number;
6684
+ /** Absolute count of allowed additional replicas. */
6685
+ maxSurgeReplicas?: number;
6686
+ /** Percentage of replicas allowed to be unavailable. For autoscaling deployments, this refers to the target replica count. */
6687
+ maxUnavailablePercentage?: number;
6688
+ /** Absolute count of replicas allowed to be unavailable. */
6689
+ maxUnavailableReplicas?: number;
6690
+ /** ID of the DeployedModel that this deployment should replace. */
6691
+ previousDeployedModel?: string;
6692
+ /** Output only. Read-only. Revision number determines the relative priority of DeployedModels in the same rollout. The DeployedModel with the largest revision number specifies the intended state of the deployment. */
6693
+ revisionNumber?: number;
6694
+ }
6653
6695
  interface GoogleCloudAiplatformV1beta1RougeInput {
6654
6696
  /** Required. Repeated rouge instances. */
6655
6697
  instances?: GoogleCloudAiplatformV1beta1RougeInstance[];
@@ -17057,6 +17099,68 @@ declare namespace gapi.client {
17057
17099
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
17058
17100
  uploadType?: string;
17059
17101
  }): Request<GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse>;
17102
+ /** Updates the parameters of a single FeatureMonitor. */
17103
+ patch(request: {
17104
+ /** V1 error format. */
17105
+ '$.xgafv'?: string;
17106
+ /** OAuth access token. */
17107
+ access_token?: string;
17108
+ /** Data format for response. */
17109
+ alt?: string;
17110
+ /** JSONP */
17111
+ callback?: string;
17112
+ /** Selector specifying which fields to include in a partial response. */
17113
+ fields?: string;
17114
+ /** 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. */
17115
+ key?: string;
17116
+ /** Identifier. Name of the FeatureMonitor. Format: `projects/{project}/locations/{location}/featureGroups/{featureGroup}/featureMonitors/{featureMonitor}` */
17117
+ name: string;
17118
+ /** OAuth 2.0 token for the current user. */
17119
+ oauth_token?: string;
17120
+ /** Returns response with indentations and line breaks. */
17121
+ prettyPrint?: boolean;
17122
+ /** 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. */
17123
+ quotaUser?: string;
17124
+ /** Optional. Field mask is used to specify the fields to be overwritten in the FeatureMonitor resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `description` * `schedule_config` * `feature_selection_config` */
17125
+ updateMask?: string;
17126
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
17127
+ upload_protocol?: string;
17128
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
17129
+ uploadType?: string;
17130
+ /** Request body */
17131
+ resource: GoogleCloudAiplatformV1beta1FeatureMonitor;
17132
+ }): Request<GoogleLongrunningOperation>;
17133
+ patch(
17134
+ request: {
17135
+ /** V1 error format. */
17136
+ '$.xgafv'?: string;
17137
+ /** OAuth access token. */
17138
+ access_token?: string;
17139
+ /** Data format for response. */
17140
+ alt?: string;
17141
+ /** JSONP */
17142
+ callback?: string;
17143
+ /** Selector specifying which fields to include in a partial response. */
17144
+ fields?: string;
17145
+ /** 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. */
17146
+ key?: string;
17147
+ /** Identifier. Name of the FeatureMonitor. Format: `projects/{project}/locations/{location}/featureGroups/{featureGroup}/featureMonitors/{featureMonitor}` */
17148
+ name: string;
17149
+ /** OAuth 2.0 token for the current user. */
17150
+ oauth_token?: string;
17151
+ /** Returns response with indentations and line breaks. */
17152
+ prettyPrint?: boolean;
17153
+ /** 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. */
17154
+ quotaUser?: string;
17155
+ /** Optional. Field mask is used to specify the fields to be overwritten in the FeatureMonitor resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `description` * `schedule_config` * `feature_selection_config` */
17156
+ updateMask?: string;
17157
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
17158
+ upload_protocol?: string;
17159
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
17160
+ uploadType?: string;
17161
+ },
17162
+ body: GoogleCloudAiplatformV1beta1FeatureMonitor,
17163
+ ): Request<GoogleLongrunningOperation>;
17060
17164
  featureMonitorJobs: FeatureMonitorJobsResource;
17061
17165
  operations: OperationsResource;
17062
17166
  }
@@ -17785,7 +17889,7 @@ declare namespace gapi.client {
17785
17889
  prettyPrint?: boolean;
17786
17890
  /** 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. */
17787
17891
  quotaUser?: string;
17788
- /** Field mask is used to specify the fields to be overwritten in the FeatureGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `description` * `big_query` * `big_query.entity_id_columns` */
17892
+ /** Field mask is used to specify the fields to be overwritten in the FeatureGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `description` * `big_query` * `big_query.entity_id_columns` * `service_agent_type` */
17789
17893
  updateMask?: string;
17790
17894
  /** Upload protocol for media (e.g. "raw", "multipart"). */
17791
17895
  upload_protocol?: string;
@@ -17816,7 +17920,7 @@ declare namespace gapi.client {
17816
17920
  prettyPrint?: boolean;
17817
17921
  /** 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. */
17818
17922
  quotaUser?: string;
17819
- /** Field mask is used to specify the fields to be overwritten in the FeatureGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `description` * `big_query` * `big_query.entity_id_columns` */
17923
+ /** Field mask is used to specify the fields to be overwritten in the FeatureGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `description` * `big_query` * `big_query.entity_id_columns` * `service_agent_type` */
17820
17924
  updateMask?: string;
17821
17925
  /** Upload protocol for media (e.g. "raw", "multipart"). */
17822
17926
  upload_protocol?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.aiplatform-v1beta1",
3
- "version": "0.0.20250131",
3
+ "version": "0.0.20250205",
4
4
  "description": "TypeScript typings for Vertex AI API v1beta1",
5
5
  "repository": {
6
6
  "type": "git",