@maxim_mazurok/gapi.client.datamigration-v1 0.0.20250108 → 0.0.20250122

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 +40 -38
  2. package/package.json +1 -1
  3. package/readme.md +2 -2
package/index.d.ts CHANGED
@@ -9,14 +9,14 @@
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: 20250108
12
+ // Revision: 20250122
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
17
  /** Load Database Migration API v1 */
18
18
  function load(
19
- urlOrObject: 'https://datamigration.googleapis.com/$discovery/rest?version=v1'
19
+ urlOrObject: 'https://datamigration.googleapis.com/$discovery/rest?version=v1',
20
20
  ): Promise<void>;
21
21
  /** @deprecated Please load APIs with discovery documents. */
22
22
  function load(name: 'datamigration', version: 'v1'): Promise<void>;
@@ -24,7 +24,7 @@ declare namespace gapi.client {
24
24
  function load(
25
25
  name: 'datamigration',
26
26
  version: 'v1',
27
- callback: () => any
27
+ callback: () => any,
28
28
  ): void;
29
29
 
30
30
  namespace datamigration {
@@ -195,6 +195,8 @@ declare namespace gapi.client {
195
195
  collation?: string;
196
196
  /** Comment associated with the column. */
197
197
  comment?: string;
198
+ /** Is the column a computed column. */
199
+ computed?: boolean;
198
200
  /** Custom engine specific features. */
199
201
  customFeatures?: {[P in string]: any};
200
202
  /** Column data type. */
@@ -1529,7 +1531,7 @@ declare namespace gapi.client {
1529
1531
  /** Optional. Only validate the connection profile, but don't create any resources. The default is false. Only supported for Oracle connection profiles. */
1530
1532
  validateOnly?: boolean;
1531
1533
  },
1532
- body: ConnectionProfile
1534
+ body: ConnectionProfile,
1533
1535
  ): Request<Operation>;
1534
1536
  /** Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs. */
1535
1537
  delete(request?: {
@@ -1725,7 +1727,7 @@ declare namespace gapi.client {
1725
1727
  /** Optional. Only validate the connection profile, but don't update any resources. The default is false. Only supported for Oracle connection profiles. */
1726
1728
  validateOnly?: boolean;
1727
1729
  },
1728
- body: ConnectionProfile
1730
+ body: ConnectionProfile,
1729
1731
  ): Request<Operation>;
1730
1732
  /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
1731
1733
  setIamPolicy(
@@ -1755,7 +1757,7 @@ declare namespace gapi.client {
1755
1757
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1756
1758
  uploadType?: string;
1757
1759
  },
1758
- body: SetIamPolicyRequest
1760
+ body: SetIamPolicyRequest,
1759
1761
  ): Request<Policy>;
1760
1762
  /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
1761
1763
  testIamPermissions(
@@ -1785,7 +1787,7 @@ declare namespace gapi.client {
1785
1787
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1786
1788
  uploadType?: string;
1787
1789
  },
1788
- body: TestIamPermissionsRequest
1790
+ body: TestIamPermissionsRequest,
1789
1791
  ): Request<TestIamPermissionsResponse>;
1790
1792
  }
1791
1793
  interface MappingRulesResource {
@@ -1853,7 +1855,7 @@ declare namespace gapi.client {
1853
1855
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1854
1856
  uploadType?: string;
1855
1857
  },
1856
- body: MappingRule
1858
+ body: MappingRule,
1857
1859
  ): Request<MappingRule>;
1858
1860
  /** Deletes a single mapping rule. */
1859
1861
  delete(request?: {
@@ -1967,7 +1969,7 @@ declare namespace gapi.client {
1967
1969
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1968
1970
  uploadType?: string;
1969
1971
  },
1970
- body: ImportMappingRulesRequest
1972
+ body: ImportMappingRulesRequest,
1971
1973
  ): Request<Operation>;
1972
1974
  /** Lists the mapping rules for a specific conversion workspace. */
1973
1975
  list(request?: {
@@ -2058,7 +2060,7 @@ declare namespace gapi.client {
2058
2060
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2059
2061
  uploadType?: string;
2060
2062
  },
2061
- body: ApplyConversionWorkspaceRequest
2063
+ body: ApplyConversionWorkspaceRequest,
2062
2064
  ): Request<Operation>;
2063
2065
  /** Marks all the data in the conversion workspace as committed. */
2064
2066
  commit(request: {
@@ -2116,7 +2118,7 @@ declare namespace gapi.client {
2116
2118
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2117
2119
  uploadType?: string;
2118
2120
  },
2119
- body: CommitConversionWorkspaceRequest
2121
+ body: CommitConversionWorkspaceRequest,
2120
2122
  ): Request<Operation>;
2121
2123
  /** Creates a draft tree schema for the destination database. */
2122
2124
  convert(request: {
@@ -2174,7 +2176,7 @@ declare namespace gapi.client {
2174
2176
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2175
2177
  uploadType?: string;
2176
2178
  },
2177
- body: ConvertConversionWorkspaceRequest
2179
+ body: ConvertConversionWorkspaceRequest,
2178
2180
  ): Request<Operation>;
2179
2181
  /** Creates a new conversion workspace in a given project and location. */
2180
2182
  create(request: {
@@ -2240,7 +2242,7 @@ declare namespace gapi.client {
2240
2242
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2241
2243
  uploadType?: string;
2242
2244
  },
2243
- body: ConversionWorkspace
2245
+ body: ConversionWorkspace,
2244
2246
  ): Request<Operation>;
2245
2247
  /** Deletes a single conversion workspace. */
2246
2248
  delete(request?: {
@@ -2496,7 +2498,7 @@ declare namespace gapi.client {
2496
2498
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2497
2499
  uploadType?: string;
2498
2500
  },
2499
- body: ConversionWorkspace
2501
+ body: ConversionWorkspace,
2500
2502
  ): Request<Operation>;
2501
2503
  /** Rolls back a conversion workspace to the last committed snapshot. */
2502
2504
  rollback(request: {
@@ -2554,7 +2556,7 @@ declare namespace gapi.client {
2554
2556
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2555
2557
  uploadType?: string;
2556
2558
  },
2557
- body: RollbackConversionWorkspaceRequest
2559
+ body: RollbackConversionWorkspaceRequest,
2558
2560
  ): Request<Operation>;
2559
2561
  /** Searches/lists the background jobs for a specific conversion workspace. The background jobs are not resources like conversion workspaces or mapping rules, and they can't be created, updated or deleted. Instead, they are a way to expose the data plane jobs log. */
2560
2562
  searchBackgroundJobs(request?: {
@@ -2645,7 +2647,7 @@ declare namespace gapi.client {
2645
2647
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2646
2648
  uploadType?: string;
2647
2649
  },
2648
- body: SeedConversionWorkspaceRequest
2650
+ body: SeedConversionWorkspaceRequest,
2649
2651
  ): Request<Operation>;
2650
2652
  /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
2651
2653
  setIamPolicy(
@@ -2675,7 +2677,7 @@ declare namespace gapi.client {
2675
2677
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2676
2678
  uploadType?: string;
2677
2679
  },
2678
- body: SetIamPolicyRequest
2680
+ body: SetIamPolicyRequest,
2679
2681
  ): Request<Policy>;
2680
2682
  /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
2681
2683
  testIamPermissions(
@@ -2705,7 +2707,7 @@ declare namespace gapi.client {
2705
2707
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2706
2708
  uploadType?: string;
2707
2709
  },
2708
- body: TestIamPermissionsRequest
2710
+ body: TestIamPermissionsRequest,
2709
2711
  ): Request<TestIamPermissionsResponse>;
2710
2712
  mappingRules: MappingRulesResource;
2711
2713
  }
@@ -2853,7 +2855,7 @@ declare namespace gapi.client {
2853
2855
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2854
2856
  uploadType?: string;
2855
2857
  },
2856
- body: LookupMigrationJobObjectRequest
2858
+ body: LookupMigrationJobObjectRequest,
2857
2859
  ): Request<MigrationJobObject>;
2858
2860
  /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
2859
2861
  setIamPolicy(
@@ -2883,7 +2885,7 @@ declare namespace gapi.client {
2883
2885
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2884
2886
  uploadType?: string;
2885
2887
  },
2886
- body: SetIamPolicyRequest
2888
+ body: SetIamPolicyRequest,
2887
2889
  ): Request<Policy>;
2888
2890
  /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
2889
2891
  testIamPermissions(
@@ -2913,7 +2915,7 @@ declare namespace gapi.client {
2913
2915
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2914
2916
  uploadType?: string;
2915
2917
  },
2916
- body: TestIamPermissionsRequest
2918
+ body: TestIamPermissionsRequest,
2917
2919
  ): Request<TestIamPermissionsResponse>;
2918
2920
  }
2919
2921
  interface MigrationJobsResource {
@@ -2981,7 +2983,7 @@ declare namespace gapi.client {
2981
2983
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2982
2984
  uploadType?: string;
2983
2985
  },
2984
- body: MigrationJob
2986
+ body: MigrationJob,
2985
2987
  ): Request<Operation>;
2986
2988
  /** Deletes a single migration job. */
2987
2989
  delete(request?: {
@@ -3070,7 +3072,7 @@ declare namespace gapi.client {
3070
3072
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3071
3073
  uploadType?: string;
3072
3074
  },
3073
- body: DemoteDestinationRequest
3075
+ body: DemoteDestinationRequest,
3074
3076
  ): Request<Operation>;
3075
3077
  /** Retrieves objects from the source database that can be selected for data migration. This is applicable for the following migrations: 1. PostgreSQL to Cloud SQL for PostgreSQL 2. PostgreSQL to AlloyDB for PostgreSQL. */
3076
3078
  fetchSourceObjects(request?: {
@@ -3155,7 +3157,7 @@ declare namespace gapi.client {
3155
3157
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3156
3158
  uploadType?: string;
3157
3159
  },
3158
- body: GenerateSshScriptRequest
3160
+ body: GenerateSshScriptRequest,
3159
3161
  ): Request<SshScript>;
3160
3162
  /** Generate a TCP Proxy configuration script to configure a cloud-hosted VM running a TCP Proxy. */
3161
3163
  generateTcpProxyScript(request: {
@@ -3213,7 +3215,7 @@ declare namespace gapi.client {
3213
3215
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3214
3216
  uploadType?: string;
3215
3217
  },
3216
- body: GenerateTcpProxyScriptRequest
3218
+ body: GenerateTcpProxyScriptRequest,
3217
3219
  ): Request<TcpProxyScript>;
3218
3220
  /** Gets details of a single migration job. */
3219
3221
  get(request?: {
@@ -3370,7 +3372,7 @@ declare namespace gapi.client {
3370
3372
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3371
3373
  uploadType?: string;
3372
3374
  },
3373
- body: MigrationJob
3375
+ body: MigrationJob,
3374
3376
  ): Request<Operation>;
3375
3377
  /** Promote a migration job, stopping replication to the destination and promoting the destination to be a standalone database. */
3376
3378
  promote(request: {
@@ -3428,7 +3430,7 @@ declare namespace gapi.client {
3428
3430
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3429
3431
  uploadType?: string;
3430
3432
  },
3431
- body: PromoteMigrationJobRequest
3433
+ body: PromoteMigrationJobRequest,
3432
3434
  ): Request<Operation>;
3433
3435
  /** Restart a stopped or failed migration job, resetting the destination instance to its original state and starting the migration process from scratch. */
3434
3436
  restart(request: {
@@ -3486,7 +3488,7 @@ declare namespace gapi.client {
3486
3488
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3487
3489
  uploadType?: string;
3488
3490
  },
3489
- body: RestartMigrationJobRequest
3491
+ body: RestartMigrationJobRequest,
3490
3492
  ): Request<Operation>;
3491
3493
  /** Resume a migration job that is currently stopped and is resumable (was stopped during CDC phase). */
3492
3494
  resume(request: {
@@ -3544,7 +3546,7 @@ declare namespace gapi.client {
3544
3546
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3545
3547
  uploadType?: string;
3546
3548
  },
3547
- body: ResumeMigrationJobRequest
3549
+ body: ResumeMigrationJobRequest,
3548
3550
  ): Request<Operation>;
3549
3551
  /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
3550
3552
  setIamPolicy(
@@ -3574,7 +3576,7 @@ declare namespace gapi.client {
3574
3576
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3575
3577
  uploadType?: string;
3576
3578
  },
3577
- body: SetIamPolicyRequest
3579
+ body: SetIamPolicyRequest,
3578
3580
  ): Request<Policy>;
3579
3581
  /** Start an already created migration job. */
3580
3582
  start(request: {
@@ -3632,7 +3634,7 @@ declare namespace gapi.client {
3632
3634
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3633
3635
  uploadType?: string;
3634
3636
  },
3635
- body: StartMigrationJobRequest
3637
+ body: StartMigrationJobRequest,
3636
3638
  ): Request<Operation>;
3637
3639
  /** Stops a running migration job. */
3638
3640
  stop(request: {
@@ -3690,7 +3692,7 @@ declare namespace gapi.client {
3690
3692
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3691
3693
  uploadType?: string;
3692
3694
  },
3693
- body: StopMigrationJobRequest
3695
+ body: StopMigrationJobRequest,
3694
3696
  ): Request<Operation>;
3695
3697
  /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
3696
3698
  testIamPermissions(
@@ -3720,7 +3722,7 @@ declare namespace gapi.client {
3720
3722
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3721
3723
  uploadType?: string;
3722
3724
  },
3723
- body: TestIamPermissionsRequest
3725
+ body: TestIamPermissionsRequest,
3724
3726
  ): Request<TestIamPermissionsResponse>;
3725
3727
  /** Verify a migration job, making sure the destination can reach the source and that all configuration and prerequisites are met. */
3726
3728
  verify(request: {
@@ -3778,7 +3780,7 @@ declare namespace gapi.client {
3778
3780
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3779
3781
  uploadType?: string;
3780
3782
  },
3781
- body: VerifyMigrationJobRequest
3783
+ body: VerifyMigrationJobRequest,
3782
3784
  ): Request<Operation>;
3783
3785
  objects: ObjectsResource;
3784
3786
  }
@@ -3839,7 +3841,7 @@ declare namespace gapi.client {
3839
3841
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3840
3842
  uploadType?: string;
3841
3843
  },
3842
- body: CancelOperationRequest
3844
+ body: CancelOperationRequest,
3843
3845
  ): Request<{}>;
3844
3846
  /** 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 this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
3845
3847
  delete(request?: {
@@ -3998,7 +4000,7 @@ declare namespace gapi.client {
3998
4000
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3999
4001
  uploadType?: string;
4000
4002
  },
4001
- body: PrivateConnection
4003
+ body: PrivateConnection,
4002
4004
  ): Request<Operation>;
4003
4005
  /** Deletes a single Database Migration Service private connection. */
4004
4006
  delete(request?: {
@@ -4148,7 +4150,7 @@ declare namespace gapi.client {
4148
4150
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4149
4151
  uploadType?: string;
4150
4152
  },
4151
- body: SetIamPolicyRequest
4153
+ body: SetIamPolicyRequest,
4152
4154
  ): Request<Policy>;
4153
4155
  /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
4154
4156
  testIamPermissions(
@@ -4178,7 +4180,7 @@ declare namespace gapi.client {
4178
4180
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4179
4181
  uploadType?: string;
4180
4182
  },
4181
- body: TestIamPermissionsRequest
4183
+ body: TestIamPermissionsRequest,
4182
4184
  ): Request<TestIamPermissionsResponse>;
4183
4185
  }
4184
4186
  interface LocationsResource {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.datamigration-v1",
3
- "version": "0.0.20250108",
3
+ "version": "0.0.20250122",
4
4
  "description": "TypeScript typings for Database Migration API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -30,7 +30,7 @@ gapi.client.load(
30
30
  () => {
31
31
  // now we can use:
32
32
  // gapi.client.datamigration
33
- }
33
+ },
34
34
  );
35
35
  ```
36
36
 
@@ -62,7 +62,7 @@ gapi.auth.authorize(
62
62
  } else {
63
63
  /* handle authorization error */
64
64
  }
65
- }
65
+ },
66
66
  );
67
67
  ```
68
68