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

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 +3060 -480
  2. package/package.json +1 -1
  3. package/tests.ts +509 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.aiplatform-v1beta1",
3
- "version": "0.0.20230908",
3
+ "version": "0.0.20230929",
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: 20230908
6
+ // Revision: 20230929
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -760,6 +760,11 @@ gapi.load('client', async () => {
760
760
  }, {
761
761
  exportConfig: {
762
762
  annotationsFilter: "Test string",
763
+ filterSplit: {
764
+ testFilter: "Test string",
765
+ trainingFilter: "Test string",
766
+ validationFilter: "Test string",
767
+ },
763
768
  fractionSplit: {
764
769
  testFraction: 42,
765
770
  trainingFraction: 42,
@@ -992,6 +997,38 @@ gapi.load('client', async () => {
992
997
  name: "Test string",
993
998
  timeout: "Test string",
994
999
  });
1000
+ /** Create a version from a Dataset. */
1001
+ await gapi.client.aiplatform.projects.locations.datasets.datasetVersions.create({
1002
+ parent: "Test string",
1003
+ }, {
1004
+ bigQueryDatasetName: "Test string",
1005
+ createTime: "Test string",
1006
+ etag: "Test string",
1007
+ name: "Test string",
1008
+ updateTime: "Test string",
1009
+ });
1010
+ /** Deletes a Dataset version. */
1011
+ await gapi.client.aiplatform.projects.locations.datasets.datasetVersions.delete({
1012
+ name: "Test string",
1013
+ });
1014
+ /** Gets a Dataset version. */
1015
+ await gapi.client.aiplatform.projects.locations.datasets.datasetVersions.get({
1016
+ name: "Test string",
1017
+ readMask: "Test string",
1018
+ });
1019
+ /** Lists DatasetVersions in a Dataset. */
1020
+ await gapi.client.aiplatform.projects.locations.datasets.datasetVersions.list({
1021
+ filter: "Test string",
1022
+ orderBy: "Test string",
1023
+ pageSize: 42,
1024
+ pageToken: "Test string",
1025
+ parent: "Test string",
1026
+ readMask: "Test string",
1027
+ });
1028
+ /** Restores a dataset version. */
1029
+ await gapi.client.aiplatform.projects.locations.datasets.datasetVersions.restore({
1030
+ name: "Test string",
1031
+ });
995
1032
  /**
996
1033
  * 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
997
1034
  * 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
@@ -2310,6 +2347,203 @@ gapi.load('client', async () => {
2310
2347
  name: "Test string",
2311
2348
  timeout: "Test string",
2312
2349
  });
2350
+ /** Creates a new FeatureGroup in a given project and location. */
2351
+ await gapi.client.aiplatform.projects.locations.featureGroups.create({
2352
+ featureGroupId: "Test string",
2353
+ parent: "Test string",
2354
+ }, {
2355
+ bigQuery: {
2356
+ bigQuerySource: {
2357
+ inputUri: "Test string",
2358
+ },
2359
+ entityIdColumns: [
2360
+ "Test string"
2361
+ ],
2362
+ },
2363
+ createTime: "Test string",
2364
+ description: "Test string",
2365
+ etag: "Test string",
2366
+ labels: {
2367
+ A: "Test string"
2368
+ },
2369
+ name: "Test string",
2370
+ updateTime: "Test string",
2371
+ });
2372
+ /** Deletes a single FeatureGroup. */
2373
+ await gapi.client.aiplatform.projects.locations.featureGroups.delete({
2374
+ force: true,
2375
+ name: "Test string",
2376
+ });
2377
+ /** Gets details of a single FeatureGroup. */
2378
+ await gapi.client.aiplatform.projects.locations.featureGroups.get({
2379
+ name: "Test string",
2380
+ });
2381
+ /** Lists FeatureGroups in a given project and location. */
2382
+ await gapi.client.aiplatform.projects.locations.featureGroups.list({
2383
+ filter: "Test string",
2384
+ orderBy: "Test string",
2385
+ pageSize: 42,
2386
+ pageToken: "Test string",
2387
+ parent: "Test string",
2388
+ });
2389
+ /** Updates the parameters of a single FeatureGroup. */
2390
+ await gapi.client.aiplatform.projects.locations.featureGroups.patch({
2391
+ name: "Test string",
2392
+ updateMask: "Test string",
2393
+ }, {
2394
+ bigQuery: {
2395
+ bigQuerySource: {
2396
+ inputUri: "Test string",
2397
+ },
2398
+ entityIdColumns: [
2399
+ "Test string"
2400
+ ],
2401
+ },
2402
+ createTime: "Test string",
2403
+ description: "Test string",
2404
+ etag: "Test string",
2405
+ labels: {
2406
+ A: "Test string"
2407
+ },
2408
+ name: "Test string",
2409
+ updateTime: "Test string",
2410
+ });
2411
+ /** Creates a new Feature in a given FeatureGroup. */
2412
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.create({
2413
+ featureId: "Test string",
2414
+ parent: "Test string",
2415
+ }, {
2416
+ createTime: "Test string",
2417
+ description: "Test string",
2418
+ disableMonitoring: true,
2419
+ etag: "Test string",
2420
+ labels: {
2421
+ A: "Test string"
2422
+ },
2423
+ monitoringConfig: {
2424
+ categoricalThresholdConfig: {
2425
+ value: 42,
2426
+ },
2427
+ importFeaturesAnalysis: {
2428
+ anomalyDetectionBaseline: "Test string",
2429
+ state: "Test string",
2430
+ },
2431
+ numericalThresholdConfig: {
2432
+ value: 42,
2433
+ },
2434
+ snapshotAnalysis: {
2435
+ disabled: true,
2436
+ monitoringInterval: "Test string",
2437
+ monitoringIntervalDays: 42,
2438
+ stalenessDays: 42,
2439
+ },
2440
+ },
2441
+ monitoringStats: [
2442
+ {
2443
+ anomalyDetectionThreshold: 42,
2444
+ anomalyUri: "Test string",
2445
+ distributionDeviation: 42,
2446
+ endTime: "Test string",
2447
+ score: 42,
2448
+ startTime: "Test string",
2449
+ statsUri: "Test string",
2450
+ }
2451
+ ],
2452
+ monitoringStatsAnomalies: [
2453
+ {
2454
+ featureStatsAnomaly: {
2455
+ anomalyDetectionThreshold: 42,
2456
+ anomalyUri: "Test string",
2457
+ distributionDeviation: 42,
2458
+ endTime: "Test string",
2459
+ score: 42,
2460
+ startTime: "Test string",
2461
+ statsUri: "Test string",
2462
+ },
2463
+ objective: "Test string",
2464
+ }
2465
+ ],
2466
+ name: "Test string",
2467
+ updateTime: "Test string",
2468
+ valueType: "Test string",
2469
+ });
2470
+ /** Deletes a single Feature. */
2471
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.delete({
2472
+ name: "Test string",
2473
+ });
2474
+ /** Gets details of a single Feature. */
2475
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.get({
2476
+ name: "Test string",
2477
+ });
2478
+ /** Lists Features in a given FeatureGroup. */
2479
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.list({
2480
+ filter: "Test string",
2481
+ latestStatsCount: 42,
2482
+ orderBy: "Test string",
2483
+ pageSize: 42,
2484
+ pageToken: "Test string",
2485
+ parent: "Test string",
2486
+ readMask: "Test string",
2487
+ });
2488
+ /** Updates the parameters of a single Feature. */
2489
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.patch({
2490
+ name: "Test string",
2491
+ updateMask: "Test string",
2492
+ }, {
2493
+ createTime: "Test string",
2494
+ description: "Test string",
2495
+ disableMonitoring: true,
2496
+ etag: "Test string",
2497
+ labels: {
2498
+ A: "Test string"
2499
+ },
2500
+ monitoringConfig: {
2501
+ categoricalThresholdConfig: {
2502
+ value: 42,
2503
+ },
2504
+ importFeaturesAnalysis: {
2505
+ anomalyDetectionBaseline: "Test string",
2506
+ state: "Test string",
2507
+ },
2508
+ numericalThresholdConfig: {
2509
+ value: 42,
2510
+ },
2511
+ snapshotAnalysis: {
2512
+ disabled: true,
2513
+ monitoringInterval: "Test string",
2514
+ monitoringIntervalDays: 42,
2515
+ stalenessDays: 42,
2516
+ },
2517
+ },
2518
+ monitoringStats: [
2519
+ {
2520
+ anomalyDetectionThreshold: 42,
2521
+ anomalyUri: "Test string",
2522
+ distributionDeviation: 42,
2523
+ endTime: "Test string",
2524
+ score: 42,
2525
+ startTime: "Test string",
2526
+ statsUri: "Test string",
2527
+ }
2528
+ ],
2529
+ monitoringStatsAnomalies: [
2530
+ {
2531
+ featureStatsAnomaly: {
2532
+ anomalyDetectionThreshold: 42,
2533
+ anomalyUri: "Test string",
2534
+ distributionDeviation: 42,
2535
+ endTime: "Test string",
2536
+ score: 42,
2537
+ startTime: "Test string",
2538
+ statsUri: "Test string",
2539
+ },
2540
+ objective: "Test string",
2541
+ }
2542
+ ],
2543
+ name: "Test string",
2544
+ updateTime: "Test string",
2545
+ valueType: "Test string",
2546
+ });
2313
2547
  /**
2314
2548
  * Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support
2315
2549
  * this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -2366,6 +2600,241 @@ gapi.load('client', async () => {
2366
2600
  name: "Test string",
2367
2601
  timeout: "Test string",
2368
2602
  });
2603
+ /** Creates a new FeatureOnlineStore in a given project and location. */
2604
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.create({
2605
+ featureOnlineStoreId: "Test string",
2606
+ parent: "Test string",
2607
+ }, {
2608
+ bigtable: {
2609
+ autoScaling: {
2610
+ cpuUtilizationTarget: 42,
2611
+ maxNodeCount: 42,
2612
+ minNodeCount: 42,
2613
+ },
2614
+ },
2615
+ createTime: "Test string",
2616
+ dedicatedServingEndpoint: {
2617
+ publicEndpointDomainName: "Test string",
2618
+ },
2619
+ embeddingManagement: {
2620
+ enabled: true,
2621
+ },
2622
+ etag: "Test string",
2623
+ labels: {
2624
+ A: "Test string"
2625
+ },
2626
+ name: "Test string",
2627
+ state: "Test string",
2628
+ updateTime: "Test string",
2629
+ });
2630
+ /** Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews. */
2631
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.delete({
2632
+ force: true,
2633
+ name: "Test string",
2634
+ });
2635
+ /** Gets details of a single FeatureOnlineStore. */
2636
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.get({
2637
+ name: "Test string",
2638
+ });
2639
+ /** Lists FeatureOnlineStores in a given project and location. */
2640
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.list({
2641
+ filter: "Test string",
2642
+ orderBy: "Test string",
2643
+ pageSize: 42,
2644
+ pageToken: "Test string",
2645
+ parent: "Test string",
2646
+ });
2647
+ /** Updates the parameters of a single FeatureOnlineStore. */
2648
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.patch({
2649
+ name: "Test string",
2650
+ updateMask: "Test string",
2651
+ }, {
2652
+ bigtable: {
2653
+ autoScaling: {
2654
+ cpuUtilizationTarget: 42,
2655
+ maxNodeCount: 42,
2656
+ minNodeCount: 42,
2657
+ },
2658
+ },
2659
+ createTime: "Test string",
2660
+ dedicatedServingEndpoint: {
2661
+ publicEndpointDomainName: "Test string",
2662
+ },
2663
+ embeddingManagement: {
2664
+ enabled: true,
2665
+ },
2666
+ etag: "Test string",
2667
+ labels: {
2668
+ A: "Test string"
2669
+ },
2670
+ name: "Test string",
2671
+ state: "Test string",
2672
+ updateTime: "Test string",
2673
+ });
2674
+ /** Creates a new FeatureView in a given FeatureOnlineStore. */
2675
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.create({
2676
+ featureViewId: "Test string",
2677
+ parent: "Test string",
2678
+ runSyncImmediately: true,
2679
+ }, {
2680
+ bigQuerySource: {
2681
+ entityIdColumns: [
2682
+ "Test string"
2683
+ ],
2684
+ uri: "Test string",
2685
+ },
2686
+ createTime: "Test string",
2687
+ etag: "Test string",
2688
+ featureRegistrySource: {
2689
+ featureGroups: [
2690
+ {
2691
+ featureGroupId: "Test string",
2692
+ featureIds: [
2693
+ "Test string"
2694
+ ],
2695
+ }
2696
+ ],
2697
+ },
2698
+ labels: {
2699
+ A: "Test string"
2700
+ },
2701
+ name: "Test string",
2702
+ syncConfig: {
2703
+ cron: "Test string",
2704
+ },
2705
+ updateTime: "Test string",
2706
+ vectorSearchConfig: {
2707
+ bruteForceConfig: {
2708
+ },
2709
+ crowdingColumn: "Test string",
2710
+ distanceMeasureType: "Test string",
2711
+ embeddingColumn: "Test string",
2712
+ embeddingDimension: 42,
2713
+ filterColumns: [
2714
+ "Test string"
2715
+ ],
2716
+ treeAhConfig: {
2717
+ leafNodeEmbeddingCount: "Test string",
2718
+ },
2719
+ },
2720
+ });
2721
+ /** Deletes a single FeatureView. */
2722
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.delete({
2723
+ name: "Test string",
2724
+ });
2725
+ /** Fetch feature values under a FeatureView. */
2726
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues({
2727
+ featureView: "Test string",
2728
+ }, {
2729
+ format: "Test string",
2730
+ id: "Test string",
2731
+ });
2732
+ /** Gets details of a single FeatureView. */
2733
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.get({
2734
+ name: "Test string",
2735
+ });
2736
+ /** Lists FeatureViews in a given FeatureOnlineStore. */
2737
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.list({
2738
+ filter: "Test string",
2739
+ orderBy: "Test string",
2740
+ pageSize: 42,
2741
+ pageToken: "Test string",
2742
+ parent: "Test string",
2743
+ });
2744
+ /** Updates the parameters of a single FeatureView. */
2745
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.patch({
2746
+ name: "Test string",
2747
+ updateMask: "Test string",
2748
+ }, {
2749
+ bigQuerySource: {
2750
+ entityIdColumns: [
2751
+ "Test string"
2752
+ ],
2753
+ uri: "Test string",
2754
+ },
2755
+ createTime: "Test string",
2756
+ etag: "Test string",
2757
+ featureRegistrySource: {
2758
+ featureGroups: [
2759
+ {
2760
+ featureGroupId: "Test string",
2761
+ featureIds: [
2762
+ "Test string"
2763
+ ],
2764
+ }
2765
+ ],
2766
+ },
2767
+ labels: {
2768
+ A: "Test string"
2769
+ },
2770
+ name: "Test string",
2771
+ syncConfig: {
2772
+ cron: "Test string",
2773
+ },
2774
+ updateTime: "Test string",
2775
+ vectorSearchConfig: {
2776
+ bruteForceConfig: {
2777
+ },
2778
+ crowdingColumn: "Test string",
2779
+ distanceMeasureType: "Test string",
2780
+ embeddingColumn: "Test string",
2781
+ embeddingDimension: 42,
2782
+ filterColumns: [
2783
+ "Test string"
2784
+ ],
2785
+ treeAhConfig: {
2786
+ leafNodeEmbeddingCount: "Test string",
2787
+ },
2788
+ },
2789
+ });
2790
+ /** Search the nearest entities under a FeatureView. Search only works for indexable feature view; if a feature view isn't indexable, returns Invalid argument response. */
2791
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.searchNearestEntities({
2792
+ featureView: "Test string",
2793
+ }, {
2794
+ query: {
2795
+ embedding: {
2796
+ value: [
2797
+ 42
2798
+ ],
2799
+ },
2800
+ entityId: "Test string",
2801
+ neighborCount: 42,
2802
+ parameters: {
2803
+ approximateNeighborCandidates: 42,
2804
+ leafNodesSearchFraction: 42,
2805
+ },
2806
+ perCrowdingAttributeNeighborCount: 42,
2807
+ stringFilters: [
2808
+ {
2809
+ allowTokens: [
2810
+ "Test string"
2811
+ ],
2812
+ denyTokens: [
2813
+ "Test string"
2814
+ ],
2815
+ name: "Test string",
2816
+ }
2817
+ ],
2818
+ },
2819
+ returnFullEntity: true,
2820
+ });
2821
+ /** Triggers on-demand sync for the FeatureView. */
2822
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.sync({
2823
+ featureView: "Test string",
2824
+ }, {
2825
+ });
2826
+ /** Gets details of a single FeatureViewSync. */
2827
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get({
2828
+ name: "Test string",
2829
+ });
2830
+ /** Lists FeatureViewSyncs in a given FeatureView. */
2831
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list({
2832
+ filter: "Test string",
2833
+ orderBy: "Test string",
2834
+ pageSize: 42,
2835
+ pageToken: "Test string",
2836
+ parent: "Test string",
2837
+ });
2369
2838
  /**
2370
2839
  * Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support
2371
2840
  * this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -5049,6 +5518,14 @@ gapi.load('client', async () => {
5049
5518
  },
5050
5519
  },
5051
5520
  },
5521
+ generatedModelSource: {
5522
+ genieSource: {
5523
+ baseModelUri: "Test string",
5524
+ },
5525
+ modelGardenSource: {
5526
+ publicModelName: "Test string",
5527
+ },
5528
+ },
5052
5529
  labels: {
5053
5530
  A: "Test string"
5054
5531
  },
@@ -5306,6 +5783,14 @@ gapi.load('client', async () => {
5306
5783
  },
5307
5784
  },
5308
5785
  },
5786
+ generatedModelSource: {
5787
+ genieSource: {
5788
+ baseModelUri: "Test string",
5789
+ },
5790
+ modelGardenSource: {
5791
+ publicModelName: "Test string",
5792
+ },
5793
+ },
5309
5794
  labels: {
5310
5795
  A: "Test string"
5311
5796
  },
@@ -5958,9 +6443,6 @@ gapi.load('client', async () => {
5958
6443
  await gapi.client.aiplatform.projects.locations.notebookExecutionJobs.reportEvent({
5959
6444
  name: "Test string",
5960
6445
  }, {
5961
- eventDetails: {
5962
- A: "Test string"
5963
- },
5964
6446
  eventType: "Test string",
5965
6447
  vmToken: "Test string",
5966
6448
  });
@@ -5974,10 +6456,14 @@ gapi.load('client', async () => {
5974
6456
  displayName: "Test string",
5975
6457
  expirationTime: "Test string",
5976
6458
  healthState: "Test string",
6459
+ labels: {
6460
+ A: "Test string"
6461
+ },
5977
6462
  name: "Test string",
5978
6463
  notebookRuntimeTemplateRef: {
5979
6464
  notebookRuntimeTemplate: "Test string",
5980
6465
  },
6466
+ notebookRuntimeType: "Test string",
5981
6467
  proxyUri: "Test string",
5982
6468
  runtimeState: "Test string",
5983
6469
  runtimeUser: "Test string",
@@ -6061,6 +6547,7 @@ gapi.load('client', async () => {
6061
6547
  network: "Test string",
6062
6548
  subnetwork: "Test string",
6063
6549
  },
6550
+ notebookRuntimeType: "Test string",
6064
6551
  serviceAccount: "Test string",
6065
6552
  updateTime: "Test string",
6066
6553
  });
@@ -8468,6 +8955,14 @@ gapi.load('client', async () => {
8468
8955
  },
8469
8956
  },
8470
8957
  },
8958
+ generatedModelSource: {
8959
+ genieSource: {
8960
+ baseModelUri: "Test string",
8961
+ },
8962
+ modelGardenSource: {
8963
+ publicModelName: "Test string",
8964
+ },
8965
+ },
8471
8966
  labels: {
8472
8967
  A: "Test string"
8473
8968
  },
@@ -8582,5 +9077,15 @@ gapi.load('client', async () => {
8582
9077
  name: "Test string",
8583
9078
  view: "Test string",
8584
9079
  });
9080
+ /** Lists publisher models in Model Garden. */
9081
+ await gapi.client.aiplatform.publishers.models.list({
9082
+ filter: "Test string",
9083
+ languageCode: "Test string",
9084
+ orderBy: "Test string",
9085
+ pageSize: 42,
9086
+ pageToken: "Test string",
9087
+ parent: "Test string",
9088
+ view: "Test string",
9089
+ });
8585
9090
  }
8586
9091
  });