@maxim_mazurok/gapi.client.datamigration-v1 0.0.20220804 → 0.0.20220822

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 +47 -1
  2. package/package.json +1 -1
  3. package/tests.ts +57 -1
package/index.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
11
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
12
  // Generated from: https://datamigration.googleapis.com/$discovery/rest?version=v1
13
- // Revision: 20220804
13
+ // Revision: 20220822
14
14
 
15
15
  /// <reference types="gapi.client" />
16
16
 
@@ -23,6 +23,24 @@ declare namespace gapi.client {
23
23
  function load(name: "datamigration", version: "v1", callback: () => any): void;
24
24
 
25
25
  namespace datamigration {
26
+ interface AlloyDbConnectionProfile {
27
+ /** Required. The AlloyDB cluster ID that this connection profile is associated with. */
28
+ clusterId?: string;
29
+ /** Immutable. Metadata used to create the destination AlloyDB cluster. */
30
+ settings?: AlloyDbSettings;
31
+ }
32
+ interface AlloyDbSettings {
33
+ /** Required. Input only. Initial user to setup during cluster creation. Required. */
34
+ initialUser?: UserPassword;
35
+ /** Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' pairs. */
36
+ labels?: { [P in string]: string };
37
+ primaryInstanceSettings?: PrimaryInstanceSettings;
38
+ /**
39
+ * Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project
40
+ * as the cluster. It is specified in the form: "projects/{project_number}/global/networks/{network_id}". This is required to create a cluster.
41
+ */
42
+ vpcNetwork?: string;
43
+ }
26
44
  interface AuditConfig {
27
45
  /** The configuration for logging of each type of permission. */
28
46
  auditLogConfigs?: AuditLogConfig[];
@@ -124,6 +142,8 @@ declare namespace gapi.client {
124
142
  zone?: string;
125
143
  }
126
144
  interface ConnectionProfile {
145
+ /** An AlloyDB cluster connection profile. */
146
+ alloydb?: AlloyDbConnectionProfile;
127
147
  /** A CloudSQL database connection profile. */
128
148
  cloudsql?: CloudSqlConnectionProfile;
129
149
  /** Output only. The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". */
@@ -248,6 +268,10 @@ declare namespace gapi.client {
248
268
  /** Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */
249
269
  name?: string;
250
270
  }
271
+ interface MachineConfig {
272
+ /** The number of CPU's in the VM instance. */
273
+ cpuCount?: number;
274
+ }
251
275
  interface MigrationJob {
252
276
  /** Output only. The timestamp when the migration job resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". */
253
277
  createTime?: string;
@@ -378,6 +402,8 @@ declare namespace gapi.client {
378
402
  cloudSqlId?: string;
379
403
  /** Required. The IP or hostname of the source PostgreSQL database. */
380
404
  host?: string;
405
+ /** Output only. If the source is a Cloud SQL database, this field indicates the network architecture it's associated with. */
406
+ networkArchitecture?: string;
381
407
  /**
382
408
  * Required. Input only. The password for the user that Database Migration Service will be using to connect to the database. This field is not returned on request, and the value is
383
409
  * encrypted when stored in Database Migration Service.
@@ -392,6 +418,18 @@ declare namespace gapi.client {
392
418
  /** Required. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service. */
393
419
  username?: string;
394
420
  }
421
+ interface PrimaryInstanceSettings {
422
+ /** Database flags to pass to AlloyDB when DMS is creating the AlloyDB cluster and instances. See the AlloyDB documentation for how these can be used. */
423
+ databaseFlags?: { [P in string]: string };
424
+ /** Required. The ID of the AlloyDB primary instance. The ID must satisfy the regex expression "[a-z0-9-]+". */
425
+ id?: string;
426
+ /** Labels for the AlloyDB primary instance created by DMS. An object containing a list of 'key', 'value' pairs. */
427
+ labels?: { [P in string]: string };
428
+ /** Configuration for the machines that host the underlying database engine. */
429
+ machineConfig?: MachineConfig;
430
+ /** Output only. The private IP address for the Instance. This is the connection endpoint for an end-user application. */
431
+ privateIp?: string;
432
+ }
395
433
  // tslint:disable-next-line:no-empty-interface
396
434
  interface PromoteMigrationJobRequest {
397
435
  }
@@ -500,6 +538,14 @@ declare namespace gapi.client {
500
538
  /** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
501
539
  permissions?: string[];
502
540
  }
541
+ interface UserPassword {
542
+ /** The initial password for the user. */
543
+ password?: string;
544
+ /** Output only. Indicates if the initial_user.password field has been set. */
545
+ passwordSet?: boolean;
546
+ /** The database username. */
547
+ user?: string;
548
+ }
503
549
  // tslint:disable-next-line:no-empty-interface
504
550
  interface VerifyMigrationJobRequest {
505
551
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.datamigration-v1",
3
- "version": "0.0.20220804",
3
+ "version": "0.0.20220822",
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: 20220804
6
+ // Revision: 20220822
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -46,6 +46,33 @@ gapi.load('client', async () => {
46
46
  parent: "Test string",
47
47
  requestId: "Test string",
48
48
  }, {
49
+ alloydb: {
50
+ clusterId: "Test string",
51
+ settings: {
52
+ initialUser: {
53
+ password: "Test string",
54
+ passwordSet: true,
55
+ user: "Test string",
56
+ },
57
+ labels: {
58
+ A: "Test string"
59
+ },
60
+ primaryInstanceSettings: {
61
+ databaseFlags: {
62
+ A: "Test string"
63
+ },
64
+ id: "Test string",
65
+ labels: {
66
+ A: "Test string"
67
+ },
68
+ machineConfig: {
69
+ cpuCount: 42,
70
+ },
71
+ privateIp: "Test string",
72
+ },
73
+ vpcNetwork: "Test string",
74
+ },
75
+ },
49
76
  cloudsql: {
50
77
  cloudSqlId: "Test string",
51
78
  privateIp: "Test string",
@@ -117,6 +144,7 @@ gapi.load('client', async () => {
117
144
  postgresql: {
118
145
  cloudSqlId: "Test string",
119
146
  host: "Test string",
147
+ networkArchitecture: "Test string",
120
148
  password: "Test string",
121
149
  passwordSet: true,
122
150
  port: 42,
@@ -161,6 +189,33 @@ gapi.load('client', async () => {
161
189
  requestId: "Test string",
162
190
  updateMask: "Test string",
163
191
  }, {
192
+ alloydb: {
193
+ clusterId: "Test string",
194
+ settings: {
195
+ initialUser: {
196
+ password: "Test string",
197
+ passwordSet: true,
198
+ user: "Test string",
199
+ },
200
+ labels: {
201
+ A: "Test string"
202
+ },
203
+ primaryInstanceSettings: {
204
+ databaseFlags: {
205
+ A: "Test string"
206
+ },
207
+ id: "Test string",
208
+ labels: {
209
+ A: "Test string"
210
+ },
211
+ machineConfig: {
212
+ cpuCount: 42,
213
+ },
214
+ privateIp: "Test string",
215
+ },
216
+ vpcNetwork: "Test string",
217
+ },
218
+ },
164
219
  cloudsql: {
165
220
  cloudSqlId: "Test string",
166
221
  privateIp: "Test string",
@@ -232,6 +287,7 @@ gapi.load('client', async () => {
232
287
  postgresql: {
233
288
  cloudSqlId: "Test string",
234
289
  host: "Test string",
290
+ networkArchitecture: "Test string",
235
291
  password: "Test string",
236
292
  passwordSet: true,
237
293
  port: 42,