@maxim_mazurok/gapi.client.sqladmin-v1beta4 0.0.20231108 → 0.0.20231128

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/tests.ts DELETED
@@ -1,1343 +0,0 @@
1
- /* This is stub file for gapi.client.sqladmin-v1beta4 definition tests */
2
- // IMPORTANT
3
- // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
- // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
-
6
- // Revision: 20231108
7
-
8
- gapi.load('client', async () => {
9
- /** now we can use gapi.client */
10
-
11
- await gapi.client.load('https://sqladmin.googleapis.com/$discovery/rest?version=v1beta4');
12
- /** now we can use gapi.client.sql */
13
-
14
- /** don't forget to authenticate your client before sending any request to resources: */
15
- /** declare client_id registered in Google Developers Console */
16
- const client_id = '<<PUT YOUR CLIENT ID HERE>>';
17
- const scope = [
18
- /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. */
19
- 'https://www.googleapis.com/auth/cloud-platform',
20
- /** Manage your Google SQL Service instances */
21
- 'https://www.googleapis.com/auth/sqlservice.admin',
22
- ];
23
- const immediate = false;
24
- gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
25
- if (authResult && !authResult.error) {
26
- /** handle successful authorization */
27
- run();
28
- } else {
29
- /** handle authorization error */
30
- }
31
- });
32
-
33
- async function run() {
34
- /** Deletes the backup taken by a backup run. */
35
- await gapi.client.sql.backupRuns.delete({
36
- id: "Test string",
37
- instance: "Test string",
38
- project: "Test string",
39
- });
40
- /** Retrieves a resource containing information about a backup run. */
41
- await gapi.client.sql.backupRuns.get({
42
- id: "Test string",
43
- instance: "Test string",
44
- project: "Test string",
45
- });
46
- /** Creates a new backup run on demand. */
47
- await gapi.client.sql.backupRuns.insert({
48
- instance: "Test string",
49
- project: "Test string",
50
- }, {
51
- backupKind: "Test string",
52
- description: "Test string",
53
- diskEncryptionConfiguration: {
54
- kind: "Test string",
55
- kmsKeyName: "Test string",
56
- },
57
- diskEncryptionStatus: {
58
- kind: "Test string",
59
- kmsKeyVersionName: "Test string",
60
- },
61
- endTime: "Test string",
62
- enqueuedTime: "Test string",
63
- error: {
64
- code: "Test string",
65
- kind: "Test string",
66
- message: "Test string",
67
- },
68
- id: "Test string",
69
- instance: "Test string",
70
- kind: "Test string",
71
- location: "Test string",
72
- selfLink: "Test string",
73
- startTime: "Test string",
74
- status: "Test string",
75
- timeZone: "Test string",
76
- type: "Test string",
77
- windowStartTime: "Test string",
78
- });
79
- /** Lists all backup runs associated with the project or a given instance and configuration in the reverse chronological order of the backup initiation time. */
80
- await gapi.client.sql.backupRuns.list({
81
- instance: "Test string",
82
- maxResults: 42,
83
- pageToken: "Test string",
84
- project: "Test string",
85
- });
86
- /**
87
- * Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as
88
- * themselves when connecting to the database.
89
- */
90
- await gapi.client.sql.connect.generateEphemeralCert({
91
- instance: "Test string",
92
- project: "Test string",
93
- }, {
94
- access_token: "Test string",
95
- public_key: "Test string",
96
- readTime: "Test string",
97
- validDuration: "Test string",
98
- });
99
- /** Retrieves connect settings about a Cloud SQL instance. */
100
- await gapi.client.sql.connect.get({
101
- instance: "Test string",
102
- project: "Test string",
103
- readTime: "Test string",
104
- });
105
- /** Deletes a database from a Cloud SQL instance. */
106
- await gapi.client.sql.databases.delete({
107
- database: "Test string",
108
- instance: "Test string",
109
- project: "Test string",
110
- });
111
- /** Retrieves a resource containing information about a database inside a Cloud SQL instance. */
112
- await gapi.client.sql.databases.get({
113
- database: "Test string",
114
- instance: "Test string",
115
- project: "Test string",
116
- });
117
- /** Inserts a resource containing information about a database inside a Cloud SQL instance. **Note:** You can't modify the default character set and collation. */
118
- await gapi.client.sql.databases.insert({
119
- instance: "Test string",
120
- project: "Test string",
121
- }, {
122
- charset: "Test string",
123
- collation: "Test string",
124
- etag: "Test string",
125
- instance: "Test string",
126
- kind: "Test string",
127
- name: "Test string",
128
- project: "Test string",
129
- selfLink: "Test string",
130
- sqlserverDatabaseDetails: {
131
- compatibilityLevel: 42,
132
- recoveryModel: "Test string",
133
- },
134
- });
135
- /** Lists databases in the specified Cloud SQL instance. */
136
- await gapi.client.sql.databases.list({
137
- instance: "Test string",
138
- project: "Test string",
139
- });
140
- /** Partially updates a resource containing information about a database inside a Cloud SQL instance. This method supports patch semantics. */
141
- await gapi.client.sql.databases.patch({
142
- database: "Test string",
143
- instance: "Test string",
144
- project: "Test string",
145
- }, {
146
- charset: "Test string",
147
- collation: "Test string",
148
- etag: "Test string",
149
- instance: "Test string",
150
- kind: "Test string",
151
- name: "Test string",
152
- project: "Test string",
153
- selfLink: "Test string",
154
- sqlserverDatabaseDetails: {
155
- compatibilityLevel: 42,
156
- recoveryModel: "Test string",
157
- },
158
- });
159
- /** Updates a resource containing information about a database inside a Cloud SQL instance. */
160
- await gapi.client.sql.databases.update({
161
- database: "Test string",
162
- instance: "Test string",
163
- project: "Test string",
164
- }, {
165
- charset: "Test string",
166
- collation: "Test string",
167
- etag: "Test string",
168
- instance: "Test string",
169
- kind: "Test string",
170
- name: "Test string",
171
- project: "Test string",
172
- selfLink: "Test string",
173
- sqlserverDatabaseDetails: {
174
- compatibilityLevel: 42,
175
- recoveryModel: "Test string",
176
- },
177
- });
178
- /** Lists all available database flags for Cloud SQL instances. */
179
- await gapi.client.sql.flags.list({
180
- databaseVersion: "Test string",
181
- });
182
- /**
183
- * Add a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a
184
- * certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in.
185
- */
186
- await gapi.client.sql.instances.addServerCa({
187
- instance: "Test string",
188
- project: "Test string",
189
- });
190
- /** Creates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restart. */
191
- await gapi.client.sql.instances.clone({
192
- instance: "Test string",
193
- project: "Test string",
194
- }, {
195
- cloneContext: {
196
- allocatedIpRange: "Test string",
197
- binLogCoordinates: {
198
- binLogFileName: "Test string",
199
- binLogPosition: "Test string",
200
- kind: "Test string",
201
- },
202
- databaseNames: [
203
- "Test string"
204
- ],
205
- destinationInstanceName: "Test string",
206
- kind: "Test string",
207
- pitrTimestampMs: "Test string",
208
- pointInTime: "Test string",
209
- preferredZone: "Test string",
210
- },
211
- });
212
- /** Deletes a Cloud SQL instance. */
213
- await gapi.client.sql.instances.delete({
214
- instance: "Test string",
215
- project: "Test string",
216
- });
217
- /** Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server. */
218
- await gapi.client.sql.instances.demote({
219
- instance: "Test string",
220
- project: "Test string",
221
- }, {
222
- demoteContext: {
223
- kind: "Test string",
224
- sourceRepresentativeInstanceName: "Test string",
225
- },
226
- });
227
- /** Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server. */
228
- await gapi.client.sql.instances.demoteMaster({
229
- instance: "Test string",
230
- project: "Test string",
231
- }, {
232
- demoteMasterContext: {
233
- kind: "Test string",
234
- masterInstanceName: "Test string",
235
- replicaConfiguration: {
236
- kind: "Test string",
237
- mysqlReplicaConfiguration: {
238
- caCertificate: "Test string",
239
- clientCertificate: "Test string",
240
- clientKey: "Test string",
241
- kind: "Test string",
242
- password: "Test string",
243
- username: "Test string",
244
- },
245
- },
246
- skipReplicationSetup: true,
247
- verifyGtidConsistency: true,
248
- },
249
- });
250
- /** Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file. */
251
- await gapi.client.sql.instances.export({
252
- instance: "Test string",
253
- project: "Test string",
254
- }, {
255
- exportContext: {
256
- bakExportOptions: {
257
- bakType: "Test string",
258
- copyOnly: true,
259
- differentialBase: true,
260
- stripeCount: 42,
261
- striped: true,
262
- },
263
- csvExportOptions: {
264
- escapeCharacter: "Test string",
265
- fieldsTerminatedBy: "Test string",
266
- linesTerminatedBy: "Test string",
267
- quoteCharacter: "Test string",
268
- selectQuery: "Test string",
269
- },
270
- databases: [
271
- "Test string"
272
- ],
273
- fileType: "Test string",
274
- kind: "Test string",
275
- offload: true,
276
- sqlExportOptions: {
277
- mysqlExportOptions: {
278
- masterData: 42,
279
- },
280
- schemaOnly: true,
281
- tables: [
282
- "Test string"
283
- ],
284
- },
285
- uri: "Test string",
286
- },
287
- });
288
- /**
289
- * Initiates a manual failover of a high availability (HA) primary instance to a standby instance, which becomes the primary instance. Users are then rerouted to the new primary. For more
290
- * information, see the [Overview of high availability](https://cloud.google.com/sql/docs/mysql/high-availability) page in the Cloud SQL documentation. If using Legacy HA (MySQL only),
291
- * this causes the instance to failover to its failover replica instance.
292
- */
293
- await gapi.client.sql.instances.failover({
294
- instance: "Test string",
295
- project: "Test string",
296
- }, {
297
- failoverContext: {
298
- kind: "Test string",
299
- settingsVersion: "Test string",
300
- },
301
- });
302
- /** Retrieves a resource containing information about a Cloud SQL instance. */
303
- await gapi.client.sql.instances.get({
304
- instance: "Test string",
305
- project: "Test string",
306
- });
307
- /** Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud Storage. */
308
- await gapi.client.sql.instances.import({
309
- instance: "Test string",
310
- project: "Test string",
311
- }, {
312
- importContext: {
313
- bakImportOptions: {
314
- bakType: "Test string",
315
- encryptionOptions: {
316
- certPath: "Test string",
317
- pvkPassword: "Test string",
318
- pvkPath: "Test string",
319
- },
320
- noRecovery: true,
321
- recoveryOnly: true,
322
- stopAt: "Test string",
323
- stopAtMark: "Test string",
324
- striped: true,
325
- },
326
- csvImportOptions: {
327
- columns: [
328
- "Test string"
329
- ],
330
- escapeCharacter: "Test string",
331
- fieldsTerminatedBy: "Test string",
332
- linesTerminatedBy: "Test string",
333
- quoteCharacter: "Test string",
334
- table: "Test string",
335
- },
336
- database: "Test string",
337
- fileType: "Test string",
338
- importUser: "Test string",
339
- kind: "Test string",
340
- uri: "Test string",
341
- },
342
- });
343
- /** Creates a new Cloud SQL instance. */
344
- await gapi.client.sql.instances.insert({
345
- project: "Test string",
346
- }, {
347
- availableMaintenanceVersions: [
348
- "Test string"
349
- ],
350
- backendType: "Test string",
351
- connectionName: "Test string",
352
- createTime: "Test string",
353
- currentDiskSize: "Test string",
354
- databaseInstalledVersion: "Test string",
355
- databaseVersion: "Test string",
356
- diskEncryptionConfiguration: {
357
- kind: "Test string",
358
- kmsKeyName: "Test string",
359
- },
360
- diskEncryptionStatus: {
361
- kind: "Test string",
362
- kmsKeyVersionName: "Test string",
363
- },
364
- dnsName: "Test string",
365
- etag: "Test string",
366
- failoverReplica: {
367
- available: true,
368
- name: "Test string",
369
- },
370
- gceZone: "Test string",
371
- instanceType: "Test string",
372
- ipAddresses: [
373
- {
374
- ipAddress: "Test string",
375
- timeToRetire: "Test string",
376
- type: "Test string",
377
- }
378
- ],
379
- ipv6Address: "Test string",
380
- kind: "Test string",
381
- maintenanceVersion: "Test string",
382
- masterInstanceName: "Test string",
383
- maxDiskSize: "Test string",
384
- name: "Test string",
385
- onPremisesConfiguration: {
386
- caCertificate: "Test string",
387
- clientCertificate: "Test string",
388
- clientKey: "Test string",
389
- dumpFilePath: "Test string",
390
- hostPort: "Test string",
391
- kind: "Test string",
392
- password: "Test string",
393
- sourceInstance: {
394
- name: "Test string",
395
- project: "Test string",
396
- region: "Test string",
397
- },
398
- username: "Test string",
399
- },
400
- outOfDiskReport: {
401
- sqlMinRecommendedIncreaseSizeGb: 42,
402
- sqlOutOfDiskState: "Test string",
403
- },
404
- primaryDnsName: "Test string",
405
- project: "Test string",
406
- pscServiceAttachmentLink: "Test string",
407
- region: "Test string",
408
- replicaConfiguration: {
409
- cascadableReplica: true,
410
- failoverTarget: true,
411
- kind: "Test string",
412
- mysqlReplicaConfiguration: {
413
- caCertificate: "Test string",
414
- clientCertificate: "Test string",
415
- clientKey: "Test string",
416
- connectRetryInterval: 42,
417
- dumpFilePath: "Test string",
418
- kind: "Test string",
419
- masterHeartbeatPeriod: "Test string",
420
- password: "Test string",
421
- sslCipher: "Test string",
422
- username: "Test string",
423
- verifyServerCertificate: true,
424
- },
425
- },
426
- replicaNames: [
427
- "Test string"
428
- ],
429
- rootPassword: "Test string",
430
- satisfiesPzs: true,
431
- scheduledMaintenance: {
432
- canDefer: true,
433
- canReschedule: true,
434
- scheduleDeadlineTime: "Test string",
435
- startTime: "Test string",
436
- },
437
- secondaryGceZone: "Test string",
438
- selfLink: "Test string",
439
- serverCaCert: {
440
- cert: "Test string",
441
- certSerialNumber: "Test string",
442
- commonName: "Test string",
443
- createTime: "Test string",
444
- expirationTime: "Test string",
445
- instance: "Test string",
446
- kind: "Test string",
447
- selfLink: "Test string",
448
- sha1Fingerprint: "Test string",
449
- },
450
- serviceAccountEmailAddress: "Test string",
451
- settings: {
452
- activationPolicy: "Test string",
453
- activeDirectoryConfig: {
454
- domain: "Test string",
455
- kind: "Test string",
456
- },
457
- advancedMachineFeatures: {
458
- threadsPerCore: 42,
459
- },
460
- authorizedGaeApplications: [
461
- "Test string"
462
- ],
463
- availabilityType: "Test string",
464
- backupConfiguration: {
465
- backupRetentionSettings: {
466
- retainedBackups: 42,
467
- retentionUnit: "Test string",
468
- },
469
- binaryLogEnabled: true,
470
- enabled: true,
471
- kind: "Test string",
472
- location: "Test string",
473
- pointInTimeRecoveryEnabled: true,
474
- replicationLogArchivingEnabled: true,
475
- startTime: "Test string",
476
- transactionLogRetentionDays: 42,
477
- },
478
- collation: "Test string",
479
- connectorEnforcement: "Test string",
480
- crashSafeReplicationEnabled: true,
481
- databaseFlags: [
482
- {
483
- name: "Test string",
484
- value: "Test string",
485
- }
486
- ],
487
- databaseReplicationEnabled: true,
488
- dataCacheConfig: {
489
- dataCacheEnabled: true,
490
- },
491
- dataDiskSizeGb: "Test string",
492
- dataDiskType: "Test string",
493
- deletionProtectionEnabled: true,
494
- denyMaintenancePeriods: [
495
- {
496
- endDate: "Test string",
497
- startDate: "Test string",
498
- time: "Test string",
499
- }
500
- ],
501
- edition: "Test string",
502
- insightsConfig: {
503
- queryInsightsEnabled: true,
504
- queryPlansPerMinute: 42,
505
- queryStringLength: 42,
506
- recordApplicationTags: true,
507
- recordClientAddress: true,
508
- },
509
- ipConfiguration: {
510
- allocatedIpRange: "Test string",
511
- authorizedNetworks: [
512
- {
513
- expirationTime: "Test string",
514
- kind: "Test string",
515
- name: "Test string",
516
- value: "Test string",
517
- }
518
- ],
519
- enablePrivatePathForGoogleCloudServices: true,
520
- ipv4Enabled: true,
521
- privateNetwork: "Test string",
522
- pscConfig: {
523
- allowedConsumerProjects: [
524
- "Test string"
525
- ],
526
- pscEnabled: true,
527
- },
528
- requireSsl: true,
529
- sslMode: "Test string",
530
- },
531
- kind: "Test string",
532
- locationPreference: {
533
- followGaeApplication: "Test string",
534
- kind: "Test string",
535
- secondaryZone: "Test string",
536
- zone: "Test string",
537
- },
538
- maintenanceWindow: {
539
- day: 42,
540
- hour: 42,
541
- kind: "Test string",
542
- updateTrack: "Test string",
543
- },
544
- passwordValidationPolicy: {
545
- complexity: "Test string",
546
- disallowCompromisedCredentials: true,
547
- disallowUsernameSubstring: true,
548
- enablePasswordPolicy: true,
549
- minLength: 42,
550
- passwordChangeInterval: "Test string",
551
- reuseInterval: 42,
552
- },
553
- pricingPlan: "Test string",
554
- replicationType: "Test string",
555
- settingsVersion: "Test string",
556
- sqlServerAuditConfig: {
557
- bucket: "Test string",
558
- kind: "Test string",
559
- retentionInterval: "Test string",
560
- uploadInterval: "Test string",
561
- },
562
- storageAutoResize: true,
563
- storageAutoResizeLimit: "Test string",
564
- tier: "Test string",
565
- timeZone: "Test string",
566
- userLabels: {
567
- A: "Test string"
568
- },
569
- },
570
- sqlNetworkArchitecture: "Test string",
571
- state: "Test string",
572
- suspensionReason: [
573
- "Test string"
574
- ],
575
- writeEndpoint: "Test string",
576
- });
577
- /** Lists instances under a given project. */
578
- await gapi.client.sql.instances.list({
579
- filter: "Test string",
580
- maxResults: 42,
581
- pageToken: "Test string",
582
- project: "Test string",
583
- });
584
- /**
585
- * Lists all of the trusted Certificate Authorities (CAs) for the specified instance. There can be up to three CAs listed: the CA that was used to sign the certificate that is currently in
586
- * use, a CA that has been added but not yet used to sign a certificate, and a CA used to sign a certificate that has previously rotated out.
587
- */
588
- await gapi.client.sql.instances.listServerCas({
589
- instance: "Test string",
590
- project: "Test string",
591
- });
592
- /** Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics. */
593
- await gapi.client.sql.instances.patch({
594
- instance: "Test string",
595
- project: "Test string",
596
- }, {
597
- availableMaintenanceVersions: [
598
- "Test string"
599
- ],
600
- backendType: "Test string",
601
- connectionName: "Test string",
602
- createTime: "Test string",
603
- currentDiskSize: "Test string",
604
- databaseInstalledVersion: "Test string",
605
- databaseVersion: "Test string",
606
- diskEncryptionConfiguration: {
607
- kind: "Test string",
608
- kmsKeyName: "Test string",
609
- },
610
- diskEncryptionStatus: {
611
- kind: "Test string",
612
- kmsKeyVersionName: "Test string",
613
- },
614
- dnsName: "Test string",
615
- etag: "Test string",
616
- failoverReplica: {
617
- available: true,
618
- name: "Test string",
619
- },
620
- gceZone: "Test string",
621
- instanceType: "Test string",
622
- ipAddresses: [
623
- {
624
- ipAddress: "Test string",
625
- timeToRetire: "Test string",
626
- type: "Test string",
627
- }
628
- ],
629
- ipv6Address: "Test string",
630
- kind: "Test string",
631
- maintenanceVersion: "Test string",
632
- masterInstanceName: "Test string",
633
- maxDiskSize: "Test string",
634
- name: "Test string",
635
- onPremisesConfiguration: {
636
- caCertificate: "Test string",
637
- clientCertificate: "Test string",
638
- clientKey: "Test string",
639
- dumpFilePath: "Test string",
640
- hostPort: "Test string",
641
- kind: "Test string",
642
- password: "Test string",
643
- sourceInstance: {
644
- name: "Test string",
645
- project: "Test string",
646
- region: "Test string",
647
- },
648
- username: "Test string",
649
- },
650
- outOfDiskReport: {
651
- sqlMinRecommendedIncreaseSizeGb: 42,
652
- sqlOutOfDiskState: "Test string",
653
- },
654
- primaryDnsName: "Test string",
655
- project: "Test string",
656
- pscServiceAttachmentLink: "Test string",
657
- region: "Test string",
658
- replicaConfiguration: {
659
- cascadableReplica: true,
660
- failoverTarget: true,
661
- kind: "Test string",
662
- mysqlReplicaConfiguration: {
663
- caCertificate: "Test string",
664
- clientCertificate: "Test string",
665
- clientKey: "Test string",
666
- connectRetryInterval: 42,
667
- dumpFilePath: "Test string",
668
- kind: "Test string",
669
- masterHeartbeatPeriod: "Test string",
670
- password: "Test string",
671
- sslCipher: "Test string",
672
- username: "Test string",
673
- verifyServerCertificate: true,
674
- },
675
- },
676
- replicaNames: [
677
- "Test string"
678
- ],
679
- rootPassword: "Test string",
680
- satisfiesPzs: true,
681
- scheduledMaintenance: {
682
- canDefer: true,
683
- canReschedule: true,
684
- scheduleDeadlineTime: "Test string",
685
- startTime: "Test string",
686
- },
687
- secondaryGceZone: "Test string",
688
- selfLink: "Test string",
689
- serverCaCert: {
690
- cert: "Test string",
691
- certSerialNumber: "Test string",
692
- commonName: "Test string",
693
- createTime: "Test string",
694
- expirationTime: "Test string",
695
- instance: "Test string",
696
- kind: "Test string",
697
- selfLink: "Test string",
698
- sha1Fingerprint: "Test string",
699
- },
700
- serviceAccountEmailAddress: "Test string",
701
- settings: {
702
- activationPolicy: "Test string",
703
- activeDirectoryConfig: {
704
- domain: "Test string",
705
- kind: "Test string",
706
- },
707
- advancedMachineFeatures: {
708
- threadsPerCore: 42,
709
- },
710
- authorizedGaeApplications: [
711
- "Test string"
712
- ],
713
- availabilityType: "Test string",
714
- backupConfiguration: {
715
- backupRetentionSettings: {
716
- retainedBackups: 42,
717
- retentionUnit: "Test string",
718
- },
719
- binaryLogEnabled: true,
720
- enabled: true,
721
- kind: "Test string",
722
- location: "Test string",
723
- pointInTimeRecoveryEnabled: true,
724
- replicationLogArchivingEnabled: true,
725
- startTime: "Test string",
726
- transactionLogRetentionDays: 42,
727
- },
728
- collation: "Test string",
729
- connectorEnforcement: "Test string",
730
- crashSafeReplicationEnabled: true,
731
- databaseFlags: [
732
- {
733
- name: "Test string",
734
- value: "Test string",
735
- }
736
- ],
737
- databaseReplicationEnabled: true,
738
- dataCacheConfig: {
739
- dataCacheEnabled: true,
740
- },
741
- dataDiskSizeGb: "Test string",
742
- dataDiskType: "Test string",
743
- deletionProtectionEnabled: true,
744
- denyMaintenancePeriods: [
745
- {
746
- endDate: "Test string",
747
- startDate: "Test string",
748
- time: "Test string",
749
- }
750
- ],
751
- edition: "Test string",
752
- insightsConfig: {
753
- queryInsightsEnabled: true,
754
- queryPlansPerMinute: 42,
755
- queryStringLength: 42,
756
- recordApplicationTags: true,
757
- recordClientAddress: true,
758
- },
759
- ipConfiguration: {
760
- allocatedIpRange: "Test string",
761
- authorizedNetworks: [
762
- {
763
- expirationTime: "Test string",
764
- kind: "Test string",
765
- name: "Test string",
766
- value: "Test string",
767
- }
768
- ],
769
- enablePrivatePathForGoogleCloudServices: true,
770
- ipv4Enabled: true,
771
- privateNetwork: "Test string",
772
- pscConfig: {
773
- allowedConsumerProjects: [
774
- "Test string"
775
- ],
776
- pscEnabled: true,
777
- },
778
- requireSsl: true,
779
- sslMode: "Test string",
780
- },
781
- kind: "Test string",
782
- locationPreference: {
783
- followGaeApplication: "Test string",
784
- kind: "Test string",
785
- secondaryZone: "Test string",
786
- zone: "Test string",
787
- },
788
- maintenanceWindow: {
789
- day: 42,
790
- hour: 42,
791
- kind: "Test string",
792
- updateTrack: "Test string",
793
- },
794
- passwordValidationPolicy: {
795
- complexity: "Test string",
796
- disallowCompromisedCredentials: true,
797
- disallowUsernameSubstring: true,
798
- enablePasswordPolicy: true,
799
- minLength: 42,
800
- passwordChangeInterval: "Test string",
801
- reuseInterval: 42,
802
- },
803
- pricingPlan: "Test string",
804
- replicationType: "Test string",
805
- settingsVersion: "Test string",
806
- sqlServerAuditConfig: {
807
- bucket: "Test string",
808
- kind: "Test string",
809
- retentionInterval: "Test string",
810
- uploadInterval: "Test string",
811
- },
812
- storageAutoResize: true,
813
- storageAutoResizeLimit: "Test string",
814
- tier: "Test string",
815
- timeZone: "Test string",
816
- userLabels: {
817
- A: "Test string"
818
- },
819
- },
820
- sqlNetworkArchitecture: "Test string",
821
- state: "Test string",
822
- suspensionReason: [
823
- "Test string"
824
- ],
825
- writeEndpoint: "Test string",
826
- });
827
- /** Promotes the read replica instance to be a stand-alone Cloud SQL instance. Using this operation might cause your instance to restart. */
828
- await gapi.client.sql.instances.promoteReplica({
829
- failover: true,
830
- instance: "Test string",
831
- project: "Test string",
832
- });
833
- /** Reencrypt CMEK instance with latest key version. */
834
- await gapi.client.sql.instances.reencrypt({
835
- instance: "Test string",
836
- project: "Test string",
837
- }, {
838
- backupReencryptionConfig: {
839
- backupLimit: 42,
840
- backupType: "Test string",
841
- },
842
- });
843
- /** Deletes all client certificates and generates a new server SSL certificate for the instance. */
844
- await gapi.client.sql.instances.resetSslConfig({
845
- instance: "Test string",
846
- project: "Test string",
847
- });
848
- /** Restarts a Cloud SQL instance. */
849
- await gapi.client.sql.instances.restart({
850
- instance: "Test string",
851
- project: "Test string",
852
- });
853
- /** Restores a backup of a Cloud SQL instance. Using this operation might cause your instance to restart. */
854
- await gapi.client.sql.instances.restoreBackup({
855
- instance: "Test string",
856
- project: "Test string",
857
- }, {
858
- restoreBackupContext: {
859
- backupRunId: "Test string",
860
- instanceId: "Test string",
861
- kind: "Test string",
862
- project: "Test string",
863
- },
864
- });
865
- /** Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method. */
866
- await gapi.client.sql.instances.rotateServerCa({
867
- instance: "Test string",
868
- project: "Test string",
869
- }, {
870
- rotateServerCaContext: {
871
- kind: "Test string",
872
- nextVersion: "Test string",
873
- },
874
- });
875
- /** Starts the replication in the read replica instance. */
876
- await gapi.client.sql.instances.startReplica({
877
- instance: "Test string",
878
- project: "Test string",
879
- });
880
- /** Stops the replication in the read replica instance. */
881
- await gapi.client.sql.instances.stopReplica({
882
- instance: "Test string",
883
- project: "Test string",
884
- });
885
- /** Switches over from the primary instance to a replica instance. */
886
- await gapi.client.sql.instances.switchover({
887
- dbTimeout: "Test string",
888
- instance: "Test string",
889
- project: "Test string",
890
- });
891
- /** Truncate MySQL general and slow query log tables MySQL only. */
892
- await gapi.client.sql.instances.truncateLog({
893
- instance: "Test string",
894
- project: "Test string",
895
- }, {
896
- truncateLogContext: {
897
- kind: "Test string",
898
- logType: "Test string",
899
- },
900
- });
901
- /** Updates settings of a Cloud SQL instance. Using this operation might cause your instance to restart. */
902
- await gapi.client.sql.instances.update({
903
- instance: "Test string",
904
- project: "Test string",
905
- }, {
906
- availableMaintenanceVersions: [
907
- "Test string"
908
- ],
909
- backendType: "Test string",
910
- connectionName: "Test string",
911
- createTime: "Test string",
912
- currentDiskSize: "Test string",
913
- databaseInstalledVersion: "Test string",
914
- databaseVersion: "Test string",
915
- diskEncryptionConfiguration: {
916
- kind: "Test string",
917
- kmsKeyName: "Test string",
918
- },
919
- diskEncryptionStatus: {
920
- kind: "Test string",
921
- kmsKeyVersionName: "Test string",
922
- },
923
- dnsName: "Test string",
924
- etag: "Test string",
925
- failoverReplica: {
926
- available: true,
927
- name: "Test string",
928
- },
929
- gceZone: "Test string",
930
- instanceType: "Test string",
931
- ipAddresses: [
932
- {
933
- ipAddress: "Test string",
934
- timeToRetire: "Test string",
935
- type: "Test string",
936
- }
937
- ],
938
- ipv6Address: "Test string",
939
- kind: "Test string",
940
- maintenanceVersion: "Test string",
941
- masterInstanceName: "Test string",
942
- maxDiskSize: "Test string",
943
- name: "Test string",
944
- onPremisesConfiguration: {
945
- caCertificate: "Test string",
946
- clientCertificate: "Test string",
947
- clientKey: "Test string",
948
- dumpFilePath: "Test string",
949
- hostPort: "Test string",
950
- kind: "Test string",
951
- password: "Test string",
952
- sourceInstance: {
953
- name: "Test string",
954
- project: "Test string",
955
- region: "Test string",
956
- },
957
- username: "Test string",
958
- },
959
- outOfDiskReport: {
960
- sqlMinRecommendedIncreaseSizeGb: 42,
961
- sqlOutOfDiskState: "Test string",
962
- },
963
- primaryDnsName: "Test string",
964
- project: "Test string",
965
- pscServiceAttachmentLink: "Test string",
966
- region: "Test string",
967
- replicaConfiguration: {
968
- cascadableReplica: true,
969
- failoverTarget: true,
970
- kind: "Test string",
971
- mysqlReplicaConfiguration: {
972
- caCertificate: "Test string",
973
- clientCertificate: "Test string",
974
- clientKey: "Test string",
975
- connectRetryInterval: 42,
976
- dumpFilePath: "Test string",
977
- kind: "Test string",
978
- masterHeartbeatPeriod: "Test string",
979
- password: "Test string",
980
- sslCipher: "Test string",
981
- username: "Test string",
982
- verifyServerCertificate: true,
983
- },
984
- },
985
- replicaNames: [
986
- "Test string"
987
- ],
988
- rootPassword: "Test string",
989
- satisfiesPzs: true,
990
- scheduledMaintenance: {
991
- canDefer: true,
992
- canReschedule: true,
993
- scheduleDeadlineTime: "Test string",
994
- startTime: "Test string",
995
- },
996
- secondaryGceZone: "Test string",
997
- selfLink: "Test string",
998
- serverCaCert: {
999
- cert: "Test string",
1000
- certSerialNumber: "Test string",
1001
- commonName: "Test string",
1002
- createTime: "Test string",
1003
- expirationTime: "Test string",
1004
- instance: "Test string",
1005
- kind: "Test string",
1006
- selfLink: "Test string",
1007
- sha1Fingerprint: "Test string",
1008
- },
1009
- serviceAccountEmailAddress: "Test string",
1010
- settings: {
1011
- activationPolicy: "Test string",
1012
- activeDirectoryConfig: {
1013
- domain: "Test string",
1014
- kind: "Test string",
1015
- },
1016
- advancedMachineFeatures: {
1017
- threadsPerCore: 42,
1018
- },
1019
- authorizedGaeApplications: [
1020
- "Test string"
1021
- ],
1022
- availabilityType: "Test string",
1023
- backupConfiguration: {
1024
- backupRetentionSettings: {
1025
- retainedBackups: 42,
1026
- retentionUnit: "Test string",
1027
- },
1028
- binaryLogEnabled: true,
1029
- enabled: true,
1030
- kind: "Test string",
1031
- location: "Test string",
1032
- pointInTimeRecoveryEnabled: true,
1033
- replicationLogArchivingEnabled: true,
1034
- startTime: "Test string",
1035
- transactionLogRetentionDays: 42,
1036
- },
1037
- collation: "Test string",
1038
- connectorEnforcement: "Test string",
1039
- crashSafeReplicationEnabled: true,
1040
- databaseFlags: [
1041
- {
1042
- name: "Test string",
1043
- value: "Test string",
1044
- }
1045
- ],
1046
- databaseReplicationEnabled: true,
1047
- dataCacheConfig: {
1048
- dataCacheEnabled: true,
1049
- },
1050
- dataDiskSizeGb: "Test string",
1051
- dataDiskType: "Test string",
1052
- deletionProtectionEnabled: true,
1053
- denyMaintenancePeriods: [
1054
- {
1055
- endDate: "Test string",
1056
- startDate: "Test string",
1057
- time: "Test string",
1058
- }
1059
- ],
1060
- edition: "Test string",
1061
- insightsConfig: {
1062
- queryInsightsEnabled: true,
1063
- queryPlansPerMinute: 42,
1064
- queryStringLength: 42,
1065
- recordApplicationTags: true,
1066
- recordClientAddress: true,
1067
- },
1068
- ipConfiguration: {
1069
- allocatedIpRange: "Test string",
1070
- authorizedNetworks: [
1071
- {
1072
- expirationTime: "Test string",
1073
- kind: "Test string",
1074
- name: "Test string",
1075
- value: "Test string",
1076
- }
1077
- ],
1078
- enablePrivatePathForGoogleCloudServices: true,
1079
- ipv4Enabled: true,
1080
- privateNetwork: "Test string",
1081
- pscConfig: {
1082
- allowedConsumerProjects: [
1083
- "Test string"
1084
- ],
1085
- pscEnabled: true,
1086
- },
1087
- requireSsl: true,
1088
- sslMode: "Test string",
1089
- },
1090
- kind: "Test string",
1091
- locationPreference: {
1092
- followGaeApplication: "Test string",
1093
- kind: "Test string",
1094
- secondaryZone: "Test string",
1095
- zone: "Test string",
1096
- },
1097
- maintenanceWindow: {
1098
- day: 42,
1099
- hour: 42,
1100
- kind: "Test string",
1101
- updateTrack: "Test string",
1102
- },
1103
- passwordValidationPolicy: {
1104
- complexity: "Test string",
1105
- disallowCompromisedCredentials: true,
1106
- disallowUsernameSubstring: true,
1107
- enablePasswordPolicy: true,
1108
- minLength: 42,
1109
- passwordChangeInterval: "Test string",
1110
- reuseInterval: 42,
1111
- },
1112
- pricingPlan: "Test string",
1113
- replicationType: "Test string",
1114
- settingsVersion: "Test string",
1115
- sqlServerAuditConfig: {
1116
- bucket: "Test string",
1117
- kind: "Test string",
1118
- retentionInterval: "Test string",
1119
- uploadInterval: "Test string",
1120
- },
1121
- storageAutoResize: true,
1122
- storageAutoResizeLimit: "Test string",
1123
- tier: "Test string",
1124
- timeZone: "Test string",
1125
- userLabels: {
1126
- A: "Test string"
1127
- },
1128
- },
1129
- sqlNetworkArchitecture: "Test string",
1130
- state: "Test string",
1131
- suspensionReason: [
1132
- "Test string"
1133
- ],
1134
- writeEndpoint: "Test string",
1135
- });
1136
- /** Cancels an instance operation that has been performed on an instance. */
1137
- await gapi.client.sql.operations.cancel({
1138
- operation: "Test string",
1139
- project: "Test string",
1140
- });
1141
- /** Retrieves an instance operation that has been performed on an instance. */
1142
- await gapi.client.sql.operations.get({
1143
- operation: "Test string",
1144
- project: "Test string",
1145
- });
1146
- /** Lists all instance operations that have been performed on the given Cloud SQL instance in the reverse chronological order of the start time. */
1147
- await gapi.client.sql.operations.list({
1148
- instance: "Test string",
1149
- maxResults: 42,
1150
- pageToken: "Test string",
1151
- project: "Test string",
1152
- });
1153
- /** Get Disk Shrink Config for a given instance. */
1154
- await gapi.client.sql.projects.instances.getDiskShrinkConfig({
1155
- instance: "Test string",
1156
- project: "Test string",
1157
- });
1158
- /** Get Latest Recovery Time for a given instance. */
1159
- await gapi.client.sql.projects.instances.getLatestRecoveryTime({
1160
- instance: "Test string",
1161
- project: "Test string",
1162
- });
1163
- /** Perform Disk Shrink on primary instance. */
1164
- await gapi.client.sql.projects.instances.performDiskShrink({
1165
- instance: "Test string",
1166
- project: "Test string",
1167
- }, {
1168
- targetSizeGb: "Test string",
1169
- });
1170
- /** Reschedules the maintenance on the given instance. */
1171
- await gapi.client.sql.projects.instances.rescheduleMaintenance({
1172
- instance: "Test string",
1173
- project: "Test string",
1174
- }, {
1175
- reschedule: {
1176
- rescheduleType: "Test string",
1177
- scheduleTime: "Test string",
1178
- },
1179
- });
1180
- /** Reset Replica Size to primary instance disk size. */
1181
- await gapi.client.sql.projects.instances.resetReplicaSize({
1182
- instance: "Test string",
1183
- project: "Test string",
1184
- }, {
1185
- });
1186
- /** Start External primary instance migration. */
1187
- await gapi.client.sql.projects.instances.startExternalSync({
1188
- instance: "Test string",
1189
- project: "Test string",
1190
- }, {
1191
- mysqlSyncConfig: {
1192
- initialSyncFlags: [
1193
- {
1194
- name: "Test string",
1195
- value: "Test string",
1196
- }
1197
- ],
1198
- },
1199
- skipVerification: true,
1200
- syncMode: "Test string",
1201
- syncParallelLevel: "Test string",
1202
- });
1203
- /** Verify External primary instance external sync settings. */
1204
- await gapi.client.sql.projects.instances.verifyExternalSyncSettings({
1205
- instance: "Test string",
1206
- project: "Test string",
1207
- }, {
1208
- mysqlSyncConfig: {
1209
- initialSyncFlags: [
1210
- {
1211
- name: "Test string",
1212
- value: "Test string",
1213
- }
1214
- ],
1215
- },
1216
- syncMode: "Test string",
1217
- verifyConnectionOnly: true,
1218
- verifyReplicationOnly: true,
1219
- });
1220
- /**
1221
- * Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as
1222
- * themselves when connecting to the database.
1223
- */
1224
- await gapi.client.sql.sslCerts.createEphemeral({
1225
- instance: "Test string",
1226
- project: "Test string",
1227
- }, {
1228
- access_token: "Test string",
1229
- public_key: "Test string",
1230
- });
1231
- /** Deletes the SSL certificate. For First Generation instances, the certificate remains valid until the instance is restarted. */
1232
- await gapi.client.sql.sslCerts.delete({
1233
- instance: "Test string",
1234
- project: "Test string",
1235
- sha1Fingerprint: "Test string",
1236
- });
1237
- /** Retrieves a particular SSL certificate. Does not include the private key (required for usage). The private key must be saved from the response to initial creation. */
1238
- await gapi.client.sql.sslCerts.get({
1239
- instance: "Test string",
1240
- project: "Test string",
1241
- sha1Fingerprint: "Test string",
1242
- });
1243
- /** Creates an SSL certificate and returns it along with the private key and server certificate authority. The new certificate will not be usable until the instance is restarted. */
1244
- await gapi.client.sql.sslCerts.insert({
1245
- instance: "Test string",
1246
- project: "Test string",
1247
- }, {
1248
- commonName: "Test string",
1249
- });
1250
- /** Lists all of the current SSL certificates for the instance. */
1251
- await gapi.client.sql.sslCerts.list({
1252
- instance: "Test string",
1253
- project: "Test string",
1254
- });
1255
- /** Lists all available machine types (tiers) for Cloud SQL, for example, `db-custom-1-3840`. For related information, see [Pricing](/sql/pricing). */
1256
- await gapi.client.sql.tiers.list({
1257
- project: "Test string",
1258
- });
1259
- /** Deletes a user from a Cloud SQL instance. */
1260
- await gapi.client.sql.users.delete({
1261
- host: "Test string",
1262
- instance: "Test string",
1263
- name: "Test string",
1264
- project: "Test string",
1265
- });
1266
- /** Retrieves a resource containing information about a user. */
1267
- await gapi.client.sql.users.get({
1268
- host: "Test string",
1269
- instance: "Test string",
1270
- name: "Test string",
1271
- project: "Test string",
1272
- });
1273
- /** Creates a new user in a Cloud SQL instance. */
1274
- await gapi.client.sql.users.insert({
1275
- instance: "Test string",
1276
- project: "Test string",
1277
- }, {
1278
- dualPasswordType: "Test string",
1279
- etag: "Test string",
1280
- host: "Test string",
1281
- instance: "Test string",
1282
- kind: "Test string",
1283
- name: "Test string",
1284
- password: "Test string",
1285
- passwordPolicy: {
1286
- allowedFailedAttempts: 42,
1287
- enableFailedAttemptsCheck: true,
1288
- enablePasswordVerification: true,
1289
- passwordExpirationDuration: "Test string",
1290
- status: {
1291
- locked: true,
1292
- passwordExpirationTime: "Test string",
1293
- },
1294
- },
1295
- project: "Test string",
1296
- sqlserverUserDetails: {
1297
- disabled: true,
1298
- serverRoles: [
1299
- "Test string"
1300
- ],
1301
- },
1302
- type: "Test string",
1303
- });
1304
- /** Lists users in the specified Cloud SQL instance. */
1305
- await gapi.client.sql.users.list({
1306
- instance: "Test string",
1307
- project: "Test string",
1308
- });
1309
- /** Updates an existing user in a Cloud SQL instance. */
1310
- await gapi.client.sql.users.update({
1311
- host: "Test string",
1312
- instance: "Test string",
1313
- name: "Test string",
1314
- project: "Test string",
1315
- }, {
1316
- dualPasswordType: "Test string",
1317
- etag: "Test string",
1318
- host: "Test string",
1319
- instance: "Test string",
1320
- kind: "Test string",
1321
- name: "Test string",
1322
- password: "Test string",
1323
- passwordPolicy: {
1324
- allowedFailedAttempts: 42,
1325
- enableFailedAttemptsCheck: true,
1326
- enablePasswordVerification: true,
1327
- passwordExpirationDuration: "Test string",
1328
- status: {
1329
- locked: true,
1330
- passwordExpirationTime: "Test string",
1331
- },
1332
- },
1333
- project: "Test string",
1334
- sqlserverUserDetails: {
1335
- disabled: true,
1336
- serverRoles: [
1337
- "Test string"
1338
- ],
1339
- },
1340
- type: "Test string",
1341
- });
1342
- }
1343
- });