@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/v1.ts
CHANGED
|
@@ -230,7 +230,7 @@ export namespace sqladmin_v1 {
|
|
|
230
230
|
name?: string | null;
|
|
231
231
|
}
|
|
232
232
|
/**
|
|
233
|
-
* A backup resource.
|
|
233
|
+
* A backup resource.
|
|
234
234
|
*/
|
|
235
235
|
export interface Schema$Backup {
|
|
236
236
|
/**
|
|
@@ -550,7 +550,7 @@ export namespace sqladmin_v1 {
|
|
|
550
550
|
*/
|
|
551
551
|
databaseNames?: string[] | null;
|
|
552
552
|
/**
|
|
553
|
-
* Name of the Cloud SQL instance to be created as a clone.
|
|
553
|
+
* Required. Name of the Cloud SQL instance to be created as a clone.
|
|
554
554
|
*/
|
|
555
555
|
destinationInstanceName?: string | null;
|
|
556
556
|
/**
|
|
@@ -1138,6 +1138,10 @@ export namespace sqladmin_v1 {
|
|
|
1138
1138
|
* Optional. Name of the database on which the statement will be executed.
|
|
1139
1139
|
*/
|
|
1140
1140
|
database?: string | null;
|
|
1141
|
+
/**
|
|
1142
|
+
* 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.
|
|
1143
|
+
*/
|
|
1144
|
+
partialResultMode?: string | null;
|
|
1141
1145
|
/**
|
|
1142
1146
|
* Optional. The maximum number of rows returned per SQL statement.
|
|
1143
1147
|
*/
|
|
@@ -1146,6 +1150,10 @@ export namespace sqladmin_v1 {
|
|
|
1146
1150
|
* Required. SQL statements to run on the database. It can be a single statement or a sequence of statements separated by semicolons.
|
|
1147
1151
|
*/
|
|
1148
1152
|
sqlStatement?: string | null;
|
|
1153
|
+
/**
|
|
1154
|
+
* 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.
|
|
1155
|
+
*/
|
|
1156
|
+
user?: string | null;
|
|
1149
1157
|
}
|
|
1150
1158
|
/**
|
|
1151
1159
|
* Database instance export context.
|
|
@@ -1504,7 +1512,7 @@ export namespace sqladmin_v1 {
|
|
|
1504
1512
|
*/
|
|
1505
1513
|
export interface Schema$InstancesCloneRequest {
|
|
1506
1514
|
/**
|
|
1507
|
-
* Contains details about the clone operation.
|
|
1515
|
+
* Required. Contains details about the clone operation.
|
|
1508
1516
|
*/
|
|
1509
1517
|
cloneContext?: Schema$CloneContext;
|
|
1510
1518
|
}
|
|
@@ -1609,6 +1617,15 @@ export namespace sqladmin_v1 {
|
|
|
1609
1617
|
*/
|
|
1610
1618
|
serverCerts?: Schema$SslCert[];
|
|
1611
1619
|
}
|
|
1620
|
+
/**
|
|
1621
|
+
* Request for Pre-checks for MVU
|
|
1622
|
+
*/
|
|
1623
|
+
export interface Schema$InstancesPreCheckMajorVersionUpgradeRequest {
|
|
1624
|
+
/**
|
|
1625
|
+
* Required. Contains details about the pre-check major version upgrade operation.
|
|
1626
|
+
*/
|
|
1627
|
+
preCheckMajorVersionUpgradeContext?: Schema$PreCheckMajorVersionUpgradeContext;
|
|
1628
|
+
}
|
|
1612
1629
|
/**
|
|
1613
1630
|
* Database Instance reencrypt request.
|
|
1614
1631
|
*/
|
|
@@ -1808,6 +1825,19 @@ export namespace sqladmin_v1 {
|
|
|
1808
1825
|
*/
|
|
1809
1826
|
updateTrack?: string | null;
|
|
1810
1827
|
}
|
|
1828
|
+
/**
|
|
1829
|
+
* Represents a notice or warning message from the database.
|
|
1830
|
+
*/
|
|
1831
|
+
export interface Schema$Message {
|
|
1832
|
+
/**
|
|
1833
|
+
* 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.
|
|
1834
|
+
*/
|
|
1835
|
+
message?: string | null;
|
|
1836
|
+
/**
|
|
1837
|
+
* The severity of the message (e.g., "NOTICE" for PostgreSQL, "WARNING" for MySQL).
|
|
1838
|
+
*/
|
|
1839
|
+
severity?: string | null;
|
|
1840
|
+
}
|
|
1811
1841
|
/**
|
|
1812
1842
|
* The additional metadata information regarding the execution of the SQL statements.
|
|
1813
1843
|
*/
|
|
@@ -1972,6 +2002,10 @@ export namespace sqladmin_v1 {
|
|
|
1972
2002
|
* 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`
|
|
1973
2003
|
*/
|
|
1974
2004
|
operationType?: string | null;
|
|
2005
|
+
/**
|
|
2006
|
+
* 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).
|
|
2007
|
+
*/
|
|
2008
|
+
preCheckMajorVersionUpgradeContext?: Schema$PreCheckMajorVersionUpgradeContext;
|
|
1975
2009
|
/**
|
|
1976
2010
|
* The URI of this resource.
|
|
1977
2011
|
*/
|
|
@@ -2199,6 +2233,40 @@ export namespace sqladmin_v1 {
|
|
|
2199
2233
|
*/
|
|
2200
2234
|
state?: string | null;
|
|
2201
2235
|
}
|
|
2236
|
+
/**
|
|
2237
|
+
* Pre-check major version upgrade context.
|
|
2238
|
+
*/
|
|
2239
|
+
export interface Schema$PreCheckMajorVersionUpgradeContext {
|
|
2240
|
+
/**
|
|
2241
|
+
* Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
|
|
2242
|
+
*/
|
|
2243
|
+
kind?: string | null;
|
|
2244
|
+
/**
|
|
2245
|
+
* Output only. The responses from the precheck operation.
|
|
2246
|
+
*/
|
|
2247
|
+
preCheckResponse?: Schema$PreCheckResponse[];
|
|
2248
|
+
/**
|
|
2249
|
+
* Required. The target database version to upgrade to.
|
|
2250
|
+
*/
|
|
2251
|
+
targetDatabaseVersion?: string | null;
|
|
2252
|
+
}
|
|
2253
|
+
/**
|
|
2254
|
+
* Structured PreCheckResponse containing message, type, and required actions.
|
|
2255
|
+
*/
|
|
2256
|
+
export interface Schema$PreCheckResponse {
|
|
2257
|
+
/**
|
|
2258
|
+
* The actions that the user needs to take. Use repeated for multiple actions.
|
|
2259
|
+
*/
|
|
2260
|
+
actionsRequired?: string[] | null;
|
|
2261
|
+
/**
|
|
2262
|
+
* The message to be displayed to the user.
|
|
2263
|
+
*/
|
|
2264
|
+
message?: string | null;
|
|
2265
|
+
/**
|
|
2266
|
+
* The type of message whether it is an info, warning, or error.
|
|
2267
|
+
*/
|
|
2268
|
+
messageType?: string | null;
|
|
2269
|
+
}
|
|
2202
2270
|
/**
|
|
2203
2271
|
* Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
|
|
2204
2272
|
*/
|
|
@@ -2258,13 +2326,50 @@ export namespace sqladmin_v1 {
|
|
|
2258
2326
|
*/
|
|
2259
2327
|
message?: string | null;
|
|
2260
2328
|
/**
|
|
2261
|
-
* Set to true if the SQL execution's result is truncated due to size limits.
|
|
2329
|
+
* Set to true if the SQL execution's result is truncated due to size limits or an error retrieving results.
|
|
2262
2330
|
*/
|
|
2263
2331
|
partialResult?: boolean | null;
|
|
2264
2332
|
/**
|
|
2265
2333
|
* Rows returned by the SQL statement.
|
|
2266
2334
|
*/
|
|
2267
2335
|
rows?: Schema$Row[];
|
|
2336
|
+
/**
|
|
2337
|
+
* If results were truncated due to an error, details of that error.
|
|
2338
|
+
*/
|
|
2339
|
+
status?: Schema$Status;
|
|
2340
|
+
}
|
|
2341
|
+
/**
|
|
2342
|
+
* The read pool auto-scale configuration.
|
|
2343
|
+
*/
|
|
2344
|
+
export interface Schema$ReadPoolAutoScaleConfig {
|
|
2345
|
+
/**
|
|
2346
|
+
* Indicates whether read pool auto scaling supports scale in operations (removing nodes).
|
|
2347
|
+
*/
|
|
2348
|
+
disableScaleIn?: boolean | null;
|
|
2349
|
+
/**
|
|
2350
|
+
* Indicates whether read pool auto scaling is enabled.
|
|
2351
|
+
*/
|
|
2352
|
+
enabled?: boolean | null;
|
|
2353
|
+
/**
|
|
2354
|
+
* Maximum number of read pool nodes to be maintained.
|
|
2355
|
+
*/
|
|
2356
|
+
maxNodeCount?: number | null;
|
|
2357
|
+
/**
|
|
2358
|
+
* Minimum number of read pool nodes to be maintained.
|
|
2359
|
+
*/
|
|
2360
|
+
minNodeCount?: number | null;
|
|
2361
|
+
/**
|
|
2362
|
+
* The cooldown period for scale-in operations.
|
|
2363
|
+
*/
|
|
2364
|
+
scaleInCooldownSeconds?: number | null;
|
|
2365
|
+
/**
|
|
2366
|
+
* The cooldown period for scale-out operations.
|
|
2367
|
+
*/
|
|
2368
|
+
scaleOutCooldownSeconds?: number | null;
|
|
2369
|
+
/**
|
|
2370
|
+
* Optional. Target metrics for read pool auto scaling.
|
|
2371
|
+
*/
|
|
2372
|
+
targetMetrics?: Schema$TargetMetric[];
|
|
2268
2373
|
}
|
|
2269
2374
|
/**
|
|
2270
2375
|
* Read-replica configuration for connecting to the primary instance.
|
|
@@ -2399,6 +2504,10 @@ export namespace sqladmin_v1 {
|
|
|
2399
2504
|
* The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.
|
|
2400
2505
|
*/
|
|
2401
2506
|
authorizedGaeApplications?: string[] | null;
|
|
2507
|
+
/**
|
|
2508
|
+
* 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.
|
|
2509
|
+
*/
|
|
2510
|
+
autoUpgradeEnabled?: boolean | null;
|
|
2402
2511
|
/**
|
|
2403
2512
|
* 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).
|
|
2404
2513
|
*/
|
|
@@ -2423,6 +2532,10 @@ export namespace sqladmin_v1 {
|
|
|
2423
2532
|
* 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.
|
|
2424
2533
|
*/
|
|
2425
2534
|
crashSafeReplicationEnabled?: boolean | null;
|
|
2535
|
+
/**
|
|
2536
|
+
* This parameter controls whether to allow using Data API to connect to the instance. Not allowed by default.
|
|
2537
|
+
*/
|
|
2538
|
+
dataApiAccess?: string | null;
|
|
2426
2539
|
/**
|
|
2427
2540
|
* The database flags passed to the instance at startup.
|
|
2428
2541
|
*/
|
|
@@ -2503,6 +2616,10 @@ export namespace sqladmin_v1 {
|
|
|
2503
2616
|
* The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.
|
|
2504
2617
|
*/
|
|
2505
2618
|
pricingPlan?: string | null;
|
|
2619
|
+
/**
|
|
2620
|
+
* Optional. The read pool auto-scale configuration for the instance.
|
|
2621
|
+
*/
|
|
2622
|
+
readPoolAutoScaleConfig?: Schema$ReadPoolAutoScaleConfig;
|
|
2506
2623
|
/**
|
|
2507
2624
|
* Optional. Configuration value for recreation of replica after certain replication lag
|
|
2508
2625
|
*/
|
|
@@ -2603,6 +2720,10 @@ export namespace sqladmin_v1 {
|
|
|
2603
2720
|
* Execute SQL statements response.
|
|
2604
2721
|
*/
|
|
2605
2722
|
export interface Schema$SqlInstancesExecuteSqlResponse {
|
|
2723
|
+
/**
|
|
2724
|
+
* 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.
|
|
2725
|
+
*/
|
|
2726
|
+
messages?: Schema$Message[];
|
|
2606
2727
|
/**
|
|
2607
2728
|
* The additional metadata information regarding the execution of the SQL statements.
|
|
2608
2729
|
*/
|
|
@@ -2611,6 +2732,10 @@ export namespace sqladmin_v1 {
|
|
|
2611
2732
|
* The list of results after executing all the SQL statements.
|
|
2612
2733
|
*/
|
|
2613
2734
|
results?: Schema$QueryResult[];
|
|
2735
|
+
/**
|
|
2736
|
+
* Contains the error from the database if the SQL execution failed.
|
|
2737
|
+
*/
|
|
2738
|
+
status?: Schema$Status;
|
|
2614
2739
|
}
|
|
2615
2740
|
/**
|
|
2616
2741
|
* Instance get disk shrink config response.
|
|
@@ -2633,6 +2758,10 @@ export namespace sqladmin_v1 {
|
|
|
2633
2758
|
* Instance get latest recovery time response.
|
|
2634
2759
|
*/
|
|
2635
2760
|
export interface Schema$SqlInstancesGetLatestRecoveryTimeResponse {
|
|
2761
|
+
/**
|
|
2762
|
+
* Timestamp, identifies the earliest recovery time of the source instance.
|
|
2763
|
+
*/
|
|
2764
|
+
earliestRecoveryTime?: string | null;
|
|
2636
2765
|
/**
|
|
2637
2766
|
* This is always `sql#getLatestRecoveryTime`.
|
|
2638
2767
|
*/
|
|
@@ -2940,6 +3069,23 @@ export namespace sqladmin_v1 {
|
|
|
2940
3069
|
*/
|
|
2941
3070
|
kind?: string | null;
|
|
2942
3071
|
}
|
|
3072
|
+
/**
|
|
3073
|
+
* 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).
|
|
3074
|
+
*/
|
|
3075
|
+
export interface Schema$Status {
|
|
3076
|
+
/**
|
|
3077
|
+
* The status code, which should be an enum value of google.rpc.Code.
|
|
3078
|
+
*/
|
|
3079
|
+
code?: number | null;
|
|
3080
|
+
/**
|
|
3081
|
+
* A list of messages that carry the error details. There is a common set of message types for APIs to use.
|
|
3082
|
+
*/
|
|
3083
|
+
details?: Array<{[key: string]: any}> | null;
|
|
3084
|
+
/**
|
|
3085
|
+
* 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.
|
|
3086
|
+
*/
|
|
3087
|
+
message?: string | null;
|
|
3088
|
+
}
|
|
2943
3089
|
/**
|
|
2944
3090
|
* Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL external server initial dump.
|
|
2945
3091
|
*/
|
|
@@ -2953,6 +3099,19 @@ export namespace sqladmin_v1 {
|
|
|
2953
3099
|
*/
|
|
2954
3100
|
value?: string | null;
|
|
2955
3101
|
}
|
|
3102
|
+
/**
|
|
3103
|
+
* Target metric for read pool auto scaling.
|
|
3104
|
+
*/
|
|
3105
|
+
export interface Schema$TargetMetric {
|
|
3106
|
+
/**
|
|
3107
|
+
* The metric name to be used for auto scaling.
|
|
3108
|
+
*/
|
|
3109
|
+
metric?: string | null;
|
|
3110
|
+
/**
|
|
3111
|
+
* The target value for the metric.
|
|
3112
|
+
*/
|
|
3113
|
+
targetValue?: number | null;
|
|
3114
|
+
}
|
|
2956
3115
|
/**
|
|
2957
3116
|
* A Google Cloud SQL service tier resource.
|
|
2958
3117
|
*/
|
|
@@ -3020,6 +3179,14 @@ export namespace sqladmin_v1 {
|
|
|
3020
3179
|
* 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.
|
|
3021
3180
|
*/
|
|
3022
3181
|
host?: string | null;
|
|
3182
|
+
/**
|
|
3183
|
+
* Optional. The full email for an IAM user. For normal database users, this will not be filled. Only applicable to MySQL database users.
|
|
3184
|
+
*/
|
|
3185
|
+
iamEmail?: string | null;
|
|
3186
|
+
/**
|
|
3187
|
+
* Indicates if a group is active or inactive for IAM database authentication.
|
|
3188
|
+
*/
|
|
3189
|
+
iamStatus?: string | null;
|
|
3023
3190
|
/**
|
|
3024
3191
|
* 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.
|
|
3025
3192
|
*/
|
|
@@ -3168,6 +3335,7 @@ export namespace sqladmin_v1 {
|
|
|
3168
3335
|
* // "kind": "my_kind",
|
|
3169
3336
|
* // "name": "my_name",
|
|
3170
3337
|
* // "operationType": "my_operationType",
|
|
3338
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
3171
3339
|
* // "selfLink": "my_selfLink",
|
|
3172
3340
|
* // "startTime": "my_startTime",
|
|
3173
3341
|
* // "status": "my_status",
|
|
@@ -3515,6 +3683,7 @@ export namespace sqladmin_v1 {
|
|
|
3515
3683
|
* // "kind": "my_kind",
|
|
3516
3684
|
* // "name": "my_name",
|
|
3517
3685
|
* // "operationType": "my_operationType",
|
|
3686
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
3518
3687
|
* // "selfLink": "my_selfLink",
|
|
3519
3688
|
* // "startTime": "my_startTime",
|
|
3520
3689
|
* // "status": "my_status",
|
|
@@ -3921,6 +4090,7 @@ export namespace sqladmin_v1 {
|
|
|
3921
4090
|
* // "kind": "my_kind",
|
|
3922
4091
|
* // "name": "my_name",
|
|
3923
4092
|
* // "operationType": "my_operationType",
|
|
4093
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
3924
4094
|
* // "selfLink": "my_selfLink",
|
|
3925
4095
|
* // "startTime": "my_startTime",
|
|
3926
4096
|
* // "status": "my_status",
|
|
@@ -4079,6 +4249,7 @@ export namespace sqladmin_v1 {
|
|
|
4079
4249
|
* // "kind": "my_kind",
|
|
4080
4250
|
* // "name": "my_name",
|
|
4081
4251
|
* // "operationType": "my_operationType",
|
|
4252
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
4082
4253
|
* // "selfLink": "my_selfLink",
|
|
4083
4254
|
* // "startTime": "my_startTime",
|
|
4084
4255
|
* // "status": "my_status",
|
|
@@ -4575,6 +4746,7 @@ export namespace sqladmin_v1 {
|
|
|
4575
4746
|
* // "kind": "my_kind",
|
|
4576
4747
|
* // "name": "my_name",
|
|
4577
4748
|
* // "operationType": "my_operationType",
|
|
4749
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
4578
4750
|
* // "selfLink": "my_selfLink",
|
|
4579
4751
|
* // "startTime": "my_startTime",
|
|
4580
4752
|
* // "status": "my_status",
|
|
@@ -5156,6 +5328,7 @@ export namespace sqladmin_v1 {
|
|
|
5156
5328
|
* // "kind": "my_kind",
|
|
5157
5329
|
* // "name": "my_name",
|
|
5158
5330
|
* // "operationType": "my_operationType",
|
|
5331
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
5159
5332
|
* // "selfLink": "my_selfLink",
|
|
5160
5333
|
* // "startTime": "my_startTime",
|
|
5161
5334
|
* // "status": "my_status",
|
|
@@ -5482,6 +5655,7 @@ export namespace sqladmin_v1 {
|
|
|
5482
5655
|
* // "kind": "my_kind",
|
|
5483
5656
|
* // "name": "my_name",
|
|
5484
5657
|
* // "operationType": "my_operationType",
|
|
5658
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
5485
5659
|
* // "selfLink": "my_selfLink",
|
|
5486
5660
|
* // "startTime": "my_startTime",
|
|
5487
5661
|
* // "status": "my_status",
|
|
@@ -5801,6 +5975,7 @@ export namespace sqladmin_v1 {
|
|
|
5801
5975
|
* // "kind": "my_kind",
|
|
5802
5976
|
* // "name": "my_name",
|
|
5803
5977
|
* // "operationType": "my_operationType",
|
|
5978
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
5804
5979
|
* // "selfLink": "my_selfLink",
|
|
5805
5980
|
* // "startTime": "my_startTime",
|
|
5806
5981
|
* // "status": "my_status",
|
|
@@ -5978,6 +6153,7 @@ export namespace sqladmin_v1 {
|
|
|
5978
6153
|
* // "kind": "my_kind",
|
|
5979
6154
|
* // "name": "my_name",
|
|
5980
6155
|
* // "operationType": "my_operationType",
|
|
6156
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
5981
6157
|
* // "selfLink": "my_selfLink",
|
|
5982
6158
|
* // "startTime": "my_startTime",
|
|
5983
6159
|
* // "status": "my_status",
|
|
@@ -6553,6 +6729,7 @@ export namespace sqladmin_v1 {
|
|
|
6553
6729
|
* // "kind": "my_kind",
|
|
6554
6730
|
* // "name": "my_name",
|
|
6555
6731
|
* // "operationType": "my_operationType",
|
|
6732
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
6556
6733
|
* // "selfLink": "my_selfLink",
|
|
6557
6734
|
* // "startTime": "my_startTime",
|
|
6558
6735
|
* // "status": "my_status",
|
|
@@ -6713,6 +6890,7 @@ export namespace sqladmin_v1 {
|
|
|
6713
6890
|
* // "kind": "my_kind",
|
|
6714
6891
|
* // "name": "my_name",
|
|
6715
6892
|
* // "operationType": "my_operationType",
|
|
6893
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
6716
6894
|
* // "selfLink": "my_selfLink",
|
|
6717
6895
|
* // "startTime": "my_startTime",
|
|
6718
6896
|
* // "status": "my_status",
|
|
@@ -6855,9 +7033,9 @@ export namespace sqladmin_v1 {
|
|
|
6855
7033
|
*
|
|
6856
7034
|
* // Do the magic
|
|
6857
7035
|
* const res = await sql.instances.clone({
|
|
6858
|
-
* // The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
|
|
7036
|
+
* // Required. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
|
|
6859
7037
|
* instance: 'placeholder-value',
|
|
6860
|
-
* // Project ID of the source as well as the clone Cloud SQL instance.
|
|
7038
|
+
* // Required. Project ID of the source as well as the clone Cloud SQL instance.
|
|
6861
7039
|
* project: 'placeholder-value',
|
|
6862
7040
|
*
|
|
6863
7041
|
* // Request body metadata
|
|
@@ -6883,6 +7061,7 @@ export namespace sqladmin_v1 {
|
|
|
6883
7061
|
* // "kind": "my_kind",
|
|
6884
7062
|
* // "name": "my_name",
|
|
6885
7063
|
* // "operationType": "my_operationType",
|
|
7064
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
6886
7065
|
* // "selfLink": "my_selfLink",
|
|
6887
7066
|
* // "startTime": "my_startTime",
|
|
6888
7067
|
* // "status": "my_status",
|
|
@@ -7049,6 +7228,7 @@ export namespace sqladmin_v1 {
|
|
|
7049
7228
|
* // "kind": "my_kind",
|
|
7050
7229
|
* // "name": "my_name",
|
|
7051
7230
|
* // "operationType": "my_operationType",
|
|
7231
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
7052
7232
|
* // "selfLink": "my_selfLink",
|
|
7053
7233
|
* // "startTime": "my_startTime",
|
|
7054
7234
|
* // "status": "my_status",
|
|
@@ -7215,6 +7395,7 @@ export namespace sqladmin_v1 {
|
|
|
7215
7395
|
* // "kind": "my_kind",
|
|
7216
7396
|
* // "name": "my_name",
|
|
7217
7397
|
* // "operationType": "my_operationType",
|
|
7398
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
7218
7399
|
* // "selfLink": "my_selfLink",
|
|
7219
7400
|
* // "startTime": "my_startTime",
|
|
7220
7401
|
* // "status": "my_status",
|
|
@@ -7381,6 +7562,7 @@ export namespace sqladmin_v1 {
|
|
|
7381
7562
|
* // "kind": "my_kind",
|
|
7382
7563
|
* // "name": "my_name",
|
|
7383
7564
|
* // "operationType": "my_operationType",
|
|
7565
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
7384
7566
|
* // "selfLink": "my_selfLink",
|
|
7385
7567
|
* // "startTime": "my_startTime",
|
|
7386
7568
|
* // "status": "my_status",
|
|
@@ -7532,8 +7714,10 @@ export namespace sqladmin_v1 {
|
|
|
7532
7714
|
* // {
|
|
7533
7715
|
* // "autoIamAuthn": false,
|
|
7534
7716
|
* // "database": "my_database",
|
|
7717
|
+
* // "partialResultMode": "my_partialResultMode",
|
|
7535
7718
|
* // "rowLimit": "my_rowLimit",
|
|
7536
|
-
* // "sqlStatement": "my_sqlStatement"
|
|
7719
|
+
* // "sqlStatement": "my_sqlStatement",
|
|
7720
|
+
* // "user": "my_user"
|
|
7537
7721
|
* // }
|
|
7538
7722
|
* },
|
|
7539
7723
|
* });
|
|
@@ -7541,8 +7725,10 @@ export namespace sqladmin_v1 {
|
|
|
7541
7725
|
*
|
|
7542
7726
|
* // Example response
|
|
7543
7727
|
* // {
|
|
7728
|
+
* // "messages": [],
|
|
7544
7729
|
* // "metadata": {},
|
|
7545
|
-
* // "results": []
|
|
7730
|
+
* // "results": [],
|
|
7731
|
+
* // "status": {}
|
|
7546
7732
|
* // }
|
|
7547
7733
|
* }
|
|
7548
7734
|
*
|
|
@@ -7705,6 +7891,7 @@ export namespace sqladmin_v1 {
|
|
|
7705
7891
|
* // "kind": "my_kind",
|
|
7706
7892
|
* // "name": "my_name",
|
|
7707
7893
|
* // "operationType": "my_operationType",
|
|
7894
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
7708
7895
|
* // "selfLink": "my_selfLink",
|
|
7709
7896
|
* // "startTime": "my_startTime",
|
|
7710
7897
|
* // "status": "my_status",
|
|
@@ -7871,6 +8058,7 @@ export namespace sqladmin_v1 {
|
|
|
7871
8058
|
* // "kind": "my_kind",
|
|
7872
8059
|
* // "name": "my_name",
|
|
7873
8060
|
* // "operationType": "my_operationType",
|
|
8061
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
7874
8062
|
* // "selfLink": "my_selfLink",
|
|
7875
8063
|
* // "startTime": "my_startTime",
|
|
7876
8064
|
* // "status": "my_status",
|
|
@@ -8010,9 +8198,9 @@ export namespace sqladmin_v1 {
|
|
|
8010
8198
|
*
|
|
8011
8199
|
* // Do the magic
|
|
8012
8200
|
* const res = await sql.instances.get({
|
|
8013
|
-
* // Database instance ID. This does not include the project ID.
|
|
8201
|
+
* // Required. Database instance ID. This does not include the project ID.
|
|
8014
8202
|
* instance: 'placeholder-value',
|
|
8015
|
-
* // Project ID of the project that contains the instance.
|
|
8203
|
+
* // Required. Project ID of the project that contains the instance.
|
|
8016
8204
|
* project: 'placeholder-value',
|
|
8017
8205
|
* });
|
|
8018
8206
|
* console.log(res.data);
|
|
@@ -8225,6 +8413,7 @@ export namespace sqladmin_v1 {
|
|
|
8225
8413
|
* // "kind": "my_kind",
|
|
8226
8414
|
* // "name": "my_name",
|
|
8227
8415
|
* // "operationType": "my_operationType",
|
|
8416
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
8228
8417
|
* // "selfLink": "my_selfLink",
|
|
8229
8418
|
* // "startTime": "my_startTime",
|
|
8230
8419
|
* // "status": "my_status",
|
|
@@ -8439,6 +8628,7 @@ export namespace sqladmin_v1 {
|
|
|
8439
8628
|
* // "kind": "my_kind",
|
|
8440
8629
|
* // "name": "my_name",
|
|
8441
8630
|
* // "operationType": "my_operationType",
|
|
8631
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
8442
8632
|
* // "selfLink": "my_selfLink",
|
|
8443
8633
|
* // "startTime": "my_startTime",
|
|
8444
8634
|
* // "status": "my_status",
|
|
@@ -9111,6 +9301,7 @@ export namespace sqladmin_v1 {
|
|
|
9111
9301
|
* // "kind": "my_kind",
|
|
9112
9302
|
* // "name": "my_name",
|
|
9113
9303
|
* // "operationType": "my_operationType",
|
|
9304
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
9114
9305
|
* // "selfLink": "my_selfLink",
|
|
9115
9306
|
* // "startTime": "my_startTime",
|
|
9116
9307
|
* // "status": "my_status",
|
|
@@ -9281,6 +9472,7 @@ export namespace sqladmin_v1 {
|
|
|
9281
9472
|
* // "kind": "my_kind",
|
|
9282
9473
|
* // "name": "my_name",
|
|
9283
9474
|
* // "operationType": "my_operationType",
|
|
9475
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
9284
9476
|
* // "selfLink": "my_selfLink",
|
|
9285
9477
|
* // "startTime": "my_startTime",
|
|
9286
9478
|
* // "status": "my_status",
|
|
@@ -9387,6 +9579,177 @@ export namespace sqladmin_v1 {
|
|
|
9387
9579
|
}
|
|
9388
9580
|
}
|
|
9389
9581
|
|
|
9582
|
+
/**
|
|
9583
|
+
* Execute MVU Pre-checks
|
|
9584
|
+
* @example
|
|
9585
|
+
* ```js
|
|
9586
|
+
* // Before running the sample:
|
|
9587
|
+
* // - Enable the API at:
|
|
9588
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
9589
|
+
* // - Login into gcloud by running:
|
|
9590
|
+
* // ```sh
|
|
9591
|
+
* // $ gcloud auth application-default login
|
|
9592
|
+
* // ```
|
|
9593
|
+
* // - Install the npm module by running:
|
|
9594
|
+
* // ```sh
|
|
9595
|
+
* // $ npm install googleapis
|
|
9596
|
+
* // ```
|
|
9597
|
+
*
|
|
9598
|
+
* const {google} = require('googleapis');
|
|
9599
|
+
* const sqladmin = google.sqladmin('v1');
|
|
9600
|
+
*
|
|
9601
|
+
* async function main() {
|
|
9602
|
+
* const auth = new google.auth.GoogleAuth({
|
|
9603
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9604
|
+
* scopes: [
|
|
9605
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
9606
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
9607
|
+
* ],
|
|
9608
|
+
* });
|
|
9609
|
+
*
|
|
9610
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
9611
|
+
* const authClient = await auth.getClient();
|
|
9612
|
+
* google.options({auth: authClient});
|
|
9613
|
+
*
|
|
9614
|
+
* // Do the magic
|
|
9615
|
+
* const res = await sql.instances.preCheckMajorVersionUpgrade({
|
|
9616
|
+
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
9617
|
+
* instance: 'placeholder-value',
|
|
9618
|
+
* // Required. Project ID of the project that contains the instance.
|
|
9619
|
+
* project: 'placeholder-value',
|
|
9620
|
+
*
|
|
9621
|
+
* // Request body metadata
|
|
9622
|
+
* requestBody: {
|
|
9623
|
+
* // request body parameters
|
|
9624
|
+
* // {
|
|
9625
|
+
* // "preCheckMajorVersionUpgradeContext": {}
|
|
9626
|
+
* // }
|
|
9627
|
+
* },
|
|
9628
|
+
* });
|
|
9629
|
+
* console.log(res.data);
|
|
9630
|
+
*
|
|
9631
|
+
* // Example response
|
|
9632
|
+
* // {
|
|
9633
|
+
* // "acquireSsrsLeaseContext": {},
|
|
9634
|
+
* // "apiWarning": {},
|
|
9635
|
+
* // "backupContext": {},
|
|
9636
|
+
* // "endTime": "my_endTime",
|
|
9637
|
+
* // "error": {},
|
|
9638
|
+
* // "exportContext": {},
|
|
9639
|
+
* // "importContext": {},
|
|
9640
|
+
* // "insertTime": "my_insertTime",
|
|
9641
|
+
* // "kind": "my_kind",
|
|
9642
|
+
* // "name": "my_name",
|
|
9643
|
+
* // "operationType": "my_operationType",
|
|
9644
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
9645
|
+
* // "selfLink": "my_selfLink",
|
|
9646
|
+
* // "startTime": "my_startTime",
|
|
9647
|
+
* // "status": "my_status",
|
|
9648
|
+
* // "subOperationType": {},
|
|
9649
|
+
* // "targetId": "my_targetId",
|
|
9650
|
+
* // "targetLink": "my_targetLink",
|
|
9651
|
+
* // "targetProject": "my_targetProject",
|
|
9652
|
+
* // "user": "my_user"
|
|
9653
|
+
* // }
|
|
9654
|
+
* }
|
|
9655
|
+
*
|
|
9656
|
+
* main().catch(e => {
|
|
9657
|
+
* console.error(e);
|
|
9658
|
+
* throw e;
|
|
9659
|
+
* });
|
|
9660
|
+
*
|
|
9661
|
+
* ```
|
|
9662
|
+
*
|
|
9663
|
+
* @param params - Parameters for request
|
|
9664
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
9665
|
+
* @param callback - Optional callback that handles the response.
|
|
9666
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
9667
|
+
*/
|
|
9668
|
+
preCheckMajorVersionUpgrade(
|
|
9669
|
+
params: Params$Resource$Instances$Precheckmajorversionupgrade,
|
|
9670
|
+
options: StreamMethodOptions
|
|
9671
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
9672
|
+
preCheckMajorVersionUpgrade(
|
|
9673
|
+
params?: Params$Resource$Instances$Precheckmajorversionupgrade,
|
|
9674
|
+
options?: MethodOptions
|
|
9675
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
9676
|
+
preCheckMajorVersionUpgrade(
|
|
9677
|
+
params: Params$Resource$Instances$Precheckmajorversionupgrade,
|
|
9678
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
9679
|
+
callback: BodyResponseCallback<Readable>
|
|
9680
|
+
): void;
|
|
9681
|
+
preCheckMajorVersionUpgrade(
|
|
9682
|
+
params: Params$Resource$Instances$Precheckmajorversionupgrade,
|
|
9683
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
9684
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
9685
|
+
): void;
|
|
9686
|
+
preCheckMajorVersionUpgrade(
|
|
9687
|
+
params: Params$Resource$Instances$Precheckmajorversionupgrade,
|
|
9688
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
9689
|
+
): void;
|
|
9690
|
+
preCheckMajorVersionUpgrade(
|
|
9691
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
9692
|
+
): void;
|
|
9693
|
+
preCheckMajorVersionUpgrade(
|
|
9694
|
+
paramsOrCallback?:
|
|
9695
|
+
| Params$Resource$Instances$Precheckmajorversionupgrade
|
|
9696
|
+
| BodyResponseCallback<Schema$Operation>
|
|
9697
|
+
| BodyResponseCallback<Readable>,
|
|
9698
|
+
optionsOrCallback?:
|
|
9699
|
+
| MethodOptions
|
|
9700
|
+
| StreamMethodOptions
|
|
9701
|
+
| BodyResponseCallback<Schema$Operation>
|
|
9702
|
+
| BodyResponseCallback<Readable>,
|
|
9703
|
+
callback?:
|
|
9704
|
+
| BodyResponseCallback<Schema$Operation>
|
|
9705
|
+
| BodyResponseCallback<Readable>
|
|
9706
|
+
):
|
|
9707
|
+
| void
|
|
9708
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
9709
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
9710
|
+
let params = (paramsOrCallback ||
|
|
9711
|
+
{}) as Params$Resource$Instances$Precheckmajorversionupgrade;
|
|
9712
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
9713
|
+
|
|
9714
|
+
if (typeof paramsOrCallback === 'function') {
|
|
9715
|
+
callback = paramsOrCallback;
|
|
9716
|
+
params = {} as Params$Resource$Instances$Precheckmajorversionupgrade;
|
|
9717
|
+
options = {};
|
|
9718
|
+
}
|
|
9719
|
+
|
|
9720
|
+
if (typeof optionsOrCallback === 'function') {
|
|
9721
|
+
callback = optionsOrCallback;
|
|
9722
|
+
options = {};
|
|
9723
|
+
}
|
|
9724
|
+
|
|
9725
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
9726
|
+
const parameters = {
|
|
9727
|
+
options: Object.assign(
|
|
9728
|
+
{
|
|
9729
|
+
url: (
|
|
9730
|
+
rootUrl +
|
|
9731
|
+
'/v1/projects/{project}/instances/{instance}/preCheckMajorVersionUpgrade'
|
|
9732
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
9733
|
+
method: 'POST',
|
|
9734
|
+
apiVersion: '',
|
|
9735
|
+
},
|
|
9736
|
+
options
|
|
9737
|
+
),
|
|
9738
|
+
params,
|
|
9739
|
+
requiredParams: ['project', 'instance'],
|
|
9740
|
+
pathParams: ['instance', 'project'],
|
|
9741
|
+
context: this.context,
|
|
9742
|
+
};
|
|
9743
|
+
if (callback) {
|
|
9744
|
+
createAPIRequest<Schema$Operation>(
|
|
9745
|
+
parameters,
|
|
9746
|
+
callback as BodyResponseCallback<unknown>
|
|
9747
|
+
);
|
|
9748
|
+
} else {
|
|
9749
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
9750
|
+
}
|
|
9751
|
+
}
|
|
9752
|
+
|
|
9390
9753
|
/**
|
|
9391
9754
|
* Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart.
|
|
9392
9755
|
* @example
|
|
@@ -9443,6 +9806,7 @@ export namespace sqladmin_v1 {
|
|
|
9443
9806
|
* // "kind": "my_kind",
|
|
9444
9807
|
* // "name": "my_name",
|
|
9445
9808
|
* // "operationType": "my_operationType",
|
|
9809
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
9446
9810
|
* // "selfLink": "my_selfLink",
|
|
9447
9811
|
* // "startTime": "my_startTime",
|
|
9448
9812
|
* // "status": "my_status",
|
|
@@ -9611,6 +9975,7 @@ export namespace sqladmin_v1 {
|
|
|
9611
9975
|
* // "kind": "my_kind",
|
|
9612
9976
|
* // "name": "my_name",
|
|
9613
9977
|
* // "operationType": "my_operationType",
|
|
9978
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
9614
9979
|
* // "selfLink": "my_selfLink",
|
|
9615
9980
|
* // "startTime": "my_startTime",
|
|
9616
9981
|
* // "status": "my_status",
|
|
@@ -9904,6 +10269,8 @@ export namespace sqladmin_v1 {
|
|
|
9904
10269
|
* const res = await sql.instances.resetSslConfig({
|
|
9905
10270
|
* // Cloud SQL instance ID. This does not include the project ID.
|
|
9906
10271
|
* instance: 'placeholder-value',
|
|
10272
|
+
* // Optional. Reset SSL mode to use.
|
|
10273
|
+
* mode: 'placeholder-value',
|
|
9907
10274
|
* // Project ID of the project that contains the instance.
|
|
9908
10275
|
* project: 'placeholder-value',
|
|
9909
10276
|
* });
|
|
@@ -9922,6 +10289,7 @@ export namespace sqladmin_v1 {
|
|
|
9922
10289
|
* // "kind": "my_kind",
|
|
9923
10290
|
* // "name": "my_name",
|
|
9924
10291
|
* // "operationType": "my_operationType",
|
|
10292
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
9925
10293
|
* // "selfLink": "my_selfLink",
|
|
9926
10294
|
* // "startTime": "my_startTime",
|
|
9927
10295
|
* // "status": "my_status",
|
|
@@ -10082,6 +10450,7 @@ export namespace sqladmin_v1 {
|
|
|
10082
10450
|
* // "kind": "my_kind",
|
|
10083
10451
|
* // "name": "my_name",
|
|
10084
10452
|
* // "operationType": "my_operationType",
|
|
10453
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
10085
10454
|
* // "selfLink": "my_selfLink",
|
|
10086
10455
|
* // "startTime": "my_startTime",
|
|
10087
10456
|
* // "status": "my_status",
|
|
@@ -10253,6 +10622,7 @@ export namespace sqladmin_v1 {
|
|
|
10253
10622
|
* // "kind": "my_kind",
|
|
10254
10623
|
* // "name": "my_name",
|
|
10255
10624
|
* // "operationType": "my_operationType",
|
|
10625
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
10256
10626
|
* // "selfLink": "my_selfLink",
|
|
10257
10627
|
* // "startTime": "my_startTime",
|
|
10258
10628
|
* // "status": "my_status",
|
|
@@ -10421,6 +10791,7 @@ export namespace sqladmin_v1 {
|
|
|
10421
10791
|
* // "kind": "my_kind",
|
|
10422
10792
|
* // "name": "my_name",
|
|
10423
10793
|
* // "operationType": "my_operationType",
|
|
10794
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
10424
10795
|
* // "selfLink": "my_selfLink",
|
|
10425
10796
|
* // "startTime": "my_startTime",
|
|
10426
10797
|
* // "status": "my_status",
|
|
@@ -10589,6 +10960,7 @@ export namespace sqladmin_v1 {
|
|
|
10589
10960
|
* // "kind": "my_kind",
|
|
10590
10961
|
* // "name": "my_name",
|
|
10591
10962
|
* // "operationType": "my_operationType",
|
|
10963
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
10592
10964
|
* // "selfLink": "my_selfLink",
|
|
10593
10965
|
* // "startTime": "my_startTime",
|
|
10594
10966
|
* // "status": "my_status",
|
|
@@ -10751,6 +11123,7 @@ export namespace sqladmin_v1 {
|
|
|
10751
11123
|
* // "kind": "my_kind",
|
|
10752
11124
|
* // "name": "my_name",
|
|
10753
11125
|
* // "operationType": "my_operationType",
|
|
11126
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
10754
11127
|
* // "selfLink": "my_selfLink",
|
|
10755
11128
|
* // "startTime": "my_startTime",
|
|
10756
11129
|
* // "status": "my_status",
|
|
@@ -10911,6 +11284,7 @@ export namespace sqladmin_v1 {
|
|
|
10911
11284
|
* // "kind": "my_kind",
|
|
10912
11285
|
* // "name": "my_name",
|
|
10913
11286
|
* // "operationType": "my_operationType",
|
|
11287
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
10914
11288
|
* // "selfLink": "my_selfLink",
|
|
10915
11289
|
* // "startTime": "my_startTime",
|
|
10916
11290
|
* // "status": "my_status",
|
|
@@ -11073,6 +11447,7 @@ export namespace sqladmin_v1 {
|
|
|
11073
11447
|
* // "kind": "my_kind",
|
|
11074
11448
|
* // "name": "my_name",
|
|
11075
11449
|
* // "operationType": "my_operationType",
|
|
11450
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
11076
11451
|
* // "selfLink": "my_selfLink",
|
|
11077
11452
|
* // "startTime": "my_startTime",
|
|
11078
11453
|
* // "status": "my_status",
|
|
@@ -11240,6 +11615,7 @@ export namespace sqladmin_v1 {
|
|
|
11240
11615
|
* // "kind": "my_kind",
|
|
11241
11616
|
* // "name": "my_name",
|
|
11242
11617
|
* // "operationType": "my_operationType",
|
|
11618
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
11243
11619
|
* // "selfLink": "my_selfLink",
|
|
11244
11620
|
* // "startTime": "my_startTime",
|
|
11245
11621
|
* // "status": "my_status",
|
|
@@ -11458,6 +11834,7 @@ export namespace sqladmin_v1 {
|
|
|
11458
11834
|
* // "kind": "my_kind",
|
|
11459
11835
|
* // "name": "my_name",
|
|
11460
11836
|
* // "operationType": "my_operationType",
|
|
11837
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
11461
11838
|
* // "selfLink": "my_selfLink",
|
|
11462
11839
|
* // "startTime": "my_startTime",
|
|
11463
11840
|
* // "status": "my_status",
|
|
@@ -11603,11 +11980,11 @@ export namespace sqladmin_v1 {
|
|
|
11603
11980
|
}
|
|
11604
11981
|
export interface Params$Resource$Instances$Clone extends StandardParameters {
|
|
11605
11982
|
/**
|
|
11606
|
-
* The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
|
|
11983
|
+
* Required. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
|
|
11607
11984
|
*/
|
|
11608
11985
|
instance?: string;
|
|
11609
11986
|
/**
|
|
11610
|
-
* Project ID of the source as well as the clone Cloud SQL instance.
|
|
11987
|
+
* Required. Project ID of the source as well as the clone Cloud SQL instance.
|
|
11611
11988
|
*/
|
|
11612
11989
|
project?: string;
|
|
11613
11990
|
|
|
@@ -11722,11 +12099,11 @@ export namespace sqladmin_v1 {
|
|
|
11722
12099
|
}
|
|
11723
12100
|
export interface Params$Resource$Instances$Get extends StandardParameters {
|
|
11724
12101
|
/**
|
|
11725
|
-
* Database instance ID. This does not include the project ID.
|
|
12102
|
+
* Required. Database instance ID. This does not include the project ID.
|
|
11726
12103
|
*/
|
|
11727
12104
|
instance?: string;
|
|
11728
12105
|
/**
|
|
11729
|
-
* Project ID of the project that contains the instance.
|
|
12106
|
+
* Required. Project ID of the project that contains the instance.
|
|
11730
12107
|
*/
|
|
11731
12108
|
project?: string;
|
|
11732
12109
|
}
|
|
@@ -11823,6 +12200,22 @@ export namespace sqladmin_v1 {
|
|
|
11823
12200
|
*/
|
|
11824
12201
|
requestBody?: Schema$PointInTimeRestoreContext;
|
|
11825
12202
|
}
|
|
12203
|
+
export interface Params$Resource$Instances$Precheckmajorversionupgrade
|
|
12204
|
+
extends StandardParameters {
|
|
12205
|
+
/**
|
|
12206
|
+
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
12207
|
+
*/
|
|
12208
|
+
instance?: string;
|
|
12209
|
+
/**
|
|
12210
|
+
* Required. Project ID of the project that contains the instance.
|
|
12211
|
+
*/
|
|
12212
|
+
project?: string;
|
|
12213
|
+
|
|
12214
|
+
/**
|
|
12215
|
+
* Request body metadata
|
|
12216
|
+
*/
|
|
12217
|
+
requestBody?: Schema$InstancesPreCheckMajorVersionUpgradeRequest;
|
|
12218
|
+
}
|
|
11826
12219
|
export interface Params$Resource$Instances$Promotereplica
|
|
11827
12220
|
extends StandardParameters {
|
|
11828
12221
|
/**
|
|
@@ -11871,6 +12264,10 @@ export namespace sqladmin_v1 {
|
|
|
11871
12264
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
11872
12265
|
*/
|
|
11873
12266
|
instance?: string;
|
|
12267
|
+
/**
|
|
12268
|
+
* Optional. Reset SSL mode to use.
|
|
12269
|
+
*/
|
|
12270
|
+
mode?: string;
|
|
11874
12271
|
/**
|
|
11875
12272
|
* Project ID of the project that contains the instance.
|
|
11876
12273
|
*/
|
|
@@ -12183,9 +12580,9 @@ export namespace sqladmin_v1 {
|
|
|
12183
12580
|
*
|
|
12184
12581
|
* // Do the magic
|
|
12185
12582
|
* const res = await sql.operations.get({
|
|
12186
|
-
* // Instance operation ID.
|
|
12583
|
+
* // Required. Instance operation ID.
|
|
12187
12584
|
* operation: 'placeholder-value',
|
|
12188
|
-
* // Project ID of the project that contains the instance.
|
|
12585
|
+
* // Required. Project ID of the project that contains the instance.
|
|
12189
12586
|
* project: 'placeholder-value',
|
|
12190
12587
|
* });
|
|
12191
12588
|
* console.log(res.data);
|
|
@@ -12203,6 +12600,7 @@ export namespace sqladmin_v1 {
|
|
|
12203
12600
|
* // "kind": "my_kind",
|
|
12204
12601
|
* // "name": "my_name",
|
|
12205
12602
|
* // "operationType": "my_operationType",
|
|
12603
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
12206
12604
|
* // "selfLink": "my_selfLink",
|
|
12207
12605
|
* // "startTime": "my_startTime",
|
|
12208
12606
|
* // "status": "my_status",
|
|
@@ -12470,11 +12868,11 @@ export namespace sqladmin_v1 {
|
|
|
12470
12868
|
}
|
|
12471
12869
|
export interface Params$Resource$Operations$Get extends StandardParameters {
|
|
12472
12870
|
/**
|
|
12473
|
-
* Instance operation ID.
|
|
12871
|
+
* Required. Instance operation ID.
|
|
12474
12872
|
*/
|
|
12475
12873
|
operation?: string;
|
|
12476
12874
|
/**
|
|
12477
|
-
* Project ID of the project that contains the instance.
|
|
12875
|
+
* Required. Project ID of the project that contains the instance.
|
|
12478
12876
|
*/
|
|
12479
12877
|
project?: string;
|
|
12480
12878
|
}
|
|
@@ -12711,6 +13109,7 @@ export namespace sqladmin_v1 {
|
|
|
12711
13109
|
*
|
|
12712
13110
|
* // Example response
|
|
12713
13111
|
* // {
|
|
13112
|
+
* // "earliestRecoveryTime": "my_earliestRecoveryTime",
|
|
12714
13113
|
* // "kind": "my_kind",
|
|
12715
13114
|
* // "latestRecoveryTime": "my_latestRecoveryTime"
|
|
12716
13115
|
* // }
|
|
@@ -12883,6 +13282,7 @@ export namespace sqladmin_v1 {
|
|
|
12883
13282
|
* // "kind": "my_kind",
|
|
12884
13283
|
* // "name": "my_name",
|
|
12885
13284
|
* // "operationType": "my_operationType",
|
|
13285
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
12886
13286
|
* // "selfLink": "my_selfLink",
|
|
12887
13287
|
* // "startTime": "my_startTime",
|
|
12888
13288
|
* // "status": "my_status",
|
|
@@ -13051,6 +13451,7 @@ export namespace sqladmin_v1 {
|
|
|
13051
13451
|
* // "kind": "my_kind",
|
|
13052
13452
|
* // "name": "my_name",
|
|
13053
13453
|
* // "operationType": "my_operationType",
|
|
13454
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
13054
13455
|
* // "selfLink": "my_selfLink",
|
|
13055
13456
|
* // "startTime": "my_startTime",
|
|
13056
13457
|
* // "status": "my_status",
|
|
@@ -13219,6 +13620,7 @@ export namespace sqladmin_v1 {
|
|
|
13219
13620
|
* // "kind": "my_kind",
|
|
13220
13621
|
* // "name": "my_name",
|
|
13221
13622
|
* // "operationType": "my_operationType",
|
|
13623
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
13222
13624
|
* // "selfLink": "my_selfLink",
|
|
13223
13625
|
* // "startTime": "my_startTime",
|
|
13224
13626
|
* // "status": "my_status",
|
|
@@ -13392,6 +13794,7 @@ export namespace sqladmin_v1 {
|
|
|
13392
13794
|
* // "kind": "my_kind",
|
|
13393
13795
|
* // "name": "my_name",
|
|
13394
13796
|
* // "operationType": "my_operationType",
|
|
13797
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
13395
13798
|
* // "selfLink": "my_selfLink",
|
|
13396
13799
|
* // "startTime": "my_startTime",
|
|
13397
13800
|
* // "status": "my_status",
|
|
@@ -13996,6 +14399,7 @@ export namespace sqladmin_v1 {
|
|
|
13996
14399
|
* // "kind": "my_kind",
|
|
13997
14400
|
* // "name": "my_name",
|
|
13998
14401
|
* // "operationType": "my_operationType",
|
|
14402
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
13999
14403
|
* // "selfLink": "my_selfLink",
|
|
14000
14404
|
* // "startTime": "my_startTime",
|
|
14001
14405
|
* // "status": "my_status",
|
|
@@ -14837,6 +15241,7 @@ export namespace sqladmin_v1 {
|
|
|
14837
15241
|
* // "kind": "my_kind",
|
|
14838
15242
|
* // "name": "my_name",
|
|
14839
15243
|
* // "operationType": "my_operationType",
|
|
15244
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
14840
15245
|
* // "selfLink": "my_selfLink",
|
|
14841
15246
|
* // "startTime": "my_startTime",
|
|
14842
15247
|
* // "status": "my_status",
|
|
@@ -14991,6 +15396,8 @@ export namespace sqladmin_v1 {
|
|
|
14991
15396
|
* // "dualPasswordType": "my_dualPasswordType",
|
|
14992
15397
|
* // "etag": "my_etag",
|
|
14993
15398
|
* // "host": "my_host",
|
|
15399
|
+
* // "iamEmail": "my_iamEmail",
|
|
15400
|
+
* // "iamStatus": "my_iamStatus",
|
|
14994
15401
|
* // "instance": "my_instance",
|
|
14995
15402
|
* // "kind": "my_kind",
|
|
14996
15403
|
* // "name": "my_name",
|
|
@@ -15142,6 +15549,8 @@ export namespace sqladmin_v1 {
|
|
|
15142
15549
|
* // "dualPasswordType": "my_dualPasswordType",
|
|
15143
15550
|
* // "etag": "my_etag",
|
|
15144
15551
|
* // "host": "my_host",
|
|
15552
|
+
* // "iamEmail": "my_iamEmail",
|
|
15553
|
+
* // "iamStatus": "my_iamStatus",
|
|
15145
15554
|
* // "instance": "my_instance",
|
|
15146
15555
|
* // "kind": "my_kind",
|
|
15147
15556
|
* // "name": "my_name",
|
|
@@ -15168,6 +15577,7 @@ export namespace sqladmin_v1 {
|
|
|
15168
15577
|
* // "kind": "my_kind",
|
|
15169
15578
|
* // "name": "my_name",
|
|
15170
15579
|
* // "operationType": "my_operationType",
|
|
15580
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
15171
15581
|
* // "selfLink": "my_selfLink",
|
|
15172
15582
|
* // "startTime": "my_startTime",
|
|
15173
15583
|
* // "status": "my_status",
|
|
@@ -15464,6 +15874,8 @@ export namespace sqladmin_v1 {
|
|
|
15464
15874
|
* // "dualPasswordType": "my_dualPasswordType",
|
|
15465
15875
|
* // "etag": "my_etag",
|
|
15466
15876
|
* // "host": "my_host",
|
|
15877
|
+
* // "iamEmail": "my_iamEmail",
|
|
15878
|
+
* // "iamStatus": "my_iamStatus",
|
|
15467
15879
|
* // "instance": "my_instance",
|
|
15468
15880
|
* // "kind": "my_kind",
|
|
15469
15881
|
* // "name": "my_name",
|
|
@@ -15490,6 +15902,7 @@ export namespace sqladmin_v1 {
|
|
|
15490
15902
|
* // "kind": "my_kind",
|
|
15491
15903
|
* // "name": "my_name",
|
|
15492
15904
|
* // "operationType": "my_operationType",
|
|
15905
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
15493
15906
|
* // "selfLink": "my_selfLink",
|
|
15494
15907
|
* // "startTime": "my_startTime",
|
|
15495
15908
|
* // "status": "my_status",
|