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

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 +4243 -1186
  2. package/package.json +1 -1
  3. package/tests.ts +471 -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.20231107",
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: 20231107
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -1020,6 +1020,22 @@ gapi.load('client', async () => {
1020
1020
  name: "Test string",
1021
1021
  timeout: "Test string",
1022
1022
  });
1023
+ /** Return a list of tokens based on the input text. */
1024
+ await gapi.client.aiplatform.projects.locations.endpoints.computeTokens({
1025
+ endpoint: "Test string",
1026
+ }, {
1027
+ instances: [
1028
+ 42
1029
+ ],
1030
+ });
1031
+ /** Perform a token counting. */
1032
+ await gapi.client.aiplatform.projects.locations.endpoints.countTokens({
1033
+ endpoint: "Test string",
1034
+ }, {
1035
+ instances: [
1036
+ 42
1037
+ ],
1038
+ });
1023
1039
  /** Creates an Endpoint. */
1024
1040
  await gapi.client.aiplatform.projects.locations.endpoints.create({
1025
1041
  endpointId: "Test string",
@@ -1949,6 +1965,423 @@ gapi.load('client', async () => {
1949
1965
  name: "Test string",
1950
1966
  timeout: "Test string",
1951
1967
  });
1968
+ /** Creates a new FeatureGroup in a given project and location. */
1969
+ await gapi.client.aiplatform.projects.locations.featureGroups.create({
1970
+ featureGroupId: "Test string",
1971
+ parent: "Test string",
1972
+ }, {
1973
+ bigQuery: {
1974
+ bigQuerySource: {
1975
+ inputUri: "Test string",
1976
+ },
1977
+ entityIdColumns: [
1978
+ "Test string"
1979
+ ],
1980
+ },
1981
+ createTime: "Test string",
1982
+ description: "Test string",
1983
+ etag: "Test string",
1984
+ labels: {
1985
+ A: "Test string"
1986
+ },
1987
+ name: "Test string",
1988
+ updateTime: "Test string",
1989
+ });
1990
+ /** Deletes a single FeatureGroup. */
1991
+ await gapi.client.aiplatform.projects.locations.featureGroups.delete({
1992
+ force: true,
1993
+ name: "Test string",
1994
+ });
1995
+ /** Gets details of a single FeatureGroup. */
1996
+ await gapi.client.aiplatform.projects.locations.featureGroups.get({
1997
+ name: "Test string",
1998
+ });
1999
+ /** Lists FeatureGroups in a given project and location. */
2000
+ await gapi.client.aiplatform.projects.locations.featureGroups.list({
2001
+ filter: "Test string",
2002
+ orderBy: "Test string",
2003
+ pageSize: 42,
2004
+ pageToken: "Test string",
2005
+ parent: "Test string",
2006
+ });
2007
+ /** Updates the parameters of a single FeatureGroup. */
2008
+ await gapi.client.aiplatform.projects.locations.featureGroups.patch({
2009
+ name: "Test string",
2010
+ updateMask: "Test string",
2011
+ }, {
2012
+ bigQuery: {
2013
+ bigQuerySource: {
2014
+ inputUri: "Test string",
2015
+ },
2016
+ entityIdColumns: [
2017
+ "Test string"
2018
+ ],
2019
+ },
2020
+ createTime: "Test string",
2021
+ description: "Test string",
2022
+ etag: "Test string",
2023
+ labels: {
2024
+ A: "Test string"
2025
+ },
2026
+ name: "Test string",
2027
+ updateTime: "Test string",
2028
+ });
2029
+ /** Creates a new Feature in a given FeatureGroup. */
2030
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.create({
2031
+ featureId: "Test string",
2032
+ parent: "Test string",
2033
+ }, {
2034
+ createTime: "Test string",
2035
+ description: "Test string",
2036
+ disableMonitoring: true,
2037
+ etag: "Test string",
2038
+ labels: {
2039
+ A: "Test string"
2040
+ },
2041
+ monitoringStatsAnomalies: [
2042
+ {
2043
+ featureStatsAnomaly: {
2044
+ anomalyDetectionThreshold: 42,
2045
+ anomalyUri: "Test string",
2046
+ distributionDeviation: 42,
2047
+ endTime: "Test string",
2048
+ score: 42,
2049
+ startTime: "Test string",
2050
+ statsUri: "Test string",
2051
+ },
2052
+ objective: "Test string",
2053
+ }
2054
+ ],
2055
+ name: "Test string",
2056
+ updateTime: "Test string",
2057
+ valueType: "Test string",
2058
+ versionColumnName: "Test string",
2059
+ });
2060
+ /** Deletes a single Feature. */
2061
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.delete({
2062
+ name: "Test string",
2063
+ });
2064
+ /** Gets details of a single Feature. */
2065
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.get({
2066
+ name: "Test string",
2067
+ });
2068
+ /** Lists Features in a given FeatureGroup. */
2069
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.list({
2070
+ filter: "Test string",
2071
+ latestStatsCount: 42,
2072
+ orderBy: "Test string",
2073
+ pageSize: 42,
2074
+ pageToken: "Test string",
2075
+ parent: "Test string",
2076
+ readMask: "Test string",
2077
+ });
2078
+ /** Updates the parameters of a single Feature. */
2079
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.patch({
2080
+ name: "Test string",
2081
+ updateMask: "Test string",
2082
+ }, {
2083
+ createTime: "Test string",
2084
+ description: "Test string",
2085
+ disableMonitoring: true,
2086
+ etag: "Test string",
2087
+ labels: {
2088
+ A: "Test string"
2089
+ },
2090
+ monitoringStatsAnomalies: [
2091
+ {
2092
+ featureStatsAnomaly: {
2093
+ anomalyDetectionThreshold: 42,
2094
+ anomalyUri: "Test string",
2095
+ distributionDeviation: 42,
2096
+ endTime: "Test string",
2097
+ score: 42,
2098
+ startTime: "Test string",
2099
+ statsUri: "Test string",
2100
+ },
2101
+ objective: "Test string",
2102
+ }
2103
+ ],
2104
+ name: "Test string",
2105
+ updateTime: "Test string",
2106
+ valueType: "Test string",
2107
+ versionColumnName: "Test string",
2108
+ });
2109
+ /**
2110
+ * 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
2111
+ * this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2112
+ */
2113
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.operations.delete({
2114
+ name: "Test string",
2115
+ });
2116
+ /** 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. */
2117
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.operations.get({
2118
+ name: "Test string",
2119
+ });
2120
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
2121
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.operations.listWait({
2122
+ filter: "Test string",
2123
+ name: "Test string",
2124
+ pageSize: 42,
2125
+ pageToken: "Test string",
2126
+ });
2127
+ /**
2128
+ * 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
2129
+ * 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
2130
+ * `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
2131
+ * immediate response is no guarantee that the operation is done.
2132
+ */
2133
+ await gapi.client.aiplatform.projects.locations.featureGroups.features.operations.wait({
2134
+ name: "Test string",
2135
+ timeout: "Test string",
2136
+ });
2137
+ /**
2138
+ * 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
2139
+ * this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2140
+ */
2141
+ await gapi.client.aiplatform.projects.locations.featureGroups.operations.delete({
2142
+ name: "Test string",
2143
+ });
2144
+ /** 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. */
2145
+ await gapi.client.aiplatform.projects.locations.featureGroups.operations.get({
2146
+ name: "Test string",
2147
+ });
2148
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
2149
+ await gapi.client.aiplatform.projects.locations.featureGroups.operations.listWait({
2150
+ filter: "Test string",
2151
+ name: "Test string",
2152
+ pageSize: 42,
2153
+ pageToken: "Test string",
2154
+ });
2155
+ /**
2156
+ * 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
2157
+ * 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
2158
+ * `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
2159
+ * immediate response is no guarantee that the operation is done.
2160
+ */
2161
+ await gapi.client.aiplatform.projects.locations.featureGroups.operations.wait({
2162
+ name: "Test string",
2163
+ timeout: "Test string",
2164
+ });
2165
+ /** Creates a new FeatureOnlineStore in a given project and location. */
2166
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.create({
2167
+ featureOnlineStoreId: "Test string",
2168
+ parent: "Test string",
2169
+ }, {
2170
+ bigtable: {
2171
+ autoScaling: {
2172
+ cpuUtilizationTarget: 42,
2173
+ maxNodeCount: 42,
2174
+ minNodeCount: 42,
2175
+ },
2176
+ },
2177
+ createTime: "Test string",
2178
+ etag: "Test string",
2179
+ labels: {
2180
+ A: "Test string"
2181
+ },
2182
+ name: "Test string",
2183
+ state: "Test string",
2184
+ updateTime: "Test string",
2185
+ });
2186
+ /** Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews. */
2187
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.delete({
2188
+ force: true,
2189
+ name: "Test string",
2190
+ });
2191
+ /** Gets details of a single FeatureOnlineStore. */
2192
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.get({
2193
+ name: "Test string",
2194
+ });
2195
+ /** Lists FeatureOnlineStores in a given project and location. */
2196
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.list({
2197
+ filter: "Test string",
2198
+ orderBy: "Test string",
2199
+ pageSize: 42,
2200
+ pageToken: "Test string",
2201
+ parent: "Test string",
2202
+ });
2203
+ /** Updates the parameters of a single FeatureOnlineStore. */
2204
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.patch({
2205
+ name: "Test string",
2206
+ updateMask: "Test string",
2207
+ }, {
2208
+ bigtable: {
2209
+ autoScaling: {
2210
+ cpuUtilizationTarget: 42,
2211
+ maxNodeCount: 42,
2212
+ minNodeCount: 42,
2213
+ },
2214
+ },
2215
+ createTime: "Test string",
2216
+ etag: "Test string",
2217
+ labels: {
2218
+ A: "Test string"
2219
+ },
2220
+ name: "Test string",
2221
+ state: "Test string",
2222
+ updateTime: "Test string",
2223
+ });
2224
+ /** Creates a new FeatureView in a given FeatureOnlineStore. */
2225
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.create({
2226
+ featureViewId: "Test string",
2227
+ parent: "Test string",
2228
+ runSyncImmediately: true,
2229
+ }, {
2230
+ bigQuerySource: {
2231
+ entityIdColumns: [
2232
+ "Test string"
2233
+ ],
2234
+ uri: "Test string",
2235
+ },
2236
+ createTime: "Test string",
2237
+ etag: "Test string",
2238
+ featureRegistrySource: {
2239
+ featureGroups: [
2240
+ {
2241
+ featureGroupId: "Test string",
2242
+ featureIds: [
2243
+ "Test string"
2244
+ ],
2245
+ }
2246
+ ],
2247
+ },
2248
+ labels: {
2249
+ A: "Test string"
2250
+ },
2251
+ name: "Test string",
2252
+ syncConfig: {
2253
+ cron: "Test string",
2254
+ },
2255
+ updateTime: "Test string",
2256
+ });
2257
+ /** Deletes a single FeatureView. */
2258
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.delete({
2259
+ name: "Test string",
2260
+ });
2261
+ /** Fetch feature values under a FeatureView. */
2262
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues({
2263
+ featureView: "Test string",
2264
+ }, {
2265
+ format: "Test string",
2266
+ id: "Test string",
2267
+ });
2268
+ /** Gets details of a single FeatureView. */
2269
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.get({
2270
+ name: "Test string",
2271
+ });
2272
+ /** Lists FeatureViews in a given FeatureOnlineStore. */
2273
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.list({
2274
+ filter: "Test string",
2275
+ orderBy: "Test string",
2276
+ pageSize: 42,
2277
+ pageToken: "Test string",
2278
+ parent: "Test string",
2279
+ });
2280
+ /** Updates the parameters of a single FeatureView. */
2281
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.patch({
2282
+ name: "Test string",
2283
+ updateMask: "Test string",
2284
+ }, {
2285
+ bigQuerySource: {
2286
+ entityIdColumns: [
2287
+ "Test string"
2288
+ ],
2289
+ uri: "Test string",
2290
+ },
2291
+ createTime: "Test string",
2292
+ etag: "Test string",
2293
+ featureRegistrySource: {
2294
+ featureGroups: [
2295
+ {
2296
+ featureGroupId: "Test string",
2297
+ featureIds: [
2298
+ "Test string"
2299
+ ],
2300
+ }
2301
+ ],
2302
+ },
2303
+ labels: {
2304
+ A: "Test string"
2305
+ },
2306
+ name: "Test string",
2307
+ syncConfig: {
2308
+ cron: "Test string",
2309
+ },
2310
+ updateTime: "Test string",
2311
+ });
2312
+ /** Triggers on-demand sync for the FeatureView. */
2313
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.sync({
2314
+ featureView: "Test string",
2315
+ }, {
2316
+ });
2317
+ /** Gets details of a single FeatureViewSync. */
2318
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get({
2319
+ name: "Test string",
2320
+ });
2321
+ /** Lists FeatureViewSyncs in a given FeatureView. */
2322
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list({
2323
+ filter: "Test string",
2324
+ orderBy: "Test string",
2325
+ pageSize: 42,
2326
+ pageToken: "Test string",
2327
+ parent: "Test string",
2328
+ });
2329
+ /**
2330
+ * 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
2331
+ * this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2332
+ */
2333
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.operations.delete({
2334
+ name: "Test string",
2335
+ });
2336
+ /** 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. */
2337
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.operations.get({
2338
+ name: "Test string",
2339
+ });
2340
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
2341
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.operations.listWait({
2342
+ filter: "Test string",
2343
+ name: "Test string",
2344
+ pageSize: 42,
2345
+ pageToken: "Test string",
2346
+ });
2347
+ /**
2348
+ * 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
2349
+ * 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
2350
+ * `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
2351
+ * immediate response is no guarantee that the operation is done.
2352
+ */
2353
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.operations.wait({
2354
+ name: "Test string",
2355
+ timeout: "Test string",
2356
+ });
2357
+ /**
2358
+ * 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
2359
+ * this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2360
+ */
2361
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.operations.delete({
2362
+ name: "Test string",
2363
+ });
2364
+ /** 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. */
2365
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.operations.get({
2366
+ name: "Test string",
2367
+ });
2368
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
2369
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.operations.listWait({
2370
+ filter: "Test string",
2371
+ name: "Test string",
2372
+ pageSize: 42,
2373
+ pageToken: "Test string",
2374
+ });
2375
+ /**
2376
+ * 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
2377
+ * 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
2378
+ * `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
2379
+ * immediate response is no guarantee that the operation is done.
2380
+ */
2381
+ await gapi.client.aiplatform.projects.locations.featureOnlineStores.operations.wait({
2382
+ name: "Test string",
2383
+ timeout: "Test string",
2384
+ });
1952
2385
  /**
1953
2386
  * 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
2387
  * EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as of each instance's read timestamp.
@@ -2458,6 +2891,7 @@ gapi.load('client', async () => {
2458
2891
  name: "Test string",
2459
2892
  updateTime: "Test string",
2460
2893
  valueType: "Test string",
2894
+ versionColumnName: "Test string",
2461
2895
  },
2462
2896
  featureId: "Test string",
2463
2897
  parent: "Test string",
@@ -2493,6 +2927,7 @@ gapi.load('client', async () => {
2493
2927
  name: "Test string",
2494
2928
  updateTime: "Test string",
2495
2929
  valueType: "Test string",
2930
+ versionColumnName: "Test string",
2496
2931
  });
2497
2932
  /** Deletes a single Feature. */
2498
2933
  await gapi.client.aiplatform.projects.locations.featurestores.entityTypes.features.delete({
@@ -2541,6 +2976,7 @@ gapi.load('client', async () => {
2541
2976
  name: "Test string",
2542
2977
  updateTime: "Test string",
2543
2978
  valueType: "Test string",
2979
+ versionColumnName: "Test string",
2544
2980
  });
2545
2981
  /**
2546
2982
  * 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 +3537,15 @@ gapi.load('client', async () => {
3101
3537
  featureVector: [
3102
3538
  42
3103
3539
  ],
3540
+ numericRestricts: [
3541
+ {
3542
+ namespace: "Test string",
3543
+ op: "Test string",
3544
+ valueDouble: 42,
3545
+ valueFloat: 42,
3546
+ valueInt: "Test string",
3547
+ }
3548
+ ],
3104
3549
  restricts: [
3105
3550
  {
3106
3551
  allowList: [
@@ -3407,6 +3852,15 @@ gapi.load('client', async () => {
3407
3852
  featureVector: [
3408
3853
  42
3409
3854
  ],
3855
+ numericRestricts: [
3856
+ {
3857
+ namespace: "Test string",
3858
+ op: "Test string",
3859
+ valueDouble: 42,
3860
+ valueFloat: 42,
3861
+ valueInt: "Test string",
3862
+ }
3863
+ ],
3410
3864
  restricts: [
3411
3865
  {
3412
3866
  allowList: [
@@ -5745,6 +6199,22 @@ gapi.load('client', async () => {
5745
6199
  name: "Test string",
5746
6200
  timeout: "Test string",
5747
6201
  });
6202
+ /** Return a list of tokens based on the input text. */
6203
+ await gapi.client.aiplatform.projects.locations.publishers.models.computeTokens({
6204
+ endpoint: "Test string",
6205
+ }, {
6206
+ instances: [
6207
+ 42
6208
+ ],
6209
+ });
6210
+ /** Perform a token counting. */
6211
+ await gapi.client.aiplatform.projects.locations.publishers.models.countTokens({
6212
+ endpoint: "Test string",
6213
+ }, {
6214
+ instances: [
6215
+ 42
6216
+ ],
6217
+ });
5748
6218
  /** Perform an online prediction. */
5749
6219
  await gapi.client.aiplatform.projects.locations.publishers.models.predict({
5750
6220
  endpoint: "Test string",