@maxim_mazurok/gapi.client.aiplatform-v1 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 +54 -42
  2. package/package.json +1 -1
  3. package/tests.ts +28 -10
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: 20230809
12
+ // Revision: 20230908
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -867,14 +867,11 @@ declare namespace gapi.client {
867
867
  GoogleCloudAiplatformV1Feature;
868
868
  /**
869
869
  * 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
870
- * `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.
870
+ * `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType .
871
871
  */
872
872
  featureId?:
873
873
  string;
874
- /**
875
- * Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format:
876
- * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`
877
- */
874
+ /** Required. The resource name of the EntityType to create a Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` */
878
875
  parent?:
879
876
  string;
880
877
  }
@@ -2373,15 +2370,9 @@ declare namespace gapi.client {
2373
2370
  /** Output only. Timestamp when this EntityType was most recently updated. */
2374
2371
  updateTime?:
2375
2372
  string;
2376
- /** Required. Immutable. Type of Feature value. */
2373
+ /** Immutable. Type of Feature value. */
2377
2374
  valueType?:
2378
2375
  string;
2379
- /**
2380
- * 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,
2381
- * numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.
2382
- */
2383
- versionLabels?:
2384
- { [P in string]: string };
2385
2376
  }
2386
2377
  interface GoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly {
2387
2378
  /** Output only. The stats and anomalies generated at specific timestamp. */
@@ -2975,6 +2966,9 @@ declare namespace gapi.client {
2975
2966
  /** Required. The display name of the Index. The name can be up to 128 characters long and can consist of any UTF-8 characters. */
2976
2967
  displayName?:
2977
2968
  string;
2969
+ /** 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. */
2970
+ encryptionSpec?:
2971
+ GoogleCloudAiplatformV1EncryptionSpec;
2978
2972
  /** Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. */
2979
2973
  etag?:
2980
2974
  string;
@@ -3023,8 +3017,8 @@ declare namespace gapi.client {
3023
3017
  featureVector?:
3024
3018
  number[];
3025
3019
  /**
3026
- * 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:
3027
- * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
3020
+ * 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
3021
+ * categorical tokens. See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
3028
3022
  */
3029
3023
  restricts?:
3030
3024
  GoogleCloudAiplatformV1IndexDatapointRestriction[];
@@ -3038,13 +3032,13 @@ declare namespace gapi.client {
3038
3032
  string;
3039
3033
  }
3040
3034
  interface GoogleCloudAiplatformV1IndexDatapointRestriction {
3041
- /** The attributes to allow in this namespace. eg: 'red' */
3035
+ /** The attributes to allow in this namespace. e.g.: 'red' */
3042
3036
  allowList?:
3043
3037
  string[];
3044
- /** The attributes to deny in this namespace. eg: 'blue' */
3038
+ /** The attributes to deny in this namespace. e.g.: 'blue' */
3045
3039
  denyList?:
3046
3040
  string[];
3047
- /** The namespace of this restriction. eg: color. */
3041
+ /** The namespace of this restriction. e.g.: color. */
3048
3042
  namespace?:
3049
3043
  string;
3050
3044
  }
@@ -3064,6 +3058,9 @@ declare namespace gapi.client {
3064
3058
  /** 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. */
3065
3059
  enablePrivateServiceConnect?:
3066
3060
  boolean;
3061
+ /** 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. */
3062
+ encryptionSpec?:
3063
+ GoogleCloudAiplatformV1EncryptionSpec;
3067
3064
  /** Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. */
3068
3065
  etag?:
3069
3066
  string;
@@ -5553,6 +5550,9 @@ declare namespace gapi.client {
5553
5550
  string;
5554
5551
  }
5555
5552
  interface GoogleCloudAiplatformV1Scheduling {
5553
+ /** 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. */
5554
+ disableRetries?:
5555
+ boolean;
5556
5556
  /** 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. */
5557
5557
  restartJobOnWorkerRestart?:
5558
5558
  boolean;
@@ -8130,6 +8130,21 @@ declare namespace gapi.client {
8130
8130
  */
8131
8131
  clientId?:
8132
8132
  string;
8133
+ /**
8134
+ * 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
8135
+ * 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
8136
+ * 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,
8137
+ * 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"
8138
+ * 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"
8139
+ * 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
8140
+ * 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
8141
+ * 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
8142
+ * 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
8143
+ * 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
8144
+ * 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.
8145
+ */
8146
+ contexts?:
8147
+ GoogleCloudAiplatformV1TrialContext[];
8133
8148
  /** Required. The number of suggestions requested. It must be positive. */
8134
8149
  suggestionCount?:
8135
8150
  number;
@@ -8555,6 +8570,18 @@ declare namespace gapi.client {
8555
8570
  webAccessUris?:
8556
8571
  { [P in string]: string };
8557
8572
  }
8573
+ interface GoogleCloudAiplatformV1TrialContext {
8574
+ /** A human-readable field which can store a description of this context. This will become part of the resulting Trial's description field. */
8575
+ description?:
8576
+ string;
8577
+ /**
8578
+ * 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,
8579
+ * 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,
8580
+ * we generate suggestions in the subspace defined by the parameters specified here. NOTE: a Context without any Parameters matches the entire feasible search space.
8581
+ */
8582
+ parameters?:
8583
+ GoogleCloudAiplatformV1TrialParameter[];
8584
+ }
8558
8585
  interface GoogleCloudAiplatformV1TrialParameter {
8559
8586
  /** Output only. The ID of the parameter. The parameter should be defined in StudySpec's Parameters. */
8560
8587
  parameterId?:
@@ -14016,7 +14043,7 @@ declare namespace gapi.client {
14016
14043
  string;
14017
14044
  /**
14018
14045
  * 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
14019
- * `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.
14046
+ * `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType .
14020
14047
  */
14021
14048
  featureId?:
14022
14049
  string;
@@ -14029,10 +14056,7 @@ declare namespace gapi.client {
14029
14056
  /** OAuth 2.0 token for the current user. */
14030
14057
  oauth_token?:
14031
14058
  string;
14032
- /**
14033
- * Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format:
14034
- * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`
14035
- */
14059
+ /** Required. The resource name of the EntityType to create a Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` */
14036
14060
  parent:
14037
14061
  string;
14038
14062
  /** Returns response with indentations and line breaks. */
@@ -14066,7 +14090,7 @@ declare namespace gapi.client {
14066
14090
  string;
14067
14091
  /**
14068
14092
  * 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
14069
- * `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.
14093
+ * `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType .
14070
14094
  */
14071
14095
  featureId?:
14072
14096
  string;
@@ -14079,10 +14103,7 @@ declare namespace gapi.client {
14079
14103
  /** OAuth 2.0 token for the current user. */
14080
14104
  oauth_token?:
14081
14105
  string;
14082
- /**
14083
- * Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format:
14084
- * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`
14085
- */
14106
+ /** Required. The resource name of the EntityType to create a Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` */
14086
14107
  parent:
14087
14108
  string;
14088
14109
  /** Returns response with indentations and line breaks. */
@@ -14119,10 +14140,7 @@ declare namespace gapi.client {
14119
14140
  /** 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. */
14120
14141
  key?:
14121
14142
  string;
14122
- /**
14123
- * Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
14124
- * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`
14125
- */
14143
+ /** Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` */
14126
14144
  name:
14127
14145
  string;
14128
14146
  /** OAuth 2.0 token for the current user. */
@@ -14161,10 +14179,7 @@ declare namespace gapi.client {
14161
14179
  /** 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. */
14162
14180
  key?:
14163
14181
  string;
14164
- /**
14165
- * Required. The name of the Feature resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
14166
- * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
14167
- */
14182
+ /** Required. The name of the Feature resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` */
14168
14183
  name:
14169
14184
  string;
14170
14185
  /** OAuth 2.0 token for the current user. */
@@ -14222,8 +14237,8 @@ declare namespace gapi.client {
14222
14237
  oauth_token?:
14223
14238
  string;
14224
14239
  /**
14225
- * 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` *
14226
- * `create_time` * `update_time`
14240
+ * 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
14241
+ * supported for FeatureRegistry Feature) * `create_time` * `update_time`
14227
14242
  */
14228
14243
  orderBy?:
14229
14244
  string;
@@ -14239,10 +14254,7 @@ declare namespace gapi.client {
14239
14254
  */
14240
14255
  pageToken?:
14241
14256
  string;
14242
- /**
14243
- * Required. The resource name of the Location to list Features. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
14244
- * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
14245
- */
14257
+ /** Required. The resource name of the Location to list Features. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` */
14246
14258
  parent:
14247
14259
  string;
14248
14260
  /** Returns response with indentations and line breaks. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.aiplatform-v1",
3
- "version": "0.0.20230809",
3
+ "version": "0.0.20230908",
4
4
  "description": "TypeScript typings for Vertex AI API v1",
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 */
@@ -346,6 +346,7 @@ gapi.load('client', async () => {
346
346
  "Test string"
347
347
  ],
348
348
  scheduling: {
349
+ disableRetries: true,
349
350
  restartJobOnWorkerRestart: true,
350
351
  timeout: "Test string",
351
352
  },
@@ -2418,9 +2419,6 @@ gapi.load('client', async () => {
2418
2419
  name: "Test string",
2419
2420
  updateTime: "Test string",
2420
2421
  valueType: "Test string",
2421
- versionLabels: {
2422
- A: "Test string"
2423
- },
2424
2422
  },
2425
2423
  featureId: "Test string",
2426
2424
  parent: "Test string",
@@ -2456,9 +2454,6 @@ gapi.load('client', async () => {
2456
2454
  name: "Test string",
2457
2455
  updateTime: "Test string",
2458
2456
  valueType: "Test string",
2459
- versionLabels: {
2460
- A: "Test string"
2461
- },
2462
2457
  });
2463
2458
  /** Deletes a single Feature. */
2464
2459
  await gapi.client.aiplatform.projects.locations.featurestores.entityTypes.features.delete({
@@ -2507,9 +2502,6 @@ gapi.load('client', async () => {
2507
2502
  name: "Test string",
2508
2503
  updateTime: "Test string",
2509
2504
  valueType: "Test string",
2510
- versionLabels: {
2511
- A: "Test string"
2512
- },
2513
2505
  });
2514
2506
  /**
2515
2507
  * 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
@@ -2750,6 +2742,7 @@ gapi.load('client', async () => {
2750
2742
  "Test string"
2751
2743
  ],
2752
2744
  scheduling: {
2745
+ disableRetries: true,
2753
2746
  restartJobOnWorkerRestart: true,
2754
2747
  timeout: "Test string",
2755
2748
  },
@@ -2961,6 +2954,9 @@ gapi.load('client', async () => {
2961
2954
  description: "Test string",
2962
2955
  displayName: "Test string",
2963
2956
  enablePrivateServiceConnect: true,
2957
+ encryptionSpec: {
2958
+ kmsKeyName: "Test string",
2959
+ },
2964
2960
  etag: "Test string",
2965
2961
  labels: {
2966
2962
  A: "Test string"
@@ -3182,6 +3178,9 @@ gapi.load('client', async () => {
3182
3178
  description: "Test string",
3183
3179
  displayName: "Test string",
3184
3180
  enablePrivateServiceConnect: true,
3181
+ encryptionSpec: {
3182
+ kmsKeyName: "Test string",
3183
+ },
3185
3184
  etag: "Test string",
3186
3185
  labels: {
3187
3186
  A: "Test string"
@@ -3263,6 +3262,9 @@ gapi.load('client', async () => {
3263
3262
  ],
3264
3263
  description: "Test string",
3265
3264
  displayName: "Test string",
3265
+ encryptionSpec: {
3266
+ kmsKeyName: "Test string",
3267
+ },
3266
3268
  etag: "Test string",
3267
3269
  indexStats: {
3268
3270
  shardsCount: 42,
@@ -3307,6 +3309,9 @@ gapi.load('client', async () => {
3307
3309
  ],
3308
3310
  description: "Test string",
3309
3311
  displayName: "Test string",
3312
+ encryptionSpec: {
3313
+ kmsKeyName: "Test string",
3314
+ },
3310
3315
  etag: "Test string",
3311
3316
  indexStats: {
3312
3317
  shardsCount: 42,
@@ -5037,6 +5042,7 @@ gapi.load('client', async () => {
5037
5042
  "Test string"
5038
5043
  ],
5039
5044
  scheduling: {
5045
+ disableRetries: true,
5040
5046
  restartJobOnWorkerRestart: true,
5041
5047
  timeout: "Test string",
5042
5048
  },
@@ -5112,6 +5118,7 @@ gapi.load('client', async () => {
5112
5118
  "Test string"
5113
5119
  ],
5114
5120
  scheduling: {
5121
+ disableRetries: true,
5115
5122
  restartJobOnWorkerRestart: true,
5116
5123
  timeout: "Test string",
5117
5124
  },
@@ -6535,6 +6542,17 @@ gapi.load('client', async () => {
6535
6542
  parent: "Test string",
6536
6543
  }, {
6537
6544
  clientId: "Test string",
6545
+ contexts: [
6546
+ {
6547
+ description: "Test string",
6548
+ parameters: [
6549
+ {
6550
+ parameterId: "Test string",
6551
+ value: 42,
6552
+ }
6553
+ ],
6554
+ }
6555
+ ],
6538
6556
  suggestionCount: 42,
6539
6557
  });
6540
6558
  /**