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

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 +804 -152
  2. package/package.json +1 -1
  3. package/tests.ts +163 -57
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.aiplatform-v1",
3
- "version": "0.0.20231101",
3
+ "version": "0.0.20231111",
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: 20231101
6
+ // Revision: 20231111
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -267,12 +267,22 @@ gapi.load('client', async () => {
267
267
  command: [
268
268
  "Test string"
269
269
  ],
270
+ deploymentTimeout: "Test string",
270
271
  env: [
271
272
  {
272
273
  name: "Test string",
273
274
  value: "Test string",
274
275
  }
275
276
  ],
277
+ healthProbe: {
278
+ exec: {
279
+ command: [
280
+ "Test string"
281
+ ],
282
+ },
283
+ periodSeconds: 42,
284
+ timeoutSeconds: 42,
285
+ },
276
286
  healthRoute: "Test string",
277
287
  imageUri: "Test string",
278
288
  ports: [
@@ -281,6 +291,16 @@ gapi.load('client', async () => {
281
291
  }
282
292
  ],
283
293
  predictRoute: "Test string",
294
+ sharedMemorySizeMb: "Test string",
295
+ startupProbe: {
296
+ exec: {
297
+ command: [
298
+ "Test string"
299
+ ],
300
+ },
301
+ periodSeconds: 42,
302
+ timeoutSeconds: 42,
303
+ },
284
304
  },
285
305
  predictSchemata: {
286
306
  instanceSchemaUri: "Test string",
@@ -983,6 +1003,52 @@ gapi.load('client', async () => {
983
1003
  name: "Test string",
984
1004
  timeout: "Test string",
985
1005
  });
1006
+ /** Create a DeploymentResourcePool. */
1007
+ await gapi.client.aiplatform.projects.locations.deploymentResourcePools.create({
1008
+ parent: "Test string",
1009
+ }, {
1010
+ deploymentResourcePool: {
1011
+ createTime: "Test string",
1012
+ dedicatedResources: {
1013
+ autoscalingMetricSpecs: [
1014
+ {
1015
+ metricName: "Test string",
1016
+ target: 42,
1017
+ }
1018
+ ],
1019
+ machineSpec: {
1020
+ acceleratorCount: 42,
1021
+ acceleratorType: "Test string",
1022
+ machineType: "Test string",
1023
+ tpuTopology: "Test string",
1024
+ },
1025
+ maxReplicaCount: 42,
1026
+ minReplicaCount: 42,
1027
+ },
1028
+ name: "Test string",
1029
+ },
1030
+ deploymentResourcePoolId: "Test string",
1031
+ });
1032
+ /** Delete a DeploymentResourcePool. */
1033
+ await gapi.client.aiplatform.projects.locations.deploymentResourcePools.delete({
1034
+ name: "Test string",
1035
+ });
1036
+ /** Get a DeploymentResourcePool. */
1037
+ await gapi.client.aiplatform.projects.locations.deploymentResourcePools.get({
1038
+ name: "Test string",
1039
+ });
1040
+ /** List DeploymentResourcePools in a location. */
1041
+ await gapi.client.aiplatform.projects.locations.deploymentResourcePools.list({
1042
+ pageSize: 42,
1043
+ pageToken: "Test string",
1044
+ parent: "Test string",
1045
+ });
1046
+ /** List DeployedModels that have been deployed on this DeploymentResourcePool. */
1047
+ await gapi.client.aiplatform.projects.locations.deploymentResourcePools.queryDeployedModels({
1048
+ deploymentResourcePool: "Test string",
1049
+ pageSize: 42,
1050
+ pageToken: "Test string",
1051
+ });
986
1052
  /**
987
1053
  * 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
988
1054
  * 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
@@ -1020,6 +1086,22 @@ gapi.load('client', async () => {
1020
1086
  name: "Test string",
1021
1087
  timeout: "Test string",
1022
1088
  });
1089
+ /** Return a list of tokens based on the input text. */
1090
+ await gapi.client.aiplatform.projects.locations.endpoints.computeTokens({
1091
+ endpoint: "Test string",
1092
+ }, {
1093
+ instances: [
1094
+ 42
1095
+ ],
1096
+ });
1097
+ /** Perform a token counting. */
1098
+ await gapi.client.aiplatform.projects.locations.endpoints.countTokens({
1099
+ endpoint: "Test string",
1100
+ }, {
1101
+ instances: [
1102
+ 42
1103
+ ],
1104
+ });
1023
1105
  /** Creates an Endpoint. */
1024
1106
  await gapi.client.aiplatform.projects.locations.endpoints.create({
1025
1107
  endpointId: "Test string",
@@ -2159,19 +2241,6 @@ gapi.load('client', async () => {
2159
2241
  },
2160
2242
  },
2161
2243
  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
2244
  etag: "Test string",
2176
2245
  labels: {
2177
2246
  A: "Test string"
@@ -2210,19 +2279,6 @@ gapi.load('client', async () => {
2210
2279
  },
2211
2280
  },
2212
2281
  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
2282
  etag: "Test string",
2227
2283
  labels: {
2228
2284
  A: "Test string"
@@ -2263,20 +2319,6 @@ gapi.load('client', async () => {
2263
2319
  cron: "Test string",
2264
2320
  },
2265
2321
  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
2322
  });
2281
2323
  /** Deletes a single FeatureView. */
2282
2324
  await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.delete({
@@ -2286,8 +2328,10 @@ gapi.load('client', async () => {
2286
2328
  await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues({
2287
2329
  featureView: "Test string",
2288
2330
  }, {
2289
- format: "Test string",
2290
- id: "Test string",
2331
+ dataFormat: "Test string",
2332
+ dataKey: {
2333
+ key: "Test string",
2334
+ },
2291
2335
  });
2292
2336
  /** Gets details of a single FeatureView. */
2293
2337
  await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.get({
@@ -2332,20 +2376,6 @@ gapi.load('client', async () => {
2332
2376
  cron: "Test string",
2333
2377
  },
2334
2378
  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
2379
  });
2350
2380
  /** Triggers on-demand sync for the FeatureView. */
2351
2381
  await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.sync({
@@ -4798,12 +4828,22 @@ gapi.load('client', async () => {
4798
4828
  command: [
4799
4829
  "Test string"
4800
4830
  ],
4831
+ deploymentTimeout: "Test string",
4801
4832
  env: [
4802
4833
  {
4803
4834
  name: "Test string",
4804
4835
  value: "Test string",
4805
4836
  }
4806
4837
  ],
4838
+ healthProbe: {
4839
+ exec: {
4840
+ command: [
4841
+ "Test string"
4842
+ ],
4843
+ },
4844
+ periodSeconds: 42,
4845
+ timeoutSeconds: 42,
4846
+ },
4807
4847
  healthRoute: "Test string",
4808
4848
  imageUri: "Test string",
4809
4849
  ports: [
@@ -4812,6 +4852,16 @@ gapi.load('client', async () => {
4812
4852
  }
4813
4853
  ],
4814
4854
  predictRoute: "Test string",
4855
+ sharedMemorySizeMb: "Test string",
4856
+ startupProbe: {
4857
+ exec: {
4858
+ command: [
4859
+ "Test string"
4860
+ ],
4861
+ },
4862
+ periodSeconds: 42,
4863
+ timeoutSeconds: 42,
4864
+ },
4815
4865
  },
4816
4866
  createTime: "Test string",
4817
4867
  deployedModels: [
@@ -5015,12 +5065,22 @@ gapi.load('client', async () => {
5015
5065
  command: [
5016
5066
  "Test string"
5017
5067
  ],
5068
+ deploymentTimeout: "Test string",
5018
5069
  env: [
5019
5070
  {
5020
5071
  name: "Test string",
5021
5072
  value: "Test string",
5022
5073
  }
5023
5074
  ],
5075
+ healthProbe: {
5076
+ exec: {
5077
+ command: [
5078
+ "Test string"
5079
+ ],
5080
+ },
5081
+ periodSeconds: 42,
5082
+ timeoutSeconds: 42,
5083
+ },
5024
5084
  healthRoute: "Test string",
5025
5085
  imageUri: "Test string",
5026
5086
  ports: [
@@ -5029,6 +5089,16 @@ gapi.load('client', async () => {
5029
5089
  }
5030
5090
  ],
5031
5091
  predictRoute: "Test string",
5092
+ sharedMemorySizeMb: "Test string",
5093
+ startupProbe: {
5094
+ exec: {
5095
+ command: [
5096
+ "Test string"
5097
+ ],
5098
+ },
5099
+ periodSeconds: 42,
5100
+ timeoutSeconds: 42,
5101
+ },
5032
5102
  },
5033
5103
  createTime: "Test string",
5034
5104
  deployedModels: [
@@ -6237,6 +6307,22 @@ gapi.load('client', async () => {
6237
6307
  name: "Test string",
6238
6308
  timeout: "Test string",
6239
6309
  });
6310
+ /** Return a list of tokens based on the input text. */
6311
+ await gapi.client.aiplatform.projects.locations.publishers.models.computeTokens({
6312
+ endpoint: "Test string",
6313
+ }, {
6314
+ instances: [
6315
+ 42
6316
+ ],
6317
+ });
6318
+ /** Perform a token counting. */
6319
+ await gapi.client.aiplatform.projects.locations.publishers.models.countTokens({
6320
+ endpoint: "Test string",
6321
+ }, {
6322
+ instances: [
6323
+ 42
6324
+ ],
6325
+ });
6240
6326
  /** Perform an online prediction. */
6241
6327
  await gapi.client.aiplatform.projects.locations.publishers.models.predict({
6242
6328
  endpoint: "Test string",
@@ -7913,12 +7999,22 @@ gapi.load('client', async () => {
7913
7999
  command: [
7914
8000
  "Test string"
7915
8001
  ],
8002
+ deploymentTimeout: "Test string",
7916
8003
  env: [
7917
8004
  {
7918
8005
  name: "Test string",
7919
8006
  value: "Test string",
7920
8007
  }
7921
8008
  ],
8009
+ healthProbe: {
8010
+ exec: {
8011
+ command: [
8012
+ "Test string"
8013
+ ],
8014
+ },
8015
+ periodSeconds: 42,
8016
+ timeoutSeconds: 42,
8017
+ },
7922
8018
  healthRoute: "Test string",
7923
8019
  imageUri: "Test string",
7924
8020
  ports: [
@@ -7927,6 +8023,16 @@ gapi.load('client', async () => {
7927
8023
  }
7928
8024
  ],
7929
8025
  predictRoute: "Test string",
8026
+ sharedMemorySizeMb: "Test string",
8027
+ startupProbe: {
8028
+ exec: {
8029
+ command: [
8030
+ "Test string"
8031
+ ],
8032
+ },
8033
+ periodSeconds: 42,
8034
+ timeoutSeconds: 42,
8035
+ },
7930
8036
  },
7931
8037
  createTime: "Test string",
7932
8038
  deployedModels: [