@maxim_mazurok/gapi.client.aiplatform-v1 0.0.20231024 → 0.0.20231101

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 +2917 -153
  2. package/package.json +1 -1
  3. package/tests.ts +493 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.aiplatform-v1",
3
- "version": "0.0.20231024",
3
+ "version": "0.0.20231101",
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: 20231024
6
+ // Revision: 20231101
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -1949,6 +1949,477 @@ gapi.load('client', async () => {
1949
1949
  name: "Test string",
1950
1950
  timeout: "Test string",
1951
1951
  });
1952
+ /** Creates a new FeatureGroup in a given project and location. */
1953
+ await gapi.client.aiplatform.projects.locations.featureGroups.create({
1954
+ featureGroupId: "Test string",
1955
+ parent: "Test string",
1956
+ }, {
1957
+ bigQuery: {
1958
+ bigQuerySource: {
1959
+ inputUri: "Test string",
1960
+ },
1961
+ entityIdColumns: [
1962
+ "Test string"
1963
+ ],
1964
+ },
1965
+ createTime: "Test string",
1966
+ description: "Test string",
1967
+ etag: "Test string",
1968
+ labels: {
1969
+ A: "Test string"
1970
+ },
1971
+ name: "Test string",
1972
+ updateTime: "Test string",
1973
+ });
1974
+ /** Deletes a single FeatureGroup. */
1975
+ await gapi.client.aiplatform.projects.locations.featureGroups.delete({
1976
+ force: true,
1977
+ name: "Test string",
1978
+ });
1979
+ /** Gets details of a single FeatureGroup. */
1980
+ await gapi.client.aiplatform.projects.locations.featureGroups.get({
1981
+ name: "Test string",
1982
+ });
1983
+ /** Lists FeatureGroups in a given project and location. */
1984
+ await gapi.client.aiplatform.projects.locations.featureGroups.list({
1985
+ filter: "Test string",
1986
+ orderBy: "Test string",
1987
+ pageSize: 42,
1988
+ pageToken: "Test string",
1989
+ parent: "Test string",
1990
+ });
1991
+ /** Updates the parameters of a single FeatureGroup. */
1992
+ await gapi.client.aiplatform.projects.locations.featureGroups.patch({
1993
+ name: "Test string",
1994
+ updateMask: "Test string",
1995
+ }, {
1996
+ bigQuery: {
1997
+ bigQuerySource: {
1998
+ inputUri: "Test string",
1999
+ },
2000
+ entityIdColumns: [
2001
+ "Test string"
2002
+ ],
2003
+ },
2004
+ createTime: "Test string",
2005
+ description: "Test string",
2006
+ etag: "Test string",
2007
+ labels: {
2008
+ A: "Test string"
2009
+ },
2010
+ name: "Test string",
2011
+ updateTime: "Test string",
2012
+ });
2013
+ /** Creates a new Feature in a given FeatureGroup. */
2014
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.create({
2015
+ featureId: "Test string",
2016
+ parent: "Test string",
2017
+ }, {
2018
+ createTime: "Test string",
2019
+ description: "Test string",
2020
+ disableMonitoring: true,
2021
+ etag: "Test string",
2022
+ labels: {
2023
+ A: "Test string"
2024
+ },
2025
+ monitoringStatsAnomalies: [
2026
+ {
2027
+ featureStatsAnomaly: {
2028
+ anomalyDetectionThreshold: 42,
2029
+ anomalyUri: "Test string",
2030
+ distributionDeviation: 42,
2031
+ endTime: "Test string",
2032
+ score: 42,
2033
+ startTime: "Test string",
2034
+ statsUri: "Test string",
2035
+ },
2036
+ objective: "Test string",
2037
+ }
2038
+ ],
2039
+ name: "Test string",
2040
+ updateTime: "Test string",
2041
+ valueType: "Test string",
2042
+ versionColumnName: "Test string",
2043
+ });
2044
+ /** Deletes a single Feature. */
2045
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.delete({
2046
+ name: "Test string",
2047
+ });
2048
+ /** Gets details of a single Feature. */
2049
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.get({
2050
+ name: "Test string",
2051
+ });
2052
+ /** Lists Features in a given FeatureGroup. */
2053
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.list({
2054
+ filter: "Test string",
2055
+ latestStatsCount: 42,
2056
+ orderBy: "Test string",
2057
+ pageSize: 42,
2058
+ pageToken: "Test string",
2059
+ parent: "Test string",
2060
+ readMask: "Test string",
2061
+ });
2062
+ /** Updates the parameters of a single Feature. */
2063
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.patch({
2064
+ name: "Test string",
2065
+ updateMask: "Test string",
2066
+ }, {
2067
+ createTime: "Test string",
2068
+ description: "Test string",
2069
+ disableMonitoring: true,
2070
+ etag: "Test string",
2071
+ labels: {
2072
+ A: "Test string"
2073
+ },
2074
+ monitoringStatsAnomalies: [
2075
+ {
2076
+ featureStatsAnomaly: {
2077
+ anomalyDetectionThreshold: 42,
2078
+ anomalyUri: "Test string",
2079
+ distributionDeviation: 42,
2080
+ endTime: "Test string",
2081
+ score: 42,
2082
+ startTime: "Test string",
2083
+ statsUri: "Test string",
2084
+ },
2085
+ objective: "Test string",
2086
+ }
2087
+ ],
2088
+ name: "Test string",
2089
+ updateTime: "Test string",
2090
+ valueType: "Test string",
2091
+ versionColumnName: "Test string",
2092
+ });
2093
+ /**
2094
+ * 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
2095
+ * this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2096
+ */
2097
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.operations.delete({
2098
+ name: "Test string",
2099
+ });
2100
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
2101
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.operations.get({
2102
+ name: "Test string",
2103
+ });
2104
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
2105
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.operations.listWait({
2106
+ filter: "Test string",
2107
+ name: "Test string",
2108
+ pageSize: 42,
2109
+ pageToken: "Test string",
2110
+ });
2111
+ /**
2112
+ * Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is
2113
+ * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns
2114
+ * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an
2115
+ * immediate response is no guarantee that the operation is done.
2116
+ */
2117
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.operations.wait({
2118
+ name: "Test string",
2119
+ timeout: "Test string",
2120
+ });
2121
+ /**
2122
+ * 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
2123
+ * this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2124
+ */
2125
+ await gapi.client.aiplatform.projects.locations.featureGroups.operations.delete({
2126
+ name: "Test string",
2127
+ });
2128
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
2129
+ await gapi.client.aiplatform.projects.locations.featureGroups.operations.get({
2130
+ name: "Test string",
2131
+ });
2132
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
2133
+ await gapi.client.aiplatform.projects.locations.featureGroups.operations.listWait({
2134
+ filter: "Test string",
2135
+ name: "Test string",
2136
+ pageSize: 42,
2137
+ pageToken: "Test string",
2138
+ });
2139
+ /**
2140
+ * Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is
2141
+ * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns
2142
+ * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an
2143
+ * immediate response is no guarantee that the operation is done.
2144
+ */
2145
+ await gapi.client.aiplatform.projects.locations.featureGroups.operations.wait({
2146
+ name: "Test string",
2147
+ timeout: "Test string",
2148
+ });
2149
+ /** Creates a new FeatureOnlineStore in a given project and location. */
2150
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.create({
2151
+ featureOnlineStoreId: "Test string",
2152
+ parent: "Test string",
2153
+ }, {
2154
+ bigtable: {
2155
+ autoScaling: {
2156
+ cpuUtilizationTarget: 42,
2157
+ maxNodeCount: 42,
2158
+ minNodeCount: 42,
2159
+ },
2160
+ },
2161
+ createTime: "Test string",
2162
+ dedicatedServingEndpoint: {
2163
+ privateServiceConnectConfig: {
2164
+ enablePrivateServiceConnect: true,
2165
+ projectAllowlist: [
2166
+ "Test string"
2167
+ ],
2168
+ },
2169
+ publicEndpointDomainName: "Test string",
2170
+ serviceAttachment: "Test string",
2171
+ },
2172
+ embeddingManagement: {
2173
+ enabled: true,
2174
+ },
2175
+ etag: "Test string",
2176
+ labels: {
2177
+ A: "Test string"
2178
+ },
2179
+ name: "Test string",
2180
+ state: "Test string",
2181
+ updateTime: "Test string",
2182
+ });
2183
+ /** Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews. */
2184
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.delete({
2185
+ force: true,
2186
+ name: "Test string",
2187
+ });
2188
+ /** Gets details of a single FeatureOnlineStore. */
2189
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.get({
2190
+ name: "Test string",
2191
+ });
2192
+ /** Lists FeatureOnlineStores in a given project and location. */
2193
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.list({
2194
+ filter: "Test string",
2195
+ orderBy: "Test string",
2196
+ pageSize: 42,
2197
+ pageToken: "Test string",
2198
+ parent: "Test string",
2199
+ });
2200
+ /** Updates the parameters of a single FeatureOnlineStore. */
2201
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.patch({
2202
+ name: "Test string",
2203
+ updateMask: "Test string",
2204
+ }, {
2205
+ bigtable: {
2206
+ autoScaling: {
2207
+ cpuUtilizationTarget: 42,
2208
+ maxNodeCount: 42,
2209
+ minNodeCount: 42,
2210
+ },
2211
+ },
2212
+ createTime: "Test string",
2213
+ dedicatedServingEndpoint: {
2214
+ privateServiceConnectConfig: {
2215
+ enablePrivateServiceConnect: true,
2216
+ projectAllowlist: [
2217
+ "Test string"
2218
+ ],
2219
+ },
2220
+ publicEndpointDomainName: "Test string",
2221
+ serviceAttachment: "Test string",
2222
+ },
2223
+ embeddingManagement: {
2224
+ enabled: true,
2225
+ },
2226
+ etag: "Test string",
2227
+ labels: {
2228
+ A: "Test string"
2229
+ },
2230
+ name: "Test string",
2231
+ state: "Test string",
2232
+ updateTime: "Test string",
2233
+ });
2234
+ /** Creates a new FeatureView in a given FeatureOnlineStore. */
2235
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.create({
2236
+ featureViewId: "Test string",
2237
+ parent: "Test string",
2238
+ runSyncImmediately: true,
2239
+ }, {
2240
+ bigQuerySource: {
2241
+ entityIdColumns: [
2242
+ "Test string"
2243
+ ],
2244
+ uri: "Test string",
2245
+ },
2246
+ createTime: "Test string",
2247
+ etag: "Test string",
2248
+ featureRegistrySource: {
2249
+ featureGroups: [
2250
+ {
2251
+ featureGroupId: "Test string",
2252
+ featureIds: [
2253
+ "Test string"
2254
+ ],
2255
+ }
2256
+ ],
2257
+ },
2258
+ labels: {
2259
+ A: "Test string"
2260
+ },
2261
+ name: "Test string",
2262
+ syncConfig: {
2263
+ cron: "Test string",
2264
+ },
2265
+ updateTime: "Test string",
2266
+ vectorSearchConfig: {
2267
+ bruteForceConfig: {
2268
+ },
2269
+ crowdingColumn: "Test string",
2270
+ distanceMeasureType: "Test string",
2271
+ embeddingColumn: "Test string",
2272
+ embeddingDimension: 42,
2273
+ filterColumns: [
2274
+ "Test string"
2275
+ ],
2276
+ treeAhConfig: {
2277
+ leafNodeEmbeddingCount: "Test string",
2278
+ },
2279
+ },
2280
+ });
2281
+ /** Deletes a single FeatureView. */
2282
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.delete({
2283
+ name: "Test string",
2284
+ });
2285
+ /** Fetch feature values under a FeatureView. */
2286
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues({
2287
+ featureView: "Test string",
2288
+ }, {
2289
+ format: "Test string",
2290
+ id: "Test string",
2291
+ });
2292
+ /** Gets details of a single FeatureView. */
2293
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.get({
2294
+ name: "Test string",
2295
+ });
2296
+ /** Lists FeatureViews in a given FeatureOnlineStore. */
2297
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.list({
2298
+ filter: "Test string",
2299
+ orderBy: "Test string",
2300
+ pageSize: 42,
2301
+ pageToken: "Test string",
2302
+ parent: "Test string",
2303
+ });
2304
+ /** Updates the parameters of a single FeatureView. */
2305
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.patch({
2306
+ name: "Test string",
2307
+ updateMask: "Test string",
2308
+ }, {
2309
+ bigQuerySource: {
2310
+ entityIdColumns: [
2311
+ "Test string"
2312
+ ],
2313
+ uri: "Test string",
2314
+ },
2315
+ createTime: "Test string",
2316
+ etag: "Test string",
2317
+ featureRegistrySource: {
2318
+ featureGroups: [
2319
+ {
2320
+ featureGroupId: "Test string",
2321
+ featureIds: [
2322
+ "Test string"
2323
+ ],
2324
+ }
2325
+ ],
2326
+ },
2327
+ labels: {
2328
+ A: "Test string"
2329
+ },
2330
+ name: "Test string",
2331
+ syncConfig: {
2332
+ cron: "Test string",
2333
+ },
2334
+ updateTime: "Test string",
2335
+ vectorSearchConfig: {
2336
+ bruteForceConfig: {
2337
+ },
2338
+ crowdingColumn: "Test string",
2339
+ distanceMeasureType: "Test string",
2340
+ embeddingColumn: "Test string",
2341
+ embeddingDimension: 42,
2342
+ filterColumns: [
2343
+ "Test string"
2344
+ ],
2345
+ treeAhConfig: {
2346
+ leafNodeEmbeddingCount: "Test string",
2347
+ },
2348
+ },
2349
+ });
2350
+ /** Triggers on-demand sync for the FeatureView. */
2351
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.sync({
2352
+ featureView: "Test string",
2353
+ }, {
2354
+ });
2355
+ /** Gets details of a single FeatureViewSync. */
2356
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get({
2357
+ name: "Test string",
2358
+ });
2359
+ /** Lists FeatureViewSyncs in a given FeatureView. */
2360
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list({
2361
+ filter: "Test string",
2362
+ orderBy: "Test string",
2363
+ pageSize: 42,
2364
+ pageToken: "Test string",
2365
+ parent: "Test string",
2366
+ });
2367
+ /**
2368
+ * 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
2369
+ * this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2370
+ */
2371
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.operations.delete({
2372
+ name: "Test string",
2373
+ });
2374
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
2375
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.operations.get({
2376
+ name: "Test string",
2377
+ });
2378
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
2379
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.operations.listWait({
2380
+ filter: "Test string",
2381
+ name: "Test string",
2382
+ pageSize: 42,
2383
+ pageToken: "Test string",
2384
+ });
2385
+ /**
2386
+ * Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is
2387
+ * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns
2388
+ * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an
2389
+ * immediate response is no guarantee that the operation is done.
2390
+ */
2391
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.operations.wait({
2392
+ name: "Test string",
2393
+ timeout: "Test string",
2394
+ });
2395
+ /**
2396
+ * 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
2397
+ * this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2398
+ */
2399
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.operations.delete({
2400
+ name: "Test string",
2401
+ });
2402
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
2403
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.operations.get({
2404
+ name: "Test string",
2405
+ });
2406
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
2407
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.operations.listWait({
2408
+ filter: "Test string",
2409
+ name: "Test string",
2410
+ pageSize: 42,
2411
+ pageToken: "Test string",
2412
+ });
2413
+ /**
2414
+ * Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is
2415
+ * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns
2416
+ * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an
2417
+ * immediate response is no guarantee that the operation is done.
2418
+ */
2419
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.operations.wait({
2420
+ name: "Test string",
2421
+ timeout: "Test string",
2422
+ });
1952
2423
  /**
1953
2424
  * Batch reads Feature values from a Featurestore. This API enables batch reading Feature values, where each read instance in the batch may read Feature values of entities from one or more
1954
2425
  * EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as of each instance's read timestamp.
@@ -2458,6 +2929,7 @@ gapi.load('client', async () => {
2458
2929
  name: "Test string",
2459
2930
  updateTime: "Test string",
2460
2931
  valueType: "Test string",
2932
+ versionColumnName: "Test string",
2461
2933
  },
2462
2934
  featureId: "Test string",
2463
2935
  parent: "Test string",
@@ -2493,6 +2965,7 @@ gapi.load('client', async () => {
2493
2965
  name: "Test string",
2494
2966
  updateTime: "Test string",
2495
2967
  valueType: "Test string",
2968
+ versionColumnName: "Test string",
2496
2969
  });
2497
2970
  /** Deletes a single Feature. */
