@maxim_mazurok/gapi.client.aiplatform-v1 0.0.20231012 → 0.0.20231023

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 +95 -25
  2. package/package.json +1 -1
  3. package/tests.ts +35 -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: 20231012
12
+ // Revision: 20231023
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -890,6 +890,11 @@ declare namespace gapi.client {
890
890
  */
891
891
  featureId?:
892
892
  string;
893
+ /**
894
+ * Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format for entity_type as parent:
895
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent:
896
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
897
+ */
893
898
  parent?:
894
899
  string;
895
900
  }
@@ -1072,6 +1077,12 @@ declare namespace gapi.client {
1072
1077
  */
1073
1078
  network?:
1074
1079
  string;
1080
+ /**
1081
+ * The ID of the location to store protected artifacts. e.g. us-central1. Populate only when the location is different than CustomJob location. List of supported locations:
1082
+ * https://cloud.google.com/vertex-ai/docs/general/locations
1083
+ */
1084
+ protectedArtifactLocationId?:
1085
+ string;
1075
1086
  /**
1076
1087
  * Optional. A list of names for the reserved ip ranges under the VPC network that can be used for this job. If set, we will deploy the job within the provided ip ranges. Otherwise,
1077
1088
  * the job will be deployed to any ip ranges under the provided VPC network. Example: ['vertex-ai-ip-range'].
@@ -2376,15 +2387,15 @@ declare namespace gapi.client {
2376
2387
  GoogleCloudAiplatformV1TimeSeriesDataPoint[];
2377
2388
  }
2378
2389
  interface GoogleCloudAiplatformV1Feature {
2379
- /** Output only. Timestamp when this EntityType was created. */
2390
+ /** Output only. Only applicable for Vertex AI Feature Store (Legacy). Timestamp when this EntityType was created. */
2380
2391
  createTime?:
2381
2392
  string;
2382
2393
  /** Description of the Feature. */
2383
2394
  description?:
2384
2395
  string;
2385
2396
  /**
2386
- * Optional. If not set, use the monitoring_config defined for the EntityType this Feature belongs to. Only Features with type (Feature.ValueType) BOOL, STRING, DOUBLE or INT64 can
2387
- * enable monitoring. If set to true, all types of data monitoring are disabled despite the config on EntityType.
2397
+ * Optional. Only applicable for Vertex AI Feature Store (Legacy). If not set, use the monitoring_config defined for the EntityType this Feature belongs to. Only Features with type
2398
+ * (Feature.ValueType) BOOL, STRING, DOUBLE or INT64 can enable monitoring. If set to true, all types of data monitoring are disabled despite the config on EntityType.
2388
2399
  */
2389
2400
  disableMonitoring?:
2390
2401
  boolean;
@@ -2398,20 +2409,20 @@ declare namespace gapi.client {
2398
2409
  */
2399
2410
  labels?:
2400
2411
  { [P in string]: string };
2401
- /** Output only. The list of historical stats and anomalies with specified objectives. */
2412
+ /** Output only. Only applicable for Vertex AI Feature Store (Legacy). The list of historical stats and anomalies with specified objectives. */
2402
2413
  monitoringStatsAnomalies?:
2403
2414
  GoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly[];
2404
2415
  /**
2405
- * Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` The last part feature is
2406
- * assigned by the client. The feature can be up to 64 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting with a
2407
- * letter. The value will be unique given an entity type.
2416
+ * Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
2417
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` The last part feature is assigned by the client. The feature can be up to 64 characters
2418
+ * long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given an entity type.
2408
2419
  */
2409
2420
  name?:
2410
2421
  string;
2411
- /** Output only. Timestamp when this EntityType was most recently updated. */
2422
+ /** Output only. Only applicable for Vertex AI Feature Store (Legacy). Timestamp when this EntityType was most recently updated. */
2412
2423
  updateTime?:
2413
2424
  string;
2414
- /** Immutable. Type of Feature value. */
2425
+ /** Immutable. Only applicable for Vertex AI Feature Store (Legacy). Type of Feature value. */
2415
2426
  valueType?:
2416
2427
  string;
2417
2428
  }
@@ -8193,6 +8204,9 @@ declare namespace gapi.client {
8193
8204
  /** Required. The set of parameters to tune. */
8194
8205
  parameters?:
8195
8206
  GoogleCloudAiplatformV1StudySpecParameterSpec[];
8207
+ /** Conditions for automated stopping of a Study. Enable automated stopping by configuring at least one condition. */
8208
+ studyStoppingConfig?:
8209
+ GoogleCloudAiplatformV1StudySpecStudyStoppingConfig;
8196
8210
  }
8197
8211
  interface GoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec {
8198
8212
  /**
@@ -8379,6 +8393,49 @@ declare namespace gapi.client {
8379
8393
  minValue?:
8380
8394
  string;
8381
8395
  }
8396
+ interface GoogleCloudAiplatformV1StudySpecStudyStoppingConfig {
8397
+ /** If the objective value has not improved for this much time, stop the study. WARNING: Effective only for single-objective studies. */
8398
+ maxDurationNoProgress?:
8399
+ string;
8400
+ /** If the specified time or duration has passed, stop the study. */
8401
+ maximumRuntimeConstraint?:
8402
+ GoogleCloudAiplatformV1StudyTimeConstraint;
8403
+ /** If there are more than this many trials, stop the study. */
8404
+ maxNumTrials?:
8405
+ number;
8406
+ /** If the objective value has not improved for this many consecutive trials, stop the study. WARNING: Effective only for single-objective studies. */
8407
+ maxNumTrialsNoProgress?:
8408
+ number;
8409
+ /**
8410
+ * Each "stopping rule" in this proto specifies an "if" condition. Before Vizier would generate a new suggestion, it first checks each specified stopping rule, from top to bottom in
8411
+ * this list. Note that the first few rules (e.g. minimum_runtime_constraint, min_num_trials) will prevent other stopping rules from being evaluated until they are met. For example,
8412
+ * setting `min_num_trials=5` and `always_stop_after= 1 hour` means that the Study will ONLY stop after it has 5 COMPLETED trials, even if more than an hour has passed since its
8413
+ * creation. It follows the first applicable rule (whose "if" condition is satisfied) to make a stopping decision. If none of the specified rules are applicable, then Vizier decides
8414
+ * that the study should not stop. If Vizier decides that the study should stop, the study enters STOPPING state (or STOPPING_ASAP if should_stop_asap = true). IMPORTANT: The automatic
8415
+ * study state transition happens precisely as described above; that is, deleting trials or updating StudyConfig NEVER automatically moves the study state back to ACTIVE. If you want
8416
+ * to _resume_ a Study that was stopped, 1) change the stopping conditions if necessary, 2) activate the study, and then 3) ask for suggestions. If the specified time or duration has
8417
+ * not passed, do not stop the study.
8418
+ */
8419
+ minimumRuntimeConstraint?:
8420
+ GoogleCloudAiplatformV1StudyTimeConstraint;
8421
+ /** If there are fewer than this many COMPLETED trials, do not stop the study. */
8422
+ minNumTrials?:
8423
+ number;
8424
+ /**
8425
+ * If true, a Study enters STOPPING_ASAP whenever it would normally enters STOPPING state. The bottom line is: set to true if you want to interrupt on-going evaluations of Trials as
8426
+ * soon as the study stopping condition is met. (Please see Study.State documentation for the source of truth).
8427
+ */
8428
+ shouldStopAsap?:
8429
+ boolean;
8430
+ }
8431
+ interface GoogleCloudAiplatformV1StudyTimeConstraint {
8432
+ /** Compares the wallclock time to this time. Must use UTC timezone. */
8433
+ endTime?:
8434
+ string;
8435
+ /** Counts the wallclock time passed since the creation of this Study. */
8436
+ maxDuration?:
8437
+ string;
8438
+ }
8382
8439
  interface GoogleCloudAiplatformV1SuggestTrialsMetadata {
8383
8440
  /**
8384
8441
  * The identifier of the client that is requesting the suggestion. If multiple SuggestTrialsRequests have the same `client_id`, the service will return the identical suggested Trial if
@@ -14582,6 +14639,11 @@ declare namespace gapi.client {
14582
14639
  /** OAuth 2.0 token for the current user. */
14583
14640
  oauth_token?:
14584
14641
  string;
14642
+ /**
14643
+ * Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format for entity_type as parent:
14644
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent:
14645
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
14646
+ */
14585
14647
  parent:
14586
14648
  string;
14587
14649
  /** Returns response with indentations and line breaks. */
@@ -14628,6 +14690,11 @@ declare namespace gapi.client {
14628
14690
  /** OAuth 2.0 token for the current user. */
14629
14691
  oauth_token?:
14630
14692
  string;
14693
+ /**
14694
+ * Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format for entity_type as parent:
14695
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent:
14696
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
14697
+ */
14631
14698
  parent:
14632
14699
  string;
14633
14700
  /** Returns response with indentations and line breaks. */
@@ -14707,8 +14774,8 @@ declare namespace gapi.client {
14707
14774
  key?:
14708
14775
  string;
14709
14776
  /**
14710
- * Required. The name of the Feature resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
14711
- * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
14777
+ * Required. The name of the Feature resource. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
14778
+ * Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`
14712
14779
  */
14713
14780
  name:
14714
14781
  string;
@@ -14758,8 +14825,8 @@ declare namespace gapi.client {
14758
14825
  key?:
14759
14826
  string;
14760
14827
  /**
14761
- * If set, return the most recent ListFeaturesRequest.latest_stats_count of stats for each Feature in response. Valid value is [0, 10]. If number of stats exists <
14762
- * ListFeaturesRequest.latest_stats_count, return all existing stats.
14828
+ * Only applicable for Vertex AI Feature Store (Legacy). If set, return the most recent ListFeaturesRequest.latest_stats_count of stats for each Feature in response. Valid value is
14829
+ * [0, 10]. If number of stats exists < ListFeaturesRequest.latest_stats_count, return all existing stats.
14763
14830
  */
14764
14831
  latestStatsCount?:
14765
14832
  number;
@@ -14779,13 +14846,14 @@ declare namespace gapi.client {
14779
14846
  pageSize?:
14780
14847
  number;
14781
14848
  /**
14782
- * A page token, received from a previous FeaturestoreService.ListFeatures call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
14783
- * FeaturestoreService.ListFeatures must match the call that provided the page token.
14849
+ * A page token, received from a previous FeaturestoreService.ListFeatures call or FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent page. When
14850
+ * paginating, all other parameters provided to FeaturestoreService.ListFeatures or or FeatureRegistryService.ListFeatures must match the call that provided the page token.
14784
14851
  */
14785
14852
  pageToken?:
14786
14853
  string;
14787
14854
  /**
14788
- * Required. The resource name of the Location to list Features. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
14855
+ * Required. The resource name of the Location to list Features. Format for entity_type as parent:
14856
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent:
14789
14857
  * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
14790
14858
  */
14791
14859
  parent:
@@ -14827,9 +14895,10 @@ declare namespace gapi.client {
14827
14895
  key?:
14828
14896
  string;
14829
14897
  /**
14830
- * Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` The last part feature
14831
- * is assigned by the client. The feature can be up to 64 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting with
14832
- * a letter. The value will be unique given an entity type.
14898
+ * Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
14899
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` The last part feature is assigned by the client. The feature can be up to 64
14900
+ * characters long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given an entity
14901
+ * type.
14833
14902
  */
14834
14903
  name:
14835
14904
  string;
@@ -14845,7 +14914,7 @@ declare namespace gapi.client {
14845
14914
  /**
14846
14915
  * Field mask is used to specify the fields to be overwritten in the Features resource by the update. The fields specified in the update_mask are relative to the resource, not the
14847
14916
  * full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten.
14848
- * Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `disable_monitoring`
14917
+ * Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for FeatureRegistry Feature)
14849
14918
  */
14850
14919
  updateMask?:
14851
14920
  string;
@@ -14879,9 +14948,10 @@ declare namespace gapi.client {
14879
14948
  key?:
14880
14949
  string;
14881
14950
  /**
14882
- * Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` The last part feature
14883
- * is assigned by the client. The feature can be up to 64 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting with
14884
- * a letter. The value will be unique given an entity type.
14951
+ * Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
14952
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` The last part feature is assigned by the client. The feature can be up to 64
14953
+ * characters long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given an entity
14954
+ * type.
14885
14955
  */
14886
14956
  name:
14887
14957
  string;
@@ -14897,7 +14967,7 @@ declare namespace gapi.client {
14897
14967
  /**
14898
14968
  * Field mask is used to specify the fields to be overwritten in the Features resource by the update. The fields specified in the update_mask are relative to the resource, not the
14899
14969
  * full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten.
14900
- * Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `disable_monitoring`
14970
+ * Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for FeatureRegistry Feature)
14901
14971
  */
14902
14972
  updateMask?:
14903
14973
  string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.aiplatform-v1",
3
- "version": "0.0.20231012",
3
+ "version": "0.0.20231023",
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: 20231012
6
+ // Revision: 20231023
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -343,6 +343,7 @@ gapi.load('client', async () => {
343
343
  experiment: "Test string",
344
344
  experimentRun: "Test string",
345
345
  network: "Test string",
346
+ protectedArtifactLocationId: "Test string",
346
347
  reservedIpRanges: [
347
348
  "Test string"
348
349
  ],
@@ -2766,6 +2767,21 @@ gapi.load('client', async () => {
2766
2767
  scaleType: "Test string",
2767
2768
  }
2768
2769
  ],
2770
+ studyStoppingConfig: {
2771
+ maxDurationNoProgress: "Test string",
2772
+ maximumRuntimeConstraint: {
2773
+ endTime: "Test string",
2774
+ maxDuration: "Test string",
2775
+ },
2776
+ maxNumTrials: 42,
2777
+ maxNumTrialsNoProgress: 42,
2778
+ minimumRuntimeConstraint: {
2779
+ endTime: "Test string",
2780
+ maxDuration: "Test string",
2781
+ },
2782
+ minNumTrials: 42,
2783
+ shouldStopAsap: true,
2784
+ },
2769
2785
  },
2770
2786
  trialJobSpec: {
2771
2787
  baseOutputDirectory: {
@@ -2776,6 +2792,7 @@ gapi.load('client', async () => {
2776
2792
  experiment: "Test string",
2777
2793
  experimentRun: "Test string",
2778
2794
  network: "Test string",
2795
+ protectedArtifactLocationId: "Test string",
2779
2796
  reservedIpRanges: [
2780
2797
  "Test string"
2781
2798
  ],
@@ -5087,6 +5104,7 @@ gapi.load('client', async () => {
5087
5104
  experiment: "Test string",
5088
5105
  experimentRun: "Test string",
5089
5106
  network: "Test string",
5107
+ protectedArtifactLocationId: "Test string",
5090
5108
  reservedIpRanges: [
5091
5109
  "Test string"
5092
5110
  ],
@@ -5164,6 +5182,7 @@ gapi.load('client', async () => {
5164
5182
  experiment: "Test string",
5165
5183
  experimentRun: "Test string",
5166
5184
  network: "Test string",
5185
+ protectedArtifactLocationId: "Test string",
5167
5186
  reservedIpRanges: [
5168
5187
  "Test string"
5169
5188
  ],
@@ -6562,6 +6581,21 @@ gapi.load('client', async () => {
6562
6581
  scaleType: "Test string",
6563
6582
  }
6564
6583
  ],
6584
+ studyStoppingConfig: {
6585
+ maxDurationNoProgress: "Test string",
6586
+ maximumRuntimeConstraint: {
6587
+ endTime: "Test string",
6588
+ maxDuration: "Test string",
6589
+ },
6590
+ maxNumTrials: 42,
6591
+ maxNumTrialsNoProgress: 42,
6592
+ minimumRuntimeConstraint: {
6593
+ endTime: "Test string",
6594
+ maxDuration: "Test string",
6595
+ },
6596
+ minNumTrials: 42,
6597
+ shouldStopAsap: true,
6598
+ },
6565
6599
  },
6566
6600
  });
6567
6601
  /** Deletes a Study. */