@maxim_mazurok/gapi.client.aiplatform-v1 0.0.20231101 → 0.0.20231111

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 (3) hide show
  1. package/index.d.ts +804 -152
  2. package/package.json +1 -1
  3. package/tests.ts +163 -57
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: 20231101
12
+ // Revision: 20231111
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -758,6 +758,22 @@ declare namespace gapi.client {
758
758
  successfulForecastPointCount?:
759
759
  string;
760
760
  }
761
+ interface GoogleCloudAiplatformV1ComputeTokensRequest {
762
+ /**
763
+ * Required. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat
764
+ * models, or Codey models.
765
+ */
766
+ instances?:
767
+ any[];
768
+ }
769
+ interface GoogleCloudAiplatformV1ComputeTokensResponse {
770
+ /**
771
+ * Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request
772
+ * with multiple instances.
773
+ */
774
+ tokensInfo?:
775
+ GoogleCloudAiplatformV1TokensInfo[];
776
+ }
761
777
  interface GoogleCloudAiplatformV1ContainerRegistryDestination {
762
778
  /**
763
779
  * Required. Container Registry URI of a container image. Only Google Container Registry and Artifact Registry are supported now. Accepted forms: * Google Container Registry path. For
@@ -855,6 +871,19 @@ declare namespace gapi.client {
855
871
  modelVersionId?:
856
872
  string;
857
873
  }
874
+ interface GoogleCloudAiplatformV1CountTokensRequest {
875
+ /** Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model. */
876
+ instances?:
877
+ any[];
878
+ }
879
+ interface GoogleCloudAiplatformV1CountTokensResponse {
880
+ /** The total number of billable characters counted across all instances from the request. */
881
+ totalBillableCharacters?:
882
+ number;
883
+ /** The total number of tokens counted across all instances from the request. */
884
+ totalTokens?:
885
+ number;
886
+ }
858
887
  interface GoogleCloudAiplatformV1CreateDatasetOperationMetadata {
859
888
  /** The operation generic information. */
860
889
  genericMetadata?:
@@ -865,6 +894,22 @@ declare namespace gapi.client {
865
894
  genericMetadata?:
866
895
  GoogleCloudAiplatformV1GenericOperationMetadata;
867
896
  }
897
+ interface GoogleCloudAiplatformV1CreateDeploymentResourcePoolOperationMetadata {
898
+ /** The operation generic information. */
899
+ genericMetadata?:
900
+ GoogleCloudAiplatformV1GenericOperationMetadata;
901
+ }
902
+ interface GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest {
903
+ /** Required. The DeploymentResourcePool to create. */
904
+ deploymentResourcePool?:
905
+ GoogleCloudAiplatformV1DeploymentResourcePool;
906
+ /**
907
+ * Required. The ID to use for the DeploymentResourcePool, which will become the final component of the DeploymentResourcePool's resource name. The maximum length is 63 characters, and
908
+ * valid characters are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`.
909
+ */
910
+ deploymentResourcePoolId?:
911
+ string;
912
+ }
868
913
  interface GoogleCloudAiplatformV1CreateEndpointOperationMetadata {
869
914
  /** The operation generic information. */
870
915
  genericMetadata?:
@@ -1436,11 +1481,11 @@ declare namespace gapi.client {
1436
1481
  createTime?:
1437
1482
  string;
1438
1483
  /**
1439
- * Optional. A description of resources that are dedicated to the DeployedIndex, and that need a higher degree of manual configuration. If min_replica_count is not set, the default
1440
- * value is 2 (we don't provide SLA when min_replica_count=1). If max_replica_count is not set, the default value is min_replica_count. The max allowed replica count is 1000. Available
1441
- * machine types for SMALL shard: e2-standard-2 and all machine types available for MEDIUM and LARGE shard. Available machine types for MEDIUM shard: e2-standard-16 and all machine
1442
- * types available for LARGE shard. Available machine types for LARGE shard: e2-highmem-16, n2d-standard-32. n1-standard-16 and n1-standard-32 are still available, but we recommend
1443
- * e2-standard-16 and e2-highmem-16 for cost efficiency.
1484
+ * Optional. A description of resources that are dedicated to the DeployedIndex, and that need a higher degree of manual configuration. The field min_replica_count must be set to a
1485
+ * value strictly greater than 0, or else validation will fail. We don't provide SLA when min_replica_count=1. If max_replica_count is not set, the default value is min_replica_count.
1486
+ * The max allowed replica count is 1000. Available machine types for SMALL shard: e2-standard-2 and all machine types available for MEDIUM and LARGE shard. Available machine types for
1487
+ * MEDIUM shard: e2-standard-16 and all machine types available for LARGE shard. Available machine types for LARGE shard: e2-highmem-16, n2d-standard-32. n1-standard-16 and
1488
+ * n1-standard-32 are still available, but we recommend e2-standard-16 and e2-highmem-16 for cost efficiency.
1444
1489
  */
1445
1490
  dedicatedResources?:
1446
1491
  GoogleCloudAiplatformV1DedicatedResources;
@@ -1609,6 +1654,17 @@ declare namespace gapi.client {
1609
1654
  deployedIndex?:
1610
1655
  GoogleCloudAiplatformV1DeployedIndex;
1611
1656
  }
1657
+ interface GoogleCloudAiplatformV1DeploymentResourcePool {
1658
+ /** Output only. Timestamp when this DeploymentResourcePool was created. */
1659
+ createTime?:
1660
+ string;
1661
+ /** Required. The underlying DedicatedResources that the DeploymentResourcePool uses. */
1662
+ dedicatedResources?:
1663
+ GoogleCloudAiplatformV1DedicatedResources;
1664
+ /** Immutable. The resource name of the DeploymentResourcePool. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */
1665
+ name?:
1666
+ string;
1667
+ }
1612
1668
  interface GoogleCloudAiplatformV1DeployModelOperationMetadata {
1613
1669
  /** The operation generic information. */
1614
1670
  genericMetadata?:
@@ -2519,12 +2575,6 @@ declare namespace gapi.client {
2519
2575
  /** Output only. Timestamp when this FeatureOnlineStore was created. */
2520
2576
  createTime?:
2521
2577
  string;
2522
- /** Optional. The dedicated serving endpoint for this FeatureOnlineStore, which is different from common Vertex service endpoint. */
2523
- dedicatedServingEndpoint?:
2524
- GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint;
2525
- /** Optional. The settings for embedding management in FeatureOnlineStore. */
2526
- embeddingManagement?:
2527
- GoogleCloudAiplatformV1FeatureOnlineStoreEmbeddingManagement;
2528
2578
  /** Optional. Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. */
2529
2579
  etag?:
2530
2580
  string;
@@ -2565,25 +2615,6 @@ declare namespace gapi.client {
2565
2615
  minNodeCount?:
2566
2616
  number;
2567
2617
  }
2568
- interface GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint {
2569
- /**
2570
- * Optional. Private service connect config. If PrivateServiceConnectConfig.enable_private_service_connect set to true, customers will use private service connection to send request.
2571
- * Otherwise, the connection will set to public endpoint.
2572
- */
2573
- privateServiceConnectConfig?:
2574
- GoogleCloudAiplatformV1PrivateServiceConnectConfig;
2575
- /** Output only. This field will be populated with the domain name to use for this FeatureOnlineStore */
2576
- publicEndpointDomainName?:
2577
- string;
2578
- /** Output only. The name of the service attachment resource. Populated if private service connect is enabled and after FeatureViewSync is created. */
2579
- serviceAttachment?:
2580
- string;
2581
- }
2582
- interface GoogleCloudAiplatformV1FeatureOnlineStoreEmbeddingManagement {
2583
- /** Optional. Immutable. Whether to enable embedding management in this FeatureOnlineStore. It's immutable after creation to ensure the FeatureOnlineStore availability. */
2584
- enabled?:
2585
- boolean;
2586
- }
2587
2618
  interface GoogleCloudAiplatformV1FeatureSelector {
2588
2619
  /** Required. Matches Features based on ID. */
2589
2620
  idMatcher?:
@@ -2844,12 +2875,6 @@ declare namespace gapi.client {
2844
2875
  /** Output only. Timestamp when this FeatureView was last updated. */
2845
2876
  updateTime?:
2846
2877
  string;
2847
- /**
2848
- * Optional. Configuration for vector search. It contains the required configurations to create an index from source data, so that approximate nearest neighbor (a.k.a ANN) algorithms
2849
- * search can be performed during online serving.
2850
- */
2851
- vectorSearchConfig?:
2852
- GoogleCloudAiplatformV1FeatureViewVectorSearchConfig;
2853
2878
  }
2854
2879
  interface GoogleCloudAiplatformV1FeatureViewBigQuerySource {
2855
2880
  /** Required. Columns to construct entity_id / row keys. Start by supporting 1 only. */
@@ -2859,6 +2884,11 @@ declare namespace gapi.client {
2859
2884
  uri?:
2860
2885
  string;
2861
2886
  }
2887
+ interface GoogleCloudAiplatformV1FeatureViewDataKey {
2888
+ /** String key to use for lookup. */
2889
+ key?:
2890
+ string;
2891
+ }
2862
2892
  interface GoogleCloudAiplatformV1FeatureViewFeatureRegistrySource {
2863
2893
  /** Required. List of features that need to be synced to Online Store. */
2864
2894
  featureGroups?:
@@ -2901,50 +2931,13 @@ declare namespace gapi.client {
2901
2931
  cron?:
2902
2932
  string;
2903
2933
  }
2904
- interface GoogleCloudAiplatformV1FeatureViewVectorSearchConfig {
2905
- /**
2906
- * Optional. Configuration options for using brute force search, which simply implements the standard linear search in the database for each query. It is primarily meant for
2907
- * benchmarking and to generate the ground truth for approximate search.
2908
- */
2909
- bruteForceConfig?:
2910
- any;
2911
- /**
2912
- * Optional. Column of crowding. This column contains crowding attribute which is a constraint on a neighbor list produced by nearest neighbor search requiring that no more than some
2913
- * value k' of the k neighbors returned have the same value of crowding_attribute.
2914
- */
2915
- crowdingColumn?:
2916
- string;
2917
- /** Optional. The distance measure used in nearest neighbor search. */
2918
- distanceMeasureType?:
2919
- string;
2920
- /** Optional. Column of embedding. This column contains the source data to create index for vector search. embedding_column must be set when using vector search. */
2921
- embeddingColumn?:
2922
- string;
2923
- /** Optional. The number of dimensions of the input embedding. */
2924
- embeddingDimension?:
2925
- number;
2926
- /** Optional. Columns of features that're used to filter vector search results. */
2927
- filterColumns?:
2928
- string[];
2929
- /** Optional. Configuration options for the tree-AH algorithm (Shallow tree + Asymmetric Hashing). Please refer to this paper for more details: https://arxiv.org/abs/1908.10396 */
2930
- treeAhConfig?:
2931
- GoogleCloudAiplatformV1FeatureViewVectorSearchConfigTreeAHConfig;
2932
- }
2933
- // tslint:disable-next-line:no-empty-interface
2934
- interface GoogleCloudAiplatformV1FeatureViewVectorSearchConfigBruteForceConfig {
2935
- }
2936
- interface GoogleCloudAiplatformV1FeatureViewVectorSearchConfigTreeAHConfig {
2937
- /** Optional. Number of embeddings on each leaf node. The default value is 1000 if not set. */
2938
- leafNodeEmbeddingCount?:
2939
- string;
2940
- }
2941
2934
  interface GoogleCloudAiplatformV1FetchFeatureValuesRequest {
2942
- /** Specify response data format. If not set, KeyValue format will be used. */
2943
- format?:
2944
- string;
2945
- /** Simple ID. The whole string will be used as is to identify Entity to fetch feature values for. */
2946
- id?:
2935
+ /** Optional. Response data format. If not set, FeatureViewDataFormat.KEY_VALUE will be used. */
2936
+ dataFormat?:
2947
2937
  string;
2938
+ /** Optional. The request key to fetch feature values for. */
2939
+ dataKey?:
2940
+ GoogleCloudAiplatformV1FeatureViewDataKey;
2948
2941
  }
2949
2942
  interface GoogleCloudAiplatformV1FetchFeatureValuesResponse {
2950
2943
  /** Feature values in KeyValue format. */
@@ -3660,6 +3653,14 @@ declare namespace gapi.client {
3660
3653
  nextPageToken?:
3661
3654
  string;
3662
3655
  }
3656
+ interface GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse {
3657
+ /** The DeploymentResourcePools from the specified location. */
3658
+ deploymentResourcePools?:
3659
+ GoogleCloudAiplatformV1DeploymentResourcePool[];
3660
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
3661
+ nextPageToken?:
3662
+ string;
3663
+ }
3663
3664
  interface GoogleCloudAiplatformV1ListEndpointsResponse {
3664
3665
  /** List of Endpoints in the requested page. */
3665
3666
  endpoints?:
@@ -4363,6 +4364,9 @@ declare namespace gapi.client {
4363
4364
  */
4364
4365
  command?:
4365
4366
  string[];
4367
+ /** Immutable. Deployment timeout. TODO (b/306244185): Revise documentation before exposing. */
4368
+ deploymentTimeout?:
4369
+ string;
4366
4370
  /**
4367
4371
  * Immutable. List of environment variables to set in the container. After the container starts running, code running in the container can read these environment variables.
4368
4372
  * Additionally, the command and args fields can reference these variables. Later entries in this list can also reference earlier entries. For example, the following example sets the
@@ -4372,6 +4376,9 @@ declare namespace gapi.client {
4372
4376
  */
4373
4377
  env?:
4374
4378
  GoogleCloudAiplatformV1EnvVar[];
4379
+ /** Immutable. Specification for Kubernetes readiness probe. TODO (b/306244185): Revise documentation before exposing. */
4380
+ healthProbe?:
4381
+ GoogleCloudAiplatformV1Probe;
4375
4382
  /**
4376
4383
  * Immutable. HTTP path on the container to send health checks to. Vertex AI intermittently sends GET requests to this path on the container's IP address and port to check that the
4377
4384
  * container is healthy. Read more about [health checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health). For example, if you set this field
@@ -4415,6 +4422,12 @@ declare namespace gapi.client {
4415
4422
  */
4416
4423
  predictRoute?:
4417
4424
  string;
4425
+ /** Immutable. The amount of the VM memory to reserve as the shared memory for the model in megabytes. TODO (b/306244185): Revise documentation before exposing. */
4426
+ sharedMemorySizeMb?:
4427
+ string;
4428
+ /** Immutable. Specification for Kubernetes startup probe. TODO (b/306244185): Revise documentation before exposing. */
4429
+ startupProbe?:
4430
+ GoogleCloudAiplatformV1Probe;
4418
4431
  }
4419
4432
  interface GoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable {
4420
4433
  /** The created BigQuery table to store logs. Customer could do their own query & analysis. Format: `bq://.model_deployment_monitoring_._` */
@@ -5636,6 +5649,29 @@ declare namespace gapi.client {
5636
5649
  projectAllowlist?:
5637
5650
  string[];
5638
5651
  }
5652
+ interface GoogleCloudAiplatformV1Probe {
5653
+ /** Exec specifies the action to take. */
5654
+ exec?:
5655
+ GoogleCloudAiplatformV1ProbeExecAction;
5656
+ /** 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'. */
5657
+ periodSeconds?:
5658
+ number;
5659
+ /**
5660
+ * 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
5661
+ * 'timeoutSeconds'.
5662
+ */
5663
+ timeoutSeconds?:
5664
+ number;
5665
+ }
5666
+ interface GoogleCloudAiplatformV1ProbeExecAction {
5667
+ /**
5668
+ * Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is
5669
+ * not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as
5670
+ * live/healthy and non-zero is unhealthy.
5671
+ */
5672
+ command?:
5673
+ string[];
5674
+ }
5639
5675
  interface GoogleCloudAiplatformV1PublisherModel {
5640
5676
  /** Optional. Additional information about the model's Frameworks. */
5641
5677
  frameworks?:
@@ -5839,6 +5875,23 @@ declare namespace gapi.client {
5839
5875
  pythonModule?:
5840
5876
  string;
5841
5877
  }
5878
+ interface GoogleCloudAiplatformV1QueryDeployedModelsResponse {
5879
+ /** References to the DeployedModels that share the specified deploymentResourcePool. */
5880
+ deployedModelRefs?:
5881
+ GoogleCloudAiplatformV1DeployedModelRef[];
5882
+ /** DEPRECATED Use deployed_model_refs instead. */
5883
+ deployedModels?:
5884
+ GoogleCloudAiplatformV1DeployedModel[];
5885
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
5886
+ nextPageToken?:
5887
+ string;
5888
+ /** The total number of DeployedModels on this DeploymentResourcePool. */
5889
+ totalDeployedModelCount?:
5890
+ number;
5891
+ /** The total number of Endpoints that have DeployedModels on this DeploymentResourcePool. */
5892
+ totalEndpointCount?:
5893
+ number;
5894
+ }
5842
5895
  interface GoogleCloudAiplatformV1RawPredictRequest {
5843
5896
  /**
5844
5897
  * 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
@@ -6795,17 +6848,23 @@ declare namespace gapi.client {
6795
6848
  string;
6796
6849
  }
6797
6850
  interface GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfig {
6851
+ /** If set, skip finding claim attributions (i.e not generate grounding citation). */
6852
+ disableAttribution?:
6853
+ boolean;
6798
6854
  /** The sources for the grounding checking. */
6799
6855
  sources?:
6800
6856
  GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfigSourceEntry[];
6801
6857
  }
6802
6858
  interface GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfigSourceEntry {
6803
- /** The uri of the Enterprise Search data source. */
6859
+ /** The uri of the Vertex AI Search data source. Deprecated. Use vertex_ai_search_datastore instead. */
6804
6860
  enterpriseDatastore?:
6805
6861
  string;
6806
6862
  /** The type of the grounding checking source. */
6807
6863
  type?:
6808
6864
  string;
6865
+ /** The uri of the Vertex AI Search data source. */
6866
+ vertexAiSearchDatastore?:
6867
+ string;
6809
6868
  }
6810
6869
  interface GoogleCloudAiplatformV1SchemaPredictParamsImageClassificationPredictionParams {
6811
6870
  /** The Model only returns predictions with at least this confidence score. Default value is 0.0 */
@@ -9116,6 +9175,14 @@ declare namespace gapi.client {
9116
9175
  validationFraction?:
9117
9176
  number;
9118
9177
  }
9178
+ interface GoogleCloudAiplatformV1TokensInfo {
9179
+ /** A list of token ids from the input. */
9180
+ tokenIds?:
9181
+ string[];
9182
+ /** A list of tokens from the input. */
9183
+ tokens?:
9184
+ string[];
9185
+ }
9119
9186
  interface GoogleCloudAiplatformV1TrainingConfig {
9120
9187
  /** The timeout hours for the CMLE training job, expressed in milli hours i.e. 1,000 value in this field means 1 hour. */
9121
9188
  timeoutTrainingMilliHours?:
@@ -9314,6 +9381,11 @@ declare namespace gapi.client {
9314
9381
  predictSchemata?:
9315
9382
  GoogleCloudAiplatformV1PredictSchemata;
9316
9383
  }
9384
+ interface GoogleCloudAiplatformV1UpdateDeploymentResourcePoolOperationMetadata {
9385
+ /** The operation generic information. */
9386
+ genericMetadata?:
9387
+ GoogleCloudAiplatformV1GenericOperationMetadata;
9388
+ }
9317
9389
  interface GoogleCloudAiplatformV1UpdateExplanationDatasetOperationMetadata {
9318
9390
  /** The common part of the operation metadata. */
9319
9391
  genericMetadata?:
@@ -9398,8 +9470,9 @@ declare namespace gapi.client {
9398
9470
  string;
9399
9471
  /**
9400
9472
  * Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service
9401
- * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used. Users uploading the Model must have the `iam.serviceAccounts.actAs` permission on
9402
- * this service account. Also, this account must belong to the project specified in the `parent` field and have all necessary read permissions.
9473
+ * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the
9474
+ * target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage,
9475
+ * Artifact Registry, etc.).
9403
9476
  */
9404
9477
  serviceAccount?:
9405
9478
  string;
@@ -13511,44 +13584,472 @@ declare namespace gapi.client {
13511
13584
  /** 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. */
13512
13585
  key?:
13513
13586
  string;
13514
- /** The name of the operation resource to wait on. */
13587
+ /** The name of the operation resource to wait on. */
13588
+ name:
13589
+ string;
13590
+ /** OAuth 2.0 token for the current user. */
13591
+ oauth_token?:
13592
+ string;
13593
+ /** Returns response with indentations and line breaks. */
13594
+ prettyPrint?:
13595
+ boolean;
13596
+ /** 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. */
13597
+ quotaUser?:
13598
+ string;
13599
+ /**
13600
+ * The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also
13601
+ * specified, the shorter one will be used.
13602
+ */
13603
+ timeout?:
13604
+ string;
13605
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13606
+ upload_protocol?:
13607
+ string;
13608
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13609
+ uploadType?:
13610
+ string;
13611
+ }): Request<GoogleLongrunningOperation>;
13612
+ }
13613
+ interface DeploymentResourcePoolsResource {
13614
+ /** Create a DeploymentResourcePool. */
13615
+ create(request: {
13616
+ /** V1 error format. */
13617
+ "$.xgafv"?:
13618
+ string;
13619
+ /** OAuth access token. */
13620
+ access_token?:
13621
+ string;
13622
+ /** Data format for response. */
13623
+ alt?:
13624
+ string;
13625
+ /** JSONP */
13626
+ callback?:
13627
+ string;
13628
+ /** Selector specifying which fields to include in a partial response. */
13629
+ fields?:
13630
+ string;
13631
+ /** 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. */
13632
+ key?:
13633
+ string;
13634
+ /** OAuth 2.0 token for the current user. */
13635
+ oauth_token?:
13636
+ string;
13637
+ /** Required. The parent location resource where this DeploymentResourcePool will be created. Format: `projects/{project}/locations/{location}` */
13638
+ parent:
13639
+ string;
13640
+ /** Returns response with indentations and line breaks. */
13641
+ prettyPrint?:
13642
+ boolean;
13643
+ /** 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. */
13644
+ quotaUser?:
13645
+ string;
13646
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13647
+ upload_protocol?:
13648
+ string;
13649
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13650
+ uploadType?:
13651
+ string;
13652
+ /** Request body */
13653
+ resource:
13654
+ GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest;
13655
+ }): Request<GoogleLongrunningOperation>;
13656
+ create(request: {
13657
+ /** V1 error format. */
13658
+ "$.xgafv"?:
13659
+ string;
13660
+ /** OAuth access token. */
13661
+ access_token?:
13662
+ string;
13663
+ /** Data format for response. */
13664
+ alt?:
13665
+ string;
13666
+ /** JSONP */
13667
+ callback?:
13668
+ string;
13669
+ /** Selector specifying which fields to include in a partial response. */
13670
+ fields?:
13671
+ string;
13672
+ /** 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. */
13673
+ key?:
13674
+ string;
13675
+ /** OAuth 2.0 token for the current user. */
13676
+ oauth_token?:
13677
+ string;
13678
+ /** Required. The parent location resource where this DeploymentResourcePool will be created. Format: `projects/{project}/locations/{location}` */
13679
+ parent:
13680
+ string;
13681
+ /** Returns response with indentations and line breaks. */
13682
+ prettyPrint?:
13683
+ boolean;
13684
+ /** 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. */
13685
+ quotaUser?:
13686
+ string;
13687
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13688
+ upload_protocol?:
13689
+ string;
13690
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13691
+ uploadType?:
13692
+ string;
13693
+ },
13694
+ body: GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest): Request<GoogleLongrunningOperation>;
13695
+ /** Delete a DeploymentResourcePool. */
13696
+ delete(request?: {
13697
+ /** V1 error format. */
13698
+ "$.xgafv"?:
13699
+ string;
13700
+ /** OAuth access token. */
13701
+ access_token?:
13702
+ string;
13703
+ /** Data format for response. */
13704
+ alt?:
13705
+ string;
13706
+ /** JSONP */
13707
+ callback?:
13708
+ string;
13709
+ /** Selector specifying which fields to include in a partial response. */
13710
+ fields?:
13711
+ string;
13712
+ /** 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. */
13713
+ key?:
13714
+ string;
13715
+ /** Required. The name of the DeploymentResourcePool to delete. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */
13716
+ name:
13717
+ string;
13718
+ /** OAuth 2.0 token for the current user. */
13719
+ oauth_token?:
13720
+ string;
13721
+ /** Returns response with indentations and line breaks. */
13722
+ prettyPrint?:
13723
+ boolean;
13724
+ /** 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. */
13725
+ quotaUser?:
13726
+ string;
13727
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13728
+ upload_protocol?:
13729
+ string;
13730
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13731
+ uploadType?:
13732
+ string;
13733
+ }): Request<GoogleLongrunningOperation>;
13734
+ /** Get a DeploymentResourcePool. */
13735
+ get(request?: {
13736
+ /** V1 error format. */
13737
+ "$.xgafv"?:
13738
+ string;
13739
+ /** OAuth access token. */
13740
+ access_token?:
13741
+ string;
13742
+ /** Data format for response. */
13743
+ alt?:
13744
+ string;
13745
+ /** JSONP */
13746
+ callback?:
13747
+ string;
13748
+ /** Selector specifying which fields to include in a partial response. */
13749
+ fields?:
13750
+ string;
13751
+ /** 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. */
13752
+ key?:
13753
+ string;
13754
+ /** Required. The name of the DeploymentResourcePool to retrieve. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */
13755
+ name:
13756
+ string;
13757
+ /** OAuth 2.0 token for the current user. */
13758
+ oauth_token?:
13759
+ string;
13760
+ /** Returns response with indentations and line breaks. */
13761
+ prettyPrint?:
13762
+ boolean;
13763
+ /** 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. */
13764
+ quotaUser?:
13765
+ string;
13766
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13767
+ upload_protocol?:
13768
+ string;
13769
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13770
+ uploadType?:
13771
+ string;
13772
+ }): Request<GoogleCloudAiplatformV1DeploymentResourcePool>;
13773
+ /** List DeploymentResourcePools in a location. */
13774
+ list(request?: {
13775
+ /** V1 error format. */
13776
+ "$.xgafv"?:
13777
+ string;
13778
+ /** OAuth access token. */
13779
+ access_token?:
13780
+ string;
13781
+ /** Data format for response. */
13782
+ alt?:
13783
+ string;
13784
+ /** JSONP */
13785
+ callback?:
13786
+ string;
13787
+ /** Selector specifying which fields to include in a partial response. */
13788
+ fields?:
13789
+ string;
13790
+ /** 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. */
13791
+ key?:
13792
+ string;
13793
+ /** OAuth 2.0 token for the current user. */
13794
+ oauth_token?:
13795
+ string;
13796
+ /** The maximum number of DeploymentResourcePools to return. The service may return fewer than this value. */
13797
+ pageSize?:
13798
+ number;
13799
+ /**
13800
+ * A page token, received from a previous `ListDeploymentResourcePools` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
13801
+ * `ListDeploymentResourcePools` must match the call that provided the page token.
13802
+ */
13803
+ pageToken?:
13804
+ string;
13805
+ /** Required. The parent Location which owns this collection of DeploymentResourcePools. Format: `projects/{project}/locations/{location}` */
13806
+ parent:
13807
+ string;
13808
+ /** Returns response with indentations and line breaks. */
13809
+ prettyPrint?:
13810
+ boolean;
13811
+ /** 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. */
13812
+ quotaUser?:
13813
+ string;
13814
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13815
+ upload_protocol?:
13816
+ string;
13817
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13818
+ uploadType?:
13819
+ string;
13820
+ }): Request<GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse>;
13821
+ /** List DeployedModels that have been deployed on this DeploymentResourcePool. */
13822
+ queryDeployedModels(request?: {
13823
+ /** V1 error format. */
13824
+ "$.xgafv"?:
13825
+ string;
13826
+ /** OAuth access token. */
13827
+ access_token?:
13828
+ string;
13829
+ /** Data format for response. */
13830
+ alt?:
13831
+ string;
13832
+ /** JSONP */
13833
+ callback?:
13834
+ string;
13835
+ /** Required. The name of the target DeploymentResourcePool to query. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */
13836
+ deploymentResourcePool:
13837
+ string;
13838
+ /** Selector specifying which fields to include in a partial response. */
13839
+ fields?:
13840
+ string;
13841
+ /** 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. */
13842
+ key?:
13843
+ string;
13844
+ /** OAuth 2.0 token for the current user. */
13845
+ oauth_token?:
13846
+ string;
13847
+ /** The maximum number of DeployedModels to return. The service may return fewer than this value. */
13848
+ pageSize?:
13849
+ number;
13850
+ /**
13851
+ * A page token, received from a previous `QueryDeployedModels` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
13852
+ * `QueryDeployedModels` must match the call that provided the page token.
13853
+ */
13854
+ pageToken?:
13855
+ string;
13856
+ /** Returns response with indentations and line breaks. */
13857
+ prettyPrint?:
13858
+ boolean;
13859
+ /** 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. */
13860
+ quotaUser?:
13861
+ string;
13862
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13863
+ upload_protocol?:
13864
+ string;
13865
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13866
+ uploadType?:
13867
+ string;
13868
+ }): Request<GoogleCloudAiplatformV1QueryDeployedModelsResponse>;
13869
+ operations:
13870
+ OperationsResource;
13871
+ }
13872
+ interface OperationsResource {
13873
+ /**
13874
+ * 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
13875
+ * 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
13876
+ * operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
13877
+ * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
13878
+ */
13879
+ cancel(request?: {
13880
+ /** V1 error format. */
13881
+ "$.xgafv"?:
13882
+ string;
13883
+ /** OAuth access token. */
13884
+ access_token?:
13885
+ string;
13886
+ /** Data format for response. */
13887
+ alt?:
13888
+ string;
13889
+ /** JSONP */
13890
+ callback?:
13891
+ string;
13892
+ /** Selector specifying which fields to include in a partial response. */
13893
+ fields?:
13894
+ string;
13895
+ /** 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. */
13896
+ key?:
13897
+ string;
13898
+ /** The name of the operation resource to be cancelled. */
13899
+ name:
13900
+ string;
13901
+ /** OAuth 2.0 token for the current user. */
13902
+ oauth_token?:
13903
+ string;
13904
+ /** Returns response with indentations and line breaks. */
13905
+ prettyPrint?:
13906
+ boolean;
13907
+ /** 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. */
13908
+ quotaUser?:
13909
+ string;
13910
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13911
+ upload_protocol?:
13912
+ string;
13913
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13914
+ uploadType?:
13915
+ string;
13916
+ }): Request<{}>;
13917
+ /**
13918
+ * 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
13919
+ * support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
13920
+ */
13921
+ delete(request?: {
13922
+ /** V1 error format. */
13923
+ "$.xgafv"?:
13924
+ string;
13925
+ /** OAuth access token. */
13926
+ access_token?:
13927
+ string;
13928
+ /** Data format for response. */
13929
+ alt?:
13930
+ string;
13931
+ /** JSONP */
13932
+ callback?:
13933
+ string;
13934
+ /** Selector specifying which fields to include in a partial response. */
13935
+ fields?:
13936
+ string;
13937
+ /** 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. */
13938
+ key?:
13939
+ string;
13940
+ /** The name of the operation resource to be deleted. */
13941
+ name:
13942
+ string;
13943
+ /** OAuth 2.0 token for the current user. */
13944
+ oauth_token?:
13945
+ string;
13946
+ /** Returns response with indentations and line breaks. */
13947
+ prettyPrint?:
13948
+ boolean;
13949
+ /** 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. */
13950
+ quotaUser?:
13951
+ string;
13952
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13953
+ upload_protocol?:
13954
+ string;
13955
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13956
+ uploadType?:
13957
+ string;
13958
+ }): Request<{}>;
13959
+ /** 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. */
13960
+ get(request?: {
13961
+ /** V1 error format. */
13962
+ "$.xgafv"?:
13963
+ string;
13964
+ /** OAuth access token. */
13965
+ access_token?:
13966
+ string;
13967
+ /** Data format for response. */
13968
+ alt?:
13969
+ string;
13970
+ /** JSONP */
13971
+ callback?:
13972
+ string;
13973
+ /** Selector specifying which fields to include in a partial response. */
13974
+ fields?:
13975
+ string;
13976
+ /** 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. */
13977
+ key?:
13978
+ string;
13979
+ /** The name of the operation resource. */
13980
+ name:
13981
+ string;
13982
+ /** OAuth 2.0 token for the current user. */
13983
+ oauth_token?:
13984
+ string;
13985
+ /** Returns response with indentations and line breaks. */
13986
+ prettyPrint?:
13987
+ boolean;
13988
+ /** 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. */
13989
+ quotaUser?:
13990
+ string;
13991
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13992
+ upload_protocol?:
13993
+ string;
13994
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13995
+ uploadType?:
13996
+ string;
13997
+ }): Request<GoogleLongrunningOperation>;
13998
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
13999
+ list(request?: {
14000
+ /** V1 error format. */
14001
+ "$.xgafv"?:
14002
+ string;
14003
+ /** OAuth access token. */
14004
+ access_token?:
14005
+ string;
14006
+ /** Data format for response. */
14007
+ alt?:
14008
+ string;
14009
+ /** JSONP */
14010
+ callback?:
14011
+ string;
14012
+ /** Selector specifying which fields to include in a partial response. */
14013
+ fields?:
14014
+ string;
14015
+ /** The standard list filter. */
14016
+ filter?:
14017
+ string;
14018
+ /** 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. */
14019
+ key?:
14020
+ string;
14021
+ /** The name of the operation's parent resource. */
13515
14022
  name:
13516
14023
  string;
13517
14024
  /** OAuth 2.0 token for the current user. */
13518
14025
  oauth_token?:
13519
14026
  string;
14027
+ /** The standard list page size. */
14028
+ pageSize?:
14029
+ number;
14030
+ /** The standard list page token. */
14031
+ pageToken?:
14032
+ string;
13520
14033
  /** Returns response with indentations and line breaks. */
13521
14034
  prettyPrint?:
13522
14035
  boolean;
13523
14036
  /** 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. */
13524
14037
  quotaUser?:
13525
14038
  string;
13526
- /**
13527
- * The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also
13528
- * specified, the shorter one will be used.
13529
- */
13530
- timeout?:
13531
- string;
13532
14039
  /** Upload protocol for media (e.g. "raw", "multipart"). */
13533
14040
  upload_protocol?:
13534
14041
  string;
13535
14042
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13536
14043
  uploadType?:
13537
14044
  string;
13538
- }): Request<GoogleLongrunningOperation>;
13539
- }
13540
- interface DeploymentResourcePoolsResource {
13541
- operations:
13542
- OperationsResource;
13543
- }
13544
- interface OperationsResource {
14045
+ }): Request<GoogleLongrunningListOperationsResponse>;
13545
14046
  /**
13546
- * 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
13547
- * 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
13548
- * operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
13549
- * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
14047
+ * Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is
14048
+ * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns
14049
+ * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even
14050
+ * an immediate response is no guarantee that the operation is done.
13550
14051
  */
13551
- cancel(request?: {
14052
+ wait(request?: {
13552
14053
  /** V1 error format. */
13553
14054
  "$.xgafv"?:
13554
14055
  string;
@@ -13567,7 +14068,7 @@ declare namespace gapi.client {
13567
14068
  /** 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. */
13568
14069
  key?:
13569
14070
  string;
13570
- /** The name of the operation resource to be cancelled. */
14071
+ /** The name of the operation resource to wait on. */
13571
14072
  name:
13572
14073
  string;
13573
14074
  /** OAuth 2.0 token for the current user. */
@@ -13579,18 +14080,23 @@ declare namespace gapi.client {
13579
14080
  /** 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. */
13580
14081
  quotaUser?:
13581
14082
  string;
14083
+ /**
14084
+ * The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also
14085
+ * specified, the shorter one will be used.
14086
+ */
14087
+ timeout?:
14088
+ string;
13582
14089
  /** Upload protocol for media (e.g. "raw", "multipart"). */
13583
14090
  upload_protocol?:
13584
14091
  string;
13585
14092
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13586
14093
  uploadType?:
13587
14094
  string;
13588
- }): Request<{}>;
13589
- /**
13590
- * 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
13591
- * support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
13592
- */
13593
- delete(request?: {
14095
+ }): Request<GoogleLongrunningOperation>;
14096
+ }
14097
+ interface EndpointsResource {
14098
+ /** Return a list of tokens based on the input text. */
14099
+ computeTokens(request: {
13594
14100
  /** V1 error format. */
13595
14101
  "$.xgafv"?:
13596
14102
  string;
@@ -13603,15 +14109,15 @@ declare namespace gapi.client {
13603
14109
  /** JSONP */
13604
14110
  callback?:
13605
14111
  string;
14112
+ /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */
14113
+ endpoint:
14114
+ string;
13606
14115
  /** Selector specifying which fields to include in a partial response. */
13607
14116
  fields?:
13608
14117
  string;
13609
14118
  /** 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. */
13610
14119
  key?:
13611
14120
  string;
13612
- /** The name of the operation resource to be deleted. */
13613
- name:
13614
- string;
13615
14121
  /** OAuth 2.0 token for the current user. */
13616
14122
  oauth_token?:
13617
14123
  string;
@@ -13627,9 +14133,11 @@ declare namespace gapi.client {
13627
14133
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13628
14134
  uploadType?:
13629
14135
  string;
13630
- }): Request<{}>;
13631
- /** 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. */
13632
- get(request?: {
14136
+ /** Request body */
14137
+ resource:
14138
+ GoogleCloudAiplatformV1ComputeTokensRequest;
14139
+ }): Request<GoogleCloudAiplatformV1ComputeTokensResponse>;
14140
+ computeTokens(request: {
13633
14141
  /** V1 error format. */
13634
14142
  "$.xgafv"?:
13635
14143
  string;
@@ -13642,15 +14150,15 @@ declare namespace gapi.client {
13642
14150
  /** JSONP */
13643
14151
  callback?:
13644
14152
  string;
14153
+ /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */
14154
+ endpoint:
14155
+ string;
13645
14156
  /** Selector specifying which fields to include in a partial response. */
13646
14157
  fields?:
13647
14158
  string;
13648
14159
  /** 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. */
13649
14160
  key?:
13650
14161
  string;
13651
- /** The name of the operation resource. */
13652
- name:
13653
- string;
13654
14162
  /** OAuth 2.0 token for the current user. */
13655
14163
  oauth_token?:
13656
14164
  string;
@@ -13666,9 +14174,10 @@ declare namespace gapi.client {
13666
14174
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13667
14175
  uploadType?:
13668
14176
  string;
13669
- }): Request<GoogleLongrunningOperation>;
13670
- /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
13671
- list(request?: {
14177
+ },
14178
+ body: GoogleCloudAiplatformV1ComputeTokensRequest): Request<GoogleCloudAiplatformV1ComputeTokensResponse>;
14179
+ /** Perform a token counting. */
14180
+ countTokens(request: {
13672
14181
  /** V1 error format. */
13673
14182
  "$.xgafv"?:
13674
14183
  string;
@@ -13681,27 +14190,18 @@ declare namespace gapi.client {
13681
14190
  /** JSONP */
13682
14191
  callback?:
13683
14192
  string;
14193
+ /** Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
14194
+ endpoint:
14195
+ string;
13684
14196
  /** Selector specifying which fields to include in a partial response. */
13685
14197
  fields?:
13686
14198
  string;
13687
- /** The standard list filter. */
13688
- filter?:
13689
- string;
13690
14199
  /** 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. */
13691
14200
  key?:
13692
14201
  string;
13693
- /** The name of the operation's parent resource. */
13694
- name:
13695
- string;
13696
14202
  /** OAuth 2.0 token for the current user. */
13697
14203
  oauth_token?:
13698
14204
  string;
13699
- /** The standard list page size. */
13700
- pageSize?:
13701
- number;
13702
- /** The standard list page token. */
13703
- pageToken?:
13704
- string;
13705
14205
  /** Returns response with indentations and line breaks. */
13706
14206
  prettyPrint?:
13707
14207
  boolean;
@@ -13714,14 +14214,11 @@ declare namespace gapi.client {
13714
14214
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13715
14215
  uploadType?:
13716
14216
  string;
13717
- }): Request<GoogleLongrunningListOperationsResponse>;
13718
- /**
13719
- * Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is
13720
- * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns
13721
- * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even
13722
- * an immediate response is no guarantee that the operation is done.
13723
- */
13724
- wait(request?: {
14217
+ /** Request body */
14218
+ resource:
14219
+ GoogleCloudAiplatformV1CountTokensRequest;
14220
+ }): Request<GoogleCloudAiplatformV1CountTokensResponse>;
14221
+ countTokens(request: {
13725
14222
  /** V1 error format. */
13726
14223
  "$.xgafv"?:
13727
14224
  string;
@@ -13734,15 +14231,15 @@ declare namespace gapi.client {
13734
14231
  /** JSONP */
13735
14232
  callback?:
13736
14233
  string;
14234
+ /** Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
14235
+ endpoint:
14236
+ string;
13737
14237
  /** Selector specifying which fields to include in a partial response. */
13738
14238
  fields?:
13739
14239
  string;
13740
14240
  /** 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. */
13741
14241
  key?:
13742
14242
  string;
13743
- /** The name of the operation resource to wait on. */
13744
- name:
13745
- string;
13746
14243
  /** OAuth 2.0 token for the current user. */
13747
14244
  oauth_token?:
13748
14245
  string;
@@ -13752,21 +14249,14 @@ declare namespace gapi.client {
13752
14249
  /** 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. */
13753
14250
  quotaUser?:
13754
14251
  string;
13755
- /**
13756
- * The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also
13757
- * specified, the shorter one will be used.
13758
- */
13759
- timeout?:
13760
- string;
13761
14252
  /** Upload protocol for media (e.g. "raw", "multipart"). */
13762
14253
  upload_protocol?:
13763
14254
  string;
13764
14255
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13765
14256
  uploadType?:
13766
14257
  string;
13767
- }): Request<GoogleLongrunningOperation>;
13768
- }
13769
- interface EndpointsResource {
14258
+ },
14259
+ body: GoogleCloudAiplatformV1CountTokensRequest): Request<GoogleCloudAiplatformV1CountTokensResponse>;
13770
14260
  /** Creates an Endpoint. */
13771
14261
  create(request: {
13772
14262
  /** V1 error format. */
@@ -28838,6 +29328,168 @@ declare namespace gapi.client {
28838
29328
  OperationsResource;
28839
29329
  }
28840
29330
  interface ModelsResource {
29331
+ /** Return a list of tokens based on the input text. */
29332
+ computeTokens(request: {
29333
+ /** V1 error format. */
29334
+ "$.xgafv"?:
29335
+ string;
29336
+ /** OAuth access token. */
29337
+ access_token?:
29338
+ string;
29339
+ /** Data format for response. */
29340
+ alt?:
29341
+ string;
29342
+ /** JSONP */
29343
+ callback?:
29344
+ string;
29345
+ /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */
29346
+ endpoint:
29347
+ string;
29348
+ /** Selector specifying which fields to include in a partial response. */
29349
+ fields?:
29350
+ string;
29351
+ /** 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. */
29352
+ key?:
29353
+ string;
29354
+ /** OAuth 2.0 token for the current user. */
29355
+ oauth_token?:
29356
+ string;
29357
+ /** Returns response with indentations and line breaks. */
29358
+ prettyPrint?:
29359
+ boolean;
29360
+ /** 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. */
29361
+ quotaUser?:
29362
+ string;
29363
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
29364
+ upload_protocol?:
29365
+ string;
29366
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
29367
+ uploadType?:
29368
+ string;
29369
+ /** Request body */
29370
+ resource:
29371
+ GoogleCloudAiplatformV1ComputeTokensRequest;
29372
+ }): Request<GoogleCloudAiplatformV1ComputeTokensResponse>;
29373
+ computeTokens(request: {
29374
+ /** V1 error format. */
29375
+ "$.xgafv"?:
29376
+ string;
29377
+ /** OAuth access token. */
29378
+ access_token?:
29379
+ string;
29380
+ /** Data format for response. */
29381
+ alt?:
29382
+ string;
29383
+ /** JSONP */
29384
+ callback?:
29385
+ string;
29386
+ /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */
29387
+ endpoint:
29388
+ string;
29389
+ /** Selector specifying which fields to include in a partial response. */
29390
+ fields?:
29391
+ string;
29392
+ /** 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. */
29393
+ key?:
29394
+ string;
29395
+ /** OAuth 2.0 token for the current user. */
29396
+ oauth_token?:
29397
+ string;
29398
+ /** Returns response with indentations and line breaks. */
29399
+ prettyPrint?:
29400
+ boolean;
29401
+ /** 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. */
29402
+ quotaUser?:
29403
+ string;
29404
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
29405
+ upload_protocol?:
29406
+ string;
29407
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
29408
+ uploadType?:
29409
+ string;
29410
+ },
29411
+ body: GoogleCloudAiplatformV1ComputeTokensRequest): Request<GoogleCloudAiplatformV1ComputeTokensResponse>;
29412
+ /** Perform a token counting. */
29413
+ countTokens(request: {
29414
+ /** V1 error format. */
29415
+ "$.xgafv"?:
29416
+ string;
29417
+ /** OAuth access token. */
29418
+ access_token?:
29419
+ string;
29420
+ /** Data format for response. */
29421
+ alt?:
29422
+ string;
29423
+ /** JSONP */
29424
+ callback?:
29425
+ string;
29426
+ /** Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
29427
+ endpoint:
29428
+ string;
29429
+ /** Selector specifying which fields to include in a partial response. */
29430
+ fields?:
29431
+ string;
29432
+ /** 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. */
29433
+ key?:
29434
+ string;
29435
+ /** OAuth 2.0 token for the current user. */
29436
+ oauth_token?:
29437
+ string;
29438
+ /** Returns response with indentations and line breaks. */
29439
+ prettyPrint?:
29440
+ boolean;
29441
+ /** 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. */
29442
+ quotaUser?:
29443
+ string;
29444
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
29445
+ upload_protocol?:
29446
+ string;
29447
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
29448
+ uploadType?:
29449
+ string;
29450
+ /** Request body */
29451
+ resource:
29452
+ GoogleCloudAiplatformV1CountTokensRequest;
29453
+ }): Request<GoogleCloudAiplatformV1CountTokensResponse>;
29454
+ countTokens(request: {
29455
+ /** V1 error format. */
29456
+ "$.xgafv"?:
29457
+ string;
29458
+ /** OAuth access token. */
29459
+ access_token?:
29460
+ string;
29461
+ /** Data format for response. */
29462
+ alt?:
29463
+ string;
29464
+ /** JSONP */
29465
+ callback?:
29466
+ string;
29467
+ /** Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
29468
+ endpoint:
29469
+ string;
29470
+ /** Selector specifying which fields to include in a partial response. */
29471
+ fields?:
29472
+ string;
29473
+ /** 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. */
29474
+ key?:
29475
+ string;
29476
+ /** OAuth 2.0 token for the current user. */
29477
+ oauth_token?:
29478
+ string;
29479
+ /** Returns response with indentations and line breaks. */
29480
+ prettyPrint?:
29481
+ boolean;
29482
+ /** 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. */
29483
+ quotaUser?:
29484
+ string;
29485
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
29486
+ upload_protocol?:
29487
+ string;
29488
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
29489
+ uploadType?:
29490
+ string;
29491
+ },
29492
+ body: GoogleCloudAiplatformV1CountTokensRequest): Request<GoogleCloudAiplatformV1CountTokensResponse>;
28841
29493
  /** Perform an online prediction. */
28842
29494
  predict(request: {
28843
29495
  /** V1 error format. */