@maxim_mazurok/gapi.client.aiplatform-v1beta1 0.0.20230812 → 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 +342 -40
  2. package/package.json +1 -1
  3. package/tests.ts +115 -6
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: 20230812
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,7 +2507,7 @@ 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
2513
  }
@@ -3121,6 +3133,9 @@ declare namespace gapi.client {
3121
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. */
3122
3134
  displayName?:
3123
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;
3124
3139
  /** Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. */
3125
3140
  etag?:
3126
3141
  string;
@@ -3169,8 +3184,8 @@ declare namespace gapi.client {
3169
3184
  featureVector?:
3170
3185
  number[];
3171
3186
  /**
3172
- * 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:
3173
- * 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
3174
3189
  */
3175
3190
  restricts?:
3176
3191
  GoogleCloudAiplatformV1beta1IndexDatapointRestriction[];
@@ -3184,13 +3199,13 @@ declare namespace gapi.client {
3184
3199
  string;
3185
3200
  }
3186
3201
  interface GoogleCloudAiplatformV1beta1IndexDatapointRestriction {
3187
- /** The attributes to allow in this namespace. eg: 'red' */
3202
+ /** The attributes to allow in this namespace. e.g.: 'red' */
3188
3203
  allowList?:
3189
3204
  string[];
3190
- /** The attributes to deny in this namespace. eg: 'blue' */
3205
+ /** The attributes to deny in this namespace. e.g.: 'blue' */
3191
3206
  denyList?:
3192
3207
  string[];
3193
- /** The namespace of this restriction. eg: color. */
3208
+ /** The namespace of this restriction. e.g.: color. */
3194
3209
  namespace?:
3195
3210
  string;
3196
3211
  }
@@ -3210,6 +3225,9 @@ declare namespace gapi.client {
3210
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. */
3211
3226
  enablePrivateServiceConnect?:
3212
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;
3213
3231
  /** Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. */
3214
3232
  etag?:
3215
3233
  string;
@@ -4968,6 +4986,9 @@ declare namespace gapi.client {
4968
4986
  /** Output only. Timestamp when this NotebookRuntime was most recently updated. */
4969
4987
  updateTime?:
4970
4988
  string;
4989
+ /** Output only. The VM os image version of NotebookRuntime. */
4990
+ version?:
4991
+ string;
4971
4992
  }
4972
4993
  interface GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate {
4973
4994
  /** Output only. Timestamp when this NotebookRuntimeTemplate was created. */
@@ -5693,11 +5714,11 @@ declare namespace gapi.client {
5693
5714
  }
5694
5715
  interface GoogleCloudAiplatformV1beta1RaySpec {
5695
5716
  /**
5696
- * 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
5697
- * 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.
5698
5719
  */
5699
- headMachineSpec?:
5700
- GoogleCloudAiplatformV1beta1MachineSpec;
5720
+ headNodeResourcePoolId?:
5721
+ string;
5701
5722
  /**
5702
5723
  * Optional. Default image for user to choose a preferred ML framework(e.g. tensorflow or Pytorch) by choosing from Vertex prebuild
5703
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
@@ -5705,6 +5726,12 @@ declare namespace gapi.client {
5705
5726
  */
5706
5727
  imageUri?:
5707
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 };
5708
5735
  }
5709
5736
  interface GoogleCloudAiplatformV1beta1ReadFeatureValuesRequest {
5710
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`. */
@@ -5870,6 +5897,12 @@ declare namespace gapi.client {
5870
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" } */
5871
5898
  accessUris?:
5872
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;
5873
5906
  }
5874
5907
  interface GoogleCloudAiplatformV1beta1ResourceRuntimeSpec {
5875
5908
  /** Optional. Ray cluster configuration. Required when creating a dedicated RayCluster on the PersistentResource. */
@@ -8682,6 +8715,21 @@ declare namespace gapi.client {
8682
8715
  */
8683
8716
  clientId?:
8684
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[];
8685
8733
  /** Required. The number of suggestions requested. It must be positive. */
8686
8734
  suggestionCount?:
8687
8735
  number;
@@ -9107,6 +9155,18 @@ declare namespace gapi.client {
9107
9155
  webAccessUris?:
9108
9156
  { [P in string]: string };
9109
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
+ }
9110
9170
  interface GoogleCloudAiplatformV1beta1TrialParameter {
9111
9171
  /** Output only. The ID of the parameter. The parameter should be defined in StudySpec's Parameters. */
9112
9172
  parameterId?:
@@ -9203,6 +9263,11 @@ declare namespace gapi.client {
9203
9263
  genericMetadata?:
9204
9264
  GoogleCloudAiplatformV1beta1GenericOperationMetadata;
9205
9265
  }
9266
+ interface GoogleCloudAiplatformV1beta1UpdatePersistentResourceOperationMetadata {
9267
+ /** Operation metadata for PersistentResource. */
9268
+ genericMetadata?:
9269
+ GoogleCloudAiplatformV1beta1GenericOperationMetadata;
9270
+ }
9206
9271
  interface GoogleCloudAiplatformV1beta1UpdateSpecialistPoolOperationMetadata {
9207
9272
  /** The operation generic information. */
9208
9273
  genericMetadata?:
@@ -16739,7 +16804,7 @@ declare namespace gapi.client {
16739
16804
  string;
16740
16805
  /**
16741
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
16742
- * `[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 .
16743
16808
  */
16744
16809
  featureId?:
16745
16810
  string;
@@ -16752,10 +16817,7 @@ declare namespace gapi.client {
16752
16817
  /** OAuth 2.0 token for the current user. */
16753
16818
  oauth_token?:
16754
16819
  string;
16755
- /**
16756
- * Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format:
16757
- * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`
16758
- */
16820
+ /** Required. The resource name of the EntityType to create a Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` */
16759
16821
  parent:
16760
16822
  string;
16761
16823
  /** Returns response with indentations and line breaks. */
@@ -16789,7 +16851,7 @@ declare namespace gapi.client {
16789
16851
  string;
16790
16852
  /**
16791
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
16792
- * `[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 .
16793
16855
  */
16794
16856
  featureId?:
16795
16857
  string;
@@ -16802,10 +16864,7 @@ declare namespace gapi.client {
16802
16864
  /** OAuth 2.0 token for the current user. */
16803
16865
  oauth_token?:
16804
16866
  string;
16805
- /**
16806
- * Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format:
16807
- * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`
16808
- */
16867
+ /** Required. The resource name of the EntityType to create a Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` */
16809
16868
  parent:
16810
16869
  string;
16811
16870
  /** Returns response with indentations and line breaks. */
@@ -16842,10 +16901,7 @@ declare namespace gapi.client {
16842
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. */
16843
16902
  key?:
16844
16903
  string;
16845
- /**
16846
- * Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
16847
- * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`
16848
- */
16904
+ /** Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` */
16849
16905
  name:
16850
16906
  string;
16851
16907
  /** OAuth 2.0 token for the current user. */
@@ -16884,10 +16940,7 @@ declare namespace gapi.client {
16884
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. */
16885
16941
  key?:
16886
16942
  string;
16887
- /**
16888
- * Required. The name of the Feature resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
16889
- * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
16890
- */
16943
+ /** Required. The name of the Feature resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` */
16891
16944
  name:
16892
16945
  string;
16893
16946
  /** OAuth 2.0 token for the current user. */
@@ -16945,8 +16998,8 @@ declare namespace gapi.client {
16945
16998
  oauth_token?:
16946
16999
  string;
16947
17000
  /**
16948
- * 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` *
16949
- * `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`
16950
17003
  */
16951
17004
  orderBy?:
16952
17005
  string;
@@ -16962,10 +17015,7 @@ declare namespace gapi.client {
16962
17015
  */
16963
17016
  pageToken?:
16964
17017
  string;
16965
- /**
16966
- * Required. The resource name of the Location to list Features. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
16967
- * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
16968
- */
17018
+ /** Required. The resource name of the Location to list Features. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` */
16969
17019
  parent:
16970
17020
  string;
16971
17021
  /** Returns response with indentations and line breaks. */
@@ -27061,6 +27111,169 @@ declare namespace gapi.client {
27061
27111
  nasTrialDetails:
27062
27112
  NasTrialDetailsResource;
27063
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
+ }
27064
27277
  interface NotebookRuntimesResource {
27065
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. */
27066
27279
  assign(request: {
@@ -28590,6 +28803,93 @@ declare namespace gapi.client {
28590
28803
  uploadType?:
28591
28804
  string;
28592
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>;
28593
28893
  operations:
28594
28894
  OperationsResource;
28595
28895
  }
@@ -35852,6 +36152,8 @@ declare namespace gapi.client {
35852
36152
  ModelsResource;
35853
36153
  nasJobs:
35854
36154
  NasJobsResource;
36155
+ notebookExecutionJobs:
36156
+ NotebookExecutionJobsResource;
35855
36157
  notebookRuntimes:
35856
36158
  NotebookRuntimesResource;
35857
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.20230812",
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: 20230812
6
+ // Revision: 20230908
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -3575,6 +3575,9 @@ gapi.load('client', async () => {
3575
3575
  description: "Test string",
3576
3576
  displayName: "Test string",
3577
3577
  enablePrivateServiceConnect: true,
3578
+ encryptionSpec: {
3579
+ kmsKeyName: "Test string",
3580
+ },
3578
3581
  etag: "Test string",
3579
3582
  labels: {
3580
3583
  A: "Test string"
@@ -3796,6 +3799,9 @@ gapi.load('client', async () => {
3796
3799
  description: "Test string",
3797
3800
  displayName: "Test string",
3798
3801
  enablePrivateServiceConnect: true,
3802
+ encryptionSpec: {
3803
+ kmsKeyName: "Test string",
3804
+ },
3799
3805
  etag: "Test string",
3800
3806
  labels: {
3801
3807
  A: "Test string"
@@ -3877,6 +3883,9 @@ gapi.load('client', async () => {
3877
3883
  ],
3878
3884
  description: "Test string",
3879
3885
  displayName: "Test string",
3886
+ encryptionSpec: {
3887
+ kmsKeyName: "Test string",
3888
+ },
3880
3889
  etag: "Test string",
3881
3890
  indexStats: {
3882
3891
  shardsCount: 42,
@@ -3921,6 +3930,9 @@ gapi.load('client', async () => {
3921
3930
  ],
3922
3931
  description: "Test string",
3923
3932
  displayName: "Test string",
3933
+ encryptionSpec: {
3934
+ kmsKeyName: "Test string",
3935
+ },
3924
3936
  etag: "Test string",
3925
3937
  indexStats: {
3926
3938
  shardsCount: 42,
@@ -5937,6 +5949,21 @@ gapi.load('client', async () => {
5937
5949
  pageToken: "Test string",
5938
5950
  parent: "Test string",
5939
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
+ });
5940
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. */
5941
5968
  await gapi.client.aiplatform.projects.locations.notebookRuntimes.assign({
5942
5969
  parent: "Test string",
@@ -5956,6 +5983,7 @@ gapi.load('client', async () => {
5956
5983
  runtimeUser: "Test string",
5957
5984
  serviceAccount: "Test string",
5958
5985
  updateTime: "Test string",
5986
+ version: "Test string",
5959
5987
  },
5960
5988
  notebookRuntimeId: "Test string",
5961
5989
  notebookRuntimeTemplate: "Test string",
@@ -6177,15 +6205,15 @@ gapi.load('client', async () => {
6177
6205
  accessUris: {
6178
6206
  A: "Test string"
6179
6207
  },
6208
+ notebookRuntimeTemplate: "Test string",
6180
6209
  },
6181
6210
  resourceRuntimeSpec: {
6182
6211
  raySpec: {
6183
- headMachineSpec: {
6184
- acceleratorCount: 42,
6185
- acceleratorType: "Test string",
6186
- machineType: "Test string",
6187
- },
6212
+ headNodeResourcePoolId: "Test string",
6188
6213
  imageUri: "Test string",
6214
+ resourcePoolImages: {
6215
+ A: "Test string"
6216
+ },
6189
6217
  },
6190
6218
  serviceAccountSpec: {
6191
6219
  enableCustomServiceAccount: true,
@@ -6210,6 +6238,76 @@ gapi.load('client', async () => {
6210
6238
  pageToken: "Test string",
6211
6239
  parent: "Test string",
6212
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
+ });
6213
6311
  /**
6214
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
6215
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
@@ -7579,6 +7677,17 @@ gapi.load('client', async () => {
7579
7677
  parent: "Test string",
7580
7678
  }, {
7581
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
+ ],
7582
7691
  suggestionCount: 42,
7583
7692
  });
7584
7693
  /**