@maxim_mazurok/gapi.client.datamigration-v1 0.0.20230622 → 0.0.20230703

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 +733 -40
  2. package/package.json +1 -1
  3. package/tests.ts +231 -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://datamigration.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230622
12
+ // Revision: 20230703
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -53,21 +53,37 @@ declare namespace gapi.client {
53
53
  string;
54
54
  }
55
55
  interface ApplyConversionWorkspaceRequest {
56
- /** Fully qualified (Uri) name of the destination connection profile. */
56
+ /** Optional. Specifies whether the conversion workspace is to be committed automatically after the apply. */
57
+ autoCommit?:
58
+ boolean;
59
+ /** Optional. Fully qualified (Uri) name of the destination connection profile. */
57
60
  connectionProfile?:
58
61
  string;
62
+ /** Optional. Only validates the apply process, but doesn't change the destination database. Only works for PostgreSQL destination connection profile. */
63
+ dryRun?:
64
+ boolean;
59
65
  /** Filter which entities to apply. Leaving this field empty will apply all of the entities. Supports Google AIP 160 based filtering. */
60
66
  filter?:
61
67
  string;
62
68
  }
69
+ interface ApplyHash {
70
+ /** Optional. Generate UUID from the data's byte array */
71
+ uuidFromBytes?:
72
+ any;
73
+ }
63
74
  interface ApplyJobDetails {
64
- /** The connection profile which was used for the apply job. */
75
+ /** Output only. The connection profile which was used for the apply job. */
65
76
  connectionProfile?:
66
77
  string;
67
- /** AIP-160 based filter used to specify the entities to apply */
78
+ /** Output only. AIP-160 based filter used to specify the entities to apply */
68
79
  filter?:
69
80
  string;
70
81
  }
