@maxim_mazurok/gapi.client.datamigration-v1 0.2.20260310 → 0.2.20260603
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.
- package/index.d.ts +18 -7
- package/package.json +1 -1
- package/readme.md +17 -0
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:
|
|
12
|
+
// Revision: 20260603
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -639,7 +639,8 @@ declare namespace gapi.client {
|
|
|
639
639
|
| 'ISSUE_TYPE_UNSPECIFIED'
|
|
640
640
|
| 'ISSUE_TYPE_DDL'
|
|
641
641
|
| 'ISSUE_TYPE_APPLY'
|
|
642
|
-
| 'ISSUE_TYPE_CONVERT'
|
|
642
|
+
| 'ISSUE_TYPE_CONVERT'
|
|
643
|
+
| 'ISSUE_TYPE_PULL_SCHEMA';
|
|
643
644
|
}
|
|
644
645
|
interface EntityMapping {
|
|
645
646
|
/** Target entity full name. The draft entity can also include a column, index or constraint using the same naming notation schema.table.column. */
|
|
@@ -724,7 +725,7 @@ declare namespace gapi.client {
|
|
|
724
725
|
interface FieldViolation {
|
|
725
726
|
/** A description of why the request element is bad. */
|
|
726
727
|
description?: string;
|
|
727
|
-
/** A path that leads to a field in the request body. The value will be a sequence of dot-separated identifiers that identify a protocol buffer field. Consider the following: message CreateContactRequest { message EmailAddress { enum Type { TYPE_UNSPECIFIED = 0; HOME = 1; WORK = 2; } optional string email = 1; repeated EmailType type = 2; } string full_name = 1; repeated EmailAddress email_addresses = 2; } In this example, in proto `field` could take one of the following values: * `full_name` for a violation in the `full_name` value * `email_addresses[
|
|
728
|
+
/** A path that leads to a field in the request body. The value will be a sequence of dot-separated identifiers that identify a protocol buffer field. Consider the following: message CreateContactRequest { message EmailAddress { enum Type { TYPE_UNSPECIFIED = 0; HOME = 1; WORK = 2; } optional string email = 1; repeated EmailType type = 2; } string full_name = 1; repeated EmailAddress email_addresses = 2; } In this example, in proto `field` could take one of the following values: * `full_name` for a violation in the `full_name` value * `email_addresses[0].email` for a violation in the `email` field of the first `email_addresses` message * `email_addresses[2].type[1]` for a violation in the second `type` value in the third `email_addresses` message. In JSON, the same values are represented as: * `fullName` for a violation in the `fullName` value * `emailAddresses[0].email` for a violation in the `email` field of the first `emailAddresses` message * `emailAddresses[2].type[1]` for a violation in the second `type` value in the third `emailAddresses` message. */
|
|
728
729
|
field?: string;
|
|
729
730
|
/** Provides a localized error message for field-level errors that is safe to return to the API consumer. */
|
|
730
731
|
localizedMessage?: LocalizedMessage;
|
|
@@ -1077,6 +1078,8 @@ declare namespace gapi.client {
|
|
|
1077
1078
|
| 'WAITING_FOR_SOURCE_WRITES_TO_STOP'
|
|
1078
1079
|
| 'PREPARING_THE_DUMP'
|
|
1079
1080
|
| 'READY_FOR_PROMOTE';
|
|
1081
|
+
/** Optional. Configuration for PostgreSQL homogeneous migration. */
|
|
1082
|
+
postgresHomogeneousConfig?: PostgresHomogeneousConfig;
|
|
1080
1083
|
/** Configuration for heterogeneous failback migrations from **PostgreSQL to SQL Server**. */
|
|
1081
1084
|
postgresToSqlserverConfig?: PostgresToSqlServerConfig;
|
|
1082
1085
|
/** Output only. Migration job mode. Migration jobs can be standard forward jobs or failback migration jobs. */
|
|
@@ -1361,6 +1364,12 @@ declare namespace gapi.client {
|
|
|
1361
1364
|
/** Optional. Timeout for data migration transactions. */
|
|
1362
1365
|
transactionTimeout?: string;
|
|
1363
1366
|
}
|
|
1367
|
+
interface PostgresHomogeneousConfig {
|
|
1368
|
+
/** Required. Whether the migration is native logical. */
|
|
1369
|
+
isNativeLogical?: boolean;
|
|
1370
|
+
/** Optional. Maximum number of additional subscriptions to use for the migration job. */
|
|
1371
|
+
maxAdditionalSubscriptions?: number;
|
|
1372
|
+
}
|
|
1364
1373
|
interface PostgreSqlConnectionProfile {
|
|
1365
1374
|
/** Optional. If the destination is an AlloyDB database, use this field to provide the AlloyDB cluster ID. */
|
|
1366
1375
|
alloydbClusterId?: string;
|
|
@@ -1368,6 +1377,8 @@ declare namespace gapi.client {
|
|
|
1368
1377
|
cloudSqlId?: string;
|
|
1369
1378
|
/** Optional. The name of the specific database within the host. */
|
|
1370
1379
|
database?: string;
|
|
1380
|
+
/** Optional. If true, Database Migration Service will use IAM database authentication to connect to the database. */
|
|
1381
|
+
enableIamAuthentication?: boolean;
|
|
1371
1382
|
/** Forward SSH tunnel connectivity. */
|
|
1372
1383
|
forwardSshConnectivity?: ForwardSshTunnelConnectivity;
|
|
1373
1384
|
/** Required. The IP or hostname of the source PostgreSQL database. */
|
|
@@ -1484,7 +1495,7 @@ declare namespace gapi.client {
|
|
|
1484
1495
|
violations?: QuotaFailureViolation[];
|
|
1485
1496
|
}
|
|
1486
1497
|
interface QuotaFailureViolation {
|
|
1487
|
-
/** The API Service from which the `QuotaFailure.Violation`
|
|
1498
|
+
/** The API Service from which the `QuotaFailure.Violation` originates. In some cases, Quota issues originate from an API Service other than the one that was called. In other words, a dependency of the called API Service could be the cause of the `QuotaFailure`, and this field would have the dependency API service name. For example, if the called API is Kubernetes Engine API (container.googleapis.com), and a quota violation occurs in the Kubernetes Engine API itself, this field would be "container.googleapis.com". On the other hand, if the quota violation occurs when the Kubernetes Engine API creates VMs in the Compute Engine API (compute.googleapis.com), this field would be "compute.googleapis.com". */
|
|
1488
1499
|
apiService?: string;
|
|
1489
1500
|
/** A description of how the quota check failed. Clients can use this description to find more about the quota configuration in the service's public documentation, or find the relevant quota limit to adjust through developer console. For example: "Service disabled" or "Daily Limit for read operations exceeded". */
|
|
1490
1501
|
description?: string;
|
|
@@ -1842,7 +1853,7 @@ declare namespace gapi.client {
|
|
|
1842
1853
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
1843
1854
|
code?: number;
|
|
1844
1855
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
1845
|
-
details?:
|
|
1856
|
+
details?: {[P in string]: any}[];
|
|
1846
1857
|
/** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
|
|
1847
1858
|
message?: string;
|
|
1848
1859
|
}
|
|
@@ -4799,7 +4810,7 @@ declare namespace gapi.client {
|
|
|
4799
4810
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4800
4811
|
uploadType?: string;
|
|
4801
4812
|
}): Request<Location>;
|
|
4802
|
-
/** Lists information about the supported locations for this service. This method
|
|
4813
|
+
/** Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. */
|
|
4803
4814
|
list(request?: {
|
|
4804
4815
|
/** V1 error format. */
|
|
4805
4816
|
'$.xgafv'?: '1' | '2';
|
|
@@ -4809,7 +4820,7 @@ declare namespace gapi.client {
|
|
|
4809
4820
|
alt?: 'json' | 'media' | 'proto';
|
|
4810
4821
|
/** JSONP */
|
|
4811
4822
|
callback?: string;
|
|
4812
|
-
/** Optional. Do not use this field
|
|
4823
|
+
/** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */
|
|
4813
4824
|
extraLocationTypes?: string | string[];
|
|
4814
4825
|
/** Selector specifying which fields to include in a partial response. */
|
|
4815
4826
|
fields?: string;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,23 @@ Install typings for Database Migration API:
|
|
|
11
11
|
npm install @types/gapi.client.datamigration-v1 --save-dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## TypeScript 6.0+
|
|
15
|
+
|
|
16
|
+
TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"compilerOptions": {
|
|
21
|
+
"types": [
|
|
22
|
+
"gapi",
|
|
23
|
+
"gapi.auth2",
|
|
24
|
+
"gapi.client",
|
|
25
|
+
"gapi.client.datamigration-v1"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|