@maxim_mazurok/gapi.client.aiplatform-v1 0.0.20240125 → 0.0.20240205

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +336 -17
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://aiplatform.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20240125
12
+ // Revision: 20240205
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -234,17 +234,9 @@ declare namespace gapi.client {
234
234
  interface CloudAiNlLlmProtoServicePartVideoMetadata {
235
235
  /** The end offset of the video. */
236
236
  endOffset?: string;
237
- /** Internal only model level metadata. */
238
- modelLevelMetaData?: CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata;
239
237
  /** The start offset of the video. */
240
238
  startOffset?: string;
241
239
  }
242
- interface CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata {
243
- /** Frame rate to decode from this video. */
244
- fps?: number;
245
- /** Number of frames to decode from this video. */
246
- numFrames?: number;
247
- }
248
240
  interface CloudAiNlLlmProtoServicePromptFeedback {
249
241
  /** Blocked reason. */
250
242
  blockReason?: string;
@@ -2855,9 +2847,9 @@ declare namespace gapi.client {
2855
2847
  model?: string;
2856
2848
  }
2857
2849
  interface GoogleCloudAiplatformV1Model {
2858
- /** Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. */
2850
+ /** Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not required for AutoML Models. */
2859
2851
  artifactUri?: string;
2860
- /** Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. */
2852
+ /** Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not required for AutoML Models. */
2861
2853
  containerSpec?: GoogleCloudAiplatformV1ModelContainerSpec;
2862
2854
  /** Output only. Timestamp when this Model was uploaded into Vertex AI. */
2863
2855
  createTime?: string;
@@ -2963,6 +2955,8 @@ declare namespace gapi.client {
2963
2955
  logSource?: string;
2964
2956
  /** The type of log. */
2965
2957
  logType?: string;
2958
+ /** Output only. The schema version of the request/response logging BigQuery table. Default to v1 if unset. */
2959
+ requestResponseLoggingSchemaVersion?: string;
2966
2960
  }
2967
2961
  interface GoogleCloudAiplatformV1ModelDeploymentMonitoringJob {
2968
2962
  /** YAML schema file uri describing the format of a single instance that you want Tensorflow Data Validation (TFDV) to analyze. If this field is empty, all the feature data types are inferred from predict_instance_schema_uri, meaning that TFDV will use the data in the exact format(data type) as prediction request/response. If there are any data type differences between predict instance and TFDV instance, this field can be used to override the schema. For models trained with Vertex AI, this field must be set as all the fields in predict instance formatted as string. */
@@ -3344,6 +3338,42 @@ declare namespace gapi.client {
3344
3338
  /** The train NasTrial corresponding to search_trial. Only populated if search_trial is used for training. */
3345
3339
  trainTrial?: GoogleCloudAiplatformV1NasTrial;
3346
3340
  }
3341
+ interface GoogleCloudAiplatformV1NearestNeighborQuery {
3342
+ /** Optional. The embedding vector that be used for similar search. */
3343
+ embedding?: GoogleCloudAiplatformV1NearestNeighborQueryEmbedding;
3344
+ /** Optional. The entity id whose similar entities should be searched for. If embedding is set, search will use embedding instead of entity_id. */
3345
+ entityId?: string;
3346
+ /** Optional. The number of similar entities to be retrieved from feature view for each query. */
3347
+ neighborCount?: number;
3348
+ /** Optional. Parameters that can be set to tune query on the fly. */
3349
+ parameters?: GoogleCloudAiplatformV1NearestNeighborQueryParameters;
3350
+ /** Optional. Crowding is a constraint on a neighbor list produced by nearest neighbor search requiring that no more than sper_crowding_attribute_neighbor_count of the k neighbors returned have the same value of crowding_attribute. It's used for improving result diversity. */
3351
+ perCrowdingAttributeNeighborCount?: number;
3352
+ /** Optional. The list of string filters. */
3353
+ stringFilters?: GoogleCloudAiplatformV1NearestNeighborQueryStringFilter[];
3354
+ }
3355
+ interface GoogleCloudAiplatformV1NearestNeighborQueryEmbedding {
3356
+ /** Optional. Individual value in the embedding. */
3357
+ value?: number[];
3358
+ }
3359
+ interface GoogleCloudAiplatformV1NearestNeighborQueryParameters {
3360
+ /** Optional. The number of neighbors to find via approximate search before exact reordering is performed; if set, this value must be > neighbor_count. */
3361
+ approximateNeighborCandidates?: number;
3362
+ /** Optional. The fraction of the number of leaves to search, set at query time allows user to tune search performance. This value increase result in both search accuracy and latency increase. The value should be between 0.0 and 1.0. */
3363
+ leafNodesSearchFraction?: number;
3364
+ }
3365
+ interface GoogleCloudAiplatformV1NearestNeighborQueryStringFilter {
3366
+ /** Optional. The allowed tokens. */
3367
+ allowTokens?: string[];
3368
+ /** Optional. The denied tokens. */
3369
+ denyTokens?: string[];
3370
+ /** Required. Column names in BigQuery that used as filters. */
3371
+ name?: string;
3372
+ }
3373
+ interface GoogleCloudAiplatformV1NearestNeighbors {
3374
+ /** All its neighbors. */
3375
+ neighbors?: GoogleCloudAiplatformV1NearestNeighborsNeighbor[];
3376
+ }
3347
3377
  interface GoogleCloudAiplatformV1NearestNeighborSearchOperationMetadata {
3348
3378
  /** The validation stats of the content (per file) to be inserted or updated on the Matching Engine Index resource. Populated if contentsDeltaUri is provided as part of Index.metadata. Please note that, currently for those files that are broken or has unsupported file format, we will not have the stats for those files. */
3349
3379
  contentValidationStats?: GoogleCloudAiplatformV1NearestNeighborSearchOperationMetadataContentValidationStats[];
@@ -3372,6 +3402,14 @@ declare namespace gapi.client {
3372
3402
  /** Cloud Storage URI pointing to the original file in user's bucket. */
3373
3403
  sourceGcsUri?: string;
3374
3404
  }
3405
+ interface GoogleCloudAiplatformV1NearestNeighborsNeighbor {
3406
+ /** The distance between the neighbor and the query vector. */
3407
+ distance?: number;
3408
+ /** The id of the similar entity. */
3409
+ entityId?: string;
3410
+ /** The attributes of the neighbor, e.g. filters, crowding and metadata Note that full entities are returned only when "return_full_entity" is set to true. Otherwise, only the "entity_id" and "distance" fields are populated. */
3411
+ entityKeyValues?: GoogleCloudAiplatformV1FetchFeatureValuesResponse;
3412
+ }
3375
3413
  interface GoogleCloudAiplatformV1Neighbor {
3376
3414
  /** Output only. The neighbor distance. */
3377
3415
  neighborDistance?: number;
@@ -3773,6 +3811,8 @@ declare namespace gapi.client {
3773
3811
  createApplication?: GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences;
3774
3812
  /** Optional. Deploy the PublisherModel to Vertex Endpoint. */
3775
3813
  deploy?: GoogleCloudAiplatformV1PublisherModelCallToActionDeploy;
3814
+ /** Optional. Deploy PublisherModel to Google Kubernetes Engine. */
3815
+ deployGke?: GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke;
3776
3816
  /** Optional. Open evaluation pipeline of the PublisherModel. */
3777
3817
  openEvaluationPipeline?: GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences;
3778
3818
  /** Optional. Open fine-tuning pipeline of the PublisherModel. */
@@ -3814,6 +3854,10 @@ declare namespace gapi.client {
3814
3854
  /** Required. The title of the regional resource reference. */
3815
3855
  title?: string;
3816
3856
  }
3857
+ interface GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke {
3858
+ /** Optional. GKE deployment configuration in yaml format. */
3859
+ gkeYamlConfigs?: string[];
3860
+ }
3817
3861
  interface GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines {
3818
3862
  /** Required. Regional resource references to fine tuning pipelines. */
3819
3863
  fineTuningPipelines?: GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences[];
@@ -4136,8 +4180,6 @@ declare namespace gapi.client {
4136
4180
  interface GoogleCloudAiplatformV1Scheduling {
4137
4181
  /** 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. */
4138
4182
  disableRetries?: boolean;
4139
- /** Optional. This is the maximum time a user will wait in the QRM queue for resources. Default is 1 day */
4140
- maxWaitDuration?: string;
4141
4183
  /** 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. */
4142
4184
  restartJobOnWorkerRestart?: boolean;
4143
4185
  /** The maximum job running time. The default is 7 days. */
@@ -5493,6 +5535,16 @@ declare namespace gapi.client {
5493
5535
  /** The page token that can be used by the next JobService.SearchModelDeploymentMonitoringStatsAnomalies call. */
5494
5536
  nextPageToken?: string;
5495
5537
  }
5538
+ interface GoogleCloudAiplatformV1SearchNearestEntitiesRequest {
5539
+ /** Required. The query. */
5540
+ query?: GoogleCloudAiplatformV1NearestNeighborQuery;
5541
+ /** Optional. If set to true, the full entities (including all vector values and metadata) of the nearest neighbors are returned; otherwise only entity id of the nearest neighbors will be returned. Note that returning full entities will significantly increase the latency and cost of the query. */
5542
+ returnFullEntity?: boolean;
5543
+ }
5544
+ interface GoogleCloudAiplatformV1SearchNearestEntitiesResponse {
5545
+ /** The nearest neighbors of the query entity. */
5546
+ nearestNeighbors?: GoogleCloudAiplatformV1NearestNeighbors;
5547
+ }
5496
5548
  interface GoogleCloudAiplatformV1ShieldedVmConfig {
5497
5549
  /** Defines whether the instance has [Secure Boot](https://cloud.google.com/compute/shielded-vm/docs/shielded-vm#secure-boot) enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails. */
5498
5550
  enableSecureBoot?: boolean;
@@ -6121,6 +6173,8 @@ declare namespace gapi.client {
6121
6173
  interface GoogleCloudAiplatformV1UpsertDatapointsRequest {
6122
6174
  /** A list of datapoints to be created/updated. */
6123
6175
  datapoints?: GoogleCloudAiplatformV1IndexDatapoint[];
6176
+ /** Optional. Update mask is used to specify the fields to be overwritten in the datapoints by the update. The fields specified in the update_mask are relative to each IndexDatapoint inside datapoints, not the full request. Updatable fields: * Use `all_restricts` to update both restricts and numeric_restricts. */
6177
+ updateMask?: string;
6124
6178
  }
6125
6179
  interface GoogleCloudAiplatformV1UpsertDatapointsResponse {}
6126
6180
  interface GoogleCloudAiplatformV1UserActionReference {
@@ -6548,6 +6602,7 @@ declare namespace gapi.client {
6548
6602
  imageViolence?: boolean;
6549
6603
  pqc?: boolean;
6550
6604
  safetycat?: LearningGenaiRootHarmSafetyCatCategories;
6605
+ /** Spii Filter uses buckets http://google3/google/privacy/dlp/v2/storage.proto;l=77;rcl=584719820 to classify the input. LMRoot converts the bucket into double score. For example the score for "POSSIBLE" is 3 / 5 = 0.6 . */
6551
6606
  spii?: LearningGenaiRootHarmSpiiFilter;
6552
6607
  threshold?: number;
6553
6608
  videoFrameCsam?: boolean;
@@ -9923,7 +9978,7 @@ declare namespace gapi.client {
9923
9978
  },
9924
9979
  body: GoogleCloudAiplatformV1DeployModelRequest
9925
9980
  ): Request<GoogleLongrunningOperation>;
9926
- /** Perform an unary online prediction request for Vertex first-party products and frameworks. */
9981
+ /** Perform an unary online prediction request to a gRPC model server for Vertex first-party products and frameworks. */
9927
9982
  directPredict(request: {
9928
9983
  /** V1 error format. */
9929
9984
  '$.xgafv'?: string;
@@ -9981,7 +10036,7 @@ declare namespace gapi.client {
9981
10036
  },
9982
10037
  body: GoogleCloudAiplatformV1DirectPredictRequest
9983
10038
  ): Request<GoogleCloudAiplatformV1DirectPredictResponse>;
9984
- /** Perform an online prediction request through gRPC. */
10039
+ /** Perform an unary online prediction request to a gRPC model server for custom containers. */
9985
10040
  directRawPredict(request: {
9986
10041
  /** V1 error format. */
9987
10042
  '$.xgafv'?: string;
@@ -10097,6 +10152,64 @@ declare namespace gapi.client {
10097
10152
  },
10098
10153
  body: GoogleCloudAiplatformV1ExplainRequest
10099
10154
  ): Request<GoogleCloudAiplatformV1ExplainResponse>;
10155
+ /** Generate content with multimodal inputs. */
10156
+ generateContent(request: {
10157
+ /** V1 error format. */
10158
+ '$.xgafv'?: string;
10159
+ /** OAuth access token. */
10160
+ access_token?: string;
10161
+ /** Data format for response. */
10162
+ alt?: string;
10163
+ /** JSONP */
10164
+ callback?: string;
10165
+ /** Selector specifying which fields to include in a partial response. */
10166
+ fields?: string;
10167
+ /** 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. */
10168
+ key?: string;
10169
+ /** Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*‍/models/*` */
10170
+ model: string;
10171
+ /** OAuth 2.0 token for the current user. */
10172
+ oauth_token?: string;
10173
+ /** Returns response with indentations and line breaks. */
10174
+ prettyPrint?: boolean;
10175
+ /** 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. */
10176
+ quotaUser?: string;
10177
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
10178
+ upload_protocol?: string;
10179
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
10180
+ uploadType?: string;
10181
+ /** Request body */
10182
+ resource: GoogleCloudAiplatformV1GenerateContentRequest;
10183
+ }): Request<GoogleCloudAiplatformV1GenerateContentResponse>;
10184
+ generateContent(
10185
+ request: {
10186
+ /** V1 error format. */
10187
+ '$.xgafv'?: string;
10188
+ /** OAuth access token. */
10189
+ access_token?: string;
10190
+ /** Data format for response. */
10191
+ alt?: string;
10192
+ /** JSONP */
10193
+ callback?: string;
10194
+ /** Selector specifying which fields to include in a partial response. */
10195
+ fields?: string;
10196
+ /** 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. */
10197
+ key?: string;
10198
+ /** Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*‍/models/*` */
10199
+ model: string;
10200
+ /** OAuth 2.0 token for the current user. */
10201
+ oauth_token?: string;
10202
+ /** Returns response with indentations and line breaks. */
10203
+ prettyPrint?: boolean;
10204
+ /** 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. */
10205
+ quotaUser?: string;
10206
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
10207
+ upload_protocol?: string;
10208
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
10209
+ uploadType?: string;
10210
+ },
10211
+ body: GoogleCloudAiplatformV1GenerateContentRequest
10212
+ ): Request<GoogleCloudAiplatformV1GenerateContentResponse>;
10100
10213
  /** Gets an Endpoint. */
10101
10214
  get(request?: {
10102
10215
  /** V1 error format. */
@@ -10513,6 +10626,7 @@ declare namespace gapi.client {
10513
10626
  },
10514
10627
  body: GoogleCloudAiplatformV1GenerateContentRequest
10515
10628
  ): Request<GoogleCloudAiplatformV1GenerateContentResponse>;
10629
+ /** Perform a streaming online prediction with an arbitrary HTTP payload. */
10516
10630
  streamRawPredict(request: {
10517
10631
  /** V1 error format. */
10518
10632
  '$.xgafv'?: string;
@@ -11763,6 +11877,64 @@ declare namespace gapi.client {
11763
11877
  },
11764
11878
  body: GoogleCloudAiplatformV1FeatureView
11765
11879
  ): Request<GoogleLongrunningOperation>;
11880
+ /** Search the nearest entities under a FeatureView. Search only works for indexable feature view; if a feature view isn't indexable, returns Invalid argument response. */
11881
+ searchNearestEntities(request: {
11882
+ /** V1 error format. */
11883
+ '$.xgafv'?: string;
11884
+ /** OAuth access token. */
11885
+ access_token?: string;
11886
+ /** Data format for response. */
11887
+ alt?: string;
11888
+ /** JSONP */
11889
+ callback?: string;
11890
+ /** Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` */
11891
+ featureView: string;
11892
+ /** Selector specifying which fields to include in a partial response. */
11893
+ fields?: string;
11894
+ /** 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. */
11895
+ key?: string;
11896
+ /** OAuth 2.0 token for the current user. */
11897
+ oauth_token?: string;
11898
+ /** Returns response with indentations and line breaks. */
11899
+ prettyPrint?: boolean;
11900
+ /** 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. */
11901
+ quotaUser?: string;
11902
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11903
+ upload_protocol?: string;
11904
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11905
+ uploadType?: string;
11906
+ /** Request body */
11907
+ resource: GoogleCloudAiplatformV1SearchNearestEntitiesRequest;
11908
+ }): Request<GoogleCloudAiplatformV1SearchNearestEntitiesResponse>;
11909
+ searchNearestEntities(
11910
+ request: {
11911
+ /** V1 error format. */
11912
+ '$.xgafv'?: string;
11913
+ /** OAuth access token. */
11914
+ access_token?: string;
11915
+ /** Data format for response. */
11916
+ alt?: string;
11917
+ /** JSONP */
11918
+ callback?: string;
11919
+ /** Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` */
11920
+ featureView: string;
11921
+ /** Selector specifying which fields to include in a partial response. */
11922
+ fields?: string;
11923
+ /** 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. */
11924
+ key?: string;
11925
+ /** OAuth 2.0 token for the current user. */
11926
+ oauth_token?: string;
11927
+ /** Returns response with indentations and line breaks. */
11928
+ prettyPrint?: boolean;
11929
+ /** 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. */
11930
+ quotaUser?: string;
11931
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11932
+ upload_protocol?: string;
11933
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11934
+ uploadType?: string;
11935
+ },
11936
+ body: GoogleCloudAiplatformV1SearchNearestEntitiesRequest
11937
+ ): Request<GoogleCloudAiplatformV1SearchNearestEntitiesResponse>;
11766
11938
  /** Triggers on-demand sync for the FeatureView. */
11767
11939
  sync(request: {
11768
11940
  /** V1 error format. */
@@ -12118,7 +12290,7 @@ declare namespace gapi.client {
12118
12290
  prettyPrint?: boolean;
12119
12291
  /** 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. */
12120
12292
  quotaUser?: string;
12121
- /** Field mask is used to specify the fields to be overwritten in the FeatureOnlineStore resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `big_query_source` * `labels` * `sync_config` */
12293
+ /** Field mask is used to specify the fields to be overwritten in the FeatureOnlineStore resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `big_query_source` * `bigtable` * `labels` * `sync_config` */
12122
12294
  updateMask?: string;
12123
12295
  /** Upload protocol for media (e.g. "raw", "multipart"). */
12124
12296
  upload_protocol?: string;
@@ -12149,7 +12321,7 @@ declare namespace gapi.client {
12149
12321
  prettyPrint?: boolean;
12150
12322
  /** 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. */
12151
12323
  quotaUser?: string;
12152
- /** Field mask is used to specify the fields to be overwritten in the FeatureOnlineStore resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `big_query_source` * `labels` * `sync_config` */
12324
+ /** Field mask is used to specify the fields to be overwritten in the FeatureOnlineStore resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `big_query_source` * `bigtable` * `labels` * `sync_config` */
12153
12325
  updateMask?: string;
12154
12326
  /** Upload protocol for media (e.g. "raw", "multipart"). */
12155
12327
  upload_protocol?: string;
@@ -18952,6 +19124,35 @@ declare namespace gapi.client {
18952
19124
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18953
19125
  uploadType?: string;
18954
19126
  }): Request<GoogleCloudAiplatformV1Model>;
19127
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
19128
+ getIamPolicy(request?: {
19129
+ /** V1 error format. */
19130
+ '$.xgafv'?: string;
19131
+ /** OAuth access token. */
19132
+ access_token?: string;
19133
+ /** Data format for response. */
19134
+ alt?: string;
19135
+ /** JSONP */
19136
+ callback?: string;
19137
+ /** Selector specifying which fields to include in a partial response. */
19138
+ fields?: string;
19139
+ /** 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. */
19140
+ key?: string;
19141
+ /** OAuth 2.0 token for the current user. */
19142
+ oauth_token?: string;
19143
+ /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
19144
+ 'options.requestedPolicyVersion'?: number;
19145
+ /** Returns response with indentations and line breaks. */
19146
+ prettyPrint?: boolean;
19147
+ /** 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. */
19148
+ quotaUser?: string;
19149
+ /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
19150
+ resource: string;
19151
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
19152
+ upload_protocol?: string;
19153
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
19154
+ uploadType?: string;
19155
+ }): Request<GoogleIamV1Policy>;
18955
19156
  /** Lists Models in a Location. */
18956
19157
  list(request?: {
18957
19158
  /** V1 error format. */
@@ -19146,6 +19347,65 @@ declare namespace gapi.client {
19146
19347
  },
19147
19348
  body: GoogleCloudAiplatformV1Model
19148
19349
  ): Request<GoogleCloudAiplatformV1Model>;
19350
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
19351
+ setIamPolicy(
19352
+ request: {
19353
+ /** V1 error format. */
19354
+ '$.xgafv'?: string;
19355
+ /** OAuth access token. */
19356
+ access_token?: string;
19357
+ /** Data format for response. */
19358
+ alt?: string;
19359
+ /** JSONP */
19360
+ callback?: string;
19361
+ /** Selector specifying which fields to include in a partial response. */
19362
+ fields?: string;
19363
+ /** 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. */
19364
+ key?: string;
19365
+ /** OAuth 2.0 token for the current user. */
19366
+ oauth_token?: string;
19367
+ /** Returns response with indentations and line breaks. */
19368
+ prettyPrint?: boolean;
19369
+ /** 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. */
19370
+ quotaUser?: string;
19371
+ /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
19372
+ resource: string;
19373
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
19374
+ upload_protocol?: string;
19375
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
19376
+ uploadType?: string;
19377
+ },
19378
+ body: GoogleIamV1SetIamPolicyRequest
19379
+ ): Request<GoogleIamV1Policy>;
19380
+ /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
19381
+ testIamPermissions(request?: {
19382
+ /** V1 error format. */
19383
+ '$.xgafv'?: string;
19384
+ /** OAuth access token. */
19385
+ access_token?: string;
19386
+ /** Data format for response. */
19387
+ alt?: string;
19388
+ /** JSONP */
19389
+ callback?: string;
19390
+ /** Selector specifying which fields to include in a partial response. */
19391
+ fields?: string;
19392
+ /** 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. */
19393
+ key?: string;
19394
+ /** OAuth 2.0 token for the current user. */
19395
+ oauth_token?: string;
19396
+ /** The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). */
19397
+ permissions?: string | string[];
19398
+ /** Returns response with indentations and line breaks. */
19399
+ prettyPrint?: boolean;
19400
+ /** 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. */
19401
+ quotaUser?: string;
19402
+ /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
19403
+ resource: string;
19404
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
19405
+ upload_protocol?: string;
19406
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
19407
+ uploadType?: string;
19408
+ }): Request<GoogleIamV1TestIamPermissionsResponse>;
19149
19409
  /** Incrementally update the dataset used for an examples model. */
19150
19410
  updateExplanationDataset(request: {
19151
19411
  /** V1 error format. */
@@ -20668,6 +20928,64 @@ declare namespace gapi.client {
20668
20928
  },
20669
20929
  body: GoogleCloudAiplatformV1CountTokensRequest
20670
20930
  ): Request<GoogleCloudAiplatformV1CountTokensResponse>;
20931
+ /** Generate content with multimodal inputs. */
20932
+ generateContent(request: {
20933
+ /** V1 error format. */
20934
+ '$.xgafv'?: string;
20935
+ /** OAuth access token. */
20936
+ access_token?: string;
20937
+ /** Data format for response. */
20938
+ alt?: string;
20939
+ /** JSONP */
20940
+ callback?: string;
20941
+ /** Selector specifying which fields to include in a partial response. */
20942
+ fields?: string;
20943
+ /** 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. */
20944
+ key?: string;
20945
+ /** Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*‍/models/*` */
20946
+ model: string;
20947
+ /** OAuth 2.0 token for the current user. */
20948
+ oauth_token?: string;
20949
+ /** Returns response with indentations and line breaks. */
20950
+ prettyPrint?: boolean;
20951
+ /** 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. */
20952
+ quotaUser?: string;
20953
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
20954
+ upload_protocol?: string;
20955
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
20956
+ uploadType?: string;
20957
+ /** Request body */
20958
+ resource: GoogleCloudAiplatformV1GenerateContentRequest;
20959
+ }): Request<GoogleCloudAiplatformV1GenerateContentResponse>;
20960
+ generateContent(
20961
+ request: {
20962
+ /** V1 error format. */
20963
+ '$.xgafv'?: string;
20964
+ /** OAuth access token. */
20965
+ access_token?: string;
20966
+ /** Data format for response. */
20967
+ alt?: string;
20968
+ /** JSONP */
20969
+ callback?: string;
20970
+ /** Selector specifying which fields to include in a partial response. */
20971
+ fields?: string;
20972
+ /** 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. */
20973
+ key?: string;
20974
+ /** Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*‍/models/*` */
20975
+ model: string;
20976
+ /** OAuth 2.0 token for the current user. */
20977
+ oauth_token?: string;
20978
+ /** Returns response with indentations and line breaks. */
20979
+ prettyPrint?: boolean;
20980
+ /** 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. */
20981
+ quotaUser?: string;
20982
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
20983
+ upload_protocol?: string;
20984
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
20985
+ uploadType?: string;
20986
+ },
20987
+ body: GoogleCloudAiplatformV1GenerateContentRequest
20988
+ ): Request<GoogleCloudAiplatformV1GenerateContentResponse>;
20671
20989
  /** Perform an online prediction. */
20672
20990
  predict(request: {
20673
20991
  /** V1 error format. */
@@ -20900,6 +21218,7 @@ declare namespace gapi.client {
20900
21218
  },
20901
21219
  body: GoogleCloudAiplatformV1GenerateContentRequest
20902
21220
  ): Request<GoogleCloudAiplatformV1GenerateContentResponse>;
21221
+ /** Perform a streaming online prediction with an arbitrary HTTP payload. */
20903
21222
  streamRawPredict(request: {
20904
21223
  /** V1 error format. */
20905
21224
  '$.xgafv'?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.aiplatform-v1",
3
- "version": "0.0.20240125",
3
+ "version": "0.0.20240205",
4
4
  "description": "TypeScript typings for Vertex AI API v1",
5
5
  "repository": {
6
6
  "type": "git",