@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/build/v1.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export declare namespace sqladmin_v1 {
|
|
|
57
57
|
/**
|
|
58
58
|
* Cloud SQL Admin API
|
|
59
59
|
*
|
|
60
|
-
*
|
|
60
|
+
* Cloud SQL Admin API
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
63
|
* ```js
|
|
@@ -69,6 +69,7 @@ export declare namespace sqladmin_v1 {
|
|
|
69
69
|
context: APIRequestContext;
|
|
70
70
|
backupRuns: Resource$Backupruns;
|
|
71
71
|
Backups: Resource$Backups;
|
|
72
|
+
blueGreenDeployments: Resource$Bluegreendeployments;
|
|
72
73
|
connect: Resource$Connect;
|
|
73
74
|
databases: Resource$Databases;
|
|
74
75
|
flags: Resource$Flags;
|
|
@@ -295,7 +296,7 @@ export declare namespace sqladmin_v1 {
|
|
|
295
296
|
*/
|
|
296
297
|
pointInTimeRecoveryEnabled?: boolean | null;
|
|
297
298
|
/**
|
|
298
|
-
*
|
|
299
|
+
* 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.
|
|
299
300
|
*/
|
|
300
301
|
replicationLogArchivingEnabled?: boolean | null;
|
|
301
302
|
/**
|
|
@@ -469,6 +470,72 @@ export declare namespace sqladmin_v1 {
|
|
|
469
470
|
*/
|
|
470
471
|
kind?: string | null;
|
|
471
472
|
}
|
|
473
|
+
/**
|
|
474
|
+
* A `BlueGreenDeployment` resource represents a Cloud SQL blue-green deployment setup.
|
|
475
|
+
*/
|
|
476
|
+
export interface Schema$BlueGreenDeployment {
|
|
477
|
+
/**
|
|
478
|
+
* Output only. The time when the deployment was created. Example: `2024-01-01T00:00:00Z`
|
|
479
|
+
*/
|
|
480
|
+
createTime?: string | null;
|
|
481
|
+
/**
|
|
482
|
+
* Output only. A list representing the pairs of source and target instances in the deployment.
|
|
483
|
+
*/
|
|
484
|
+
deploymentMappings?: Schema$SourceTargetPairedNode[];
|
|
485
|
+
/**
|
|
486
|
+
* Output only. Combined list of tasks for all paired nodes.
|
|
487
|
+
*/
|
|
488
|
+
deploymentTasks?: Schema$DeploymentTasks;
|
|
489
|
+
/**
|
|
490
|
+
* Optional. User-provided description for the deployment. The description can be up to 255 characters long.
|
|
491
|
+
*/
|
|
492
|
+
description?: string | null;
|
|
493
|
+
/**
|
|
494
|
+
* Output only. Provides details on why switchover is not possible. This field is empty unless a switchover attempt failed or the state is `SWITCHOVER_NOT_READY`. Example: "The target database version does not match the source instance database version."
|
|
495
|
+
*/
|
|
496
|
+
errorDetail?: string | null;
|
|
497
|
+
/**
|
|
498
|
+
* Output only. Identifier. The full resource name of the deployment. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{deployment_id\}
|
|
499
|
+
*/
|
|
500
|
+
name?: string | null;
|
|
501
|
+
/**
|
|
502
|
+
* Optional. Immutable. Optional on create, and immutable. The configuration intended for the target instance(s) when the deployment was created.
|
|
503
|
+
*/
|
|
504
|
+
requestedConfig?: Schema$RequestedConfig;
|
|
505
|
+
/**
|
|
506
|
+
* Required. Immutable. Required on create, and immutable. The full resource name of the source instance (the "blue" instance). Format: projects/{project\}/instances/{instance\}
|
|
507
|
+
*/
|
|
508
|
+
sourceInstance?: string | null;
|
|
509
|
+
/**
|
|
510
|
+
* Output only. The current state of the blue-green deployment.
|
|
511
|
+
*/
|
|
512
|
+
state?: string | null;
|
|
513
|
+
/**
|
|
514
|
+
* Output only. The full resource name of the primary target instance (the "green" instance) that will be promoted during switchover. This field is always populated once the deployment is created. Format: projects/{project\}/instances/{instance\}
|
|
515
|
+
*/
|
|
516
|
+
switchoverTargetInstance?: string | null;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* 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.
|
|
520
|
+
*/
|
|
521
|
+
export interface Schema$BlueGreenDeploymentInfo {
|
|
522
|
+
/**
|
|
523
|
+
* Output only. The resource ID of the blue-green deployment.
|
|
524
|
+
*/
|
|
525
|
+
deploymentId?: string | null;
|
|
526
|
+
/**
|
|
527
|
+
* Output only. The source instance for the Blue-Green deployment.
|
|
528
|
+
*/
|
|
529
|
+
source?: Schema$SourceRole;
|
|
530
|
+
/**
|
|
531
|
+
* Output only. The current state of blue-green-deployment for UI tags
|
|
532
|
+
*/
|
|
533
|
+
state?: string | null;
|
|
534
|
+
/**
|
|
535
|
+
* Output only. The target instance for the Blue-Green deployment.
|
|
536
|
+
*/
|
|
537
|
+
target?: Schema$TargetRole;
|
|
538
|
+
}
|
|
472
539
|
/**
|
|
473
540
|
* Database instance clone context.
|
|
474
541
|
*/
|
|
@@ -490,7 +557,7 @@ export declare namespace sqladmin_v1 {
|
|
|
490
557
|
*/
|
|
491
558
|
destinationInstanceName?: string | null;
|
|
492
559
|
/**
|
|
493
|
-
* Optional. The fully qualified URI of the VPC network to which the cloned instance will be connected via
|
|
560
|
+
* 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.
|
|
494
561
|
*/
|
|
495
562
|
destinationNetwork?: string | null;
|
|
496
563
|
/**
|
|
@@ -535,6 +602,23 @@ export declare namespace sqladmin_v1 {
|
|
|
535
602
|
*/
|
|
536
603
|
type?: string | null;
|
|
537
604
|
}
|
|
605
|
+
/**
|
|
606
|
+
* Represents a specific configuration difference between blue and green instances.
|
|
607
|
+
*/
|
|
608
|
+
export interface Schema$ConfigDiff {
|
|
609
|
+
/**
|
|
610
|
+
* Output only. The name of the field that differs in the blue and green instances, fully-qualified. Example: `settings.tier`
|
|
611
|
+
*/
|
|
612
|
+
field?: string | null;
|
|
613
|
+
/**
|
|
614
|
+
* Output only. The value on the source instance.
|
|
615
|
+
*/
|
|
616
|
+
sourceValue?: string | null;
|
|
617
|
+
/**
|
|
618
|
+
* Output only. The value on the target instance.
|
|
619
|
+
*/
|
|
620
|
+
targetValue?: string | null;
|
|
621
|
+
}
|
|
538
622
|
/**
|
|
539
623
|
* The managed connection pooling configuration.
|
|
540
624
|
*/
|
|
@@ -594,6 +678,10 @@ export declare namespace sqladmin_v1 {
|
|
|
594
678
|
* `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.
|
|
595
679
|
*/
|
|
596
680
|
backendType?: string | null;
|
|
681
|
+
/**
|
|
682
|
+
* Optional. Output only. Connection name of the Cloud SQL instance used in connection strings, in the format project:region:instance.
|
|
683
|
+
*/
|
|
684
|
+
connectionName?: string | null;
|
|
597
685
|
/**
|
|
598
686
|
* Custom subject alternative names for the server certificate.
|
|
599
687
|
*/
|
|
@@ -722,6 +810,10 @@ export declare namespace sqladmin_v1 {
|
|
|
722
810
|
* 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.
|
|
723
811
|
*/
|
|
724
812
|
currentDiskSize?: string | null;
|
|
813
|
+
/**
|
|
814
|
+
* Optional. If true, instance metadata is sent to the Database Center. If false, instance metadata is not sent to the Database Center.
|
|
815
|
+
*/
|
|
816
|
+
databaseCenterIntegrationEnabled?: boolean | null;
|
|
725
817
|
/**
|
|
726
818
|
* Output only. Stores the current database version running on the instance including minor version such as `MYSQL_8_0_18`.
|
|
727
819
|
*/
|
|
@@ -730,6 +822,10 @@ export declare namespace sqladmin_v1 {
|
|
|
730
822
|
* The database engine type and version. The `databaseVersion` field cannot be changed after instance creation.
|
|
731
823
|
*/
|
|
732
824
|
databaseVersion?: string | null;
|
|
825
|
+
/**
|
|
826
|
+
* Output only. Deployment info for the instance. This is set if the instance is currently part of any blue-green setup.
|
|
827
|
+
*/
|
|
828
|
+
deploymentInfo?: Schema$BlueGreenDeploymentInfo;
|
|
733
829
|
/**
|
|
734
830
|
* Disk encryption configuration specific to an instance.
|
|
735
831
|
*/
|
|
@@ -1028,10 +1124,48 @@ export declare namespace sqladmin_v1 {
|
|
|
1028
1124
|
*/
|
|
1029
1125
|
time?: string | null;
|
|
1030
1126
|
}
|
|
1127
|
+
/**
|
|
1128
|
+
* Represents a task executed as part of the deployment on a target instance.
|
|
1129
|
+
*/
|
|
1130
|
+
export interface Schema$DeploymentTask {
|
|
1131
|
+
/**
|
|
1132
|
+
* Output only. Task end time (if completed).
|
|
1133
|
+
*/
|
|
1134
|
+
endTime?: string | null;
|
|
1135
|
+
/**
|
|
1136
|
+
* Output only. Optional error details if the task state is `FAILED`.
|
|
1137
|
+
*/
|
|
1138
|
+
errorMessage?: string | null;
|
|
1139
|
+
/**
|
|
1140
|
+
* Output only. Task start time.
|
|
1141
|
+
*/
|
|
1142
|
+
startTime?: string | null;
|
|
1143
|
+
/**
|
|
1144
|
+
* Output only. The current state of the task.
|
|
1145
|
+
*/
|
|
1146
|
+
state?: string | null;
|
|
1147
|
+
/**
|
|
1148
|
+
* Output only. The type of the task.
|
|
1149
|
+
*/
|
|
1150
|
+
type?: string | null;
|
|
1151
|
+
}
|
|
1152
|
+
/**
|
|
1153
|
+
* Combined list of tasks for all paired nodes in the deployment.
|
|
1154
|
+
*/
|
|
1155
|
+
export interface Schema$DeploymentTasks {
|
|
1156
|
+
/**
|
|
1157
|
+
* Output only. Tasks performed or being performed on the paired nodes of the deployment at a consolidated level.
|
|
1158
|
+
*/
|
|
1159
|
+
task?: Schema$DeploymentTask[];
|
|
1160
|
+
}
|
|
1031
1161
|
/**
|
|
1032
1162
|
* Disk encryption configuration for an instance.
|
|
1033
1163
|
*/
|
|
1034
1164
|
export interface Schema$DiskEncryptionConfiguration {
|
|
1165
|
+
/**
|
|
1166
|
+
* Optional. If true, enables Confidential Mode for the instance's Hyperdisk Balanced volumes. Only supported for zonal C4A instances currently.
|
|
1167
|
+
*/
|
|
1168
|
+
confidentialMode?: boolean | null;
|
|
1035
1169
|
/**
|
|
1036
1170
|
* This is always `sql#diskEncryptionConfiguration`.
|
|
1037
1171
|
*/
|
|
@@ -1100,6 +1234,10 @@ export declare namespace sqladmin_v1 {
|
|
|
1100
1234
|
* 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.
|
|
1101
1235
|
*/
|
|
1102
1236
|
partialResultMode?: string | null;
|
|
1237
|
+
/**
|
|
1238
|
+
* 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\}`. Used together with the `user` field. The secret resource name will not be stored.
|
|
1239
|
+
*/
|
|
1240
|
+
passwordSecretVersion?: string | null;
|
|
1103
1241
|
/**
|
|
1104
1242
|
* Optional. The maximum number of rows returned per SQL statement.
|
|
1105
1243
|
*/
|
|
@@ -1634,6 +1772,10 @@ export declare namespace sqladmin_v1 {
|
|
|
1634
1772
|
* 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.
|
|
1635
1773
|
*/
|
|
1636
1774
|
backupdrBackup?: string | null;
|
|
1775
|
+
/**
|
|
1776
|
+
* Optional. If true, the restore operation proceeds even if the target instance's maintenance version is older than the source instance's maintenance version.
|
|
1777
|
+
*/
|
|
1778
|
+
ignoreMaintenanceVersion?: boolean | null;
|
|
1637
1779
|
/**
|
|
1638
1780
|
* Parameters required to perform the restore backup operation.
|
|
1639
1781
|
*/
|
|
@@ -1783,6 +1925,19 @@ export declare namespace sqladmin_v1 {
|
|
|
1783
1925
|
*/
|
|
1784
1926
|
warnings?: Schema$ApiWarning[];
|
|
1785
1927
|
}
|
|
1928
|
+
/**
|
|
1929
|
+
* The response message for listing blue-green deployment resources.
|
|
1930
|
+
*/
|
|
1931
|
+
export interface Schema$ListBlueGreenDeploymentsResponse {
|
|
1932
|
+
/**
|
|
1933
|
+
* The list of blue-green deployment resources.
|
|
1934
|
+
*/
|
|
1935
|
+
blueGreenDeployments?: Schema$BlueGreenDeployment[];
|
|
1936
|
+
/**
|
|
1937
|
+
* A token to retrieve the next page of results, or empty if there are no more results.
|
|
1938
|
+
*/
|
|
1939
|
+
nextPageToken?: string | null;
|
|
1940
|
+
}
|
|
1786
1941
|
/**
|
|
1787
1942
|
* 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.
|
|
1788
1943
|
*/
|
|
@@ -1905,6 +2060,27 @@ export declare namespace sqladmin_v1 {
|
|
|
1905
2060
|
*/
|
|
1906
2061
|
initialSyncFlags?: Schema$SyncFlags[];
|
|
1907
2062
|
}
|
|
2063
|
+
/**
|
|
2064
|
+
* Details about an instance within the deployment.
|
|
2065
|
+
*/
|
|
2066
|
+
export interface Schema$NodeInfo {
|
|
2067
|
+
/**
|
|
2068
|
+
* Output only. The instance connection name.
|
|
2069
|
+
*/
|
|
2070
|
+
connection?: string | null;
|
|
2071
|
+
/**
|
|
2072
|
+
* Output only. The unique DNS name for this instance.
|
|
2073
|
+
*/
|
|
2074
|
+
dns?: string | null;
|
|
2075
|
+
/**
|
|
2076
|
+
* Output only. The full resource name of the instance. Format: projects/{project\}/instances/{instance\}
|
|
2077
|
+
*/
|
|
2078
|
+
instance?: string | null;
|
|
2079
|
+
/**
|
|
2080
|
+
* Output only. The list of IP addresses for this instance.
|
|
2081
|
+
*/
|
|
2082
|
+
ipMappings?: Schema$IpMapping[];
|
|
2083
|
+
}
|
|
1908
2084
|
/**
|
|
1909
2085
|
* On-premises instance configuration.
|
|
1910
2086
|
*/
|
|
@@ -1921,6 +2097,10 @@ export declare namespace sqladmin_v1 {
|
|
|
1921
2097
|
* PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate.
|
|
1922
2098
|
*/
|
|
1923
2099
|
clientKey?: string | null;
|
|
2100
|
+
/**
|
|
2101
|
+
* Output only. Indicates whether the resource is managed by Database Migration Service.
|
|
2102
|
+
*/
|
|
2103
|
+
dmsManaged?: boolean | null;
|
|
1924
2104
|
/**
|
|
1925
2105
|
* The dump file to create the Cloud SQL replica.
|
|
1926
2106
|
*/
|
|
@@ -2166,10 +2346,22 @@ export declare namespace sqladmin_v1 {
|
|
|
2166
2346
|
* Performance capture configuration.
|
|
2167
2347
|
*/
|
|
2168
2348
|
export interface Schema$PerformanceCaptureConfig {
|
|
2349
|
+
/**
|
|
2350
|
+
* 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.
|
|
2351
|
+
*/
|
|
2352
|
+
cpuUtilizationThresholdPercent?: number | null;
|
|
2169
2353
|
/**
|
|
2170
2354
|
* Optional. Enables or disables the performance capture feature.
|
|
2171
2355
|
*/
|
|
2172
2356
|
enabled?: boolean | null;
|
|
2357
|
+
/**
|
|
2358
|
+
* 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.
|
|
2359
|
+
*/
|
|
2360
|
+
historyListLengthThresholdCount?: number | null;
|
|
2361
|
+
/**
|
|
2362
|
+
* 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.
|
|
2363
|
+
*/
|
|
2364
|
+
memoryUsageThresholdPercent?: number | null;
|
|
2173
2365
|
/**
|
|
2174
2366
|
* Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.
|
|
2175
2367
|
*/
|
|
@@ -2186,10 +2378,30 @@ export declare namespace sqladmin_v1 {
|
|
|
2186
2378
|
* Optional. Specifies the minimum number of seconds replica must be lagging behind primary instance to trigger the performance capture on replica.
|
|
2187
2379
|
*/
|
|
2188
2380
|
secondsBehindSourceThreshold?: number | null;
|
|
2381
|
+
/**
|
|
2382
|
+
* 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.
|
|
2383
|
+
*/
|
|
2384
|
+
semaphoreWaitThresholdCount?: number | null;
|
|
2189
2385
|
/**
|
|
2190
2386
|
* Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.
|
|
2191
2387
|
*/
|
|
2192
2388
|
transactionDurationThreshold?: number | null;
|
|
2389
|
+
/**
|
|
2390
|
+
* 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@%"]`
|
|
2391
|
+
*/
|
|
2392
|
+
transactionKillExcludedUserHosts?: string[] | null;
|
|
2393
|
+
/**
|
|
2394
|
+
* 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.
|
|
2395
|
+
*/
|
|
2396
|
+
transactionKillThresholdSeconds?: number | null;
|
|
2397
|
+
/**
|
|
2398
|
+
* 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.
|
|
2399
|
+
*/
|
|
2400
|
+
transactionKillType?: string | null;
|
|
2401
|
+
/**
|
|
2402
|
+
* 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.
|
|
2403
|
+
*/
|
|
2404
|
+
transactionLockWaitThresholdCount?: number | null;
|
|
2193
2405
|
}
|
|
2194
2406
|
/**
|
|
2195
2407
|
* Perform disk shrink context.
|
|
@@ -2332,14 +2544,30 @@ export declare namespace sqladmin_v1 {
|
|
|
2332
2544
|
* Optional. This is the project ID of consumer service project of this consumer endpoint. This is only applicable if `consumer_network` is a shared VPC network.
|
|
2333
2545
|
*/
|
|
2334
2546
|
consumerProject?: string | null;
|
|
2547
|
+
/**
|
|
2548
|
+
* Output only. The status of automated DNS provisioning.
|
|
2549
|
+
*/
|
|
2550
|
+
instanceAutoDnsStatus?: string | null;
|
|
2335
2551
|
/**
|
|
2336
2552
|
* The IP address of the consumer endpoint.
|
|
2337
2553
|
*/
|
|
2338
2554
|
ipAddress?: string | null;
|
|
2555
|
+
/**
|
|
2556
|
+
* 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`.
|
|
2557
|
+
*/
|
|
2558
|
+
serviceConnectionPolicy?: string | null;
|
|
2559
|
+
/**
|
|
2560
|
+
* Output only. The status of service connection policy creation.
|
|
2561
|
+
*/
|
|
2562
|
+
serviceConnectionPolicyCreationResult?: string | null;
|
|
2339
2563
|
/**
|
|
2340
2564
|
* The connection status of the consumer endpoint.
|
|
2341
2565
|
*/
|
|
2342
2566
|
status?: string | null;
|
|
2567
|
+
/**
|
|
2568
|
+
* Output only. The status of automated DNS provisioning for the write endpoint.
|
|
2569
|
+
*/
|
|
2570
|
+
writeEndpointAutoDnsStatus?: string | null;
|
|
2343
2571
|
}
|
|
2344
2572
|
/**
|
|
2345
2573
|
* PSC settings for a Cloud SQL instance.
|
|
@@ -2350,15 +2578,19 @@ export declare namespace sqladmin_v1 {
|
|
|
2350
2578
|
*/
|
|
2351
2579
|
allowedConsumerProjects?: string[] | null;
|
|
2352
2580
|
/**
|
|
2353
|
-
* Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect
|
|
2581
|
+
* 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
|
|
2354
2582
|
*/
|
|
2355
2583
|
networkAttachmentUri?: string | null;
|
|
2584
|
+
/**
|
|
2585
|
+
* Optional. Whether to set up the PSC service connection policy automatically.
|
|
2586
|
+
*/
|
|
2587
|
+
pscAutoConnectionPolicyEnabled?: boolean | null;
|
|
2356
2588
|
/**
|
|
2357
2589
|
* Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
|
|
2358
2590
|
*/
|
|
2359
2591
|
pscAutoConnections?: Schema$PscAutoConnectionConfig[];
|
|
2360
2592
|
/**
|
|
2361
|
-
* Optional. Indicates whether
|
|
2593
|
+
* 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.
|
|
2362
2594
|
*/
|
|
2363
2595
|
pscAutoDnsEnabled?: boolean | null;
|
|
2364
2596
|
/**
|
|
@@ -2366,7 +2598,7 @@ export declare namespace sqladmin_v1 {
|
|
|
2366
2598
|
*/
|
|
2367
2599
|
pscEnabled?: boolean | null;
|
|
2368
2600
|
/**
|
|
2369
|
-
* Optional. Indicates whether
|
|
2601
|
+
* 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.
|
|
2370
2602
|
*/
|
|
2371
2603
|
pscWriteEndpointDnsEnabled?: boolean | null;
|
|
2372
2604
|
}
|
|
@@ -2466,6 +2698,15 @@ export declare namespace sqladmin_v1 {
|
|
|
2466
2698
|
*/
|
|
2467
2699
|
psaWriteEndpoint?: string | null;
|
|
2468
2700
|
}
|
|
2701
|
+
/**
|
|
2702
|
+
* Configuration specified by the user at creation time for the target (green) instance.
|
|
2703
|
+
*/
|
|
2704
|
+
export interface Schema$RequestedConfig {
|
|
2705
|
+
/**
|
|
2706
|
+
* Optional. The target database major version for the upgrade. For example, `MYSQL_8_0` or `POSTGRES_15`.
|
|
2707
|
+
*/
|
|
2708
|
+
databaseVersion?: string | null;
|
|
2709
|
+
}
|
|
2469
2710
|
export interface Schema$Reschedule {
|
|
2470
2711
|
/**
|
|
2471
2712
|
* Required. The type of the reschedule.
|
|
@@ -2687,7 +2928,7 @@ export declare namespace sqladmin_v1 {
|
|
|
2687
2928
|
*/
|
|
2688
2929
|
maintenanceWindow?: Schema$MaintenanceWindow;
|
|
2689
2930
|
/**
|
|
2690
|
-
* The local user password validation policy of the instance.
|
|
2931
|
+
* The local user password validation policy of the instance for PostgreSQL and MySQL.
|
|
2691
2932
|
*/
|
|
2692
2933
|
passwordValidationPolicy?: Schema$PasswordValidationPolicy;
|
|
2693
2934
|
/**
|
|
@@ -2745,6 +2986,36 @@ export declare namespace sqladmin_v1 {
|
|
|
2745
2986
|
[key: string]: string;
|
|
2746
2987
|
} | null;
|
|
2747
2988
|
}
|
|
2989
|
+
/**
|
|
2990
|
+
* The source instance for the Blue-Green deployment.
|
|
2991
|
+
*/
|
|
2992
|
+
export interface Schema$SourceRole {
|
|
2993
|
+
/**
|
|
2994
|
+
* Output only. The target instance paired with this source instance in a blue-green deployment.
|
|
2995
|
+
*/
|
|
2996
|
+
targetId?: Schema$InstanceReference;
|
|
2997
|
+
}
|
|
2998
|
+
/**
|
|
2999
|
+
* Represents a pairing of a source instance node and a target instance node.
|
|
3000
|
+
*/
|
|
3001
|
+
export interface Schema$SourceTargetPairedNode {
|
|
3002
|
+
/**
|
|
3003
|
+
* Output only. Describes the list of differences for the `SourceTargetPairedNode`.
|
|
3004
|
+
*/
|
|
3005
|
+
diffs?: Schema$ConfigDiff[];
|
|
3006
|
+
/**
|
|
3007
|
+
* Output only. Specifies the resource name of the source instance in this pair.
|
|
3008
|
+
*/
|
|
3009
|
+
source?: Schema$NodeInfo;
|
|
3010
|
+
/**
|
|
3011
|
+
* Output only. Specifies the current state of this specific source-target pair.
|
|
3012
|
+
*/
|
|
3013
|
+
state?: string | null;
|
|
3014
|
+
/**
|
|
3015
|
+
* Output only. Specifies details of the corresponding target instance in this pair.
|
|
3016
|
+
*/
|
|
3017
|
+
target?: Schema$NodeInfo;
|
|
3018
|
+
}
|
|
2748
3019
|
/**
|
|
2749
3020
|
* Active Directory configuration, relevant only for Cloud SQL for SQL Server.
|
|
2750
3021
|
*/
|
|
@@ -2877,11 +3148,19 @@ export declare namespace sqladmin_v1 {
|
|
|
2877
3148
|
* Instance reset replica size request.
|
|
2878
3149
|
*/
|
|
2879
3150
|
export interface Schema$SqlInstancesResetReplicaSizeRequest {
|
|
3151
|
+
/**
|
|
3152
|
+
* Optional. Region of the Cloud SQL instance.
|
|
3153
|
+
*/
|
|
3154
|
+
location?: string | null;
|
|
2880
3155
|
}
|
|
2881
3156
|
/**
|
|
2882
3157
|
* Instance start external sync request.
|
|
2883
3158
|
*/
|
|
2884
3159
|
export interface Schema$SqlInstancesStartExternalSyncRequest {
|
|
3160
|
+
/**
|
|
3161
|
+
* Optional. Region of the Cloud SQL instance.
|
|
3162
|
+
*/
|
|
3163
|
+
location?: string | null;
|
|
2885
3164
|
/**
|
|
2886
3165
|
* 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.
|
|
2887
3166
|
*/
|
|
@@ -2911,6 +3190,10 @@ export declare namespace sqladmin_v1 {
|
|
|
2911
3190
|
* Instance verify external sync settings request.
|
|
2912
3191
|
*/
|
|
2913
3192
|
export interface Schema$SqlInstancesVerifyExternalSyncSettingsRequest {
|
|
3193
|
+
/**
|
|
3194
|
+
* Optional. Region of the Cloud SQL instance.
|
|
3195
|
+
*/
|
|
3196
|
+
location?: string | null;
|
|
2914
3197
|
/**
|
|
2915
3198
|
* 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.
|
|
2916
3199
|
*/
|
|
@@ -3044,11 +3327,11 @@ export declare namespace sqladmin_v1 {
|
|
|
3044
3327
|
*/
|
|
3045
3328
|
export interface Schema$SqlServerUserDetails {
|
|
3046
3329
|
/**
|
|
3047
|
-
*
|
|
3330
|
+
* Indicates if the user has been disabled.
|
|
3048
3331
|
*/
|
|
3049
3332
|
disabled?: boolean | null;
|
|
3050
3333
|
/**
|
|
3051
|
-
*
|
|
3334
|
+
* Indicates the server roles for this user.
|
|
3052
3335
|
*/
|
|
3053
3336
|
serverRoles?: string[] | null;
|
|
3054
3337
|
}
|
|
@@ -3190,6 +3473,11 @@ export declare namespace sqladmin_v1 {
|
|
|
3190
3473
|
*/
|
|
3191
3474
|
message?: string | null;
|
|
3192
3475
|
}
|
|
3476
|
+
/**
|
|
3477
|
+
* Request message for switching over a `BlueGreenDeployment` resource.
|
|
3478
|
+
*/
|
|
3479
|
+
export interface Schema$SwitchoverBlueGreenDeploymentRequest {
|
|
3480
|
+
}
|
|
3193
3481
|
/**
|
|
3194
3482
|
* Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL external server initial dump.
|
|
3195
3483
|
*/
|
|
@@ -3216,6 +3504,15 @@ export declare namespace sqladmin_v1 {
|
|
|
3216
3504
|
*/
|
|
3217
3505
|
targetValue?: number | null;
|
|
3218
3506
|
}
|
|
3507
|
+
/**
|
|
3508
|
+
* The target instance for the Blue-Green deployment.
|
|
3509
|
+
*/
|
|
3510
|
+
export interface Schema$TargetRole {
|
|
3511
|
+
/**
|
|
3512
|
+
* Output only. The source instance paired with this target instance in a blue-green deployment.
|
|
3513
|
+
*/
|
|
3514
|
+
sourceId?: Schema$InstanceReference;
|
|
3515
|
+
}
|
|
3219
3516
|
/**
|
|
3220
3517
|
* A Google Cloud SQL service tier resource.
|
|
3221
3518
|
*/
|
|
@@ -3319,6 +3616,10 @@ export declare namespace sqladmin_v1 {
|
|
|
3319
3616
|
* 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.
|
|
3320
3617
|
*/
|
|
3321
3618
|
project?: string | null;
|
|
3619
|
+
/**
|
|
3620
|
+
* Optional. The server roles for the SQL Server login.
|
|
3621
|
+
*/
|
|
3622
|
+
serverRoles?: string[] | null;
|
|
3322
3623
|
sqlserverUserDetails?: Schema$SqlServerUserDetails;
|
|
3323
3624
|
/**
|
|
3324
3625
|
* The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
|
|
@@ -4191,31 +4492,508 @@ export declare namespace sqladmin_v1 {
|
|
|
4191
4492
|
* // Request body metadata
|
|
4192
4493
|
* requestBody: {
|
|
4193
4494
|
* // request body parameters
|
|
4194
|
-
* // {
|
|
4195
|
-
* // "backupInterval": {},
|
|
4196
|
-
* // "backupKind": "my_backupKind",
|
|
4197
|
-
* // "backupRun": "my_backupRun",
|
|
4198
|
-
* // "databaseVersion": "my_databaseVersion",
|
|
4199
|
-
* // "description": "my_description",
|
|
4200
|
-
* // "error": {},
|
|
4201
|
-
* // "expiryTime": "my_expiryTime",
|
|
4202
|
-
* // "instance": "my_instance",
|
|
4203
|
-
* // "instanceDeletionTime": "my_instanceDeletionTime",
|
|
4204
|
-
* // "instanceSettings": {},
|
|
4205
|
-
* // "kind": "my_kind",
|
|
4206
|
-
* // "kmsKey": "my_kmsKey",
|
|
4207
|
-
* // "kmsKeyVersion": "my_kmsKeyVersion",
|
|
4208
|
-
* // "location": "my_location",
|
|
4209
|
-
* // "maxChargeableBytes": "my_maxChargeableBytes",
|
|
4210
|
-
* // "name": "my_name",
|
|
4211
|
-
* // "satisfiesPzi": false,
|
|
4212
|
-
* // "satisfiesPzs": false,
|
|
4213
|
-
* // "selfLink": "my_selfLink",
|
|
4214
|
-
* // "state": "my_state",
|
|
4215
|
-
* // "timeZone": "my_timeZone",
|
|
4216
|
-
* // "ttlDays": "my_ttlDays",
|
|
4217
|
-
* // "type": "my_type"
|
|
4218
|
-
* // }
|
|
4495
|
+
* // {
|
|
4496
|
+
* // "backupInterval": {},
|
|
4497
|
+
* // "backupKind": "my_backupKind",
|
|
4498
|
+
* // "backupRun": "my_backupRun",
|
|
4499
|
+
* // "databaseVersion": "my_databaseVersion",
|
|
4500
|
+
* // "description": "my_description",
|
|
4501
|
+
* // "error": {},
|
|
4502
|
+
* // "expiryTime": "my_expiryTime",
|
|
4503
|
+
* // "instance": "my_instance",
|
|
4504
|
+
* // "instanceDeletionTime": "my_instanceDeletionTime",
|
|
4505
|
+
* // "instanceSettings": {},
|
|
4506
|
+
* // "kind": "my_kind",
|
|
4507
|
+
* // "kmsKey": "my_kmsKey",
|
|
4508
|
+
* // "kmsKeyVersion": "my_kmsKeyVersion",
|
|
4509
|
+
* // "location": "my_location",
|
|
4510
|
+
* // "maxChargeableBytes": "my_maxChargeableBytes",
|
|
4511
|
+
* // "name": "my_name",
|
|
4512
|
+
* // "satisfiesPzi": false,
|
|
4513
|
+
* // "satisfiesPzs": false,
|
|
4514
|
+
* // "selfLink": "my_selfLink",
|
|
4515
|
+
* // "state": "my_state",
|
|
4516
|
+
* // "timeZone": "my_timeZone",
|
|
4517
|
+
* // "ttlDays": "my_ttlDays",
|
|
4518
|
+
* // "type": "my_type"
|
|
4519
|
+
* // }
|
|
4520
|
+
* },
|
|
4521
|
+
* });
|
|
4522
|
+
* console.log(res.data);
|
|
4523
|
+
*
|
|
4524
|
+
* // Example response
|
|
4525
|
+
* // {
|
|
4526
|
+
* // "acquireSsrsLeaseContext": {},
|
|
4527
|
+
* // "apiWarning": {},
|
|
4528
|
+
* // "backupContext": {},
|
|
4529
|
+
* // "endTime": "my_endTime",
|
|
4530
|
+
* // "error": {},
|
|
4531
|
+
* // "exportContext": {},
|
|
4532
|
+
* // "importContext": {},
|
|
4533
|
+
* // "insertTime": "my_insertTime",
|
|
4534
|
+
* // "kind": "my_kind",
|
|
4535
|
+
* // "name": "my_name",
|
|
4536
|
+
* // "operationType": "my_operationType",
|
|
4537
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
4538
|
+
* // "selfLink": "my_selfLink",
|
|
4539
|
+
* // "startTime": "my_startTime",
|
|
4540
|
+
* // "status": "my_status",
|
|
4541
|
+
* // "subOperationType": {},
|
|
4542
|
+
* // "targetId": "my_targetId",
|
|
4543
|
+
* // "targetLink": "my_targetLink",
|
|
4544
|
+
* // "targetProject": "my_targetProject",
|
|
4545
|
+
* // "user": "my_user"
|
|
4546
|
+
* // }
|
|
4547
|
+
* }
|
|
4548
|
+
*
|
|
4549
|
+
* main().catch(e => {
|
|
4550
|
+
* console.error(e);
|
|
4551
|
+
* throw e;
|
|
4552
|
+
* });
|
|
4553
|
+
*
|
|
4554
|
+
* ```
|
|
4555
|
+
*
|
|
4556
|
+
* @param params - Parameters for request
|
|
4557
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4558
|
+
* @param callback - Optional callback that handles the response.
|
|
4559
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4560
|
+
*/
|
|
4561
|
+
UpdateBackup(params: Params$Resource$Backups$Updatebackup, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4562
|
+
UpdateBackup(params?: Params$Resource$Backups$Updatebackup, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
4563
|
+
UpdateBackup(params: Params$Resource$Backups$Updatebackup, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4564
|
+
UpdateBackup(params: Params$Resource$Backups$Updatebackup, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4565
|
+
UpdateBackup(params: Params$Resource$Backups$Updatebackup, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4566
|
+
UpdateBackup(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4567
|
+
}
|
|
4568
|
+
export interface Params$Resource$Backups$Createbackup extends StandardParameters {
|
|
4569
|
+
/**
|
|
4570
|
+
* Required. The parent resource where this backup is created. Format: projects/{project\}
|
|
4571
|
+
*/
|
|
4572
|
+
parent?: string;
|
|
4573
|
+
/**
|
|
4574
|
+
* Request body metadata
|
|
4575
|
+
*/
|
|
4576
|
+
requestBody?: Schema$Backup;
|
|
4577
|
+
}
|
|
4578
|
+
export interface Params$Resource$Backups$Deletebackup extends StandardParameters {
|
|
4579
|
+
/**
|
|
4580
|
+
* Required. The name of the backup to delete. Format: projects/{project\}/backups/{backup\}
|
|
4581
|
+
*/
|
|
4582
|
+
name?: string;
|
|
4583
|
+
}
|
|
4584
|
+
export interface Params$Resource$Backups$Getbackup extends StandardParameters {
|
|
4585
|
+
/**
|
|
4586
|
+
* Required. The name of the backup to retrieve. Format: projects/{project\}/backups/{backup\}
|
|
4587
|
+
*/
|
|
4588
|
+
name?: string;
|
|
4589
|
+
}
|
|
4590
|
+
export interface Params$Resource$Backups$Listbackups extends StandardParameters {
|
|
4591
|
+
/**
|
|
4592
|
+
* Multiple filter queries are separated by spaces. For example, 'instance:abc AND type:FINAL, 'location:us', 'backupInterval.startTime\>=1950-01-01T01:01:25.771Z'. You can filter by type, instance, backupInterval.startTime (creation time), or location.
|
|
4593
|
+
*/
|
|
4594
|
+
filter?: string;
|
|
4595
|
+
/**
|
|
4596
|
+
* The maximum number of backups to return per response. The service might return fewer backups than this value. If a value for this parameter isn't specified, then, at most, 500 backups are returned. The maximum value is 2,000. Any values that you set, which are greater than 2,000, are changed to 2,000.
|
|
4597
|
+
*/
|
|
4598
|
+
pageSize?: number;
|
|
4599
|
+
/**
|
|
4600
|
+
* A page token, received from a previous `ListBackups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListBackups` must match the call that provided the page token.
|
|
4601
|
+
*/
|
|
4602
|
+
pageToken?: string;
|
|
4603
|
+
/**
|
|
4604
|
+
* Required. The parent that owns this collection of backups. Format: projects/{project\}
|
|
4605
|
+
*/
|
|
4606
|
+
parent?: string;
|
|
4607
|
+
}
|
|
4608
|
+
export interface Params$Resource$Backups$Updatebackup extends StandardParameters {
|
|
4609
|
+
/**
|
|
4610
|
+
* Output only. The resource name of the backup. Format: projects/{project\}/backups/{backup\}.
|
|
4611
|
+
*/
|
|
4612
|
+
name?: string;
|
|
4613
|
+
/**
|
|
4614
|
+
* The list of fields that you can update. You can update only the description and retention period of the final backup.
|
|
4615
|
+
*/
|
|
4616
|
+
updateMask?: string;
|
|
4617
|
+
/**
|
|
4618
|
+
* Request body metadata
|
|
4619
|
+
*/
|
|
4620
|
+
requestBody?: Schema$Backup;
|
|
4621
|
+
}
|
|
4622
|
+
export class Resource$Bluegreendeployments {
|
|
4623
|
+
context: APIRequestContext;
|
|
4624
|
+
constructor(context: APIRequestContext);
|
|
4625
|
+
/**
|
|
4626
|
+
* Creates a blue-green deployment under a given project and location.
|
|
4627
|
+
* @example
|
|
4628
|
+
* ```js
|
|
4629
|
+
* // Before running the sample:
|
|
4630
|
+
* // - Enable the API at:
|
|
4631
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
4632
|
+
* // - Login into gcloud by running:
|
|
4633
|
+
* // ```sh
|
|
4634
|
+
* // $ gcloud auth application-default login
|
|
4635
|
+
* // ```
|
|
4636
|
+
* // - Install the npm module by running:
|
|
4637
|
+
* // ```sh
|
|
4638
|
+
* // $ npm install googleapis
|
|
4639
|
+
* // ```
|
|
4640
|
+
*
|
|
4641
|
+
* const {google} = require('googleapis');
|
|
4642
|
+
* const sqladmin = google.sqladmin('v1');
|
|
4643
|
+
*
|
|
4644
|
+
* async function main() {
|
|
4645
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4646
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4647
|
+
* scopes: [
|
|
4648
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4649
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
4650
|
+
* ],
|
|
4651
|
+
* });
|
|
4652
|
+
*
|
|
4653
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4654
|
+
* const authClient = await auth.getClient();
|
|
4655
|
+
* google.options({auth: authClient});
|
|
4656
|
+
*
|
|
4657
|
+
* // Do the magic
|
|
4658
|
+
* const res = await sql.blueGreenDeployments.create({
|
|
4659
|
+
* // Required. The ID to use for the blue-green deployment, which will become the final component of the deployment's resource name. The ID must be unique within the given project and location and between 2-63 characters.
|
|
4660
|
+
* blueGreenDeploymentId: 'placeholder-value',
|
|
4661
|
+
* // Required. The parent resource where this blue-green deployment will be created. Format: projects/{project\}/locations/{location\}
|
|
4662
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
4663
|
+
*
|
|
4664
|
+
* // Request body metadata
|
|
4665
|
+
* requestBody: {
|
|
4666
|
+
* // request body parameters
|
|
4667
|
+
* // {
|
|
4668
|
+
* // "createTime": "my_createTime",
|
|
4669
|
+
* // "deploymentMappings": [],
|
|
4670
|
+
* // "deploymentTasks": {},
|
|
4671
|
+
* // "description": "my_description",
|
|
4672
|
+
* // "errorDetail": "my_errorDetail",
|
|
4673
|
+
* // "name": "my_name",
|
|
4674
|
+
* // "requestedConfig": {},
|
|
4675
|
+
* // "sourceInstance": "my_sourceInstance",
|
|
4676
|
+
* // "state": "my_state",
|
|
4677
|
+
* // "switchoverTargetInstance": "my_switchoverTargetInstance"
|
|
4678
|
+
* // }
|
|
4679
|
+
* },
|
|
4680
|
+
* });
|
|
4681
|
+
* console.log(res.data);
|
|
4682
|
+
*
|
|
4683
|
+
* // Example response
|
|
4684
|
+
* // {
|
|
4685
|
+
* // "acquireSsrsLeaseContext": {},
|
|
4686
|
+
* // "apiWarning": {},
|
|
4687
|
+
* // "backupContext": {},
|
|
4688
|
+
* // "endTime": "my_endTime",
|
|
4689
|
+
* // "error": {},
|
|
4690
|
+
* // "exportContext": {},
|
|
4691
|
+
* // "importContext": {},
|
|
4692
|
+
* // "insertTime": "my_insertTime",
|
|
4693
|
+
* // "kind": "my_kind",
|
|
4694
|
+
* // "name": "my_name",
|
|
4695
|
+
* // "operationType": "my_operationType",
|
|
4696
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
4697
|
+
* // "selfLink": "my_selfLink",
|
|
4698
|
+
* // "startTime": "my_startTime",
|
|
4699
|
+
* // "status": "my_status",
|
|
4700
|
+
* // "subOperationType": {},
|
|
4701
|
+
* // "targetId": "my_targetId",
|
|
4702
|
+
* // "targetLink": "my_targetLink",
|
|
4703
|
+
* // "targetProject": "my_targetProject",
|
|
4704
|
+
* // "user": "my_user"
|
|
4705
|
+
* // }
|
|
4706
|
+
* }
|
|
4707
|
+
*
|
|
4708
|
+
* main().catch(e => {
|
|
4709
|
+
* console.error(e);
|
|
4710
|
+
* throw e;
|
|
4711
|
+
* });
|
|
4712
|
+
*
|
|
4713
|
+
* ```
|
|
4714
|
+
*
|
|
4715
|
+
* @param params - Parameters for request
|
|
4716
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4717
|
+
* @param callback - Optional callback that handles the response.
|
|
4718
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4719
|
+
*/
|
|
4720
|
+
create(params: Params$Resource$Bluegreendeployments$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4721
|
+
create(params?: Params$Resource$Bluegreendeployments$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
4722
|
+
create(params: Params$Resource$Bluegreendeployments$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4723
|
+
create(params: Params$Resource$Bluegreendeployments$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4724
|
+
create(params: Params$Resource$Bluegreendeployments$Create, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4725
|
+
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4726
|
+
/**
|
|
4727
|
+
* Deletes a blue-green deployment.
|
|
4728
|
+
* @example
|
|
4729
|
+
* ```js
|
|
4730
|
+
* // Before running the sample:
|
|
4731
|
+
* // - Enable the API at:
|
|
4732
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
4733
|
+
* // - Login into gcloud by running:
|
|
4734
|
+
* // ```sh
|
|
4735
|
+
* // $ gcloud auth application-default login
|
|
4736
|
+
* // ```
|
|
4737
|
+
* // - Install the npm module by running:
|
|
4738
|
+
* // ```sh
|
|
4739
|
+
* // $ npm install googleapis
|
|
4740
|
+
* // ```
|
|
4741
|
+
*
|
|
4742
|
+
* const {google} = require('googleapis');
|
|
4743
|
+
* const sqladmin = google.sqladmin('v1');
|
|
4744
|
+
*
|
|
4745
|
+
* async function main() {
|
|
4746
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4747
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4748
|
+
* scopes: [
|
|
4749
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4750
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
4751
|
+
* ],
|
|
4752
|
+
* });
|
|
4753
|
+
*
|
|
4754
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4755
|
+
* const authClient = await auth.getClient();
|
|
4756
|
+
* google.options({auth: authClient});
|
|
4757
|
+
*
|
|
4758
|
+
* // Do the magic
|
|
4759
|
+
* const res = await sql.blueGreenDeployments.delete({
|
|
4760
|
+
* // Optional. If set to true, and the switchover is complete, this deletes the old source instance along with the deployment.
|
|
4761
|
+
* deleteOldSource: 'placeholder-value',
|
|
4762
|
+
* // Required. The name of the blue-green deployment to delete. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
|
|
4763
|
+
* name: 'projects/my-project/locations/my-location/blueGreenDeployments/my-blueGreenDeployment',
|
|
4764
|
+
* });
|
|
4765
|
+
* console.log(res.data);
|
|
4766
|
+
*
|
|
4767
|
+
* // Example response
|
|
4768
|
+
* // {
|
|
4769
|
+
* // "acquireSsrsLeaseContext": {},
|
|
4770
|
+
* // "apiWarning": {},
|
|
4771
|
+
* // "backupContext": {},
|
|
4772
|
+
* // "endTime": "my_endTime",
|
|
4773
|
+
* // "error": {},
|
|
4774
|
+
* // "exportContext": {},
|
|
4775
|
+
* // "importContext": {},
|
|
4776
|
+
* // "insertTime": "my_insertTime",
|
|
4777
|
+
* // "kind": "my_kind",
|
|
4778
|
+
* // "name": "my_name",
|
|
4779
|
+
* // "operationType": "my_operationType",
|
|
4780
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
4781
|
+
* // "selfLink": "my_selfLink",
|
|
4782
|
+
* // "startTime": "my_startTime",
|
|
4783
|
+
* // "status": "my_status",
|
|
4784
|
+
* // "subOperationType": {},
|
|
4785
|
+
* // "targetId": "my_targetId",
|
|
4786
|
+
* // "targetLink": "my_targetLink",
|
|
4787
|
+
* // "targetProject": "my_targetProject",
|
|
4788
|
+
* // "user": "my_user"
|
|
4789
|
+
* // }
|
|
4790
|
+
* }
|
|
4791
|
+
*
|
|
4792
|
+
* main().catch(e => {
|
|
4793
|
+
* console.error(e);
|
|
4794
|
+
* throw e;
|
|
4795
|
+
* });
|
|
4796
|
+
*
|
|
4797
|
+
* ```
|
|
4798
|
+
*
|
|
4799
|
+
* @param params - Parameters for request
|
|
4800
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4801
|
+
* @param callback - Optional callback that handles the response.
|
|
4802
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4803
|
+
*/
|
|
4804
|
+
delete(params: Params$Resource$Bluegreendeployments$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4805
|
+
delete(params?: Params$Resource$Bluegreendeployments$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
4806
|
+
delete(params: Params$Resource$Bluegreendeployments$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4807
|
+
delete(params: Params$Resource$Bluegreendeployments$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4808
|
+
delete(params: Params$Resource$Bluegreendeployments$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4809
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4810
|
+
/**
|
|
4811
|
+
* Retrieves a blue-green deployment resource under a given project and location.
|
|
4812
|
+
* @example
|
|
4813
|
+
* ```js
|
|
4814
|
+
* // Before running the sample:
|
|
4815
|
+
* // - Enable the API at:
|
|
4816
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
4817
|
+
* // - Login into gcloud by running:
|
|
4818
|
+
* // ```sh
|
|
4819
|
+
* // $ gcloud auth application-default login
|
|
4820
|
+
* // ```
|
|
4821
|
+
* // - Install the npm module by running:
|
|
4822
|
+
* // ```sh
|
|
4823
|
+
* // $ npm install googleapis
|
|
4824
|
+
* // ```
|
|
4825
|
+
*
|
|
4826
|
+
* const {google} = require('googleapis');
|
|
4827
|
+
* const sqladmin = google.sqladmin('v1');
|
|
4828
|
+
*
|
|
4829
|
+
* async function main() {
|
|
4830
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4831
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4832
|
+
* scopes: [
|
|
4833
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4834
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
4835
|
+
* ],
|
|
4836
|
+
* });
|
|
4837
|
+
*
|
|
4838
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4839
|
+
* const authClient = await auth.getClient();
|
|
4840
|
+
* google.options({auth: authClient});
|
|
4841
|
+
*
|
|
4842
|
+
* // Do the magic
|
|
4843
|
+
* const res = await sql.blueGreenDeployments.get({
|
|
4844
|
+
* // Required. The name of the blue-green deployment to retrieve. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
|
|
4845
|
+
* name: 'projects/my-project/locations/my-location/blueGreenDeployments/my-blueGreenDeployment',
|
|
4846
|
+
* // Optional. Specifies whether to return the basic or detailed view of the resource in the response.
|
|
4847
|
+
* view: 'placeholder-value',
|
|
4848
|
+
* });
|
|
4849
|
+
* console.log(res.data);
|
|
4850
|
+
*
|
|
4851
|
+
* // Example response
|
|
4852
|
+
* // {
|
|
4853
|
+
* // "createTime": "my_createTime",
|
|
4854
|
+
* // "deploymentMappings": [],
|
|
4855
|
+
* // "deploymentTasks": {},
|
|
4856
|
+
* // "description": "my_description",
|
|
4857
|
+
* // "errorDetail": "my_errorDetail",
|
|
4858
|
+
* // "name": "my_name",
|
|
4859
|
+
* // "requestedConfig": {},
|
|
4860
|
+
* // "sourceInstance": "my_sourceInstance",
|
|
4861
|
+
* // "state": "my_state",
|
|
4862
|
+
* // "switchoverTargetInstance": "my_switchoverTargetInstance"
|
|
4863
|
+
* // }
|
|
4864
|
+
* }
|
|
4865
|
+
*
|
|
4866
|
+
* main().catch(e => {
|
|
4867
|
+
* console.error(e);
|
|
4868
|
+
* throw e;
|
|
4869
|
+
* });
|
|
4870
|
+
*
|
|
4871
|
+
* ```
|
|
4872
|
+
*
|
|
4873
|
+
* @param params - Parameters for request
|
|
4874
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4875
|
+
* @param callback - Optional callback that handles the response.
|
|
4876
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4877
|
+
*/
|
|
4878
|
+
get(params: Params$Resource$Bluegreendeployments$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4879
|
+
get(params?: Params$Resource$Bluegreendeployments$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$BlueGreenDeployment>>;
|
|
4880
|
+
get(params: Params$Resource$Bluegreendeployments$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4881
|
+
get(params: Params$Resource$Bluegreendeployments$Get, options: MethodOptions | BodyResponseCallback<Schema$BlueGreenDeployment>, callback: BodyResponseCallback<Schema$BlueGreenDeployment>): void;
|
|
4882
|
+
get(params: Params$Resource$Bluegreendeployments$Get, callback: BodyResponseCallback<Schema$BlueGreenDeployment>): void;
|
|
4883
|
+
get(callback: BodyResponseCallback<Schema$BlueGreenDeployment>): void;
|
|
4884
|
+
/**
|
|
4885
|
+
* Lists blue-green deployments under a given project.
|
|
4886
|
+
* @example
|
|
4887
|
+
* ```js
|
|
4888
|
+
* // Before running the sample:
|
|
4889
|
+
* // - Enable the API at:
|
|
4890
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
4891
|
+
* // - Login into gcloud by running:
|
|
4892
|
+
* // ```sh
|
|
4893
|
+
* // $ gcloud auth application-default login
|
|
4894
|
+
* // ```
|
|
4895
|
+
* // - Install the npm module by running:
|
|
4896
|
+
* // ```sh
|
|
4897
|
+
* // $ npm install googleapis
|
|
4898
|
+
* // ```
|
|
4899
|
+
*
|
|
4900
|
+
* const {google} = require('googleapis');
|
|
4901
|
+
* const sqladmin = google.sqladmin('v1');
|
|
4902
|
+
*
|
|
4903
|
+
* async function main() {
|
|
4904
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4905
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4906
|
+
* scopes: [
|
|
4907
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4908
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
4909
|
+
* ],
|
|
4910
|
+
* });
|
|
4911
|
+
*
|
|
4912
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4913
|
+
* const authClient = await auth.getClient();
|
|
4914
|
+
* google.options({auth: authClient});
|
|
4915
|
+
*
|
|
4916
|
+
* // Do the magic
|
|
4917
|
+
* const res = await sql.blueGreenDeployments.list({
|
|
4918
|
+
* // Optional. A filter expression that filters the results.
|
|
4919
|
+
* filter: 'placeholder-value',
|
|
4920
|
+
* // Optional. A comma-separated list of fields to order the results by.
|
|
4921
|
+
* orderBy: 'placeholder-value',
|
|
4922
|
+
* // Optional. The maximum number of deployments to return. The service may return fewer deployments than this value. If unspecified, at most 500 deployments are returned. The maximum value is 1000; values above 1000 are treated as 1000.
|
|
4923
|
+
* pageSize: 'placeholder-value',
|
|
4924
|
+
* // Optional. A page token, received from a previous `ListBlueGreenDeployments` call. Provide this to retrieve the subsequent page.
|
|
4925
|
+
* pageToken: 'placeholder-value',
|
|
4926
|
+
* // Required. The parent resource whose blue-green deployments are to be listed. Format: projects/{project\}/locations/{location\}
|
|
4927
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
4928
|
+
* });
|
|
4929
|
+
* console.log(res.data);
|
|
4930
|
+
*
|
|
4931
|
+
* // Example response
|
|
4932
|
+
* // {
|
|
4933
|
+
* // "blueGreenDeployments": [],
|
|
4934
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
4935
|
+
* // }
|
|
4936
|
+
* }
|
|
4937
|
+
*
|
|
4938
|
+
* main().catch(e => {
|
|
4939
|
+
* console.error(e);
|
|
4940
|
+
* throw e;
|
|
4941
|
+
* });
|
|
4942
|
+
*
|
|
4943
|
+
* ```
|
|
4944
|
+
*
|
|
4945
|
+
* @param params - Parameters for request
|
|
4946
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4947
|
+
* @param callback - Optional callback that handles the response.
|
|
4948
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4949
|
+
*/
|
|
4950
|
+
list(params: Params$Resource$Bluegreendeployments$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4951
|
+
list(params?: Params$Resource$Bluegreendeployments$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListBlueGreenDeploymentsResponse>>;
|
|
4952
|
+
list(params: Params$Resource$Bluegreendeployments$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4953
|
+
list(params: Params$Resource$Bluegreendeployments$List, options: MethodOptions | BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>, callback: BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>): void;
|
|
4954
|
+
list(params: Params$Resource$Bluegreendeployments$List, callback: BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>): void;
|
|
4955
|
+
list(callback: BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>): void;
|
|
4956
|
+
/**
|
|
4957
|
+
* Switches over to green instance for a blue-green deployment.
|
|
4958
|
+
* @example
|
|
4959
|
+
* ```js
|
|
4960
|
+
* // Before running the sample:
|
|
4961
|
+
* // - Enable the API at:
|
|
4962
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
4963
|
+
* // - Login into gcloud by running:
|
|
4964
|
+
* // ```sh
|
|
4965
|
+
* // $ gcloud auth application-default login
|
|
4966
|
+
* // ```
|
|
4967
|
+
* // - Install the npm module by running:
|
|
4968
|
+
* // ```sh
|
|
4969
|
+
* // $ npm install googleapis
|
|
4970
|
+
* // ```
|
|
4971
|
+
*
|
|
4972
|
+
* const {google} = require('googleapis');
|
|
4973
|
+
* const sqladmin = google.sqladmin('v1');
|
|
4974
|
+
*
|
|
4975
|
+
* async function main() {
|
|
4976
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4977
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4978
|
+
* scopes: [
|
|
4979
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4980
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
4981
|
+
* ],
|
|
4982
|
+
* });
|
|
4983
|
+
*
|
|
4984
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4985
|
+
* const authClient = await auth.getClient();
|
|
4986
|
+
* google.options({auth: authClient});
|
|
4987
|
+
*
|
|
4988
|
+
* // Do the magic
|
|
4989
|
+
* const res = await sql.blueGreenDeployments.switchover({
|
|
4990
|
+
* // Required. The name of the blue-green deployment to switch over. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
|
|
4991
|
+
* name: 'projects/my-project/locations/my-location/blueGreenDeployments/my-blueGreenDeployment',
|
|
4992
|
+
*
|
|
4993
|
+
* // Request body metadata
|
|
4994
|
+
* requestBody: {
|
|
4995
|
+
* // request body parameters
|
|
4996
|
+
* // {}
|
|
4219
4997
|
* },
|
|
4220
4998
|
* });
|
|
4221
4999
|
* console.log(res.data);
|
|
@@ -4257,66 +5035,78 @@ export declare namespace sqladmin_v1 {
|
|
|
4257
5035
|
* @param callback - Optional callback that handles the response.
|
|
4258
5036
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4259
5037
|
*/
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
5038
|
+
switchover(params: Params$Resource$Bluegreendeployments$Switchover, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5039
|
+
switchover(params?: Params$Resource$Bluegreendeployments$Switchover, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
5040
|
+
switchover(params: Params$Resource$Bluegreendeployments$Switchover, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5041
|
+
switchover(params: Params$Resource$Bluegreendeployments$Switchover, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5042
|
+
switchover(params: Params$Resource$Bluegreendeployments$Switchover, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5043
|
+
switchover(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4266
5044
|
}
|
|
4267
|
-
export interface Params$Resource$
|
|
5045
|
+
export interface Params$Resource$Bluegreendeployments$Create extends StandardParameters {
|
|
4268
5046
|
/**
|
|
4269
|
-
* Required. The
|
|
5047
|
+
* Required. The ID to use for the blue-green deployment, which will become the final component of the deployment's resource name. The ID must be unique within the given project and location and between 2-63 characters.
|
|
5048
|
+
*/
|
|
5049
|
+
blueGreenDeploymentId?: string;
|
|
5050
|
+
/**
|
|
5051
|
+
* Required. The parent resource where this blue-green deployment will be created. Format: projects/{project\}/locations/{location\}
|
|
4270
5052
|
*/
|
|
4271
5053
|
parent?: string;
|
|
4272
5054
|
/**
|
|
4273
5055
|
* Request body metadata
|
|
4274
5056
|
*/
|
|
4275
|
-
requestBody?: Schema$
|
|
5057
|
+
requestBody?: Schema$BlueGreenDeployment;
|
|
4276
5058
|
}
|
|
4277
|
-
export interface Params$Resource$
|
|
5059
|
+
export interface Params$Resource$Bluegreendeployments$Delete extends StandardParameters {
|
|
4278
5060
|
/**
|
|
4279
|
-
*
|
|
5061
|
+
* Optional. If set to true, and the switchover is complete, this deletes the old source instance along with the deployment.
|
|
5062
|
+
*/
|
|
5063
|
+
deleteOldSource?: boolean;
|
|
5064
|
+
/**
|
|
5065
|
+
* Required. The name of the blue-green deployment to delete. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
|
|
4280
5066
|
*/
|
|
4281
5067
|
name?: string;
|
|
4282
5068
|
}
|
|
4283
|
-
export interface Params$Resource$
|
|
5069
|
+
export interface Params$Resource$Bluegreendeployments$Get extends StandardParameters {
|
|
4284
5070
|
/**
|
|
4285
|
-
* Required. The name of the
|
|
5071
|
+
* Required. The name of the blue-green deployment to retrieve. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
|
|
4286
5072
|
*/
|
|
4287
5073
|
name?: string;
|
|
5074
|
+
/**
|
|
5075
|
+
* Optional. Specifies whether to return the basic or detailed view of the resource in the response.
|
|
5076
|
+
*/
|
|
5077
|
+
view?: string;
|
|
4288
5078
|
}
|
|
4289
|
-
export interface Params$Resource$
|
|
5079
|
+
export interface Params$Resource$Bluegreendeployments$List extends StandardParameters {
|
|
4290
5080
|
/**
|
|
4291
|
-
*
|
|
5081
|
+
* Optional. A filter expression that filters the results.
|
|
4292
5082
|
*/
|
|
4293
5083
|
filter?: string;
|
|
4294
5084
|
/**
|
|
4295
|
-
*
|
|
5085
|
+
* Optional. A comma-separated list of fields to order the results by.
|
|
5086
|
+
*/
|
|
5087
|
+
orderBy?: string;
|
|
5088
|
+
/**
|
|
5089
|
+
* Optional. The maximum number of deployments to return. The service may return fewer deployments than this value. If unspecified, at most 500 deployments are returned. The maximum value is 1000; values above 1000 are treated as 1000.
|
|
4296
5090
|
*/
|
|
4297
5091
|
pageSize?: number;
|
|
4298
5092
|
/**
|
|
4299
|
-
* A page token, received from a previous `
|
|
5093
|
+
* Optional. A page token, received from a previous `ListBlueGreenDeployments` call. Provide this to retrieve the subsequent page.
|
|
4300
5094
|
*/
|
|
4301
5095
|
pageToken?: string;
|
|
4302
5096
|
/**
|
|
4303
|
-
* Required. The parent
|
|
5097
|
+
* Required. The parent resource whose blue-green deployments are to be listed. Format: projects/{project\}/locations/{location\}
|
|
4304
5098
|
*/
|
|
4305
5099
|
parent?: string;
|
|
4306
5100
|
}
|
|
4307
|
-
export interface Params$Resource$
|
|
5101
|
+
export interface Params$Resource$Bluegreendeployments$Switchover extends StandardParameters {
|
|
4308
5102
|
/**
|
|
4309
|
-
*
|
|
5103
|
+
* Required. The name of the blue-green deployment to switch over. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
|
|
4310
5104
|
*/
|
|
4311
5105
|
name?: string;
|
|
4312
|
-
/**
|
|
4313
|
-
* The list of fields that you can update. You can update only the description and retention period of the final backup.
|
|
4314
|
-
*/
|
|
4315
|
-
updateMask?: string;
|
|
4316
5106
|
/**
|
|
4317
5107
|
* Request body metadata
|
|
4318
5108
|
*/
|
|
4319
|
-
requestBody?: Schema$
|
|
5109
|
+
requestBody?: Schema$SwitchoverBlueGreenDeploymentRequest;
|
|
4320
5110
|
}
|
|
4321
5111
|
export class Resource$Connect {
|
|
4322
5112
|
context: APIRequestContext;
|
|
@@ -4443,6 +5233,7 @@ export declare namespace sqladmin_v1 {
|
|
|
4443
5233
|
* // Example response
|
|
4444
5234
|
* // {
|
|
4445
5235
|
* // "backendType": "my_backendType",
|
|
5236
|
+
* // "connectionName": "my_connectionName",
|
|
4446
5237
|
* // "customSubjectAlternativeNames": [],
|
|
4447
5238
|
* // "databaseVersion": "my_databaseVersion",
|
|
4448
5239
|
* // "dnsName": "my_dnsName",
|
|
@@ -4477,6 +5268,85 @@ export declare namespace sqladmin_v1 {
|
|
|
4477
5268
|
get(params: Params$Resource$Connect$Get, options: MethodOptions | BodyResponseCallback<Schema$ConnectSettings>, callback: BodyResponseCallback<Schema$ConnectSettings>): void;
|
|
4478
5269
|
get(params: Params$Resource$Connect$Get, callback: BodyResponseCallback<Schema$ConnectSettings>): void;
|
|
4479
5270
|
get(callback: BodyResponseCallback<Schema$ConnectSettings>): void;
|
|
5271
|
+
/**
|
|
5272
|
+
* Retrieves connect settings about a Cloud SQL instance using the instance DNS name.
|
|
5273
|
+
* @example
|
|
5274
|
+
* ```js
|
|
5275
|
+
* // Before running the sample:
|
|
5276
|
+
* // - Enable the API at:
|
|
5277
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
5278
|
+
* // - Login into gcloud by running:
|
|
5279
|
+
* // ```sh
|
|
5280
|
+
* // $ gcloud auth application-default login
|
|
5281
|
+
* // ```
|
|
5282
|
+
* // - Install the npm module by running:
|
|
5283
|
+
* // ```sh
|
|
5284
|
+
* // $ npm install googleapis
|
|
5285
|
+
* // ```
|
|
5286
|
+
*
|
|
5287
|
+
* const {google} = require('googleapis');
|
|
5288
|
+
* const sqladmin = google.sqladmin('v1');
|
|
5289
|
+
*
|
|
5290
|
+
* async function main() {
|
|
5291
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5292
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5293
|
+
* scopes: [
|
|
5294
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5295
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
5296
|
+
* ],
|
|
5297
|
+
* });
|
|
5298
|
+
*
|
|
5299
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5300
|
+
* const authClient = await auth.getClient();
|
|
5301
|
+
* google.options({auth: authClient});
|
|
5302
|
+
*
|
|
5303
|
+
* // Do the magic
|
|
5304
|
+
* const res = await sql.connect.resolve({
|
|
5305
|
+
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
5306
|
+
* dnsName: 'placeholder-value',
|
|
5307
|
+
* // Required. The region of the instance.
|
|
5308
|
+
* location: 'placeholder-value',
|
|
5309
|
+
* });
|
|
5310
|
+
* console.log(res.data);
|
|
5311
|
+
*
|
|
5312
|
+
* // Example response
|
|
5313
|
+
* // {
|
|
5314
|
+
* // "backendType": "my_backendType",
|
|
5315
|
+
* // "connectionName": "my_connectionName",
|
|
5316
|
+
* // "customSubjectAlternativeNames": [],
|
|
5317
|
+
* // "databaseVersion": "my_databaseVersion",
|
|
5318
|
+
* // "dnsName": "my_dnsName",
|
|
5319
|
+
* // "dnsNames": [],
|
|
5320
|
+
* // "ipAddresses": [],
|
|
5321
|
+
* // "kind": "my_kind",
|
|
5322
|
+
* // "mdxProtocolSupport": [],
|
|
5323
|
+
* // "nodeCount": 0,
|
|
5324
|
+
* // "nodes": [],
|
|
5325
|
+
* // "pscEnabled": false,
|
|
5326
|
+
* // "region": "my_region",
|
|
5327
|
+
* // "serverCaCert": {},
|
|
5328
|
+
* // "serverCaMode": "my_serverCaMode"
|
|
5329
|
+
* // }
|
|
5330
|
+
* }
|
|
5331
|
+
*
|
|
5332
|
+
* main().catch(e => {
|
|
5333
|
+
* console.error(e);
|
|
5334
|
+
* throw e;
|
|
5335
|
+
* });
|
|
5336
|
+
*
|
|
5337
|
+
* ```
|
|
5338
|
+
*
|
|
5339
|
+
* @param params - Parameters for request
|
|
5340
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5341
|
+
* @param callback - Optional callback that handles the response.
|
|
5342
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5343
|
+
*/
|
|
5344
|
+
resolve(params: Params$Resource$Connect$Resolve, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5345
|
+
resolve(params?: Params$Resource$Connect$Resolve, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ConnectSettings>>;
|
|
5346
|
+
resolve(params: Params$Resource$Connect$Resolve, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5347
|
+
resolve(params: Params$Resource$Connect$Resolve, options: MethodOptions | BodyResponseCallback<Schema$ConnectSettings>, callback: BodyResponseCallback<Schema$ConnectSettings>): void;
|
|
5348
|
+
resolve(params: Params$Resource$Connect$Resolve, callback: BodyResponseCallback<Schema$ConnectSettings>): void;
|
|
5349
|
+
resolve(callback: BodyResponseCallback<Schema$ConnectSettings>): void;
|
|
4480
5350
|
}
|
|
4481
5351
|
export interface Params$Resource$Connect$Generateephemeralcert extends StandardParameters {
|
|
4482
5352
|
/**
|
|
@@ -4506,6 +5376,16 @@ export declare namespace sqladmin_v1 {
|
|
|
4506
5376
|
*/
|
|
4507
5377
|
readTime?: string;
|
|
4508
5378
|
}
|
|
5379
|
+
export interface Params$Resource$Connect$Resolve extends StandardParameters {
|
|
5380
|
+
/**
|
|
5381
|
+
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
5382
|
+
*/
|
|
5383
|
+
dnsName?: string;
|
|
5384
|
+
/**
|
|
5385
|
+
* Required. The region of the instance.
|
|
5386
|
+
*/
|
|
5387
|
+
location?: string;
|
|
5388
|
+
}
|
|
4509
5389
|
export class Resource$Databases {
|
|
4510
5390
|
context: APIRequestContext;
|
|
4511
5391
|
constructor(context: APIRequestContext);
|
|
@@ -4547,6 +5427,8 @@ export declare namespace sqladmin_v1 {
|
|
|
4547
5427
|
* database: 'placeholder-value',
|
|
4548
5428
|
* // Database instance ID. This does not include the project ID.
|
|
4549
5429
|
* instance: 'placeholder-value',
|
|
5430
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
5431
|
+
* location: 'placeholder-value',
|
|
4550
5432
|
* // Project ID of the project that contains the instance.
|
|
4551
5433
|
* project: 'placeholder-value',
|
|
4552
5434
|
* });
|
|
@@ -4633,6 +5515,8 @@ export declare namespace sqladmin_v1 {
|
|
|
4633
5515
|
* database: 'placeholder-value',
|
|
4634
5516
|
* // Database instance ID. This does not include the project ID.
|
|
4635
5517
|
* instance: 'placeholder-value',
|
|
5518
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
5519
|
+
* location: 'placeholder-value',
|
|
4636
5520
|
* // Project ID of the project that contains the instance.
|
|
4637
5521
|
* project: 'placeholder-value',
|
|
4638
5522
|
* });
|
|
@@ -4706,6 +5590,8 @@ export declare namespace sqladmin_v1 {
|
|
|
4706
5590
|
* const res = await sql.databases.insert({
|
|
4707
5591
|
* // Database instance ID. This does not include the project ID.
|
|
4708
5592
|
* instance: 'placeholder-value',
|
|
5593
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
5594
|
+
* location: 'placeholder-value',
|
|
4709
5595
|
* // Project ID of the project that contains the instance.
|
|
4710
5596
|
* project: 'placeholder-value',
|
|
4711
5597
|
*
|
|
@@ -4806,6 +5692,8 @@ export declare namespace sqladmin_v1 {
|
|
|
4806
5692
|
* const res = await sql.databases.list({
|
|
4807
5693
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
4808
5694
|
* instance: 'placeholder-value',
|
|
5695
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
5696
|
+
* location: 'placeholder-value',
|
|
4809
5697
|
* // Project ID of the project that contains the instance.
|
|
4810
5698
|
* project: 'placeholder-value',
|
|
4811
5699
|
* });
|
|
@@ -4874,6 +5762,8 @@ export declare namespace sqladmin_v1 {
|
|
|
4874
5762
|
* database: 'placeholder-value',
|
|
4875
5763
|
* // Database instance ID. This does not include the project ID.
|
|
4876
5764
|
* instance: 'placeholder-value',
|
|
5765
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
5766
|
+
* location: 'placeholder-value',
|
|
4877
5767
|
* // Project ID of the project that contains the instance.
|
|
4878
5768
|
* project: 'placeholder-value',
|
|
4879
5769
|
*
|
|
@@ -4976,6 +5866,8 @@ export declare namespace sqladmin_v1 {
|
|
|
4976
5866
|
* database: 'placeholder-value',
|
|
4977
5867
|
* // Database instance ID. This does not include the project ID.
|
|
4978
5868
|
* instance: 'placeholder-value',
|
|
5869
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
5870
|
+
* location: 'placeholder-value',
|
|
4979
5871
|
* // Project ID of the project that contains the instance.
|
|
4980
5872
|
* project: 'placeholder-value',
|
|
4981
5873
|
*
|
|
@@ -5050,6 +5942,10 @@ export declare namespace sqladmin_v1 {
|
|
|
5050
5942
|
* Database instance ID. This does not include the project ID.
|
|
5051
5943
|
*/
|
|
5052
5944
|
instance?: string;
|
|
5945
|
+
/**
|
|
5946
|
+
* Optional. Region of the Cloud SQL instance.
|
|
5947
|
+
*/
|
|
5948
|
+
location?: string;
|
|
5053
5949
|
/**
|
|
5054
5950
|
* Project ID of the project that contains the instance.
|
|
5055
5951
|
*/
|
|
@@ -5064,6 +5960,10 @@ export declare namespace sqladmin_v1 {
|
|
|
5064
5960
|
* Database instance ID. This does not include the project ID.
|
|
5065
5961
|
*/
|
|
5066
5962
|
instance?: string;
|
|
5963
|
+
/**
|
|
5964
|
+
* Optional. Region of the Cloud SQL instance.
|
|
5965
|
+
*/
|
|
5966
|
+
location?: string;
|
|
5067
5967
|
/**
|
|
5068
5968
|
* Project ID of the project that contains the instance.
|
|
5069
5969
|
*/
|
|
@@ -5074,6 +5974,10 @@ export declare namespace sqladmin_v1 {
|
|
|
5074
5974
|
* Database instance ID. This does not include the project ID.
|
|
5075
5975
|
*/
|
|
5076
5976
|
instance?: string;
|
|
5977
|
+
/**
|
|
5978
|
+
* Optional. Region of the Cloud SQL instance.
|
|
5979
|
+
*/
|
|
5980
|
+
location?: string;
|
|
5077
5981
|
/**
|
|
5078
5982
|
* Project ID of the project that contains the instance.
|
|
5079
5983
|
*/
|
|
@@ -5088,6 +5992,10 @@ export declare namespace sqladmin_v1 {
|
|
|
5088
5992
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
5089
5993
|
*/
|
|
5090
5994
|
instance?: string;
|
|
5995
|
+
/**
|
|
5996
|
+
* Optional. Region of the Cloud SQL instance.
|
|
5997
|
+
*/
|
|
5998
|
+
location?: string;
|
|
5091
5999
|
/**
|
|
5092
6000
|
* Project ID of the project that contains the instance.
|
|
5093
6001
|
*/
|
|
@@ -5102,6 +6010,10 @@ export declare namespace sqladmin_v1 {
|
|
|
5102
6010
|
* Database instance ID. This does not include the project ID.
|
|
5103
6011
|
*/
|
|
5104
6012
|
instance?: string;
|
|
6013
|
+
/**
|
|
6014
|
+
* Optional. Region of the Cloud SQL instance.
|
|
6015
|
+
*/
|
|
6016
|
+
location?: string;
|
|
5105
6017
|
/**
|
|
5106
6018
|
* Project ID of the project that contains the instance.
|
|
5107
6019
|
*/
|
|
@@ -5120,6 +6032,10 @@ export declare namespace sqladmin_v1 {
|
|
|
5120
6032
|
* Database instance ID. This does not include the project ID.
|
|
5121
6033
|
*/
|
|
5122
6034
|
instance?: string;
|
|
6035
|
+
/**
|
|
6036
|
+
* Optional. Region of the Cloud SQL instance.
|
|
6037
|
+
*/
|
|
6038
|
+
location?: string;
|
|
5123
6039
|
/**
|
|
5124
6040
|
* Project ID of the project that contains the instance.
|
|
5125
6041
|
*/
|
|
@@ -5248,6 +6164,8 @@ export declare namespace sqladmin_v1 {
|
|
|
5248
6164
|
* const res = await sql.instances.acquireSsrsLease({
|
|
5249
6165
|
* // 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).
|
|
5250
6166
|
* instance: 'placeholder-value',
|
|
6167
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
6168
|
+
* location: 'placeholder-value',
|
|
5251
6169
|
* // Required. Project ID of the project that contains the instance (Example: project-id).
|
|
5252
6170
|
* project: 'placeholder-value',
|
|
5253
6171
|
*
|
|
@@ -5321,6 +6239,8 @@ export declare namespace sqladmin_v1 {
|
|
|
5321
6239
|
* const res = await sql.instances.addEntraIdCertificate({
|
|
5322
6240
|
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
5323
6241
|
* instance: 'placeholder-value',
|
|
6242
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
6243
|
+
* location: 'placeholder-value',
|
|
5324
6244
|
* // Required. Project ID of the project that contains the instance.
|
|
5325
6245
|
* project: 'placeholder-value',
|
|
5326
6246
|
* });
|
|
@@ -5405,6 +6325,8 @@ export declare namespace sqladmin_v1 {
|
|
|
5405
6325
|
* const res = await sql.instances.addServerCa({
|
|
5406
6326
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
5407
6327
|
* instance: 'placeholder-value',
|
|
6328
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
6329
|
+
* location: 'placeholder-value',
|
|
5408
6330
|
* // Project ID of the project that contains the instance.
|
|
5409
6331
|
* project: 'placeholder-value',
|
|
5410
6332
|
* });
|
|
@@ -5489,6 +6411,8 @@ export declare namespace sqladmin_v1 {
|
|
|
5489
6411
|
* const res = await sql.instances.addServerCertificate({
|
|
5490
6412
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
5491
6413
|
* instance: 'placeholder-value',
|
|
6414
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
6415
|
+
* location: 'placeholder-value',
|
|
5492
6416
|
* // Project ID of the project that contains the instance.
|
|
5493
6417
|
* project: 'placeholder-value',
|
|
5494
6418
|
* });
|
|
@@ -5573,6 +6497,8 @@ export declare namespace sqladmin_v1 {
|
|
|
5573
6497
|
* const res = await sql.instances.clone({
|
|
5574
6498
|
* // Required. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
|
|
5575
6499
|
* instance: 'placeholder-value',
|
|
6500
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
6501
|
+
* location: 'placeholder-value',
|
|
5576
6502
|
* // Required. Project ID of the source Cloud SQL instance.
|
|
5577
6503
|
* project: 'placeholder-value',
|
|
5578
6504
|
*
|
|
@@ -5673,6 +6599,8 @@ export declare namespace sqladmin_v1 {
|
|
|
5673
6599
|
* finalBackupTtlDays: 'placeholder-value',
|
|
5674
6600
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
5675
6601
|
* instance: 'placeholder-value',
|
|
6602
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
6603
|
+
* location: 'placeholder-value',
|
|
5676
6604
|
* // Project ID of the project that contains the instance to be deleted.
|
|
5677
6605
|
* project: 'placeholder-value',
|
|
5678
6606
|
* });
|
|
@@ -5757,6 +6685,8 @@ export declare namespace sqladmin_v1 {
|
|
|
5757
6685
|
* const res = await sql.instances.demote({
|
|
5758
6686
|
* // Required. Cloud SQL instance name.
|
|
5759
6687
|
* instance: 'placeholder-value',
|
|
6688
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
6689
|
+
* location: 'placeholder-value',
|
|
5760
6690
|
* // Required. ID of the project that contains the instance.
|
|
5761
6691
|
* project: 'placeholder-value',
|
|
5762
6692
|
*
|
|
@@ -5849,6 +6779,8 @@ export declare namespace sqladmin_v1 {
|
|
|
5849
6779
|
* const res = await sql.instances.demoteMaster({
|
|
5850
6780
|
* // Cloud SQL instance name.
|
|
5851
6781
|
* instance: 'placeholder-value',
|
|
6782
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
6783
|
+
* location: 'placeholder-value',
|
|
5852
6784
|
* // ID of the project that contains the instance.
|
|
5853
6785
|
* project: 'placeholder-value',
|
|
5854
6786
|
*
|
|
@@ -5941,6 +6873,8 @@ export declare namespace sqladmin_v1 {
|
|
|
5941
6873
|
* const res = await sql.instances.executeSql({
|
|
5942
6874
|
* // Required. Database instance ID. This does not include the project ID.
|
|
5943
6875
|
* instance: 'placeholder-value',
|
|
6876
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
6877
|
+
* location: 'placeholder-value',
|
|
5944
6878
|
* // Required. Project ID of the project that contains the instance.
|
|
5945
6879
|
* project: 'placeholder-value',
|
|
5946
6880
|
*
|
|
@@ -5952,6 +6886,7 @@ export declare namespace sqladmin_v1 {
|
|
|
5952
6886
|
* // "autoIamAuthn": false,
|
|
5953
6887
|
* // "database": "my_database",
|
|
5954
6888
|
* // "partialResultMode": "my_partialResultMode",
|
|
6889
|
+
* // "passwordSecretVersion": "my_passwordSecretVersion",
|
|
5955
6890
|
* // "rowLimit": "my_rowLimit",
|
|
5956
6891
|
* // "sqlStatement": "my_sqlStatement",
|
|
5957
6892
|
* // "user": "my_user"
|
|
@@ -6020,6 +6955,8 @@ export declare namespace sqladmin_v1 {
|
|
|
6020
6955
|
* const res = await sql.instances.export({
|
|
6021
6956
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
6022
6957
|
* instance: 'placeholder-value',
|
|
6958
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
6959
|
+
* location: 'placeholder-value',
|
|
6023
6960
|
* // Project ID of the project that contains the instance to be exported.
|
|
6024
6961
|
* project: 'placeholder-value',
|
|
6025
6962
|
*
|
|
@@ -6112,6 +7049,8 @@ export declare namespace sqladmin_v1 {
|
|
|
6112
7049
|
* const res = await sql.instances.failover({
|
|
6113
7050
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
6114
7051
|
* instance: 'placeholder-value',
|
|
7052
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
7053
|
+
* location: 'placeholder-value',
|
|
6115
7054
|
* // ID of the project that contains the read replica.
|
|
6116
7055
|
* project: 'placeholder-value',
|
|
6117
7056
|
*
|
|
@@ -6204,6 +7143,8 @@ export declare namespace sqladmin_v1 {
|
|
|
6204
7143
|
* const res = await sql.instances.get({
|
|
6205
7144
|
* // Required. Database instance ID. This does not include the project ID.
|
|
6206
7145
|
* instance: 'placeholder-value',
|
|
7146
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
7147
|
+
* location: 'placeholder-value',
|
|
6207
7148
|
* // Required. Project ID of the project that contains the instance.
|
|
6208
7149
|
* project: 'placeholder-value',
|
|
6209
7150
|
* });
|
|
@@ -6216,8 +7157,10 @@ export declare namespace sqladmin_v1 {
|
|
|
6216
7157
|
* // "connectionName": "my_connectionName",
|
|
6217
7158
|
* // "createTime": "my_createTime",
|
|
6218
7159
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
7160
|
+
* // "databaseCenterIntegrationEnabled": false,
|
|
6219
7161
|
* // "databaseInstalledVersion": "my_databaseInstalledVersion",
|
|
6220
7162
|
* // "databaseVersion": "my_databaseVersion",
|
|
7163
|
+
* // "deploymentInfo": {},
|
|
6221
7164
|
* // "diskEncryptionConfiguration": {},
|
|
6222
7165
|
* // "diskEncryptionStatus": {},
|
|
6223
7166
|
* // "dnsName": "my_dnsName",
|
|
@@ -6316,6 +7259,8 @@ export declare namespace sqladmin_v1 {
|
|
|
6316
7259
|
* const res = await sql.instances.import({
|
|
6317
7260
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
6318
7261
|
* instance: 'placeholder-value',
|
|
7262
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
7263
|
+
* location: 'placeholder-value',
|
|
6319
7264
|
* // Project ID of the project that contains the instance.
|
|
6320
7265
|
* project: 'placeholder-value',
|
|
6321
7266
|
*
|
|
@@ -6406,6 +7351,8 @@ export declare namespace sqladmin_v1 {
|
|
|
6406
7351
|
*
|
|
6407
7352
|
* // Do the magic
|
|
6408
7353
|
* const res = await sql.instances.insert({
|
|
7354
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
7355
|
+
* location: 'placeholder-value',
|
|
6409
7356
|
* // Project ID of the project to which the newly created Cloud SQL instances should belong.
|
|
6410
7357
|
* project: 'placeholder-value',
|
|
6411
7358
|
*
|
|
@@ -6418,8 +7365,10 @@ export declare namespace sqladmin_v1 {
|
|
|
6418
7365
|
* // "connectionName": "my_connectionName",
|
|
6419
7366
|
* // "createTime": "my_createTime",
|
|
6420
7367
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
7368
|
+
* // "databaseCenterIntegrationEnabled": false,
|
|
6421
7369
|
* // "databaseInstalledVersion": "my_databaseInstalledVersion",
|
|
6422
7370
|
* // "databaseVersion": "my_databaseVersion",
|
|
7371
|
+
* // "deploymentInfo": {},
|
|
6423
7372
|
* // "diskEncryptionConfiguration": {},
|
|
6424
7373
|
* // "diskEncryptionStatus": {},
|
|
6425
7374
|
* // "dnsName": "my_dnsName",
|
|
@@ -6548,6 +7497,8 @@ export declare namespace sqladmin_v1 {
|
|
|
6548
7497
|
* const res = await sql.instances.list({
|
|
6549
7498
|
* // 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.
|
|
6550
7499
|
* filter: 'placeholder-value',
|
|
7500
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
7501
|
+
* location: 'placeholder-value',
|
|
6551
7502
|
* // 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.
|
|
6552
7503
|
* maxResults: 'placeholder-value',
|
|
6553
7504
|
* // A previously-returned page token representing part of the larger set of results to view.
|
|
@@ -6620,6 +7571,8 @@ export declare namespace sqladmin_v1 {
|
|
|
6620
7571
|
* const res = await sql.instances.ListEntraIdCertificates({
|
|
6621
7572
|
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
6622
7573
|
* instance: 'placeholder-value',
|
|
7574
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
7575
|
+
* location: 'placeholder-value',
|
|
6623
7576
|
* // Required. Project ID of the project that contains the instance.
|
|
6624
7577
|
* project: 'placeholder-value',
|
|
6625
7578
|
* });
|
|
@@ -6687,6 +7640,8 @@ export declare namespace sqladmin_v1 {
|
|
|
6687
7640
|
* const res = await sql.instances.listServerCas({
|
|
6688
7641
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
6689
7642
|
* instance: 'placeholder-value',
|
|
7643
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
7644
|
+
* location: 'placeholder-value',
|
|
6690
7645
|
* // Project ID of the project that contains the instance.
|
|
6691
7646
|
* project: 'placeholder-value',
|
|
6692
7647
|
* });
|
|
@@ -6754,6 +7709,8 @@ export declare namespace sqladmin_v1 {
|
|
|
6754
7709
|
* const res = await sql.instances.ListServerCertificates({
|
|
6755
7710
|
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
6756
7711
|
* instance: 'placeholder-value',
|
|
7712
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
7713
|
+
* location: 'placeholder-value',
|
|
6757
7714
|
* // Required. Project ID of the project that contains the instance.
|
|
6758
7715
|
* project: 'placeholder-value',
|
|
6759
7716
|
* });
|
|
@@ -6822,8 +7779,14 @@ export declare namespace sqladmin_v1 {
|
|
|
6822
7779
|
* const res = await sql.instances.patch({
|
|
6823
7780
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
6824
7781
|
* instance: 'placeholder-value',
|
|
7782
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
7783
|
+
* location: 'placeholder-value',
|
|
6825
7784
|
* // Project ID of the project that contains the instance.
|
|
6826
7785
|
* project: 'placeholder-value',
|
|
7786
|
+
* // Optional. Set PSC config to the same value as the existing config to reconcile the PSC networking.
|
|
7787
|
+
* reconcilePscNetworking: 'placeholder-value',
|
|
7788
|
+
* // Optional. Set PSC config to the same value as the existing config and force reconcile the PSC networking.
|
|
7789
|
+
* reconcilePscNetworkingForce: 'placeholder-value',
|
|
6827
7790
|
*
|
|
6828
7791
|
* // Request body metadata
|
|
6829
7792
|
* requestBody: {
|
|
@@ -6834,8 +7797,10 @@ export declare namespace sqladmin_v1 {
|
|
|
6834
7797
|
* // "connectionName": "my_connectionName",
|
|
6835
7798
|
* // "createTime": "my_createTime",
|
|
6836
7799
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
7800
|
+
* // "databaseCenterIntegrationEnabled": false,
|
|
6837
7801
|
* // "databaseInstalledVersion": "my_databaseInstalledVersion",
|
|
6838
7802
|
* // "databaseVersion": "my_databaseVersion",
|
|
7803
|
+
* // "deploymentInfo": {},
|
|
6839
7804
|
* // "diskEncryptionConfiguration": {},
|
|
6840
7805
|
* // "diskEncryptionStatus": {},
|
|
6841
7806
|
* // "dnsName": "my_dnsName",
|
|
@@ -7063,6 +8028,8 @@ export declare namespace sqladmin_v1 {
|
|
|
7063
8028
|
* const res = await sql.instances.preCheckMajorVersionUpgrade({
|
|
7064
8029
|
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
7065
8030
|
* instance: 'placeholder-value',
|
|
8031
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
8032
|
+
* location: 'placeholder-value',
|
|
7066
8033
|
* // Required. Project ID of the project that contains the instance.
|
|
7067
8034
|
* project: 'placeholder-value',
|
|
7068
8035
|
*
|
|
@@ -7157,6 +8124,8 @@ export declare namespace sqladmin_v1 {
|
|
|
7157
8124
|
* failover: 'placeholder-value',
|
|
7158
8125
|
* // Cloud SQL read replica instance name.
|
|
7159
8126
|
* instance: 'placeholder-value',
|
|
8127
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
8128
|
+
* location: 'placeholder-value',
|
|
7160
8129
|
* // ID of the project that contains the read replica.
|
|
7161
8130
|
* project: 'placeholder-value',
|
|
7162
8131
|
* });
|
|
@@ -7241,6 +8210,8 @@ export declare namespace sqladmin_v1 {
|
|
|
7241
8210
|
* const res = await sql.instances.reencrypt({
|
|
7242
8211
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
7243
8212
|
* instance: 'placeholder-value',
|
|
8213
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
8214
|
+
* location: 'placeholder-value',
|
|
7244
8215
|
* // ID of the project that contains the instance.
|
|
7245
8216
|
* project: 'placeholder-value',
|
|
7246
8217
|
*
|
|
@@ -7333,6 +8304,8 @@ export declare namespace sqladmin_v1 {
|
|
|
7333
8304
|
* const res = await sql.instances.releaseSsrsLease({
|
|
7334
8305
|
* // Required. The Cloud SQL instance ID. This doesn't include the project ID. The instance ID contains lowercase letters, numbers, and hyphens, and it must start with a letter. This ID can have a maximum length of 98 characters.
|
|
7335
8306
|
* instance: 'placeholder-value',
|
|
8307
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
8308
|
+
* location: 'placeholder-value',
|
|
7336
8309
|
* // Required. The project ID that contains the instance.
|
|
7337
8310
|
* project: 'placeholder-value',
|
|
7338
8311
|
* });
|
|
@@ -7398,6 +8371,8 @@ export declare namespace sqladmin_v1 {
|
|
|
7398
8371
|
* const res = await sql.instances.resetSslConfig({
|
|
7399
8372
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
7400
8373
|
* instance: 'placeholder-value',
|
|
8374
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
8375
|
+
* location: 'placeholder-value',
|
|
7401
8376
|
* // Optional. Reset SSL mode to use.
|
|
7402
8377
|
* mode: 'placeholder-value',
|
|
7403
8378
|
* // Project ID of the project that contains the instance.
|
|
@@ -7484,6 +8459,8 @@ export declare namespace sqladmin_v1 {
|
|
|
7484
8459
|
* const res = await sql.instances.restart({
|
|
7485
8460
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
7486
8461
|
* instance: 'placeholder-value',
|
|
8462
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
8463
|
+
* location: 'placeholder-value',
|
|
7487
8464
|
* // Project ID of the project that contains the instance to be restarted.
|
|
7488
8465
|
* project: 'placeholder-value',
|
|
7489
8466
|
* });
|
|
@@ -7568,6 +8545,8 @@ export declare namespace sqladmin_v1 {
|
|
|
7568
8545
|
* const res = await sql.instances.restoreBackup({
|
|
7569
8546
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
7570
8547
|
* instance: 'placeholder-value',
|
|
8548
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
8549
|
+
* location: 'placeholder-value',
|
|
7571
8550
|
* // Project ID of the project that contains the instance.
|
|
7572
8551
|
* project: 'placeholder-value',
|
|
7573
8552
|
*
|
|
@@ -7577,6 +8556,7 @@ export declare namespace sqladmin_v1 {
|
|
|
7577
8556
|
* // {
|
|
7578
8557
|
* // "backup": "my_backup",
|
|
7579
8558
|
* // "backupdrBackup": "my_backupdrBackup",
|
|
8559
|
+
* // "ignoreMaintenanceVersion": false,
|
|
7580
8560
|
* // "restoreBackupContext": {},
|
|
7581
8561
|
* // "restoreInstanceClearOverridesFieldNames": [],
|
|
7582
8562
|
* // "restoreInstanceSettings": {}
|
|
@@ -7664,6 +8644,8 @@ export declare namespace sqladmin_v1 {
|
|
|
7664
8644
|
* const res = await sql.instances.RotateEntraIdCertificate({
|
|
7665
8645
|
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
7666
8646
|
* instance: 'placeholder-value',
|
|
8647
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
8648
|
+
* location: 'placeholder-value',
|
|
7667
8649
|
* // Required. Project ID of the project that contains the instance.
|
|
7668
8650
|
* project: 'placeholder-value',
|
|
7669
8651
|
*
|
|
@@ -7756,6 +8738,8 @@ export declare namespace sqladmin_v1 {
|
|
|
7756
8738
|
* const res = await sql.instances.rotateServerCa({
|
|
7757
8739
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
7758
8740
|
* instance: 'placeholder-value',
|
|
8741
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
8742
|
+
* location: 'placeholder-value',
|
|
7759
8743
|
* // Project ID of the project that contains the instance.
|
|
7760
8744
|
* project: 'placeholder-value',
|
|
7761
8745
|
*
|
|
@@ -7848,6 +8832,8 @@ export declare namespace sqladmin_v1 {
|
|
|
7848
8832
|
* const res = await sql.instances.RotateServerCertificate({
|
|
7849
8833
|
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
7850
8834
|
* instance: 'placeholder-value',
|
|
8835
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
8836
|
+
* location: 'placeholder-value',
|
|
7851
8837
|
* // Required. Project ID of the project that contains the instance.
|
|
7852
8838
|
* project: 'placeholder-value',
|
|
7853
8839
|
*
|
|
@@ -7940,6 +8926,8 @@ export declare namespace sqladmin_v1 {
|
|
|
7940
8926
|
* const res = await sql.instances.startReplica({
|
|
7941
8927
|
* // Cloud SQL read replica instance name.
|
|
7942
8928
|
* instance: 'placeholder-value',
|
|
8929
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
8930
|
+
* location: 'placeholder-value',
|
|
7943
8931
|
* // ID of the project that contains the read replica.
|
|
7944
8932
|
* project: 'placeholder-value',
|
|
7945
8933
|
* });
|
|
@@ -8024,6 +9012,8 @@ export declare namespace sqladmin_v1 {
|
|
|
8024
9012
|
* const res = await sql.instances.stopReplica({
|
|
8025
9013
|
* // Cloud SQL read replica instance name.
|
|
8026
9014
|
* instance: 'placeholder-value',
|
|
9015
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
9016
|
+
* location: 'placeholder-value',
|
|
8027
9017
|
* // ID of the project that contains the read replica.
|
|
8028
9018
|
* project: 'placeholder-value',
|
|
8029
9019
|
* });
|
|
@@ -8110,6 +9100,8 @@ export declare namespace sqladmin_v1 {
|
|
|
8110
9100
|
* dbTimeout: 'placeholder-value',
|
|
8111
9101
|
* // Cloud SQL read replica instance name.
|
|
8112
9102
|
* instance: 'placeholder-value',
|
|
9103
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
9104
|
+
* location: 'placeholder-value',
|
|
8113
9105
|
* // ID of the project that contains the replica.
|
|
8114
9106
|
* project: 'placeholder-value',
|
|
8115
9107
|
* });
|
|
@@ -8194,6 +9186,8 @@ export declare namespace sqladmin_v1 {
|
|
|
8194
9186
|
* const res = await sql.instances.truncateLog({
|
|
8195
9187
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
8196
9188
|
* instance: 'placeholder-value',
|
|
9189
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
9190
|
+
* location: 'placeholder-value',
|
|
8197
9191
|
* // Project ID of the Cloud SQL project.
|
|
8198
9192
|
* project: 'placeholder-value',
|
|
8199
9193
|
*
|
|
@@ -8286,6 +9280,8 @@ export declare namespace sqladmin_v1 {
|
|
|
8286
9280
|
* const res = await sql.instances.update({
|
|
8287
9281
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
8288
9282
|
* instance: 'placeholder-value',
|
|
9283
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
9284
|
+
* location: 'placeholder-value',
|
|
8289
9285
|
* // Project ID of the project that contains the instance.
|
|
8290
9286
|
* project: 'placeholder-value',
|
|
8291
9287
|
*
|
|
@@ -8298,8 +9294,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8298
9294
|
* // "connectionName": "my_connectionName",
|
|
8299
9295
|
* // "createTime": "my_createTime",
|
|
8300
9296
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
9297
|
+
* // "databaseCenterIntegrationEnabled": false,
|
|
8301
9298
|
* // "databaseInstalledVersion": "my_databaseInstalledVersion",
|
|
8302
9299
|
* // "databaseVersion": "my_databaseVersion",
|
|
9300
|
+
* // "deploymentInfo": {},
|
|
8303
9301
|
* // "diskEncryptionConfiguration": {},
|
|
8304
9302
|
* // "diskEncryptionStatus": {},
|
|
8305
9303
|
* // "dnsName": "my_dnsName",
|
|
@@ -8398,6 +9396,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8398
9396
|
* 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).
|
|
8399
9397
|
*/
|
|
8400
9398
|
instance?: string;
|
|
9399
|
+
/**
|
|
9400
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9401
|
+
*/
|
|
9402
|
+
location?: string;
|
|
8401
9403
|
/**
|
|
8402
9404
|
* Required. Project ID of the project that contains the instance (Example: project-id).
|
|
8403
9405
|
*/
|
|
@@ -8412,6 +9414,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8412
9414
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
8413
9415
|
*/
|
|
8414
9416
|
instance?: string;
|
|
9417
|
+
/**
|
|
9418
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9419
|
+
*/
|
|
9420
|
+
location?: string;
|
|
8415
9421
|
/**
|
|
8416
9422
|
* Required. Project ID of the project that contains the instance.
|
|
8417
9423
|
*/
|
|
@@ -8422,6 +9428,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8422
9428
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
8423
9429
|
*/
|
|
8424
9430
|
instance?: string;
|
|
9431
|
+
/**
|
|
9432
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9433
|
+
*/
|
|
9434
|
+
location?: string;
|
|
8425
9435
|
/**
|
|
8426
9436
|
* Project ID of the project that contains the instance.
|
|
8427
9437
|
*/
|
|
@@ -8432,6 +9442,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8432
9442
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
8433
9443
|
*/
|
|
8434
9444
|
instance?: string;
|
|
9445
|
+
/**
|
|
9446
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9447
|
+
*/
|
|
9448
|
+
location?: string;
|
|
8435
9449
|
/**
|
|
8436
9450
|
* Project ID of the project that contains the instance.
|
|
8437
9451
|
*/
|
|
@@ -8442,6 +9456,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8442
9456
|
* Required. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
|
|
8443
9457
|
*/
|
|
8444
9458
|
instance?: string;
|
|
9459
|
+
/**
|
|
9460
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9461
|
+
*/
|
|
9462
|
+
location?: string;
|
|
8445
9463
|
/**
|
|
8446
9464
|
* Required. Project ID of the source Cloud SQL instance.
|
|
8447
9465
|
*/
|
|
@@ -8472,6 +9490,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8472
9490
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
8473
9491
|
*/
|
|
8474
9492
|
instance?: string;
|
|
9493
|
+
/**
|
|
9494
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9495
|
+
*/
|
|
9496
|
+
location?: string;
|
|
8475
9497
|
/**
|
|
8476
9498
|
* Project ID of the project that contains the instance to be deleted.
|
|
8477
9499
|
*/
|
|
@@ -8482,6 +9504,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8482
9504
|
* Required. Cloud SQL instance name.
|
|
8483
9505
|
*/
|
|
8484
9506
|
instance?: string;
|
|
9507
|
+
/**
|
|
9508
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9509
|
+
*/
|
|
9510
|
+
location?: string;
|
|
8485
9511
|
/**
|
|
8486
9512
|
* Required. ID of the project that contains the instance.
|
|
8487
9513
|
*/
|
|
@@ -8496,6 +9522,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8496
9522
|
* Cloud SQL instance name.
|
|
8497
9523
|
*/
|
|
8498
9524
|
instance?: string;
|
|
9525
|
+
/**
|
|
9526
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9527
|
+
*/
|
|
9528
|
+
location?: string;
|
|
8499
9529
|
/**
|
|
8500
9530
|
* ID of the project that contains the instance.
|
|
8501
9531
|
*/
|
|
@@ -8510,6 +9540,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8510
9540
|
* Required. Database instance ID. This does not include the project ID.
|
|
8511
9541
|
*/
|
|
8512
9542
|
instance?: string;
|
|
9543
|
+
/**
|
|
9544
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9545
|
+
*/
|
|
9546
|
+
location?: string;
|
|
8513
9547
|
/**
|
|
8514
9548
|
* Required. Project ID of the project that contains the instance.
|
|
8515
9549
|
*/
|
|
@@ -8524,6 +9558,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8524
9558
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
8525
9559
|
*/
|
|
8526
9560
|
instance?: string;
|
|
9561
|
+
/**
|
|
9562
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9563
|
+
*/
|
|
9564
|
+
location?: string;
|
|
8527
9565
|
/**
|
|
8528
9566
|
* Project ID of the project that contains the instance to be exported.
|
|
8529
9567
|
*/
|
|
@@ -8538,6 +9576,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8538
9576
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
8539
9577
|
*/
|
|
8540
9578
|
instance?: string;
|
|
9579
|
+
/**
|
|
9580
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9581
|
+
*/
|
|
9582
|
+
location?: string;
|
|
8541
9583
|
/**
|
|
8542
9584
|
* ID of the project that contains the read replica.
|
|
8543
9585
|
*/
|
|
@@ -8552,6 +9594,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8552
9594
|
* Required. Database instance ID. This does not include the project ID.
|
|
8553
9595
|
*/
|
|
8554
9596
|
instance?: string;
|
|
9597
|
+
/**
|
|
9598
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9599
|
+
*/
|
|
9600
|
+
location?: string;
|
|
8555
9601
|
/**
|
|
8556
9602
|
* Required. Project ID of the project that contains the instance.
|
|
8557
9603
|
*/
|
|
@@ -8562,6 +9608,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8562
9608
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
8563
9609
|
*/
|
|
8564
9610
|
instance?: string;
|
|
9611
|
+
/**
|
|
9612
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9613
|
+
*/
|
|
9614
|
+
location?: string;
|
|
8565
9615
|
/**
|
|
8566
9616
|
* Project ID of the project that contains the instance.
|
|
8567
9617
|
*/
|
|
@@ -8572,6 +9622,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8572
9622
|
requestBody?: Schema$InstancesImportRequest;
|
|
8573
9623
|
}
|
|
8574
9624
|
export interface Params$Resource$Instances$Insert extends StandardParameters {
|
|
9625
|
+
/**
|
|
9626
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9627
|
+
*/
|
|
9628
|
+
location?: string;
|
|
8575
9629
|
/**
|
|
8576
9630
|
* Project ID of the project to which the newly created Cloud SQL instances should belong.
|
|
8577
9631
|
*/
|
|
@@ -8586,6 +9640,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8586
9640
|
* 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.
|
|
8587
9641
|
*/
|
|
8588
9642
|
filter?: string;
|
|
9643
|
+
/**
|
|
9644
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9645
|
+
*/
|
|
9646
|
+
location?: string;
|
|
8589
9647
|
/**
|
|
8590
9648
|
* 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.
|
|
8591
9649
|
*/
|
|
@@ -8604,6 +9662,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8604
9662
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
8605
9663
|
*/
|
|
8606
9664
|
instance?: string;
|
|
9665
|
+
/**
|
|
9666
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9667
|
+
*/
|
|
9668
|
+
location?: string;
|
|
8607
9669
|
/**
|
|
8608
9670
|
* Required. Project ID of the project that contains the instance.
|
|
8609
9671
|
*/
|
|
@@ -8614,6 +9676,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8614
9676
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
8615
9677
|
*/
|
|
8616
9678
|
instance?: string;
|
|
9679
|
+
/**
|
|
9680
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9681
|
+
*/
|
|
9682
|
+
location?: string;
|
|
8617
9683
|
/**
|
|
8618
9684
|
* Project ID of the project that contains the instance.
|
|
8619
9685
|
*/
|
|
@@ -8624,6 +9690,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8624
9690
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
8625
9691
|
*/
|
|
8626
9692
|
instance?: string;
|
|
9693
|
+
/**
|
|
9694
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9695
|
+
*/
|
|
9696
|
+
location?: string;
|
|
8627
9697
|
/**
|
|
8628
9698
|
* Required. Project ID of the project that contains the instance.
|
|
8629
9699
|
*/
|
|
@@ -8634,10 +9704,22 @@ export declare namespace sqladmin_v1 {
|
|
|
8634
9704
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
8635
9705
|
*/
|
|
8636
9706
|
instance?: string;
|
|
9707
|
+
/**
|
|
9708
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9709
|
+
*/
|
|
9710
|
+
location?: string;
|
|
8637
9711
|
/**
|
|
8638
9712
|
* Project ID of the project that contains the instance.
|
|
8639
9713
|
*/
|
|
8640
9714
|
project?: string;
|
|
9715
|
+
/**
|
|
9716
|
+
* Optional. Set PSC config to the same value as the existing config to reconcile the PSC networking.
|
|
9717
|
+
*/
|
|
9718
|
+
reconcilePscNetworking?: boolean;
|
|
9719
|
+
/**
|
|
9720
|
+
* Optional. Set PSC config to the same value as the existing config and force reconcile the PSC networking.
|
|
9721
|
+
*/
|
|
9722
|
+
reconcilePscNetworkingForce?: boolean;
|
|
8641
9723
|
/**
|
|
8642
9724
|
* Request body metadata
|
|
8643
9725
|
*/
|
|
@@ -8658,6 +9740,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8658
9740
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
8659
9741
|
*/
|
|
8660
9742
|
instance?: string;
|
|
9743
|
+
/**
|
|
9744
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9745
|
+
*/
|
|
9746
|
+
location?: string;
|
|
8661
9747
|
/**
|
|
8662
9748
|
* Required. Project ID of the project that contains the instance.
|
|
8663
9749
|
*/
|
|
@@ -8676,6 +9762,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8676
9762
|
* Cloud SQL read replica instance name.
|
|
8677
9763
|
*/
|
|
8678
9764
|
instance?: string;
|
|
9765
|
+
/**
|
|
9766
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9767
|
+
*/
|
|
9768
|
+
location?: string;
|
|
8679
9769
|
/**
|
|
8680
9770
|
* ID of the project that contains the read replica.
|
|
8681
9771
|
*/
|
|
@@ -8686,6 +9776,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8686
9776
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
8687
9777
|
*/
|
|
8688
9778
|
instance?: string;
|
|
9779
|
+
/**
|
|
9780
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9781
|
+
*/
|
|
9782
|
+
location?: string;
|
|
8689
9783
|
/**
|
|
8690
9784
|
* ID of the project that contains the instance.
|
|
8691
9785
|
*/
|
|
@@ -8700,6 +9794,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8700
9794
|
* Required. The Cloud SQL instance ID. This doesn't include the project ID. The instance ID contains lowercase letters, numbers, and hyphens, and it must start with a letter. This ID can have a maximum length of 98 characters.
|
|
8701
9795
|
*/
|
|
8702
9796
|
instance?: string;
|
|
9797
|
+
/**
|
|
9798
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9799
|
+
*/
|
|
9800
|
+
location?: string;
|
|
8703
9801
|
/**
|
|
8704
9802
|
* Required. The project ID that contains the instance.
|
|
8705
9803
|
*/
|
|
@@ -8710,6 +9808,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8710
9808
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
8711
9809
|
*/
|
|
8712
9810
|
instance?: string;
|
|
9811
|
+
/**
|
|
9812
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9813
|
+
*/
|
|
9814
|
+
location?: string;
|
|
8713
9815
|
/**
|
|
8714
9816
|
* Optional. Reset SSL mode to use.
|
|
8715
9817
|
*/
|
|
@@ -8724,6 +9826,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8724
9826
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
8725
9827
|
*/
|
|
8726
9828
|
instance?: string;
|
|
9829
|
+
/**
|
|
9830
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9831
|
+
*/
|
|
9832
|
+
location?: string;
|
|
8727
9833
|
/**
|
|
8728
9834
|
* Project ID of the project that contains the instance to be restarted.
|
|
8729
9835
|
*/
|
|
@@ -8734,6 +9840,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8734
9840
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
8735
9841
|
*/
|
|
8736
9842
|
instance?: string;
|
|
9843
|
+
/**
|
|
9844
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9845
|
+
*/
|
|
9846
|
+
location?: string;
|
|
8737
9847
|
/**
|
|
8738
9848
|
* Project ID of the project that contains the instance.
|
|
8739
9849
|
*/
|
|
@@ -8748,6 +9858,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8748
9858
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
8749
9859
|
*/
|
|
8750
9860
|
instance?: string;
|
|
9861
|
+
/**
|
|
9862
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9863
|
+
*/
|
|
9864
|
+
location?: string;
|
|
8751
9865
|
/**
|
|
8752
9866
|
* Required. Project ID of the project that contains the instance.
|
|
8753
9867
|
*/
|
|
@@ -8762,6 +9876,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8762
9876
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
8763
9877
|
*/
|
|
8764
9878
|
instance?: string;
|
|
9879
|
+
/**
|
|
9880
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9881
|
+
*/
|
|
9882
|
+
location?: string;
|
|
8765
9883
|
/**
|
|
8766
9884
|
* Project ID of the project that contains the instance.
|
|
8767
9885
|
*/
|
|
@@ -8776,6 +9894,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8776
9894
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
8777
9895
|
*/
|
|
8778
9896
|
instance?: string;
|
|
9897
|
+
/**
|
|
9898
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9899
|
+
*/
|
|
9900
|
+
location?: string;
|
|
8779
9901
|
/**
|
|
8780
9902
|
* Required. Project ID of the project that contains the instance.
|
|
8781
9903
|
*/
|
|
@@ -8790,6 +9912,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8790
9912
|
* Cloud SQL read replica instance name.
|
|
8791
9913
|
*/
|
|
8792
9914
|
instance?: string;
|
|
9915
|
+
/**
|
|
9916
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9917
|
+
*/
|
|
9918
|
+
location?: string;
|
|
8793
9919
|
/**
|
|
8794
9920
|
* ID of the project that contains the read replica.
|
|
8795
9921
|
*/
|
|
@@ -8800,6 +9926,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8800
9926
|
* Cloud SQL read replica instance name.
|
|
8801
9927
|
*/
|
|
8802
9928
|
instance?: string;
|
|
9929
|
+
/**
|
|
9930
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9931
|
+
*/
|
|
9932
|
+
location?: string;
|
|
8803
9933
|
/**
|
|
8804
9934
|
* ID of the project that contains the read replica.
|
|
8805
9935
|
*/
|
|
@@ -8814,6 +9944,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8814
9944
|
* Cloud SQL read replica instance name.
|
|
8815
9945
|
*/
|
|
8816
9946
|
instance?: string;
|
|
9947
|
+
/**
|
|
9948
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9949
|
+
*/
|
|
9950
|
+
location?: string;
|
|
8817
9951
|
/**
|
|
8818
9952
|
* ID of the project that contains the replica.
|
|
8819
9953
|
*/
|
|
@@ -8824,6 +9958,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8824
9958
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
8825
9959
|
*/
|
|
8826
9960
|
instance?: string;
|
|
9961
|
+
/**
|
|
9962
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9963
|
+
*/
|
|
9964
|
+
location?: string;
|
|
8827
9965
|
/**
|
|
8828
9966
|
* Project ID of the Cloud SQL project.
|
|
8829
9967
|
*/
|
|
@@ -8838,6 +9976,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8838
9976
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
8839
9977
|
*/
|
|
8840
9978
|
instance?: string;
|
|
9979
|
+
/**
|
|
9980
|
+
* Optional. Region of the Cloud SQL instance.
|
|
9981
|
+
*/
|
|
9982
|
+
location?: string;
|
|
8841
9983
|
/**
|
|
8842
9984
|
* Project ID of the project that contains the instance.
|
|
8843
9985
|
*/
|
|
@@ -8884,6 +10026,8 @@ export declare namespace sqladmin_v1 {
|
|
|
8884
10026
|
*
|
|
8885
10027
|
* // Do the magic
|
|
8886
10028
|
* const res = await sql.operations.cancel({
|
|
10029
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
10030
|
+
* location: 'placeholder-value',
|
|
8887
10031
|
* // Instance operation ID.
|
|
8888
10032
|
* operation: 'placeholder-value',
|
|
8889
10033
|
* // Project ID of the project that contains the instance.
|
|
@@ -8947,6 +10091,8 @@ export declare namespace sqladmin_v1 {
|
|
|
8947
10091
|
*
|
|
8948
10092
|
* // Do the magic
|
|
8949
10093
|
* const res = await sql.operations.get({
|
|
10094
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
10095
|
+
* location: 'placeholder-value',
|
|
8950
10096
|
* // Required. Instance operation ID.
|
|
8951
10097
|
* operation: 'placeholder-value',
|
|
8952
10098
|
* // Required. Project ID of the project that contains the instance.
|
|
@@ -9033,6 +10179,8 @@ export declare namespace sqladmin_v1 {
|
|
|
9033
10179
|
* const res = await sql.operations.list({
|
|
9034
10180
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
9035
10181
|
* instance: 'placeholder-value',
|
|
10182
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
10183
|
+
* location: 'placeholder-value',
|
|
9036
10184
|
* // Maximum number of operations per response.
|
|
9037
10185
|
* maxResults: 'placeholder-value',
|
|
9038
10186
|
* // A previously-returned page token representing part of the larger set of results to view.
|
|
@@ -9070,6 +10218,10 @@ export declare namespace sqladmin_v1 {
|
|
|
9070
10218
|
list(callback: BodyResponseCallback<Schema$OperationsListResponse>): void;
|
|
9071
10219
|
}
|
|
9072
10220
|
export interface Params$Resource$Operations$Cancel extends StandardParameters {
|
|
10221
|
+
/**
|
|
10222
|
+
* Optional. Region of the Cloud SQL instance.
|
|
10223
|
+
*/
|
|
10224
|
+
location?: string;
|
|
9073
10225
|
/**
|
|
9074
10226
|
* Instance operation ID.
|
|
9075
10227
|
*/
|
|
@@ -9080,6 +10232,10 @@ export declare namespace sqladmin_v1 {
|
|
|
9080
10232
|
project?: string;
|
|
9081
10233
|
}
|
|
9082
10234
|
export interface Params$Resource$Operations$Get extends StandardParameters {
|
|
10235
|
+
/**
|
|
10236
|
+
* Optional. Region of the Cloud SQL instance.
|
|
10237
|
+
*/
|
|
10238
|
+
location?: string;
|
|
9083
10239
|
/**
|
|
9084
10240
|
* Required. Instance operation ID.
|
|
9085
10241
|
*/
|
|
@@ -9094,6 +10250,10 @@ export declare namespace sqladmin_v1 {
|
|
|
9094
10250
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
9095
10251
|
*/
|
|
9096
10252
|
instance?: string;
|
|
10253
|
+
/**
|
|
10254
|
+
* Optional. Region of the Cloud SQL instance.
|
|
10255
|
+
*/
|
|
10256
|
+
location?: string;
|
|
9097
10257
|
/**
|
|
9098
10258
|
* Maximum number of operations per response.
|
|
9099
10259
|
*/
|
|
@@ -9151,6 +10311,8 @@ export declare namespace sqladmin_v1 {
|
|
|
9151
10311
|
* const res = await sql.projects.instances.getDiskShrinkConfig({
|
|
9152
10312
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
9153
10313
|
* instance: 'placeholder-value',
|
|
10314
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
10315
|
+
* location: 'placeholder-value',
|
|
9154
10316
|
* // Project ID of the project that contains the instance.
|
|
9155
10317
|
* project: 'placeholder-value',
|
|
9156
10318
|
* });
|
|
@@ -9218,6 +10380,8 @@ export declare namespace sqladmin_v1 {
|
|
|
9218
10380
|
* const res = await sql.projects.instances.getLatestRecoveryTime({
|
|
9219
10381
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
9220
10382
|
* instance: 'placeholder-value',
|
|
10383
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
10384
|
+
* location: 'placeholder-value',
|
|
9221
10385
|
* // Project ID of the project that contains the instance.
|
|
9222
10386
|
* project: 'placeholder-value',
|
|
9223
10387
|
* // The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
|
|
@@ -9287,6 +10451,8 @@ export declare namespace sqladmin_v1 {
|
|
|
9287
10451
|
* const res = await sql.projects.instances.performDiskShrink({
|
|
9288
10452
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
9289
10453
|
* instance: 'placeholder-value',
|
|
10454
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
10455
|
+
* location: 'placeholder-value',
|
|
9290
10456
|
* // Project ID of the project that contains the instance.
|
|
9291
10457
|
* project: 'placeholder-value',
|
|
9292
10458
|
*
|
|
@@ -9379,6 +10545,8 @@ export declare namespace sqladmin_v1 {
|
|
|
9379
10545
|
* const res = await sql.projects.instances.rescheduleMaintenance({
|
|
9380
10546
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
9381
10547
|
* instance: 'placeholder-value',
|
|
10548
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
10549
|
+
* location: 'placeholder-value',
|
|
9382
10550
|
* // ID of the project that contains the instance.
|
|
9383
10551
|
* project: 'placeholder-value',
|
|
9384
10552
|
*
|
|
@@ -9477,7 +10645,9 @@ export declare namespace sqladmin_v1 {
|
|
|
9477
10645
|
* // Request body metadata
|
|
9478
10646
|
* requestBody: {
|
|
9479
10647
|
* // request body parameters
|
|
9480
|
-
* // {
|
|
10648
|
+
* // {
|
|
10649
|
+
* // "location": "my_location"
|
|
10650
|
+
* // }
|
|
9481
10651
|
* },
|
|
9482
10652
|
* });
|
|
9483
10653
|
* console.log(res.data);
|
|
@@ -9568,6 +10738,7 @@ export declare namespace sqladmin_v1 {
|
|
|
9568
10738
|
* requestBody: {
|
|
9569
10739
|
* // request body parameters
|
|
9570
10740
|
* // {
|
|
10741
|
+
* // "location": "my_location",
|
|
9571
10742
|
* // "migrationType": "my_migrationType",
|
|
9572
10743
|
* // "mysqlSyncConfig": {},
|
|
9573
10744
|
* // "replicaOverwriteEnabled": false,
|
|
@@ -9665,6 +10836,7 @@ export declare namespace sqladmin_v1 {
|
|
|
9665
10836
|
* requestBody: {
|
|
9666
10837
|
* // request body parameters
|
|
9667
10838
|
* // {
|
|
10839
|
+
* // "location": "my_location",
|
|
9668
10840
|
* // "migrationType": "my_migrationType",
|
|
9669
10841
|
* // "mysqlSyncConfig": {},
|
|
9670
10842
|
* // "selectedObjects": [],
|
|
@@ -9709,6 +10881,10 @@ export declare namespace sqladmin_v1 {
|
|
|
9709
10881
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
9710
10882
|
*/
|
|
9711
10883
|
instance?: string;
|
|
10884
|
+
/**
|
|
10885
|
+
* Optional. Region of the Cloud SQL instance.
|
|
10886
|
+
*/
|
|
10887
|
+
location?: string;
|
|
9712
10888
|
/**
|
|
9713
10889
|
* Project ID of the project that contains the instance.
|
|
9714
10890
|
*/
|
|
@@ -9719,6 +10895,10 @@ export declare namespace sqladmin_v1 {
|
|
|
9719
10895
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
9720
10896
|
*/
|
|
9721
10897
|
instance?: string;
|
|
10898
|
+
/**
|
|
10899
|
+
* Optional. Region of the Cloud SQL instance.
|
|
10900
|
+
*/
|
|
10901
|
+
location?: string;
|
|
9722
10902
|
/**
|
|
9723
10903
|
* Project ID of the project that contains the instance.
|
|
9724
10904
|
*/
|
|
@@ -9733,6 +10913,10 @@ export declare namespace sqladmin_v1 {
|
|
|
9733
10913
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
9734
10914
|
*/
|
|
9735
10915
|
instance?: string;
|
|
10916
|
+
/**
|
|
10917
|
+
* Optional. Region of the Cloud SQL instance.
|
|
10918
|
+
*/
|
|
10919
|
+
location?: string;
|
|
9736
10920
|
/**
|
|
9737
10921
|
* Project ID of the project that contains the instance.
|
|
9738
10922
|
*/
|
|
@@ -9747,6 +10931,10 @@ export declare namespace sqladmin_v1 {
|
|
|
9747
10931
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
9748
10932
|
*/
|
|
9749
10933
|
instance?: string;
|
|
10934
|
+
/**
|
|
10935
|
+
* Optional. Region of the Cloud SQL instance.
|
|
10936
|
+
*/
|
|
10937
|
+
location?: string;
|
|
9750
10938
|
/**
|
|
9751
10939
|
* ID of the project that contains the instance.
|
|
9752
10940
|
*/
|
|
@@ -9837,6 +11025,8 @@ export declare namespace sqladmin_v1 {
|
|
|
9837
11025
|
* const res = await sql.sslCerts.createEphemeral({
|
|
9838
11026
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
9839
11027
|
* instance: 'placeholder-value',
|
|
11028
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
11029
|
+
* location: 'placeholder-value',
|
|
9840
11030
|
* // Project ID of the Cloud SQL project.
|
|
9841
11031
|
* project: 'placeholder-value',
|
|
9842
11032
|
*
|
|
@@ -10192,6 +11382,10 @@ export declare namespace sqladmin_v1 {
|
|
|
10192
11382
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
10193
11383
|
*/
|
|
10194
11384
|
instance?: string;
|
|
11385
|
+
/**
|
|
11386
|
+
* Optional. Region of the Cloud SQL instance.
|
|
11387
|
+
*/
|
|
11388
|
+
location?: string;
|
|
10195
11389
|
/**
|
|
10196
11390
|
* Project ID of the Cloud SQL project.
|
|
10197
11391
|
*/
|
|
@@ -10368,6 +11562,8 @@ export declare namespace sqladmin_v1 {
|
|
|
10368
11562
|
* host: 'placeholder-value',
|
|
10369
11563
|
* // Database instance ID. This does not include the project ID.
|
|
10370
11564
|
* instance: 'placeholder-value',
|
|
11565
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
11566
|
+
* location: 'placeholder-value',
|
|
10371
11567
|
* // Name of the user in the instance.
|
|
10372
11568
|
* name: 'placeholder-value',
|
|
10373
11569
|
* // Project ID of the project that contains the instance.
|
|
@@ -10456,6 +11652,8 @@ export declare namespace sqladmin_v1 {
|
|
|
10456
11652
|
* host: 'placeholder-value',
|
|
10457
11653
|
* // Database instance ID. This does not include the project ID.
|
|
10458
11654
|
* instance: 'placeholder-value',
|
|
11655
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
11656
|
+
* location: 'placeholder-value',
|
|
10459
11657
|
* // User of the instance.
|
|
10460
11658
|
* name: 'placeholder-value',
|
|
10461
11659
|
* // Project ID of the project that contains the instance.
|
|
@@ -10477,6 +11675,7 @@ export declare namespace sqladmin_v1 {
|
|
|
10477
11675
|
* // "password": "my_password",
|
|
10478
11676
|
* // "passwordPolicy": {},
|
|
10479
11677
|
* // "project": "my_project",
|
|
11678
|
+
* // "serverRoles": [],
|
|
10480
11679
|
* // "sqlserverUserDetails": {},
|
|
10481
11680
|
* // "type": "my_type"
|
|
10482
11681
|
* // }
|
|
@@ -10536,6 +11735,8 @@ export declare namespace sqladmin_v1 {
|
|
|
10536
11735
|
* const res = await sql.users.insert({
|
|
10537
11736
|
* // Database instance ID. This does not include the project ID.
|
|
10538
11737
|
* instance: 'placeholder-value',
|
|
11738
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
11739
|
+
* location: 'placeholder-value',
|
|
10539
11740
|
* // Project ID of the project that contains the instance.
|
|
10540
11741
|
* project: 'placeholder-value',
|
|
10541
11742
|
*
|
|
@@ -10555,6 +11756,7 @@ export declare namespace sqladmin_v1 {
|
|
|
10555
11756
|
* // "password": "my_password",
|
|
10556
11757
|
* // "passwordPolicy": {},
|
|
10557
11758
|
* // "project": "my_project",
|
|
11759
|
+
* // "serverRoles": [],
|
|
10558
11760
|
* // "sqlserverUserDetails": {},
|
|
10559
11761
|
* // "type": "my_type"
|
|
10560
11762
|
* // }
|
|
@@ -10641,6 +11843,8 @@ export declare namespace sqladmin_v1 {
|
|
|
10641
11843
|
* const res = await sql.users.list({
|
|
10642
11844
|
* // Database instance ID. This does not include the project ID.
|
|
10643
11845
|
* instance: 'placeholder-value',
|
|
11846
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
11847
|
+
* location: 'placeholder-value',
|
|
10644
11848
|
* // Project ID of the project that contains the instance.
|
|
10645
11849
|
* project: 'placeholder-value',
|
|
10646
11850
|
* });
|
|
@@ -10712,12 +11916,18 @@ export declare namespace sqladmin_v1 {
|
|
|
10712
11916
|
* host: 'placeholder-value',
|
|
10713
11917
|
* // Database instance ID. This does not include the project ID.
|
|
10714
11918
|
* instance: 'placeholder-value',
|
|
11919
|
+
* // Optional. Region of the Cloud SQL instance.
|
|
11920
|
+
* location: 'placeholder-value',
|
|
10715
11921
|
* // Name of the user in the instance.
|
|
10716
11922
|
* name: 'placeholder-value',
|
|
10717
11923
|
* // Project ID of the project that contains the instance.
|
|
10718
11924
|
* project: 'placeholder-value',
|
|
10719
11925
|
* // 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.
|
|
10720
11926
|
* revokeExistingRoles: 'placeholder-value',
|
|
11927
|
+
* // 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.
|
|
11928
|
+
* revokeExistingServerRoles: 'placeholder-value',
|
|
11929
|
+
* // 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.
|
|
11930
|
+
* serverRoles: 'placeholder-value',
|
|
10721
11931
|
*
|
|
10722
11932
|
* // Request body metadata
|
|
10723
11933
|
* requestBody: {
|
|
@@ -10735,6 +11945,7 @@ export declare namespace sqladmin_v1 {
|
|
|
10735
11945
|
* // "password": "my_password",
|
|
10736
11946
|
* // "passwordPolicy": {},
|
|
10737
11947
|
* // "project": "my_project",
|
|
11948
|
+
* // "serverRoles": [],
|
|
10738
11949
|
* // "sqlserverUserDetails": {},
|
|
10739
11950
|
* // "type": "my_type"
|
|
10740
11951
|
* // }
|
|
@@ -10795,6 +12006,10 @@ export declare namespace sqladmin_v1 {
|
|
|
10795
12006
|
* Database instance ID. This does not include the project ID.
|
|
10796
12007
|
*/
|
|
10797
12008
|
instance?: string;
|
|
12009
|
+
/**
|
|
12010
|
+
* Optional. Region of the Cloud SQL instance.
|
|
12011
|
+
*/
|
|
12012
|
+
location?: string;
|
|
10798
12013
|
/**
|
|
10799
12014
|
* Name of the user in the instance.
|
|
10800
12015
|
*/
|
|
@@ -10813,6 +12028,10 @@ export declare namespace sqladmin_v1 {
|
|
|
10813
12028
|
* Database instance ID. This does not include the project ID.
|
|
10814
12029
|
*/
|
|
10815
12030
|
instance?: string;
|
|
12031
|
+
/**
|
|
12032
|
+
* Optional. Region of the Cloud SQL instance.
|
|
12033
|
+
*/
|
|
12034
|
+
location?: string;
|
|
10816
12035
|
/**
|
|
10817
12036
|
* User of the instance.
|
|
10818
12037
|
*/
|
|
@@ -10827,6 +12046,10 @@ export declare namespace sqladmin_v1 {
|
|
|
10827
12046
|
* Database instance ID. This does not include the project ID.
|
|
10828
12047
|
*/
|
|
10829
12048
|
instance?: string;
|
|
12049
|
+
/**
|
|
12050
|
+
* Optional. Region of the Cloud SQL instance.
|
|
12051
|
+
*/
|
|
12052
|
+
location?: string;
|
|
10830
12053
|
/**
|
|
10831
12054
|
* Project ID of the project that contains the instance.
|
|
10832
12055
|
*/
|
|
@@ -10841,6 +12064,10 @@ export declare namespace sqladmin_v1 {
|
|
|
10841
12064
|
* Database instance ID. This does not include the project ID.
|
|
10842
12065
|
*/
|
|
10843
12066
|
instance?: string;
|
|
12067
|
+
/**
|
|
12068
|
+
* Optional. Region of the Cloud SQL instance.
|
|
12069
|
+
*/
|
|
12070
|
+
location?: string;
|
|
10844
12071
|
/**
|
|
10845
12072
|
* Project ID of the project that contains the instance.
|
|
10846
12073
|
*/
|
|
@@ -10859,6 +12086,10 @@ export declare namespace sqladmin_v1 {
|
|
|
10859
12086
|
* Database instance ID. This does not include the project ID.
|
|
10860
12087
|
*/
|
|
10861
12088
|
instance?: string;
|
|
12089
|
+
/**
|
|
12090
|
+
* Optional. Region of the Cloud SQL instance.
|
|
12091
|
+
*/
|
|
12092
|
+
location?: string;
|
|
10862
12093
|
/**
|
|
10863
12094
|
* Name of the user in the instance.
|
|
10864
12095
|
*/
|
|
@@ -10871,6 +12102,14 @@ export declare namespace sqladmin_v1 {
|
|
|
10871
12102
|
* 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.
|
|
10872
12103
|
*/
|
|
10873
12104
|
revokeExistingRoles?: boolean;
|
|
12105
|
+
/**
|
|
12106
|
+
* 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.
|
|
12107
|
+
*/
|
|
12108
|
+
revokeExistingServerRoles?: boolean;
|
|
12109
|
+
/**
|
|
12110
|
+
* 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.
|
|
12111
|
+
*/
|
|
12112
|
+
serverRoles?: string[];
|
|
10874
12113
|
/**
|
|
10875
12114
|
* Request body metadata
|
|
10876
12115
|
*/
|