2498
2971
  await gapi.client.aiplatform.projects.locations.featurestores.entityTypes.features.delete({
@@ -2541,6 +3014,7 @@ gapi.load('client', async () => {
2541
3014
  name: "Test string",
2542
3015
  updateTime: "Test string",
2543
3016
  valueType: "Test string",
3017
+ versionColumnName: "Test string",
2544
3018
  });
2545
3019
  /**
2546
3020
  * 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
@@ -3101,6 +3575,15 @@ gapi.load('client', async () => {
3101
3575
  featureVector: [
3102
3576
  42
3103
3577
  ],
3578
+ numericRestricts: [
3579
+ {
3580
+ namespace: "Test string",
3581
+ op: "Test string",
3582
+ valueDouble: 42,
3583
+ valueFloat: 42,
3584
+ valueInt: "Test string",
3585
+ }
3586
+ ],
3104
3587
  restricts: [
3105
3588
  {
3106
3589
  allowList: [
@@ -3407,6 +3890,15 @@ gapi.load('client', async () => {
3407
3890
  featureVector: [
3408
3891
  42
3409
3892
  ],
3893
+ numericRestricts: [
3894
+ {
3895
+ namespace: "Test string",
3896
+ op: "Test string",
3897
+ valueDouble: 42,
3898
+ valueFloat: 42,
3899
+ valueInt: "Test string",
3900
+ }
3901
+ ],
3410
3902
  restricts: [
3411
3903
  {
3412
3904
  allowList: [