@googleapis/sqladmin 37.0.0 → 38.1.0
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/CHANGELOG.md +25 -0
- package/build/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +1299 -60
- package/build/v1.js +202 -1
- package/build/v1.js.map +1 -1
- package/build/v1beta4.d.ts +1328 -60
- package/build/v1beta4.js +202 -1
- package/build/v1beta4.js.map +1 -1
- package/index.ts +1 -4
- package/package.json +3 -3
- package/v1.ts +1845 -193
- package/v1beta4.ts +1869 -184
package/v1beta4.ts
CHANGED
|
@@ -102,7 +102,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
102
102
|
/**
|
|
103
103
|
* Cloud SQL Admin API
|
|
104
104
|
*
|
|
105
|
-
*
|
|
105
|
+
* Cloud SQL Admin API
|
|
106
106
|
*
|
|
107
107
|
* @example
|
|
108
108
|
* ```js
|
|
@@ -114,6 +114,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
114
114
|
context: APIRequestContext;
|
|
115
115
|
backupRuns: Resource$Backupruns;
|
|
116
116
|
backups: Resource$Backups;
|
|
117
|
+
blueGreenDeployments: Resource$Bluegreendeployments;
|
|
117
118
|
connect: Resource$Connect;
|
|
118
119
|
databases: Resource$Databases;
|
|
119
120
|
flags: Resource$Flags;
|
|
@@ -132,6 +133,9 @@ export namespace sqladmin_v1beta4 {
|
|
|
132
133
|
|
|
133
134
|
this.backupRuns = new Resource$Backupruns(this.context);
|
|
134
135
|
this.backups = new Resource$Backups(this.context);
|
|
136
|
+
this.blueGreenDeployments = new Resource$Bluegreendeployments(
|
|
137
|
+
this.context
|
|
138
|
+
);
|
|
135
139
|
this.connect = new Resource$Connect(this.context);
|
|
136
140
|
this.databases = new Resource$Databases(this.context);
|
|
137
141
|
this.flags = new Resource$Flags(this.context);
|
|
@@ -359,7 +363,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
359
363
|
*/
|
|
360
364
|
pointInTimeRecoveryEnabled?: boolean | null;
|
|
361
365
|
/**
|
|
362
|
-
*
|
|
366
|
+
* Optional. Deprecated: replication_log_archiving_enabled is deprecated and will be removed from a future version of the API. Use point_in_time_recovery_enabled instead.
|
|
363
367
|
*/
|
|
364
368
|
replicationLogArchivingEnabled?: boolean | null;
|
|
365
369
|
/**
|
|
@@ -533,6 +537,80 @@ export namespace sqladmin_v1beta4 {
|
|
|
533
537
|
*/
|
|
534
538
|
kind?: string | null;
|
|
535
539
|
}
|
|
540
|
+
/**
|
|
541
|
+
* A `BlueGreenDeployment` resource represents a Cloud SQL blue-green deployment setup. It orchestrates the lifecycle of creating a synchronized "green" environment from a "blue" production environment, performing updates, and managing the switchover process to minimize downtime.
|
|
542
|
+
*/
|
|
543
|
+
export interface Schema$BlueGreenDeployment {
|
|
544
|
+
/**
|
|
545
|
+
* Output only. The time when the deployment was created.
|
|
546
|
+
*/
|
|
547
|
+
createTime?: string | null;
|
|
548
|
+
/**
|
|
549
|
+
* Output only. A list representing the pairs of source and target instances in the deployment.
|
|
550
|
+
*/
|
|
551
|
+
deploymentMappings?: Schema$SourceTargetPairedNode[];
|
|
552
|
+
/**
|
|
553
|
+
* Output only. Combined list of tasks for all paired nodes.
|
|
554
|
+
*/
|
|
555
|
+
deploymentTasks?: Schema$DeploymentTasks;
|
|
556
|
+
/**
|
|
557
|
+
* Optional. User-provided description for the deployment.
|
|
558
|
+
*/
|
|
559
|
+
description?: string | null;
|
|
560
|
+
/**
|
|
561
|
+
* Output only. Provides an error message with details on why switchover is not possible.
|
|
562
|
+
*/
|
|
563
|
+
errorDetail?: string | null;
|
|
564
|
+
/**
|
|
565
|
+
* Output only. Identifier. The full resource name of the deployment. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{deployment_id\}
|
|
566
|
+
*/
|
|
567
|
+
name?: string | null;
|
|
568
|
+
/**
|
|
569
|
+
* Output only. Deprecated: Use deployment_mappings instead. Output only. A list representing the pairs of source and target instances in the deployment.
|
|
570
|
+
*/
|
|
571
|
+
pairedNodes?: Schema$SourceTargetPairedNode[];
|
|
572
|
+
/**
|
|
573
|
+
* Optional. Immutable. Optional on create, and immutable. The configuration intended for the target instance(s) when the deployment was created.
|
|
574
|
+
*/
|
|
575
|
+
requestedConfig?: Schema$RequestedConfig;
|
|
576
|
+
/**
|
|
577
|
+
* Required. Immutable. The instance ID of the source instance (the "blue" instance). The value for this field does not include the project ID, for example, `my-instance-id`. This field is immutable.
|
|
578
|
+
*/
|
|
579
|
+
sourceInstance?: string | null;
|
|
580
|
+
/**
|
|
581
|
+
* Output only. The current state of the blue-green deployment.
|
|
582
|
+
*/
|
|
583
|
+
state?: string | null;
|
|
584
|
+
/**
|
|
585
|
+
* Output only. Details about the primary target instance (the "Green" instance) that will be promoted during switchover.
|
|
586
|
+
*/
|
|
587
|
+
switchoverTargetInstance?: string | null;
|
|
588
|
+
/**
|
|
589
|
+
* Optional. Immutable. Deprecated: Use requested_config instead. The configuration intended for the target instance(s) when the deployment was created. This field is immutable.
|
|
590
|
+
*/
|
|
591
|
+
targetConfig?: Schema$TargetConfig;
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* Blue-green deployment metadata for a database instance. In a blue-green deployment, we maintain two environments, one of which is live. This message contains details about the blue-green deployment.
|
|
595
|
+
*/
|
|
596
|
+
export interface Schema$BlueGreenDeploymentInfo {
|
|
597
|
+
/**
|
|
598
|
+
* Output only. The resource ID of the blue-green deployment.
|
|
599
|
+
*/
|
|
600
|
+
deploymentId?: string | null;
|
|
601
|
+
/**
|
|
602
|
+
* Output only. The source instance for the Blue-Green deployment.
|
|
603
|
+
*/
|
|
604
|
+
source?: Schema$SourceRole;
|
|
605
|
+
/**
|
|
606
|
+
* Output only. The current state of blue-green-deployment for UI tags
|
|
607
|
+
*/
|
|
608
|
+
state?: string | null;
|
|
609
|
+
/**
|
|
610
|
+
* Output only. The target instance for the Blue-Green deployment.
|
|
611
|
+
*/
|
|
612
|
+
target?: Schema$TargetRole;
|
|
613
|
+
}
|
|
536
614
|
/**
|
|
537
615
|
* Database instance clone context.
|
|
538
616
|
*/
|
|
@@ -554,7 +632,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
554
632
|
*/
|
|
555
633
|
destinationInstanceName?: string | null;
|
|
556
634
|
/**
|
|
557
|
-
* Optional. The fully qualified URI of the VPC network to which the cloned instance will be connected via
|
|
635
|
+
* Optional. The fully qualified URI of the VPC network to which the cloned instance will be connected via private services access for private IP. For example:`projects/my-network-project/global/networks/my-network`. This field is only required for cross-project cloning.
|
|
558
636
|
*/
|
|
559
637
|
destinationNetwork?: string | null;
|
|
560
638
|
/**
|
|
@@ -599,6 +677,23 @@ export namespace sqladmin_v1beta4 {
|
|
|
599
677
|
*/
|
|
600
678
|
type?: string | null;
|
|
601
679
|
}
|
|
680
|
+
/**
|
|
681
|
+
* Represents a specific configuration difference between Blue and Green instances.
|
|
682
|
+
*/
|
|
683
|
+
export interface Schema$ConfigDiff {
|
|
684
|
+
/**
|
|
685
|
+
* Output only. The name of the field that differs, fully-qualified. Example: settings.tier
|
|
686
|
+
*/
|
|
687
|
+
field?: string | null;
|
|
688
|
+
/**
|
|
689
|
+
* Output only. The value on the source instance.
|
|
690
|
+
*/
|
|
691
|
+
sourceValue?: string | null;
|
|
692
|
+
/**
|
|
693
|
+
* Output only. The value on the target instance.
|
|
694
|
+
*/
|
|
695
|
+
targetValue?: string | null;
|
|
696
|
+
}
|
|
602
697
|
/**
|
|
603
698
|
* The managed connection pooling configuration.
|
|
604
699
|
*/
|
|
@@ -658,6 +753,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
658
753
|
* `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type.
|
|
659
754
|
*/
|
|
660
755
|
backendType?: string | null;
|
|
756
|
+
/**
|
|
757
|
+
* Optional. Output only. Connection name of the Cloud SQL instance used in connection strings, in the format project:region:instance.
|
|
758
|
+
*/
|
|
759
|
+
connectionName?: string | null;
|
|
661
760
|
/**
|
|
662
761
|
* Custom subject alternative names for the server certificate.
|
|
663
762
|
*/
|
|
@@ -786,6 +885,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
786
885
|
* The current disk usage of the instance in bytes. This property has been deprecated. Use the "cloudsql.googleapis.com/database/disk/bytes_used" metric in Cloud Monitoring API instead. Please see [this announcement](https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ) for details.
|
|
787
886
|
*/
|
|
788
887
|
currentDiskSize?: string | null;
|
|
888
|
+
/**
|
|
889
|
+
* Optional. If true, instance metadata is sent to the Database Center. If false, instance metadata is not sent to the Database Center.
|
|
890
|
+
*/
|
|
891
|
+
databaseCenterIntegrationEnabled?: boolean | null;
|
|
789
892
|
/**
|
|
790
893
|
* Output only. Stores the current database version running on the instance including minor version such as `MYSQL_8_0_18`.
|
|
791
894
|
*/
|
|
@@ -794,6 +897,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
794
897
|
* The database engine type and version. The `databaseVersion` field cannot be changed after instance creation.
|
|
795
898
|
*/
|
|
796
899
|
databaseVersion?: string | null;
|
|
900
|
+
/**
|
|
901
|
+
* Output only. Deployment info for the instance. This is set if the instance is currently part of any blue-green setup.
|
|
902
|
+
*/
|
|
903
|
+
deploymentInfo?: Schema$BlueGreenDeploymentInfo;
|
|
797
904
|
/**
|
|
798
905
|
* Disk encryption configuration specific to an instance.
|
|
799
906
|
*/
|
|
@@ -1090,10 +1197,48 @@ export namespace sqladmin_v1beta4 {
|
|
|
1090
1197
|
*/
|
|
1091
1198
|
time?: string | null;
|
|
1092
1199
|
}
|
|
1200
|
+
/**
|
|
1201
|
+
* Represents a task executed as part of the deployment on a target instance.
|
|
1202
|
+
*/
|
|
1203
|
+
export interface Schema$DeploymentTask {
|
|
1204
|
+
/**
|
|
1205
|
+
* Output only. Task end time (if completed).
|
|
1206
|
+
*/
|
|
1207
|
+
endTime?: string | null;
|
|
1208
|
+
/**
|
|
1209
|
+
* Output only. Optional Error details if the task state is FAILED.
|
|
1210
|
+
*/
|
|
1211
|
+
errorMessage?: string | null;
|
|
1212
|
+
/**
|
|
1213
|
+
* Output only. Task start time.
|
|
1214
|
+
*/
|
|
1215
|
+
startTime?: string | null;
|
|
1216
|
+
/**
|
|
1217
|
+
* Output only. The current state of the task.
|
|
1218
|
+
*/
|
|
1219
|
+
state?: string | null;
|
|
1220
|
+
/**
|
|
1221
|
+
* Output only. The type of the task.
|
|
1222
|
+
*/
|
|
1223
|
+
type?: string | null;
|
|
1224
|
+
}
|
|
1225
|
+
/**
|
|
1226
|
+
* Combined list of tasks for all paired nodes in the deployment.
|
|
1227
|
+
*/
|
|
1228
|
+
export interface Schema$DeploymentTasks {
|
|
1229
|
+
/**
|
|
1230
|
+
* Output only. Tasks performed or being performed on the paired nodes of the deployment at a consolidated level.
|
|
1231
|
+
*/
|
|
1232
|
+
task?: Schema$DeploymentTask[];
|
|
1233
|
+
}
|
|
1093
1234
|
/**
|
|
1094
1235
|
* Disk encryption configuration for an instance.
|
|
1095
1236
|
*/
|
|
1096
1237
|
export interface Schema$DiskEncryptionConfiguration {
|
|
1238
|
+
/**
|
|
1239
|
+
* Optional. If true, enables Confidential Mode for the instance's Hyperdisk Balanced volumes. Only supported for zonal C4A instances currently.
|
|
1240
|
+
*/
|
|
1241
|
+
confidentialMode?: boolean | null;
|
|
1097
1242
|
/**
|
|
1098
1243
|
* This is always `sql#diskEncryptionConfiguration`.
|
|
1099
1244
|
*/
|
|
@@ -1161,6 +1306,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
1161
1306
|
* Optional. Controls how the API should respond when the SQL execution result is incomplete due to the size limit or another error. The default mode is to throw an error.
|
|
1162
1307
|
*/
|
|
1163
1308
|
partialResultMode?: string | null;
|
|
1309
|
+
/**
|
|
1310
|
+
* Optional. The resource name of the Secret Manager secret holding the password for the user to log into the database. The secret should be created using the regional endpoint (for API) or from the Regional Secrets page (for UI), and stored in the same region as the Cloud SQL instance. The expected resource name format is `projects/{project\}/locations/{location\}/secrets/{secret\}/versions/{secret_version\}`. This field is used together with the `user` field. The secret resource name will not be stored.
|
|
1311
|
+
*/
|
|
1312
|
+
passwordSecretVersion?: string | null;
|
|
1164
1313
|
/**
|
|
1165
1314
|
* Optional. The maximum number of rows returned per SQL statement.
|
|
1166
1315
|
*/
|
|
@@ -1687,6 +1836,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
1687
1836
|
* The name of the backup that's used to restore a Cloud SQL instance: Format: "projects/{project-id\}/locations/{location\}/backupVaults/{backupvault\}/dataSources/{datasource\}/backups/{backup-uid\}". Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.
|
|
1688
1837
|
*/
|
|
1689
1838
|
backupdrBackup?: string | null;
|
|
1839
|
+
/**
|
|
1840
|
+
* Optional. If true, the restore operation proceeds even if the target instance's maintenance version is older than the source instance's maintenance version.
|
|
1841
|
+
*/
|
|
1842
|
+
ignoreMaintenanceVersion?: boolean | null;
|
|
1690
1843
|
/**
|
|
1691
1844
|
* Parameters required to perform the restore backup operation.
|
|
1692
1845
|
*/
|
|
@@ -1836,6 +1989,19 @@ export namespace sqladmin_v1beta4 {
|
|
|
1836
1989
|
*/
|
|
1837
1990
|
warnings?: Schema$ApiWarning[];
|
|
1838
1991
|
}
|
|
1992
|
+
/**
|
|
1993
|
+
* The response message for listing blue-green deployment resources.
|
|
1994
|
+
*/
|
|
1995
|
+
export interface Schema$ListBlueGreenDeploymentsResponse {
|
|
1996
|
+
/**
|
|
1997
|
+
* The list of blue-green deployment resources.
|
|
1998
|
+
*/
|
|
1999
|
+
blueGreenDeployments?: Schema$BlueGreenDeployment[];
|
|
2000
|
+
/**
|
|
2001
|
+
* A token to retrieve the next page of results, or empty if there are no more results.
|
|
2002
|
+
*/
|
|
2003
|
+
nextPageToken?: string | null;
|
|
2004
|
+
}
|
|
1839
2005
|
/**
|
|
1840
2006
|
* Preferred location. This specifies where a Cloud SQL instance is located. Note that if the preferred location is not available, the instance will be located as close as possible within the region. Only one location may be specified.
|
|
1841
2007
|
*/
|
|
@@ -1958,6 +2124,27 @@ export namespace sqladmin_v1beta4 {
|
|
|
1958
2124
|
*/
|
|
1959
2125
|
initialSyncFlags?: Schema$SyncFlags[];
|
|
1960
2126
|
}
|
|
2127
|
+
/**
|
|
2128
|
+
* Details about an instance within the deployment.
|
|
2129
|
+
*/
|
|
2130
|
+
export interface Schema$NodeInfo {
|
|
2131
|
+
/**
|
|
2132
|
+
* Output only. The instance connection name.
|
|
2133
|
+
*/
|
|
2134
|
+
connection?: string | null;
|
|
2135
|
+
/**
|
|
2136
|
+
* Output only. The unique DNS name for this instance.
|
|
2137
|
+
*/
|
|
2138
|
+
dns?: string | null;
|
|
2139
|
+
/**
|
|
2140
|
+
* Output only. The full resource name of the instance. Format: projects/{project\}/instances/{instance\}
|
|
2141
|
+
*/
|
|
2142
|
+
instance?: string | null;
|
|
2143
|
+
/**
|
|
2144
|
+
* Output only. The list of IP addresses for this instance.
|
|
2145
|
+
*/
|
|
2146
|
+
ipMappings?: Schema$IpMapping[];
|
|
2147
|
+
}
|
|
1961
2148
|
/**
|
|
1962
2149
|
* On-premises instance configuration.
|
|
1963
2150
|
*/
|
|
@@ -1974,6 +2161,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
1974
2161
|
* PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate.
|
|
1975
2162
|
*/
|
|
1976
2163
|
clientKey?: string | null;
|
|
2164
|
+
/**
|
|
2165
|
+
* Output only. Indicates whether the resource is managed by Database Migration Service.
|
|
2166
|
+
*/
|
|
2167
|
+
dmsManaged?: boolean | null;
|
|
1977
2168
|
/**
|
|
1978
2169
|
* The dump file to create the Cloud SQL replica.
|
|
1979
2170
|
*/
|
|
@@ -2219,10 +2410,22 @@ export namespace sqladmin_v1beta4 {
|
|
|
2219
2410
|
* Performance capture configuration.
|
|
2220
2411
|
*/
|
|
2221
2412
|
export interface Schema$PerformanceCaptureConfig {
|
|
2413
|
+
/**
|
|
2414
|
+
* Optional. Specifies the minimum percentage of CPU utilization to trigger the performance capture. Valid integers range from `10` to `99`. Enter `0` to disable the check.
|
|
2415
|
+
*/
|
|
2416
|
+
cpuUtilizationThresholdPercent?: number | null;
|
|
2222
2417
|
/**
|
|
2223
2418
|
* Optional. Enables or disables the performance capture feature.
|
|
2224
2419
|
*/
|
|
2225
2420
|
enabled?: boolean | null;
|
|
2421
|
+
/**
|
|
2422
|
+
* Optional. Specifies the minimum number of undo log entries in the history list length to trigger the performance capture. Valid integers range from `10000` to `10000000`. Enter `0` to disable the check.
|
|
2423
|
+
*/
|
|
2424
|
+
historyListLengthThresholdCount?: number | null;
|
|
2425
|
+
/**
|
|
2426
|
+
* Optional. Specifies the minimum percentage of memory usage to trigger the performance capture. Valid integers range from `10` to `99`. Enter `0` to disable the check.
|
|
2427
|
+
*/
|
|
2428
|
+
memoryUsageThresholdPercent?: number | null;
|
|
2226
2429
|
/**
|
|
2227
2430
|
* Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.
|
|
2228
2431
|
*/
|
|
@@ -2239,10 +2442,30 @@ export namespace sqladmin_v1beta4 {
|
|
|
2239
2442
|
* Optional. Specifies the minimum number of seconds replica must be lagging behind primary instance to trigger the performance capture on replica.
|
|
2240
2443
|
*/
|
|
2241
2444
|
secondsBehindSourceThreshold?: number | null;
|
|
2445
|
+
/**
|
|
2446
|
+
* Optional. Specifies the minimum allowed number of semaphore waits to trigger the performance capture. Valid integers range from `10` to `10000`. Enter `0` to disable the check.
|
|
2447
|
+
*/
|
|
2448
|
+
semaphoreWaitThresholdCount?: number | null;
|
|
2242
2449
|
/**
|
|
2243
2450
|
* Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.
|
|
2244
2451
|
*/
|
|
2245
2452
|
transactionDurationThreshold?: number | null;
|
|
2453
|
+
/**
|
|
2454
|
+
* Optional. Specifies a customer-defined list of users to exclude from transaction termination. Entries can be in the format 'user@host' or just 'user'. A standalone 'user' implies 'user@%', excluding the user from any host. Wildcard '%' is allowed in the host part of the 'user@host' format. Example: `["app_user", "db_admin@10.1.2.3", "report_user@%"]`
|
|
2455
|
+
*/
|
|
2456
|
+
transactionKillExcludedUserHosts?: string[] | null;
|
|
2457
|
+
/**
|
|
2458
|
+
* Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts terminating it. Valid integers range from `60` to `604800` (7 days). Enter `0` to disable. If enabled (i.e., \> 0), this value must be greater than or equal to `transaction_duration_threshold`. Configurations where `0 < transaction_kill_threshold_seconds < transaction_duration_threshold` will be rejected.
|
|
2459
|
+
*/
|
|
2460
|
+
transactionKillThresholdSeconds?: number | null;
|
|
2461
|
+
/**
|
|
2462
|
+
* Optional. Determines which transactions are allowed to be terminated when they exceed `transaction_kill_threshold_seconds`. This allows protecting write-heavy transactions from auto-termination if desired. Defaults to `READ_ONLY_TRANSACTIONS` if unspecified.
|
|
2463
|
+
*/
|
|
2464
|
+
transactionKillType?: string | null;
|
|
2465
|
+
/**
|
|
2466
|
+
* Optional. Specifies the minimum allowed number of transactions in lock wait state to trigger the performance capture. Valid integers range from `10` to `10000`. Enter `0` to disable the check.
|
|
2467
|
+
*/
|
|
2468
|
+
transactionLockWaitThresholdCount?: number | null;
|
|
2246
2469
|
}
|
|
2247
2470
|
/**
|
|
2248
2471
|
* Perform disk shrink context.
|
|
@@ -2385,14 +2608,30 @@ export namespace sqladmin_v1beta4 {
|
|
|
2385
2608
|
* Optional. This is the project ID of consumer service project of this consumer endpoint. Optional. This is only applicable if consumer_network is a shared vpc network.
|
|
2386
2609
|
*/
|
|
2387
2610
|
consumerProject?: string | null;
|
|
2611
|
+
/**
|
|
2612
|
+
* Output only. The status of automated DNS provisioning.
|
|
2613
|
+
*/
|
|
2614
|
+
instanceAutoDnsStatus?: string | null;
|
|
2388
2615
|
/**
|
|
2389
2616
|
* The IP address of the consumer endpoint.
|
|
2390
2617
|
*/
|
|
2391
2618
|
ipAddress?: string | null;
|
|
2619
|
+
/**
|
|
2620
|
+
* Output only. The service connection policy created automatically for the consumer network when `psc_auto_connection_policy_enabled` is true. It is in the format of: `projects/{project\}/regions/{region\}/serviceConnectionPolicies/{policy_id\}` The `policy_id` is in format of `$NETWORK-$RANDOM`.
|
|
2621
|
+
*/
|
|
2622
|
+
serviceConnectionPolicy?: string | null;
|
|
2623
|
+
/**
|
|
2624
|
+
* Output only. The status of service connection policy creation.
|
|
2625
|
+
*/
|
|
2626
|
+
serviceConnectionPolicyCreationResult?: string | null;
|
|
2392
2627
|
/**
|
|
2393
2628
|
* The connection status of the consumer endpoint.
|
|
2394
2629
|
*/
|
|
2395
2630
|
status?: string | null;
|
|
2631
|
+
/**
|
|
2632
|
+
* Output only. The status of automated DNS provisioning for the write endpoint.
|
|
2633
|
+
*/
|
|
2634
|
+
writeEndpointAutoDnsStatus?: string | null;
|
|
2396
2635
|
}
|
|
2397
2636
|
/**
|
|
2398
2637
|
* PSC settings for a Cloud SQL instance.
|
|
@@ -2403,15 +2642,19 @@ export namespace sqladmin_v1beta4 {
|
|
|
2403
2642
|
*/
|
|
2404
2643
|
allowedConsumerProjects?: string[] | null;
|
|
2405
2644
|
/**
|
|
2406
|
-
* Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect
|
|
2645
|
+
* Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect using the PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID
|
|
2407
2646
|
*/
|
|
2408
2647
|
networkAttachmentUri?: string | null;
|
|
2648
|
+
/**
|
|
2649
|
+
* Optional. Whether to set up the PSC service connection policy automatically.
|
|
2650
|
+
*/
|
|
2651
|
+
pscAutoConnectionPolicyEnabled?: boolean | null;
|
|
2409
2652
|
/**
|
|
2410
2653
|
* Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
|
|
2411
2654
|
*/
|
|
2412
2655
|
pscAutoConnections?: Schema$PscAutoConnectionConfig[];
|
|
2413
2656
|
/**
|
|
2414
|
-
* Optional. Indicates whether
|
|
2657
|
+
* Optional. Indicates whether Private Service Connect DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal DNS record across all networks configured with Private Service Connect auto-connections. This will default to true for new instances when Private Service Connect is enabled.
|
|
2415
2658
|
*/
|
|
2416
2659
|
pscAutoDnsEnabled?: boolean | null;
|
|
2417
2660
|
/**
|
|
@@ -2419,7 +2662,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
2419
2662
|
*/
|
|
2420
2663
|
pscEnabled?: boolean | null;
|
|
2421
2664
|
/**
|
|
2422
|
-
* Optional. Indicates whether
|
|
2665
|
+
* Optional. Indicates whether Private Service Connect write endpoint DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal global DNS record across all networks configured with Private Service Connect auto-connections that points to the cluster primary instance. This feature is only supported for Enterprise Plus edition. This will default to true for new enterprise plus instances when `psc_auto_dns_enabled` is enabled.
|
|
2423
2666
|
*/
|
|
2424
2667
|
pscWriteEndpointDnsEnabled?: boolean | null;
|
|
2425
2668
|
}
|
|
@@ -2519,6 +2762,15 @@ export namespace sqladmin_v1beta4 {
|
|
|
2519
2762
|
*/
|
|
2520
2763
|
psaWriteEndpoint?: string | null;
|
|
2521
2764
|
}
|
|
2765
|
+
/**
|
|
2766
|
+
* Configuration specified by the user at creation time for the target (Green) instance.
|
|
2767
|
+
*/
|
|
2768
|
+
export interface Schema$RequestedConfig {
|
|
2769
|
+
/**
|
|
2770
|
+
* Optional. The target database major version for the upgrade.
|
|
2771
|
+
*/
|
|
2772
|
+
databaseVersion?: string | null;
|
|
2773
|
+
}
|
|
2522
2774
|
export interface Schema$Reschedule {
|
|
2523
2775
|
/**
|
|
2524
2776
|
* Required. The type of the reschedule.
|
|
@@ -2740,7 +2992,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
2740
2992
|
*/
|
|
2741
2993
|
maintenanceWindow?: Schema$MaintenanceWindow;
|
|
2742
2994
|
/**
|
|
2743
|
-
* The local user password validation policy of the instance.
|
|
2995
|
+
* The local user password validation policy of the instance for PostgreSQL and MySQL.
|
|
2744
2996
|
*/
|
|
2745
2997
|
passwordValidationPolicy?: Schema$PasswordValidationPolicy;
|
|
2746
2998
|
/**
|
|
@@ -2796,6 +3048,44 @@ export namespace sqladmin_v1beta4 {
|
|
|
2796
3048
|
*/
|
|
2797
3049
|
userLabels?: {[key: string]: string} | null;
|
|
2798
3050
|
}
|
|
3051
|
+
/**
|
|
3052
|
+
* The source instance for the Blue-Green deployment.
|
|
3053
|
+
*/
|
|
3054
|
+
export interface Schema$SourceRole {
|
|
3055
|
+
/**
|
|
3056
|
+
* Output only. The target instance paired with this source instance in a blue-green deployment.
|
|
3057
|
+
*/
|
|
3058
|
+
targetId?: Schema$InstanceReference;
|
|
3059
|
+
}
|
|
3060
|
+
/**
|
|
3061
|
+
* Represents a pairing of a source instance node and a target instance node.
|
|
3062
|
+
*/
|
|
3063
|
+
export interface Schema$SourceTargetPairedNode {
|
|
3064
|
+
/**
|
|
3065
|
+
* Output only. Deprecated: Indicates which instance (SOURCE or TARGET) in the pair is currently live. Used for internal implementation and deprecated for external use.
|
|
3066
|
+
*/
|
|
3067
|
+
currentlyServingTraffic?: string | null;
|
|
3068
|
+
/**
|
|
3069
|
+
* Output only. Describes the list of differences for this pair.
|
|
3070
|
+
*/
|
|
3071
|
+
diffs?: Schema$ConfigDiff[];
|
|
3072
|
+
/**
|
|
3073
|
+
* Output only. Resource name of the source instance in this pair.
|
|
3074
|
+
*/
|
|
3075
|
+
source?: Schema$NodeInfo;
|
|
3076
|
+
/**
|
|
3077
|
+
* Output only. The current state of this specific source-target pair.
|
|
3078
|
+
*/
|
|
3079
|
+
state?: string | null;
|
|
3080
|
+
/**
|
|
3081
|
+
* Output only. Details of the corresponding target instance in this pair.
|
|
3082
|
+
*/
|
|
3083
|
+
target?: Schema$NodeInfo;
|
|
3084
|
+
/**
|
|
3085
|
+
* Output only. Tasks performed or being performed on the target instance of this pair.
|
|
3086
|
+
*/
|
|
3087
|
+
tasks?: Schema$DeploymentTask[];
|
|
3088
|
+
}
|
|
2799
3089
|
/**
|
|
2800
3090
|
* Active Directory configuration, relevant only for Cloud SQL for SQL Server.
|
|
2801
3091
|
*/
|
|
@@ -2927,8 +3217,17 @@ export namespace sqladmin_v1beta4 {
|
|
|
2927
3217
|
/**
|
|
2928
3218
|
* Instance reset replica size request.
|
|
2929
3219
|
*/
|
|
2930
|
-
export interface Schema$SqlInstancesResetReplicaSizeRequest {
|
|
3220
|
+
export interface Schema$SqlInstancesResetReplicaSizeRequest {
|
|
3221
|
+
/**
|
|
3222
|
+
* Optional. Region of the Cloud SQL instance.
|
|
3223
|
+
*/
|
|
3224
|
+
location?: string | null;
|
|
3225
|
+
}
|
|
2931
3226
|
export interface Schema$SqlInstancesStartExternalSyncRequest {
|
|
3227
|
+
/**
|
|
3228
|
+
* Optional. Region of the Cloud SQL instance.
|
|
3229
|
+
*/
|
|
3230
|
+
location?: string | null;
|
|
2932
3231
|
/**
|
|
2933
3232
|
* Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.
|
|
2934
3233
|
*/
|
|
@@ -2955,6 +3254,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
2955
3254
|
syncParallelLevel?: string | null;
|
|
2956
3255
|
}
|
|
2957
3256
|
export interface Schema$SqlInstancesVerifyExternalSyncSettingsRequest {
|
|
3257
|
+
/**
|
|
3258
|
+
* Optional. Region of the Cloud SQL instance.
|
|
3259
|
+
*/
|
|
3260
|
+
location?: string | null;
|
|
2958
3261
|
/**
|
|
2959
3262
|
* Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.
|
|
2960
3263
|
*/
|
|
@@ -3088,11 +3391,11 @@ export namespace sqladmin_v1beta4 {
|
|
|
3088
3391
|
*/
|
|
3089
3392
|
export interface Schema$SqlServerUserDetails {
|
|
3090
3393
|
/**
|
|
3091
|
-
*
|
|
3394
|
+
* Indicates if the user has been disabled.
|
|
3092
3395
|
*/
|
|
3093
3396
|
disabled?: boolean | null;
|
|
3094
3397
|
/**
|
|
3095
|
-
*
|
|
3398
|
+
* Indicates the server roles for this user.
|
|
3096
3399
|
*/
|
|
3097
3400
|
serverRoles?: string[] | null;
|
|
3098
3401
|
}
|
|
@@ -3232,6 +3535,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
3232
3535
|
*/
|
|
3233
3536
|
message?: string | null;
|
|
3234
3537
|
}
|
|
3538
|
+
/**
|
|
3539
|
+
* Request message for switching over a `BlueGreenDeployment` resource.
|
|
3540
|
+
*/
|
|
3541
|
+
export interface Schema$SwitchoverBlueGreenDeploymentRequest {}
|
|
3235
3542
|
/**
|
|
3236
3543
|
* Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL external server initial dump.
|
|
3237
3544
|
*/
|
|
@@ -3245,6 +3552,15 @@ export namespace sqladmin_v1beta4 {
|
|
|
3245
3552
|
*/
|
|
3246
3553
|
value?: string | null;
|
|
3247
3554
|
}
|
|
3555
|
+
/**
|
|
3556
|
+
* Deprecated: Use RequestedConfig instead. Configuration specified by the user at creation time for the target (Green) instance.
|
|
3557
|
+
*/
|
|
3558
|
+
export interface Schema$TargetConfig {
|
|
3559
|
+
/**
|
|
3560
|
+
* Optional. The target database major version for the upgrade.
|
|
3561
|
+
*/
|
|
3562
|
+
databaseVersion?: string | null;
|
|
3563
|
+
}
|
|
3248
3564
|
/**
|
|
3249
3565
|
* Target metric for read pool auto scaling.
|
|
3250
3566
|
*/
|
|
@@ -3258,6 +3574,15 @@ export namespace sqladmin_v1beta4 {
|
|
|
3258
3574
|
*/
|
|
3259
3575
|
targetValue?: number | null;
|
|
3260
3576
|
}
|
|
3577
|
+
/**
|
|
3578
|
+
* The target instance for the Blue-Green deployment.
|
|
3579
|
+
*/
|
|
3580
|
+
export interface Schema$TargetRole {
|
|
3581
|
+
/**
|
|
3582
|
+
* Output only. The source instance paired with this target instance in a blue-green deployment.
|
|
3583
|
+
*/
|
|
3584
|
+
sourceId?: Schema$InstanceReference;
|
|
3585
|
+
}
|
|
3261
3586
|
/**
|
|
3262
3587
|
* A Google Cloud SQL service tier resource.
|
|
3263
3588
|
*/
|
|
@@ -3361,6 +3686,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
3361
3686
|
* The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. Can be omitted for *update* because it is already specified on the URL.
|
|
3362
3687
|
*/
|
|
3363
3688
|
project?: string | null;
|
|
3689
|
+
/**
|
|
3690
|
+
* Optional. The server roles for the SQL Server login.
|
|
3691
|
+
*/
|
|
3692
|
+
serverRoles?: string[] | null;
|
|
3364
3693
|
sqlserverUserDetails?: Schema$SqlServerUserDetails;
|
|
3365
3694
|
/**
|
|
3366
3695
|
* The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
|
|
@@ -3543,8 +3872,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
3543
3872
|
| BodyResponseCallback<Schema$Operation>
|
|
3544
3873
|
| BodyResponseCallback<Readable>,
|
|
3545
3874
|
callback?:
|
|
3546
|
-
|
|
3547
|
-
| BodyResponseCallback<Readable>
|
|
3875
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
3548
3876
|
):
|
|
3549
3877
|
| void
|
|
3550
3878
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -3705,8 +4033,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
3705
4033
|
| BodyResponseCallback<Schema$BackupRun>
|
|
3706
4034
|
| BodyResponseCallback<Readable>,
|
|
3707
4035
|
callback?:
|
|
3708
|
-
|
|
3709
|
-
| BodyResponseCallback<Readable>
|
|
4036
|
+
BodyResponseCallback<Schema$BackupRun> | BodyResponseCallback<Readable>
|
|
3710
4037
|
):
|
|
3711
4038
|
| void
|
|
3712
4039
|
| Promise<GaxiosResponseWithHTTP2<Schema$BackupRun>>
|
|
@@ -3891,8 +4218,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
3891
4218
|
| BodyResponseCallback<Schema$Operation>
|
|
3892
4219
|
| BodyResponseCallback<Readable>,
|
|
3893
4220
|
callback?:
|
|
3894
|
-
|
|
3895
|
-
| BodyResponseCallback<Readable>
|
|
4221
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
3896
4222
|
):
|
|
3897
4223
|
| void
|
|
3898
4224
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -4021,8 +4347,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
4021
4347
|
list(
|
|
4022
4348
|
params: Params$Resource$Backupruns$List,
|
|
4023
4349
|
options:
|
|
4024
|
-
|
|
|
4025
|
-
| BodyResponseCallback<Schema$BackupRunsListResponse>,
|
|
4350
|
+
MethodOptions | BodyResponseCallback<Schema$BackupRunsListResponse>,
|
|
4026
4351
|
callback: BodyResponseCallback<Schema$BackupRunsListResponse>
|
|
4027
4352
|
): void;
|
|
4028
4353
|
list(
|
|
@@ -4298,8 +4623,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
4298
4623
|
| BodyResponseCallback<Schema$Operation>
|
|
4299
4624
|
| BodyResponseCallback<Readable>,
|
|
4300
4625
|
callback?:
|
|
4301
|
-
|
|
4302
|
-
| BodyResponseCallback<Readable>
|
|
4626
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
4303
4627
|
):
|
|
4304
4628
|
| void
|
|
4305
4629
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -4457,8 +4781,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
4457
4781
|
| BodyResponseCallback<Schema$Operation>
|
|
4458
4782
|
| BodyResponseCallback<Readable>,
|
|
4459
4783
|
callback?:
|
|
4460
|
-
|
|
4461
|
-
| BodyResponseCallback<Readable>
|
|
4784
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
4462
4785
|
):
|
|
4463
4786
|
| void
|
|
4464
4787
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -4619,8 +4942,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
4619
4942
|
| BodyResponseCallback<Schema$Backup>
|
|
4620
4943
|
| BodyResponseCallback<Readable>,
|
|
4621
4944
|
callback?:
|
|
4622
|
-
|
|
4623
|
-
| BodyResponseCallback<Readable>
|
|
4945
|
+
BodyResponseCallback<Schema$Backup> | BodyResponseCallback<Readable>
|
|
4624
4946
|
):
|
|
4625
4947
|
| void
|
|
4626
4948
|
| Promise<GaxiosResponseWithHTTP2<Schema$Backup>>
|
|
@@ -4960,8 +5282,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
4960
5282
|
| BodyResponseCallback<Schema$Operation>
|
|
4961
5283
|
| BodyResponseCallback<Readable>,
|
|
4962
5284
|
callback?:
|
|
4963
|
-
|
|
4964
|
-
| BodyResponseCallback<Readable>
|
|
5285
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
4965
5286
|
):
|
|
4966
5287
|
| void
|
|
4967
5288
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -5067,14 +5388,14 @@ export namespace sqladmin_v1beta4 {
|
|
|
5067
5388
|
requestBody?: Schema$Backup;
|
|
5068
5389
|
}
|
|
5069
5390
|
|
|
5070
|
-
export class Resource$
|
|
5391
|
+
export class Resource$Bluegreendeployments {
|
|
5071
5392
|
context: APIRequestContext;
|
|
5072
5393
|
constructor(context: APIRequestContext) {
|
|
5073
5394
|
this.context = context;
|
|
5074
5395
|
}
|
|
5075
5396
|
|
|
5076
5397
|
/**
|
|
5077
|
-
*
|
|
5398
|
+
* Creates a blue-green deployment under a given project and location. This deployment provisions a synchronized green environment (target instance) from a blue production environment (source instance), facilitating updates like major version upgrades on the green instance without impacting the blue instance.
|
|
5078
5399
|
* @example
|
|
5079
5400
|
* ```js
|
|
5080
5401
|
* // Before running the sample:
|
|
@@ -5106,20 +5427,28 @@ export namespace sqladmin_v1beta4 {
|
|
|
5106
5427
|
* google.options({auth: authClient});
|
|
5107
5428
|
*
|
|
5108
5429
|
* // Do the magic
|
|
5109
|
-
* const res = await sql.
|
|
5110
|
-
* //
|
|
5111
|
-
*
|
|
5112
|
-
* //
|
|
5113
|
-
*
|
|
5430
|
+
* const res = await sql.blueGreenDeployments.create({
|
|
5431
|
+
* // Required. The ID to use for the blue-green deployment, which will become the final component of the deployment's resource name.
|
|
5432
|
+
* blueGreenDeploymentId: 'placeholder-value',
|
|
5433
|
+
* // Required. The parent resource where this blue-green deployment will be created. Format: projects/{project\}/locations/{location\}
|
|
5434
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
5114
5435
|
*
|
|
5115
5436
|
* // Request body metadata
|
|
5116
5437
|
* requestBody: {
|
|
5117
5438
|
* // request body parameters
|
|
5118
5439
|
* // {
|
|
5119
|
-
* // "
|
|
5120
|
-
* // "
|
|
5121
|
-
* // "
|
|
5122
|
-
* // "
|
|
5440
|
+
* // "createTime": "my_createTime",
|
|
5441
|
+
* // "deploymentMappings": [],
|
|
5442
|
+
* // "deploymentTasks": {},
|
|
5443
|
+
* // "description": "my_description",
|
|
5444
|
+
* // "errorDetail": "my_errorDetail",
|
|
5445
|
+
* // "name": "my_name",
|
|
5446
|
+
* // "pairedNodes": [],
|
|
5447
|
+
* // "requestedConfig": {},
|
|
5448
|
+
* // "sourceInstance": "my_sourceInstance",
|
|
5449
|
+
* // "state": "my_state",
|
|
5450
|
+
* // "switchoverTargetInstance": "my_switchoverTargetInstance",
|
|
5451
|
+
* // "targetConfig": {}
|
|
5123
5452
|
* // }
|
|
5124
5453
|
* },
|
|
5125
5454
|
* });
|
|
@@ -5127,7 +5456,26 @@ export namespace sqladmin_v1beta4 {
|
|
|
5127
5456
|
*
|
|
5128
5457
|
* // Example response
|
|
5129
5458
|
* // {
|
|
5130
|
-
* // "
|
|
5459
|
+
* // "acquireSsrsLeaseContext": {},
|
|
5460
|
+
* // "apiWarning": {},
|
|
5461
|
+
* // "backupContext": {},
|
|
5462
|
+
* // "endTime": "my_endTime",
|
|
5463
|
+
* // "error": {},
|
|
5464
|
+
* // "exportContext": {},
|
|
5465
|
+
* // "importContext": {},
|
|
5466
|
+
* // "insertTime": "my_insertTime",
|
|
5467
|
+
* // "kind": "my_kind",
|
|
5468
|
+
* // "name": "my_name",
|
|
5469
|
+
* // "operationType": "my_operationType",
|
|
5470
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
5471
|
+
* // "selfLink": "my_selfLink",
|
|
5472
|
+
* // "startTime": "my_startTime",
|
|
5473
|
+
* // "status": "my_status",
|
|
5474
|
+
* // "subOperationType": {},
|
|
5475
|
+
* // "targetId": "my_targetId",
|
|
5476
|
+
* // "targetLink": "my_targetLink",
|
|
5477
|
+
* // "targetProject": "my_targetProject",
|
|
5478
|
+
* // "user": "my_user"
|
|
5131
5479
|
* // }
|
|
5132
5480
|
* }
|
|
5133
5481
|
*
|
|
@@ -5143,26 +5491,888 @@ export namespace sqladmin_v1beta4 {
|
|
|
5143
5491
|
* @param callback - Optional callback that handles the response.
|
|
5144
5492
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5145
5493
|
*/
|
|
5146
|
-
|
|
5147
|
-
params: Params$Resource$
|
|
5494
|
+
create(
|
|
5495
|
+
params: Params$Resource$Bluegreendeployments$Create,
|
|
5148
5496
|
options: StreamMethodOptions
|
|
5149
5497
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5150
|
-
|
|
5151
|
-
params?: Params$Resource$
|
|
5498
|
+
create(
|
|
5499
|
+
params?: Params$Resource$Bluegreendeployments$Create,
|
|
5152
5500
|
options?: MethodOptions
|
|
5153
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$
|
|
5154
|
-
|
|
5155
|
-
params: Params$Resource$
|
|
5501
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
5502
|
+
create(
|
|
5503
|
+
params: Params$Resource$Bluegreendeployments$Create,
|
|
5156
5504
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5157
5505
|
callback: BodyResponseCallback<Readable>
|
|
5158
5506
|
): void;
|
|
5159
|
-
|
|
5160
|
-
params: Params$Resource$
|
|
5161
|
-
options:
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5507
|
+
create(
|
|
5508
|
+
params: Params$Resource$Bluegreendeployments$Create,
|
|
5509
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
5510
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
5511
|
+
): void;
|
|
5512
|
+
create(
|
|
5513
|
+
params: Params$Resource$Bluegreendeployments$Create,
|
|
5514
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
5515
|
+
): void;
|
|
5516
|
+
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5517
|
+
create(
|
|
5518
|
+
paramsOrCallback?:
|
|
5519
|
+
| Params$Resource$Bluegreendeployments$Create
|
|
5520
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5521
|
+
| BodyResponseCallback<Readable>,
|
|
5522
|
+
optionsOrCallback?:
|
|
5523
|
+
| MethodOptions
|
|
5524
|
+
| StreamMethodOptions
|
|
5525
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5526
|
+
| BodyResponseCallback<Readable>,
|
|
5527
|
+
callback?:
|
|
5528
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
5529
|
+
):
|
|
5530
|
+
| void
|
|
5531
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
5532
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
5533
|
+
let params = (paramsOrCallback ||
|
|
5534
|
+
{}) as Params$Resource$Bluegreendeployments$Create;
|
|
5535
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5536
|
+
|
|
5537
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5538
|
+
callback = paramsOrCallback;
|
|
5539
|
+
params = {} as Params$Resource$Bluegreendeployments$Create;
|
|
5540
|
+
options = {};
|
|
5541
|
+
}
|
|
5542
|
+
|
|
5543
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5544
|
+
callback = optionsOrCallback;
|
|
5545
|
+
options = {};
|
|
5546
|
+
}
|
|
5547
|
+
|
|
5548
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
5549
|
+
const parameters = {
|
|
5550
|
+
options: Object.assign(
|
|
5551
|
+
{
|
|
5552
|
+
url: (
|
|
5553
|
+
rootUrl + '/sql/v1beta4/{+parent}/blueGreenDeployments'
|
|
5554
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
5555
|
+
method: 'POST',
|
|
5556
|
+
apiVersion: '',
|
|
5557
|
+
},
|
|
5558
|
+
options
|
|
5559
|
+
),
|
|
5560
|
+
params,
|
|
5561
|
+
requiredParams: ['parent'],
|
|
5562
|
+
pathParams: ['parent'],
|
|
5563
|
+
context: this.context,
|
|
5564
|
+
};
|
|
5565
|
+
if (callback) {
|
|
5566
|
+
createAPIRequest<Schema$Operation>(
|
|
5567
|
+
parameters,
|
|
5568
|
+
callback as BodyResponseCallback<unknown>
|
|
5569
|
+
);
|
|
5570
|
+
} else {
|
|
5571
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
5572
|
+
}
|
|
5573
|
+
}
|
|
5574
|
+
|
|
5575
|
+
/**
|
|
5576
|
+
* Deletes a blue-green deployment, including metadata and underlying resources based on the deployment state. If issued before switchover, this deletes the green instance. If issued after switchover, this deletes the old blue instance (source instance) if the `delete_old_source` field in the request is set to true. All blue-green deployment metadata is permanently deleted. Resources deleted as a result of this operation are no longer accessible and can't be restored.
|
|
5577
|
+
* @example
|
|
5578
|
+
* ```js
|
|
5579
|
+
* // Before running the sample:
|
|
5580
|
+
* // - Enable the API at:
|
|
5581
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
5582
|
+
* // - Login into gcloud by running:
|
|
5583
|
+
* // ```sh
|
|
5584
|
+
* // $ gcloud auth application-default login
|
|
5585
|
+
* // ```
|
|
5586
|
+
* // - Install the npm module by running:
|
|
5587
|
+
* // ```sh
|
|
5588
|
+
* // $ npm install googleapis
|
|
5589
|
+
* // ```
|
|
5590
|
+
*
|
|
5591
|
+
* const {google} = require('googleapis');
|
|
5592
|
+
* const sqladmin = google.sqladmin('v1beta4');
|
|
5593
|
+
*
|
|
5594
|
+
* async function main() {
|
|
5595
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5596
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5597
|
+
* scopes: [
|
|
5598
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5599
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
5600
|
+
* ],
|
|
5601
|
+
* });
|
|
5602
|
+
*
|
|
5603
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5604
|
+
* const authClient = await auth.getClient();
|
|
5605
|
+
* google.options({auth: authClient});
|
|
5606
|
+
*
|
|
5607
|
+
* // Do the magic
|
|
5608
|
+
* const res = await sql.blueGreenDeployments.delete({
|
|
5609
|
+
* // Optional. If set to true, and the switchover is complete, this deletes the old source instance along with the deployment.
|
|
5610
|
+
* deleteOldSource: 'placeholder-value',
|
|
5611
|
+
* // Required. The name of the blue-green deployment to delete. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
|
|
5612
|
+
* name: 'projects/my-project/locations/my-location/blueGreenDeployments/my-blueGreenDeployment',
|
|
5613
|
+
* });
|
|
5614
|
+
* console.log(res.data);
|
|
5615
|
+
*
|
|
5616
|
+
* // Example response
|
|
5617
|
+
* // {
|
|
5618
|
+
* // "acquireSsrsLeaseContext": {},
|
|
5619
|
+
* // "apiWarning": {},
|
|
5620
|
+
* // "backupContext": {},
|
|
5621
|
+
* // "endTime": "my_endTime",
|
|
5622
|
+
* // "error": {},
|
|
5623
|
+
* // "exportContext": {},
|
|
5624
|
+
* // "importContext": {},
|
|
5625
|
+
* // "insertTime": "my_insertTime",
|
|
5626
|
+
* // "kind": "my_kind",
|
|
5627
|
+
* // "name": "my_name",
|
|
5628
|
+
* // "operationType": "my_operationType",
|
|
5629
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
5630
|
+
* // "selfLink": "my_selfLink",
|
|
5631
|
+
* // "startTime": "my_startTime",
|
|
5632
|
+
* // "status": "my_status",
|
|
5633
|
+
* // "subOperationType": {},
|
|
5634
|
+
* // "targetId": "my_targetId",
|
|
5635
|
+
* // "targetLink": "my_targetLink",
|
|
5636
|
+
* // "targetProject": "my_targetProject",
|
|
5637
|
+
* // "user": "my_user"
|
|
5638
|
+
* // }
|
|
5639
|
+
* }
|
|
5640
|
+
*
|
|
5641
|
+
* main().catch(e => {
|
|
5642
|
+
* console.error(e);
|
|
5643
|
+
* throw e;
|
|
5644
|
+
* });
|
|
5645
|
+
*
|
|
5646
|
+
* ```
|
|
5647
|
+
*
|
|
5648
|
+
* @param params - Parameters for request
|
|
5649
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5650
|
+
* @param callback - Optional callback that handles the response.
|
|
5651
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5652
|
+
*/
|
|
5653
|
+
delete(
|
|
5654
|
+
params: Params$Resource$Bluegreendeployments$Delete,
|
|
5655
|
+
options: StreamMethodOptions
|
|
5656
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5657
|
+
delete(
|
|
5658
|
+
params?: Params$Resource$Bluegreendeployments$Delete,
|
|
5659
|
+
options?: MethodOptions
|
|
5660
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
5661
|
+
delete(
|
|
5662
|
+
params: Params$Resource$Bluegreendeployments$Delete,
|
|
5663
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5664
|
+
callback: BodyResponseCallback<Readable>
|
|
5665
|
+
): void;
|
|
5666
|
+
delete(
|
|
5667
|
+
params: Params$Resource$Bluegreendeployments$Delete,
|
|
5668
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
5669
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
5670
|
+
): void;
|
|
5671
|
+
delete(
|
|
5672
|
+
params: Params$Resource$Bluegreendeployments$Delete,
|
|
5673
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
5674
|
+
): void;
|
|
5675
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5676
|
+
delete(
|
|
5677
|
+
paramsOrCallback?:
|
|
5678
|
+
| Params$Resource$Bluegreendeployments$Delete
|
|
5679
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5680
|
+
| BodyResponseCallback<Readable>,
|
|
5681
|
+
optionsOrCallback?:
|
|
5682
|
+
| MethodOptions
|
|
5683
|
+
| StreamMethodOptions
|
|
5684
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5685
|
+
| BodyResponseCallback<Readable>,
|
|
5686
|
+
callback?:
|
|
5687
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
5688
|
+
):
|
|
5689
|
+
| void
|
|
5690
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
5691
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
5692
|
+
let params = (paramsOrCallback ||
|
|
5693
|
+
{}) as Params$Resource$Bluegreendeployments$Delete;
|
|
5694
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5695
|
+
|
|
5696
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5697
|
+
callback = paramsOrCallback;
|
|
5698
|
+
params = {} as Params$Resource$Bluegreendeployments$Delete;
|
|
5699
|
+
options = {};
|
|
5700
|
+
}
|
|
5701
|
+
|
|
5702
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5703
|
+
callback = optionsOrCallback;
|
|
5704
|
+
options = {};
|
|
5705
|
+
}
|
|
5706
|
+
|
|
5707
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
5708
|
+
const parameters = {
|
|
5709
|
+
options: Object.assign(
|
|
5710
|
+
{
|
|
5711
|
+
url: (rootUrl + '/sql/v1beta4/{+name}').replace(
|
|
5712
|
+
/([^:]\/)\/+/g,
|
|
5713
|
+
'$1'
|
|
5714
|
+
),
|
|
5715
|
+
method: 'DELETE',
|
|
5716
|
+
apiVersion: '',
|
|
5717
|
+
},
|
|
5718
|
+
options
|
|
5719
|
+
),
|
|
5720
|
+
params,
|
|
5721
|
+
requiredParams: ['name'],
|
|
5722
|
+
pathParams: ['name'],
|
|
5723
|
+
context: this.context,
|
|
5724
|
+
};
|
|
5725
|
+
if (callback) {
|
|
5726
|
+
createAPIRequest<Schema$Operation>(
|
|
5727
|
+
parameters,
|
|
5728
|
+
callback as BodyResponseCallback<unknown>
|
|
5729
|
+
);
|
|
5730
|
+
} else {
|
|
5731
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
5732
|
+
}
|
|
5733
|
+
}
|
|
5734
|
+
|
|
5735
|
+
/**
|
|
5736
|
+
* Retrieves a blue-green deployment resource under a given project and location.
|
|
5737
|
+
* @example
|
|
5738
|
+
* ```js
|
|
5739
|
+
* // Before running the sample:
|
|
5740
|
+
* // - Enable the API at:
|
|
5741
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
5742
|
+
* // - Login into gcloud by running:
|
|
5743
|
+
* // ```sh
|
|
5744
|
+
* // $ gcloud auth application-default login
|
|
5745
|
+
* // ```
|
|
5746
|
+
* // - Install the npm module by running:
|
|
5747
|
+
* // ```sh
|
|
5748
|
+
* // $ npm install googleapis
|
|
5749
|
+
* // ```
|
|
5750
|
+
*
|
|
5751
|
+
* const {google} = require('googleapis');
|
|
5752
|
+
* const sqladmin = google.sqladmin('v1beta4');
|
|
5753
|
+
*
|
|
5754
|
+
* async function main() {
|
|
5755
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5756
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5757
|
+
* scopes: [
|
|
5758
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5759
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
5760
|
+
* ],
|
|
5761
|
+
* });
|
|
5762
|
+
*
|
|
5763
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5764
|
+
* const authClient = await auth.getClient();
|
|
5765
|
+
* google.options({auth: authClient});
|
|
5766
|
+
*
|
|
5767
|
+
* // Do the magic
|
|
5768
|
+
* const res = await sql.blueGreenDeployments.get({
|
|
5769
|
+
* // Required. The name of the blue-green deployment to retrieve. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
|
|
5770
|
+
* name: 'projects/my-project/locations/my-location/blueGreenDeployments/my-blueGreenDeployment',
|
|
5771
|
+
* // Optional. Specifies whether to return the basic or detailed view of the resource in the response.
|
|
5772
|
+
* view: 'placeholder-value',
|
|
5773
|
+
* });
|
|
5774
|
+
* console.log(res.data);
|
|
5775
|
+
*
|
|
5776
|
+
* // Example response
|
|
5777
|
+
* // {
|
|
5778
|
+
* // "createTime": "my_createTime",
|
|
5779
|
+
* // "deploymentMappings": [],
|
|
5780
|
+
* // "deploymentTasks": {},
|
|
5781
|
+
* // "description": "my_description",
|
|
5782
|
+
* // "errorDetail": "my_errorDetail",
|
|
5783
|
+
* // "name": "my_name",
|
|
5784
|
+
* // "pairedNodes": [],
|
|
5785
|
+
* // "requestedConfig": {},
|
|
5786
|
+
* // "sourceInstance": "my_sourceInstance",
|
|
5787
|
+
* // "state": "my_state",
|
|
5788
|
+
* // "switchoverTargetInstance": "my_switchoverTargetInstance",
|
|
5789
|
+
* // "targetConfig": {}
|
|
5790
|
+
* // }
|
|
5791
|
+
* }
|
|
5792
|
+
*
|
|
5793
|
+
* main().catch(e => {
|
|
5794
|
+
* console.error(e);
|
|
5795
|
+
* throw e;
|
|
5796
|
+
* });
|
|
5797
|
+
*
|
|
5798
|
+
* ```
|
|
5799
|
+
*
|
|
5800
|
+
* @param params - Parameters for request
|
|
5801
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5802
|
+
* @param callback - Optional callback that handles the response.
|
|
5803
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5804
|
+
*/
|
|
5805
|
+
get(
|
|
5806
|
+
params: Params$Resource$Bluegreendeployments$Get,
|
|
5807
|
+
options: StreamMethodOptions
|
|
5808
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5809
|
+
get(
|
|
5810
|
+
params?: Params$Resource$Bluegreendeployments$Get,
|
|
5811
|
+
options?: MethodOptions
|
|
5812
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$BlueGreenDeployment>>;
|
|
5813
|
+
get(
|
|
5814
|
+
params: Params$Resource$Bluegreendeployments$Get,
|
|
5815
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5816
|
+
callback: BodyResponseCallback<Readable>
|
|
5817
|
+
): void;
|
|
5818
|
+
get(
|
|
5819
|
+
params: Params$Resource$Bluegreendeployments$Get,
|
|
5820
|
+
options: MethodOptions | BodyResponseCallback<Schema$BlueGreenDeployment>,
|
|
5821
|
+
callback: BodyResponseCallback<Schema$BlueGreenDeployment>
|
|
5822
|
+
): void;
|
|
5823
|
+
get(
|
|
5824
|
+
params: Params$Resource$Bluegreendeployments$Get,
|
|
5825
|
+
callback: BodyResponseCallback<Schema$BlueGreenDeployment>
|
|
5826
|
+
): void;
|
|
5827
|
+
get(callback: BodyResponseCallback<Schema$BlueGreenDeployment>): void;
|
|
5828
|
+
get(
|
|
5829
|
+
paramsOrCallback?:
|
|
5830
|
+
| Params$Resource$Bluegreendeployments$Get
|
|
5831
|
+
| BodyResponseCallback<Schema$BlueGreenDeployment>
|
|
5832
|
+
| BodyResponseCallback<Readable>,
|
|
5833
|
+
optionsOrCallback?:
|
|
5834
|
+
| MethodOptions
|
|
5835
|
+
| StreamMethodOptions
|
|
5836
|
+
| BodyResponseCallback<Schema$BlueGreenDeployment>
|
|
5837
|
+
| BodyResponseCallback<Readable>,
|
|
5838
|
+
callback?:
|
|
5839
|
+
| BodyResponseCallback<Schema$BlueGreenDeployment>
|
|
5840
|
+
| BodyResponseCallback<Readable>
|
|
5841
|
+
):
|
|
5842
|
+
| void
|
|
5843
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$BlueGreenDeployment>>
|
|
5844
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
5845
|
+
let params = (paramsOrCallback ||
|
|
5846
|
+
{}) as Params$Resource$Bluegreendeployments$Get;
|
|
5847
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5848
|
+
|
|
5849
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5850
|
+
callback = paramsOrCallback;
|
|
5851
|
+
params = {} as Params$Resource$Bluegreendeployments$Get;
|
|
5852
|
+
options = {};
|
|
5853
|
+
}
|
|
5854
|
+
|
|
5855
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5856
|
+
callback = optionsOrCallback;
|
|
5857
|
+
options = {};
|
|
5858
|
+
}
|
|
5859
|
+
|
|
5860
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
5861
|
+
const parameters = {
|
|
5862
|
+
options: Object.assign(
|
|
5863
|
+
{
|
|
5864
|
+
url: (rootUrl + '/sql/v1beta4/{+name}').replace(
|
|
5865
|
+
/([^:]\/)\/+/g,
|
|
5866
|
+
'$1'
|
|
5867
|
+
),
|
|
5868
|
+
method: 'GET',
|
|
5869
|
+
apiVersion: '',
|
|
5870
|
+
},
|
|
5871
|
+
options
|
|
5872
|
+
),
|
|
5873
|
+
params,
|
|
5874
|
+
requiredParams: ['name'],
|
|
5875
|
+
pathParams: ['name'],
|
|
5876
|
+
context: this.context,
|
|
5877
|
+
};
|
|
5878
|
+
if (callback) {
|
|
5879
|
+
createAPIRequest<Schema$BlueGreenDeployment>(
|
|
5880
|
+
parameters,
|
|
5881
|
+
callback as BodyResponseCallback<unknown>
|
|
5882
|
+
);
|
|
5883
|
+
} else {
|
|
5884
|
+
return createAPIRequest<Schema$BlueGreenDeployment>(parameters);
|
|
5885
|
+
}
|
|
5886
|
+
}
|
|
5887
|
+
|
|
5888
|
+
/**
|
|
5889
|
+
* Lists blue-green deployments under a given project.
|
|
5890
|
+
* @example
|
|
5891
|
+
* ```js
|
|
5892
|
+
* // Before running the sample:
|
|
5893
|
+
* // - Enable the API at:
|
|
5894
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
5895
|
+
* // - Login into gcloud by running:
|
|
5896
|
+
* // ```sh
|
|
5897
|
+
* // $ gcloud auth application-default login
|
|
5898
|
+
* // ```
|
|
5899
|
+
* // - Install the npm module by running:
|
|
5900
|
+
* // ```sh
|
|
5901
|
+
* // $ npm install googleapis
|
|
5902
|
+
* // ```
|
|
5903
|
+
*
|
|
5904
|
+
* const {google} = require('googleapis');
|
|
5905
|
+
* const sqladmin = google.sqladmin('v1beta4');
|
|
5906
|
+
*
|
|
5907
|
+
* async function main() {
|
|
5908
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5909
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5910
|
+
* scopes: [
|
|
5911
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5912
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
5913
|
+
* ],
|
|
5914
|
+
* });
|
|
5915
|
+
*
|
|
5916
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5917
|
+
* const authClient = await auth.getClient();
|
|
5918
|
+
* google.options({auth: authClient});
|
|
5919
|
+
*
|
|
5920
|
+
* // Do the magic
|
|
5921
|
+
* const res = await sql.blueGreenDeployments.list({
|
|
5922
|
+
* // Optional. A filter expression that filters the results.
|
|
5923
|
+
* filter: 'placeholder-value',
|
|
5924
|
+
* // Optional. A comma-separated list of fields to order the results by.
|
|
5925
|
+
* orderBy: 'placeholder-value',
|
|
5926
|
+
* // Optional. The maximum number of deployments to return.
|
|
5927
|
+
* pageSize: 'placeholder-value',
|
|
5928
|
+
* // Optional. A page token, received from a previous `ListBlueGreenDeployments` call. Provide this to retrieve the subsequent page.
|
|
5929
|
+
* pageToken: 'placeholder-value',
|
|
5930
|
+
* // Required. The parent resource whose blue-green deployments are to be listed. Format: projects/{project\}/locations/{location\}
|
|
5931
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
5932
|
+
* });
|
|
5933
|
+
* console.log(res.data);
|
|
5934
|
+
*
|
|
5935
|
+
* // Example response
|
|
5936
|
+
* // {
|
|
5937
|
+
* // "blueGreenDeployments": [],
|
|
5938
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
5939
|
+
* // }
|
|
5940
|
+
* }
|
|
5941
|
+
*
|
|
5942
|
+
* main().catch(e => {
|
|
5943
|
+
* console.error(e);
|
|
5944
|
+
* throw e;
|
|
5945
|
+
* });
|
|
5946
|
+
*
|
|
5947
|
+
* ```
|
|
5948
|
+
*
|
|
5949
|
+
* @param params - Parameters for request
|
|
5950
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5951
|
+
* @param callback - Optional callback that handles the response.
|
|
5952
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5953
|
+
*/
|
|
5954
|
+
list(
|
|
5955
|
+
params: Params$Resource$Bluegreendeployments$List,
|
|
5956
|
+
options: StreamMethodOptions
|
|
5957
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5958
|
+
list(
|
|
5959
|
+
params?: Params$Resource$Bluegreendeployments$List,
|
|
5960
|
+
options?: MethodOptions
|
|
5961
|
+
): Promise<
|
|
5962
|
+
GaxiosResponseWithHTTP2<Schema$ListBlueGreenDeploymentsResponse>
|
|
5963
|
+
>;
|
|
5964
|
+
list(
|
|
5965
|
+
params: Params$Resource$Bluegreendeployments$List,
|
|
5966
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5967
|
+
callback: BodyResponseCallback<Readable>
|
|
5968
|
+
): void;
|
|
5969
|
+
list(
|
|
5970
|
+
params: Params$Resource$Bluegreendeployments$List,
|
|
5971
|
+
options:
|
|
5972
|
+
| MethodOptions
|
|
5973
|
+
| BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>,
|
|
5974
|
+
callback: BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
|
|
5975
|
+
): void;
|
|
5976
|
+
list(
|
|
5977
|
+
params: Params$Resource$Bluegreendeployments$List,
|
|
5978
|
+
callback: BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
|
|
5979
|
+
): void;
|
|
5980
|
+
list(
|
|
5981
|
+
callback: BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
|
|
5982
|
+
): void;
|
|
5983
|
+
list(
|
|
5984
|
+
paramsOrCallback?:
|
|
5985
|
+
| Params$Resource$Bluegreendeployments$List
|
|
5986
|
+
| BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
|
|
5987
|
+
| BodyResponseCallback<Readable>,
|
|
5988
|
+
optionsOrCallback?:
|
|
5989
|
+
| MethodOptions
|
|
5990
|
+
| StreamMethodOptions
|
|
5991
|
+
| BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
|
|
5992
|
+
| BodyResponseCallback<Readable>,
|
|
5993
|
+
callback?:
|
|
5994
|
+
| BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
|
|
5995
|
+
| BodyResponseCallback<Readable>
|
|
5996
|
+
):
|
|
5997
|
+
| void
|
|
5998
|
+
| Promise<
|
|
5999
|
+
GaxiosResponseWithHTTP2<Schema$ListBlueGreenDeploymentsResponse>
|
|
6000
|
+
>
|
|
6001
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
6002
|
+
let params = (paramsOrCallback ||
|
|
6003
|
+
{}) as Params$Resource$Bluegreendeployments$List;
|
|
6004
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6005
|
+
|
|
6006
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6007
|
+
callback = paramsOrCallback;
|
|
6008
|
+
params = {} as Params$Resource$Bluegreendeployments$List;
|
|
6009
|
+
options = {};
|
|
6010
|
+
}
|
|
6011
|
+
|
|
6012
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6013
|
+
callback = optionsOrCallback;
|
|
6014
|
+
options = {};
|
|
6015
|
+
}
|
|
6016
|
+
|
|
6017
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
6018
|
+
const parameters = {
|
|
6019
|
+
options: Object.assign(
|
|
6020
|
+
{
|
|
6021
|
+
url: (
|
|
6022
|
+
rootUrl + '/sql/v1beta4/{+parent}/blueGreenDeployments'
|
|
6023
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
6024
|
+
method: 'GET',
|
|
6025
|
+
apiVersion: '',
|
|
6026
|
+
},
|
|
6027
|
+
options
|
|
6028
|
+
),
|
|
6029
|
+
params,
|
|
6030
|
+
requiredParams: ['parent'],
|
|
6031
|
+
pathParams: ['parent'],
|
|
6032
|
+
context: this.context,
|
|
6033
|
+
};
|
|
6034
|
+
if (callback) {
|
|
6035
|
+
createAPIRequest<Schema$ListBlueGreenDeploymentsResponse>(
|
|
6036
|
+
parameters,
|
|
6037
|
+
callback as BodyResponseCallback<unknown>
|
|
6038
|
+
);
|
|
6039
|
+
} else {
|
|
6040
|
+
return createAPIRequest<Schema$ListBlueGreenDeploymentsResponse>(
|
|
6041
|
+
parameters
|
|
6042
|
+
);
|
|
6043
|
+
}
|
|
6044
|
+
}
|
|
6045
|
+
|
|
6046
|
+
/**
|
|
6047
|
+
* Switches over to green instance for a blue-green deployment.
|
|
6048
|
+
* @example
|
|
6049
|
+
* ```js
|
|
6050
|
+
* // Before running the sample:
|
|
6051
|
+
* // - Enable the API at:
|
|
6052
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
6053
|
+
* // - Login into gcloud by running:
|
|
6054
|
+
* // ```sh
|
|
6055
|
+
* // $ gcloud auth application-default login
|
|
6056
|
+
* // ```
|
|
6057
|
+
* // - Install the npm module by running:
|
|
6058
|
+
* // ```sh
|
|
6059
|
+
* // $ npm install googleapis
|
|
6060
|
+
* // ```
|
|
6061
|
+
*
|
|
6062
|
+
* const {google} = require('googleapis');
|
|
6063
|
+
* const sqladmin = google.sqladmin('v1beta4');
|
|
6064
|
+
*
|
|
6065
|
+
* async function main() {
|
|
6066
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6067
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6068
|
+
* scopes: [
|
|
6069
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6070
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
6071
|
+
* ],
|
|
6072
|
+
* });
|
|
6073
|
+
*
|
|
6074
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6075
|
+
* const authClient = await auth.getClient();
|
|
6076
|
+
* google.options({auth: authClient});
|
|
6077
|
+
*
|
|
6078
|
+
* // Do the magic
|
|
6079
|
+
* const res = await sql.blueGreenDeployments.switchover({
|
|
6080
|
+
* // Required. The name of the blue-green deployment to switch over. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
|
|
6081
|
+
* name: 'projects/my-project/locations/my-location/blueGreenDeployments/my-blueGreenDeployment',
|
|
6082
|
+
*
|
|
6083
|
+
* // Request body metadata
|
|
6084
|
+
* requestBody: {
|
|
6085
|
+
* // request body parameters
|
|
6086
|
+
* // {}
|
|
6087
|
+
* },
|
|
6088
|
+
* });
|
|
6089
|
+
* console.log(res.data);
|
|
6090
|
+
*
|
|
6091
|
+
* // Example response
|
|
6092
|
+
* // {
|
|
6093
|
+
* // "acquireSsrsLeaseContext": {},
|
|
6094
|
+
* // "apiWarning": {},
|
|
6095
|
+
* // "backupContext": {},
|
|
6096
|
+
* // "endTime": "my_endTime",
|
|
6097
|
+
* // "error": {},
|
|
6098
|
+
* // "exportContext": {},
|
|
6099
|
+
* // "importContext": {},
|
|
6100
|
+
* // "insertTime": "my_insertTime",
|
|
6101
|
+
* // "kind": "my_kind",
|
|
6102
|
+
* // "name": "my_name",
|
|
6103
|
+
* // "operationType": "my_operationType",
|
|
6104
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
6105
|
+
* // "selfLink": "my_selfLink",
|
|
6106
|
+
* // "startTime": "my_startTime",
|
|
6107
|
+
* // "status": "my_status",
|
|
6108
|
+
* // "subOperationType": {},
|
|
6109
|
+
* // "targetId": "my_targetId",
|
|
6110
|
+
* // "targetLink": "my_targetLink",
|
|
6111
|
+
* // "targetProject": "my_targetProject",
|
|
6112
|
+
* // "user": "my_user"
|
|
6113
|
+
* // }
|
|
6114
|
+
* }
|
|
6115
|
+
*
|
|
6116
|
+
* main().catch(e => {
|
|
6117
|
+
* console.error(e);
|
|
6118
|
+
* throw e;
|
|
6119
|
+
* });
|
|
6120
|
+
*
|
|
6121
|
+
* ```
|
|
6122
|
+
*
|
|
6123
|
+
* @param params - Parameters for request
|
|
6124
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6125
|
+
* @param callback - Optional callback that handles the response.
|
|
6126
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6127
|
+
*/
|
|
6128
|
+
switchover(
|
|
6129
|
+
params: Params$Resource$Bluegreendeployments$Switchover,
|
|
6130
|
+
options: StreamMethodOptions
|
|
6131
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6132
|
+
switchover(
|
|
6133
|
+
params?: Params$Resource$Bluegreendeployments$Switchover,
|
|
6134
|
+
options?: MethodOptions
|
|
6135
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
6136
|
+
switchover(
|
|
6137
|
+
params: Params$Resource$Bluegreendeployments$Switchover,
|
|
6138
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6139
|
+
callback: BodyResponseCallback<Readable>
|
|
6140
|
+
): void;
|
|
6141
|
+
switchover(
|
|
6142
|
+
params: Params$Resource$Bluegreendeployments$Switchover,
|
|
6143
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
6144
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
6145
|
+
): void;
|
|
6146
|
+
switchover(
|
|
6147
|
+
params: Params$Resource$Bluegreendeployments$Switchover,
|
|
6148
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
6149
|
+
): void;
|
|
6150
|
+
switchover(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6151
|
+
switchover(
|
|
6152
|
+
paramsOrCallback?:
|
|
6153
|
+
| Params$Resource$Bluegreendeployments$Switchover
|
|
6154
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6155
|
+
| BodyResponseCallback<Readable>,
|
|
6156
|
+
optionsOrCallback?:
|
|
6157
|
+
| MethodOptions
|
|
6158
|
+
| StreamMethodOptions
|
|
6159
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6160
|
+
| BodyResponseCallback<Readable>,
|
|
6161
|
+
callback?:
|
|
6162
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
6163
|
+
):
|
|
6164
|
+
| void
|
|
6165
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
6166
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
6167
|
+
let params = (paramsOrCallback ||
|
|
6168
|
+
{}) as Params$Resource$Bluegreendeployments$Switchover;
|
|
6169
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6170
|
+
|
|
6171
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6172
|
+
callback = paramsOrCallback;
|
|
6173
|
+
params = {} as Params$Resource$Bluegreendeployments$Switchover;
|
|
6174
|
+
options = {};
|
|
6175
|
+
}
|
|
6176
|
+
|
|
6177
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6178
|
+
callback = optionsOrCallback;
|
|
6179
|
+
options = {};
|
|
6180
|
+
}
|
|
6181
|
+
|
|
6182
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
6183
|
+
const parameters = {
|
|
6184
|
+
options: Object.assign(
|
|
6185
|
+
{
|
|
6186
|
+
url: (rootUrl + '/sql/v1beta4/{+name}:switchover').replace(
|
|
6187
|
+
/([^:]\/)\/+/g,
|
|
6188
|
+
'$1'
|
|
6189
|
+
),
|
|
6190
|
+
method: 'POST',
|
|
6191
|
+
apiVersion: '',
|
|
6192
|
+
},
|
|
6193
|
+
options
|
|
6194
|
+
),
|
|
6195
|
+
params,
|
|
6196
|
+
requiredParams: ['name'],
|
|
6197
|
+
pathParams: ['name'],
|
|
6198
|
+
context: this.context,
|
|
6199
|
+
};
|
|
6200
|
+
if (callback) {
|
|
6201
|
+
createAPIRequest<Schema$Operation>(
|
|
6202
|
+
parameters,
|
|
6203
|
+
callback as BodyResponseCallback<unknown>
|
|
6204
|
+
);
|
|
6205
|
+
} else {
|
|
6206
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
6207
|
+
}
|
|
6208
|
+
}
|
|
6209
|
+
}
|
|
6210
|
+
|
|
6211
|
+
export interface Params$Resource$Bluegreendeployments$Create extends StandardParameters {
|
|
6212
|
+
/**
|
|
6213
|
+
* Required. The ID to use for the blue-green deployment, which will become the final component of the deployment's resource name.
|
|
6214
|
+
*/
|
|
6215
|
+
blueGreenDeploymentId?: string;
|
|
6216
|
+
/**
|
|
6217
|
+
* Required. The parent resource where this blue-green deployment will be created. Format: projects/{project\}/locations/{location\}
|
|
6218
|
+
*/
|
|
6219
|
+
parent?: string;
|
|
6220
|
+
|
|
6221
|
+
/**
|
|
6222
|
+
* Request body metadata
|
|
6223
|
+
*/
|
|
6224
|
+
requestBody?: Schema$BlueGreenDeployment;
|
|
6225
|
+
}
|
|
6226
|
+
export interface Params$Resource$Bluegreendeployments$Delete extends StandardParameters {
|
|
6227
|
+
/**
|
|
6228
|
+
* Optional. If set to true, and the switchover is complete, this deletes the old source instance along with the deployment.
|
|
6229
|
+
*/
|
|
6230
|
+
deleteOldSource?: boolean;
|
|
6231
|
+
/**
|
|
6232
|
+
* Required. The name of the blue-green deployment to delete. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
|
|
6233
|
+
*/
|
|
6234
|
+
name?: string;
|
|
6235
|
+
}
|
|
6236
|
+
export interface Params$Resource$Bluegreendeployments$Get extends StandardParameters {
|
|
6237
|
+
/**
|
|
6238
|
+
* Required. The name of the blue-green deployment to retrieve. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
|
|
6239
|
+
*/
|
|
6240
|
+
name?: string;
|
|
6241
|
+
/**
|
|
6242
|
+
* Optional. Specifies whether to return the basic or detailed view of the resource in the response.
|
|
6243
|
+
*/
|
|
6244
|
+
view?: string;
|
|
6245
|
+
}
|
|
6246
|
+
export interface Params$Resource$Bluegreendeployments$List extends StandardParameters {
|
|
6247
|
+
/**
|
|
6248
|
+
* Optional. A filter expression that filters the results.
|
|
6249
|
+
*/
|
|
6250
|
+
filter?: string;
|
|
6251
|
+
/**
|
|
6252
|
+
* Optional. A comma-separated list of fields to order the results by.
|
|
6253
|
+
*/
|
|
6254
|
+
orderBy?: string;
|
|
6255
|
+
/**
|
|
6256
|
+
* Optional. The maximum number of deployments to return.
|
|
6257
|
+
*/
|
|
6258
|
+
pageSize?: number;
|
|
6259
|
+
/**
|
|
6260
|
+
* Optional. A page token, received from a previous `ListBlueGreenDeployments` call. Provide this to retrieve the subsequent page.
|
|
6261
|
+
*/
|
|
6262
|
+
pageToken?: string;
|
|
6263
|
+
/**
|
|
6264
|
+
* Required. The parent resource whose blue-green deployments are to be listed. Format: projects/{project\}/locations/{location\}
|
|
6265
|
+
*/
|
|
6266
|
+
parent?: string;
|
|
6267
|
+
}
|
|
6268
|
+
export interface Params$Resource$Bluegreendeployments$Switchover extends StandardParameters {
|
|
6269
|
+
/**
|
|
6270
|
+
* Required. The name of the blue-green deployment to switch over. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
|
|
6271
|
+
*/
|
|
6272
|
+
name?: string;
|
|
6273
|
+
|
|
6274
|
+
/**
|
|
6275
|
+
* Request body metadata
|
|
6276
|
+
*/
|
|
6277
|
+
requestBody?: Schema$SwitchoverBlueGreenDeploymentRequest;
|
|
6278
|
+
}
|
|
6279
|
+
|
|
6280
|
+
export class Resource$Connect {
|
|
6281
|
+
context: APIRequestContext;
|
|
6282
|
+
constructor(context: APIRequestContext) {
|
|
6283
|
+
this.context = context;
|
|
6284
|
+
}
|
|
6285
|
+
|
|
6286
|
+
/**
|
|
6287
|
+
* 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 themselves when connecting to the database.
|
|
6288
|
+
* @example
|
|
6289
|
+
* ```js
|
|
6290
|
+
* // Before running the sample:
|
|
6291
|
+
* // - Enable the API at:
|
|
6292
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
6293
|
+
* // - Login into gcloud by running:
|
|
6294
|
+
* // ```sh
|
|
6295
|
+
* // $ gcloud auth application-default login
|
|
6296
|
+
* // ```
|
|
6297
|
+
* // - Install the npm module by running:
|
|
6298
|
+
* // ```sh
|
|
6299
|
+
* // $ npm install googleapis
|
|
6300
|
+
* // ```
|
|
6301
|
+
*
|
|
6302
|
+
* const {google} = require('googleapis');
|
|
6303
|
+
* const sqladmin = google.sqladmin('v1beta4');
|
|
6304
|
+
*
|
|
6305
|
+
* async function main() {
|
|
6306
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6307
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6308
|
+
* scopes: [
|
|
6309
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6310
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
6311
|
+
* ],
|
|
6312
|
+
* });
|
|
6313
|
+
*
|
|
6314
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6315
|
+
* const authClient = await auth.getClient();
|
|
6316
|
+
* google.options({auth: authClient});
|
|
6317
|
+
*
|
|
6318
|
+
* // Do the magic
|
|
6319
|
+
* const res = await sql.connect.generateEphemeral({
|
|
6320
|
+
* // Cloud SQL instance ID. This does not include the project ID.
|
|
6321
|
+
* instance: 'placeholder-value',
|
|
6322
|
+
* // Project ID of the project that contains the instance.
|
|
6323
|
+
* project: 'placeholder-value',
|
|
6324
|
+
*
|
|
6325
|
+
* // Request body metadata
|
|
6326
|
+
* requestBody: {
|
|
6327
|
+
* // request body parameters
|
|
6328
|
+
* // {
|
|
6329
|
+
* // "access_token": "my_access_token",
|
|
6330
|
+
* // "public_key": "my_public_key",
|
|
6331
|
+
* // "readTime": "my_readTime",
|
|
6332
|
+
* // "validDuration": "my_validDuration"
|
|
6333
|
+
* // }
|
|
6334
|
+
* },
|
|
6335
|
+
* });
|
|
6336
|
+
* console.log(res.data);
|
|
6337
|
+
*
|
|
6338
|
+
* // Example response
|
|
6339
|
+
* // {
|
|
6340
|
+
* // "ephemeralCert": {}
|
|
6341
|
+
* // }
|
|
6342
|
+
* }
|
|
6343
|
+
*
|
|
6344
|
+
* main().catch(e => {
|
|
6345
|
+
* console.error(e);
|
|
6346
|
+
* throw e;
|
|
6347
|
+
* });
|
|
6348
|
+
*
|
|
6349
|
+
* ```
|
|
6350
|
+
*
|
|
6351
|
+
* @param params - Parameters for request
|
|
6352
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6353
|
+
* @param callback - Optional callback that handles the response.
|
|
6354
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6355
|
+
*/
|
|
6356
|
+
generateEphemeralCert(
|
|
6357
|
+
params: Params$Resource$Connect$Generateephemeralcert,
|
|
6358
|
+
options: StreamMethodOptions
|
|
6359
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6360
|
+
generateEphemeralCert(
|
|
6361
|
+
params?: Params$Resource$Connect$Generateephemeralcert,
|
|
6362
|
+
options?: MethodOptions
|
|
6363
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GenerateEphemeralCertResponse>>;
|
|
6364
|
+
generateEphemeralCert(
|
|
6365
|
+
params: Params$Resource$Connect$Generateephemeralcert,
|
|
6366
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6367
|
+
callback: BodyResponseCallback<Readable>
|
|
6368
|
+
): void;
|
|
6369
|
+
generateEphemeralCert(
|
|
6370
|
+
params: Params$Resource$Connect$Generateephemeralcert,
|
|
6371
|
+
options:
|
|
6372
|
+
| MethodOptions
|
|
6373
|
+
| BodyResponseCallback<Schema$GenerateEphemeralCertResponse>,
|
|
6374
|
+
callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
|
|
6375
|
+
): void;
|
|
5166
6376
|
generateEphemeralCert(
|
|
5167
6377
|
params: Params$Resource$Connect$Generateephemeralcert,
|
|
5168
6378
|
callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
|
|
@@ -5210,7 +6420,166 @@ export namespace sqladmin_v1beta4 {
|
|
|
5210
6420
|
rootUrl +
|
|
5211
6421
|
'/sql/v1beta4/projects/{project}/instances/{instance}:generateEphemeralCert'
|
|
5212
6422
|
).replace(/([^:]\/)\/+/g, '$1'),
|
|
5213
|
-
method: 'POST',
|
|
6423
|
+
method: 'POST',
|
|
6424
|
+
apiVersion: '',
|
|
6425
|
+
},
|
|
6426
|
+
options
|
|
6427
|
+
),
|
|
6428
|
+
params,
|
|
6429
|
+
requiredParams: ['project', 'instance'],
|
|
6430
|
+
pathParams: ['instance', 'project'],
|
|
6431
|
+
context: this.context,
|
|
6432
|
+
};
|
|
6433
|
+
if (callback) {
|
|
6434
|
+
createAPIRequest<Schema$GenerateEphemeralCertResponse>(
|
|
6435
|
+
parameters,
|
|
6436
|
+
callback as BodyResponseCallback<unknown>
|
|
6437
|
+
);
|
|
6438
|
+
} else {
|
|
6439
|
+
return createAPIRequest<Schema$GenerateEphemeralCertResponse>(
|
|
6440
|
+
parameters
|
|
6441
|
+
);
|
|
6442
|
+
}
|
|
6443
|
+
}
|
|
6444
|
+
|
|
6445
|
+
/**
|
|
6446
|
+
* Retrieves connect settings about a Cloud SQL instance.
|
|
6447
|
+
* @example
|
|
6448
|
+
* ```js
|
|
6449
|
+
* // Before running the sample:
|
|
6450
|
+
* // - Enable the API at:
|
|
6451
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
6452
|
+
* // - Login into gcloud by running:
|
|
6453
|
+
* // ```sh
|
|
6454
|
+
* // $ gcloud auth application-default login
|
|
6455
|
+
* // ```
|
|
6456
|
+
* // - Install the npm module by running:
|
|
6457
|
+
* // ```sh
|
|
6458
|
+
* // $ npm install googleapis
|
|
6459
|
+
* // ```
|
|
6460
|
+
*
|
|
6461
|
+
* const {google} = require('googleapis');
|
|
6462
|
+
* const sqladmin = google.sqladmin('v1beta4');
|
|
6463
|
+
*
|
|
6464
|
+
* async function main() {
|
|
6465
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6466
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6467
|
+
* scopes: [
|
|
6468
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6469
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
6470
|
+
* ],
|
|
6471
|
+
* });
|
|
6472
|
+
*
|
|
6473
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6474
|
+
* const authClient = await auth.getClient();
|
|
6475
|
+
* google.options({auth: authClient});
|
|
6476
|
+
*
|
|
6477
|
+
* // Do the magic
|
|
6478
|
+
* const res = await sql.connect.get({
|
|
6479
|
+
* // Cloud SQL instance ID. This does not include the project ID.
|
|
6480
|
+
* instance: 'placeholder-value',
|
|
6481
|
+
* // Project ID of the project that contains the instance.
|
|
6482
|
+
* project: 'placeholder-value',
|
|
6483
|
+
* // Optional. Optional snapshot read timestamp to trade freshness for performance.
|
|
6484
|
+
* readTime: 'placeholder-value',
|
|
6485
|
+
* });
|
|
6486
|
+
* console.log(res.data);
|
|
6487
|
+
*
|
|
6488
|
+
* // Example response
|
|
6489
|
+
* // {
|
|
6490
|
+
* // "backendType": "my_backendType",
|
|
6491
|
+
* // "connectionName": "my_connectionName",
|
|
6492
|
+
* // "customSubjectAlternativeNames": [],
|
|
6493
|
+
* // "databaseVersion": "my_databaseVersion",
|
|
6494
|
+
* // "dnsName": "my_dnsName",
|
|
6495
|
+
* // "dnsNames": [],
|
|
6496
|
+
* // "ipAddresses": [],
|
|
6497
|
+
* // "kind": "my_kind",
|
|
6498
|
+
* // "mdxProtocolSupport": [],
|
|
6499
|
+
* // "nodeCount": 0,
|
|
6500
|
+
* // "nodes": [],
|
|
6501
|
+
* // "pscEnabled": false,
|
|
6502
|
+
* // "region": "my_region",
|
|
6503
|
+
* // "serverCaCert": {},
|
|
6504
|
+
* // "serverCaMode": "my_serverCaMode"
|
|
6505
|
+
* // }
|
|
6506
|
+
* }
|
|
6507
|
+
*
|
|
6508
|
+
* main().catch(e => {
|
|
6509
|
+
* console.error(e);
|
|
6510
|
+
* throw e;
|
|
6511
|
+
* });
|
|
6512
|
+
*
|
|
6513
|
+
* ```
|
|
6514
|
+
*
|
|
6515
|
+
* @param params - Parameters for request
|
|
6516
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6517
|
+
* @param callback - Optional callback that handles the response.
|
|
6518
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6519
|
+
*/
|
|
6520
|
+
get(
|
|
6521
|
+
params: Params$Resource$Connect$Get,
|
|
6522
|
+
options: StreamMethodOptions
|
|
6523
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6524
|
+
get(
|
|
6525
|
+
params?: Params$Resource$Connect$Get,
|
|
6526
|
+
options?: MethodOptions
|
|
6527
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ConnectSettings>>;
|
|
6528
|
+
get(
|
|
6529
|
+
params: Params$Resource$Connect$Get,
|
|
6530
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6531
|
+
callback: BodyResponseCallback<Readable>
|
|
6532
|
+
): void;
|
|
6533
|
+
get(
|
|
6534
|
+
params: Params$Resource$Connect$Get,
|
|
6535
|
+
options: MethodOptions | BodyResponseCallback<Schema$ConnectSettings>,
|
|
6536
|
+
callback: BodyResponseCallback<Schema$ConnectSettings>
|
|
6537
|
+
): void;
|
|
6538
|
+
get(
|
|
6539
|
+
params: Params$Resource$Connect$Get,
|
|
6540
|
+
callback: BodyResponseCallback<Schema$ConnectSettings>
|
|
6541
|
+
): void;
|
|
6542
|
+
get(callback: BodyResponseCallback<Schema$ConnectSettings>): void;
|
|
6543
|
+
get(
|
|
6544
|
+
paramsOrCallback?:
|
|
6545
|
+
| Params$Resource$Connect$Get
|
|
6546
|
+
| BodyResponseCallback<Schema$ConnectSettings>
|
|
6547
|
+
| BodyResponseCallback<Readable>,
|
|
6548
|
+
optionsOrCallback?:
|
|
6549
|
+
| MethodOptions
|
|
6550
|
+
| StreamMethodOptions
|
|
6551
|
+
| BodyResponseCallback<Schema$ConnectSettings>
|
|
6552
|
+
| BodyResponseCallback<Readable>,
|
|
6553
|
+
callback?:
|
|
6554
|
+
| BodyResponseCallback<Schema$ConnectSettings>
|
|
6555
|
+
| BodyResponseCallback<Readable>
|
|
6556
|
+
):
|
|
6557
|
+
| void
|
|
6558
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ConnectSettings>>
|
|
6559
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
6560
|
+
let params = (paramsOrCallback || {}) as Params$Resource$Connect$Get;
|
|
6561
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6562
|
+
|
|
6563
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6564
|
+
callback = paramsOrCallback;
|
|
6565
|
+
params = {} as Params$Resource$Connect$Get;
|
|
6566
|
+
options = {};
|
|
6567
|
+
}
|
|
6568
|
+
|
|
6569
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6570
|
+
callback = optionsOrCallback;
|
|
6571
|
+
options = {};
|
|
6572
|
+
}
|
|
6573
|
+
|
|
6574
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
6575
|
+
const parameters = {
|
|
6576
|
+
options: Object.assign(
|
|
6577
|
+
{
|
|
6578
|
+
url: (
|
|
6579
|
+
rootUrl +
|
|
6580
|
+
'/sql/v1beta4/projects/{project}/instances/{instance}/connectSettings'
|
|
6581
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
6582
|
+
method: 'GET',
|
|
5214
6583
|
apiVersion: '',
|
|
5215
6584
|
},
|
|
5216
6585
|
options
|
|
@@ -5221,19 +6590,17 @@ export namespace sqladmin_v1beta4 {
|
|
|
5221
6590
|
context: this.context,
|
|
5222
6591
|
};
|
|
5223
6592
|
if (callback) {
|
|
5224
|
-
createAPIRequest<Schema$
|
|
6593
|
+
createAPIRequest<Schema$ConnectSettings>(
|
|
5225
6594
|
parameters,
|
|
5226
6595
|
callback as BodyResponseCallback<unknown>
|
|
5227
6596
|
);
|
|
5228
6597
|
} else {
|
|
5229
|
-
return createAPIRequest<Schema$
|
|
5230
|
-
parameters
|
|
5231
|
-
);
|
|
6598
|
+
return createAPIRequest<Schema$ConnectSettings>(parameters);
|
|
5232
6599
|
}
|
|
5233
6600
|
}
|
|
5234
6601
|
|
|
5235
6602
|
/**
|
|
5236
|
-
* Retrieves connect settings about a Cloud SQL instance.
|
|
6603
|
+
* Retrieves connect settings about a Cloud SQL instance using the instance DNS name.
|
|
5237
6604
|
* @example
|
|
5238
6605
|
* ```js
|
|
5239
6606
|
* // Before running the sample:
|
|
@@ -5265,19 +6632,18 @@ export namespace sqladmin_v1beta4 {
|
|
|
5265
6632
|
* google.options({auth: authClient});
|
|
5266
6633
|
*
|
|
5267
6634
|
* // Do the magic
|
|
5268
|
-
* const res = await sql.connect.
|
|
5269
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
5270
|
-
*
|
|
5271
|
-
* //
|
|
5272
|
-
*
|
|
5273
|
-
* // Optional. Optional snapshot read timestamp to trade freshness for performance.
|
|
5274
|
-
* readTime: 'placeholder-value',
|
|
6635
|
+
* const res = await sql.connect.resolve({
|
|
6636
|
+
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
6637
|
+
* dnsName: 'placeholder-value',
|
|
6638
|
+
* // Required. The region of the instance.
|
|
6639
|
+
* location: 'placeholder-value',
|
|
5275
6640
|
* });
|
|
5276
6641
|
* console.log(res.data);
|
|
5277
6642
|
*
|
|
5278
6643
|
* // Example response
|
|
5279
6644
|
* // {
|
|
5280
6645
|
* // "backendType": "my_backendType",
|
|
6646
|
+
* // "connectionName": "my_connectionName",
|
|
5281
6647
|
* // "customSubjectAlternativeNames": [],
|
|
5282
6648
|
* // "databaseVersion": "my_databaseVersion",
|
|
5283
6649
|
* // "dnsName": "my_dnsName",
|
|
@@ -5306,32 +6672,32 @@ export namespace sqladmin_v1beta4 {
|
|
|
5306
6672
|
* @param callback - Optional callback that handles the response.
|
|
5307
6673
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5308
6674
|
*/
|
|
5309
|
-
|
|
5310
|
-
params: Params$Resource$Connect$
|
|
6675
|
+
resolve(
|
|
6676
|
+
params: Params$Resource$Connect$Resolve,
|
|
5311
6677
|
options: StreamMethodOptions
|
|
5312
6678
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5313
|
-
|
|
5314
|
-
params?: Params$Resource$Connect$
|
|
6679
|
+
resolve(
|
|
6680
|
+
params?: Params$Resource$Connect$Resolve,
|
|
5315
6681
|
options?: MethodOptions
|
|
5316
6682
|
): Promise<GaxiosResponseWithHTTP2<Schema$ConnectSettings>>;
|
|
5317
|
-
|
|
5318
|
-
params: Params$Resource$Connect$
|
|
6683
|
+
resolve(
|
|
6684
|
+
params: Params$Resource$Connect$Resolve,
|
|
5319
6685
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5320
6686
|
callback: BodyResponseCallback<Readable>
|
|
5321
6687
|
): void;
|
|
5322
|
-
|
|
5323
|
-
params: Params$Resource$Connect$
|
|
6688
|
+
resolve(
|
|
6689
|
+
params: Params$Resource$Connect$Resolve,
|
|
5324
6690
|
options: MethodOptions | BodyResponseCallback<Schema$ConnectSettings>,
|
|
5325
6691
|
callback: BodyResponseCallback<Schema$ConnectSettings>
|
|
5326
6692
|
): void;
|
|
5327
|
-
|
|
5328
|
-
params: Params$Resource$Connect$
|
|
6693
|
+
resolve(
|
|
6694
|
+
params: Params$Resource$Connect$Resolve,
|
|
5329
6695
|
callback: BodyResponseCallback<Schema$ConnectSettings>
|
|
5330
6696
|
): void;
|
|
5331
|
-
|
|
5332
|
-
|
|
6697
|
+
resolve(callback: BodyResponseCallback<Schema$ConnectSettings>): void;
|
|
6698
|
+
resolve(
|
|
5333
6699
|
paramsOrCallback?:
|
|
5334
|
-
| Params$Resource$Connect$
|
|
6700
|
+
| Params$Resource$Connect$Resolve
|
|
5335
6701
|
| BodyResponseCallback<Schema$ConnectSettings>
|
|
5336
6702
|
| BodyResponseCallback<Readable>,
|
|
5337
6703
|
optionsOrCallback?:
|
|
@@ -5346,12 +6712,12 @@ export namespace sqladmin_v1beta4 {
|
|
|
5346
6712
|
| void
|
|
5347
6713
|
| Promise<GaxiosResponseWithHTTP2<Schema$ConnectSettings>>
|
|
5348
6714
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
5349
|
-
let params = (paramsOrCallback || {}) as Params$Resource$Connect$
|
|
6715
|
+
let params = (paramsOrCallback || {}) as Params$Resource$Connect$Resolve;
|
|
5350
6716
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5351
6717
|
|
|
5352
6718
|
if (typeof paramsOrCallback === 'function') {
|
|
5353
6719
|
callback = paramsOrCallback;
|
|
5354
|
-
params = {} as Params$Resource$Connect$
|
|
6720
|
+
params = {} as Params$Resource$Connect$Resolve;
|
|
5355
6721
|
options = {};
|
|
5356
6722
|
}
|
|
5357
6723
|
|
|
@@ -5366,7 +6732,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
5366
6732
|
{
|
|
5367
6733
|
url: (
|
|
5368
6734
|
rootUrl +
|
|
5369
|
-
'/sql/v1beta4/
|
|
6735
|
+
'/sql/v1beta4/locations/{location}/dns/{dnsName}:resolveConnectSettings'
|
|
5370
6736
|
).replace(/([^:]\/)\/+/g, '$1'),
|
|
5371
6737
|
method: 'GET',
|
|
5372
6738
|
apiVersion: '',
|
|
@@ -5374,8 +6740,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
5374
6740
|
options
|
|
5375
6741
|
),
|
|
5376
6742
|
params,
|
|
5377
|
-
requiredParams: ['
|
|
5378
|
-
pathParams: ['
|
|
6743
|
+
requiredParams: ['location', 'dnsName'],
|
|
6744
|
+
pathParams: ['dnsName', 'location'],
|
|
5379
6745
|
context: this.context,
|
|
5380
6746
|
};
|
|
5381
6747
|
if (callback) {
|
|
@@ -5418,6 +6784,16 @@ export namespace sqladmin_v1beta4 {
|
|
|
5418
6784
|
*/
|
|
5419
6785
|
readTime?: string;
|
|
5420
6786
|
}
|
|
6787
|
+
export interface Params$Resource$Connect$Resolve extends StandardParameters {
|
|
6788
|
+
/**
|
|
6789
|
+
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
6790
|
+
*/
|
|
6791
|
+
dnsName?: string;
|
|
6792
|
+
/**
|
|
6793
|
+
* Required. The region of the instance.
|
|
6794
|
+
*/
|
|
6795
|
+
location?: string;
|
|
6796
|
+
}
|
|
5421
6797
|
|
|
5422
6798
|
export class Resource$Databases {
|
|
5423
6799
|
context: APIRequestContext;
|
|
@@ -5463,6 +6839,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
5463
6839
|
* database: 'placeholder-value',
|
|
5464
6840
|
* // Database instance ID. This does not include the project ID.
|
|
5465
6841
|
* instance: 'placeholder-value',
|
|
6842
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
6843
|
+
* location: 'placeholder-value',
|
|
5466
6844
|
* // Project ID of the project that contains the instance.
|
|
5467
6845
|
* project: 'placeholder-value',
|
|
5468
6846
|
* });
|
|
@@ -5539,8 +6917,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
5539
6917
|
| BodyResponseCallback<Schema$Operation>
|
|
5540
6918
|
| BodyResponseCallback<Readable>,
|
|
5541
6919
|
callback?:
|
|
5542
|
-
|
|
5543
|
-
| BodyResponseCallback<Readable>
|
|
6920
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
5544
6921
|
):
|
|
5545
6922
|
| void
|
|
5546
6923
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -5625,6 +7002,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
5625
7002
|
* database: 'placeholder-value',
|
|
5626
7003
|
* // Database instance ID. This does not include the project ID.
|
|
5627
7004
|
* instance: 'placeholder-value',
|
|
7005
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
7006
|
+
* location: 'placeholder-value',
|
|
5628
7007
|
* // Project ID of the project that contains the instance.
|
|
5629
7008
|
* project: 'placeholder-value',
|
|
5630
7009
|
* });
|
|
@@ -5690,8 +7069,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
5690
7069
|
| BodyResponseCallback<Schema$Database>
|
|
5691
7070
|
| BodyResponseCallback<Readable>,
|
|
5692
7071
|
callback?:
|
|
5693
|
-
|
|
5694
|
-
| BodyResponseCallback<Readable>
|
|
7072
|
+
BodyResponseCallback<Schema$Database> | BodyResponseCallback<Readable>
|
|
5695
7073
|
):
|
|
5696
7074
|
| void
|
|
5697
7075
|
| Promise<GaxiosResponseWithHTTP2<Schema$Database>>
|
|
@@ -5774,6 +7152,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
5774
7152
|
* const res = await sql.databases.insert({
|
|
5775
7153
|
* // Database instance ID. This does not include the project ID.
|
|
5776
7154
|
* instance: 'placeholder-value',
|
|
7155
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
7156
|
+
* location: 'placeholder-value',
|
|
5777
7157
|
* // Project ID of the project that contains the instance.
|
|
5778
7158
|
* project: 'placeholder-value',
|
|
5779
7159
|
*
|
|
@@ -5866,8 +7246,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
5866
7246
|
| BodyResponseCallback<Schema$Operation>
|
|
5867
7247
|
| BodyResponseCallback<Readable>,
|
|
5868
7248
|
callback?:
|
|
5869
|
-
|
|
5870
|
-
| BodyResponseCallback<Readable>
|
|
7249
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
5871
7250
|
):
|
|
5872
7251
|
| void
|
|
5873
7252
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -5950,6 +7329,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
5950
7329
|
* const res = await sql.databases.list({
|
|
5951
7330
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
5952
7331
|
* instance: 'placeholder-value',
|
|
7332
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
7333
|
+
* location: 'placeholder-value',
|
|
5953
7334
|
* // Project ID of the project that contains the instance.
|
|
5954
7335
|
* project: 'placeholder-value',
|
|
5955
7336
|
* });
|
|
@@ -5990,8 +7371,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
5990
7371
|
list(
|
|
5991
7372
|
params: Params$Resource$Databases$List,
|
|
5992
7373
|
options:
|
|
5993
|
-
|
|
|
5994
|
-
| BodyResponseCallback<Schema$DatabasesListResponse>,
|
|
7374
|
+
MethodOptions | BodyResponseCallback<Schema$DatabasesListResponse>,
|
|
5995
7375
|
callback: BodyResponseCallback<Schema$DatabasesListResponse>
|
|
5996
7376
|
): void;
|
|
5997
7377
|
list(
|
|
@@ -6096,6 +7476,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
6096
7476
|
* database: 'placeholder-value',
|
|
6097
7477
|
* // Database instance ID. This does not include the project ID.
|
|
6098
7478
|
* instance: 'placeholder-value',
|
|
7479
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
7480
|
+
* location: 'placeholder-value',
|
|
6099
7481
|
* // Project ID of the project that contains the instance.
|
|
6100
7482
|
* project: 'placeholder-value',
|
|
6101
7483
|
*
|
|
@@ -6188,8 +7570,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
6188
7570
|
| BodyResponseCallback<Schema$Operation>
|
|
6189
7571
|
| BodyResponseCallback<Readable>,
|
|
6190
7572
|
callback?:
|
|
6191
|
-
|
|
6192
|
-
| BodyResponseCallback<Readable>
|
|
7573
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
6193
7574
|
):
|
|
6194
7575
|
| void
|
|
6195
7576
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -6274,6 +7655,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
6274
7655
|
* database: 'placeholder-value',
|
|
6275
7656
|
* // Database instance ID. This does not include the project ID.
|
|
6276
7657
|
* instance: 'placeholder-value',
|
|
7658
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
7659
|
+
* location: 'placeholder-value',
|
|
6277
7660
|
* // Project ID of the project that contains the instance.
|
|
6278
7661
|
* project: 'placeholder-value',
|
|
6279
7662
|
*
|
|
@@ -6366,8 +7749,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
6366
7749
|
| BodyResponseCallback<Schema$Operation>
|
|
6367
7750
|
| BodyResponseCallback<Readable>,
|
|
6368
7751
|
callback?:
|
|
6369
|
-
|
|
6370
|
-
| BodyResponseCallback<Readable>
|
|
7752
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
6371
7753
|
):
|
|
6372
7754
|
| void
|
|
6373
7755
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -6424,6 +7806,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
6424
7806
|
* Database instance ID. This does not include the project ID.
|
|
6425
7807
|
*/
|
|
6426
7808
|
instance?: string;
|
|
7809
|
+
/**
|
|
7810
|
+
* Optional. Region of the Cloud SQL instance.
|
|
7811
|
+
*/
|
|
7812
|
+
location?: string;
|
|
6427
7813
|
/**
|
|
6428
7814
|
* Project ID of the project that contains the instance.
|
|
6429
7815
|
*/
|
|
@@ -6438,6 +7824,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
6438
7824
|
* Database instance ID. This does not include the project ID.
|
|
6439
7825
|
*/
|
|
6440
7826
|
instance?: string;
|
|
7827
|
+
/**
|
|
7828
|
+
* Optional. Region of the Cloud SQL instance.
|
|
7829
|
+
*/
|
|
7830
|
+
location?: string;
|
|
6441
7831
|
/**
|
|
6442
7832
|
* Project ID of the project that contains the instance.
|
|
6443
7833
|
*/
|
|
@@ -6448,6 +7838,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
6448
7838
|
* Database instance ID. This does not include the project ID.
|
|
6449
7839
|
*/
|
|
6450
7840
|
instance?: string;
|
|
7841
|
+
/**
|
|
7842
|
+
* Optional. Region of the Cloud SQL instance.
|
|
7843
|
+
*/
|
|
7844
|
+
location?: string;
|
|
6451
7845
|
/**
|
|
6452
7846
|
* Project ID of the project that contains the instance.
|
|
6453
7847
|
*/
|
|
@@ -6463,6 +7857,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
6463
7857
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
6464
7858
|
*/
|
|
6465
7859
|
instance?: string;
|
|
7860
|
+
/**
|
|
7861
|
+
* Optional. Region of the Cloud SQL instance.
|
|
7862
|
+
*/
|
|
7863
|
+
location?: string;
|
|
6466
7864
|
/**
|
|
6467
7865
|
* Project ID of the project that contains the instance.
|
|
6468
7866
|
*/
|
|
@@ -6477,6 +7875,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
6477
7875
|
* Database instance ID. This does not include the project ID.
|
|
6478
7876
|
*/
|
|
6479
7877
|
instance?: string;
|
|
7878
|
+
/**
|
|
7879
|
+
* Optional. Region of the Cloud SQL instance.
|
|
7880
|
+
*/
|
|
7881
|
+
location?: string;
|
|
6480
7882
|
/**
|
|
6481
7883
|
* Project ID of the project that contains the instance.
|
|
6482
7884
|
*/
|
|
@@ -6496,6 +7898,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
6496
7898
|
* Database instance ID. This does not include the project ID.
|
|
6497
7899
|
*/
|
|
6498
7900
|
instance?: string;
|
|
7901
|
+
/**
|
|
7902
|
+
* Optional. Region of the Cloud SQL instance.
|
|
7903
|
+
*/
|
|
7904
|
+
location?: string;
|
|
6499
7905
|
/**
|
|
6500
7906
|
* Project ID of the project that contains the instance.
|
|
6501
7907
|
*/
|
|
@@ -6706,6 +8112,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
6706
8112
|
* const res = await sql.instances.acquireSsrsLease({
|
|
6707
8113
|
* // Required. Cloud SQL instance ID. This doesn't include the project ID. It's composed of lowercase letters, numbers, and hyphens, and it must start with a letter. The total length must be 98 characters or less (Example: instance-id).
|
|
6708
8114
|
* instance: 'placeholder-value',
|
|
8115
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
8116
|
+
* location: 'placeholder-value',
|
|
6709
8117
|
* // Required. ID of the project that contains the instance (Example: project-id).
|
|
6710
8118
|
* project: 'placeholder-value',
|
|
6711
8119
|
*
|
|
@@ -6866,6 +8274,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
6866
8274
|
* const res = await sql.instances.addEntraIdCertificate({
|
|
6867
8275
|
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
6868
8276
|
* instance: 'placeholder-value',
|
|
8277
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
8278
|
+
* location: 'placeholder-value',
|
|
6869
8279
|
* // Required. Project ID of the project that contains the instance.
|
|
6870
8280
|
* project: 'placeholder-value',
|
|
6871
8281
|
* });
|
|
@@ -6944,8 +8354,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
6944
8354
|
| BodyResponseCallback<Schema$Operation>
|
|
6945
8355
|
| BodyResponseCallback<Readable>,
|
|
6946
8356
|
callback?:
|
|
6947
|
-
|
|
6948
|
-
| BodyResponseCallback<Readable>
|
|
8357
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
6949
8358
|
):
|
|
6950
8359
|
| void
|
|
6951
8360
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -7029,6 +8438,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
7029
8438
|
* const res = await sql.instances.addServerCa({
|
|
7030
8439
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
7031
8440
|
* instance: 'placeholder-value',
|
|
8441
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
8442
|
+
* location: 'placeholder-value',
|
|
7032
8443
|
* // Project ID of the project that contains the instance.
|
|
7033
8444
|
* project: 'placeholder-value',
|
|
7034
8445
|
* });
|
|
@@ -7105,8 +8516,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
7105
8516
|
| BodyResponseCallback<Schema$Operation>
|
|
7106
8517
|
| BodyResponseCallback<Readable>,
|
|
7107
8518
|
callback?:
|
|
7108
|
-
|
|
7109
|
-
| BodyResponseCallback<Readable>
|
|
8519
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
7110
8520
|
):
|
|
7111
8521
|
| void
|
|
7112
8522
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -7190,6 +8600,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
7190
8600
|
* const res = await sql.instances.addServerCertificate({
|
|
7191
8601
|
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
7192
8602
|
* instance: 'placeholder-value',
|
|
8603
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
8604
|
+
* location: 'placeholder-value',
|
|
7193
8605
|
* // Required. Project ID of the project that contains the instance.
|
|
7194
8606
|
* project: 'placeholder-value',
|
|
7195
8607
|
* });
|
|
@@ -7268,8 +8680,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
7268
8680
|
| BodyResponseCallback<Schema$Operation>
|
|
7269
8681
|
| BodyResponseCallback<Readable>,
|
|
7270
8682
|
callback?:
|
|
7271
|
-
|
|
7272
|
-
| BodyResponseCallback<Readable>
|
|
8683
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
7273
8684
|
):
|
|
7274
8685
|
| void
|
|
7275
8686
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -7353,6 +8764,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
7353
8764
|
* const res = await sql.instances.clone({
|
|
7354
8765
|
* // The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
|
|
7355
8766
|
* instance: 'placeholder-value',
|
|
8767
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
8768
|
+
* location: 'placeholder-value',
|
|
7356
8769
|
* // Project ID of the source Cloud SQL instance.
|
|
7357
8770
|
* project: 'placeholder-value',
|
|
7358
8771
|
*
|
|
@@ -7437,8 +8850,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
7437
8850
|
| BodyResponseCallback<Schema$Operation>
|
|
7438
8851
|
| BodyResponseCallback<Readable>,
|
|
7439
8852
|
callback?:
|
|
7440
|
-
|
|
7441
|
-
| BodyResponseCallback<Readable>
|
|
8853
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
7442
8854
|
):
|
|
7443
8855
|
| void
|
|
7444
8856
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -7529,6 +8941,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
7529
8941
|
* finalBackupTtlDays: 'placeholder-value',
|
|
7530
8942
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
7531
8943
|
* instance: 'placeholder-value',
|
|
8944
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
8945
|
+
* location: 'placeholder-value',
|
|
7532
8946
|
* // Project ID of the project that contains the instance to be deleted.
|
|
7533
8947
|
* project: 'placeholder-value',
|
|
7534
8948
|
* });
|
|
@@ -7605,8 +9019,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
7605
9019
|
| BodyResponseCallback<Schema$Operation>
|
|
7606
9020
|
| BodyResponseCallback<Readable>,
|
|
7607
9021
|
callback?:
|
|
7608
|
-
|
|
7609
|
-
| BodyResponseCallback<Readable>
|
|
9022
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
7610
9023
|
):
|
|
7611
9024
|
| void
|
|
7612
9025
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -7688,6 +9101,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
7688
9101
|
* const res = await sql.instances.demote({
|
|
7689
9102
|
* // Required. The name of the Cloud SQL instance.
|
|
7690
9103
|
* instance: 'placeholder-value',
|
|
9104
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
9105
|
+
* location: 'placeholder-value',
|
|
7691
9106
|
* // Required. The project ID of the project that contains the instance.
|
|
7692
9107
|
* project: 'placeholder-value',
|
|
7693
9108
|
*
|
|
@@ -7772,8 +9187,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
7772
9187
|
| BodyResponseCallback<Schema$Operation>
|
|
7773
9188
|
| BodyResponseCallback<Readable>,
|
|
7774
9189
|
callback?:
|
|
7775
|
-
|
|
7776
|
-
| BodyResponseCallback<Readable>
|
|
9190
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
7777
9191
|
):
|
|
7778
9192
|
| void
|
|
7779
9193
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -7856,6 +9270,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
7856
9270
|
* const res = await sql.instances.demoteMaster({
|
|
7857
9271
|
* // Cloud SQL instance name.
|
|
7858
9272
|
* instance: 'placeholder-value',
|
|
9273
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
9274
|
+
* location: 'placeholder-value',
|
|
7859
9275
|
* // ID of the project that contains the instance.
|
|
7860
9276
|
* project: 'placeholder-value',
|
|
7861
9277
|
*
|
|
@@ -7940,8 +9356,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
7940
9356
|
| BodyResponseCallback<Schema$Operation>
|
|
7941
9357
|
| BodyResponseCallback<Readable>,
|
|
7942
9358
|
callback?:
|
|
7943
|
-
|
|
7944
|
-
| BodyResponseCallback<Readable>
|
|
9359
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
7945
9360
|
):
|
|
7946
9361
|
| void
|
|
7947
9362
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -8025,6 +9440,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
8025
9440
|
* const res = await sql.instances.executeSql({
|
|
8026
9441
|
* // Required. Database instance ID. This does not include the project ID.
|
|
8027
9442
|
* instance: 'placeholder-value',
|
|
9443
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
9444
|
+
* location: 'placeholder-value',
|
|
8028
9445
|
* // Required. Project ID of the project that contains the instance.
|
|
8029
9446
|
* project: 'placeholder-value',
|
|
8030
9447
|
*
|
|
@@ -8036,6 +9453,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
8036
9453
|
* // "autoIamAuthn": false,
|
|
8037
9454
|
* // "database": "my_database",
|
|
8038
9455
|
* // "partialResultMode": "my_partialResultMode",
|
|
9456
|
+
* // "passwordSecretVersion": "my_passwordSecretVersion",
|
|
8039
9457
|
* // "rowLimit": "my_rowLimit",
|
|
8040
9458
|
* // "sqlStatement": "my_sqlStatement",
|
|
8041
9459
|
* // "user": "my_user"
|
|
@@ -8187,6 +9605,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
8187
9605
|
* const res = await sql.instances.export({
|
|
8188
9606
|
* // The Cloud SQL instance ID. This doesn't include the project ID.
|
|
8189
9607
|
* instance: 'placeholder-value',
|
|
9608
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
9609
|
+
* location: 'placeholder-value',
|
|
8190
9610
|
* // Project ID of the project that contains the instance to be exported.
|
|
8191
9611
|
* project: 'placeholder-value',
|
|
8192
9612
|
*
|
|
@@ -8271,8 +9691,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
8271
9691
|
| BodyResponseCallback<Schema$Operation>
|
|
8272
9692
|
| BodyResponseCallback<Readable>,
|
|
8273
9693
|
callback?:
|
|
8274
|
-
|
|
8275
|
-
| BodyResponseCallback<Readable>
|
|
9694
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
8276
9695
|
):
|
|
8277
9696
|
| void
|
|
8278
9697
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -8355,6 +9774,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
8355
9774
|
* const res = await sql.instances.failover({
|
|
8356
9775
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
8357
9776
|
* instance: 'placeholder-value',
|
|
9777
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
9778
|
+
* location: 'placeholder-value',
|
|
8358
9779
|
* // ID of the project that contains the read replica.
|
|
8359
9780
|
* project: 'placeholder-value',
|
|
8360
9781
|
*
|
|
@@ -8439,8 +9860,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
8439
9860
|
| BodyResponseCallback<Schema$Operation>
|
|
8440
9861
|
| BodyResponseCallback<Readable>,
|
|
8441
9862
|
callback?:
|
|
8442
|
-
|
|
8443
|
-
| BodyResponseCallback<Readable>
|
|
9863
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
8444
9864
|
):
|
|
8445
9865
|
| void
|
|
8446
9866
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -8524,6 +9944,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
8524
9944
|
* const res = await sql.instances.get({
|
|
8525
9945
|
* // Database instance ID. This does not include the project ID.
|
|
8526
9946
|
* instance: 'placeholder-value',
|
|
9947
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
9948
|
+
* location: 'placeholder-value',
|
|
8527
9949
|
* // Project ID of the project that contains the instance.
|
|
8528
9950
|
* project: 'placeholder-value',
|
|
8529
9951
|
* });
|
|
@@ -8536,8 +9958,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
8536
9958
|
* // "connectionName": "my_connectionName",
|
|
8537
9959
|
* // "createTime": "my_createTime",
|
|
8538
9960
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
9961
|
+
* // "databaseCenterIntegrationEnabled": false,
|
|
8539
9962
|
* // "databaseInstalledVersion": "my_databaseInstalledVersion",
|
|
8540
9963
|
* // "databaseVersion": "my_databaseVersion",
|
|
9964
|
+
* // "deploymentInfo": {},
|
|
8541
9965
|
* // "diskEncryptionConfiguration": {},
|
|
8542
9966
|
* // "diskEncryptionStatus": {},
|
|
8543
9967
|
* // "dnsName": "my_dnsName",
|
|
@@ -8711,6 +10135,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
8711
10135
|
* const res = await sql.instances.import({
|
|
8712
10136
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
8713
10137
|
* instance: 'placeholder-value',
|
|
10138
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
10139
|
+
* location: 'placeholder-value',
|
|
8714
10140
|
* // Project ID of the project that contains the instance.
|
|
8715
10141
|
* project: 'placeholder-value',
|
|
8716
10142
|
*
|
|
@@ -8795,8 +10221,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
8795
10221
|
| BodyResponseCallback<Schema$Operation>
|
|
8796
10222
|
| BodyResponseCallback<Readable>,
|
|
8797
10223
|
callback?:
|
|
8798
|
-
|
|
8799
|
-
| BodyResponseCallback<Readable>
|
|
10224
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
8800
10225
|
):
|
|
8801
10226
|
| void
|
|
8802
10227
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -8877,6 +10302,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
8877
10302
|
*
|
|
8878
10303
|
* // Do the magic
|
|
8879
10304
|
* const res = await sql.instances.insert({
|
|
10305
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
10306
|
+
* location: 'placeholder-value',
|
|
8880
10307
|
* // Project ID of the project to which the newly created Cloud SQL instances should belong.
|
|
8881
10308
|
* project: 'placeholder-value',
|
|
8882
10309
|
*
|
|
@@ -8889,8 +10316,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
8889
10316
|
* // "connectionName": "my_connectionName",
|
|
8890
10317
|
* // "createTime": "my_createTime",
|
|
8891
10318
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
10319
|
+
* // "databaseCenterIntegrationEnabled": false,
|
|
8892
10320
|
* // "databaseInstalledVersion": "my_databaseInstalledVersion",
|
|
8893
10321
|
* // "databaseVersion": "my_databaseVersion",
|
|
10322
|
+
* // "deploymentInfo": {},
|
|
8894
10323
|
* // "diskEncryptionConfiguration": {},
|
|
8895
10324
|
* // "diskEncryptionStatus": {},
|
|
8896
10325
|
* // "dnsName": "my_dnsName",
|
|
@@ -9011,8 +10440,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
9011
10440
|
| BodyResponseCallback<Schema$Operation>
|
|
9012
10441
|
| BodyResponseCallback<Readable>,
|
|
9013
10442
|
callback?:
|
|
9014
|
-
|
|
9015
|
-
| BodyResponseCallback<Readable>
|
|
10443
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
9016
10444
|
):
|
|
9017
10445
|
| void
|
|
9018
10446
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -9094,6 +10522,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
9094
10522
|
* const res = await sql.instances.list({
|
|
9095
10523
|
* // A filter expression that filters resources listed in the response. The expression is in the form of field:value. For example, 'instanceType:CLOUD_SQL_INSTANCE'. Fields can be nested as needed as per their JSON representation, such as 'settings.userLabels.auto_start:true'. Multiple filter queries are space-separated. For example. 'state:RUNNABLE instanceType:CLOUD_SQL_INSTANCE'. By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly.
|
|
9096
10524
|
* filter: 'placeholder-value',
|
|
10525
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
10526
|
+
* location: 'placeholder-value',
|
|
9097
10527
|
* // The maximum number of instances to return. The service may return fewer than this value. If unspecified, at most 500 instances are returned. The maximum value is 1000; values above 1000 are coerced to 1000.
|
|
9098
10528
|
* maxResults: 'placeholder-value',
|
|
9099
10529
|
* // A previously-returned page token representing part of the larger set of results to view.
|
|
@@ -9140,8 +10570,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
9140
10570
|
list(
|
|
9141
10571
|
params: Params$Resource$Instances$List,
|
|
9142
10572
|
options:
|
|
9143
|
-
|
|
|
9144
|
-
| BodyResponseCallback<Schema$InstancesListResponse>,
|
|
10573
|
+
MethodOptions | BodyResponseCallback<Schema$InstancesListResponse>,
|
|
9145
10574
|
callback: BodyResponseCallback<Schema$InstancesListResponse>
|
|
9146
10575
|
): void;
|
|
9147
10576
|
list(
|
|
@@ -9243,6 +10672,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
9243
10672
|
* const res = await sql.instances.ListEntraIdCertificates({
|
|
9244
10673
|
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
9245
10674
|
* instance: 'placeholder-value',
|
|
10675
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
10676
|
+
* location: 'placeholder-value',
|
|
9246
10677
|
* // Required. Project ID of the project that contains the instance.
|
|
9247
10678
|
* project: 'placeholder-value',
|
|
9248
10679
|
* });
|
|
@@ -9397,6 +10828,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
9397
10828
|
* const res = await sql.instances.listServerCas({
|
|
9398
10829
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
9399
10830
|
* instance: 'placeholder-value',
|
|
10831
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
10832
|
+
* location: 'placeholder-value',
|
|
9400
10833
|
* // Project ID of the project that contains the instance.
|
|
9401
10834
|
* project: 'placeholder-value',
|
|
9402
10835
|
* });
|
|
@@ -9547,6 +10980,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
9547
10980
|
* const res = await sql.instances.ListServerCertificates({
|
|
9548
10981
|
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
9549
10982
|
* instance: 'placeholder-value',
|
|
10983
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
10984
|
+
* location: 'placeholder-value',
|
|
9550
10985
|
* // Required. Project ID of the project that contains the instance.
|
|
9551
10986
|
* project: 'placeholder-value',
|
|
9552
10987
|
* });
|
|
@@ -9702,8 +11137,14 @@ export namespace sqladmin_v1beta4 {
|
|
|
9702
11137
|
* const res = await sql.instances.patch({
|
|
9703
11138
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
9704
11139
|
* instance: 'placeholder-value',
|
|
11140
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
11141
|
+
* location: 'placeholder-value',
|
|
9705
11142
|
* // Project ID of the project that contains the instance.
|
|
9706
11143
|
* project: 'placeholder-value',
|
|
11144
|
+
* // Optional. Set PSC config to the same value as the existing config to reconcile the PSC networking.
|
|
11145
|
+
* reconcilePscNetworking: 'placeholder-value',
|
|
11146
|
+
* // Optional. Set PSC config to the same value as the existing config and force reconcile the PSC networking.
|
|
11147
|
+
* reconcilePscNetworkingForce: 'placeholder-value',
|
|
9707
11148
|
*
|
|
9708
11149
|
* // Request body metadata
|
|
9709
11150
|
* requestBody: {
|
|
@@ -9714,8 +11155,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
9714
11155
|
* // "connectionName": "my_connectionName",
|
|
9715
11156
|
* // "createTime": "my_createTime",
|
|
9716
11157
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
11158
|
+
* // "databaseCenterIntegrationEnabled": false,
|
|
9717
11159
|
* // "databaseInstalledVersion": "my_databaseInstalledVersion",
|
|
9718
11160
|
* // "databaseVersion": "my_databaseVersion",
|
|
11161
|
+
* // "deploymentInfo": {},
|
|
9719
11162
|
* // "diskEncryptionConfiguration": {},
|
|
9720
11163
|
* // "diskEncryptionStatus": {},
|
|
9721
11164
|
* // "dnsName": "my_dnsName",
|
|
@@ -9836,8 +11279,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
9836
11279
|
| BodyResponseCallback<Schema$Operation>
|
|
9837
11280
|
| BodyResponseCallback<Readable>,
|
|
9838
11281
|
callback?:
|
|
9839
|
-
|
|
9840
|
-
| BodyResponseCallback<Readable>
|
|
11282
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
9841
11283
|
):
|
|
9842
11284
|
| void
|
|
9843
11285
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -10010,8 +11452,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
10010
11452
|
| BodyResponseCallback<Schema$Operation>
|
|
10011
11453
|
| BodyResponseCallback<Readable>,
|
|
10012
11454
|
callback?:
|
|
10013
|
-
|
|
10014
|
-
| BodyResponseCallback<Readable>
|
|
11455
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
10015
11456
|
):
|
|
10016
11457
|
| void
|
|
10017
11458
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -10094,6 +11535,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
10094
11535
|
* const res = await sql.instances.preCheckMajorVersionUpgrade({
|
|
10095
11536
|
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
10096
11537
|
* instance: 'placeholder-value',
|
|
11538
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
11539
|
+
* location: 'placeholder-value',
|
|
10097
11540
|
* // Required. Project ID of the project that contains the instance.
|
|
10098
11541
|
* project: 'placeholder-value',
|
|
10099
11542
|
*
|
|
@@ -10180,8 +11623,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
10180
11623
|
| BodyResponseCallback<Schema$Operation>
|
|
10181
11624
|
| BodyResponseCallback<Readable>,
|
|
10182
11625
|
callback?:
|
|
10183
|
-
|
|
10184
|
-
| BodyResponseCallback<Readable>
|
|
11626
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
10185
11627
|
):
|
|
10186
11628
|
| void
|
|
10187
11629
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -10267,6 +11709,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
10267
11709
|
* failover: 'placeholder-value',
|
|
10268
11710
|
* // Cloud SQL read replica instance name.
|
|
10269
11711
|
* instance: 'placeholder-value',
|
|
11712
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
11713
|
+
* location: 'placeholder-value',
|
|
10270
11714
|
* // ID of the project that contains the read replica.
|
|
10271
11715
|
* project: 'placeholder-value',
|
|
10272
11716
|
* });
|
|
@@ -10343,8 +11787,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
10343
11787
|
| BodyResponseCallback<Schema$Operation>
|
|
10344
11788
|
| BodyResponseCallback<Readable>,
|
|
10345
11789
|
callback?:
|
|
10346
|
-
|
|
10347
|
-
| BodyResponseCallback<Readable>
|
|
11790
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
10348
11791
|
):
|
|
10349
11792
|
| void
|
|
10350
11793
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -10428,6 +11871,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
10428
11871
|
* const res = await sql.instances.reencrypt({
|
|
10429
11872
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
10430
11873
|
* instance: 'placeholder-value',
|
|
11874
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
11875
|
+
* location: 'placeholder-value',
|
|
10431
11876
|
* // ID of the project that contains the instance.
|
|
10432
11877
|
* project: 'placeholder-value',
|
|
10433
11878
|
*
|
|
@@ -10512,8 +11957,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
10512
11957
|
| BodyResponseCallback<Schema$Operation>
|
|
10513
11958
|
| BodyResponseCallback<Readable>,
|
|
10514
11959
|
callback?:
|
|
10515
|
-
|
|
10516
|
-
| BodyResponseCallback<Readable>
|
|
11960
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
10517
11961
|
):
|
|
10518
11962
|
| void
|
|
10519
11963
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -10597,6 +12041,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
10597
12041
|
* const res = await sql.instances.releaseSsrsLease({
|
|
10598
12042
|
* // Required. The Cloud SQL instance ID. This doesn't include the project ID. It's composed of lowercase letters, numbers, and hyphens, and it must start with a letter. The total length must be 98 characters or less (Example: instance-id).
|
|
10599
12043
|
* instance: 'placeholder-value',
|
|
12044
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
12045
|
+
* location: 'placeholder-value',
|
|
10600
12046
|
* // Required. The ID of the project that contains the instance (Example: project-id).
|
|
10601
12047
|
* project: 'placeholder-value',
|
|
10602
12048
|
* });
|
|
@@ -10749,6 +12195,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
10749
12195
|
* const res = await sql.instances.resetSslConfig({
|
|
10750
12196
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
10751
12197
|
* instance: 'placeholder-value',
|
|
12198
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
12199
|
+
* location: 'placeholder-value',
|
|
10752
12200
|
* // Optional. Reset SSL mode to use.
|
|
10753
12201
|
* mode: 'placeholder-value',
|
|
10754
12202
|
* // Project ID of the project that contains the instance.
|
|
@@ -10827,8 +12275,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
10827
12275
|
| BodyResponseCallback<Schema$Operation>
|
|
10828
12276
|
| BodyResponseCallback<Readable>,
|
|
10829
12277
|
callback?:
|
|
10830
|
-
|
|
10831
|
-
| BodyResponseCallback<Readable>
|
|
12278
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
10832
12279
|
):
|
|
10833
12280
|
| void
|
|
10834
12281
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -10912,6 +12359,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
10912
12359
|
* const res = await sql.instances.restart({
|
|
10913
12360
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
10914
12361
|
* instance: 'placeholder-value',
|
|
12362
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
12363
|
+
* location: 'placeholder-value',
|
|
10915
12364
|
* // Project ID of the project that contains the instance to be restarted.
|
|
10916
12365
|
* project: 'placeholder-value',
|
|
10917
12366
|
* });
|
|
@@ -10988,8 +12437,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
10988
12437
|
| BodyResponseCallback<Schema$Operation>
|
|
10989
12438
|
| BodyResponseCallback<Readable>,
|
|
10990
12439
|
callback?:
|
|
10991
|
-
|
|
10992
|
-
| BodyResponseCallback<Readable>
|
|
12440
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
10993
12441
|
):
|
|
10994
12442
|
| void
|
|
10995
12443
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -11073,6 +12521,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
11073
12521
|
* const res = await sql.instances.restoreBackup({
|
|
11074
12522
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
11075
12523
|
* instance: 'placeholder-value',
|
|
12524
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
12525
|
+
* location: 'placeholder-value',
|
|
11076
12526
|
* // Project ID of the project that contains the instance.
|
|
11077
12527
|
* project: 'placeholder-value',
|
|
11078
12528
|
*
|
|
@@ -11082,6 +12532,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
11082
12532
|
* // {
|
|
11083
12533
|
* // "backup": "my_backup",
|
|
11084
12534
|
* // "backupdrBackup": "my_backupdrBackup",
|
|
12535
|
+
* // "ignoreMaintenanceVersion": false,
|
|
11085
12536
|
* // "restoreBackupContext": {},
|
|
11086
12537
|
* // "restoreInstanceClearOverridesFieldNames": [],
|
|
11087
12538
|
* // "restoreInstanceSettings": {}
|
|
@@ -11161,8 +12612,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
11161
12612
|
| BodyResponseCallback<Schema$Operation>
|
|
11162
12613
|
| BodyResponseCallback<Readable>,
|
|
11163
12614
|
callback?:
|
|
11164
|
-
|
|
11165
|
-
| BodyResponseCallback<Readable>
|
|
12615
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
11166
12616
|
):
|
|
11167
12617
|
| void
|
|
11168
12618
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -11246,6 +12696,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
11246
12696
|
* const res = await sql.instances.RotateEntraIdCertificate({
|
|
11247
12697
|
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
11248
12698
|
* instance: 'placeholder-value',
|
|
12699
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
12700
|
+
* location: 'placeholder-value',
|
|
11249
12701
|
* // Required. Project ID of the project that contains the instance.
|
|
11250
12702
|
* project: 'placeholder-value',
|
|
11251
12703
|
*
|
|
@@ -11332,8 +12784,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
11332
12784
|
| BodyResponseCallback<Schema$Operation>
|
|
11333
12785
|
| BodyResponseCallback<Readable>,
|
|
11334
12786
|
callback?:
|
|
11335
|
-
|
|
11336
|
-
| BodyResponseCallback<Readable>
|
|
12787
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
11337
12788
|
):
|
|
11338
12789
|
| void
|
|
11339
12790
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -11417,6 +12868,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
11417
12868
|
* const res = await sql.instances.rotateServerCa({
|
|
11418
12869
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
11419
12870
|
* instance: 'placeholder-value',
|
|
12871
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
12872
|
+
* location: 'placeholder-value',
|
|
11420
12873
|
* // Project ID of the project that contains the instance.
|
|
11421
12874
|
* project: 'placeholder-value',
|
|
11422
12875
|
*
|
|
@@ -11501,8 +12954,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
11501
12954
|
| BodyResponseCallback<Schema$Operation>
|
|
11502
12955
|
| BodyResponseCallback<Readable>,
|
|
11503
12956
|
callback?:
|
|
11504
|
-
|
|
11505
|
-
| BodyResponseCallback<Readable>
|
|
12957
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
11506
12958
|
):
|
|
11507
12959
|
| void
|
|
11508
12960
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -11586,6 +13038,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
11586
13038
|
* const res = await sql.instances.RotateServerCertificate({
|
|
11587
13039
|
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
11588
13040
|
* instance: 'placeholder-value',
|
|
13041
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
13042
|
+
* location: 'placeholder-value',
|
|
11589
13043
|
* // Required. Project ID of the project that contains the instance.
|
|
11590
13044
|
* project: 'placeholder-value',
|
|
11591
13045
|
*
|
|
@@ -11672,8 +13126,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
11672
13126
|
| BodyResponseCallback<Schema$Operation>
|
|
11673
13127
|
| BodyResponseCallback<Readable>,
|
|
11674
13128
|
callback?:
|
|
11675
|
-
|
|
11676
|
-
| BodyResponseCallback<Readable>
|
|
13129
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
11677
13130
|
):
|
|
11678
13131
|
| void
|
|
11679
13132
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -11757,6 +13210,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
11757
13210
|
* const res = await sql.instances.startReplica({
|
|
11758
13211
|
* // Cloud SQL read replica instance name.
|
|
11759
13212
|
* instance: 'placeholder-value',
|
|
13213
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
13214
|
+
* location: 'placeholder-value',
|
|
11760
13215
|
* // ID of the project that contains the read replica.
|
|
11761
13216
|
* project: 'placeholder-value',
|
|
11762
13217
|
* });
|
|
@@ -11833,8 +13288,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
11833
13288
|
| BodyResponseCallback<Schema$Operation>
|
|
11834
13289
|
| BodyResponseCallback<Readable>,
|
|
11835
13290
|
callback?:
|
|
11836
|
-
|
|
11837
|
-
| BodyResponseCallback<Readable>
|
|
13291
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
11838
13292
|
):
|
|
11839
13293
|
| void
|
|
11840
13294
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -11918,6 +13372,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
11918
13372
|
* const res = await sql.instances.stopReplica({
|
|
11919
13373
|
* // Cloud SQL read replica instance name.
|
|
11920
13374
|
* instance: 'placeholder-value',
|
|
13375
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
13376
|
+
* location: 'placeholder-value',
|
|
11921
13377
|
* // ID of the project that contains the read replica.
|
|
11922
13378
|
* project: 'placeholder-value',
|
|
11923
13379
|
* });
|
|
@@ -11994,8 +13450,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
11994
13450
|
| BodyResponseCallback<Schema$Operation>
|
|
11995
13451
|
| BodyResponseCallback<Readable>,
|
|
11996
13452
|
callback?:
|
|
11997
|
-
|
|
11998
|
-
| BodyResponseCallback<Readable>
|
|
13453
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
11999
13454
|
):
|
|
12000
13455
|
| void
|
|
12001
13456
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -12081,6 +13536,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
12081
13536
|
* dbTimeout: 'placeholder-value',
|
|
12082
13537
|
* // Cloud SQL read replica instance name.
|
|
12083
13538
|
* instance: 'placeholder-value',
|
|
13539
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
13540
|
+
* location: 'placeholder-value',
|
|
12084
13541
|
* // ID of the project that contains the replica.
|
|
12085
13542
|
* project: 'placeholder-value',
|
|
12086
13543
|
* });
|
|
@@ -12157,8 +13614,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12157
13614
|
| BodyResponseCallback<Schema$Operation>
|
|
12158
13615
|
| BodyResponseCallback<Readable>,
|
|
12159
13616
|
callback?:
|
|
12160
|
-
|
|
12161
|
-
| BodyResponseCallback<Readable>
|
|
13617
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
12162
13618
|
):
|
|
12163
13619
|
| void
|
|
12164
13620
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -12242,6 +13698,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
12242
13698
|
* const res = await sql.instances.truncateLog({
|
|
12243
13699
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
12244
13700
|
* instance: 'placeholder-value',
|
|
13701
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
13702
|
+
* location: 'placeholder-value',
|
|
12245
13703
|
* // Project ID of the Cloud SQL project.
|
|
12246
13704
|
* project: 'placeholder-value',
|
|
12247
13705
|
*
|
|
@@ -12326,8 +13784,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12326
13784
|
| BodyResponseCallback<Schema$Operation>
|
|
12327
13785
|
| BodyResponseCallback<Readable>,
|
|
12328
13786
|
callback?:
|
|
12329
|
-
|
|
12330
|
-
| BodyResponseCallback<Readable>
|
|
13787
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
12331
13788
|
):
|
|
12332
13789
|
| void
|
|
12333
13790
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -12411,6 +13868,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
12411
13868
|
* const res = await sql.instances.update({
|
|
12412
13869
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
12413
13870
|
* instance: 'placeholder-value',
|
|
13871
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
13872
|
+
* location: 'placeholder-value',
|
|
12414
13873
|
* // Project ID of the project that contains the instance.
|
|
12415
13874
|
* project: 'placeholder-value',
|
|
12416
13875
|
*
|
|
@@ -12423,8 +13882,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12423
13882
|
* // "connectionName": "my_connectionName",
|
|
12424
13883
|
* // "createTime": "my_createTime",
|
|
12425
13884
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
13885
|
+
* // "databaseCenterIntegrationEnabled": false,
|
|
12426
13886
|
* // "databaseInstalledVersion": "my_databaseInstalledVersion",
|
|
12427
13887
|
* // "databaseVersion": "my_databaseVersion",
|
|
13888
|
+
* // "deploymentInfo": {},
|
|
12428
13889
|
* // "diskEncryptionConfiguration": {},
|
|
12429
13890
|
* // "diskEncryptionStatus": {},
|
|
12430
13891
|
* // "dnsName": "my_dnsName",
|
|
@@ -12545,8 +14006,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12545
14006
|
| BodyResponseCallback<Schema$Operation>
|
|
12546
14007
|
| BodyResponseCallback<Readable>,
|
|
12547
14008
|
callback?:
|
|
12548
|
-
|
|
12549
|
-
| BodyResponseCallback<Readable>
|
|
14009
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
12550
14010
|
):
|
|
12551
14011
|
| void
|
|
12552
14012
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -12598,6 +14058,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12598
14058
|
* Required. Cloud SQL instance ID. This doesn't include the project ID. It's composed of lowercase letters, numbers, and hyphens, and it must start with a letter. The total length must be 98 characters or less (Example: instance-id).
|
|
12599
14059
|
*/
|
|
12600
14060
|
instance?: string;
|
|
14061
|
+
/**
|
|
14062
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14063
|
+
*/
|
|
14064
|
+
location?: string;
|
|
12601
14065
|
/**
|
|
12602
14066
|
* Required. ID of the project that contains the instance (Example: project-id).
|
|
12603
14067
|
*/
|
|
@@ -12613,6 +14077,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12613
14077
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
12614
14078
|
*/
|
|
12615
14079
|
instance?: string;
|
|
14080
|
+
/**
|
|
14081
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14082
|
+
*/
|
|
14083
|
+
location?: string;
|
|
12616
14084
|
/**
|
|
12617
14085
|
* Required. Project ID of the project that contains the instance.
|
|
12618
14086
|
*/
|
|
@@ -12623,6 +14091,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12623
14091
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12624
14092
|
*/
|
|
12625
14093
|
instance?: string;
|
|
14094
|
+
/**
|
|
14095
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14096
|
+
*/
|
|
14097
|
+
location?: string;
|
|
12626
14098
|
/**
|
|
12627
14099
|
* Project ID of the project that contains the instance.
|
|
12628
14100
|
*/
|
|
@@ -12633,6 +14105,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12633
14105
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
12634
14106
|
*/
|
|
12635
14107
|
instance?: string;
|
|
14108
|
+
/**
|
|
14109
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14110
|
+
*/
|
|
14111
|
+
location?: string;
|
|
12636
14112
|
/**
|
|
12637
14113
|
* Required. Project ID of the project that contains the instance.
|
|
12638
14114
|
*/
|
|
@@ -12643,6 +14119,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12643
14119
|
* The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
|
|
12644
14120
|
*/
|
|
12645
14121
|
instance?: string;
|
|
14122
|
+
/**
|
|
14123
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14124
|
+
*/
|
|
14125
|
+
location?: string;
|
|
12646
14126
|
/**
|
|
12647
14127
|
* Project ID of the source Cloud SQL instance.
|
|
12648
14128
|
*/
|
|
@@ -12674,6 +14154,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12674
14154
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12675
14155
|
*/
|
|
12676
14156
|
instance?: string;
|
|
14157
|
+
/**
|
|
14158
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14159
|
+
*/
|
|
14160
|
+
location?: string;
|
|
12677
14161
|
/**
|
|
12678
14162
|
* Project ID of the project that contains the instance to be deleted.
|
|
12679
14163
|
*/
|
|
@@ -12684,6 +14168,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12684
14168
|
* Required. The name of the Cloud SQL instance.
|
|
12685
14169
|
*/
|
|
12686
14170
|
instance?: string;
|
|
14171
|
+
/**
|
|
14172
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14173
|
+
*/
|
|
14174
|
+
location?: string;
|
|
12687
14175
|
/**
|
|
12688
14176
|
* Required. The project ID of the project that contains the instance.
|
|
12689
14177
|
*/
|
|
@@ -12699,6 +14187,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12699
14187
|
* Cloud SQL instance name.
|
|
12700
14188
|
*/
|
|
12701
14189
|
instance?: string;
|
|
14190
|
+
/**
|
|
14191
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14192
|
+
*/
|
|
14193
|
+
location?: string;
|
|
12702
14194
|
/**
|
|
12703
14195
|
* ID of the project that contains the instance.
|
|
12704
14196
|
*/
|
|
@@ -12714,6 +14206,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12714
14206
|
* Required. Database instance ID. This does not include the project ID.
|
|
12715
14207
|
*/
|
|
12716
14208
|
instance?: string;
|
|
14209
|
+
/**
|
|
14210
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14211
|
+
*/
|
|
14212
|
+
location?: string;
|
|
12717
14213
|
/**
|
|
12718
14214
|
* Required. Project ID of the project that contains the instance.
|
|
12719
14215
|
*/
|
|
@@ -12729,6 +14225,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12729
14225
|
* The Cloud SQL instance ID. This doesn't include the project ID.
|
|
12730
14226
|
*/
|
|
12731
14227
|
instance?: string;
|
|
14228
|
+
/**
|
|
14229
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14230
|
+
*/
|
|
14231
|
+
location?: string;
|
|
12732
14232
|
/**
|
|
12733
14233
|
* Project ID of the project that contains the instance to be exported.
|
|
12734
14234
|
*/
|
|
@@ -12744,6 +14244,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12744
14244
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12745
14245
|
*/
|
|
12746
14246
|
instance?: string;
|
|
14247
|
+
/**
|
|
14248
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14249
|
+
*/
|
|
14250
|
+
location?: string;
|
|
12747
14251
|
/**
|
|
12748
14252
|
* ID of the project that contains the read replica.
|
|
12749
14253
|
*/
|
|
@@ -12759,6 +14263,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12759
14263
|
* Database instance ID. This does not include the project ID.
|
|
12760
14264
|
*/
|
|
12761
14265
|
instance?: string;
|
|
14266
|
+
/**
|
|
14267
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14268
|
+
*/
|
|
14269
|
+
location?: string;
|
|
12762
14270
|
/**
|
|
12763
14271
|
* Project ID of the project that contains the instance.
|
|
12764
14272
|
*/
|
|
@@ -12769,6 +14277,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12769
14277
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12770
14278
|
*/
|
|
12771
14279
|
instance?: string;
|
|
14280
|
+
/**
|
|
14281
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14282
|
+
*/
|
|
14283
|
+
location?: string;
|
|
12772
14284
|
/**
|
|
12773
14285
|
* Project ID of the project that contains the instance.
|
|
12774
14286
|
*/
|
|
@@ -12780,6 +14292,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12780
14292
|
requestBody?: Schema$InstancesImportRequest;
|
|
12781
14293
|
}
|
|
12782
14294
|
export interface Params$Resource$Instances$Insert extends StandardParameters {
|
|
14295
|
+
/**
|
|
14296
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14297
|
+
*/
|
|
14298
|
+
location?: string;
|
|
12783
14299
|
/**
|
|
12784
14300
|
* Project ID of the project to which the newly created Cloud SQL instances should belong.
|
|
12785
14301
|
*/
|
|
@@ -12795,6 +14311,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12795
14311
|
* A filter expression that filters resources listed in the response. The expression is in the form of field:value. For example, 'instanceType:CLOUD_SQL_INSTANCE'. Fields can be nested as needed as per their JSON representation, such as 'settings.userLabels.auto_start:true'. Multiple filter queries are space-separated. For example. 'state:RUNNABLE instanceType:CLOUD_SQL_INSTANCE'. By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly.
|
|
12796
14312
|
*/
|
|
12797
14313
|
filter?: string;
|
|
14314
|
+
/**
|
|
14315
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14316
|
+
*/
|
|
14317
|
+
location?: string;
|
|
12798
14318
|
/**
|
|
12799
14319
|
* The maximum number of instances to return. The service may return fewer than this value. If unspecified, at most 500 instances are returned. The maximum value is 1000; values above 1000 are coerced to 1000.
|
|
12800
14320
|
*/
|
|
@@ -12813,6 +14333,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12813
14333
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
12814
14334
|
*/
|
|
12815
14335
|
instance?: string;
|
|
14336
|
+
/**
|
|
14337
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14338
|
+
*/
|
|
14339
|
+
location?: string;
|
|
12816
14340
|
/**
|
|
12817
14341
|
* Required. Project ID of the project that contains the instance.
|
|
12818
14342
|
*/
|
|
@@ -12823,6 +14347,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12823
14347
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12824
14348
|
*/
|
|
12825
14349
|
instance?: string;
|
|
14350
|
+
/**
|
|
14351
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14352
|
+
*/
|
|
14353
|
+
location?: string;
|
|
12826
14354
|
/**
|
|
12827
14355
|
* Project ID of the project that contains the instance.
|
|
12828
14356
|
*/
|
|
@@ -12833,6 +14361,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12833
14361
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
12834
14362
|
*/
|
|
12835
14363
|
instance?: string;
|
|
14364
|
+
/**
|
|
14365
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14366
|
+
*/
|
|
14367
|
+
location?: string;
|
|
12836
14368
|
/**
|
|
12837
14369
|
* Required. Project ID of the project that contains the instance.
|
|
12838
14370
|
*/
|
|
@@ -12843,10 +14375,22 @@ export namespace sqladmin_v1beta4 {
|
|
|
12843
14375
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12844
14376
|
*/
|
|
12845
14377
|
instance?: string;
|
|
14378
|
+
/**
|
|
14379
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14380
|
+
*/
|
|
14381
|
+
location?: string;
|
|
12846
14382
|
/**
|
|
12847
14383
|
* Project ID of the project that contains the instance.
|
|
12848
14384
|
*/
|
|
12849
14385
|
project?: string;
|
|
14386
|
+
/**
|
|
14387
|
+
* Optional. Set PSC config to the same value as the existing config to reconcile the PSC networking.
|
|
14388
|
+
*/
|
|
14389
|
+
reconcilePscNetworking?: boolean;
|
|
14390
|
+
/**
|
|
14391
|
+
* Optional. Set PSC config to the same value as the existing config and force reconcile the PSC networking.
|
|
14392
|
+
*/
|
|
14393
|
+
reconcilePscNetworkingForce?: boolean;
|
|
12850
14394
|
|
|
12851
14395
|
/**
|
|
12852
14396
|
* Request body metadata
|
|
@@ -12869,6 +14413,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12869
14413
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
12870
14414
|
*/
|
|
12871
14415
|
instance?: string;
|
|
14416
|
+
/**
|
|
14417
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14418
|
+
*/
|
|
14419
|
+
location?: string;
|
|
12872
14420
|
/**
|
|
12873
14421
|
* Required. Project ID of the project that contains the instance.
|
|
12874
14422
|
*/
|
|
@@ -12888,6 +14436,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12888
14436
|
* Cloud SQL read replica instance name.
|
|
12889
14437
|
*/
|
|
12890
14438
|
instance?: string;
|
|
14439
|
+
/**
|
|
14440
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14441
|
+
*/
|
|
14442
|
+
location?: string;
|
|
12891
14443
|
/**
|
|
12892
14444
|
* ID of the project that contains the read replica.
|
|
12893
14445
|
*/
|
|
@@ -12898,6 +14450,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12898
14450
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12899
14451
|
*/
|
|
12900
14452
|
instance?: string;
|
|
14453
|
+
/**
|
|
14454
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14455
|
+
*/
|
|
14456
|
+
location?: string;
|
|
12901
14457
|
/**
|
|
12902
14458
|
* ID of the project that contains the instance.
|
|
12903
14459
|
*/
|
|
@@ -12913,6 +14469,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12913
14469
|
* Required. The Cloud SQL instance ID. This doesn't include the project ID. It's composed of lowercase letters, numbers, and hyphens, and it must start with a letter. The total length must be 98 characters or less (Example: instance-id).
|
|
12914
14470
|
*/
|
|
12915
14471
|
instance?: string;
|
|
14472
|
+
/**
|
|
14473
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14474
|
+
*/
|
|
14475
|
+
location?: string;
|
|
12916
14476
|
/**
|
|
12917
14477
|
* Required. The ID of the project that contains the instance (Example: project-id).
|
|
12918
14478
|
*/
|
|
@@ -12923,6 +14483,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12923
14483
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12924
14484
|
*/
|
|
12925
14485
|
instance?: string;
|
|
14486
|
+
/**
|
|
14487
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14488
|
+
*/
|
|
14489
|
+
location?: string;
|
|
12926
14490
|
/**
|
|
12927
14491
|
* Optional. Reset SSL mode to use.
|
|
12928
14492
|
*/
|
|
@@ -12937,6 +14501,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12937
14501
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12938
14502
|
*/
|
|
12939
14503
|
instance?: string;
|
|
14504
|
+
/**
|
|
14505
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14506
|
+
*/
|
|
14507
|
+
location?: string;
|
|
12940
14508
|
/**
|
|
12941
14509
|
* Project ID of the project that contains the instance to be restarted.
|
|
12942
14510
|
*/
|
|
@@ -12947,6 +14515,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12947
14515
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12948
14516
|
*/
|
|
12949
14517
|
instance?: string;
|
|
14518
|
+
/**
|
|
14519
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14520
|
+
*/
|
|
14521
|
+
location?: string;
|
|
12950
14522
|
/**
|
|
12951
14523
|
* Project ID of the project that contains the instance.
|
|
12952
14524
|
*/
|
|
@@ -12962,6 +14534,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12962
14534
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
12963
14535
|
*/
|
|
12964
14536
|
instance?: string;
|
|
14537
|
+
/**
|
|
14538
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14539
|
+
*/
|
|
14540
|
+
location?: string;
|
|
12965
14541
|
/**
|
|
12966
14542
|
* Required. Project ID of the project that contains the instance.
|
|
12967
14543
|
*/
|
|
@@ -12977,6 +14553,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12977
14553
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12978
14554
|
*/
|
|
12979
14555
|
instance?: string;
|
|
14556
|
+
/**
|
|
14557
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14558
|
+
*/
|
|
14559
|
+
location?: string;
|
|
12980
14560
|
/**
|
|
12981
14561
|
* Project ID of the project that contains the instance.
|
|
12982
14562
|
*/
|
|
@@ -12992,6 +14572,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
12992
14572
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
12993
14573
|
*/
|
|
12994
14574
|
instance?: string;
|
|
14575
|
+
/**
|
|
14576
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14577
|
+
*/
|
|
14578
|
+
location?: string;
|
|
12995
14579
|
/**
|
|
12996
14580
|
* Required. Project ID of the project that contains the instance.
|
|
12997
14581
|
*/
|
|
@@ -13007,6 +14591,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
13007
14591
|
* Cloud SQL read replica instance name.
|
|
13008
14592
|
*/
|
|
13009
14593
|
instance?: string;
|
|
14594
|
+
/**
|
|
14595
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14596
|
+
*/
|
|
14597
|
+
location?: string;
|
|
13010
14598
|
/**
|
|
13011
14599
|
* ID of the project that contains the read replica.
|
|
13012
14600
|
*/
|
|
@@ -13017,6 +14605,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
13017
14605
|
* Cloud SQL read replica instance name.
|
|
13018
14606
|
*/
|
|
13019
14607
|
instance?: string;
|
|
14608
|
+
/**
|
|
14609
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14610
|
+
*/
|
|
14611
|
+
location?: string;
|
|
13020
14612
|
/**
|
|
13021
14613
|
* ID of the project that contains the read replica.
|
|
13022
14614
|
*/
|
|
@@ -13031,6 +14623,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
13031
14623
|
* Cloud SQL read replica instance name.
|
|
13032
14624
|
*/
|
|
13033
14625
|
instance?: string;
|
|
14626
|
+
/**
|
|
14627
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14628
|
+
*/
|
|
14629
|
+
location?: string;
|
|
13034
14630
|
/**
|
|
13035
14631
|
* ID of the project that contains the replica.
|
|
13036
14632
|
*/
|
|
@@ -13041,6 +14637,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
13041
14637
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
13042
14638
|
*/
|
|
13043
14639
|
instance?: string;
|
|
14640
|
+
/**
|
|
14641
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14642
|
+
*/
|
|
14643
|
+
location?: string;
|
|
13044
14644
|
/**
|
|
13045
14645
|
* Project ID of the Cloud SQL project.
|
|
13046
14646
|
*/
|
|
@@ -13056,6 +14656,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
13056
14656
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
13057
14657
|
*/
|
|
13058
14658
|
instance?: string;
|
|
14659
|
+
/**
|
|
14660
|
+
* Optional. Region of the Cloud SQL instance.
|
|
14661
|
+
*/
|
|
14662
|
+
location?: string;
|
|
13059
14663
|
/**
|
|
13060
14664
|
* Project ID of the project that contains the instance.
|
|
13061
14665
|
*/
|
|
@@ -13107,6 +14711,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
13107
14711
|
*
|
|
13108
14712
|
* // Do the magic
|
|
13109
14713
|
* const res = await sql.operations.cancel({
|
|
14714
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
14715
|
+
* location: 'placeholder-value',
|
|
13110
14716
|
* // Instance operation ID.
|
|
13111
14717
|
* operation: 'placeholder-value',
|
|
13112
14718
|
* // Project ID of the project that contains the instance.
|
|
@@ -13164,8 +14770,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
13164
14770
|
| BodyResponseCallback<Schema$Empty>
|
|
13165
14771
|
| BodyResponseCallback<Readable>,
|
|
13166
14772
|
callback?:
|
|
13167
|
-
|
|
13168
|
-
| BodyResponseCallback<Readable>
|
|
14773
|
+
BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
|
|
13169
14774
|
):
|
|
13170
14775
|
| void
|
|
13171
14776
|
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
@@ -13247,6 +14852,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
13247
14852
|
*
|
|
13248
14853
|
* // Do the magic
|
|
13249
14854
|
* const res = await sql.operations.get({
|
|
14855
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
14856
|
+
* location: 'placeholder-value',
|
|
13250
14857
|
* // Instance operation ID.
|
|
13251
14858
|
* operation: 'placeholder-value',
|
|
13252
14859
|
* // Project ID of the project that contains the instance.
|
|
@@ -13325,8 +14932,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
13325
14932
|
| BodyResponseCallback<Schema$Operation>
|
|
13326
14933
|
| BodyResponseCallback<Readable>,
|
|
13327
14934
|
callback?:
|
|
13328
|
-
|
|
13329
|
-
| BodyResponseCallback<Readable>
|
|
14935
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
13330
14936
|
):
|
|
13331
14937
|
| void
|
|
13332
14938
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -13408,6 +15014,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
13408
15014
|
* const res = await sql.operations.list({
|
|
13409
15015
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
13410
15016
|
* instance: 'placeholder-value',
|
|
15017
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
15018
|
+
* location: 'placeholder-value',
|
|
13411
15019
|
* // Maximum number of operations per response.
|
|
13412
15020
|
* maxResults: 'placeholder-value',
|
|
13413
15021
|
* // A previously-returned page token representing part of the larger set of results to view.
|
|
@@ -13453,8 +15061,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
13453
15061
|
list(
|
|
13454
15062
|
params: Params$Resource$Operations$List,
|
|
13455
15063
|
options:
|
|
13456
|
-
|
|
|
13457
|
-
| BodyResponseCallback<Schema$OperationsListResponse>,
|
|
15064
|
+
MethodOptions | BodyResponseCallback<Schema$OperationsListResponse>,
|
|
13458
15065
|
callback: BodyResponseCallback<Schema$OperationsListResponse>
|
|
13459
15066
|
): void;
|
|
13460
15067
|
list(
|
|
@@ -13522,6 +15129,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
13522
15129
|
}
|
|
13523
15130
|
|
|
13524
15131
|
export interface Params$Resource$Operations$Cancel extends StandardParameters {
|
|
15132
|
+
/**
|
|
15133
|
+
* Optional. Region of the Cloud SQL instance.
|
|
15134
|
+
*/
|
|
15135
|
+
location?: string;
|
|
13525
15136
|
/**
|
|
13526
15137
|
* Instance operation ID.
|
|
13527
15138
|
*/
|
|
@@ -13532,6 +15143,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
13532
15143
|
project?: string;
|
|
13533
15144
|
}
|
|
13534
15145
|
export interface Params$Resource$Operations$Get extends StandardParameters {
|
|
15146
|
+
/**
|
|
15147
|
+
* Optional. Region of the Cloud SQL instance.
|
|
15148
|
+
*/
|
|
15149
|
+
location?: string;
|
|
13535
15150
|
/**
|
|
13536
15151
|
* Instance operation ID.
|
|
13537
15152
|
*/
|
|
@@ -13546,6 +15161,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
13546
15161
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
13547
15162
|
*/
|
|
13548
15163
|
instance?: string;
|
|
15164
|
+
/**
|
|
15165
|
+
* Optional. Region of the Cloud SQL instance.
|
|
15166
|
+
*/
|
|
15167
|
+
location?: string;
|
|
13549
15168
|
/**
|
|
13550
15169
|
* Maximum number of operations per response.
|
|
13551
15170
|
*/
|
|
@@ -13611,6 +15230,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
13611
15230
|
* const res = await sql.projects.instances.getDiskShrinkConfig({
|
|
13612
15231
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
13613
15232
|
* instance: 'placeholder-value',
|
|
15233
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
15234
|
+
* location: 'placeholder-value',
|
|
13614
15235
|
* // Project ID of the project that contains the instance.
|
|
13615
15236
|
* project: 'placeholder-value',
|
|
13616
15237
|
* });
|
|
@@ -13765,6 +15386,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
13765
15386
|
* const res = await sql.projects.instances.getLatestRecoveryTime({
|
|
13766
15387
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
13767
15388
|
* instance: 'placeholder-value',
|
|
15389
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
15390
|
+
* location: 'placeholder-value',
|
|
13768
15391
|
* // Project ID of the project that contains the instance.
|
|
13769
15392
|
* project: 'placeholder-value',
|
|
13770
15393
|
* // The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
|
|
@@ -13921,6 +15544,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
13921
15544
|
* const res = await sql.projects.instances.performDiskShrink({
|
|
13922
15545
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
13923
15546
|
* instance: 'placeholder-value',
|
|
15547
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
15548
|
+
* location: 'placeholder-value',
|
|
13924
15549
|
* // Project ID of the project that contains the instance.
|
|
13925
15550
|
* project: 'placeholder-value',
|
|
13926
15551
|
*
|
|
@@ -14005,8 +15630,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
14005
15630
|
| BodyResponseCallback<Schema$Operation>
|
|
14006
15631
|
| BodyResponseCallback<Readable>,
|
|
14007
15632
|
callback?:
|
|
14008
|
-
|
|
14009
|
-
| BodyResponseCallback<Readable>
|
|
15633
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
14010
15634
|
):
|
|
14011
15635
|
| void
|
|
14012
15636
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -14090,6 +15714,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
14090
15714
|
* const res = await sql.projects.instances.rescheduleMaintenance({
|
|
14091
15715
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
14092
15716
|
* instance: 'placeholder-value',
|
|
15717
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
15718
|
+
* location: 'placeholder-value',
|
|
14093
15719
|
* // ID of the project that contains the instance.
|
|
14094
15720
|
* project: 'placeholder-value',
|
|
14095
15721
|
*
|
|
@@ -14176,8 +15802,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
14176
15802
|
| BodyResponseCallback<Schema$Operation>
|
|
14177
15803
|
| BodyResponseCallback<Readable>,
|
|
14178
15804
|
callback?:
|
|
14179
|
-
|
|
14180
|
-
| BodyResponseCallback<Readable>
|
|
15805
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
14181
15806
|
):
|
|
14182
15807
|
| void
|
|
14183
15808
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -14267,7 +15892,9 @@ export namespace sqladmin_v1beta4 {
|
|
|
14267
15892
|
* // Request body metadata
|
|
14268
15893
|
* requestBody: {
|
|
14269
15894
|
* // request body parameters
|
|
14270
|
-
* // {
|
|
15895
|
+
* // {
|
|
15896
|
+
* // "location": "my_location"
|
|
15897
|
+
* // }
|
|
14271
15898
|
* },
|
|
14272
15899
|
* });
|
|
14273
15900
|
* console.log(res.data);
|
|
@@ -14343,8 +15970,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
14343
15970
|
| BodyResponseCallback<Schema$Operation>
|
|
14344
15971
|
| BodyResponseCallback<Readable>,
|
|
14345
15972
|
callback?:
|
|
14346
|
-
|
|
14347
|
-
| BodyResponseCallback<Readable>
|
|
15973
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
14348
15974
|
):
|
|
14349
15975
|
| void
|
|
14350
15976
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -14435,6 +16061,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
14435
16061
|
* requestBody: {
|
|
14436
16062
|
* // request body parameters
|
|
14437
16063
|
* // {
|
|
16064
|
+
* // "location": "my_location",
|
|
14438
16065
|
* // "migrationType": "my_migrationType",
|
|
14439
16066
|
* // "mysqlSyncConfig": {},
|
|
14440
16067
|
* // "replicaOverwriteEnabled": false,
|
|
@@ -14517,8 +16144,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
14517
16144
|
| BodyResponseCallback<Schema$Operation>
|
|
14518
16145
|
| BodyResponseCallback<Readable>,
|
|
14519
16146
|
callback?:
|
|
14520
|
-
|
|
14521
|
-
| BodyResponseCallback<Readable>
|
|
16147
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
14522
16148
|
):
|
|
14523
16149
|
| void
|
|
14524
16150
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -14609,6 +16235,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
14609
16235
|
* requestBody: {
|
|
14610
16236
|
* // request body parameters
|
|
14611
16237
|
* // {
|
|
16238
|
+
* // "location": "my_location",
|
|
14612
16239
|
* // "migrationType": "my_migrationType",
|
|
14613
16240
|
* // "mysqlSyncConfig": {},
|
|
14614
16241
|
* // "selectedObjects": [],
|
|
@@ -14741,6 +16368,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
14741
16368
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
14742
16369
|
*/
|
|
14743
16370
|
instance?: string;
|
|
16371
|
+
/**
|
|
16372
|
+
* Optional. Region of the Cloud SQL instance.
|
|
16373
|
+
*/
|
|
16374
|
+
location?: string;
|
|
14744
16375
|
/**
|
|
14745
16376
|
* Project ID of the project that contains the instance.
|
|
14746
16377
|
*/
|
|
@@ -14751,6 +16382,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
14751
16382
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
14752
16383
|
*/
|
|
14753
16384
|
instance?: string;
|
|
16385
|
+
/**
|
|
16386
|
+
* Optional. Region of the Cloud SQL instance.
|
|
16387
|
+
*/
|
|
16388
|
+
location?: string;
|
|
14754
16389
|
/**
|
|
14755
16390
|
* Project ID of the project that contains the instance.
|
|
14756
16391
|
*/
|
|
@@ -14765,6 +16400,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
14765
16400
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
14766
16401
|
*/
|
|
14767
16402
|
instance?: string;
|
|
16403
|
+
/**
|
|
16404
|
+
* Optional. Region of the Cloud SQL instance.
|
|
16405
|
+
*/
|
|
16406
|
+
location?: string;
|
|
14768
16407
|
/**
|
|
14769
16408
|
* Project ID of the project that contains the instance.
|
|
14770
16409
|
*/
|
|
@@ -14780,6 +16419,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
14780
16419
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
14781
16420
|
*/
|
|
14782
16421
|
instance?: string;
|
|
16422
|
+
/**
|
|
16423
|
+
* Optional. Region of the Cloud SQL instance.
|
|
16424
|
+
*/
|
|
16425
|
+
location?: string;
|
|
14783
16426
|
/**
|
|
14784
16427
|
* ID of the project that contains the instance.
|
|
14785
16428
|
*/
|
|
@@ -14878,6 +16521,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
14878
16521
|
* const res = await sql.sslCerts.createEphemeral({
|
|
14879
16522
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
14880
16523
|
* instance: 'placeholder-value',
|
|
16524
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
16525
|
+
* location: 'placeholder-value',
|
|
14881
16526
|
* // Project ID of the Cloud SQL project.
|
|
14882
16527
|
* project: 'placeholder-value',
|
|
14883
16528
|
*
|
|
@@ -14952,8 +16597,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
14952
16597
|
| BodyResponseCallback<Schema$SslCert>
|
|
14953
16598
|
| BodyResponseCallback<Readable>,
|
|
14954
16599
|
callback?:
|
|
14955
|
-
|
|
14956
|
-
| BodyResponseCallback<Readable>
|
|
16600
|
+
BodyResponseCallback<Schema$SslCert> | BodyResponseCallback<Readable>
|
|
14957
16601
|
):
|
|
14958
16602
|
| void
|
|
14959
16603
|
| Promise<GaxiosResponseWithHTTP2<Schema$SslCert>>
|
|
@@ -15115,8 +16759,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
15115
16759
|
| BodyResponseCallback<Schema$Operation>
|
|
15116
16760
|
| BodyResponseCallback<Readable>,
|
|
15117
16761
|
callback?:
|
|
15118
|
-
|
|
15119
|
-
| BodyResponseCallback<Readable>
|
|
16762
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
15120
16763
|
):
|
|
15121
16764
|
| void
|
|
15122
16765
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -15266,8 +16909,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
15266
16909
|
| BodyResponseCallback<Schema$SslCert>
|
|
15267
16910
|
| BodyResponseCallback<Readable>,
|
|
15268
16911
|
callback?:
|
|
15269
|
-
|
|
15270
|
-
| BodyResponseCallback<Readable>
|
|
16912
|
+
BodyResponseCallback<Schema$SslCert> | BodyResponseCallback<Readable>
|
|
15271
16913
|
):
|
|
15272
16914
|
| void
|
|
15273
16915
|
| Promise<GaxiosResponseWithHTTP2<Schema$SslCert>>
|
|
@@ -15400,8 +17042,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
15400
17042
|
insert(
|
|
15401
17043
|
params: Params$Resource$Sslcerts$Insert,
|
|
15402
17044
|
options:
|
|
15403
|
-
|
|
|
15404
|
-
| BodyResponseCallback<Schema$SslCertsInsertResponse>,
|
|
17045
|
+
MethodOptions | BodyResponseCallback<Schema$SslCertsInsertResponse>,
|
|
15405
17046
|
callback: BodyResponseCallback<Schema$SslCertsInsertResponse>
|
|
15406
17047
|
): void;
|
|
15407
17048
|
insert(
|
|
@@ -15544,8 +17185,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
15544
17185
|
list(
|
|
15545
17186
|
params: Params$Resource$Sslcerts$List,
|
|
15546
17187
|
options:
|
|
15547
|
-
|
|
|
15548
|
-
| BodyResponseCallback<Schema$SslCertsListResponse>,
|
|
17188
|
+
MethodOptions | BodyResponseCallback<Schema$SslCertsListResponse>,
|
|
15549
17189
|
callback: BodyResponseCallback<Schema$SslCertsListResponse>
|
|
15550
17190
|
): void;
|
|
15551
17191
|
list(
|
|
@@ -15618,6 +17258,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
15618
17258
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
15619
17259
|
*/
|
|
15620
17260
|
instance?: string;
|
|
17261
|
+
/**
|
|
17262
|
+
* Optional. Region of the Cloud SQL instance.
|
|
17263
|
+
*/
|
|
17264
|
+
location?: string;
|
|
15621
17265
|
/**
|
|
15622
17266
|
* Project ID of the Cloud SQL project.
|
|
15623
17267
|
*/
|
|
@@ -15880,6 +17524,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
15880
17524
|
* host: 'placeholder-value',
|
|
15881
17525
|
* // Database instance ID. This does not include the project ID.
|
|
15882
17526
|
* instance: 'placeholder-value',
|
|
17527
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
17528
|
+
* location: 'placeholder-value',
|
|
15883
17529
|
* // Name of the user in the instance.
|
|
15884
17530
|
* name: 'placeholder-value',
|
|
15885
17531
|
* // Project ID of the project that contains the instance.
|
|
@@ -15958,8 +17604,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
15958
17604
|
| BodyResponseCallback<Schema$Operation>
|
|
15959
17605
|
| BodyResponseCallback<Readable>,
|
|
15960
17606
|
callback?:
|
|
15961
|
-
|
|
15962
|
-
| BodyResponseCallback<Readable>
|
|
17607
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
15963
17608
|
):
|
|
15964
17609
|
| void
|
|
15965
17610
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -16044,6 +17689,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
16044
17689
|
* host: 'placeholder-value',
|
|
16045
17690
|
* // Database instance ID. This does not include the project ID.
|
|
16046
17691
|
* instance: 'placeholder-value',
|
|
17692
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
17693
|
+
* location: 'placeholder-value',
|
|
16047
17694
|
* // User of the instance.
|
|
16048
17695
|
* name: 'placeholder-value',
|
|
16049
17696
|
* // Project ID of the project that contains the instance.
|
|
@@ -16065,6 +17712,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
16065
17712
|
* // "password": "my_password",
|
|
16066
17713
|
* // "passwordPolicy": {},
|
|
16067
17714
|
* // "project": "my_project",
|
|
17715
|
+
* // "serverRoles": [],
|
|
16068
17716
|
* // "sqlserverUserDetails": {},
|
|
16069
17717
|
* // "type": "my_type"
|
|
16070
17718
|
* // }
|
|
@@ -16116,8 +17764,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
16116
17764
|
| BodyResponseCallback<Schema$User>
|
|
16117
17765
|
| BodyResponseCallback<Readable>,
|
|
16118
17766
|
callback?:
|
|
16119
|
-
|
|
16120
|
-
| BodyResponseCallback<Readable>
|
|
17767
|
+
BodyResponseCallback<Schema$User> | BodyResponseCallback<Readable>
|
|
16121
17768
|
):
|
|
16122
17769
|
| void
|
|
16123
17770
|
| Promise<GaxiosResponseWithHTTP2<Schema$User>>
|
|
@@ -16200,6 +17847,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
16200
17847
|
* const res = await sql.users.insert({
|
|
16201
17848
|
* // Database instance ID. This does not include the project ID.
|
|
16202
17849
|
* instance: 'placeholder-value',
|
|
17850
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
17851
|
+
* location: 'placeholder-value',
|
|
16203
17852
|
* // Project ID of the project that contains the instance.
|
|
16204
17853
|
* project: 'placeholder-value',
|
|
16205
17854
|
*
|
|
@@ -16219,6 +17868,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
16219
17868
|
* // "password": "my_password",
|
|
16220
17869
|
* // "passwordPolicy": {},
|
|
16221
17870
|
* // "project": "my_project",
|
|
17871
|
+
* // "serverRoles": [],
|
|
16222
17872
|
* // "sqlserverUserDetails": {},
|
|
16223
17873
|
* // "type": "my_type"
|
|
16224
17874
|
* // }
|
|
@@ -16297,8 +17947,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
16297
17947
|
| BodyResponseCallback<Schema$Operation>
|
|
16298
17948
|
| BodyResponseCallback<Readable>,
|
|
16299
17949
|
callback?:
|
|
16300
|
-
|
|
16301
|
-
| BodyResponseCallback<Readable>
|
|
17950
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
16302
17951
|
):
|
|
16303
17952
|
| void
|
|
16304
17953
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -16381,6 +18030,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
16381
18030
|
* const res = await sql.users.list({
|
|
16382
18031
|
* // Database instance ID. This does not include the project ID.
|
|
16383
18032
|
* instance: 'placeholder-value',
|
|
18033
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
18034
|
+
* location: 'placeholder-value',
|
|
16384
18035
|
* // Project ID of the project that contains the instance.
|
|
16385
18036
|
* project: 'placeholder-value',
|
|
16386
18037
|
* });
|
|
@@ -16528,12 +18179,18 @@ export namespace sqladmin_v1beta4 {
|
|
|
16528
18179
|
* host: 'placeholder-value',
|
|
16529
18180
|
* // Database instance ID. This does not include the project ID.
|
|
16530
18181
|
* instance: 'placeholder-value',
|
|
18182
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
18183
|
+
* location: 'placeholder-value',
|
|
16531
18184
|
* // Name of the user in the instance.
|
|
16532
18185
|
* name: 'placeholder-value',
|
|
16533
18186
|
* // Project ID of the project that contains the instance.
|
|
16534
18187
|
* project: 'placeholder-value',
|
|
16535
18188
|
* // Optional. Specifies whether to revoke existing roles that are not present in the `database_roles` field. If `false` or unset, the database roles specified in `database_roles` are added to the user's existing roles.
|
|
16536
18189
|
* revokeExistingRoles: 'placeholder-value',
|
|
18190
|
+
* // Optional. Specifies whether to revoke existing roles that are not present in the `server_roles` field. If `false` or unset, the server roles specified in `server_roles` are added to the user's existing server roles.
|
|
18191
|
+
* revokeExistingServerRoles: 'placeholder-value',
|
|
18192
|
+
* // Optional. The server roles to grant to the SQL Server login. Existing server roles will not be revoked if revoke_existing_roles is false. body.server_roles will be ignored for update request.
|
|
18193
|
+
* serverRoles: 'placeholder-value',
|
|
16537
18194
|
*
|
|
16538
18195
|
* // Request body metadata
|
|
16539
18196
|
* requestBody: {
|
|
@@ -16551,6 +18208,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
16551
18208
|
* // "password": "my_password",
|
|
16552
18209
|
* // "passwordPolicy": {},
|
|
16553
18210
|
* // "project": "my_project",
|
|
18211
|
+
* // "serverRoles": [],
|
|
16554
18212
|
* // "sqlserverUserDetails": {},
|
|
16555
18213
|
* // "type": "my_type"
|
|
16556
18214
|
* // }
|
|
@@ -16629,8 +18287,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
16629
18287
|
| BodyResponseCallback<Schema$Operation>
|
|
16630
18288
|
| BodyResponseCallback<Readable>,
|
|
16631
18289
|
callback?:
|
|
16632
|
-
|
|
16633
|
-
| BodyResponseCallback<Readable>
|
|
18290
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
16634
18291
|
):
|
|
16635
18292
|
| void
|
|
16636
18293
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -16687,6 +18344,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
16687
18344
|
* Database instance ID. This does not include the project ID.
|
|
16688
18345
|
*/
|
|
16689
18346
|
instance?: string;
|
|
18347
|
+
/**
|
|
18348
|
+
* Optional. Region of the Cloud SQL instance.
|
|
18349
|
+
*/
|
|
18350
|
+
location?: string;
|
|
16690
18351
|
/**
|
|
16691
18352
|
* Name of the user in the instance.
|
|
16692
18353
|
*/
|
|
@@ -16705,6 +18366,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
16705
18366
|
* Database instance ID. This does not include the project ID.
|
|
16706
18367
|
*/
|
|
16707
18368
|
instance?: string;
|
|
18369
|
+
/**
|
|
18370
|
+
* Optional. Region of the Cloud SQL instance.
|
|
18371
|
+
*/
|
|
18372
|
+
location?: string;
|
|
16708
18373
|
/**
|
|
16709
18374
|
* User of the instance.
|
|
16710
18375
|
*/
|
|
@@ -16719,6 +18384,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
16719
18384
|
* Database instance ID. This does not include the project ID.
|
|
16720
18385
|
*/
|
|
16721
18386
|
instance?: string;
|
|
18387
|
+
/**
|
|
18388
|
+
* Optional. Region of the Cloud SQL instance.
|
|
18389
|
+
*/
|
|
18390
|
+
location?: string;
|
|
16722
18391
|
/**
|
|
16723
18392
|
* Project ID of the project that contains the instance.
|
|
16724
18393
|
*/
|
|
@@ -16734,6 +18403,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
16734
18403
|
* Database instance ID. This does not include the project ID.
|
|
16735
18404
|
*/
|
|
16736
18405
|
instance?: string;
|
|
18406
|
+
/**
|
|
18407
|
+
* Optional. Region of the Cloud SQL instance.
|
|
18408
|
+
*/
|
|
18409
|
+
location?: string;
|
|
16737
18410
|
/**
|
|
16738
18411
|
* Project ID of the project that contains the instance.
|
|
16739
18412
|
*/
|
|
@@ -16752,6 +18425,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
16752
18425
|
* Database instance ID. This does not include the project ID.
|
|
16753
18426
|
*/
|
|
16754
18427
|
instance?: string;
|
|
18428
|
+
/**
|
|
18429
|
+
* Optional. Region of the Cloud SQL instance.
|
|
18430
|
+
*/
|
|
18431
|
+
location?: string;
|
|
16755
18432
|
/**
|
|
16756
18433
|
* Name of the user in the instance.
|
|
16757
18434
|
*/
|
|
@@ -16764,6 +18441,14 @@ export namespace sqladmin_v1beta4 {
|
|
|
16764
18441
|
* Optional. Specifies whether to revoke existing roles that are not present in the `database_roles` field. If `false` or unset, the database roles specified in `database_roles` are added to the user's existing roles.
|
|
16765
18442
|
*/
|
|
16766
18443
|
revokeExistingRoles?: boolean;
|
|
18444
|
+
/**
|
|
18445
|
+
* Optional. Specifies whether to revoke existing roles that are not present in the `server_roles` field. If `false` or unset, the server roles specified in `server_roles` are added to the user's existing server roles.
|
|
18446
|
+
*/
|
|
18447
|
+
revokeExistingServerRoles?: boolean;
|
|
18448
|
+
/**
|
|
18449
|
+
* Optional. The server roles to grant to the SQL Server login. Existing server roles will not be revoked if revoke_existing_roles is false. body.server_roles will be ignored for update request.
|
|
18450
|
+
*/
|
|
18451
|
+
serverRoles?: string[];
|
|
16767
18452
|
|
|
16768
18453
|
/**
|
|
16769
18454
|
* Request body metadata
|