@maxim_mazurok/gapi.client.aiplatform-v1 0.0.20240814 → 0.0.20240816
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 +978 -14
- package/package.json +1 -1
- package/readme.md +44 -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: 20240816
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1852,11 +1852,11 @@ declare namespace gapi.client {
|
|
|
1852
1852
|
bigQuerySource?: GoogleCloudAiplatformV1BigQuerySource;
|
|
1853
1853
|
/** Optional. Columns to construct entity_id / row keys. If not provided defaults to `entity_id`. */
|
|
1854
1854
|
entityIdColumns?: string[];
|
|
1855
|
-
/** Optional. If the source is a time-series source, this can be set to control how downstream sources (ex:
|
|
1855
|
+
/** Optional. If the source is a time-series source, this can be set to control how downstream sources (ex: FeatureView ) will treat time-series sources. If not set, will treat the source as a time-series source with `feature_timestamp` as timestamp column and no scan boundary. */
|
|
1856
1856
|
timeSeries?: GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries;
|
|
1857
1857
|
}
|
|
1858
1858
|
interface GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries {
|
|
1859
|
-
/** Optional. Column hosting timestamp values for a time-series source. Will be used to determine the latest
|
|
1859
|
+
/** Optional. Column hosting timestamp values for a time-series source. Will be used to determine the latest `feature_values` for each entity. Optional. If not provided, column named `feature_timestamp` of type `TIMESTAMP` will be used. */
|
|
1860
1860
|
timestampColumn?: string;
|
|
1861
1861
|
}
|
|
1862
1862
|
interface GoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly {
|
|
@@ -2144,6 +2144,8 @@ declare namespace gapi.client {
|
|
|
2144
2144
|
interface GoogleCloudAiplatformV1FeatureViewSyncSyncSummary {
|
|
2145
2145
|
/** Output only. Total number of rows synced. */
|
|
2146
2146
|
rowSynced?: string;
|
|
2147
|
+
/** Lower bound of the system time watermark for the sync job. This is only set for continuously syncing feature views. */
|
|
2148
|
+
systemWatermarkTime?: string;
|
|
2147
2149
|
/** Output only. BigQuery slot milliseconds consumed for the sync job. */
|
|
2148
2150
|
totalSlot?: string;
|
|
2149
2151
|
}
|
|
@@ -2391,7 +2393,7 @@ declare namespace gapi.client {
|
|
|
2391
2393
|
modelRoutingPreference?: string;
|
|
2392
2394
|
}
|
|
2393
2395
|
interface GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode {
|
|
2394
|
-
/** The model name to use. Only the public LLM models are accepted. e.g. gemini-1.5-pro-001. */
|
|
2396
|
+
/** The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.5-pro-001'. */
|
|
2395
2397
|
modelName?: string;
|
|
2396
2398
|
}
|
|
2397
2399
|
interface GoogleCloudAiplatformV1GenericOperationMetadata {
|
|
@@ -3860,7 +3862,7 @@ declare namespace gapi.client {
|
|
|
3860
3862
|
directNotebookSource?: GoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource;
|
|
3861
3863
|
/** The display name of the NotebookExecutionJob. The name can be up to 128 characters long and can consist of any UTF-8 characters. */
|
|
3862
3864
|
displayName?: string;
|
|
3863
|
-
/** Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookRuntimeTemplate has an encryption spec. */
|
|
3865
|
+
/** Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookService.NotebookRuntimeTemplate has an encryption spec. */
|
|
3864
3866
|
encryptionSpec?: GoogleCloudAiplatformV1EncryptionSpec;
|
|
3865
3867
|
/** Max running time of the execution job in seconds (default 86400s / 24 hrs). */
|
|
3866
3868
|
executionTimeout?: string;
|
|
@@ -4124,6 +4126,10 @@ declare namespace gapi.client {
|
|
|
4124
4126
|
resourceRuntime?: GoogleCloudAiplatformV1ResourceRuntime;
|
|
4125
4127
|
/** Optional. Persistent Resource runtime spec. For example, used for Ray cluster configuration. */
|
|
4126
4128
|
resourceRuntimeSpec?: GoogleCloudAiplatformV1ResourceRuntimeSpec;
|
|
4129
|
+
/** Output only. Reserved for future use. */
|
|
4130
|
+
satisfiesPzi?: boolean;
|
|
4131
|
+
/** Output only. Reserved for future use. */
|
|
4132
|
+
satisfiesPzs?: boolean;
|
|
4127
4133
|
/** Output only. Time when the PersistentResource for the first time entered the `RUNNING` state. */
|
|
4128
4134
|
startTime?: string;
|
|
4129
4135
|
/** Output only. The detailed state of a Study. */
|
|
@@ -4404,6 +4410,8 @@ declare namespace gapi.client {
|
|
|
4404
4410
|
deploy?: GoogleCloudAiplatformV1PublisherModelCallToActionDeploy;
|
|
4405
4411
|
/** Optional. Deploy PublisherModel to Google Kubernetes Engine. */
|
|
4406
4412
|
deployGke?: GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke;
|
|
4413
|
+
/** Optional. Multiple setups to deploy the PublisherModel to Vertex Endpoint. */
|
|
4414
|
+
multiDeployVertex?: GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex;
|
|
4407
4415
|
/** Optional. Open evaluation pipeline of the PublisherModel. */
|
|
4408
4416
|
openEvaluationPipeline?: GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences;
|
|
4409
4417
|
/** Optional. Open fine-tuning pipeline of the PublisherModel. */
|
|
@@ -4459,6 +4467,10 @@ declare namespace gapi.client {
|
|
|
4459
4467
|
/** Optional. GKE deployment configuration in yaml format. */
|
|
4460
4468
|
gkeYamlConfigs?: string[];
|
|
4461
4469
|
}
|
|
4470
|
+
interface GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex {
|
|
4471
|
+
/** Optional. One click deployment configurations. */
|
|
4472
|
+
multiDeployVertex?: GoogleCloudAiplatformV1PublisherModelCallToActionDeploy[];
|
|
4473
|
+
}
|
|
4462
4474
|
interface GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines {
|
|
4463
4475
|
/** Required. Regional resource references to fine tuning pipelines. */
|
|
4464
4476
|
fineTuningPipelines?: GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences[];
|
|
@@ -4864,6 +4876,8 @@ declare namespace gapi.client {
|
|
|
4864
4876
|
disableAttribution?: boolean;
|
|
4865
4877
|
/** Set to use data source powered by Vertex AI Search. */
|
|
4866
4878
|
vertexAiSearch?: GoogleCloudAiplatformV1VertexAISearch;
|
|
4879
|
+
/** Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService. */
|
|
4880
|
+
vertexRagStore?: GoogleCloudAiplatformV1VertexRagStore;
|
|
4867
4881
|
}
|
|
4868
4882
|
interface GoogleCloudAiplatformV1RougeInput {
|
|
4869
4883
|
/** Required. Repeated rouge instances. */
|
|
@@ -5030,6 +5044,8 @@ declare namespace gapi.client {
|
|
|
5030
5044
|
interface GoogleCloudAiplatformV1Scheduling {
|
|
5031
5045
|
/** Optional. Indicates if the job should retry for internal errors after the job starts running. If true, overrides `Scheduling.restart_job_on_worker_restart` to false. */
|
|
5032
5046
|
disableRetries?: boolean;
|
|
5047
|
+
/** Optional. This is the maximum duration that a job will wait for the requested resources to be provisioned if the scheduling strategy is set to [Strategy.DWS_FLEX_START]. If set to 0, the job will wait indefinitely. The default is 24 hours. */
|
|
5048
|
+
maxWaitDuration?: string;
|
|
5033
5049
|
/** Restarts the entire CustomJob if a worker gets restarted. This feature can be used by distributed training jobs that are not resilient to workers leaving and joining a job. */
|
|
5034
5050
|
restartJobOnWorkerRestart?: boolean;
|
|
5035
5051
|
/** Optional. This determines which type of scheduling strategy to use. */
|
|
@@ -6868,8 +6884,12 @@ declare namespace gapi.client {
|
|
|
6868
6884
|
totalBillableCharacterCount?: string;
|
|
6869
6885
|
/** Output only. Number of billable tokens in the tuning dataset. */
|
|
6870
6886
|
totalBillableTokenCount?: string;
|
|
6887
|
+
/** The number of examples in the dataset that have been truncated by any amount. */
|
|
6888
|
+
totalTruncatedExampleCount?: string;
|
|
6871
6889
|
/** Output only. Number of tuning characters in the tuning dataset. */
|
|
6872
6890
|
totalTuningCharacterCount?: string;
|
|
6891
|
+
/** A partial sample of the indices (starting from 1) of the truncated examples. */
|
|
6892
|
+
truncatedExampleIndices?: string[];
|
|
6873
6893
|
/** Output only. Number of examples in the tuning dataset. */
|
|
6874
6894
|
tuningDatasetExampleCount?: string;
|
|
6875
6895
|
/** Output only. Number of tuning steps for this Tuning Job. */
|
|
@@ -7439,9 +7459,25 @@ declare namespace gapi.client {
|
|
|
7439
7459
|
stringValue?: string;
|
|
7440
7460
|
}
|
|
7441
7461
|
interface GoogleCloudAiplatformV1VertexAISearch {
|
|
7442
|
-
/** Required. Fully-qualified Vertex AI Search
|
|
7462
|
+
/** Required. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` */
|
|
7443
7463
|
datastore?: string;
|
|
7444
7464
|
}
|
|
7465
|
+
interface GoogleCloudAiplatformV1VertexRagStore {
|
|
7466
|
+
/** Optional. Deprecated. Please use rag_resources instead. */
|
|
7467
|
+
ragCorpora?: string[];
|
|
7468
|
+
/** Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support. */
|
|
7469
|
+
ragResources?: GoogleCloudAiplatformV1VertexRagStoreRagResource[];
|
|
7470
|
+
/** Optional. Number of top k results to return from the selected corpora. */
|
|
7471
|
+
similarityTopK?: number;
|
|
7472
|
+
/** Optional. Only return results with vector distance smaller than the threshold. */
|
|
7473
|
+
vectorDistanceThreshold?: number;
|
|
7474
|
+
}
|
|
7475
|
+
interface GoogleCloudAiplatformV1VertexRagStoreRagResource {
|
|
7476
|
+
/** Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` */
|
|
7477
|
+
ragCorpus?: string;
|
|
7478
|
+
/** Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field. */
|
|
7479
|
+
ragFileIds?: string[];
|
|
7480
|
+
}
|
|
7445
7481
|
interface GoogleCloudAiplatformV1VideoMetadata {
|
|
7446
7482
|
/** Optional. The end offset of the video. */
|
|
7447
7483
|
endOffset?: string;
|
|
@@ -7604,6 +7640,698 @@ declare namespace gapi.client {
|
|
|
7604
7640
|
/** The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. */
|
|
7605
7641
|
units?: string;
|
|
7606
7642
|
}
|
|
7643
|
+
interface DatasetVersionsResource {
|
|
7644
|
+
/** Create a version from a Dataset. */
|
|
7645
|
+
create(request: {
|
|
7646
|
+
/** V1 error format. */
|
|
7647
|
+
'$.xgafv'?: string;
|
|
7648
|
+
/** OAuth access token. */
|
|
7649
|
+
access_token?: string;
|
|
7650
|
+
/** Data format for response. */
|
|
7651
|
+
alt?: string;
|
|
7652
|
+
/** JSONP */
|
|
7653
|
+
callback?: string;
|
|
7654
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
7655
|
+
fields?: string;
|
|
7656
|
+
/** 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. */
|
|
7657
|
+
key?: string;
|
|
7658
|
+
/** OAuth 2.0 token for the current user. */
|
|
7659
|
+
oauth_token?: string;
|
|
7660
|
+
/** Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}` */
|
|
7661
|
+
parent: string;
|
|
7662
|
+
/** Returns response with indentations and line breaks. */
|
|
7663
|
+
prettyPrint?: boolean;
|
|
7664
|
+
/** 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. */
|
|
7665
|
+
quotaUser?: string;
|
|
7666
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
7667
|
+
upload_protocol?: string;
|
|
7668
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
7669
|
+
uploadType?: string;
|
|
7670
|
+
/** Request body */
|
|
7671
|
+
resource: GoogleCloudAiplatformV1DatasetVersion;
|
|
7672
|
+
}): Request<GoogleLongrunningOperation>;
|
|
7673
|
+
create(
|
|
7674
|
+
request: {
|
|
7675
|
+
/** V1 error format. */
|
|
7676
|
+
'$.xgafv'?: string;
|
|
7677
|
+
/** OAuth access token. */
|
|
7678
|
+
access_token?: string;
|
|
7679
|
+
/** Data format for response. */
|
|
7680
|
+
alt?: string;
|
|
7681
|
+
/** JSONP */
|
|
7682
|
+
callback?: string;
|
|
7683
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
7684
|
+
fields?: string;
|
|
7685
|
+
/** 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. */
|
|
7686
|
+
key?: string;
|
|
7687
|
+
/** OAuth 2.0 token for the current user. */
|
|
7688
|
+
oauth_token?: string;
|
|
7689
|
+
/** Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}` */
|
|
7690
|
+
parent: string;
|
|
7691
|
+
/** Returns response with indentations and line breaks. */
|
|
7692
|
+
prettyPrint?: boolean;
|
|
7693
|
+
/** 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. */
|
|
7694
|
+
quotaUser?: string;
|
|
7695
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
7696
|
+
upload_protocol?: string;
|
|
7697
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
7698
|
+
uploadType?: string;
|
|
7699
|
+
},
|
|
7700
|
+
body: GoogleCloudAiplatformV1DatasetVersion
|
|
7701
|
+
): Request<GoogleLongrunningOperation>;
|
|
7702
|
+
/** Deletes a Dataset version. */
|
|
7703
|
+
delete(request?: {
|
|
7704
|
+
/** V1 error format. */
|
|
7705
|
+
'$.xgafv'?: string;
|
|
7706
|
+
/** OAuth access token. */
|
|
7707
|
+
access_token?: string;
|
|
7708
|
+
/** Data format for response. */
|
|
7709
|
+
alt?: string;
|
|
7710
|
+
/** JSONP */
|
|
7711
|
+
callback?: string;
|
|
7712
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
7713
|
+
fields?: string;
|
|
7714
|
+
/** 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. */
|
|
7715
|
+
key?: string;
|
|
7716
|
+
/** Required. The resource name of the Dataset version to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` */
|
|
7717
|
+
name: string;
|
|
7718
|
+
/** OAuth 2.0 token for the current user. */
|
|
7719
|
+
oauth_token?: string;
|
|
7720
|
+
/** Returns response with indentations and line breaks. */
|
|
7721
|
+
prettyPrint?: boolean;
|
|
7722
|
+
/** 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. */
|
|
7723
|
+
quotaUser?: string;
|
|
7724
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
7725
|
+
upload_protocol?: string;
|
|
7726
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
7727
|
+
uploadType?: string;
|
|
7728
|
+
}): Request<GoogleLongrunningOperation>;
|
|
7729
|
+
/** Gets a Dataset version. */
|
|
7730
|
+
get(request?: {
|
|
7731
|
+
/** V1 error format. */
|
|
7732
|
+
'$.xgafv'?: string;
|
|
7733
|
+
/** OAuth access token. */
|
|
7734
|
+
access_token?: string;
|
|
7735
|
+
/** Data format for response. */
|
|
7736
|
+
alt?: string;
|
|
7737
|
+
/** JSONP */
|
|
7738
|
+
callback?: string;
|
|
7739
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
7740
|
+
fields?: string;
|
|
7741
|
+
/** 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. */
|
|
7742
|
+
key?: string;
|
|
7743
|
+
/** Required. The resource name of the Dataset version to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` */
|
|
7744
|
+
name: string;
|
|
7745
|
+
/** OAuth 2.0 token for the current user. */
|
|
7746
|
+
oauth_token?: string;
|
|
7747
|
+
/** Returns response with indentations and line breaks. */
|
|
7748
|
+
prettyPrint?: boolean;
|
|
7749
|
+
/** 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. */
|
|
7750
|
+
quotaUser?: string;
|
|
7751
|
+
/** Mask specifying which fields to read. */
|
|
7752
|
+
readMask?: string;
|
|
7753
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
7754
|
+
upload_protocol?: string;
|
|
7755
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
7756
|
+
uploadType?: string;
|
|
7757
|
+
}): Request<GoogleCloudAiplatformV1DatasetVersion>;
|
|
7758
|
+
/** Lists DatasetVersions in a Dataset. */
|
|
7759
|
+
list(request?: {
|
|
7760
|
+
/** V1 error format. */
|
|
7761
|
+
'$.xgafv'?: string;
|
|
7762
|
+
/** OAuth access token. */
|
|
7763
|
+
access_token?: string;
|
|
7764
|
+
/** Data format for response. */
|
|
7765
|
+
alt?: string;
|
|
7766
|
+
/** JSONP */
|
|
7767
|
+
callback?: string;
|
|
7768
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
7769
|
+
fields?: string;
|
|
7770
|
+
/** Optional. The standard list filter. */
|
|
7771
|
+
filter?: string;
|
|
7772
|
+
/** 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. */
|
|
7773
|
+
key?: string;
|
|
7774
|
+
/** OAuth 2.0 token for the current user. */
|
|
7775
|
+
oauth_token?: string;
|
|
7776
|
+
/** Optional. A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. */
|
|
7777
|
+
orderBy?: string;
|
|
7778
|
+
/** Optional. The standard list page size. */
|
|
7779
|
+
pageSize?: number;
|
|
7780
|
+
/** Optional. The standard list page token. */
|
|
7781
|
+
pageToken?: string;
|
|
7782
|
+
/** Required. The resource name of the Dataset to list DatasetVersions from. Format: `projects/{project}/locations/{location}/datasets/{dataset}` */
|
|
7783
|
+
parent: string;
|
|
7784
|
+
/** Returns response with indentations and line breaks. */
|
|
7785
|
+
prettyPrint?: boolean;
|
|
7786
|
+
/** 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. */
|
|
7787
|
+
quotaUser?: string;
|
|
7788
|
+
/** Optional. Mask specifying which fields to read. */
|
|
7789
|
+
readMask?: string;
|
|
7790
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
7791
|
+
upload_protocol?: string;
|
|
7792
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
7793
|
+
uploadType?: string;
|
|
7794
|
+
}): Request<GoogleCloudAiplatformV1ListDatasetVersionsResponse>;
|
|
7795
|
+
/** Updates a DatasetVersion. */
|
|
7796
|
+
patch(request: {
|
|
7797
|
+
/** V1 error format. */
|
|
7798
|
+
'$.xgafv'?: string;
|
|
7799
|
+
/** OAuth access token. */
|
|
7800
|
+
access_token?: string;
|
|
7801
|
+
/** Data format for response. */
|
|
7802
|
+
alt?: string;
|
|
7803
|
+
/** JSONP */
|
|
7804
|
+
callback?: string;
|
|
7805
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
7806
|
+
fields?: string;
|
|
7807
|
+
/** 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. */
|
|
7808
|
+
key?: string;
|
|
7809
|
+
/** Output only. Identifier. The resource name of the DatasetVersion. */
|
|
7810
|
+
name: string;
|
|
7811
|
+
/** OAuth 2.0 token for the current user. */
|
|
7812
|
+
oauth_token?: string;
|
|
7813
|
+
/** Returns response with indentations and line breaks. */
|
|
7814
|
+
prettyPrint?: boolean;
|
|
7815
|
+
/** 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. */
|
|
7816
|
+
quotaUser?: string;
|
|
7817
|
+
/** Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` */
|
|
7818
|
+
updateMask?: string;
|
|
7819
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
7820
|
+
upload_protocol?: string;
|
|
7821
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
7822
|
+
uploadType?: string;
|
|
7823
|
+
/** Request body */
|
|
7824
|
+
resource: GoogleCloudAiplatformV1DatasetVersion;
|
|
7825
|
+
}): Request<GoogleCloudAiplatformV1DatasetVersion>;
|
|
7826
|
+
patch(
|
|
7827
|
+
request: {
|
|
7828
|
+
/** V1 error format. */
|
|
7829
|
+
'$.xgafv'?: string;
|
|
7830
|
+
/** OAuth access token. */
|
|
7831
|
+
access_token?: string;
|
|
7832
|
+
/** Data format for response. */
|
|
7833
|
+
alt?: string;
|
|
7834
|
+
/** JSONP */
|
|
7835
|
+
callback?: string;
|
|
7836
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
7837
|
+
fields?: string;
|
|
7838
|
+
/** 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. */
|
|
7839
|
+
key?: string;
|
|
7840
|
+
/** Output only. Identifier. The resource name of the DatasetVersion. */
|
|
7841
|
+
name: string;
|
|
7842
|
+
/** OAuth 2.0 token for the current user. */
|
|
7843
|
+
oauth_token?: string;
|
|
7844
|
+
/** Returns response with indentations and line breaks. */
|
|
7845
|
+
prettyPrint?: boolean;
|
|
7846
|
+
/** 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. */
|
|
7847
|
+
quotaUser?: string;
|
|
7848
|
+
/** Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` */
|
|
7849
|
+
updateMask?: string;
|
|
7850
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
7851
|
+
upload_protocol?: string;
|
|
7852
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
7853
|
+
uploadType?: string;
|
|
7854
|
+
},
|
|
7855
|
+
body: GoogleCloudAiplatformV1DatasetVersion
|
|
7856
|
+
): Request<GoogleCloudAiplatformV1DatasetVersion>;
|
|
7857
|
+
/** Restores a dataset version. */
|
|
7858
|
+
restore(request?: {
|
|
7859
|
+
/** V1 error format. */
|
|
7860
|
+
'$.xgafv'?: string;
|
|
7861
|
+
/** OAuth access token. */
|
|
7862
|
+
access_token?: string;
|
|
7863
|
+
/** Data format for response. */
|
|
7864
|
+
alt?: string;
|
|
7865
|
+
/** JSONP */
|
|
7866
|
+
callback?: string;
|
|
7867
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
7868
|
+
fields?: string;
|
|
7869
|
+
/** 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. */
|
|
7870
|
+
key?: string;
|
|
7871
|
+
/** Required. The name of the DatasetVersion resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` */
|
|
7872
|
+
name: string;
|
|
7873
|
+
/** OAuth 2.0 token for the current user. */
|
|
7874
|
+
oauth_token?: string;
|
|
7875
|
+
/** Returns response with indentations and line breaks. */
|
|
7876
|
+
prettyPrint?: boolean;
|
|
7877
|
+
/** 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. */
|
|
7878
|
+
quotaUser?: string;
|
|
7879
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
7880
|
+
upload_protocol?: string;
|
|
7881
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
7882
|
+
uploadType?: string;
|
|
7883
|
+
}): Request<GoogleLongrunningOperation>;
|
|
7884
|
+
}
|
|
7885
|
+
interface DatasetsResource {
|
|
7886
|
+
/** Creates a Dataset. */
|
|
7887
|
+
create(request: {
|
|
7888
|
+
/** V1 error format. */
|
|
7889
|
+
'$.xgafv'?: string;
|
|
7890
|
+
/** OAuth access token. */
|
|
7891
|
+
access_token?: string;
|
|
7892
|
+
/** Data format for response. */
|
|
7893
|
+
alt?: string;
|
|
7894
|
+
/** JSONP */
|
|
7895
|
+
callback?: string;
|
|
7896
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
7897
|
+
fields?: string;
|
|
7898
|
+
/** 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. */
|
|
7899
|
+
key?: string;
|
|
7900
|
+
/** OAuth 2.0 token for the current user. */
|
|
7901
|
+
oauth_token?: string;
|
|
7902
|
+
/** Required. The resource name of the Location to create the Dataset in. Format: `projects/{project}/locations/{location}` */
|
|
7903
|
+
parent?: string;
|
|
7904
|
+
/** Returns response with indentations and line breaks. */
|
|
7905
|
+
prettyPrint?: boolean;
|
|
7906
|
+
/** 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. */
|
|
7907
|
+
quotaUser?: string;
|
|
7908
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
7909
|
+
upload_protocol?: string;
|
|
7910
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
7911
|
+
uploadType?: string;
|
|
7912
|
+
/** Request body */
|
|
7913
|
+
resource: GoogleCloudAiplatformV1Dataset;
|
|
7914
|
+
}): Request<GoogleLongrunningOperation>;
|
|
7915
|
+
create(
|
|
7916
|
+
request: {
|
|
7917
|
+
/** V1 error format. */
|
|
7918
|
+
'$.xgafv'?: string;
|
|
7919
|
+
/** OAuth access token. */
|
|
7920
|
+
access_token?: string;
|
|
7921
|
+
/** Data format for response. */
|
|
7922
|
+
alt?: string;
|
|
7923
|
+
/** JSONP */
|
|
7924
|
+
callback?: string;
|
|
7925
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
7926
|
+
fields?: string;
|
|
7927
|
+
/** 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. */
|
|
7928
|
+
key?: string;
|
|
7929
|
+
/** OAuth 2.0 token for the current user. */
|
|
7930
|
+
oauth_token?: string;
|
|
7931
|
+
/** Required. The resource name of the Location to create the Dataset in. Format: `projects/{project}/locations/{location}` */
|
|
7932
|
+
parent?: string;
|
|
7933
|
+
/** Returns response with indentations and line breaks. */
|
|
7934
|
+
prettyPrint?: boolean;
|
|
7935
|
+
/** 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. */
|
|
7936
|
+
quotaUser?: string;
|
|
7937
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
7938
|
+
upload_protocol?: string;
|
|
7939
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
7940
|
+
uploadType?: string;
|
|
7941
|
+
},
|
|
7942
|
+
body: GoogleCloudAiplatformV1Dataset
|
|
7943
|
+
): Request<GoogleLongrunningOperation>;
|
|
7944
|
+
/** Deletes a Dataset. */
|
|
7945
|
+
delete(request?: {
|
|
7946
|
+
/** V1 error format. */
|
|
7947
|
+
'$.xgafv'?: string;
|
|
7948
|
+
/** OAuth access token. */
|
|
7949
|
+
access_token?: string;
|
|
7950
|
+
/** Data format for response. */
|
|
7951
|
+
alt?: string;
|
|
7952
|
+
/** JSONP */
|
|
7953
|
+
callback?: string;
|
|
7954
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
7955
|
+
fields?: string;
|
|
7956
|
+
/** 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. */
|
|
7957
|
+
key?: string;
|
|
7958
|
+
/** Required. The resource name of the Dataset to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}` */
|
|
7959
|
+
name: string;
|
|
7960
|
+
/** OAuth 2.0 token for the current user. */
|
|
7961
|
+
oauth_token?: string;
|
|
7962
|
+
/** Returns response with indentations and line breaks. */
|
|
7963
|
+
prettyPrint?: boolean;
|
|
7964
|
+
/** 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. */
|
|
7965
|
+
quotaUser?: string;
|
|
7966
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
7967
|
+
upload_protocol?: string;
|
|
7968
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
7969
|
+
uploadType?: string;
|
|
7970
|
+
}): Request<GoogleLongrunningOperation>;
|
|
7971
|
+
/** Gets a Dataset. */
|
|
7972
|
+
get(request?: {
|
|
7973
|
+
/** V1 error format. */
|
|
7974
|
+
'$.xgafv'?: string;
|
|
7975
|
+
/** OAuth access token. */
|
|
7976
|
+
access_token?: string;
|
|
7977
|
+
/** Data format for response. */
|
|
7978
|
+
alt?: string;
|
|
7979
|
+
/** JSONP */
|
|
7980
|
+
callback?: string;
|
|
7981
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
7982
|
+
fields?: string;
|
|
7983
|
+
/** 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. */
|
|
7984
|
+
key?: string;
|
|
7985
|
+
/** Required. The name of the Dataset resource. */
|
|
7986
|
+
name: string;
|
|
7987
|
+
/** OAuth 2.0 token for the current user. */
|
|
7988
|
+
oauth_token?: string;
|
|
7989
|
+
/** Returns response with indentations and line breaks. */
|
|
7990
|
+
prettyPrint?: boolean;
|
|
7991
|
+
/** 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. */
|
|
7992
|
+
quotaUser?: string;
|
|
7993
|
+
/** Mask specifying which fields to read. */
|
|
7994
|
+
readMask?: string;
|
|
7995
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
7996
|
+
upload_protocol?: string;
|
|
7997
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
7998
|
+
uploadType?: string;
|
|
7999
|
+
}): Request<GoogleCloudAiplatformV1Dataset>;
|
|
8000
|
+
/** Lists Datasets in a Location. */
|
|
8001
|
+
list(request?: {
|
|
8002
|
+
/** V1 error format. */
|
|
8003
|
+
'$.xgafv'?: string;
|
|
8004
|
+
/** OAuth access token. */
|
|
8005
|
+
access_token?: string;
|
|
8006
|
+
/** Data format for response. */
|
|
8007
|
+
alt?: string;
|
|
8008
|
+
/** JSONP */
|
|
8009
|
+
callback?: string;
|
|
8010
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
8011
|
+
fields?: string;
|
|
8012
|
+
/** An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `display_name`: supports = and != * `metadata_schema_uri`: supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels."a key"`. Some examples: * `displayName="myDisplayName"` * `labels.myKey="myValue"` */
|
|
8013
|
+
filter?: string;
|
|
8014
|
+
/** 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. */
|
|
8015
|
+
key?: string;
|
|
8016
|
+
/** OAuth 2.0 token for the current user. */
|
|
8017
|
+
oauth_token?: string;
|
|
8018
|
+
/** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * `display_name` * `create_time` * `update_time` */
|
|
8019
|
+
orderBy?: string;
|
|
8020
|
+
/** The standard list page size. */
|
|
8021
|
+
pageSize?: number;
|
|
8022
|
+
/** The standard list page token. */
|
|
8023
|
+
pageToken?: string;
|
|
8024
|
+
/** Required. The name of the Dataset's parent resource. Format: `projects/{project}/locations/{location}` */
|
|
8025
|
+
parent?: string;
|
|
8026
|
+
/** Returns response with indentations and line breaks. */
|
|
8027
|
+
prettyPrint?: boolean;
|
|
8028
|
+
/** 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. */
|
|
8029
|
+
quotaUser?: string;
|
|
8030
|
+
/** Mask specifying which fields to read. */
|
|
8031
|
+
readMask?: string;
|
|
8032
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8033
|
+
upload_protocol?: string;
|
|
8034
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8035
|
+
uploadType?: string;
|
|
8036
|
+
}): Request<GoogleCloudAiplatformV1ListDatasetsResponse>;
|
|
8037
|
+
/** Updates a Dataset. */
|
|
8038
|
+
patch(request: {
|
|
8039
|
+
/** V1 error format. */
|
|
8040
|
+
'$.xgafv'?: string;
|
|
8041
|
+
/** OAuth access token. */
|
|
8042
|
+
access_token?: string;
|
|
8043
|
+
/** Data format for response. */
|
|
8044
|
+
alt?: string;
|
|
8045
|
+
/** JSONP */
|
|
8046
|
+
callback?: string;
|
|
8047
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
8048
|
+
fields?: string;
|
|
8049
|
+
/** 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. */
|
|
8050
|
+
key?: string;
|
|
8051
|
+
/** Output only. Identifier. The resource name of the Dataset. */
|
|
8052
|
+
name: string;
|
|
8053
|
+
/** OAuth 2.0 token for the current user. */
|
|
8054
|
+
oauth_token?: string;
|
|
8055
|
+
/** Returns response with indentations and line breaks. */
|
|
8056
|
+
prettyPrint?: boolean;
|
|
8057
|
+
/** 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. */
|
|
8058
|
+
quotaUser?: string;
|
|
8059
|
+
/** Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels` */
|
|
8060
|
+
updateMask?: string;
|
|
8061
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8062
|
+
upload_protocol?: string;
|
|
8063
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8064
|
+
uploadType?: string;
|
|
8065
|
+
/** Request body */
|
|
8066
|
+
resource: GoogleCloudAiplatformV1Dataset;
|
|
8067
|
+
}): Request<GoogleCloudAiplatformV1Dataset>;
|
|
8068
|
+
patch(
|
|
8069
|
+
request: {
|
|
8070
|
+
/** V1 error format. */
|
|
8071
|
+
'$.xgafv'?: string;
|
|
8072
|
+
/** OAuth access token. */
|
|
8073
|
+
access_token?: string;
|
|
8074
|
+
/** Data format for response. */
|
|
8075
|
+
alt?: string;
|
|
8076
|
+
/** JSONP */
|
|
8077
|
+
callback?: string;
|
|
8078
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
8079
|
+
fields?: string;
|
|
8080
|
+
/** 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. */
|
|
8081
|
+
key?: string;
|
|
8082
|
+
/** Output only. Identifier. The resource name of the Dataset. */
|
|
8083
|
+
name: string;
|
|
8084
|
+
/** OAuth 2.0 token for the current user. */
|
|
8085
|
+
oauth_token?: string;
|
|
8086
|
+
/** Returns response with indentations and line breaks. */
|
|
8087
|
+
prettyPrint?: boolean;
|
|
8088
|
+
/** 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. */
|
|
8089
|
+
quotaUser?: string;
|
|
8090
|
+
/** Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels` */
|
|
8091
|
+
updateMask?: string;
|
|
8092
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8093
|
+
upload_protocol?: string;
|
|
8094
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8095
|
+
uploadType?: string;
|
|
8096
|
+
},
|
|
8097
|
+
body: GoogleCloudAiplatformV1Dataset
|
|
8098
|
+
): Request<GoogleCloudAiplatformV1Dataset>;
|
|
8099
|
+
datasetVersions: DatasetVersionsResource;
|
|
8100
|
+
}
|
|
8101
|
+
interface EndpointsResource {
|
|
8102
|
+
/** Return a list of tokens based on the input text. */
|
|
8103
|
+
computeTokens(request: {
|
|
8104
|
+
/** V1 error format. */
|
|
8105
|
+
'$.xgafv'?: string;
|
|
8106
|
+
/** OAuth access token. */
|
|
8107
|
+
access_token?: string;
|
|
8108
|
+
/** Data format for response. */
|
|
8109
|
+
alt?: string;
|
|
8110
|
+
/** JSONP */
|
|
8111
|
+
callback?: string;
|
|
8112
|
+
/** Required. The name of the Endpoint requested to get lists of tokens and token ids. */
|
|
8113
|
+
endpoint: string;
|
|
8114
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
8115
|
+
fields?: string;
|
|
8116
|
+
/** 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. */
|
|
8117
|
+
key?: string;
|
|
8118
|
+
/** OAuth 2.0 token for the current user. */
|
|
8119
|
+
oauth_token?: string;
|
|
8120
|
+
/** Returns response with indentations and line breaks. */
|
|
8121
|
+
prettyPrint?: boolean;
|
|
8122
|
+
/** 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. */
|
|
8123
|
+
quotaUser?: string;
|
|
8124
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8125
|
+
upload_protocol?: string;
|
|
8126
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8127
|
+
uploadType?: string;
|
|
8128
|
+
/** Request body */
|
|
8129
|
+
resource: GoogleCloudAiplatformV1ComputeTokensRequest;
|
|
8130
|
+
}): Request<GoogleCloudAiplatformV1ComputeTokensResponse>;
|
|
8131
|
+
computeTokens(
|
|
8132
|
+
request: {
|
|
8133
|
+
/** V1 error format. */
|
|
8134
|
+
'$.xgafv'?: string;
|
|
8135
|
+
/** OAuth access token. */
|
|
8136
|
+
access_token?: string;
|
|
8137
|
+
/** Data format for response. */
|
|
8138
|
+
alt?: string;
|
|
8139
|
+
/** JSONP */
|
|
8140
|
+
callback?: string;
|
|
8141
|
+
/** Required. The name of the Endpoint requested to get lists of tokens and token ids. */
|
|
8142
|
+
endpoint: string;
|
|
8143
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
8144
|
+
fields?: string;
|
|
8145
|
+
/** 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. */
|
|
8146
|
+
key?: string;
|
|
8147
|
+
/** OAuth 2.0 token for the current user. */
|
|
8148
|
+
oauth_token?: string;
|
|
8149
|
+
/** Returns response with indentations and line breaks. */
|
|
8150
|
+
prettyPrint?: boolean;
|
|
8151
|
+
/** 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. */
|
|
8152
|
+
quotaUser?: string;
|
|
8153
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8154
|
+
upload_protocol?: string;
|
|
8155
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8156
|
+
uploadType?: string;
|
|
8157
|
+
},
|
|
8158
|
+
body: GoogleCloudAiplatformV1ComputeTokensRequest
|
|
8159
|
+
): Request<GoogleCloudAiplatformV1ComputeTokensResponse>;
|
|
8160
|
+
/** Perform a token counting. */
|
|
8161
|
+
countTokens(request: {
|
|
8162
|
+
/** V1 error format. */
|
|
8163
|
+
'$.xgafv'?: string;
|
|
8164
|
+
/** OAuth access token. */
|
|
8165
|
+
access_token?: string;
|
|
8166
|
+
/** Data format for response. */
|
|
8167
|
+
alt?: string;
|
|
8168
|
+
/** JSONP */
|
|
8169
|
+
callback?: string;
|
|
8170
|
+
/** Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
8171
|
+
endpoint: string;
|
|
8172
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
8173
|
+
fields?: string;
|
|
8174
|
+
/** 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. */
|
|
8175
|
+
key?: string;
|
|
8176
|
+
/** OAuth 2.0 token for the current user. */
|
|
8177
|
+
oauth_token?: string;
|
|
8178
|
+
/** Returns response with indentations and line breaks. */
|
|
8179
|
+
prettyPrint?: boolean;
|
|
8180
|
+
/** 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. */
|
|
8181
|
+
quotaUser?: string;
|
|
8182
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8183
|
+
upload_protocol?: string;
|
|
8184
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8185
|
+
uploadType?: string;
|
|
8186
|
+
/** Request body */
|
|
8187
|
+
resource: GoogleCloudAiplatformV1CountTokensRequest;
|
|
8188
|
+
}): Request<GoogleCloudAiplatformV1CountTokensResponse>;
|
|
8189
|
+
countTokens(
|
|
8190
|
+
request: {
|
|
8191
|
+
/** V1 error format. */
|
|
8192
|
+
'$.xgafv'?: string;
|
|
8193
|
+
/** OAuth access token. */
|
|
8194
|
+
access_token?: string;
|
|
8195
|
+
/** Data format for response. */
|
|
8196
|
+
alt?: string;
|
|
8197
|
+
/** JSONP */
|
|
8198
|
+
callback?: string;
|
|
8199
|
+
/** Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
8200
|
+
endpoint: string;
|
|
8201
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
8202
|
+
fields?: string;
|
|
8203
|
+
/** 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. */
|
|
8204
|
+
key?: string;
|
|
8205
|
+
/** OAuth 2.0 token for the current user. */
|
|
8206
|
+
oauth_token?: string;
|
|
8207
|
+
/** Returns response with indentations and line breaks. */
|
|
8208
|
+
prettyPrint?: boolean;
|
|
8209
|
+
/** 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. */
|
|
8210
|
+
quotaUser?: string;
|
|
8211
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8212
|
+
upload_protocol?: string;
|
|
8213
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8214
|
+
uploadType?: string;
|
|
8215
|
+
},
|
|
8216
|
+
body: GoogleCloudAiplatformV1CountTokensRequest
|
|
8217
|
+
): Request<GoogleCloudAiplatformV1CountTokensResponse>;
|
|
8218
|
+
/** Generate content with multimodal inputs. */
|
|
8219
|
+
generateContent(request: {
|
|
8220
|
+
/** V1 error format. */
|
|
8221
|
+
'$.xgafv'?: string;
|
|
8222
|
+
/** OAuth access token. */
|
|
8223
|
+
access_token?: string;
|
|
8224
|
+
/** Data format for response. */
|
|
8225
|
+
alt?: string;
|
|
8226
|
+
/** JSONP */
|
|
8227
|
+
callback?: string;
|
|
8228
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
8229
|
+
fields?: string;
|
|
8230
|
+
/** 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. */
|
|
8231
|
+
key?: string;
|
|
8232
|
+
/** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
8233
|
+
model: string;
|
|
8234
|
+
/** OAuth 2.0 token for the current user. */
|
|
8235
|
+
oauth_token?: string;
|
|
8236
|
+
/** Returns response with indentations and line breaks. */
|
|
8237
|
+
prettyPrint?: boolean;
|
|
8238
|
+
/** 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. */
|
|
8239
|
+
quotaUser?: string;
|
|
8240
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8241
|
+
upload_protocol?: string;
|
|
8242
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8243
|
+
uploadType?: string;
|
|
8244
|
+
/** Request body */
|
|
8245
|
+
resource: GoogleCloudAiplatformV1GenerateContentRequest;
|
|
8246
|
+
}): Request<GoogleCloudAiplatformV1GenerateContentResponse>;
|
|
8247
|
+
generateContent(
|
|
8248
|
+
request: {
|
|
8249
|
+
/** V1 error format. */
|
|
8250
|
+
'$.xgafv'?: string;
|
|
8251
|
+
/** OAuth access token. */
|
|
8252
|
+
access_token?: string;
|
|
8253
|
+
/** Data format for response. */
|
|
8254
|
+
alt?: string;
|
|
8255
|
+
/** JSONP */
|
|
8256
|
+
callback?: string;
|
|
8257
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
8258
|
+
fields?: string;
|
|
8259
|
+
/** 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. */
|
|
8260
|
+
key?: string;
|
|
8261
|
+
/** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
8262
|
+
model: string;
|
|
8263
|
+
/** OAuth 2.0 token for the current user. */
|
|
8264
|
+
oauth_token?: string;
|
|
8265
|
+
/** Returns response with indentations and line breaks. */
|
|
8266
|
+
prettyPrint?: boolean;
|
|
8267
|
+
/** 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. */
|
|
8268
|
+
quotaUser?: string;
|
|
8269
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8270
|
+
upload_protocol?: string;
|
|
8271
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8272
|
+
uploadType?: string;
|
|
8273
|
+
},
|
|
8274
|
+
body: GoogleCloudAiplatformV1GenerateContentRequest
|
|
8275
|
+
): Request<GoogleCloudAiplatformV1GenerateContentResponse>;
|
|
8276
|
+
/** Generate content with multimodal inputs with streaming support. */
|
|
8277
|
+
streamGenerateContent(request: {
|
|
8278
|
+
/** V1 error format. */
|
|
8279
|
+
'$.xgafv'?: string;
|
|
8280
|
+
/** OAuth access token. */
|
|
8281
|
+
access_token?: string;
|
|
8282
|
+
/** Data format for response. */
|
|
8283
|
+
alt?: string;
|
|
8284
|
+
/** JSONP */
|
|
8285
|
+
callback?: string;
|
|
8286
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
8287
|
+
fields?: string;
|
|
8288
|
+
/** 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. */
|
|
8289
|
+
key?: string;
|
|
8290
|
+
/** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
8291
|
+
model: string;
|
|
8292
|
+
/** OAuth 2.0 token for the current user. */
|
|
8293
|
+
oauth_token?: string;
|
|
8294
|
+
/** Returns response with indentations and line breaks. */
|
|
8295
|
+
prettyPrint?: boolean;
|
|
8296
|
+
/** 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. */
|
|
8297
|
+
quotaUser?: string;
|
|
8298
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8299
|
+
upload_protocol?: string;
|
|
8300
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8301
|
+
uploadType?: string;
|
|
8302
|
+
/** Request body */
|
|
8303
|
+
resource: GoogleCloudAiplatformV1GenerateContentRequest;
|
|
8304
|
+
}): Request<GoogleCloudAiplatformV1GenerateContentResponse>;
|
|
8305
|
+
streamGenerateContent(
|
|
8306
|
+
request: {
|
|
8307
|
+
/** V1 error format. */
|
|
8308
|
+
'$.xgafv'?: string;
|
|
8309
|
+
/** OAuth access token. */
|
|
8310
|
+
access_token?: string;
|
|
8311
|
+
/** Data format for response. */
|
|
8312
|
+
alt?: string;
|
|
8313
|
+
/** JSONP */
|
|
8314
|
+
callback?: string;
|
|
8315
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
8316
|
+
fields?: string;
|
|
8317
|
+
/** 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. */
|
|
8318
|
+
key?: string;
|
|
8319
|
+
/** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
8320
|
+
model: string;
|
|
8321
|
+
/** OAuth 2.0 token for the current user. */
|
|
8322
|
+
oauth_token?: string;
|
|
8323
|
+
/** Returns response with indentations and line breaks. */
|
|
8324
|
+
prettyPrint?: boolean;
|
|
8325
|
+
/** 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. */
|
|
8326
|
+
quotaUser?: string;
|
|
8327
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8328
|
+
upload_protocol?: string;
|
|
8329
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8330
|
+
uploadType?: string;
|
|
8331
|
+
},
|
|
8332
|
+
body: GoogleCloudAiplatformV1GenerateContentRequest
|
|
8333
|
+
): Request<GoogleCloudAiplatformV1GenerateContentResponse>;
|
|
8334
|
+
}
|
|
7607
8335
|
interface BatchPredictionJobsResource {
|
|
7608
8336
|
/** Cancels a BatchPredictionJob. Starts asynchronous cancellation on the BatchPredictionJob. The server makes the best effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetBatchPredictionJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On a successful cancellation, the BatchPredictionJob is not deleted;instead its BatchPredictionJob.state is set to `CANCELLED`. Any files already outputted by the job are not deleted. */
|
|
7609
8337
|
cancel(request: {
|
|
@@ -11036,7 +11764,7 @@ declare namespace gapi.client {
|
|
|
11036
11764
|
fields?: string;
|
|
11037
11765
|
/** 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. */
|
|
11038
11766
|
key?: string;
|
|
11039
|
-
/** Required. The name of the publisher model
|
|
11767
|
+
/** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
11040
11768
|
model: string;
|
|
11041
11769
|
/** OAuth 2.0 token for the current user. */
|
|
11042
11770
|
oauth_token?: string;
|
|
@@ -11065,7 +11793,7 @@ declare namespace gapi.client {
|
|
|
11065
11793
|
fields?: string;
|
|
11066
11794
|
/** 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. */
|
|
11067
11795
|
key?: string;
|
|
11068
|
-
/** Required. The name of the publisher model
|
|
11796
|
+
/** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
11069
11797
|
model: string;
|
|
11070
11798
|
/** OAuth 2.0 token for the current user. */
|
|
11071
11799
|
oauth_token?: string;
|
|
@@ -11452,7 +12180,7 @@ declare namespace gapi.client {
|
|
|
11452
12180
|
fields?: string;
|
|
11453
12181
|
/** 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. */
|
|
11454
12182
|
key?: string;
|
|
11455
|
-
/** Required. The name of the publisher model
|
|
12183
|
+
/** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
11456
12184
|
model: string;
|
|
11457
12185
|
/** OAuth 2.0 token for the current user. */
|
|
11458
12186
|
oauth_token?: string;
|
|
@@ -11481,7 +12209,7 @@ declare namespace gapi.client {
|
|
|
11481
12209
|
fields?: string;
|
|
11482
12210
|
/** 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. */
|
|
11483
12211
|
key?: string;
|
|
11484
|
-
/** Required. The name of the publisher model
|
|
12212
|
+
/** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
11485
12213
|
model: string;
|
|
11486
12214
|
/** OAuth 2.0 token for the current user. */
|
|
11487
12215
|
oauth_token?: string;
|
|
@@ -22996,7 +23724,7 @@ declare namespace gapi.client {
|
|
|
22996
23724
|
fields?: string;
|
|
22997
23725
|
/** 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. */
|
|
22998
23726
|
key?: string;
|
|
22999
|
-
/** Required. The name of the publisher model
|
|
23727
|
+
/** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
23000
23728
|
model: string;
|
|
23001
23729
|
/** OAuth 2.0 token for the current user. */
|
|
23002
23730
|
oauth_token?: string;
|
|
@@ -23025,7 +23753,7 @@ declare namespace gapi.client {
|
|
|
23025
23753
|
fields?: string;
|
|
23026
23754
|
/** 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. */
|
|
23027
23755
|
key?: string;
|
|
23028
|
-
/** Required. The name of the publisher model
|
|
23756
|
+
/** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
23029
23757
|
model: string;
|
|
23030
23758
|
/** OAuth 2.0 token for the current user. */
|
|
23031
23759
|
oauth_token?: string;
|
|
@@ -23228,7 +23956,7 @@ declare namespace gapi.client {
|
|
|
23228
23956
|
fields?: string;
|
|
23229
23957
|
/** 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. */
|
|
23230
23958
|
key?: string;
|
|
23231
|
-
/** Required. The name of the publisher model
|
|
23959
|
+
/** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
23232
23960
|
model: string;
|
|
23233
23961
|
/** OAuth 2.0 token for the current user. */
|
|
23234
23962
|
oauth_token?: string;
|
|
@@ -23257,7 +23985,7 @@ declare namespace gapi.client {
|
|
|
23257
23985
|
fields?: string;
|
|
23258
23986
|
/** 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. */
|
|
23259
23987
|
key?: string;
|
|
23260
|
-
/** Required. The name of the publisher model
|
|
23988
|
+
/** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
23261
23989
|
model: string;
|
|
23262
23990
|
/** OAuth 2.0 token for the current user. */
|
|
23263
23991
|
oauth_token?: string;
|
|
@@ -27812,6 +28540,180 @@ declare namespace gapi.client {
|
|
|
27812
28540
|
locations: LocationsResource;
|
|
27813
28541
|
}
|
|
27814
28542
|
interface ModelsResource {
|
|
28543
|
+
/** Return a list of tokens based on the input text. */
|
|
28544
|
+
computeTokens(request: {
|
|
28545
|
+
/** V1 error format. */
|
|
28546
|
+
'$.xgafv'?: string;
|
|
28547
|
+
/** OAuth access token. */
|
|
28548
|
+
access_token?: string;
|
|
28549
|
+
/** Data format for response. */
|
|
28550
|
+
alt?: string;
|
|
28551
|
+
/** JSONP */
|
|
28552
|
+
callback?: string;
|
|
28553
|
+
/** Required. The name of the Endpoint requested to get lists of tokens and token ids. */
|
|
28554
|
+
endpoint: string;
|
|
28555
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
28556
|
+
fields?: string;
|
|
28557
|
+
/** 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. */
|
|
28558
|
+
key?: string;
|
|
28559
|
+
/** OAuth 2.0 token for the current user. */
|
|
28560
|
+
oauth_token?: string;
|
|
28561
|
+
/** Returns response with indentations and line breaks. */
|
|
28562
|
+
prettyPrint?: boolean;
|
|
28563
|
+
/** 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. */
|
|
28564
|
+
quotaUser?: string;
|
|
28565
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
28566
|
+
upload_protocol?: string;
|
|
28567
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
28568
|
+
uploadType?: string;
|
|
28569
|
+
/** Request body */
|
|
28570
|
+
resource: GoogleCloudAiplatformV1ComputeTokensRequest;
|
|
28571
|
+
}): Request<GoogleCloudAiplatformV1ComputeTokensResponse>;
|
|
28572
|
+
computeTokens(
|
|
28573
|
+
request: {
|
|
28574
|
+
/** V1 error format. */
|
|
28575
|
+
'$.xgafv'?: string;
|
|
28576
|
+
/** OAuth access token. */
|
|
28577
|
+
access_token?: string;
|
|
28578
|
+
/** Data format for response. */
|
|
28579
|
+
alt?: string;
|
|
28580
|
+
/** JSONP */
|
|
28581
|
+
callback?: string;
|
|
28582
|
+
/** Required. The name of the Endpoint requested to get lists of tokens and token ids. */
|
|
28583
|
+
endpoint: string;
|
|
28584
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
28585
|
+
fields?: string;
|
|
28586
|
+
/** 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. */
|
|
28587
|
+
key?: string;
|
|
28588
|
+
/** OAuth 2.0 token for the current user. */
|
|
28589
|
+
oauth_token?: string;
|
|
28590
|
+
/** Returns response with indentations and line breaks. */
|
|
28591
|
+
prettyPrint?: boolean;
|
|
28592
|
+
/** 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. */
|
|
28593
|
+
quotaUser?: string;
|
|
28594
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
28595
|
+
upload_protocol?: string;
|
|
28596
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
28597
|
+
uploadType?: string;
|
|
28598
|
+
},
|
|
28599
|
+
body: GoogleCloudAiplatformV1ComputeTokensRequest
|
|
28600
|
+
): Request<GoogleCloudAiplatformV1ComputeTokensResponse>;
|
|
28601
|
+
/** Perform a token counting. */
|
|
28602
|
+
countTokens(request: {
|
|
28603
|
+
/** V1 error format. */
|
|
28604
|
+
'$.xgafv'?: string;
|
|
28605
|
+
/** OAuth access token. */
|
|
28606
|
+
access_token?: string;
|
|
28607
|
+
/** Data format for response. */
|
|
28608
|
+
alt?: string;
|
|
28609
|
+
/** JSONP */
|
|
28610
|
+
callback?: string;
|
|
28611
|
+
/** Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
28612
|
+
endpoint: string;
|
|
28613
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
28614
|
+
fields?: string;
|
|
28615
|
+
/** 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. */
|
|
28616
|
+
key?: string;
|
|
28617
|
+
/** OAuth 2.0 token for the current user. */
|
|
28618
|
+
oauth_token?: string;
|
|
28619
|
+
/** Returns response with indentations and line breaks. */
|
|
28620
|
+
prettyPrint?: boolean;
|
|
28621
|
+
/** 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. */
|
|
28622
|
+
quotaUser?: string;
|
|
28623
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
28624
|
+
upload_protocol?: string;
|
|
28625
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
28626
|
+
uploadType?: string;
|
|
28627
|
+
/** Request body */
|
|
28628
|
+
resource: GoogleCloudAiplatformV1CountTokensRequest;
|
|
28629
|
+
}): Request<GoogleCloudAiplatformV1CountTokensResponse>;
|
|
28630
|
+
countTokens(
|
|
28631
|
+
request: {
|
|
28632
|
+
/** V1 error format. */
|
|
28633
|
+
'$.xgafv'?: string;
|
|
28634
|
+
/** OAuth access token. */
|
|
28635
|
+
access_token?: string;
|
|
28636
|
+
/** Data format for response. */
|
|
28637
|
+
alt?: string;
|
|
28638
|
+
/** JSONP */
|
|
28639
|
+
callback?: string;
|
|
28640
|
+
/** Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
28641
|
+
endpoint: string;
|
|
28642
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
28643
|
+
fields?: string;
|
|
28644
|
+
/** 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. */
|
|
28645
|
+
key?: string;
|
|
28646
|
+
/** OAuth 2.0 token for the current user. */
|
|
28647
|
+
oauth_token?: string;
|
|
28648
|
+
/** Returns response with indentations and line breaks. */
|
|
28649
|
+
prettyPrint?: boolean;
|
|
28650
|
+
/** 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. */
|
|
28651
|
+
quotaUser?: string;
|
|
28652
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
28653
|
+
upload_protocol?: string;
|
|
28654
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
28655
|
+
uploadType?: string;
|
|
28656
|
+
},
|
|
28657
|
+
body: GoogleCloudAiplatformV1CountTokensRequest
|
|
28658
|
+
): Request<GoogleCloudAiplatformV1CountTokensResponse>;
|
|
28659
|
+
/** Generate content with multimodal inputs. */
|
|
28660
|
+
generateContent(request: {
|
|
28661
|
+
/** V1 error format. */
|
|
28662
|
+
'$.xgafv'?: string;
|
|
28663
|
+
/** OAuth access token. */
|
|
28664
|
+
access_token?: string;
|
|
28665
|
+
/** Data format for response. */
|
|
28666
|
+
alt?: string;
|
|
28667
|
+
/** JSONP */
|
|
28668
|
+
callback?: string;
|
|
28669
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
28670
|
+
fields?: string;
|
|
28671
|
+
/** 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. */
|
|
28672
|
+
key?: string;
|
|
28673
|
+
/** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
28674
|
+
model: string;
|
|
28675
|
+
/** OAuth 2.0 token for the current user. */
|
|
28676
|
+
oauth_token?: string;
|
|
28677
|
+
/** Returns response with indentations and line breaks. */
|
|
28678
|
+
prettyPrint?: boolean;
|
|
28679
|
+
/** 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. */
|
|
28680
|
+
quotaUser?: string;
|
|
28681
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
28682
|
+
upload_protocol?: string;
|
|
28683
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
28684
|
+
uploadType?: string;
|
|
28685
|
+
/** Request body */
|
|
28686
|
+
resource: GoogleCloudAiplatformV1GenerateContentRequest;
|
|
28687
|
+
}): Request<GoogleCloudAiplatformV1GenerateContentResponse>;
|
|
28688
|
+
generateContent(
|
|
28689
|
+
request: {
|
|
28690
|
+
/** V1 error format. */
|
|
28691
|
+
'$.xgafv'?: string;
|
|
28692
|
+
/** OAuth access token. */
|
|
28693
|
+
access_token?: string;
|
|
28694
|
+
/** Data format for response. */
|
|
28695
|
+
alt?: string;
|
|
28696
|
+
/** JSONP */
|
|
28697
|
+
callback?: string;
|
|
28698
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
28699
|
+
fields?: string;
|
|
28700
|
+
/** 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. */
|
|
28701
|
+
key?: string;
|
|
28702
|
+
/** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
28703
|
+
model: string;
|
|
28704
|
+
/** OAuth 2.0 token for the current user. */
|
|
28705
|
+
oauth_token?: string;
|
|
28706
|
+
/** Returns response with indentations and line breaks. */
|
|
28707
|
+
prettyPrint?: boolean;
|
|
28708
|
+
/** 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. */
|
|
28709
|
+
quotaUser?: string;
|
|
28710
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
28711
|
+
upload_protocol?: string;
|
|
28712
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
28713
|
+
uploadType?: string;
|
|
28714
|
+
},
|
|
28715
|
+
body: GoogleCloudAiplatformV1GenerateContentRequest
|
|
28716
|
+
): Request<GoogleCloudAiplatformV1GenerateContentResponse>;
|
|
27815
28717
|
/** Gets a Model Garden publisher model. */
|
|
27816
28718
|
get(request?: {
|
|
27817
28719
|
/** V1 error format. */
|
|
@@ -27847,11 +28749,73 @@ declare namespace gapi.client {
|
|
|
27847
28749
|
/** Optional. PublisherModel view specifying which fields to read. */
|
|
27848
28750
|
view?: string;
|
|
27849
28751
|
}): Request<GoogleCloudAiplatformV1PublisherModel>;
|
|
28752
|
+
/** Generate content with multimodal inputs with streaming support. */
|
|
28753
|
+
streamGenerateContent(request: {
|
|
28754
|
+
/** V1 error format. */
|
|
28755
|
+
'$.xgafv'?: string;
|
|
28756
|
+
/** OAuth access token. */
|
|
28757
|
+
access_token?: string;
|
|
28758
|
+
/** Data format for response. */
|
|
28759
|
+
alt?: string;
|
|
28760
|
+
/** JSONP */
|
|
28761
|
+
callback?: string;
|
|
28762
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
28763
|
+
fields?: string;
|
|
28764
|
+
/** 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. */
|
|
28765
|
+
key?: string;
|
|
28766
|
+
/** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
28767
|
+
model: string;
|
|
28768
|
+
/** OAuth 2.0 token for the current user. */
|
|
28769
|
+
oauth_token?: string;
|
|
28770
|
+
/** Returns response with indentations and line breaks. */
|
|
28771
|
+
prettyPrint?: boolean;
|
|
28772
|
+
/** 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. */
|
|
28773
|
+
quotaUser?: string;
|
|
28774
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
28775
|
+
upload_protocol?: string;
|
|
28776
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
28777
|
+
uploadType?: string;
|
|
28778
|
+
/** Request body */
|
|
28779
|
+
resource: GoogleCloudAiplatformV1GenerateContentRequest;
|
|
28780
|
+
}): Request<GoogleCloudAiplatformV1GenerateContentResponse>;
|
|
28781
|
+
streamGenerateContent(
|
|
28782
|
+
request: {
|
|
28783
|
+
/** V1 error format. */
|
|
28784
|
+
'$.xgafv'?: string;
|
|
28785
|
+
/** OAuth access token. */
|
|
28786
|
+
access_token?: string;
|
|
28787
|
+
/** Data format for response. */
|
|
28788
|
+
alt?: string;
|
|
28789
|
+
/** JSONP */
|
|
28790
|
+
callback?: string;
|
|
28791
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
28792
|
+
fields?: string;
|
|
28793
|
+
/** 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. */
|
|
28794
|
+
key?: string;
|
|
28795
|
+
/** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
28796
|
+
model: string;
|
|
28797
|
+
/** OAuth 2.0 token for the current user. */
|
|
28798
|
+
oauth_token?: string;
|
|
28799
|
+
/** Returns response with indentations and line breaks. */
|
|
28800
|
+
prettyPrint?: boolean;
|
|
28801
|
+
/** 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. */
|
|
28802
|
+
quotaUser?: string;
|
|
28803
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
28804
|
+
upload_protocol?: string;
|
|
28805
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
28806
|
+
uploadType?: string;
|
|
28807
|
+
},
|
|
28808
|
+
body: GoogleCloudAiplatformV1GenerateContentRequest
|
|
28809
|
+
): Request<GoogleCloudAiplatformV1GenerateContentResponse>;
|
|
27850
28810
|
}
|
|
27851
28811
|
interface PublishersResource {
|
|
27852
28812
|
models: ModelsResource;
|
|
27853
28813
|
}
|
|
27854
28814
|
|
|
28815
|
+
const datasets: DatasetsResource;
|
|
28816
|
+
|
|
28817
|
+
const endpoints: EndpointsResource;
|
|
28818
|
+
|
|
27855
28819
|
const projects: ProjectsResource;
|
|
27856
28820
|
|
|
27857
28821
|
const publishers: PublishersResource;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -72,5 +72,48 @@ gapi.auth.authorize(
|
|
|
72
72
|
After that you can use Vertex AI API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
73
73
|
|
|
74
74
|
```typescript
|
|
75
|
-
|
|
75
|
+
/*
|
|
76
|
+
Creates a Dataset.
|
|
77
|
+
*/
|
|
78
|
+
await gapi.client.aiplatform.datasets.create({});
|
|
79
|
+
|
|
80
|
+
/*
|
|
81
|
+
Deletes a Dataset.
|
|
82
|
+
*/
|
|
83
|
+
await gapi.client.aiplatform.datasets.delete({name: 'name'});
|
|
84
|
+
|
|
85
|
+
/*
|
|
86
|
+
Gets a Dataset.
|
|
87
|
+
*/
|
|
88
|
+
await gapi.client.aiplatform.datasets.get({name: 'name'});
|
|
89
|
+
|
|
90
|
+
/*
|
|
91
|
+
Lists Datasets in a Location.
|
|
92
|
+
*/
|
|
93
|
+
await gapi.client.aiplatform.datasets.list({});
|
|
94
|
+
|
|
95
|
+
/*
|
|
96
|
+
Updates a Dataset.
|
|
97
|
+
*/
|
|
98
|
+
await gapi.client.aiplatform.datasets.patch({name: 'name'});
|
|
99
|
+
|
|
100
|
+
/*
|
|
101
|
+
Return a list of tokens based on the input text.
|
|
102
|
+
*/
|
|
103
|
+
await gapi.client.aiplatform.endpoints.computeTokens({endpoint: 'endpoint'});
|
|
104
|
+
|
|
105
|
+
/*
|
|
106
|
+
Perform a token counting.
|
|
107
|
+
*/
|
|
108
|
+
await gapi.client.aiplatform.endpoints.countTokens({endpoint: 'endpoint'});
|
|
109
|
+
|
|
110
|
+
/*
|
|
111
|
+
Generate content with multimodal inputs.
|
|
112
|
+
*/
|
|
113
|
+
await gapi.client.aiplatform.endpoints.generateContent({model: 'model'});
|
|
114
|
+
|
|
115
|
+
/*
|
|
116
|
+
Generate content with multimodal inputs with streaming support.
|
|
117
|
+
*/
|
|
118
|
+
await gapi.client.aiplatform.endpoints.streamGenerateContent({model: 'model'});
|
|
76
119
|
```
|