@maxim_mazurok/gapi.client.dataflow-v1b3 0.0.20230708 → 0.0.20230729

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 +56 -1
  2. package/package.json +1 -1
  3. package/tests.ts +71 -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://dataflow.googleapis.com/$discovery/rest?version=v1b3
12
- // Revision: 20230708
12
+ // Revision: 20230729
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -348,6 +348,38 @@ declare namespace gapi.client {
348
348
  vmInstance?:
349
349
  string;
350
350
  }
351
+ interface DataSamplingConfig {
352
+ /**
353
+ * List of given sampling behaviors to enable. For example, specifying behaviors = [ALWAYS_ON] samples in-flight elements but does not sample exceptions. Can be used to specify
354
+ * multiple behaviors like, behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and exception sampling. If DISABLED is in the list, then sampling will be disabled and
355
+ * ignore the other given behaviors. Ordering does not matter.
356
+ */
357
+ behaviors?:
358
+ string[];
359
+ }
360
+ interface DataSamplingReport {
361
+ /** Optional. Delta of bytes written to file from previous report. */
362
+ bytesWrittenDelta?:
363
+ string;
364
+ /** Optional. Delta of bytes sampled from previous report. */
365
+ elementsSampledBytes?:
366
+ string;
367
+ /** Optional. Delta of number of elements sampled from previous report. */
368
+ elementsSampledCount?:
369
+ string;
370
+ /** Optional. Delta of number of samples taken from user code exceptions from previous report. */
371
+ exceptionsSampledCount?:
372
+ string;
373
+ /** Optional. Delta of number of PCollections sampled from previous report. */
374
+ pcollectionsSampledCount?:
375
+ string;
376
+ /** Optional. Delta of errors counts from persisting the samples from previous report. */
377
+ persistenceErrorsCount?:
378
+ string;
379
+ /** Optional. Delta of errors counts from retrieving, or translating the samples from previous report. */
380
+ translationErrorsCount?:
381
+ string;
382
+ }
351
383
  interface DatastoreIODetails {
352
384
  /** Namespace used in the connection. */
353
385
  namespace?:
@@ -357,6 +389,9 @@ declare namespace gapi.client {
357
389
  string;
358
390
  }
359
391
  interface DebugOptions {
392
+ /** Configuration options for sampling elements from a running pipeline. */
393
+ dataSampling?:
394
+ DataSamplingConfig;
360
395
  /** When true, enables the logging of the literal hot key to the user's Cloud Logging. */
361
396
  enableHotKeyLogging?:
362
397
  boolean;
@@ -521,6 +556,9 @@ declare namespace gapi.client {
521
556
  /** A description of the process that generated the request. */
522
557
  userAgent?:
523
558
  { [P in string]: any };
559
+ /** Output only. Whether the job uses the new streaming engine billing model based on resource usage. */
560
+ useStreamingEngineResourceBasedBilling?:
561
+ boolean;
524
562
  /** A structure describing which components and their versions of the service are required in order to run the job. */
525
563
  version?:
526
564
  { [P in string]: any };
@@ -1658,6 +1696,17 @@ declare namespace gapi.client {
1658
1696
  minNumWorkers?:
1659
1697
  number;
1660
1698
  }
1699
+ interface SdkBug {
1700
+ /** Output only. How severe the SDK bug is. */
1701
+ severity?:
1702
+ string;
1703
+ /** Output only. Describes the impact of this SDK bug. */
1704
+ type?:
1705
+ string;
1706
+ /** Output only. Link to more information on the bug. */
1707
+ uri?:
1708
+ string;
1709
+ }
1661
1710
  interface SdkHarnessContainerImage {
1662
1711
  /**
1663
1712
  * The set of capabilities enumerated in the above Environment proto. See also
@@ -1687,6 +1736,9 @@ declare namespace gapi.client {
1687
1736
  string;
1688
1737
  }
1689
1738
  interface SdkVersion {
1739
+ /** Output only. Known bugs found in this SDK version. */
1740
+ bugs?:
1741
+ SdkBug[];
1690
1742
  /** The support status for this SDK version. */
1691
1743
  sdkSupportStatus?:
1692
1744
  string;
@@ -2415,6 +2467,9 @@ declare namespace gapi.client {
2415
2467
  { [P in string]: string };
2416
2468
  }
2417
2469
  interface WorkerMessage {
2470
+ /** Optional. Contains metrics related to go/dataflow-data-sampling-telemetry. */
2471
+ dataSamplingReport?:
2472
+ DataSamplingReport;
2418
2473
  /**
2419
2474
  * Labels are used to group WorkerMessages. For example, a worker_message about a particular container might have the labels: { "JOB_ID": "2015-04-22", "WORKER_ID":
2420
2475
  * "wordcount-vm-2015…" "CONTAINER_TYPE": "worker", "CONTAINER_ID": "ac1234def"} Label tags typically correspond to Label enum values. However, for ease of development other strings
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.dataflow-v1b3",
3
- "version": "0.0.20230708",
3
+ "version": "0.0.20230729",
4
4
  "description": "TypeScript typings for Dataflow API v1b3",
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: 20230708
6
+ // Revision: 20230729
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -48,6 +48,15 @@ gapi.load('client', async () => {
48
48
  location: "Test string",
49
49
  workerMessages: [
50
50
  {
51
+ dataSamplingReport: {
52
+ bytesWrittenDelta: "Test string",
53
+ elementsSampledBytes: "Test string",
54
+ elementsSampledCount: "Test string",
55
+ exceptionsSampledCount: "Test string",
56
+ pcollectionsSampledCount: "Test string",
57
+ persistenceErrorsCount: "Test string",
58
+ translationErrorsCount: "Test string",
59
+ },
51
60
  labels: {
52
61
  A: "Test string"
53
62
  },
@@ -136,6 +145,11 @@ gapi.load('client', async () => {
136
145
  clusterManagerApiService: "Test string",
137
146
  dataset: "Test string",
138
147
  debugOptions: {
148
+ dataSampling: {
149
+ behaviors: [
150
+ "Test string"
151
+ ],
152
+ },
139
153
  enableHotKeyLogging: true,
140
154
  },
141
155
  experiments: [
@@ -158,6 +172,7 @@ gapi.load('client', async () => {
158
172
  userAgent: {
159
173
  A: 42
160
174
  },
175
+ useStreamingEngineResourceBasedBilling: true,
161
176
  version: {
162
177
  A: 42
163
178
  },
@@ -290,6 +305,13 @@ gapi.load('client', async () => {
290
305
  }
291
306
  ],
292
307
  sdkVersion: {
308
+ bugs: [
309
+ {
310
+ severity: "Test string",
311
+ type: "Test string",
312
+ uri: "Test string",
313
+ }
314
+ ],
293
315
  sdkSupportStatus: "Test string",
294
316
  version: "Test string",
295
317
  versionDisplayName: "Test string",
@@ -500,6 +522,11 @@ gapi.load('client', async () => {
500
522
  clusterManagerApiService: "Test string",
501
523
  dataset: "Test string",
502
524
  debugOptions: {
525
+ dataSampling: {
526
+ behaviors: [
527
+ "Test string"
528
+ ],
529
+ },
503
530
  enableHotKeyLogging: true,
504
531
  },
505
532
  experiments: [
@@ -522,6 +549,7 @@ gapi.load('client', async () => {
522
549
  userAgent: {
523
550
  A: 42
524
551
  },
552
+ useStreamingEngineResourceBasedBilling: true,
525
553
  version: {
526
554
  A: 42
527
555
  },
@@ -654,6 +682,13 @@ gapi.load('client', async () => {
654
682
  }
655
683
  ],
656
684
  sdkVersion: {
685
+ bugs: [
686
+ {
687
+ severity: "Test string",
688
+ type: "Test string",
689
+ uri: "Test string",
690
+ }
691
+ ],
657
692
  sdkSupportStatus: "Test string",
658
693
  version: "Test string",
659
694
  versionDisplayName: "Test string",
@@ -1260,6 +1295,15 @@ gapi.load('client', async () => {
1260
1295
  location: "Test string",
1261
1296
  workerMessages: [
1262
1297
  {
1298
+ dataSamplingReport: {
1299
+ bytesWrittenDelta: "Test string",
1300
+ elementsSampledBytes: "Test string",
1301
+ elementsSampledCount: "Test string",
1302
+ exceptionsSampledCount: "Test string",
1303
+ pcollectionsSampledCount: "Test string",
1304
+ persistenceErrorsCount: "Test string",
1305
+ translationErrorsCount: "Test string",
1306
+ },
1263
1307
  labels: {
1264
1308
  A: "Test string"
1265
1309
  },
@@ -1460,6 +1504,11 @@ gapi.load('client', async () => {
1460
1504
  clusterManagerApiService: "Test string",
1461
1505
  dataset: "Test string",
1462
1506
  debugOptions: {
1507
+ dataSampling: {
1508
+ behaviors: [
1509
+ "Test string"
1510
+ ],
1511
+ },
1463
1512
  enableHotKeyLogging: true,
1464
1513
  },
1465
1514
  experiments: [
@@ -1482,6 +1531,7 @@ gapi.load('client', async () => {
1482
1531
  userAgent: {
1483
1532
  A: 42
1484
1533
  },
1534
+ useStreamingEngineResourceBasedBilling: true,
1485
1535
  version: {
1486
1536
  A: 42
1487
1537
  },
@@ -1614,6 +1664,13 @@ gapi.load('client', async () => {
1614
1664
  }
1615
1665
  ],
1616
1666
  sdkVersion: {
1667
+ bugs: [
1668
+ {
1669
+ severity: "Test string",
1670
+ type: "Test string",
1671
+ uri: "Test string",
1672
+ }
1673
+ ],
1617
1674
  sdkSupportStatus: "Test string",
1618
1675
  version: "Test string",
1619
1676
  versionDisplayName: "Test string",
@@ -1833,6 +1890,11 @@ gapi.load('client', async () => {
1833
1890
  clusterManagerApiService: "Test string",
1834
1891
  dataset: "Test string",
1835
1892
  debugOptions: {
1893
+ dataSampling: {
1894
+ behaviors: [
1895
+ "Test string"
1896
+ ],
1897
+ },
1836
1898
  enableHotKeyLogging: true,
1837
1899
  },
1838
1900
  experiments: [
@@ -1855,6 +1917,7 @@ gapi.load('client', async () => {
1855
1917
  userAgent: {
1856
1918
  A: 42
1857
1919
  },
1920
+ useStreamingEngineResourceBasedBilling: true,
1858
1921
  version: {
1859
1922
  A: 42
1860
1923
  },
@@ -1987,6 +2050,13 @@ gapi.load('client', async () => {
1987
2050
  }
1988
2051
  ],
1989
2052
  sdkVersion: {
2053
+ bugs: [
2054
+ {
2055
+ severity: "Test string",
2056
+ type: "Test string",
2057
+ uri: "Test string",
2058
+ }
2059
+ ],
1990
2060
  sdkSupportStatus: "Test string",
1991
2061
  version: "Test string",
1992
2062
  versionDisplayName: "Test string",