82
+ interface AssignSpecificValue {
83
+ /** Required. Specific value to be assigned */
84
+ value?:
85
+ string;
86
+ }
71
87
  interface AuditConfig {
72
88
  /** The configuration for logging of each type of permission. */
73
89
  auditLogConfigs?:
@@ -88,16 +104,16 @@ declare namespace gapi.client {
88
104
  string;
89
105
  }
90
106
  interface BackgroundJobLogEntry {
91
- /** Apply job details. */
107
+ /** Output only. Apply job details. */
92
108
  applyJobDetails?:
93
109
  ApplyJobDetails;
94
- /** Job completion comment, such as how many entities were seeded, how many warnings were found during conversion, and similar information. */
110
+ /** Output only. Job completion comment, such as how many entities were seeded, how many warnings were found during conversion, and similar information. */
95
111
  completionComment?:
96
112
  string;
97
- /** Job completion state, i.e. the final state after the job completed. */
113
+ /** Output only. Job completion state, i.e. the final state after the job completed. */
98
114
  completionState?:
99
115
  string;
100
- /** Convert job details. */
116
+ /** Output only. Convert job details. */
101
117
  convertJobDetails?:
102
118
  ConvertJobDetails;
103
119
  /** The timestamp when the background job was finished. */
@@ -106,16 +122,16 @@ declare namespace gapi.client {
106
122
  /** The background job log entry ID. */
107
123
  id?:
108
124
  string;
109
- /** Import rules job details. */
125
+ /** Output only. Import rules job details. */
110
126
  importRulesJobDetails?:
111
127
  ImportRulesJobDetails;
112
128
  /** The type of job that was executed. */
113
129
  jobType?:
114
130
  string;
115
- /** Whether the client requested the conversion workspace to be committed after a successful completion of the job. */
131
+ /** Output only. Whether the client requested the conversion workspace to be committed after a successful completion of the job. */
116
132
  requestAutocommit?:
117
133
  boolean;
118
- /** Seed job details. */
134
+ /** Output only. Seed job details. */
119
135
  seedJobDetails?:
120
136
  SeedJobDetails;
121
137
  /** The timestamp when the background job was started. */
@@ -313,6 +329,20 @@ declare namespace gapi.client {
313
329
  commitName?:
314
330
  string;
315
331
  }
332
+ interface ConditionalColumnSetValue {
333
+ /** Optional. Custom engine specific features. */
334
+ customFeatures?:
335
+ { [P in string]: any };
336
+ /** Optional. Optional filter on source column precision and scale. Used for fixed point numbers such as NUMERIC/NUMBER data types. */
337
+ sourceNumericFilter?:
338
+ SourceNumericFilter;
339
+ /** Optional. Optional filter on source column length. Used for text based data types like varchar. */
340
+ sourceTextFilter?:
341
+ SourceTextFilter;
342
+ /** Required. Description of data transformation during migration. */
343
+ valueTransformation?:
344
+ ValueTransformation;
345
+ }
316
346
  interface ConnectionProfile {
317
347
  /** An AlloyDB cluster connection profile. */
318
348
  alloydb?:
@@ -396,12 +426,12 @@ declare namespace gapi.client {
396
426
  /** Required. The destination engine details. */
397
427
  destination?:
398
428
  DatabaseEngineInfo;
399
- /** The display name for the workspace. */
429
+ /** Optional. The display name for the workspace. */
400
430
  displayName?:
401
431
  string;
402
432
  /**
403
- * A generic list of settings for the workspace. The settings are database pair dependant and can indicate default behavior for the mapping rules engine or turn on or off specific
404
- * features. Such examples can be: convert_foreign_key_to_interleave=true, skip_triggers=false, ignore_non_table_synonyms=true
433
+ * Optional. A generic list of settings for the workspace. The settings are database pair dependant and can indicate default behavior for the mapping rules engine or turn on or off
434
+ * specific features. Such examples can be: convert_foreign_key_to_interleave=true, skip_triggers=false, ignore_non_table_synonyms=true
405
435
  */
406
436
  globalSettings?:
407
437
  { [P in string]: string };
@@ -433,18 +463,29 @@ declare namespace gapi.client {
433
463
  string;
434
464
  }
435
465
  interface ConvertConversionWorkspaceRequest {
436
- /** Specifies whether the conversion workspace is to be committed automatically after the conversion. */
466
+ /** Optional. Specifies whether the conversion workspace is to be committed automatically after the conversion. */
437
467
  autoCommit?:
438
468
  boolean;
439
- /** Filter the entities to convert. Leaving this field empty will convert all of the entities. Supports Google AIP-160 style filtering. */
469
+ /**
470
+ * Optional. Automatically convert the full entity path for each entity specified by the filter. For example, if the filter specifies a table, that table schema (and database if there
471
+ * is one) will also be converted.
472
+ */
473
+ convertFullPath?:
474
+ boolean;
475
+ /** Optional. Filter the entities to convert. Leaving this field empty will convert all of the entities. Supports Google AIP-160 style filtering. */
440
476
  filter?:
441
477
  string;
442
478
  }
443
479
  interface ConvertJobDetails {
444
- /** AIP-160 based filter used to specify the entities to convert */
480
+ /** Output only. AIP-160 based filter used to specify the entities to convert */
445
481
  filter?:
446
482
  string;
447
483
  }
484
+ interface ConvertRowIdToColumn {
485
+ /** Required. Only work on tables without primary key defined */
486
+ onlyIfNoPrimaryKey?:
487
+ boolean;
488
+ }
448
489
  interface DatabaseEngineInfo {
449
490
  /** Required. Engine type. */
450
491
  engine?:
@@ -454,21 +495,36 @@ declare namespace gapi.client {
454
495
  string;
455
496
  }
456
497
  interface DatabaseEntity {
498
+ /** Database. */
499
+ database?:
500
+ DatabaseInstanceEntity;
457
501
  /** Function. */
458
502
  databaseFunction?:
459
503
  FunctionEntity;
460
504
  /** Package. */
461
505
  databasePackage?:
462
506
  PackageEntity;
507
+ /**
508
+ * Details about the entity DDL script. Multiple DDL scripts are provided for child entities such as a table entity will have one DDL for the table with additional DDLs for each index,
509
+ * constraint and such.
510
+ */
511
+ entityDdl?:
512
+ EntityDdl[];
463
513
  /** The type of the database entity (table, view, index, ...). */
464
514
  entityType?:
465
515
  string;
516
+ /** Details about the various issues found for the entity. */
517
+ issues?:
518
+ EntityIssue[];
466
519
  /**
467
520
  * Details about entity mappings. For source tree entities, this holds the draft entities which were generated by the mapping rules. For draft tree entities, this holds the source
468
521
  * entities which were converted to form the draft entity. Destination entities will have no mapping details.
469
522
  */
470
523
  mappings?:
471
524
  EntityMapping[];
525
+ /** Materialized view. */
526
+ materializedView?:
527
+ MaterializedViewEntity;
472
528
  /** The full name of the parent entity (e.g. schema name). */
473
529
  parentEntity?:
474
530
  string;
@@ -493,10 +549,18 @@ declare namespace gapi.client {
493
549
  /** The type of tree the entity belongs to. */
494
550
  tree?:
495
551
  string;
552
+ /** UDT. */
553
+ udt?:
554
+ UDTEntity;
496
555
  /** View. */
497
556
  view?:
498
557
  ViewEntity;
499
558
  }
559
+ interface DatabaseInstanceEntity {
560
+ /** Custom engine specific features. */
561
+ customFeatures?:
562
+ { [P in string]: any };
563
+ }
500
564
  interface DatabaseType {
501
565
  /** The database engine. */
502
566
  engine?:
@@ -518,6 +582,14 @@ declare namespace gapi.client {
518
582
  nextPageToken?:
519
583
  string;
520
584
  }
585
+ interface DoubleComparisonFilter {
586
+ /** Required. Double compare value to be used */
587
+ value?:
588
+ number;
589
+ /** Required. Relation between source value and compare value */
590
+ valueComparison?:
591
+ string;
592
+ }
521
593
  interface DumpFlag {
522
594
  /** The name of the flag */
523
595
  name?:
@@ -542,6 +614,49 @@ declare namespace gapi.client {
542
614
  kmsKeyName?:
543
615
  string;
544
616
  }
617
+ interface EntityDdl {
618
+ /** The actual ddl code. */
619
+ ddl?:
620
+ string;
621
+ /** Type of DDL (Create, Alter). */
622
+ ddlType?:
623
+ string;
624
+ /** The name of the database entity the ddl refers to. */
625
+ entity?:
626
+ string;
627
+ /** The entity type (if the DDL is for a sub entity). */
628
+ entityType?:
629
+ string;
630
+ /** EntityIssues found for this ddl. */
631
+ issueId?:
632
+ string[];
633
+ }
634
+ interface EntityIssue {
635
+ /** Error/Warning code */
636
+ code?:
637
+ string;
638
+ /** The ddl which caused the issue, if relevant. */
639
+ ddl?:
640
+ string;
641
+ /** The entity type (if the DDL is for a sub entity). */
642
+ entityType?:
643
+ string;
644
+ /** Unique Issue ID. */
645
+ id?:
646
+ string;
647
+ /** Issue detailed message */
648
+ message?:
649
+ string;
650
+ /** The position of the issue found, if relevant. */
651
+ position?:
652
+ Position;
653
+ /** Severity of the issue */
654
+ severity?:
655
+ string;
656
+ /** The type of the issue. */
657
+ type?:
658
+ string;
659
+ }
545
660
  interface EntityMapping {
546
661
  /** Target entity full name. The draft entity can also include a column, index or constraint using the same naming notation schema.table.column. */
547
662
  draftEntity?:
@@ -573,6 +688,11 @@ declare namespace gapi.client {
573
688
  ruleRevisionId?:
574
689
  string;
575
690
  }
691
+ interface EntityMove {
692
+ /** Required. The new schema */
693
+ newSchema?:
694
+ string;
695
+ }
576
696
  interface Expr {
577
697
  /** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
578
698
  description?:
@@ -595,6 +715,14 @@ declare namespace gapi.client {
595
715
  staticIps?:
596
716
  string[];
597
717
  }
718
+ interface FilterTableColumns {
719
+ /** Optional. List of columns to be excluded for a particular table. */
720
+ excludeColumns?:
721
+ string[];
722
+ /** Optional. List of columns to be included for a particular table. */
723
+ includeColumns?:
724
+ string[];
725
+ }
598
726
  interface ForwardSshTunnelConnectivity {
599
727
  /** Required. Hostname for the SSH tunnel. */
600
728
  hostname?:
@@ -681,21 +809,21 @@ declare namespace gapi.client {
681
809
  string;
682
810
  }
683
811
  interface ImportMappingRulesRequest {
684
- /** Should the conversion workspace be committed automatically after the import operation. */
812
+ /** Required. Should the conversion workspace be committed automatically after the import operation. */
685
813
  autoCommit?:
686
814
  boolean;
687
- /** One or more rules files. */
815
+ /** Required. One or more rules files. */
688
816
  rulesFiles?:
689
817
  RulesFile[];
690
- /** The format of the rules content file. */
818
+ /** Required. The format of the rules content file. */
691
819
  rulesFormat?:
692
820
  string;
693
821
  }
694
822
  interface ImportRulesJobDetails {
695
- /** The requested file format. */
823
+ /** Output only. The requested file format. */
696
824
  fileFormat?:
697
825
  string;
698
- /** File names used for the import rules job. */
826
+ /** Output only. File names used for the import rules job. */
699
827
  files?:
700
828
  string[];
701
829
  }
@@ -716,6 +844,14 @@ declare namespace gapi.client {
716
844
  unique?:
717
845
  boolean;
718
846
  }
847
+ interface IntComparisonFilter {
848
+ /** Required. Integer compare value to be used */
849
+ value?:
850
+ string;
851
+ /** Required. Relation between source value and compare value */
852
+ valueComparison?:
853
+ string;
854
+ }
719
855
  interface ListConnectionProfilesResponse {
720
856
  /** The response list of connection profiles. */
721
857
  connectionProfiles?:
@@ -746,6 +882,14 @@ declare namespace gapi.client {
746
882
  nextPageToken?:
747
883
  string;
748
884
  }
885
+ interface ListMappingRulesResponse {
886
+ /** The list of conversion workspace mapping rules. */
887
+ mappingRules?:
888
+ MappingRule[];
889
+ /** A token which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
890
+ nextPageToken?:
891
+ string;
892
+ }
749
893
  interface ListMigrationJobsResponse {
750
894
  /** The list of migration jobs objects. */
751
895
  migrationJobs?:
@@ -798,6 +942,93 @@ declare namespace gapi.client {
798
942
  cpuCount?:
799
943
  number;
800
944
  }
945
+ interface MappingRule {
946
+ /** Optional. Rule to specify how the data contained in a column should be transformed (such as trimmed, rounded, etc) provided that the data meets certain criteria. */
947
+ conditionalColumnSetValue?:
948
+ ConditionalColumnSetValue;
949
+ /** Optional. Rule to specify how multiple tables should be converted with an additional rowid column. */
950
+ convertRowidColumn?:
951
+ ConvertRowIdToColumn;
952
+ /** Optional. A human readable name */
953
+ displayName?:
954
+ string;
955
+ /** Optional. Rule to specify how multiple entities should be relocated into a different schema. */
956
+ entityMove?:
957
+ EntityMove;
958
+ /** Required. The rule filter */
959
+ filter?:
960
+ MappingRuleFilter;
961
+ /** Optional. Rule to specify the list of columns to include or exclude from a table. */
962
+ filterTableColumns?:
963
+ FilterTableColumns;
964
+ /** Optional. Rule to specify how multiple columns should be converted to a different data type. */
965
+ multiColumnDataTypeChange?:
966
+ MultiColumnDatatypeChange;
967
+ /** Optional. Rule to specify how multiple entities should be renamed. */
968
+ multiEntityRename?:
969
+ MultiEntityRename;
970
+ /** Full name of the mapping rule resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}. */
971
+ name?:
972
+ string;
973
+ /** Output only. The timestamp that the revision was created. */
974
+ revisionCreateTime?:
975
+ string;
976
+ /** Output only. The revision ID of the mapping rule. A new revision is committed whenever the mapping rule is changed in any way. The format is an 8-character hexadecimal string. */
977
+ revisionId?:
978
+ string;
979
+ /** Required. The order in which the rule is applied. Lower order rules are applied before higher value rules so they may end up being overridden. */
980
+ ruleOrder?:
981
+ string;
982
+ /** Required. The rule scope */
983
+ ruleScope?:
984
+ string;
985
+ /** Optional. Rule to specify the primary key for a table */
986
+ setTablePrimaryKey?:
987
+ SetTablePrimaryKey;
988
+ /** Optional. Rule to specify how a single column is converted. */
989
+ singleColumnChange?:
990
+ SingleColumnChange;
991
+ /** Optional. Rule to specify how a single entity should be renamed. */
992
+ singleEntityRename?:
993
+ SingleEntityRename;
994
+ /** Optional. Rule to specify how a single package is converted. */
995
+ singlePackageChange?:
996
+ SinglePackageChange;
997
+ /** Optional. Rule to change the sql code for an entity, for example, function, procedure. */
998
+ sourceSqlChange?:
999
+ SourceSqlChange;
1000
+ /** Optional. The mapping rule state */
1001
+ state?:
1002
+ string;
1003
+ }
1004
+ interface MappingRuleFilter {
1005
+ /** Optional. The rule should be applied to specific entities defined by their fully qualified names. */
1006
+ entities?:
1007
+ string[];
1008
+ /** Optional. The rule should be applied to entities whose non-qualified name contains the given string. */
1009
+ entityNameContains?:
1010
+ string;
1011
+ /** Optional. The rule should be applied to entities whose non-qualified name starts with the given prefix. */
1012
+ entityNamePrefix?:
1013
+ string;
1014
+ /** Optional. The rule should be applied to entities whose non-qualified name ends with the given suffix. */
1015
+ entityNameSuffix?:
1016
+ string;
1017
+ /**
1018
+ * Optional. The rule should be applied to entities whose parent entity (fully qualified name) matches the given value. For example, if the rule applies to a table entity, the expected
1019
+ * value should be a schema (schema). If the rule applies to a column or index entity, the expected value can be either a schema (schema) or a table (schema.table)
1020
+ */
1021
+ parentEntity?:
1022
+ string;
1023
+ }
1024
+ interface MaterializedViewEntity {
1025
+ /** Custom engine specific features. */
1026
+ customFeatures?:
1027
+ { [P in string]: any };
1028
+ /** The SQL code which creates the view. */
1029
+ sqlCode?:
1030
+ string;
1031
+ }
801
1032
  interface MigrationJob {
802
1033
  /**
803
1034
  * The CMEK (customer-managed encryption key) fully qualified key name used for the migration job. This field supports all migration jobs types except for: * Mysql to Mysql (use the
@@ -894,6 +1125,49 @@ declare namespace gapi.client {
894
1125
  errorMessage?:
895
1126
  string;
896
1127
  }
1128
+ interface MultiColumnDatatypeChange {
1129
+ /** Optional. Custom engine specific features. */
1130
+ customFeatures?:
1131
+ { [P in string]: any };
1132
+ /** Required. New data type. */
1133
+ newDataType?:
1134
+ string;
1135
+ /** Optional. Column fractional seconds precision - used only for timestamp based datatypes - if not specified and relevant uses the source column fractional seconds precision. */
1136
+ overrideFractionalSecondsPrecision?:
1137
+ number;
1138
+ /** Optional. Column length - e.g. varchar (50) - if not specified and relevant uses the source column length. */
1139
+ overrideLength?:
1140
+ string;
1141
+ /** Optional. Column precision - when relevant - if not specified and relevant uses the source column precision. */
1142
+ overridePrecision?:
1143
+ number;
1144
+ /** Optional. Column scale - when relevant - if not specified and relevant uses the source column scale. */
1145
+ overrideScale?:
1146
+ number;
1147
+ /** Required. Filter on source data type. */
1148
+ sourceDataTypeFilter?:
1149
+ string;
1150
+ /** Optional. Filter for fixed point number data types such as NUMERIC/NUMBER. */
1151
+ sourceNumericFilter?:
1152
+ SourceNumericFilter;
1153
+ /** Optional. Filter for text-based data types like varchar. */
1154
+ sourceTextFilter?:
1155
+ SourceTextFilter;
1156
+ }
1157
+ interface MultiEntityRename {
1158
+ /**
1159
+ * Optional. The pattern used to generate the new entity's name. This pattern must include the characters '{name}', which will be replaced with the name of the original entity. For
1160
+ * example, the pattern 't_{name}' for an entity name jobs would be converted to 't_jobs'. If unspecified, the default value for this field is '{name}'
1161
+ */
1162
+ newNamePattern?:
1163
+ string;
1164
+ /**
1165
+ * Optional. Additional transformation that can be done on the source entity name before it is being used by the new_name_pattern, for example lower case. If no transformation is
1166
+ * desired, use NO_TRANSFORMATION
1167
+ */
1168
+ sourceNameTransformation?:
1169
+ string;
1170
+ }
897
1171
  interface MySqlConnectionProfile {
898
1172
  /** If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source. */
899
1173
  cloudSqlId?:
@@ -1028,6 +1302,20 @@ declare namespace gapi.client {
1028
1302
  version?:
1029
1303
  number;
1030
1304
  }
1305
+ interface Position {
1306
+ /** Issue column number */
1307
+ column?:
1308
+ number;
1309
+ /** Issue length */
1310
+ length?:
1311
+ number;
1312
+ /** Issue line number */
1313
+ line?:
1314
+ number;
1315
+ /** Issue offset */
1316
+ offset?:
1317
+ number;
1318
+ }
1031
1319
  interface PostgreSqlConnectionProfile {
1032
1320
  /** If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source. */
1033
1321
  cloudSqlId?:
@@ -1145,11 +1433,19 @@ declare namespace gapi.client {
1145
1433
  // tslint:disable-next-line:no-empty-interface
1146
1434
  interface RollbackConversionWorkspaceRequest {
1147
1435
  }
1436
+ interface RoundToScale {
1437
+ /** Required. Scale value to be used */
1438
+ scale?:
1439
+ number;
1440
+ }
1148
1441
  interface RulesFile {
1149
- /** The text content of the rules that needs to be converted. */
1442
+ /** Required. The text content of the rules that needs to be converted. */
1150
1443
  rulesContent?:
1151
1444
  string;
1152
- /** The filename of the rules that needs to be converted. The filename is used mainly so that future logs of the import rules job contain it, and can therefore be searched by it. */
1445
+ /**
1446
+ * Required. The filename of the rules that needs to be converted. The filename is used mainly so that future logs of the import rules job contain it, and can therefore be searched by
1447
+ * it.
1448
+ */
1153
1449
  rulesSourceFilename?:
1154
1450
  string;
1155
1451
  }
@@ -1167,15 +1463,15 @@ declare namespace gapi.client {
1167
1463
  /** Should the conversion workspace be committed automatically after the seed operation. */
1168
1464
  autoCommit?:
1169
1465
  boolean;
1170
- /** Fully qualified (Uri) name of the destination connection profile. */
1466
+ /** Optional. Fully qualified (Uri) name of the destination connection profile. */
1171
1467
  destinationConnectionProfile?:
1172
1468
  string;
1173
- /** Fully qualified (Uri) name of the source connection profile. */
1469
+ /** Optional. Fully qualified (Uri) name of the source connection profile. */
1174
1470
  sourceConnectionProfile?:
1175
1471
  string;
1176
1472
  }
1177
1473
  interface SeedJobDetails {
1178
- /** The connection profile which was used for the seed job. */
1474
+ /** Output only. The connection profile which was used for the seed job. */
1179
1475
  connectionProfile?:
1180
1476
  string;
1181
1477
  }
@@ -1216,6 +1512,104 @@ declare namespace gapi.client {
1216
1512
  updateMask?:
1217
1513
  string;
1218
1514
  }
1515
+ interface SetTablePrimaryKey {
1516
+ /** Optional. Name for the primary key */
1517
+ primaryKey?:
1518
+ string;
1519
+ /** Required. List of column names for the primary key */
1520
+ primaryKeyColumns?:
1521
+ string[];
1522
+ }
1523
+ interface SingleColumnChange {
1524
+ /** Optional. Is the column of array type. */
1525
+ array?:
1526
+ boolean;
1527
+ /** Optional. The length of the array, only relevant if the column type is an array. */
1528
+ arrayLength?:
1529
+ number;
1530
+ /** Optional. Is the column auto-generated/identity. */
1531
+ autoGenerated?:
1532
+ boolean;
1533
+ /** Optional. Charset override - instead of table level charset. */
1534
+ charset?:
1535
+ string;
1536
+ /** Optional. Collation override - instead of table level collation. */
1537
+ collation?:
1538
+ string;
1539
+ /** Optional. Comment associated with the column. */
1540
+ comment?:
1541
+ string;
1542
+ /** Optional. Custom engine specific features. */
1543
+ customFeatures?:
1544
+ { [P in string]: any };
1545
+ /** Optional. Column data type name. */
1546
+ dataType?:
1547
+ string;
1548
+ /** Optional. Column fractional seconds precision - e.g. 2 as in timestamp (2) - when relevant. */
1549
+ fractionalSecondsPrecision?:
1550
+ number;
1551
+ /** Optional. Column length - e.g. 50 as in varchar (50) - when relevant. */
1552
+ length?:
1553
+ string;
1554
+ /** Optional. Is the column nullable. */
1555
+ nullable?:
1556
+ boolean;
1557
+ /** Optional. Column precision - e.g. 8 as in double (8,2) - when relevant. */
1558
+ precision?:
1559
+ number;
1560
+ /** Optional. Column scale - e.g. 2 as in double (8,2) - when relevant. */
1561
+ scale?:
1562
+ number;
1563
+ /** Optional. Specifies the list of values allowed in the column. */
1564
+ setValues?:
1565
+ string[];
1566
+ /** Optional. Is the column a UDT (User-defined Type). */
1567
+ udt?:
1568
+ boolean;
1569
+ }
1570
+ interface SingleEntityRename {
1571
+ /** Required. The new name of the destination entity */
1572
+ newName?:
1573
+ string;
1574
+ }
1575
+ interface SinglePackageChange {
1576
+ /** Optional. Sql code for package body */
1577
+ packageBody?:
1578
+ string;
1579
+ /** Optional. Sql code for package description */
1580
+ packageDescription?:
1581
+ string;
1582
+ }
1583
+ interface SourceNumericFilter {
1584
+ /** Required. Enum to set the option defining the datatypes numeric filter has to be applied to */
1585
+ numericFilterOption?:
1586
+ string;
1587
+ /** Optional. The filter will match columns with precision smaller than or equal to this number. */
1588
+ sourceMaxPrecisionFilter?:
1589
+ number;
1590
+ /** Optional. The filter will match columns with scale smaller than or equal to this number. */
1591
+ sourceMaxScaleFilter?:
1592
+ number;
1593
+ /** Optional. The filter will match columns with precision greater than or equal to this number. */
1594
+ sourceMinPrecisionFilter?:
1595
+ number;
1596
+ /** Optional. The filter will match columns with scale greater than or equal to this number. */
1597
+ sourceMinScaleFilter?:
1598
+ number;
1599
+ }
1600
+ interface SourceSqlChange {
1601
+ /** Required. Sql code for source (stored procedure, function, trigger or view) */
1602
+ sqlCode?:
1603
+ string;
1604
+ }
1605
+ interface SourceTextFilter {
1606
+ /** Optional. The filter will match columns with length smaller than or equal to this number. */
1607
+ sourceMaxLengthFilter?:
1608
+ string;
1609
+ /** Optional. The filter will match columns with length greater than or equal to this number. */
1610
+ sourceMinLengthFilter?:
1611
+ string;
1612
+ }
1219
1613
  interface SqlAclEntry {
1220
1614
  /** The time when this access control entry expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example: `2012-11-15T16:19:00.094Z`. */
1221
1615
  expireTime?:
@@ -1382,6 +1776,17 @@ declare namespace gapi.client {
1382
1776
  triggerType?:
1383
1777
  string;
1384
1778
  }
1779
+ interface UDTEntity {
1780
+ /** Custom engine specific features. */
1781
+ customFeatures?:
1782
+ { [P in string]: any };
1783
+ /** The SQL code which creates the udt body. */
1784
+ udtBody?:
1785
+ string;
1786
+ /** The SQL code which creates the udt. */
1787
+ udtSqlCode?:
1788
+ string;
1789
+ }
1385
1790
  interface UserPassword {
1386
1791
  /** The initial password for the user. */
1387
1792
  password?:
@@ -1393,8 +1798,56 @@ declare namespace gapi.client {
1393
1798
  user?:
1394
1799
  string;
1395
1800
  }
1396
- // tslint:disable-next-line:no-empty-interface
1801
+ interface ValueListFilter {
1802
+ /** Required. Whether to ignore case when filtering by values. Defaults to false */
1803
+ ignoreCase?:
1804
+ boolean;
1805
+ /** Required. Indicates whether the filter matches rows with values that are present in the list or those with values not present in it. */
1806
+ valuePresentList?:
1807
+ string;
1808
+ /** Required. The list to be used to filter by */
1809
+ values?:
1810
+ string[];
1811
+ }
1812
+ interface ValueTransformation {
1813
+ /** Optional. Applies a hash function on the data */
1814
+ applyHash?:
1815
+ ApplyHash;
1816
+ /** Optional. Set to max_value - if integer or numeric, will use int.maxvalue, etc */
1817
+ assignMaxValue?:
1818
+ any;
1819
+ /** Optional. Set to min_value - if integer or numeric, will use int.minvalue, etc */
1820
+ assignMinValue?:
1821
+ any;
1822
+ /** Optional. Set to null */
1823
+ assignNull?:
1824
+ any;
1825
+ /** Optional. Set to a specific value (value is converted to fit the target data type) */
1826
+ assignSpecificValue?:
1827
+ AssignSpecificValue;
1828
+ /** Optional. Filter on relation between source value and compare value of type double. */
1829
+ doubleComparison?:
1830
+ DoubleComparisonFilter;
1831
+ /** Optional. Filter on relation between source value and compare value of type integer. */
1832
+ intComparison?:
1833
+ IntComparisonFilter;
1834
+ /** Optional. Value is null */
1835
+ isNull?:
1836
+ any;
1837
+ /** Optional. Allows the data to change scale */
1838
+ roundScale?:
1839
+ RoundToScale;
1840
+ /** Optional. Value is found in the specified list. */
1841
+ valueList?:
1842
+ ValueListFilter;
1843
+ }
1397
1844
  interface VerifyMigrationJobRequest {
1845
+ /** Optional. The changed migration job parameters to verify. It will not update the migration job. */
1846
+ migrationJob?:
1847
+ MigrationJob;
1848
+ /** Optional. Field mask is used to specify the changed fields to be verified. It will not update the migration job. */
1849
+ updateMask?:
1850
+ string;
1398
1851
  }
1399
1852
  interface ViewEntity {
1400
1853
  /** View constraints. */
@@ -1950,6 +2403,192 @@ declare namespace gapi.client {
1950
2403
  body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
1951
2404
  }
1952
2405
  interface MappingRulesResource {
2406
+ /** Creates a new mapping rule for a given conversion workspace. */
2407
+ create(request: {
2408
+ /** V1 error format. */
2409
+ "$.xgafv"?:
2410
+ string;
2411
+ /** OAuth access token. */
2412
+ access_token?:
2413
+ string;
2414
+ /** Data format for response. */
2415
+ alt?:
2416
+ string;
2417
+ /** JSONP */
2418
+ callback?:
2419
+ string;
2420
+ /** Selector specifying which fields to include in a partial response. */
2421
+ fields?:
2422
+ string;
2423
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2424
+ key?:
2425
+ string;
2426
+ /** Required. The ID of the rule to create. */
2427
+ mappingRuleId?:
2428
+ string;
2429
+ /** OAuth 2.0 token for the current user. */
2430
+ oauth_token?:
2431
+ string;
2432
+ /** Required. The parent which owns this collection of mapping rules. */
2433
+ parent:
2434
+ string;
2435
+ /** Returns response with indentations and line breaks. */
2436
+ prettyPrint?:
2437
+ boolean;
2438
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2439
+ quotaUser?:
2440
+ string;
2441
+ /**
2442
+ * A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to
2443
+ * a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
2444
+ */
2445
+ requestId?:
2446
+ string;
2447
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2448
+ upload_protocol?:
2449
+ string;
2450
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2451
+ uploadType?:
2452
+ string;
2453
+ /** Request body */
2454
+ resource:
2455
+ MappingRule;
2456
+ }): Request<MappingRule>;
2457
+ create(request: {
2458
+ /** V1 error format. */
2459
+ "$.xgafv"?:
2460
+ string;
2461
+ /** OAuth access token. */
2462
+ access_token?:
2463
+ string;
2464
+ /** Data format for response. */
2465
+ alt?:
2466
+ string;
2467
+ /** JSONP */
2468
+ callback?:
2469
+ string;
2470
+ /** Selector specifying which fields to include in a partial response. */
2471
+ fields?:
2472
+ string;
2473
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2474
+ key?:
2475
+ string;
2476
+ /** Required. The ID of the rule to create. */
2477
+ mappingRuleId?:
2478
+ string;
2479
+ /** OAuth 2.0 token for the current user. */
2480
+ oauth_token?:
2481
+ string;
2482
+ /** Required. The parent which owns this collection of mapping rules. */
2483
+ parent:
2484
+ string;
2485
+ /** Returns response with indentations and line breaks. */
2486
+ prettyPrint?:
2487
+ boolean;
2488
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2489
+ quotaUser?:
2490
+ string;
2491
+ /**
2492
+ * A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to
2493
+ * a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
2494
+ */
2495
+ requestId?:
2496
+ string;
2497
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2498
+ upload_protocol?:
2499
+ string;
2500
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2501
+ uploadType?:
2502
+ string;
2503
+ },
2504
+ body: MappingRule): Request<MappingRule>;
2505
+ /** Deletes a single mapping rule. */
2506
+ delete(request?: {
2507
+ /** V1 error format. */
2508
+ "$.xgafv"?:
2509
+ string;
2510
+ /** OAuth access token. */
2511
+ access_token?:
2512
+ string;
2513
+ /** Data format for response. */
2514
+ alt?:
2515
+ string;
2516
+ /** JSONP */
2517
+ callback?:
2518
+ string;
2519
+ /** Selector specifying which fields to include in a partial response. */
2520
+ fields?:
2521
+ string;
2522
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2523
+ key?:
2524
+ string;
2525
+ /** Required. Name of the mapping rule resource to delete. */
2526
+ name:
2527
+ string;
2528
+ /** OAuth 2.0 token for the current user. */
2529
+ oauth_token?:
2530
+ string;
2531
+ /** Returns response with indentations and line breaks. */
2532
+ prettyPrint?:
2533
+ boolean;
2534
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2535
+ quotaUser?:
2536
+ string;
2537
+ /**
2538
+ * Optional. A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set
2539
+ * this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
2540
+ */
2541
+ requestId?:
2542
+ string;
2543
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2544
+ upload_protocol?:
2545
+ string;
2546
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2547
+ uploadType?:
2548
+ string;
2549
+ }): Request<{}>;
2550
+ /** Gets the details of a mapping rule. */
2551
+ get(request?: {
2552
+ /** V1 error format. */
2553
+ "$.xgafv"?:
2554
+ string;
2555
+ /** OAuth access token. */
2556
+ access_token?:
2557
+ string;
2558
+ /** Data format for response. */
2559
+ alt?:
2560
+ string;
2561
+ /** JSONP */
2562
+ callback?:
2563
+ string;
2564
+ /** Selector specifying which fields to include in a partial response. */
2565
+ fields?:
2566
+ string;
2567
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2568
+ key?:
2569
+ string;
2570
+ /**
2571
+ * Required. Name of the mapping rule resource to get. Example: conversionWorkspaces/123/mappingRules/rule123 In order to retrieve a previous revision of the mapping rule, also
2572
+ * provide the revision ID. Example: conversionWorkspace/123/mappingRules/rule123@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8
2573
+ */
2574
+ name:
2575
+ string;
2576
+ /** OAuth 2.0 token for the current user. */
2577
+ oauth_token?:
2578
+ string;
2579
+ /** Returns response with indentations and line breaks. */
2580
+ prettyPrint?:
2581
+ boolean;
2582
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2583
+ quotaUser?:
2584
+ string;
2585
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2586
+ upload_protocol?:
2587
+ string;
2588
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2589
+ uploadType?:
2590
+ string;
2591
+ }): Request<MappingRule>;
1953
2592
  /** Imports the mapping rules for a given conversion workspace. Supports various formats of external rules files. */
1954
2593
  import(request: {
1955
2594
  /** V1 error format. */
@@ -2031,6 +2670,57 @@ declare namespace gapi.client {
2031
2670
  string;
2032
2671
  },
2033
2672
  body: ImportMappingRulesRequest): Request<Operation>;
2673
+ /** Lists the mapping rules for a specific conversion workspace. */
2674
+ list(request?: {
2675
+ /** V1 error format. */
2676
+ "$.xgafv"?:
2677
+ string;
2678
+ /** OAuth access token. */
2679
+ access_token?:
2680
+ string;
2681
+ /** Data format for response. */
2682
+ alt?:
2683
+ string;
2684
+ /** JSONP */
2685
+ callback?:
2686
+ string;
2687
+ /** Selector specifying which fields to include in a partial response. */
2688
+ fields?:
2689
+ string;
2690
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2691
+ key?:
2692
+ string;
2693
+ /** OAuth 2.0 token for the current user. */
2694
+ oauth_token?:
2695
+ string;
2696
+ /** The maximum number of rules to return. The service may return fewer than this value. */
2697
+ pageSize?:
2698
+ number;
2699
+ /**
2700
+ * The nextPageToken value received in the previous call to mappingRules.list, used in the subsequent request to retrieve the next page of results. On first call this should be
2701
+ * left blank. When paginating, all other parameters provided to mappingRules.list must match the call that provided the page token.
2702
+ */
2703
+ pageToken?:
2704
+ string;
2705
+ /**
2706
+ * Required. Name of the conversion workspace resource whose mapping rules are listed in the form of:
2707
+ * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
2708
+ */
2709
+ parent:
2710
+ string;
2711
+ /** Returns response with indentations and line breaks. */
2712
+ prettyPrint?:
2713
+ boolean;
2714
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2715
+ quotaUser?:
2716
+ string;
2717
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2718
+ upload_protocol?:
2719
+ string;
2720
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2721
+ uploadType?:
2722
+ string;
2723
+ }): Request<ListMappingRulesResponse>;
2034
2724
  }
2035
2725
  interface ConversionWorkspacesResource {
2036
2726
  /** Applies draft tree onto a specific destination database. */
@@ -2491,7 +3181,7 @@ declare namespace gapi.client {
2491
3181
  /** JSONP */
2492
3182
  callback?:
2493
3183
  string;
2494
- /** Request a specific commit ID. If not specified, the entities from the latest commit are returned. */
3184
+ /** Optional. Request a specific commit ID. If not specified, the entities from the latest commit are returned. */
2495
3185
  commitId?:
2496
3186
  string;
2497
3187
  /**
@@ -2503,7 +3193,7 @@ declare namespace gapi.client {
2503
3193
  /** Selector specifying which fields to include in a partial response. */
2504
3194
  fields?:
2505
3195
  string;
2506
- /** Filter the returned entities based on AIP-160 standard. */
3196
+ /** Optional. Filter the returned entities based on AIP-160 standard. */
2507
3197
  filter?:
2508
3198
  string;
2509
3199
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
@@ -2512,13 +3202,13 @@ declare namespace gapi.client {
2512
3202
  /** OAuth 2.0 token for the current user. */
2513
3203
  oauth_token?:
2514
3204
  string;
2515
- /** The maximum number of entities to return. The service may return fewer entities than the value specifies. */
3205
+ /** Optional. The maximum number of entities to return. The service may return fewer entities than the value specifies. */
2516
3206
  pageSize?:
2517
3207
  number;
2518
3208
  /**
2519
- * The nextPageToken value received in the previous call to conversionWorkspace.describeDatabaseEntities, used in the subsequent request to retrieve the next page of results. On
2520
- * first call this should be left blank. When paginating, all other parameters provided to conversionWorkspace.describeDatabaseEntities must match the call that provided the page
2521
- * token.
3209
+ * Optional. The nextPageToken value received in the previous call to conversionWorkspace.describeDatabaseEntities, used in the subsequent request to retrieve the next page of
3210
+ * results. On first call this should be left blank. When paginating, all other parameters provided to conversionWorkspace.describeDatabaseEntities must match the call that
3211
+ * provided the page token.
2522
3212
  */
2523
3213
  pageToken?:
2524
3214
  string;
@@ -2528,10 +3218,10 @@ declare namespace gapi.client {
2528
3218
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2529
3219
  quotaUser?:
2530
3220
  string;
2531
- /** The tree to fetch. */
3221
+ /** Required. The tree to fetch. */
2532
3222
  tree?:
2533
3223
  string;
2534
- /** Whether to retrieve the latest committed version of the entities or the latest version. This field is ignored if a specific commit_id is specified. */
3224
+ /** Optional. Whether to retrieve the latest committed version of the entities or the latest version. This field is ignored if a specific commit_id is specified. */
2535
3225
  uncommitted?:
2536
3226
  boolean;
2537
3227
  /** Upload protocol for media (e.g. "raw", "multipart"). */
@@ -2540,6 +3230,9 @@ declare namespace gapi.client {
2540
3230
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2541
3231
  uploadType?:
2542
3232
  string;
3233
+ /** Optional. Results view based on AIP-157 */
3234
+ view?:
3235
+ string;
2543
3236
  }): Request<DescribeDatabaseEntitiesResponse>;
2544
3237
  /** Gets details of a single conversion workspace. */
2545
3238
  get(request?: {
@@ -3137,8 +3830,8 @@ declare namespace gapi.client {
3137
3830
  quotaUser?:
3138
3831
  string;
3139
3832
  /**
3140
- * A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to
3141
- * a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
3833
+ * Optional. A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set
3834
+ * this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
3142
3835
  */
3143
3836
  requestId?:
3144
3837
  string;
@@ -3187,8 +3880,8 @@ declare namespace gapi.client {
3187
3880
  quotaUser?:
3188
3881
  string;
3189
3882
  /**
3190
- * A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to
3191
- * a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
3883
+ * Optional. A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set
3884
+ * this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
3192
3885
  */
3193
3886
  requestId?:
3194
3887
  string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.datamigration-v1",
3
- "version": "0.0.20230622",
3
+ "version": "0.0.20230703",
4
4
  "description": "TypeScript typings for Database Migration 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: 20230622
6
+ // Revision: 20230703
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -443,7 +443,9 @@ gapi.load('client', async () => {
443
443
  await gapi.client.datamigration.projects.locations.conversionWorkspaces.apply({
444
444
  name: "Test string",
445
445
  }, {
446
+ autoCommit: true,
446
447
  connectionProfile: "Test string",
448
+ dryRun: true,
447
449
  filter: "Test string",
448
450
  });
449
451
  /** Marks all the data in the conversion workspace as committed. */
@@ -457,6 +459,7 @@ gapi.load('client', async () => {
457
459
  name: "Test string",
458
460
  }, {
459
461
  autoCommit: true,
462
+ convertFullPath: true,
460
463
  filter: "Test string",
461
464
  });
462
465
  /** Creates a new conversion workspace in a given project and location. */
@@ -507,6 +510,7 @@ gapi.load('client', async () => {
507
510
  pageToken: "Test string",
508
511
  tree: "Test string",
509
512
  uncommitted: true,
513
+ view: "Test string",
510
514
  });
511
515
  /** Gets details of a single conversion workspace. */
512
516
  await gapi.client.datamigration.projects.locations.conversionWorkspaces.get({
@@ -620,6 +624,166 @@ gapi.load('client', async () => {
620
624
  "Test string"
621
625
  ],
622
626
  });
627
+ /** Creates a new mapping rule for a given conversion workspace. */
628
+ await gapi.client.datamigration.projects.locations.conversionWorkspaces.mappingRules.create({
629
+ mappingRuleId: "Test string",
630
+ parent: "Test string",
631
+ requestId: "Test string",
632
+ }, {
633
+ conditionalColumnSetValue: {
634
+ customFeatures: {
635
+ A: 42
636
+ },
637
+ sourceNumericFilter: {
638
+ numericFilterOption: "Test string",
639
+ sourceMaxPrecisionFilter: 42,
640
+ sourceMaxScaleFilter: 42,
641
+ sourceMinPrecisionFilter: 42,
642
+ sourceMinScaleFilter: 42,
643
+ },
644
+ sourceTextFilter: {
645
+ sourceMaxLengthFilter: "Test string",
646
+ sourceMinLengthFilter: "Test string",
647
+ },
648
+ valueTransformation: {
649
+ applyHash: {
650
+ uuidFromBytes: {
651
+ },
652
+ },
653
+ assignMaxValue: {
654
+ },
655
+ assignMinValue: {
656
+ },
657
+ assignNull: {
658
+ },
659
+ assignSpecificValue: {
660
+ value: "Test string",
661
+ },
662
+ doubleComparison: {
663
+ value: 42,
664
+ valueComparison: "Test string",
665
+ },
666
+ intComparison: {
667
+ value: "Test string",
668
+ valueComparison: "Test string",
669
+ },
670
+ isNull: {
671
+ },
672
+ roundScale: {
673
+ scale: 42,
674
+ },
675
+ valueList: {
676
+ ignoreCase: true,
677
+ valuePresentList: "Test string",
678
+ values: [
679
+ "Test string"
680
+ ],
681
+ },
682
+ },
683
+ },
684
+ convertRowidColumn: {
685
+ onlyIfNoPrimaryKey: true,
686
+ },
687
+ displayName: "Test string",
688
+ entityMove: {
689
+ newSchema: "Test string",
690
+ },
691
+ filter: {
692
+ entities: [
693
+ "Test string"
694
+ ],
695
+ entityNameContains: "Test string",
696
+ entityNamePrefix: "Test string",
697
+ entityNameSuffix: "Test string",
698
+ parentEntity: "Test string",
699
+ },
700
+ filterTableColumns: {
701
+ excludeColumns: [
702
+ "Test string"
703
+ ],
704
+ includeColumns: [
705
+ "Test string"
706
+ ],
707
+ },
708
+ multiColumnDataTypeChange: {
709
+ customFeatures: {
710
+ A: 42
711
+ },
712
+ newDataType: "Test string",
713
+ overrideFractionalSecondsPrecision: 42,
714
+ overrideLength: "Test string",
715
+ overridePrecision: 42,
716
+ overrideScale: 42,
717
+ sourceDataTypeFilter: "Test string",
718
+ sourceNumericFilter: {
719
+ numericFilterOption: "Test string",
720
+ sourceMaxPrecisionFilter: 42,
721
+ sourceMaxScaleFilter: 42,
722
+ sourceMinPrecisionFilter: 42,
723
+ sourceMinScaleFilter: 42,
724
+ },
725
+ sourceTextFilter: {
726
+ sourceMaxLengthFilter: "Test string",
727
+ sourceMinLengthFilter: "Test string",
728
+ },
729
+ },
730
+ multiEntityRename: {
731
+ newNamePattern: "Test string",
732
+ sourceNameTransformation: "Test string",
733
+ },
734
+ name: "Test string",
735
+ revisionCreateTime: "Test string",
736
+ revisionId: "Test string",
737
+ ruleOrder: "Test string",
738
+ ruleScope: "Test string",
739
+ setTablePrimaryKey: {
740
+ primaryKey: "Test string",
741
+ primaryKeyColumns: [
742
+ "Test string"
743
+ ],
744
+ },
745
+ singleColumnChange: {
746
+ array: true,
747
+ arrayLength: 42,
748
+ autoGenerated: true,
749
+ charset: "Test string",
750
+ collation: "Test string",
751
+ comment: "Test string",
752
+ customFeatures: {
753
+ A: 42
754
+ },
755
+ dataType: "Test string",
756
+ fractionalSecondsPrecision: 42,
757
+ length: "Test string",
758
+ nullable: true,
759
+ precision: 42,
760
+ scale: 42,
761
+ setValues: [
762
+ "Test string"
763
+ ],
764
+ udt: true,
765
+ },
766
+ singleEntityRename: {
767
+ newName: "Test string",
768
+ },
769
+ singlePackageChange: {
770
+ packageBody: "Test string",
771
+ packageDescription: "Test string",
772
+ },
773
+ sourceSqlChange: {
774
+ sqlCode: "Test string",
775
+ },
776
+ state: "Test string",
777
+ });
778
+ /** Deletes a single mapping rule. */
779
+ await gapi.client.datamigration.projects.locations.conversionWorkspaces.mappingRules.delete({
780
+ name: "Test string",
781
+ requestId: "Test string",
782
+ });
783
+ /** Gets the details of a mapping rule. */
784
+ await gapi.client.datamigration.projects.locations.conversionWorkspaces.mappingRules.get({
785
+ name: "Test string",
786
+ });
623
787
  /** Imports the mapping rules for a given conversion workspace. Supports various formats of external rules files. */
624
788
  await gapi.client.datamigration.projects.locations.conversionWorkspaces.mappingRules.import({
625
789
  parent: "Test string",
@@ -633,6 +797,12 @@ gapi.load('client', async () => {
633
797
  ],
634
798
  rulesFormat: "Test string",
635
799
  });
800
+ /** Lists the mapping rules for a specific conversion workspace. */
801
+ await gapi.client.datamigration.projects.locations.conversionWorkspaces.mappingRules.list({
802
+ pageSize: 42,
803
+ pageToken: "Test string",
804
+ parent: "Test string",
805
+ });
636
806
  /** Creates a new migration job in a given project and location. */
637
807
  await gapi.client.datamigration.projects.locations.migrationJobs.create({
638
808
  migrationJobId: "Test string",
@@ -885,6 +1055,66 @@ gapi.load('client', async () => {
885
1055
  await gapi.client.datamigration.projects.locations.migrationJobs.verify({
886
1056
  name: "Test string",
887
1057
  }, {
1058
+ migrationJob: {
1059
+ cmekKeyName: "Test string",
1060
+ conversionWorkspace: {
1061
+ commitId: "Test string",
1062
+ name: "Test string",
1063
+ },
1064
+ createTime: "Test string",
1065
+ destination: "Test string",
1066
+ destinationDatabase: {
1067
+ engine: "Test string",
1068
+ provider: "Test string",
1069
+ },
1070
+ displayName: "Test string",
1071
+ dumpFlags: {
1072
+ dumpFlags: [
1073
+ {
1074
+ name: "Test string",
1075
+ value: "Test string",
1076
+ }
1077
+ ],
1078
+ },
1079
+ dumpPath: "Test string",
1080
+ duration: "Test string",
1081
+ endTime: "Test string",
1082
+ error: {
1083
+ code: 42,
1084
+ details: [
1085
+ {
1086
+ A: 42
1087
+ }
1088
+ ],
1089
+ message: "Test string",
1090
+ },
1091
+ filter: "Test string",
1092
+ labels: {
1093
+ A: "Test string"
1094
+ },
1095
+ name: "Test string",
1096
+ phase: "Test string",
1097
+ reverseSshConnectivity: {
1098
+ vm: "Test string",
1099
+ vmIp: "Test string",
1100
+ vmPort: 42,
1101
+ vpc: "Test string",
1102
+ },
1103
+ source: "Test string",
1104
+ sourceDatabase: {
1105
+ engine: "Test string",
1106
+ provider: "Test string",
1107
+ },
1108
+ state: "Test string",
1109
+ staticIpConnectivity: {
1110
+ },
1111
+ type: "Test string",
1112
+ updateTime: "Test string",
1113
+ vpcPeeringConnectivity: {
1114
+ vpc: "Test string",
1115
+ },
1116
+ },
1117
+ updateMask: "Test string",
888
1118
  });
889
1119
  /**
890
1120
  * 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