@maxim_mazurok/gapi.client.aiplatform-v1beta1 0.0.20230809 → 0.0.20230908

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +345 -61
  2. package/package.json +1 -1
  3. package/tests.ts +119 -27
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://aiplatform.googleapis.com/$discovery/rest?version=v1beta1
12
- // Revision: 20230809
12
+ // Revision: 20230908
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -934,14 +934,11 @@ declare namespace gapi.client {
934
934
  GoogleCloudAiplatformV1beta1Feature;
935
935
  /**
936
936
  * Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are
937
- * `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.
937
+ * `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType .
938
938
  */
939
939
  featureId?:
940
940
  string;
941
- /**
942
- * Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format:
943
- * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`
944
- */
941
+ /** Required. The resource name of the EntityType to create a Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` */
945
942
  parent?:
946
943
  string;
947
944
  }
@@ -2320,6 +2317,21 @@ declare namespace gapi.client {
2320
2317
  exportedFiles?:
2321
2318
  string[];
2322
2319
  }
2320
+ interface GoogleCloudAiplatformV1beta1ExportEndpointOperationMetadata {
2321
+ /** The common part of the operation metadata. */
2322
+ genericMetadata?:
2323
+ GoogleCloudAiplatformV1beta1GenericOperationMetadata;
2324
+ }
2325
+ interface GoogleCloudAiplatformV1beta1ExportEndpointResponse {
2326
+ /** Information further describing the output of this Endpoint export. */
2327
+ outputInfo?:
2328
+ GoogleCloudAiplatformV1beta1ExportEndpointResponseOutputInfo;
2329
+ }
2330
+ interface GoogleCloudAiplatformV1beta1ExportEndpointResponseOutputInfo {
2331
+ /** If the Endpoint is being exported to BigQuery this is the full path of the BigQuery ML model created. */
2332
+ bigQueryDestination?:
2333
+ GoogleCloudAiplatformV1beta1BigQueryDestination;
2334
+ }
2323
2335
  interface GoogleCloudAiplatformV1beta1ExportFeatureValuesOperationMetadata {
2324
2336
  /** Operation metadata for Featurestore export Feature values. */
2325
2337
  genericMetadata?:
@@ -2495,30 +2507,9 @@ declare namespace gapi.client {
2495
2507
  /** Output only. Timestamp when this EntityType was most recently updated. */
2496
2508
  updateTime?:
2497
2509
  string;
2498
- /** Required. Immutable. Type of Feature value. */
2510
+ /** Immutable. Type of Feature value. */
2499
2511
  valueType?:
2500
2512
  string;
2501
- /** Output only. Timestamp when this version was created. */
2502
- versionCreateTime?:
2503
- string;
2504
- /** The description of this version. */
2505
- versionDescription?:
2506
- string;
2507
- /**
2508
- * Output only. Immutable. The version ID of the feature. It is an auto-incrementing decimal number in string representation. A new version is committed when a new model version is
2509
- * created under an existing feature id.
2510
- */
2511
- versionId?:
2512
- string;
2513
- /**
2514
- * The labels with user-defined metadata to organize your versions. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters,
2515
- * numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.
2516
- */
2517
- versionLabels?:
2518
- { [P in string]: string };
2519
- /** Output only. Timestamp when this version was most recently updated. */
2520
- versionUpdateTime?:
2521
- string;
2522
2513
  }
2523
2514
  interface GoogleCloudAiplatformV1beta1FeatureMonitoringStatsAnomaly {
2524
2515
  /** Output only. The stats and anomalies generated at specific timestamp. */
@@ -3142,6 +3133,9 @@ declare namespace gapi.client {
3142
3133
  /** Required. The display name of the Index. The name can be up to 128 characters long and can consist of any UTF-8 characters. */
3143
3134
  displayName?:
3144
3135
  string;
3136
+ /** Immutable. Customer-managed encryption key spec for an Index. If set, this Index and all sub-resources of this Index will be secured by this key. */
3137
+ encryptionSpec?:
3138
+ GoogleCloudAiplatformV1beta1EncryptionSpec;
3145
3139
  /** Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. */
3146
3140
  etag?:
3147
3141
  string;
@@ -3190,8 +3184,8 @@ declare namespace gapi.client {
3190
3184
  featureVector?:
3191
3185
  number[];
3192
3186
  /**
3193
- * Optional. List of Restrict of the datapoint, used to perform "restricted searches" where boolean rule are used to filter the subset of the database eligible for matching. See:
3194
- * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
3187
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches" where boolean rule are used to filter the subset of the database eligible for matching. This uses
3188
+ * categorical tokens. See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
3195
3189
  */
3196
3190
  restricts?:
3197
3191
  GoogleCloudAiplatformV1beta1IndexDatapointRestriction[];
@@ -3205,13 +3199,13 @@ declare namespace gapi.client {
3205
3199
  string;
3206
3200
  }
3207
3201
  interface GoogleCloudAiplatformV1beta1IndexDatapointRestriction {
3208
- /** The attributes to allow in this namespace. eg: 'red' */
3202
+ /** The attributes to allow in this namespace. e.g.: 'red' */
3209
3203
  allowList?:
3210
3204
  string[];
3211
- /** The attributes to deny in this namespace. eg: 'blue' */
3205
+ /** The attributes to deny in this namespace. e.g.: 'blue' */
3212
3206
  denyList?:
3213
3207
  string[];
3214
- /** The namespace of this restriction. eg: color. */
3208
+ /** The namespace of this restriction. e.g.: color. */
3215
3209
  namespace?:
3216
3210
  string;
3217
3211
  }
@@ -3231,6 +3225,9 @@ declare namespace gapi.client {
3231
3225
  /** Optional. Deprecated: If true, expose the IndexEndpoint via private service connect. Only one of the fields, network or enable_private_service_connect, can be set. */
3232
3226
  enablePrivateServiceConnect?:
3233
3227
  boolean;
3228
+ /** Immutable. Customer-managed encryption key spec for an IndexEndpoint. If set, this IndexEndpoint and all sub-resources of this IndexEndpoint will be secured by this key. */
3229
+ encryptionSpec?:
3230
+ GoogleCloudAiplatformV1beta1EncryptionSpec;
3234
3231
  /** Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. */
3235
3232
  etag?:
3236
3233
  string;
@@ -4989,6 +4986,9 @@ declare namespace gapi.client {
4989
4986
  /** Output only. Timestamp when this NotebookRuntime was most recently updated. */
4990
4987
  updateTime?:
4991
4988
  string;
4989
+ /** Output only. The VM os image version of NotebookRuntime. */
4990
+ version?:
4991
+ string;
4992
4992
  }
4993
4993
  interface GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate {
4994
4994
  /** Output only. Timestamp when this NotebookRuntimeTemplate was created. */
@@ -5714,11 +5714,11 @@ declare namespace gapi.client {
5714
5714
  }
5715
5715
  interface GoogleCloudAiplatformV1beta1RaySpec {
5716
5716
  /**
5717
- * Optional. Will use the machine from the first workerpool as the head node by default. For Ray-on-Vertex Experimental scope launch, we will only support one resource pool for Ray
5718
- * cluster and thus will not support head machine selection.
5717
+ * Optional. This will be used to indicate which resource pool will serve as the Ray head node(the first node within that pool). Will use the machine from the first workerpool as the
5718
+ * head node by default if this field is not set.
5719
5719
  */
5720
- headMachineSpec?:
5721
- GoogleCloudAiplatformV1beta1MachineSpec;
5720
+ headNodeResourcePoolId?:
5721
+ string;
5722
5722
  /**
5723
5723
  * Optional. Default image for user to choose a preferred ML framework(e.g. tensorflow or Pytorch) by choosing from Vertex prebuild
5724
5724
  * images(https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). Either this or the resource_pool_images is required. Use this field if you need all the resource pools
@@ -5726,6 +5726,12 @@ declare namespace gapi.client {
5726
5726
  */
5727
5727
  imageUri?:
5728
5728
  string;
5729
+ /**
5730
+ * Optional. Required if image_uri is not set. A map of resource_pool_id to prebuild Ray image if user need to use different images for different head/worker pools. This map needs to
5731
+ * cover all the resource pool ids. Example: { "ray_head_node_pool": "head image" "ray_worker_node_pool1": "worker image" "ray_worker_node_pool2": "another worker image" }
5732
+ */
5733
+ resourcePoolImages?:
5734
+ { [P in string]: string };
5729
5735
  }
5730
5736
  interface GoogleCloudAiplatformV1beta1ReadFeatureValuesRequest {
5731
5737
  /** Required. ID for a specific entity. For example, for a machine learning model predicting user clicks on a website, an entity ID could be `user_123`. */
@@ -5891,6 +5897,12 @@ declare namespace gapi.client {
5891
5897
  /** Output only. URIs for user to connect to the Cluster. Example: { "RAY_HEAD_NODE_INTERNAL_IP": "head-node-IP:10001" "RAY_DASHBOARD_URI": "ray-dashboard-address:8888" } */
5892
5898
  accessUris?:
5893
5899
  { [P in string]: string };
5900
+ /**
5901
+ * Output only. The resource name of NotebookRuntimeTemplate for the RoV Persistent Cluster The NotebokRuntimeTemplate is created in the same VPC (if set), and with the same Ray and
5902
+ * Python version as the Persistent Cluster. Example: "projects/1000/locations/us-central1/notebookRuntimeTemplates/abc123"
5903
+ */
5904
+ notebookRuntimeTemplate?:
5905
+ string;
5894
5906
  }
5895
5907
  interface GoogleCloudAiplatformV1beta1ResourceRuntimeSpec {
5896
5908
  /** Optional. Ray cluster configuration. Required when creating a dedicated RayCluster on the PersistentResource. */
@@ -6075,6 +6087,9 @@ declare namespace gapi.client {
6075
6087
  string;
6076
6088
  }
6077
6089
  interface GoogleCloudAiplatformV1beta1Scheduling {
6090
+ /** 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. */
6091
+ disableRetries?:
6092
+ boolean;
6078
6093
  /** 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. */
6079
6094
  restartJobOnWorkerRestart?:
6080
6095
  boolean;
@@ -8700,6 +8715,21 @@ declare namespace gapi.client {
8700
8715
  */
8701
8716
  clientId?:
8702
8717
  string;
8718
+ /**
8719
+ * Optional. This allows you to specify the "context" for a Trial; a context is a slice (a subspace) of the search space. Typical uses for contexts: 1) You are using Vizier to tune a
8720
+ * server for best performance, but there's a strong weekly cycle. The context specifies the day-of-week. This allows Tuesday to generalize from Wednesday without assuming that
8721
+ * everything is identical. 2) Imagine you're optimizing some medical treatment for people. As they walk in the door, you know certain facts about them (e.g. sex, weight, height,
8722
+ * blood-pressure). Put that information in the context, and Vizier will adapt its suggestions to the patient. 3) You want to do a fair A/B test efficiently. Specify the "A" and "B"
8723
+ * conditions as contexts, and Vizier will generalize between "A" and "B" conditions. If they are similar, this will allow Vizier to converge to the optimum faster than if "A" and "B"
8724
+ * were separate Studies. NOTE: You can also enter contexts as REQUESTED Trials, e.g. via the CreateTrial() RPC; that's the asynchronous option where you don't need a close association
8725
+ * between contexts and suggestions. NOTE: All the Parameters you set in a context MUST be defined in the Study. NOTE: You must supply 0 or $suggestion_count contexts. If you don't
8726
+ * supply any contexts, Vizier will make suggestions from the full search space specified in the StudySpec; if you supply a full set of context, each suggestion will match the
8727
+ * corresponding context. NOTE: A Context with no features set matches anything, and allows suggestions from the full search space. NOTE: Contexts MUST lie within the search space
8728
+ * specified in the StudySpec. It's an error if they don't. NOTE: Contexts preferentially match ACTIVE then REQUESTED trials before new suggestions are generated. NOTE: Generation of
8729
+ * suggestions involves a match between a Context and (optionally) a REQUESTED trial; if that match is not fully specified, a suggestion will be geneated in the merged subspace.
8730
+ */
8731
+ contexts?:
8732
+ GoogleCloudAiplatformV1beta1TrialContext[];
8703
8733
  /** Required. The number of suggestions requested. It must be positive. */
8704
8734
  suggestionCount?:
8705
8735
  number;
@@ -9125,6 +9155,18 @@ declare namespace gapi.client {
9125
9155
  webAccessUris?:
9126
9156
  { [P in string]: string };
9127
9157
  }
9158
+ interface GoogleCloudAiplatformV1beta1TrialContext {
9159
+ /** A human-readable field which can store a description of this context. This will become part of the resulting Trial's description field. */
9160
+ description?:
9161
+ string;
9162
+ /**
9163
+ * If/when a Trial is generated or selected from this Context, its Parameters will match any parameters specified here. (I.e. if this context specifies parameter name:'a' int_value:3,
9164
+ * then a resulting Trial will have int_value:3 for its parameter named 'a'.) Note that we first attempt to match existing REQUESTED Trials with contexts, and if there are no matches,
9165
+ * we generate suggestions in the subspace defined by the parameters specified here. NOTE: a Context without any Parameters matches the entire feasible search space.
9166
+ */
9167
+ parameters?:
9168
+ GoogleCloudAiplatformV1beta1TrialParameter[];
9169
+ }
9128
9170
  interface GoogleCloudAiplatformV1beta1TrialParameter {
9129
9171
  /** Output only. The ID of the parameter. The parameter should be defined in StudySpec's Parameters. */
9130
9172
  parameterId?:
@@ -9221,6 +9263,11 @@ declare namespace gapi.client {
9221
9263
  genericMetadata?:
9222
9264
  GoogleCloudAiplatformV1beta1GenericOperationMetadata;
9223
9265
  }
9266
+ interface GoogleCloudAiplatformV1beta1UpdatePersistentResourceOperationMetadata {
9267
+ /** Operation metadata for PersistentResource. */
9268
+ genericMetadata?:
9269
+ GoogleCloudAiplatformV1beta1GenericOperationMetadata;
9270
+ }
9224
9271
  interface GoogleCloudAiplatformV1beta1UpdateSpecialistPoolOperationMetadata {
9225
9272
  /** The operation generic information. */
9226
9273
  genericMetadata?:
@@ -16757,7 +16804,7 @@ declare namespace gapi.client {
16757
16804
  string;
16758
16805
  /**
16759
16806
  * Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are
16760
- * `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.
16807
+ * `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType .
16761
16808
  */
16762
16809
  featureId?:
16763
16810
  string;
@@ -16770,10 +16817,7 @@ declare namespace gapi.client {
16770
16817
  /** OAuth 2.0 token for the current user. */
16771
16818
  oauth_token?:
16772
16819
  string;
16773
- /**
16774
- * Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format:
16775
- * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`
16776
- */
16820
+ /** Required. The resource name of the EntityType to create a Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` */
16777
16821
  parent:
16778
16822
  string;
16779
16823
  /** Returns response with indentations and line breaks. */
@@ -16807,7 +16851,7 @@ declare namespace gapi.client {
16807
16851
  string;
16808
16852
  /**
16809
16853
  * Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are
16810
- * `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.
16854
+ * `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType .
16811
16855
  */
16812
16856
  featureId?:
16813
16857
  string;
@@ -16820,10 +16864,7 @@ declare namespace gapi.client {
16820
16864
  /** OAuth 2.0 token for the current user. */
16821
16865
  oauth_token?:
16822
16866
  string;
16823
- /**
16824
- * Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format:
16825
- * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`
16826
- */
16867
+ /** Required. The resource name of the EntityType to create a Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` */
16827
16868
  parent:
16828
16869
  string;
16829
16870
  /** Returns response with indentations and line breaks. */
@@ -16860,10 +16901,7 @@ declare namespace gapi.client {
16860
16901
  /** 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. */
16861
16902
  key?:
16862
16903
  string;
16863
- /**
16864
- * Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
16865
- * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`
16866
- */
16904
+ /** Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` */
16867
16905
  name:
16868
16906
  string;
16869
16907
  /** OAuth 2.0 token for the current user. */
@@ -16902,10 +16940,7 @@ declare namespace gapi.client {
16902
16940
  /** 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. */
16903
16941
  key?:
16904
16942
  string;
16905
- /**
16906
- * Required. The name of the Feature resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
16907
- * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
16908
- */
16943
+ /** Required. The name of the Feature resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` */
16909
16944
  name:
16910
16945
  string;
16911
16946
  /** OAuth 2.0 token for the current user. */
@@ -16963,8 +16998,8 @@ declare namespace gapi.client {
16963
16998
  oauth_token?:
16964
16999
  string;
16965
17000
  /**
16966
- * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * `feature_id` * `value_type` *
16967
- * `create_time` * `update_time`
17001
+ * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * `feature_id` * `value_type` (Not
17002
+ * supported for FeatureRegistry Feature) * `create_time` * `update_time`
16968
17003
  */
16969
17004
  orderBy?:
16970
17005
  string;
@@ -16980,10 +17015,7 @@ declare namespace gapi.client {
16980
17015
  */
16981
17016
  pageToken?:
16982
17017
  string;
16983
- /**
16984
- * Required. The resource name of the Location to list Features. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
16985
- * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
16986
- */
17018
+ /** Required. The resource name of the Location to list Features. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` */
16987
17019
  parent:
16988
17020
  string;
16989
17021
  /** Returns response with indentations and line breaks. */
@@ -27079,6 +27111,169 @@ declare namespace gapi.client {
27079
27111
  nasTrialDetails:
27080
27112
  NasTrialDetailsResource;
27081
27113
  }
27114
+ interface NotebookExecutionJobsResource {
27115
+ /** Internal only: Called from Compute Engine instance to obtain EUC for owner Anonymous access: authenticates caller using VM identity JWT. Design doc: go/colab-on-vertex-euc-dd */
27116
+ generateAccessToken(request: {
27117
+ /** V1 error format. */
27118
+ "$.xgafv"?:
27119
+ string;
27120
+ /** OAuth access token. */
27121
+ access_token?:
27122
+ string;
27123
+ /** Data format for response. */
27124
+ alt?:
27125
+ string;
27126
+ /** JSONP */
27127
+ callback?:
27128
+ string;
27129
+ /** Selector specifying which fields to include in a partial response. */
27130
+ fields?:
27131
+ string;
27132
+ /** 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. */
27133
+ key?:
27134
+ string;
27135
+ /** Required. The name of the NotebookRuntime resource. Format: `projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}` */
27136
+ name:
27137
+ string;
27138
+ /** OAuth 2.0 token for the current user. */
27139
+ oauth_token?:
27140
+ string;
27141
+ /** Returns response with indentations and line breaks. */
27142
+ prettyPrint?:
27143
+ boolean;
27144
+ /** 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. */
27145
+ quotaUser?:
27146
+ string;
27147
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
27148
+ upload_protocol?:
27149
+ string;
27150
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
27151
+ uploadType?:
27152
+ string;
27153
+ /** Request body */
27154
+ resource:
27155
+ GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest;
27156
+ }): Request<GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse>;
27157
+ generateAccessToken(request: {
27158
+ /** V1 error format. */
27159
+ "$.xgafv"?:
27160
+ string;
27161
+ /** OAuth access token. */
27162
+ access_token?:
27163
+ string;
27164
+ /** Data format for response. */
27165
+ alt?:
27166
+ string;
27167
+ /** JSONP */
27168
+ callback?:
27169
+ string;
27170
+ /** Selector specifying which fields to include in a partial response. */
27171
+ fields?:
27172
+ string;
27173
+ /** 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. */
27174
+ key?:
27175
+ string;
27176
+ /** Required. The name of the NotebookRuntime resource. Format: `projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}` */
27177
+ name:
27178
+ string;
27179
+ /** OAuth 2.0 token for the current user. */
27180
+ oauth_token?:
27181
+ string;
27182
+ /** Returns response with indentations and line breaks. */
27183
+ prettyPrint?:
27184
+ boolean;
27185
+ /** 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. */
27186
+ quotaUser?:
27187
+ string;
27188
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
27189
+ upload_protocol?:
27190
+ string;
27191
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
27192
+ uploadType?:
27193
+ string;
27194
+ },
27195
+ body: GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest): Request<GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse>;
27196
+ reportEvent(request: {
27197
+ /** V1 error format. */
27198
+ "$.xgafv"?:
27199
+ string;
27200
+ /** OAuth access token. */
27201
+ access_token?:
27202
+ string;
27203
+ /** Data format for response. */
27204
+ alt?:
27205
+ string;
27206
+ /** JSONP */
27207
+ callback?:
27208
+ string;
27209
+ /** Selector specifying which fields to include in a partial response. */
27210
+ fields?:
27211
+ string;
27212
+ /** 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. */
27213
+ key?:
27214
+ string;
27215
+ /** Required. The name of the NotebookRuntime resource. Format: `projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}` */
27216
+ name:
27217
+ string;
27218
+ /** OAuth 2.0 token for the current user. */
27219
+ oauth_token?:
27220
+ string;
27221
+ /** Returns response with indentations and line breaks. */
27222
+ prettyPrint?:
27223
+ boolean;
27224
+ /** 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. */
27225
+ quotaUser?:
27226
+ string;
27227
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
27228
+ upload_protocol?:
27229
+ string;
27230
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
27231
+ uploadType?:
27232
+ string;
27233
+ /** Request body */
27234
+ resource:
27235
+ GoogleCloudAiplatformV1beta1ReportRuntimeEventRequest;
27236
+ }): Request<GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse>;
27237
+ reportEvent(request: {
27238
+ /** V1 error format. */
27239
+ "$.xgafv"?:
27240
+ string;
27241
+ /** OAuth access token. */
27242
+ access_token?:
27243
+ string;
27244
+ /** Data format for response. */
27245
+ alt?:
27246
+ string;
27247
+ /** JSONP */
27248
+ callback?:
27249
+ string;
27250
+ /** Selector specifying which fields to include in a partial response. */
27251
+ fields?:
27252
+ string;
27253
+ /** 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. */
27254
+ key?:
27255
+ string;
27256
+ /** Required. The name of the NotebookRuntime resource. Format: `projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}` */
27257
+ name:
27258
+ string;
27259
+ /** OAuth 2.0 token for the current user. */
27260
+ oauth_token?:
27261
+ string;
27262
+ /** Returns response with indentations and line breaks. */
27263
+ prettyPrint?:
27264
+ boolean;
27265
+ /** 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. */
27266
+ quotaUser?:
27267
+ string;
27268
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
27269
+ upload_protocol?:
27270
+ string;
27271
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
27272
+ uploadType?:
27273
+ string;
27274
+ },
27275
+ body: GoogleCloudAiplatformV1beta1ReportRuntimeEventRequest): Request<GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse>;
27276
+ }
27082
27277
  interface NotebookRuntimesResource {
27083
27278
  /** Assigns a NotebookRuntime to a user for a particular Notebook file. This method will either returns an existing assignment or generates a new one. */
27084
27279
  assign(request: {
@@ -28608,6 +28803,93 @@ declare namespace gapi.client {
28608
28803
  uploadType?:
28609
28804
  string;
28610
28805
  }): Request<GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse>;
28806
+ /** Updates a PersistentResource. */
28807
+ patch(request: {
28808
+ /** V1 error format. */
28809
+ "$.xgafv"?:
28810
+ string;
28811
+ /** OAuth access token. */
28812
+ access_token?:
28813
+ string;
28814
+ /** Data format for response. */
28815
+ alt?:
28816
+ string;
28817
+ /** JSONP */
28818
+ callback?:
28819
+ string;
28820
+ /** Selector specifying which fields to include in a partial response. */
28821
+ fields?:
28822
+ string;
28823
+ /** 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. */
28824
+ key?:
28825
+ string;
28826
+ /** Immutable. Resource name of a PersistentResource. */
28827
+ name:
28828
+ string;
28829
+ /** OAuth 2.0 token for the current user. */
28830
+ oauth_token?:
28831
+ string;
28832
+ /** Returns response with indentations and line breaks. */
28833
+ prettyPrint?:
28834
+ boolean;
28835
+ /** 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. */
28836
+ quotaUser?:
28837
+ string;
28838
+ /** Required. Specify the fields to be overwritten in the PersistentResource by the update method. */
28839
+ updateMask?:
28840
+ string;
28841
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
28842
+ upload_protocol?:
28843
+ string;
28844
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
28845
+ uploadType?:
28846
+ string;
28847
+ /** Request body */
28848
+ resource:
28849
+ GoogleCloudAiplatformV1beta1PersistentResource;
28850
+ }): Request<GoogleLongrunningOperation>;
28851
+ patch(request: {
28852
+ /** V1 error format. */
28853
+ "$.xgafv"?:
28854
+ string;
28855
+ /** OAuth access token. */
28856
+ access_token?:
28857
+ string;
28858
+ /** Data format for response. */
28859
+ alt?:
28860
+ string;
28861
+ /** JSONP */
28862
+ callback?:
28863
+ string;
28864
+ /** Selector specifying which fields to include in a partial response. */
28865
+ fields?:
28866
+ string;
28867
+ /** 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. */
28868
+ key?:
28869
+ string;
28870
+ /** Immutable. Resource name of a PersistentResource. */
28871
+ name:
28872
+ string;
28873
+ /** OAuth 2.0 token for the current user. */
28874
+ oauth_token?:
28875
+ string;
28876
+ /** Returns response with indentations and line breaks. */
28877
+ prettyPrint?:
28878
+ boolean;
28879
+ /** 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. */
28880
+ quotaUser?:
28881
+ string;
28882
+ /** Required. Specify the fields to be overwritten in the PersistentResource by the update method. */
28883
+ updateMask?:
28884
+ string;
28885
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
28886
+ upload_protocol?:
28887
+ string;
28888
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
28889
+ uploadType?:
28890
+ string;
28891
+ },
28892
+ body: GoogleCloudAiplatformV1beta1PersistentResource): Request<GoogleLongrunningOperation>;
28611
28893
  operations:
28612
28894
  OperationsResource;
28613
28895
  }
@@ -35870,6 +36152,8 @@ declare namespace gapi.client {
35870
36152
  ModelsResource;
35871
36153
  nasJobs:
35872
36154
  NasJobsResource;
36155
+ notebookExecutionJobs:
36156
+ NotebookExecutionJobsResource;
35873
36157
  notebookRuntimes:
35874
36158
  NotebookRuntimesResource;
35875
36159
  notebookRuntimeTemplates:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.aiplatform-v1beta1",
3
- "version": "0.0.20230809",
3
+ "version": "0.0.20230908",
4
4
  "description": "TypeScript typings for Vertex AI API v1beta1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230809
6
+ // Revision: 20230908
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -477,6 +477,7 @@ gapi.load('client', async () => {
477
477
  "Test string"
478
478
  ],
479
479
  scheduling: {
480
+ disableRetries: true,
480
481
  restartJobOnWorkerRestart: true,
481
482
  timeout: "Test string",
482
483
  },
@@ -2967,13 +2968,6 @@ gapi.load('client', async () => {
2967
2968
  name: "Test string",
2968
2969
  updateTime: "Test string",
2969
2970
  valueType: "Test string",
2970
- versionCreateTime: "Test string",
2971
- versionDescription: "Test string",
2972
- versionId: "Test string",
2973
- versionLabels: {
2974
- A: "Test string"
2975
- },
2976
- versionUpdateTime: "Test string",
2977
2971
  },
2978
2972
  featureId: "Test string",
2979
2973
  parent: "Test string",
@@ -3038,13 +3032,6 @@ gapi.load('client', async () => {
3038
3032
  name: "Test string",
3039
3033
  updateTime: "Test string",
3040
3034
  valueType: "Test string",
3041
- versionCreateTime: "Test string",
3042
- versionDescription: "Test string",
3043
- versionId: "Test string",
3044
- versionLabels: {
3045
- A: "Test string"
3046
- },
3047
- versionUpdateTime: "Test string",
3048
3035
  });
3049
3036
  /** Deletes a single Feature. */
3050
3037
  await gapi.client.aiplatform.projects.locations.featurestores.entityTypes.features.delete({
@@ -3122,13 +3109,6 @@ gapi.load('client', async () => {
3122
3109
  name: "Test string",
3123
3110
  updateTime: "Test string",
3124
3111
  valueType: "Test string",
3125
- versionCreateTime: "Test string",
3126
- versionDescription: "Test string",
3127
- versionId: "Test string",
3128
- versionLabels: {
3129
- A: "Test string"
3130
- },
3131
- versionUpdateTime: "Test string",
3132
3112
  });
3133
3113
  /**
3134
3114
  * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this
@@ -3383,6 +3363,7 @@ gapi.load('client', async () => {
3383
3363
  "Test string"
3384
3364
  ],
3385
3365
  scheduling: {
3366
+ disableRetries: true,
3386
3367
  restartJobOnWorkerRestart: true,
3387
3368
  timeout: "Test string",
3388
3369
  },
@@ -3594,6 +3575,9 @@ gapi.load('client', async () => {
3594
3575
  description: "Test string",
3595
3576
  displayName: "Test string",
3596
3577
  enablePrivateServiceConnect: true,
3578
+ encryptionSpec: {
3579
+ kmsKeyName: "Test string",
3580
+ },
3597
3581
  etag: "Test string",
3598
3582
  labels: {
3599
3583
  A: "Test string"
@@ -3815,6 +3799,9 @@ gapi.load('client', async () => {
3815
3799
  description: "Test string",
3816
3800
  displayName: "Test string",
3817
3801
  enablePrivateServiceConnect: true,
3802
+ encryptionSpec: {
3803
+ kmsKeyName: "Test string",
3804
+ },
3818
3805
  etag: "Test string",
3819
3806
  labels: {
3820
3807
  A: "Test string"
@@ -3896,6 +3883,9 @@ gapi.load('client', async () => {
3896
3883
  ],
3897
3884
  description: "Test string",
3898
3885
  displayName: "Test string",
3886
+ encryptionSpec: {
3887
+ kmsKeyName: "Test string",
3888
+ },
3899
3889
  etag: "Test string",
3900
3890
  indexStats: {
3901
3891
  shardsCount: 42,
@@ -3940,6 +3930,9 @@ gapi.load('client', async () => {
3940
3930
  ],
3941
3931
  description: "Test string",
3942
3932
  displayName: "Test string",
3933
+ encryptionSpec: {
3934
+ kmsKeyName: "Test string",
3935
+ },
3943
3936
  etag: "Test string",
3944
3937
  indexStats: {
3945
3938
  shardsCount: 42,
@@ -5785,6 +5778,7 @@ gapi.load('client', async () => {
5785
5778
  "Test string"
5786
5779
  ],
5787
5780
  scheduling: {
5781
+ disableRetries: true,
5788
5782
  restartJobOnWorkerRestart: true,
5789
5783
  timeout: "Test string",
5790
5784
  },
@@ -5861,6 +5855,7 @@ gapi.load('client', async () => {
5861
5855
  "Test string"
5862
5856
  ],
5863
5857
  scheduling: {
5858
+ disableRetries: true,
5864
5859
  restartJobOnWorkerRestart: true,
5865
5860
  timeout: "Test string",
5866
5861
  },
@@ -5954,6 +5949,21 @@ gapi.load('client', async () => {
5954
5949
  pageToken: "Test string",
5955
5950
  parent: "Test string",
5956
5951
  });
5952
+ /** Internal only: Called from Compute Engine instance to obtain EUC for owner Anonymous access: authenticates caller using VM identity JWT. Design doc: go/colab-on-vertex-euc-dd */
5953
+ await gapi.client.aiplatform.projects.locations.notebookExecutionJobs.generateAccessToken({
5954
+ name: "Test string",
5955
+ }, {
5956
+ vmToken: "Test string",
5957
+ });
5958
+ await gapi.client.aiplatform.projects.locations.notebookExecutionJobs.reportEvent({
5959
+ name: "Test string",
5960
+ }, {
5961
+ eventDetails: {
5962
+ A: "Test string"
5963
+ },
5964
+ eventType: "Test string",
5965
+ vmToken: "Test string",
5966
+ });
5957
5967
  /** Assigns a NotebookRuntime to a user for a particular Notebook file. This method will either returns an existing assignment or generates a new one. */
5958
5968
  await gapi.client.aiplatform.projects.locations.notebookRuntimes.assign({
5959
5969
  parent: "Test string",
@@ -5973,6 +5983,7 @@ gapi.load('client', async () => {
5973
5983
  runtimeUser: "Test string",
5974
5984
  serviceAccount: "Test string",
5975
5985
  updateTime: "Test string",
5986
+ version: "Test string",
5976
5987
  },
5977
5988
  notebookRuntimeId: "Test string",
5978
5989
  notebookRuntimeTemplate: "Test string",
@@ -6194,15 +6205,15 @@ gapi.load('client', async () => {
6194
6205
  accessUris: {
6195
6206
  A: "Test string"
6196
6207
  },
6208
+ notebookRuntimeTemplate: "Test string",
6197
6209
  },
6198
6210
  resourceRuntimeSpec: {
6199
6211
  raySpec: {
6200
- headMachineSpec: {
6201
- acceleratorCount: 42,
6202
- acceleratorType: "Test string",
6203
- machineType: "Test string",
6204
- },
6212
+ headNodeResourcePoolId: "Test string",
6205
6213
  imageUri: "Test string",
6214
+ resourcePoolImages: {
6215
+ A: "Test string"
6216
+ },
6206
6217
  },
6207
6218
  serviceAccountSpec: {
6208
6219
  enableCustomServiceAccount: true,
@@ -6227,6 +6238,76 @@ gapi.load('client', async () => {
6227
6238
  pageToken: "Test string",
6228
6239
  parent: "Test string",
6229
6240
  });
6241
+ /** Updates a PersistentResource. */
6242
+ await gapi.client.aiplatform.projects.locations.persistentResources.patch({
6243
+ name: "Test string",
6244
+ updateMask: "Test string",
6245
+ }, {
6246
+ createTime: "Test string",
6247
+ displayName: "Test string",
6248
+ encryptionSpec: {
6249
+ kmsKeyName: "Test string",
6250
+ },
6251
+ error: {
6252
+ code: 42,
6253
+ details: [
6254
+ {
6255
+ A: 42
6256
+ }
6257
+ ],
6258
+ message: "Test string",
6259
+ },
6260
+ labels: {
6261
+ A: "Test string"
6262
+ },
6263
+ name: "Test string",
6264
+ network: "Test string",
6265
+ reservedIpRanges: [
6266
+ "Test string"
6267
+ ],
6268
+ resourcePools: [
6269
+ {
6270
+ autoscalingSpec: {
6271
+ maxReplicaCount: "Test string",
6272
+ minReplicaCount: "Test string",
6273
+ },
6274
+ diskSpec: {
6275
+ bootDiskSizeGb: 42,
6276
+ bootDiskType: "Test string",
6277
+ },
6278
+ id: "Test string",
6279
+ machineSpec: {
6280
+ acceleratorCount: 42,
6281
+ acceleratorType: "Test string",
6282
+ machineType: "Test string",
6283
+ },
6284
+ replicaCount: "Test string",
6285
+ usedReplicaCount: "Test string",
6286
+ }
6287
+ ],
6288
+ resourceRuntime: {
6289
+ accessUris: {
6290
+ A: "Test string"
6291
+ },
6292
+ notebookRuntimeTemplate: "Test string",
6293
+ },
6294
+ resourceRuntimeSpec: {
6295
+ raySpec: {
6296
+ headNodeResourcePoolId: "Test string",
6297
+ imageUri: "Test string",
6298
+ resourcePoolImages: {
6299
+ A: "Test string"
6300
+ },
6301
+ },
6302
+ serviceAccountSpec: {
6303
+ enableCustomServiceAccount: true,
6304
+ serviceAccount: "Test string",
6305
+ },
6306
+ },
6307
+ startTime: "Test string",
6308
+ state: "Test string",
6309
+ updateTime: "Test string",
6310
+ });
6230
6311
  /**
6231
6312
  * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this
6232
6313
  * method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation
@@ -7596,6 +7677,17 @@ gapi.load('client', async () => {
7596
7677
  parent: "Test string",
7597
7678
  }, {
7598
7679
  clientId: "Test string",
7680
+ contexts: [
7681
+ {
7682
+ description: "Test string",
7683
+ parameters: [
7684
+ {
7685
+ parameterId: "Test string",
7686
+ value: 42,
7687
+ }
7688
+ ],
7689
+ }
7690
+ ],
7599
7691
  suggestionCount: 42,
7600
7692
  });
7601
7693
  /**