@googleapis/sqladmin 32.0.0 → 34.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 +31 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +352 -18
- package/build/v1.js +33 -0
- package/build/v1.js.map +1 -1
- package/build/v1beta4.d.ts +339 -5
- package/build/v1beta4.js +33 -0
- package/build/v1beta4.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +431 -18
- package/v1beta4.ts +418 -5
package/build/v1.d.ts
CHANGED
|
@@ -166,7 +166,7 @@ export declare namespace sqladmin_v1 {
|
|
|
166
166
|
name?: string | null;
|
|
167
167
|
}
|
|
168
168
|
/**
|
|
169
|
-
* A backup resource.
|
|
169
|
+
* A backup resource.
|
|
170
170
|
*/
|
|
171
171
|
export interface Schema$Backup {
|
|
172
172
|
/**
|
|
@@ -486,7 +486,7 @@ export declare namespace sqladmin_v1 {
|
|
|
486
486
|
*/
|
|
487
487
|
databaseNames?: string[] | null;
|
|
488
488
|
/**
|
|
489
|
-
* Name of the Cloud SQL instance to be created as a clone.
|
|
489
|
+
* Required. Name of the Cloud SQL instance to be created as a clone.
|
|
490
490
|
*/
|
|
491
491
|
destinationInstanceName?: string | null;
|
|
492
492
|
/**
|
|
@@ -1080,6 +1080,10 @@ export declare namespace sqladmin_v1 {
|
|
|
1080
1080
|
* Optional. Name of the database on which the statement will be executed.
|
|
1081
1081
|
*/
|
|
1082
1082
|
database?: string | null;
|
|
1083
|
+
/**
|
|
1084
|
+
* 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.
|
|
1085
|
+
*/
|
|
1086
|
+
partialResultMode?: string | null;
|
|
1083
1087
|
/**
|
|
1084
1088
|
* Optional. The maximum number of rows returned per SQL statement.
|
|
1085
1089
|
*/
|
|
@@ -1088,6 +1092,10 @@ export declare namespace sqladmin_v1 {
|
|
|
1088
1092
|
* Required. SQL statements to run on the database. It can be a single statement or a sequence of statements separated by semicolons.
|
|
1089
1093
|
*/
|
|
1090
1094
|
sqlStatement?: string | null;
|
|
1095
|
+
/**
|
|
1096
|
+
* Optional. The name of an existing database user to connect to the database. When `auto_iam_authn` is set to true, this field is ignored and the API caller's IAM user is used.
|
|
1097
|
+
*/
|
|
1098
|
+
user?: string | null;
|
|
1091
1099
|
}
|
|
1092
1100
|
/**
|
|
1093
1101
|
* Database instance export context.
|
|
@@ -1454,7 +1462,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1454
1462
|
*/
|
|
1455
1463
|
export interface Schema$InstancesCloneRequest {
|
|
1456
1464
|
/**
|
|
1457
|
-
* Contains details about the clone operation.
|
|
1465
|
+
* Required. Contains details about the clone operation.
|
|
1458
1466
|
*/
|
|
1459
1467
|
cloneContext?: Schema$CloneContext;
|
|
1460
1468
|
}
|
|
@@ -1559,6 +1567,15 @@ export declare namespace sqladmin_v1 {
|
|
|
1559
1567
|
*/
|
|
1560
1568
|
serverCerts?: Schema$SslCert[];
|
|
1561
1569
|
}
|
|
1570
|
+
/**
|
|
1571
|
+
* Request for Pre-checks for MVU
|
|
1572
|
+
*/
|
|
1573
|
+
export interface Schema$InstancesPreCheckMajorVersionUpgradeRequest {
|
|
1574
|
+
/**
|
|
1575
|
+
* Required. Contains details about the pre-check major version upgrade operation.
|
|
1576
|
+
*/
|
|
1577
|
+
preCheckMajorVersionUpgradeContext?: Schema$PreCheckMajorVersionUpgradeContext;
|
|
1578
|
+
}
|
|
1562
1579
|
/**
|
|
1563
1580
|
* Database Instance reencrypt request.
|
|
1564
1581
|
*/
|
|
@@ -1758,6 +1775,19 @@ export declare namespace sqladmin_v1 {
|
|
|
1758
1775
|
*/
|
|
1759
1776
|
updateTrack?: string | null;
|
|
1760
1777
|
}
|
|
1778
|
+
/**
|
|
1779
|
+
* Represents a notice or warning message from the database.
|
|
1780
|
+
*/
|
|
1781
|
+
export interface Schema$Message {
|
|
1782
|
+
/**
|
|
1783
|
+
* The full message string. For PostgreSQL, this is a formatted string that may include severity, code, and the notice/warning message. For MySQL, this contains the warning message.
|
|
1784
|
+
*/
|
|
1785
|
+
message?: string | null;
|
|
1786
|
+
/**
|
|
1787
|
+
* The severity of the message (e.g., "NOTICE" for PostgreSQL, "WARNING" for MySQL).
|
|
1788
|
+
*/
|
|
1789
|
+
severity?: string | null;
|
|
1790
|
+
}
|
|
1761
1791
|
/**
|
|
1762
1792
|
* The additional metadata information regarding the execution of the SQL statements.
|
|
1763
1793
|
*/
|
|
@@ -1922,6 +1952,10 @@ export declare namespace sqladmin_v1 {
|
|
|
1922
1952
|
* The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
|
|
1923
1953
|
*/
|
|
1924
1954
|
operationType?: string | null;
|
|
1955
|
+
/**
|
|
1956
|
+
* This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
|
|
1957
|
+
*/
|
|
1958
|
+
preCheckMajorVersionUpgradeContext?: Schema$PreCheckMajorVersionUpgradeContext;
|
|
1925
1959
|
/**
|
|
1926
1960
|
* The URI of this resource.
|
|
1927
1961
|
*/
|
|
@@ -2149,6 +2183,40 @@ export declare namespace sqladmin_v1 {
|
|
|
2149
2183
|
*/
|
|
2150
2184
|
state?: string | null;
|
|
2151
2185
|
}
|
|
2186
|
+
/**
|
|
2187
|
+
* Pre-check major version upgrade context.
|
|
2188
|
+
*/
|
|
2189
|
+
export interface Schema$PreCheckMajorVersionUpgradeContext {
|
|
2190
|
+
/**
|
|
2191
|
+
* Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
|
|
2192
|
+
*/
|
|
2193
|
+
kind?: string | null;
|
|
2194
|
+
/**
|
|
2195
|
+
* Output only. The responses from the precheck operation.
|
|
2196
|
+
*/
|
|
2197
|
+
preCheckResponse?: Schema$PreCheckResponse[];
|
|
2198
|
+
/**
|
|
2199
|
+
* Required. The target database version to upgrade to.
|
|
2200
|
+
*/
|
|
2201
|
+
targetDatabaseVersion?: string | null;
|
|
2202
|
+
}
|
|
2203
|
+
/**
|
|
2204
|
+
* Structured PreCheckResponse containing message, type, and required actions.
|
|
2205
|
+
*/
|
|
2206
|
+
export interface Schema$PreCheckResponse {
|
|
2207
|
+
/**
|
|
2208
|
+
* The actions that the user needs to take. Use repeated for multiple actions.
|
|
2209
|
+
*/
|
|
2210
|
+
actionsRequired?: string[] | null;
|
|
2211
|
+
/**
|
|
2212
|
+
* The message to be displayed to the user.
|
|
2213
|
+
*/
|
|
2214
|
+
message?: string | null;
|
|
2215
|
+
/**
|
|
2216
|
+
* The type of message whether it is an info, warning, or error.
|
|
2217
|
+
*/
|
|
2218
|
+
messageType?: string | null;
|
|
2219
|
+
}
|
|
2152
2220
|
/**
|
|
2153
2221
|
* Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
|
|
2154
2222
|
*/
|
|
@@ -2208,13 +2276,50 @@ export declare namespace sqladmin_v1 {
|
|
|
2208
2276
|
*/
|
|
2209
2277
|
message?: string | null;
|
|
2210
2278
|
/**
|
|
2211
|
-
* Set to true if the SQL execution's result is truncated due to size limits.
|
|
2279
|
+
* Set to true if the SQL execution's result is truncated due to size limits or an error retrieving results.
|
|
2212
2280
|
*/
|
|
2213
2281
|
partialResult?: boolean | null;
|
|
2214
2282
|
/**
|
|
2215
2283
|
* Rows returned by the SQL statement.
|
|
2216
2284
|
*/
|
|
2217
2285
|
rows?: Schema$Row[];
|
|
2286
|
+
/**
|
|
2287
|
+
* If results were truncated due to an error, details of that error.
|
|
2288
|
+
*/
|
|
2289
|
+
status?: Schema$Status;
|
|
2290
|
+
}
|
|
2291
|
+
/**
|
|
2292
|
+
* The read pool auto-scale configuration.
|
|
2293
|
+
*/
|
|
2294
|
+
export interface Schema$ReadPoolAutoScaleConfig {
|
|
2295
|
+
/**
|
|
2296
|
+
* Indicates whether read pool auto scaling supports scale in operations (removing nodes).
|
|
2297
|
+
*/
|
|
2298
|
+
disableScaleIn?: boolean | null;
|
|
2299
|
+
/**
|
|
2300
|
+
* Indicates whether read pool auto scaling is enabled.
|
|
2301
|
+
*/
|
|
2302
|
+
enabled?: boolean | null;
|
|
2303
|
+
/**
|
|
2304
|
+
* Maximum number of read pool nodes to be maintained.
|
|
2305
|
+
*/
|
|
2306
|
+
maxNodeCount?: number | null;
|
|
2307
|
+
/**
|
|
2308
|
+
* Minimum number of read pool nodes to be maintained.
|
|
2309
|
+
*/
|
|
2310
|
+
minNodeCount?: number | null;
|
|
2311
|
+
/**
|
|
2312
|
+
* The cooldown period for scale-in operations.
|
|
2313
|
+
*/
|
|
2314
|
+
scaleInCooldownSeconds?: number | null;
|
|
2315
|
+
/**
|
|
2316
|
+
* The cooldown period for scale-out operations.
|
|
2317
|
+
*/
|
|
2318
|
+
scaleOutCooldownSeconds?: number | null;
|
|
2319
|
+
/**
|
|
2320
|
+
* Optional. Target metrics for read pool auto scaling.
|
|
2321
|
+
*/
|
|
2322
|
+
targetMetrics?: Schema$TargetMetric[];
|
|
2218
2323
|
}
|
|
2219
2324
|
/**
|
|
2220
2325
|
* Read-replica configuration for connecting to the primary instance.
|
|
@@ -2349,6 +2454,10 @@ export declare namespace sqladmin_v1 {
|
|
|
2349
2454
|
* The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.
|
|
2350
2455
|
*/
|
|
2351
2456
|
authorizedGaeApplications?: string[] | null;
|
|
2457
|
+
/**
|
|
2458
|
+
* Optional. Cloud SQL for MySQL auto-upgrade configuration. When this parameter is set to true, auto-upgrade is enabled for MySQL 8.0 minor versions. The MySQL version must be 8.0.35 or higher.
|
|
2459
|
+
*/
|
|
2460
|
+
autoUpgradeEnabled?: boolean | null;
|
|
2352
2461
|
/**
|
|
2353
2462
|
* Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available)./ For more information, see [Overview of the High Availability Configuration](https://cloud.google.com/sql/docs/mysql/high-availability).
|
|
2354
2463
|
*/
|
|
@@ -2373,6 +2482,10 @@ export declare namespace sqladmin_v1 {
|
|
|
2373
2482
|
* Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.
|
|
2374
2483
|
*/
|
|
2375
2484
|
crashSafeReplicationEnabled?: boolean | null;
|
|
2485
|
+
/**
|
|
2486
|
+
* This parameter controls whether to allow using Data API to connect to the instance. Not allowed by default.
|
|
2487
|
+
*/
|
|
2488
|
+
dataApiAccess?: string | null;
|
|
2376
2489
|
/**
|
|
2377
2490
|
* The database flags passed to the instance at startup.
|
|
2378
2491
|
*/
|
|
@@ -2453,6 +2566,10 @@ export declare namespace sqladmin_v1 {
|
|
|
2453
2566
|
* The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.
|
|
2454
2567
|
*/
|
|
2455
2568
|
pricingPlan?: string | null;
|
|
2569
|
+
/**
|
|
2570
|
+
* Optional. The read pool auto-scale configuration for the instance.
|
|
2571
|
+
*/
|
|
2572
|
+
readPoolAutoScaleConfig?: Schema$ReadPoolAutoScaleConfig;
|
|
2456
2573
|
/**
|
|
2457
2574
|
* Optional. Configuration value for recreation of replica after certain replication lag
|
|
2458
2575
|
*/
|
|
@@ -2555,6 +2672,10 @@ export declare namespace sqladmin_v1 {
|
|
|
2555
2672
|
* Execute SQL statements response.
|
|
2556
2673
|
*/
|
|
2557
2674
|
export interface Schema$SqlInstancesExecuteSqlResponse {
|
|
2675
|
+
/**
|
|
2676
|
+
* A list of notices and warnings generated during query execution. For PostgreSQL, this includes all notices and warnings. For MySQL, this includes warnings generated by the last executed statement. To retrieve all warnings for a multi-statement query, `SHOW WARNINGS` must be executed after each statement.
|
|
2677
|
+
*/
|
|
2678
|
+
messages?: Schema$Message[];
|
|
2558
2679
|
/**
|
|
2559
2680
|
* The additional metadata information regarding the execution of the SQL statements.
|
|
2560
2681
|
*/
|
|
@@ -2563,6 +2684,10 @@ export declare namespace sqladmin_v1 {
|
|
|
2563
2684
|
* The list of results after executing all the SQL statements.
|
|
2564
2685
|
*/
|
|
2565
2686
|
results?: Schema$QueryResult[];
|
|
2687
|
+
/**
|
|
2688
|
+
* Contains the error from the database if the SQL execution failed.
|
|
2689
|
+
*/
|
|
2690
|
+
status?: Schema$Status;
|
|
2566
2691
|
}
|
|
2567
2692
|
/**
|
|
2568
2693
|
* Instance get disk shrink config response.
|
|
@@ -2585,6 +2710,10 @@ export declare namespace sqladmin_v1 {
|
|
|
2585
2710
|
* Instance get latest recovery time response.
|
|
2586
2711
|
*/
|
|
2587
2712
|
export interface Schema$SqlInstancesGetLatestRecoveryTimeResponse {
|
|
2713
|
+
/**
|
|
2714
|
+
* Timestamp, identifies the earliest recovery time of the source instance.
|
|
2715
|
+
*/
|
|
2716
|
+
earliestRecoveryTime?: string | null;
|
|
2588
2717
|
/**
|
|
2589
2718
|
* This is always `sql#getLatestRecoveryTime`.
|
|
2590
2719
|
*/
|
|
@@ -2893,6 +3022,25 @@ export declare namespace sqladmin_v1 {
|
|
|
2893
3022
|
*/
|
|
2894
3023
|
kind?: string | null;
|
|
2895
3024
|
}
|
|
3025
|
+
/**
|
|
3026
|
+
* The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
|
|
3027
|
+
*/
|
|
3028
|
+
export interface Schema$Status {
|
|
3029
|
+
/**
|
|
3030
|
+
* The status code, which should be an enum value of google.rpc.Code.
|
|
3031
|
+
*/
|
|
3032
|
+
code?: number | null;
|
|
3033
|
+
/**
|
|
3034
|
+
* A list of messages that carry the error details. There is a common set of message types for APIs to use.
|
|
3035
|
+
*/
|
|
3036
|
+
details?: Array<{
|
|
3037
|
+
[key: string]: any;
|
|
3038
|
+
}> | null;
|
|
3039
|
+
/**
|
|
3040
|
+
* A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
|
|
3041
|
+
*/
|
|
3042
|
+
message?: string | null;
|
|
3043
|
+
}
|
|
2896
3044
|
/**
|
|
2897
3045
|
* Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL external server initial dump.
|
|
2898
3046
|
*/
|
|
@@ -2906,6 +3054,19 @@ export declare namespace sqladmin_v1 {
|
|
|
2906
3054
|
*/
|
|
2907
3055
|
value?: string | null;
|
|
2908
3056
|
}
|
|
3057
|
+
/**
|
|
3058
|
+
* Target metric for read pool auto scaling.
|
|
3059
|
+
*/
|
|
3060
|
+
export interface Schema$TargetMetric {
|
|
3061
|
+
/**
|
|
3062
|
+
* The metric name to be used for auto scaling.
|
|
3063
|
+
*/
|
|
3064
|
+
metric?: string | null;
|
|
3065
|
+
/**
|
|
3066
|
+
* The target value for the metric.
|
|
3067
|
+
*/
|
|
3068
|
+
targetValue?: number | null;
|
|
3069
|
+
}
|
|
2909
3070
|
/**
|
|
2910
3071
|
* A Google Cloud SQL service tier resource.
|
|
2911
3072
|
*/
|
|
@@ -2973,6 +3134,14 @@ export declare namespace sqladmin_v1 {
|
|
|
2973
3134
|
* Optional. The host from which the user can connect. For `insert` operations, host defaults to an empty string. For `update` operations, host is specified as part of the request URL. The host name cannot be updated after insertion. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional.
|
|
2974
3135
|
*/
|
|
2975
3136
|
host?: string | null;
|
|
3137
|
+
/**
|
|
3138
|
+
* Optional. The full email for an IAM user. For normal database users, this will not be filled. Only applicable to MySQL database users.
|
|
3139
|
+
*/
|
|
3140
|
+
iamEmail?: string | null;
|
|
3141
|
+
/**
|
|
3142
|
+
* Indicates if a group is active or inactive for IAM database authentication.
|
|
3143
|
+
*/
|
|
3144
|
+
iamStatus?: string | null;
|
|
2976
3145
|
/**
|
|
2977
3146
|
* The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for `update` because it is already specified on the URL.
|
|
2978
3147
|
*/
|
|
@@ -3117,6 +3286,7 @@ export declare namespace sqladmin_v1 {
|
|
|
3117
3286
|
* // "kind": "my_kind",
|
|
3118
3287
|
* // "name": "my_name",
|
|
3119
3288
|
* // "operationType": "my_operationType",
|
|
3289
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
3120
3290
|
* // "selfLink": "my_selfLink",
|
|
3121
3291
|
* // "startTime": "my_startTime",
|
|
3122
3292
|
* // "status": "my_status",
|
|
@@ -3311,6 +3481,7 @@ export declare namespace sqladmin_v1 {
|
|
|
3311
3481
|
* // "kind": "my_kind",
|
|
3312
3482
|
* // "name": "my_name",
|
|
3313
3483
|
* // "operationType": "my_operationType",
|
|
3484
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
3314
3485
|
* // "selfLink": "my_selfLink",
|
|
3315
3486
|
* // "startTime": "my_startTime",
|
|
3316
3487
|
* // "status": "my_status",
|
|
@@ -3557,6 +3728,7 @@ export declare namespace sqladmin_v1 {
|
|
|
3557
3728
|
* // "kind": "my_kind",
|
|
3558
3729
|
* // "name": "my_name",
|
|
3559
3730
|
* // "operationType": "my_operationType",
|
|
3731
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
3560
3732
|
* // "selfLink": "my_selfLink",
|
|
3561
3733
|
* // "startTime": "my_startTime",
|
|
3562
3734
|
* // "status": "my_status",
|
|
@@ -3638,6 +3810,7 @@ export declare namespace sqladmin_v1 {
|
|
|
3638
3810
|
* // "kind": "my_kind",
|
|
3639
3811
|
* // "name": "my_name",
|
|
3640
3812
|
* // "operationType": "my_operationType",
|
|
3813
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
3641
3814
|
* // "selfLink": "my_selfLink",
|
|
3642
3815
|
* // "startTime": "my_startTime",
|
|
3643
3816
|
* // "status": "my_status",
|
|
@@ -3907,6 +4080,7 @@ export declare namespace sqladmin_v1 {
|
|
|
3907
4080
|
* // "kind": "my_kind",
|
|
3908
4081
|
* // "name": "my_name",
|
|
3909
4082
|
* // "operationType": "my_operationType",
|
|
4083
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
3910
4084
|
* // "selfLink": "my_selfLink",
|
|
3911
4085
|
* // "startTime": "my_startTime",
|
|
3912
4086
|
* // "status": "my_status",
|
|
@@ -4238,6 +4412,7 @@ export declare namespace sqladmin_v1 {
|
|
|
4238
4412
|
* // "kind": "my_kind",
|
|
4239
4413
|
* // "name": "my_name",
|
|
4240
4414
|
* // "operationType": "my_operationType",
|
|
4415
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
4241
4416
|
* // "selfLink": "my_selfLink",
|
|
4242
4417
|
* // "startTime": "my_startTime",
|
|
4243
4418
|
* // "status": "my_status",
|
|
@@ -4412,6 +4587,7 @@ export declare namespace sqladmin_v1 {
|
|
|
4412
4587
|
* // "kind": "my_kind",
|
|
4413
4588
|
* // "name": "my_name",
|
|
4414
4589
|
* // "operationType": "my_operationType",
|
|
4590
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
4415
4591
|
* // "selfLink": "my_selfLink",
|
|
4416
4592
|
* // "startTime": "my_startTime",
|
|
4417
4593
|
* // "status": "my_status",
|
|
@@ -4579,6 +4755,7 @@ export declare namespace sqladmin_v1 {
|
|
|
4579
4755
|
* // "kind": "my_kind",
|
|
4580
4756
|
* // "name": "my_name",
|
|
4581
4757
|
* // "operationType": "my_operationType",
|
|
4758
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
4582
4759
|
* // "selfLink": "my_selfLink",
|
|
4583
4760
|
* // "startTime": "my_startTime",
|
|
4584
4761
|
* // "status": "my_status",
|
|
@@ -4680,6 +4857,7 @@ export declare namespace sqladmin_v1 {
|
|
|
4680
4857
|
* // "kind": "my_kind",
|
|
4681
4858
|
* // "name": "my_name",
|
|
4682
4859
|
* // "operationType": "my_operationType",
|
|
4860
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
4683
4861
|
* // "selfLink": "my_selfLink",
|
|
4684
4862
|
* // "startTime": "my_startTime",
|
|
4685
4863
|
* // "status": "my_status",
|
|
@@ -5008,6 +5186,7 @@ export declare namespace sqladmin_v1 {
|
|
|
5008
5186
|
* // "kind": "my_kind",
|
|
5009
5187
|
* // "name": "my_name",
|
|
5010
5188
|
* // "operationType": "my_operationType",
|
|
5189
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
5011
5190
|
* // "selfLink": "my_selfLink",
|
|
5012
5191
|
* // "startTime": "my_startTime",
|
|
5013
5192
|
* // "status": "my_status",
|
|
@@ -5091,6 +5270,7 @@ export declare namespace sqladmin_v1 {
|
|
|
5091
5270
|
* // "kind": "my_kind",
|
|
5092
5271
|
* // "name": "my_name",
|
|
5093
5272
|
* // "operationType": "my_operationType",
|
|
5273
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
5094
5274
|
* // "selfLink": "my_selfLink",
|
|
5095
5275
|
* // "startTime": "my_startTime",
|
|
5096
5276
|
* // "status": "my_status",
|
|
@@ -5154,9 +5334,9 @@ export declare namespace sqladmin_v1 {
|
|
|
5154
5334
|
*
|
|
5155
5335
|
* // Do the magic
|
|
5156
5336
|
* const res = await sql.instances.clone({
|
|
5157
|
-
* // The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
|
|
5337
|
+
* // Required. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
|
|
5158
5338
|
* instance: 'placeholder-value',
|
|
5159
|
-
* // Project ID of the source as well as the clone Cloud SQL instance.
|
|
5339
|
+
* // Required. Project ID of the source as well as the clone Cloud SQL instance.
|
|
5160
5340
|
* project: 'placeholder-value',
|
|
5161
5341
|
*
|
|
5162
5342
|
* // Request body metadata
|
|
@@ -5182,6 +5362,7 @@ export declare namespace sqladmin_v1 {
|
|
|
5182
5362
|
* // "kind": "my_kind",
|
|
5183
5363
|
* // "name": "my_name",
|
|
5184
5364
|
* // "operationType": "my_operationType",
|
|
5365
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
5185
5366
|
* // "selfLink": "my_selfLink",
|
|
5186
5367
|
* // "startTime": "my_startTime",
|
|
5187
5368
|
* // "status": "my_status",
|
|
@@ -5273,6 +5454,7 @@ export declare namespace sqladmin_v1 {
|
|
|
5273
5454
|
* // "kind": "my_kind",
|
|
5274
5455
|
* // "name": "my_name",
|
|
5275
5456
|
* // "operationType": "my_operationType",
|
|
5457
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
5276
5458
|
* // "selfLink": "my_selfLink",
|
|
5277
5459
|
* // "startTime": "my_startTime",
|
|
5278
5460
|
* // "status": "my_status",
|
|
@@ -5364,6 +5546,7 @@ export declare namespace sqladmin_v1 {
|
|
|
5364
5546
|
* // "kind": "my_kind",
|
|
5365
5547
|
* // "name": "my_name",
|
|
5366
5548
|
* // "operationType": "my_operationType",
|
|
5549
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
5367
5550
|
* // "selfLink": "my_selfLink",
|
|
5368
5551
|
* // "startTime": "my_startTime",
|
|
5369
5552
|
* // "status": "my_status",
|
|
@@ -5455,6 +5638,7 @@ export declare namespace sqladmin_v1 {
|
|
|
5455
5638
|
* // "kind": "my_kind",
|
|
5456
5639
|
* // "name": "my_name",
|
|
5457
5640
|
* // "operationType": "my_operationType",
|
|
5641
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
5458
5642
|
* // "selfLink": "my_selfLink",
|
|
5459
5643
|
* // "startTime": "my_startTime",
|
|
5460
5644
|
* // "status": "my_status",
|
|
@@ -5529,8 +5713,10 @@ export declare namespace sqladmin_v1 {
|
|
|
5529
5713
|
* // {
|
|
5530
5714
|
* // "autoIamAuthn": false,
|
|
5531
5715
|
* // "database": "my_database",
|
|
5716
|
+
* // "partialResultMode": "my_partialResultMode",
|
|
5532
5717
|
* // "rowLimit": "my_rowLimit",
|
|
5533
|
-
* // "sqlStatement": "my_sqlStatement"
|
|
5718
|
+
* // "sqlStatement": "my_sqlStatement",
|
|
5719
|
+
* // "user": "my_user"
|
|
5534
5720
|
* // }
|
|
5535
5721
|
* },
|
|
5536
5722
|
* });
|
|
@@ -5538,8 +5724,10 @@ export declare namespace sqladmin_v1 {
|
|
|
5538
5724
|
*
|
|
5539
5725
|
* // Example response
|
|
5540
5726
|
* // {
|
|
5727
|
+
* // "messages": [],
|
|
5541
5728
|
* // "metadata": {},
|
|
5542
|
-
* // "results": []
|
|
5729
|
+
* // "results": [],
|
|
5730
|
+
* // "status": {}
|
|
5543
5731
|
* // }
|
|
5544
5732
|
* }
|
|
5545
5733
|
*
|
|
@@ -5620,6 +5808,7 @@ export declare namespace sqladmin_v1 {
|
|
|
5620
5808
|
* // "kind": "my_kind",
|
|
5621
5809
|
* // "name": "my_name",
|
|
5622
5810
|
* // "operationType": "my_operationType",
|
|
5811
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
5623
5812
|
* // "selfLink": "my_selfLink",
|
|
5624
5813
|
* // "startTime": "my_startTime",
|
|
5625
5814
|
* // "status": "my_status",
|
|
@@ -5711,6 +5900,7 @@ export declare namespace sqladmin_v1 {
|
|
|
5711
5900
|
* // "kind": "my_kind",
|
|
5712
5901
|
* // "name": "my_name",
|
|
5713
5902
|
* // "operationType": "my_operationType",
|
|
5903
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
5714
5904
|
* // "selfLink": "my_selfLink",
|
|
5715
5905
|
* // "startTime": "my_startTime",
|
|
5716
5906
|
* // "status": "my_status",
|
|
@@ -5774,9 +5964,9 @@ export declare namespace sqladmin_v1 {
|
|
|
5774
5964
|
*
|
|
5775
5965
|
* // Do the magic
|
|
5776
5966
|
* const res = await sql.instances.get({
|
|
5777
|
-
* // Database instance ID. This does not include the project ID.
|
|
5967
|
+
* // Required. Database instance ID. This does not include the project ID.
|
|
5778
5968
|
* instance: 'placeholder-value',
|
|
5779
|
-
* // Project ID of the project that contains the instance.
|
|
5969
|
+
* // Required. Project ID of the project that contains the instance.
|
|
5780
5970
|
* project: 'placeholder-value',
|
|
5781
5971
|
* });
|
|
5782
5972
|
* console.log(res.data);
|
|
@@ -5914,6 +6104,7 @@ export declare namespace sqladmin_v1 {
|
|
|
5914
6104
|
* // "kind": "my_kind",
|
|
5915
6105
|
* // "name": "my_name",
|
|
5916
6106
|
* // "operationType": "my_operationType",
|
|
6107
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
5917
6108
|
* // "selfLink": "my_selfLink",
|
|
5918
6109
|
* // "startTime": "my_startTime",
|
|
5919
6110
|
* // "status": "my_status",
|
|
@@ -6053,6 +6244,7 @@ export declare namespace sqladmin_v1 {
|
|
|
6053
6244
|
* // "kind": "my_kind",
|
|
6054
6245
|
* // "name": "my_name",
|
|
6055
6246
|
* // "operationType": "my_operationType",
|
|
6247
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
6056
6248
|
* // "selfLink": "my_selfLink",
|
|
6057
6249
|
* // "startTime": "my_startTime",
|
|
6058
6250
|
* // "status": "my_status",
|
|
@@ -6401,6 +6593,7 @@ export declare namespace sqladmin_v1 {
|
|
|
6401
6593
|
* // "kind": "my_kind",
|
|
6402
6594
|
* // "name": "my_name",
|
|
6403
6595
|
* // "operationType": "my_operationType",
|
|
6596
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
6404
6597
|
* // "selfLink": "my_selfLink",
|
|
6405
6598
|
* // "startTime": "my_startTime",
|
|
6406
6599
|
* // "status": "my_status",
|
|
@@ -6496,6 +6689,7 @@ export declare namespace sqladmin_v1 {
|
|
|
6496
6689
|
* // "kind": "my_kind",
|
|
6497
6690
|
* // "name": "my_name",
|
|
6498
6691
|
* // "operationType": "my_operationType",
|
|
6692
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
6499
6693
|
* // "selfLink": "my_selfLink",
|
|
6500
6694
|
* // "startTime": "my_startTime",
|
|
6501
6695
|
* // "status": "my_status",
|
|
@@ -6525,6 +6719,98 @@ export declare namespace sqladmin_v1 {
|
|
|
6525
6719
|
pointInTimeRestore(params: Params$Resource$Instances$Pointintimerestore, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6526
6720
|
pointInTimeRestore(params: Params$Resource$Instances$Pointintimerestore, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6527
6721
|
pointInTimeRestore(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6722
|
+
/**
|
|
6723
|
+
* Execute MVU Pre-checks
|
|
6724
|
+
* @example
|
|
6725
|
+
* ```js
|
|
6726
|
+
* // Before running the sample:
|
|
6727
|
+
* // - Enable the API at:
|
|
6728
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
6729
|
+
* // - Login into gcloud by running:
|
|
6730
|
+
* // ```sh
|
|
6731
|
+
* // $ gcloud auth application-default login
|
|
6732
|
+
* // ```
|
|
6733
|
+
* // - Install the npm module by running:
|
|
6734
|
+
* // ```sh
|
|
6735
|
+
* // $ npm install googleapis
|
|
6736
|
+
* // ```
|
|
6737
|
+
*
|
|
6738
|
+
* const {google} = require('googleapis');
|
|
6739
|
+
* const sqladmin = google.sqladmin('v1');
|
|
6740
|
+
*
|
|
6741
|
+
* async function main() {
|
|
6742
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6743
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6744
|
+
* scopes: [
|
|
6745
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6746
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
6747
|
+
* ],
|
|
6748
|
+
* });
|
|
6749
|
+
*
|
|
6750
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6751
|
+
* const authClient = await auth.getClient();
|
|
6752
|
+
* google.options({auth: authClient});
|
|
6753
|
+
*
|
|
6754
|
+
* // Do the magic
|
|
6755
|
+
* const res = await sql.instances.preCheckMajorVersionUpgrade({
|
|
6756
|
+
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
6757
|
+
* instance: 'placeholder-value',
|
|
6758
|
+
* // Required. Project ID of the project that contains the instance.
|
|
6759
|
+
* project: 'placeholder-value',
|
|
6760
|
+
*
|
|
6761
|
+
* // Request body metadata
|
|
6762
|
+
* requestBody: {
|
|
6763
|
+
* // request body parameters
|
|
6764
|
+
* // {
|
|
6765
|
+
* // "preCheckMajorVersionUpgradeContext": {}
|
|
6766
|
+
* // }
|
|
6767
|
+
* },
|
|
6768
|
+
* });
|
|
6769
|
+
* console.log(res.data);
|
|
6770
|
+
*
|
|
6771
|
+
* // Example response
|
|
6772
|
+
* // {
|
|
6773
|
+
* // "acquireSsrsLeaseContext": {},
|
|
6774
|
+
* // "apiWarning": {},
|
|
6775
|
+
* // "backupContext": {},
|
|
6776
|
+
* // "endTime": "my_endTime",
|
|
6777
|
+
* // "error": {},
|
|
6778
|
+
* // "exportContext": {},
|
|
6779
|
+
* // "importContext": {},
|
|
6780
|
+
* // "insertTime": "my_insertTime",
|
|
6781
|
+
* // "kind": "my_kind",
|
|
6782
|
+
* // "name": "my_name",
|
|
6783
|
+
* // "operationType": "my_operationType",
|
|
6784
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
6785
|
+
* // "selfLink": "my_selfLink",
|
|
6786
|
+
* // "startTime": "my_startTime",
|
|
6787
|
+
* // "status": "my_status",
|
|
6788
|
+
* // "subOperationType": {},
|
|
6789
|
+
* // "targetId": "my_targetId",
|
|
6790
|
+
* // "targetLink": "my_targetLink",
|
|
6791
|
+
* // "targetProject": "my_targetProject",
|
|
6792
|
+
* // "user": "my_user"
|
|
6793
|
+
* // }
|
|
6794
|
+
* }
|
|
6795
|
+
*
|
|
6796
|
+
* main().catch(e => {
|
|
6797
|
+
* console.error(e);
|
|
6798
|
+
* throw e;
|
|
6799
|
+
* });
|
|
6800
|
+
*
|
|
6801
|
+
* ```
|
|
6802
|
+
*
|
|
6803
|
+
* @param params - Parameters for request
|
|
6804
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6805
|
+
* @param callback - Optional callback that handles the response.
|
|
6806
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6807
|
+
*/
|
|
6808
|
+
preCheckMajorVersionUpgrade(params: Params$Resource$Instances$Precheckmajorversionupgrade, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6809
|
+
preCheckMajorVersionUpgrade(params?: Params$Resource$Instances$Precheckmajorversionupgrade, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
6810
|
+
preCheckMajorVersionUpgrade(params: Params$Resource$Instances$Precheckmajorversionupgrade, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
6811
|
+
preCheckMajorVersionUpgrade(params: Params$Resource$Instances$Precheckmajorversionupgrade, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6812
|
+
preCheckMajorVersionUpgrade(params: Params$Resource$Instances$Precheckmajorversionupgrade, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6813
|
+
preCheckMajorVersionUpgrade(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6528
6814
|
/**
|
|
6529
6815
|
* Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart.
|
|
6530
6816
|
* @example
|
|
@@ -6581,6 +6867,7 @@ export declare namespace sqladmin_v1 {
|
|
|
6581
6867
|
* // "kind": "my_kind",
|
|
6582
6868
|
* // "name": "my_name",
|
|
6583
6869
|
* // "operationType": "my_operationType",
|
|
6870
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
6584
6871
|
* // "selfLink": "my_selfLink",
|
|
6585
6872
|
* // "startTime": "my_startTime",
|
|
6586
6873
|
* // "status": "my_status",
|
|
@@ -6672,6 +6959,7 @@ export declare namespace sqladmin_v1 {
|
|
|
6672
6959
|
* // "kind": "my_kind",
|
|
6673
6960
|
* // "name": "my_name",
|
|
6674
6961
|
* // "operationType": "my_operationType",
|
|
6962
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
6675
6963
|
* // "selfLink": "my_selfLink",
|
|
6676
6964
|
* // "startTime": "my_startTime",
|
|
6677
6965
|
* // "status": "my_status",
|
|
@@ -6802,6 +7090,8 @@ export declare namespace sqladmin_v1 {
|
|
|
6802
7090
|
* const res = await sql.instances.resetSslConfig({
|
|
6803
7091
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
6804
7092
|
* instance: 'placeholder-value',
|
|
7093
|
+
* // Optional. Reset SSL mode to use.
|
|
7094
|
+
* mode: 'placeholder-value',
|
|
6805
7095
|
* // Project ID of the project that contains the instance.
|
|
6806
7096
|
* project: 'placeholder-value',
|
|
6807
7097
|
* });
|
|
@@ -6820,6 +7110,7 @@ export declare namespace sqladmin_v1 {
|
|
|
6820
7110
|
* // "kind": "my_kind",
|
|
6821
7111
|
* // "name": "my_name",
|
|
6822
7112
|
* // "operationType": "my_operationType",
|
|
7113
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
6823
7114
|
* // "selfLink": "my_selfLink",
|
|
6824
7115
|
* // "startTime": "my_startTime",
|
|
6825
7116
|
* // "status": "my_status",
|
|
@@ -6903,6 +7194,7 @@ export declare namespace sqladmin_v1 {
|
|
|
6903
7194
|
* // "kind": "my_kind",
|
|
6904
7195
|
* // "name": "my_name",
|
|
6905
7196
|
* // "operationType": "my_operationType",
|
|
7197
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
6906
7198
|
* // "selfLink": "my_selfLink",
|
|
6907
7199
|
* // "startTime": "my_startTime",
|
|
6908
7200
|
* // "status": "my_status",
|
|
@@ -6998,6 +7290,7 @@ export declare namespace sqladmin_v1 {
|
|
|
6998
7290
|
* // "kind": "my_kind",
|
|
6999
7291
|
* // "name": "my_name",
|
|
7000
7292
|
* // "operationType": "my_operationType",
|
|
7293
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
7001
7294
|
* // "selfLink": "my_selfLink",
|
|
7002
7295
|
* // "startTime": "my_startTime",
|
|
7003
7296
|
* // "status": "my_status",
|
|
@@ -7089,6 +7382,7 @@ export declare namespace sqladmin_v1 {
|
|
|
7089
7382
|
* // "kind": "my_kind",
|
|
7090
7383
|
* // "name": "my_name",
|
|
7091
7384
|
* // "operationType": "my_operationType",
|
|
7385
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
7092
7386
|
* // "selfLink": "my_selfLink",
|
|
7093
7387
|
* // "startTime": "my_startTime",
|
|
7094
7388
|
* // "status": "my_status",
|
|
@@ -7180,6 +7474,7 @@ export declare namespace sqladmin_v1 {
|
|
|
7180
7474
|
* // "kind": "my_kind",
|
|
7181
7475
|
* // "name": "my_name",
|
|
7182
7476
|
* // "operationType": "my_operationType",
|
|
7477
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
7183
7478
|
* // "selfLink": "my_selfLink",
|
|
7184
7479
|
* // "startTime": "my_startTime",
|
|
7185
7480
|
* // "status": "my_status",
|
|
@@ -7263,6 +7558,7 @@ export declare namespace sqladmin_v1 {
|
|
|
7263
7558
|
* // "kind": "my_kind",
|
|
7264
7559
|
* // "name": "my_name",
|
|
7265
7560
|
* // "operationType": "my_operationType",
|
|
7561
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
7266
7562
|
* // "selfLink": "my_selfLink",
|
|
7267
7563
|
* // "startTime": "my_startTime",
|
|
7268
7564
|
* // "status": "my_status",
|
|
@@ -7346,6 +7642,7 @@ export declare namespace sqladmin_v1 {
|
|
|
7346
7642
|
* // "kind": "my_kind",
|
|
7347
7643
|
* // "name": "my_name",
|
|
7348
7644
|
* // "operationType": "my_operationType",
|
|
7645
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
7349
7646
|
* // "selfLink": "my_selfLink",
|
|
7350
7647
|
* // "startTime": "my_startTime",
|
|
7351
7648
|
* // "status": "my_status",
|
|
@@ -7431,6 +7728,7 @@ export declare namespace sqladmin_v1 {
|
|
|
7431
7728
|
* // "kind": "my_kind",
|
|
7432
7729
|
* // "name": "my_name",
|
|
7433
7730
|
* // "operationType": "my_operationType",
|
|
7731
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
7434
7732
|
* // "selfLink": "my_selfLink",
|
|
7435
7733
|
* // "startTime": "my_startTime",
|
|
7436
7734
|
* // "status": "my_status",
|
|
@@ -7522,6 +7820,7 @@ export declare namespace sqladmin_v1 {
|
|
|
7522
7820
|
* // "kind": "my_kind",
|
|
7523
7821
|
* // "name": "my_name",
|
|
7524
7822
|
* // "operationType": "my_operationType",
|
|
7823
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
7525
7824
|
* // "selfLink": "my_selfLink",
|
|
7526
7825
|
* // "startTime": "my_startTime",
|
|
7527
7826
|
* // "status": "my_status",
|
|
@@ -7663,6 +7962,7 @@ export declare namespace sqladmin_v1 {
|
|
|
7663
7962
|
* // "kind": "my_kind",
|
|
7664
7963
|
* // "name": "my_name",
|
|
7665
7964
|
* // "operationType": "my_operationType",
|
|
7965
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
7666
7966
|
* // "selfLink": "my_selfLink",
|
|
7667
7967
|
* // "startTime": "my_startTime",
|
|
7668
7968
|
* // "status": "my_status",
|
|
@@ -7729,11 +8029,11 @@ export declare namespace sqladmin_v1 {
|
|
|
7729
8029
|
}
|
|
7730
8030
|
export interface Params$Resource$Instances$Clone extends StandardParameters {
|
|
7731
8031
|
/**
|
|
7732
|
-
* The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
|
|
8032
|
+
* Required. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
|
|
7733
8033
|
*/
|
|
7734
8034
|
instance?: string;
|
|
7735
8035
|
/**
|
|
7736
|
-
* Project ID of the source as well as the clone Cloud SQL instance.
|
|
8036
|
+
* Required. Project ID of the source as well as the clone Cloud SQL instance.
|
|
7737
8037
|
*/
|
|
7738
8038
|
project?: string;
|
|
7739
8039
|
/**
|
|
@@ -7839,11 +8139,11 @@ export declare namespace sqladmin_v1 {
|
|
|
7839
8139
|
}
|
|
7840
8140
|
export interface Params$Resource$Instances$Get extends StandardParameters {
|
|
7841
8141
|
/**
|
|
7842
|
-
* Database instance ID. This does not include the project ID.
|
|
8142
|
+
* Required. Database instance ID. This does not include the project ID.
|
|
7843
8143
|
*/
|
|
7844
8144
|
instance?: string;
|
|
7845
8145
|
/**
|
|
7846
|
-
* Project ID of the project that contains the instance.
|
|
8146
|
+
* Required. Project ID of the project that contains the instance.
|
|
7847
8147
|
*/
|
|
7848
8148
|
project?: string;
|
|
7849
8149
|
}
|
|
@@ -7933,6 +8233,20 @@ export declare namespace sqladmin_v1 {
|
|
|
7933
8233
|
*/
|
|
7934
8234
|
requestBody?: Schema$PointInTimeRestoreContext;
|
|
7935
8235
|
}
|
|
8236
|
+
export interface Params$Resource$Instances$Precheckmajorversionupgrade extends StandardParameters {
|
|
8237
|
+
/**
|
|
8238
|
+
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
8239
|
+
*/
|
|
8240
|
+
instance?: string;
|
|
8241
|
+
/**
|
|
8242
|
+
* Required. Project ID of the project that contains the instance.
|
|
8243
|
+
*/
|
|
8244
|
+
project?: string;
|
|
8245
|
+
/**
|
|
8246
|
+
* Request body metadata
|
|
8247
|
+
*/
|
|
8248
|
+
requestBody?: Schema$InstancesPreCheckMajorVersionUpgradeRequest;
|
|
8249
|
+
}
|
|
7936
8250
|
export interface Params$Resource$Instances$Promotereplica extends StandardParameters {
|
|
7937
8251
|
/**
|
|
7938
8252
|
* Set to true to invoke a replica failover to the DR replica. As part of replica failover, the promote operation attempts to add the original primary instance as a replica of the promoted DR replica when the original primary instance comes back online. If set to false or not specified, then the original primary instance becomes an independent Cloud SQL primary instance.
|
|
@@ -7976,6 +8290,10 @@ export declare namespace sqladmin_v1 {
|
|
|
7976
8290
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
7977
8291
|
*/
|
|
7978
8292
|
instance?: string;
|
|
8293
|
+
/**
|
|
8294
|
+
* Optional. Reset SSL mode to use.
|
|
8295
|
+
*/
|
|
8296
|
+
mode?: string;
|
|
7979
8297
|
/**
|
|
7980
8298
|
* Project ID of the project that contains the instance.
|
|
7981
8299
|
*/
|
|
@@ -8195,9 +8513,9 @@ export declare namespace sqladmin_v1 {
|
|
|
8195
8513
|
*
|
|
8196
8514
|
* // Do the magic
|
|
8197
8515
|
* const res = await sql.operations.get({
|
|
8198
|
-
* // Instance operation ID.
|
|
8516
|
+
* // Required. Instance operation ID.
|
|
8199
8517
|
* operation: 'placeholder-value',
|
|
8200
|
-
* // Project ID of the project that contains the instance.
|
|
8518
|
+
* // Required. Project ID of the project that contains the instance.
|
|
8201
8519
|
* project: 'placeholder-value',
|
|
8202
8520
|
* });
|
|
8203
8521
|
* console.log(res.data);
|
|
@@ -8215,6 +8533,7 @@ export declare namespace sqladmin_v1 {
|
|
|
8215
8533
|
* // "kind": "my_kind",
|
|
8216
8534
|
* // "name": "my_name",
|
|
8217
8535
|
* // "operationType": "my_operationType",
|
|
8536
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
8218
8537
|
* // "selfLink": "my_selfLink",
|
|
8219
8538
|
* // "startTime": "my_startTime",
|
|
8220
8539
|
* // "status": "my_status",
|
|
@@ -8328,11 +8647,11 @@ export declare namespace sqladmin_v1 {
|
|
|
8328
8647
|
}
|
|
8329
8648
|
export interface Params$Resource$Operations$Get extends StandardParameters {
|
|
8330
8649
|
/**
|
|
8331
|
-
* Instance operation ID.
|
|
8650
|
+
* Required. Instance operation ID.
|
|
8332
8651
|
*/
|
|
8333
8652
|
operation?: string;
|
|
8334
8653
|
/**
|
|
8335
|
-
* Project ID of the project that contains the instance.
|
|
8654
|
+
* Required. Project ID of the project that contains the instance.
|
|
8336
8655
|
*/
|
|
8337
8656
|
project?: string;
|
|
8338
8657
|
}
|
|
@@ -8474,6 +8793,7 @@ export declare namespace sqladmin_v1 {
|
|
|
8474
8793
|
*
|
|
8475
8794
|
* // Example response
|
|
8476
8795
|
* // {
|
|
8796
|
+
* // "earliestRecoveryTime": "my_earliestRecoveryTime",
|
|
8477
8797
|
* // "kind": "my_kind",
|
|
8478
8798
|
* // "latestRecoveryTime": "my_latestRecoveryTime"
|
|
8479
8799
|
* // }
|
|
@@ -8559,6 +8879,7 @@ export declare namespace sqladmin_v1 {
|
|
|
8559
8879
|
* // "kind": "my_kind",
|
|
8560
8880
|
* // "name": "my_name",
|
|
8561
8881
|
* // "operationType": "my_operationType",
|
|
8882
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
8562
8883
|
* // "selfLink": "my_selfLink",
|
|
8563
8884
|
* // "startTime": "my_startTime",
|
|
8564
8885
|
* // "status": "my_status",
|
|
@@ -8650,6 +8971,7 @@ export declare namespace sqladmin_v1 {
|
|
|
8650
8971
|
* // "kind": "my_kind",
|
|
8651
8972
|
* // "name": "my_name",
|
|
8652
8973
|
* // "operationType": "my_operationType",
|
|
8974
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
8653
8975
|
* // "selfLink": "my_selfLink",
|
|
8654
8976
|
* // "startTime": "my_startTime",
|
|
8655
8977
|
* // "status": "my_status",
|
|
@@ -8739,6 +9061,7 @@ export declare namespace sqladmin_v1 {
|
|
|
8739
9061
|
* // "kind": "my_kind",
|
|
8740
9062
|
* // "name": "my_name",
|
|
8741
9063
|
* // "operationType": "my_operationType",
|
|
9064
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
8742
9065
|
* // "selfLink": "my_selfLink",
|
|
8743
9066
|
* // "startTime": "my_startTime",
|
|
8744
9067
|
* // "status": "my_status",
|
|
@@ -8835,6 +9158,7 @@ export declare namespace sqladmin_v1 {
|
|
|
8835
9158
|
* // "kind": "my_kind",
|
|
8836
9159
|
* // "name": "my_name",
|
|
8837
9160
|
* // "operationType": "my_operationType",
|
|
9161
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
8838
9162
|
* // "selfLink": "my_selfLink",
|
|
8839
9163
|
* // "startTime": "my_startTime",
|
|
8840
9164
|
* // "status": "my_status",
|
|
@@ -9181,6 +9505,7 @@ export declare namespace sqladmin_v1 {
|
|
|
9181
9505
|
* // "kind": "my_kind",
|
|
9182
9506
|
* // "name": "my_name",
|
|
9183
9507
|
* // "operationType": "my_operationType",
|
|
9508
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
9184
9509
|
* // "selfLink": "my_selfLink",
|
|
9185
9510
|
* // "startTime": "my_startTime",
|
|
9186
9511
|
* // "status": "my_status",
|
|
@@ -9629,6 +9954,7 @@ export declare namespace sqladmin_v1 {
|
|
|
9629
9954
|
* // "kind": "my_kind",
|
|
9630
9955
|
* // "name": "my_name",
|
|
9631
9956
|
* // "operationType": "my_operationType",
|
|
9957
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
9632
9958
|
* // "selfLink": "my_selfLink",
|
|
9633
9959
|
* // "startTime": "my_startTime",
|
|
9634
9960
|
* // "status": "my_status",
|
|
@@ -9708,6 +10034,8 @@ export declare namespace sqladmin_v1 {
|
|
|
9708
10034
|
* // "dualPasswordType": "my_dualPasswordType",
|
|
9709
10035
|
* // "etag": "my_etag",
|
|
9710
10036
|
* // "host": "my_host",
|
|
10037
|
+
* // "iamEmail": "my_iamEmail",
|
|
10038
|
+
* // "iamStatus": "my_iamStatus",
|
|
9711
10039
|
* // "instance": "my_instance",
|
|
9712
10040
|
* // "kind": "my_kind",
|
|
9713
10041
|
* // "name": "my_name",
|
|
@@ -9783,6 +10111,8 @@ export declare namespace sqladmin_v1 {
|
|
|
9783
10111
|
* // "dualPasswordType": "my_dualPasswordType",
|
|
9784
10112
|
* // "etag": "my_etag",
|
|
9785
10113
|
* // "host": "my_host",
|
|
10114
|
+
* // "iamEmail": "my_iamEmail",
|
|
10115
|
+
* // "iamStatus": "my_iamStatus",
|
|
9786
10116
|
* // "instance": "my_instance",
|
|
9787
10117
|
* // "kind": "my_kind",
|
|
9788
10118
|
* // "name": "my_name",
|
|
@@ -9809,6 +10139,7 @@ export declare namespace sqladmin_v1 {
|
|
|
9809
10139
|
* // "kind": "my_kind",
|
|
9810
10140
|
* // "name": "my_name",
|
|
9811
10141
|
* // "operationType": "my_operationType",
|
|
10142
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
9812
10143
|
* // "selfLink": "my_selfLink",
|
|
9813
10144
|
* // "startTime": "my_startTime",
|
|
9814
10145
|
* // "status": "my_status",
|
|
@@ -9955,6 +10286,8 @@ export declare namespace sqladmin_v1 {
|
|
|
9955
10286
|
* // "dualPasswordType": "my_dualPasswordType",
|
|
9956
10287
|
* // "etag": "my_etag",
|
|
9957
10288
|
* // "host": "my_host",
|
|
10289
|
+
* // "iamEmail": "my_iamEmail",
|
|
10290
|
+
* // "iamStatus": "my_iamStatus",
|
|
9958
10291
|
* // "instance": "my_instance",
|
|
9959
10292
|
* // "kind": "my_kind",
|
|
9960
10293
|
* // "name": "my_name",
|
|
@@ -9981,6 +10314,7 @@ export declare namespace sqladmin_v1 {
|
|
|
9981
10314
|
* // "kind": "my_kind",
|
|
9982
10315
|
* // "name": "my_name",
|
|
9983
10316
|
* // "operationType": "my_operationType",
|
|
10317
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
9984
10318
|
* // "selfLink": "my_selfLink",
|
|
9985
10319
|
* // "startTime": "my_startTime",
|
|
9986
10320
|
* // "status": "my_status",
|