@maxim_mazurok/gapi.client.dataplex-v1 0.0.20230607 → 0.0.20230616

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 +33 -18
  2. package/package.json +1 -1
  3. package/tests.ts +11 -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://dataplex.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230607
12
+ // Revision: 20230616
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -515,8 +515,8 @@ declare namespace gapi.client {
515
515
  stringProfile?:
516
516
  GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo;
517
517
  /**
518
- * The list of top N non-null values and number of times they occur in the scanned data. N is 10 or equal to the number of distinct values in the field, whichever is smaller. Not
519
- * available for complex non-groupable field type RECORD and fields with REPEATABLE mode.
518
+ * The list of top N non-null values, frequency and ratio with which they occur in the scanned data. N is 10 or equal to the number of distinct values in the field, whichever is
519
+ * smaller. Not available for complex non-groupable field type RECORD and fields with REPEATABLE mode.
520
520
  */
521
521
  topNValues?:
522
522
  GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue[];
@@ -580,6 +580,9 @@ declare namespace gapi.client {
580
580
  /** Count of the corresponding value in the scanned data. */
581
581
  count?:
582
582
  string;
583
+ /** Ratio of the corresponding value in the field against the total number of rows in the scanned data. */
584
+ ratio?:
585
+ number;
583
586
  /** String value of a top N non-null value. */
584
587
  value?:
585
588
  string;
@@ -638,6 +641,9 @@ declare namespace gapi.client {
638
641
  /** Optional. The unnested column which this rule is evaluated against. */
639
642
  column?:
640
643
  string;
644
+ /** Optional. Description of the rule. The maximum length is 1,024 characters. */
645
+ description?:
646
+ string;
641
647
  /**
642
648
  * Required. The dimension a rule belongs to. Results are also aggregated at the dimension level. Supported dimensions are "COMPLETENESS", "ACCURACY", "CONSISTENCY", "VALIDITY",
643
649
  * "UNIQUENESS", "INTEGRITY"
@@ -645,36 +651,45 @@ declare namespace gapi.client {
645
651
  dimension?:
646
652
  string;
647
653
  /**
648
- * Optional. Rows with null values will automatically fail a rule, unless ignore_null is true. In that case, such null rows are trivially considered passing.Only applicable to
649
- * ColumnMap rules.
654
+ * Optional. Rows with null values will automatically fail a rule, unless ignore_null is true. In that case, such null rows are trivially considered passing.This field is only valid
655
+ * for row-level type rules.
650
656
  */
651
657
  ignoreNull?:
652
658
  boolean;
653
- /** ColumnMap rule which evaluates whether each column value is null. */
659
+ /**
660
+ * Optional. A mutable name for the rule. The name must contain only letters (a-z, A-Z), numbers (0-9), or hyphens (-). The maximum length is 63 characters. Must start with a letter.
661
+ * Must end with a number or a letter.
662
+ */
663
+ name?:
664
+ string;
665
+ /** Row-level rule which evaluates whether each column value is null. */
654
666
  nonNullExpectation?:
655
667
  any;
656
- /** ColumnMap rule which evaluates whether each column value lies between a specified range. */
668
+ /** Row-level rule which evaluates whether each column value lies between a specified range. */
657
669
  rangeExpectation?:
658
670
  GoogleCloudDataplexV1DataQualityRuleRangeExpectation;
659
- /** ColumnMap rule which evaluates whether each column value matches a specified regex. */
671
+ /** Row-level rule which evaluates whether each column value matches a specified regex. */
660
672
  regexExpectation?:
661
673
  GoogleCloudDataplexV1DataQualityRuleRegexExpectation;
662
- /** Table rule which evaluates whether each row passes the specified condition. */
674
+ /** Row-level rule which evaluates whether each row in a table passes the specified condition. */
663
675
  rowConditionExpectation?:
664
676
  GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation;
665
- /** ColumnMap rule which evaluates whether each column value is contained by a specified set. */
677
+ /** Row-level rule which evaluates whether each column value is contained by a specified set. */
666
678
  setExpectation?:
667
679
  GoogleCloudDataplexV1DataQualityRuleSetExpectation;
668
- /** ColumnAggregate rule which evaluates whether the column aggregate statistic lies between a specified range. */
680
+ /** Aggregate rule which evaluates whether the column aggregate statistic lies between a specified range. */
669
681
  statisticRangeExpectation?:
670
682
  GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation;
671
- /** Table rule which evaluates whether the provided expression is true. */
683
+ /** Aggregate rule which evaluates whether the provided expression is true for a table. */
672
684
  tableConditionExpectation?:
673
685
  GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation;
674
- /** Optional. The minimum ratio of passing_rows / total_rows required to pass this rule, with a range of 0.0, 1.0.0 indicates default value (i.e. 1.0). */
686
+ /**
687
+ * Optional. The minimum ratio of passing_rows / total_rows required to pass this rule, with a range of 0.0, 1.0.0 indicates default value (i.e. 1.0).This field is only valid for
688
+ * row-level type rules.
689
+ */
675
690
  threshold?:
676
691
  number;
677
- /** ColumnAggregate rule which evaluates whether the column has duplicates. */
692
+ /** Aggregate rule which evaluates whether the column has duplicates. */
678
693
  uniquenessExpectation?:
679
694
  any;
680
695
  }
@@ -702,12 +717,12 @@ declare namespace gapi.client {
702
717
  }
703
718
  interface GoogleCloudDataplexV1DataQualityRuleResult {
704
719
  /**
705
- * The number of rows a rule was evaluated against. This field is only valid for ColumnMap type rules.Evaluated count can be configured to either include all rows (default) - with null
720
+ * The number of rows a rule was evaluated against.This field is only valid for row-level type rules.Evaluated count can be configured to either include all rows (default) - with null
706
721
  * rows automatically failing rule evaluation, or exclude null rows from the evaluated_count, by setting ignore_nulls = true.
707
722
  */
708
723
  evaluatedCount?:
709
724
  string;
710
- /** The query to find rows that did not pass this rule. Only applies to ColumnMap and RowCondition rules. */
725
+ /** The query to find rows that did not pass this rule.This field is only valid for row-level type rules. */
711
726
  failingRowsQuery?:
712
727
  string;
713
728
  /** The number of rows with null values in the specified column. */
@@ -716,10 +731,10 @@ declare namespace gapi.client {
716
731
  /** Whether the rule passed or failed. */
717
732
  passed?:
718
733
  boolean;
719
- /** The number of rows which passed a rule evaluation. This field is only valid for ColumnMap type rules. */
734
+ /** The number of rows which passed a rule evaluation.This field is only valid for row-level type rules. */
720
735
  passedCount?:
721
736
  string;
722
- /** The ratio of passed_count / evaluated_count. This field is only valid for ColumnMap type rules. */
737
+ /** The ratio of passed_count / evaluated_count.This field is only valid for row-level type rules. */
723
738
  passRatio?:
724
739
  number;
725
740
  /** The rule specified in the DataQualitySpec, as is. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.dataplex-v1",
3
- "version": "0.0.20230607",
3
+ "version": "0.0.20230616",
4
4
  "description": "TypeScript typings for Cloud Dataplex 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: 20230607
6
+ // Revision: 20230616
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -267,6 +267,7 @@ gapi.load('client', async () => {
267
267
  topNValues: [
268
268
  {
269
269
  count: "Test string",
270
+ ratio: 42,
270
271
  value: "Test string",
271
272
  }
272
273
  ],
@@ -316,8 +317,10 @@ gapi.load('client', async () => {
316
317
  passRatio: 42,
317
318
  rule: {
318
319
  column: "Test string",
320
+ description: "Test string",
319
321
  dimension: "Test string",
320
322
  ignoreNull: true,
323
+ name: "Test string",
321
324
  nonNullExpectation: {
322
325
  },
323
326
  rangeExpectation: {
@@ -366,8 +369,10 @@ gapi.load('client', async () => {
366
369
  rules: [
367
370
  {
368
371
  column: "Test string",
372
+ description: "Test string",
369
373
  dimension: "Test string",
370
374
  ignoreNull: true,
375
+ name: "Test string",
371
376
  nonNullExpectation: {
372
377
  },
373
378
  rangeExpectation: {
@@ -497,6 +502,7 @@ gapi.load('client', async () => {
497
502
  topNValues: [
498
503
  {
499
504
  count: "Test string",
505
+ ratio: 42,
500
506
  value: "Test string",
501
507
  }
502
508
  ],
@@ -546,8 +552,10 @@ gapi.load('client', async () => {
546
552
  passRatio: 42,
547
553
  rule: {
548
554
  column: "Test string",
555
+ description: "Test string",
549
556
  dimension: "Test string",
550
557
  ignoreNull: true,
558
+ name: "Test string",
551
559
  nonNullExpectation: {
552
560
  },
553
561
  rangeExpectation: {
@@ -596,8 +604,10 @@ gapi.load('client', async () => {
596
604
  rules: [
597
605
  {
598
606
  column: "Test string",
607
+ description: "Test string",
599
608
  dimension: "Test string",
600
609
  ignoreNull: true,
610
+ name: "Test string",
601
611
  nonNullExpectation: {
602
612
  },
603
613
  rangeExpectation: {