@maxim_mazurok/gapi.client.aiplatform-v1 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 +51 -36
  2. package/package.json +1 -1
  3. package/tests.ts +24 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://aiplatform.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230812
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,7 +2370,7 @@ 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
2376
  }
@@ -2969,6 +2966,9 @@ declare namespace gapi.client {
2969
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. */
2970
2967
  displayName?:
2971
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;
2972
2972
  /** Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. */
2973
2973
  etag?:
2974
2974
  string;
@@ -3017,8 +3017,8 @@ declare namespace gapi.client {
3017
3017
  featureVector?:
3018
3018
  number[];
3019
3019
  /**
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. See:
3021
- * 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
3022
3022
  */
3023
3023
  restricts?:
3024
3024
  GoogleCloudAiplatformV1IndexDatapointRestriction[];
@@ -3032,13 +3032,13 @@ declare namespace gapi.client {
3032
3032
  string;
3033
3033
  }
3034
3034
  interface GoogleCloudAiplatformV1IndexDatapointRestriction {
3035
- /** The attributes to allow in this namespace. eg: 'red' */
3035
+ /** The attributes to allow in this namespace. e.g.: 'red' */
3036
3036
  allowList?:
3037
3037
  string[];
3038
- /** The attributes to deny in this namespace. eg: 'blue' */
3038
+ /** The attributes to deny in this namespace. e.g.: 'blue' */
3039
3039
  denyList?:
3040
3040
  string[];
3041
- /** The namespace of this restriction. eg: color. */
3041
+ /** The namespace of this restriction. e.g.: color. */
3042
3042
  namespace?:
3043
3043
  string;
3044
3044
  }
@@ -3058,6 +3058,9 @@ declare namespace gapi.client {
3058
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. */
3059
3059
  enablePrivateServiceConnect?:
3060
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;
3061
3064
  /** Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. */
3062
3065
  etag?:
3063
3066
  string;
@@ -8127,6 +8130,21 @@ declare namespace gapi.client {
8127
8130
  */
8128
8131
  clientId?:
8129
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[];
8130
8148
  /** Required. The number of suggestions requested. It must be positive. */
8131
8149
  suggestionCount?:
8132
8150
  number;
@@ -8552,6 +8570,18 @@ declare namespace gapi.client {
8552
8570
  webAccessUris?:
8553
8571
  { [P in string]: string };
8554
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
+ }
8555
8585
  interface GoogleCloudAiplatformV1TrialParameter {
8556
8586
  /** Output only. The ID of the parameter. The parameter should be defined in StudySpec's Parameters. */
8557
8587
  parameterId?:
@@ -14013,7 +14043,7 @@ declare namespace gapi.client {
14013
14043
  string;
14014
14044
  /**
14015
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
14016
- * `[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 .
14017
14047
  */
14018
14048
  featureId?:
14019
14049
  string;
@@ -14026,10 +14056,7 @@ declare namespace gapi.client {
14026
14056
  /** OAuth 2.0 token for the current user. */
14027
14057
  oauth_token?:
14028
14058
  string;
14029
- /**
14030
- * Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format:
14031
- * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`
14032
- */
14059
+ /** Required. The resource name of the EntityType to create a Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` */
14033
14060
  parent:
14034
14061
  string;
14035
14062
  /** Returns response with indentations and line breaks. */
@@ -14063,7 +14090,7 @@ declare namespace gapi.client {
14063
14090
  string;
14064
14091
  /**
14065
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
14066
- * `[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 .
14067
14094
  */
14068
14095
  featureId?:
14069
14096
  string;
@@ -14076,10 +14103,7 @@ declare namespace gapi.client {
14076
14103
  /** OAuth 2.0 token for the current user. */
14077
14104
  oauth_token?:
14078
14105
  string;
14079
- /**
14080
- * Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format:
14081
- * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`
14082
- */
14106
+ /** Required. The resource name of the EntityType to create a Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` */
14083
14107
  parent:
14084
14108
  string;
14085
14109
  /** Returns response with indentations and line breaks. */
@@ -14116,10 +14140,7 @@ declare namespace gapi.client {
14116
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. */
14117
14141
  key?:
14118
14142
  string;
14119
- /**
14120
- * Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
14121
- * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`
14122
- */
14143
+ /** Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` */
14123
14144
  name:
14124
14145
  string;
14125
14146
  /** OAuth 2.0 token for the current user. */
@@ -14158,10 +14179,7 @@ declare namespace gapi.client {
14158
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. */
14159
14180
  key?:
14160
14181
  string;
14161
- /**
14162
- * Required. The name of the Feature resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
14163
- * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
14164
- */
14182
+ /** Required. The name of the Feature resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` */
14165
14183
  name:
14166
14184
  string;
14167
14185
  /** OAuth 2.0 token for the current user. */
@@ -14219,8 +14237,8 @@ declare namespace gapi.client {
14219
14237
  oauth_token?:
14220
14238
  string;
14221
14239
  /**
14222
- * 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` *
14223
- * `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`
14224
14242
  */
14225
14243
  orderBy?:
14226
14244
  string;
@@ -14236,10 +14254,7 @@ declare namespace gapi.client {
14236
14254
  */
14237
14255
  pageToken?:
14238
14256
  string;
14239
- /**
14240
- * Required. The resource name of the Location to list Features. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
14241
- * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
14242
- */
14257
+ /** Required. The resource name of the Location to list Features. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` */
14243
14258
  parent:
14244
14259
  string;
14245
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.20230812",
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: 20230812
6
+ // Revision: 20230908
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -2954,6 +2954,9 @@ gapi.load('client', async () => {
2954
2954
  description: "Test string",
2955
2955
  displayName: "Test string",
2956
2956
  enablePrivateServiceConnect: true,
2957
+ encryptionSpec: {
2958
+ kmsKeyName: "Test string",
2959
+ },
2957
2960
  etag: "Test string",
2958
2961
  labels: {
2959
2962
  A: "Test string"
@@ -3175,6 +3178,9 @@ gapi.load('client', async () => {
3175
3178
  description: "Test string",
3176
3179
  displayName: "Test string",
3177
3180
  enablePrivateServiceConnect: true,
3181
+ encryptionSpec: {
3182
+ kmsKeyName: "Test string",
3183
+ },
3178
3184
  etag: "Test string",
3179
3185
  labels: {
3180
3186
  A: "Test string"
@@ -3256,6 +3262,9 @@ gapi.load('client', async () => {
3256
3262
  ],
3257
3263
  description: "Test string",
3258
3264
  displayName: "Test string",
3265
+ encryptionSpec: {
3266
+ kmsKeyName: "Test string",
3267
+ },
3259
3268
  etag: "Test string",
3260
3269
  indexStats: {
3261
3270
  shardsCount: 42,
@@ -3300,6 +3309,9 @@ gapi.load('client', async () => {
3300
3309
  ],
3301
3310
  description: "Test string",
3302
3311
  displayName: "Test string",
3312
+ encryptionSpec: {
3313
+ kmsKeyName: "Test string",
3314
+ },
3303
3315
  etag: "Test string",
3304
3316
  indexStats: {
3305
3317
  shardsCount: 42,
@@ -6530,6 +6542,17 @@ gapi.load('client', async () => {
6530
6542
  parent: "Test string",
6531
6543
  }, {
6532
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
+ ],
6533
6556
  suggestionCount: 42,
6534
6557
  });
6535
6558
  /**