@googleapis/alloydb 11.3.0 → 12.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 +18 -0
- package/build/v1.d.ts +413 -9
- package/build/v1.js +65 -0
- package/build/v1.js.map +1 -1
- package/build/v1alpha.d.ts +367 -20
- package/build/v1alpha.js +32 -0
- package/build/v1alpha.js.map +1 -1
- package/build/v1beta.d.ts +384 -20
- package/build/v1beta.js +32 -0
- package/build/v1beta.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +561 -9
- package/v1alpha.ts +440 -20
- package/v1beta.ts +457 -20
package/v1.ts
CHANGED
|
@@ -146,7 +146,7 @@ export namespace alloydb_v1 {
|
|
|
146
146
|
*/
|
|
147
147
|
enabled?: boolean | null;
|
|
148
148
|
/**
|
|
149
|
-
* Optional. The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will
|
|
149
|
+
* Optional. The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will use the cluster's encryption config.
|
|
150
150
|
*/
|
|
151
151
|
encryptionConfig?: Schema$EncryptionConfig;
|
|
152
152
|
/**
|
|
@@ -186,6 +186,10 @@ export namespace alloydb_v1 {
|
|
|
186
186
|
* Output only. The system-generated UID of the cluster which was used to create this resource.
|
|
187
187
|
*/
|
|
188
188
|
clusterUid?: string | null;
|
|
189
|
+
/**
|
|
190
|
+
* Output only. Timestamp when the resource finished being created.
|
|
191
|
+
*/
|
|
192
|
+
createCompletionTime?: string | null;
|
|
189
193
|
/**
|
|
190
194
|
* Output only. Create time stamp
|
|
191
195
|
*/
|
|
@@ -263,7 +267,7 @@ export namespace alloydb_v1 {
|
|
|
263
267
|
*/
|
|
264
268
|
uid?: string | null;
|
|
265
269
|
/**
|
|
266
|
-
* Output only. Update time stamp
|
|
270
|
+
* Output only. Update time stamp Users should not infer any meaning from this field. Its value is generally unrelated to the timing of the backup creation operation.
|
|
267
271
|
*/
|
|
268
272
|
updateTime?: string | null;
|
|
269
273
|
}
|
|
@@ -310,6 +314,23 @@ export namespace alloydb_v1 {
|
|
|
310
314
|
*/
|
|
311
315
|
exclusiveAction?: string | null;
|
|
312
316
|
}
|
|
317
|
+
/**
|
|
318
|
+
* The source CloudSQL backup resource.
|
|
319
|
+
*/
|
|
320
|
+
export interface Schema$CloudSQLBackupRunSource {
|
|
321
|
+
/**
|
|
322
|
+
* Required. The CloudSQL backup run ID.
|
|
323
|
+
*/
|
|
324
|
+
backupRunId?: string | null;
|
|
325
|
+
/**
|
|
326
|
+
* Required. The CloudSQL instance ID.
|
|
327
|
+
*/
|
|
328
|
+
instanceId?: string | null;
|
|
329
|
+
/**
|
|
330
|
+
* The project ID of the source CloudSQL instance. This should be the same as the AlloyDB cluster's project.
|
|
331
|
+
*/
|
|
332
|
+
project?: string | null;
|
|
333
|
+
}
|
|
313
334
|
/**
|
|
314
335
|
* A cluster is a collection of regional AlloyDB resources. It can include a primary instance and one or more read pool instances. All cluster resources share a storage layer, which scales as needed.
|
|
315
336
|
*/
|
|
@@ -326,6 +347,10 @@ export namespace alloydb_v1 {
|
|
|
326
347
|
* Output only. Cluster created from backup.
|
|
327
348
|
*/
|
|
328
349
|
backupSource?: Schema$BackupSource;
|
|
350
|
+
/**
|
|
351
|
+
* Output only. Cluster created from CloudSQL snapshot.
|
|
352
|
+
*/
|
|
353
|
+
cloudsqlBackupRunSource?: Schema$CloudSQLBackupRunSource;
|
|
329
354
|
/**
|
|
330
355
|
* Output only. The type of the cluster. This is an output-only field and it's populated at the Cluster creation time or the Cluster promotion time. The cluster type is determined by which RPC was used to create the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
|
|
331
356
|
*/
|
|
@@ -503,7 +528,7 @@ export namespace alloydb_v1 {
|
|
|
503
528
|
*/
|
|
504
529
|
enabled?: boolean | null;
|
|
505
530
|
/**
|
|
506
|
-
* The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will
|
|
531
|
+
* The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will use the cluster's encryption config.
|
|
507
532
|
*/
|
|
508
533
|
encryptionConfig?: Schema$EncryptionConfig;
|
|
509
534
|
/**
|
|
@@ -566,6 +591,48 @@ export namespace alloydb_v1 {
|
|
|
566
591
|
*/
|
|
567
592
|
selectQuery?: string | null;
|
|
568
593
|
}
|
|
594
|
+
/**
|
|
595
|
+
* Options for importing data in CSV format.
|
|
596
|
+
*/
|
|
597
|
+
export interface Schema$CsvImportOptions {
|
|
598
|
+
/**
|
|
599
|
+
* Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
|
|
600
|
+
*/
|
|
601
|
+
columns?: string[] | null;
|
|
602
|
+
/**
|
|
603
|
+
* Optional. Specifies the character that should appear before a data character that needs to be escaped. The default is same as quote character. The value of this argument has to be a character in Hex ASCII Code.
|
|
604
|
+
*/
|
|
605
|
+
escapeCharacter?: string | null;
|
|
606
|
+
/**
|
|
607
|
+
* Optional. Specifies the character that separates columns within each row (line) of the file. The default is comma. The value of this argument has to be a character in Hex ASCII Code.
|
|
608
|
+
*/
|
|
609
|
+
fieldDelimiter?: string | null;
|
|
610
|
+
/**
|
|
611
|
+
* Optional. Specifies the quoting character to be used when a data value is quoted. The default is double-quote. The value of this argument has to be a character in Hex ASCII Code.
|
|
612
|
+
*/
|
|
613
|
+
quoteCharacter?: string | null;
|
|
614
|
+
/**
|
|
615
|
+
* Required. The database table to import CSV file into.
|
|
616
|
+
*/
|
|
617
|
+
table?: string | null;
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* DenyMaintenancePeriod definition. Excepting emergencies, maintenance will not be scheduled to start within this deny period. The start_date must be less than the end_date.
|
|
621
|
+
*/
|
|
622
|
+
export interface Schema$DenyMaintenancePeriod {
|
|
623
|
+
/**
|
|
624
|
+
* Deny period end date. This can be: * A full date, with non-zero year, month and day values OR * A month and day value, with a zero year for recurring
|
|
625
|
+
*/
|
|
626
|
+
endDate?: Schema$GoogleTypeDate;
|
|
627
|
+
/**
|
|
628
|
+
* Deny period start date. This can be: * A full date, with non-zero year, month and day values OR * A month and day value, with a zero year for recurring
|
|
629
|
+
*/
|
|
630
|
+
startDate?: Schema$GoogleTypeDate;
|
|
631
|
+
/**
|
|
632
|
+
* Time in UTC when the deny period starts on start_date and ends on end_date. This can be: * Full time OR * All zeros for 00:00:00 UTC
|
|
633
|
+
*/
|
|
634
|
+
time?: Schema$GoogleTypeTimeOfDay;
|
|
635
|
+
}
|
|
569
636
|
/**
|
|
570
637
|
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
|
|
571
638
|
*/
|
|
@@ -682,6 +749,23 @@ export namespace alloydb_v1 {
|
|
|
682
749
|
*/
|
|
683
750
|
name?: string | null;
|
|
684
751
|
}
|
|
752
|
+
/**
|
|
753
|
+
* Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
|
|
754
|
+
*/
|
|
755
|
+
export interface Schema$GoogleTypeDate {
|
|
756
|
+
/**
|
|
757
|
+
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
|
|
758
|
+
*/
|
|
759
|
+
day?: number | null;
|
|
760
|
+
/**
|
|
761
|
+
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
|
|
762
|
+
*/
|
|
763
|
+
month?: number | null;
|
|
764
|
+
/**
|
|
765
|
+
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
|
|
766
|
+
*/
|
|
767
|
+
year?: number | null;
|
|
768
|
+
}
|
|
685
769
|
/**
|
|
686
770
|
* Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
|
|
687
771
|
*/
|
|
@@ -703,6 +787,40 @@ export namespace alloydb_v1 {
|
|
|
703
787
|
*/
|
|
704
788
|
seconds?: number | null;
|
|
705
789
|
}
|
|
790
|
+
/**
|
|
791
|
+
* Import cluster request.
|
|
792
|
+
*/
|
|
793
|
+
export interface Schema$ImportClusterRequest {
|
|
794
|
+
/**
|
|
795
|
+
* Options for importing data in CSV format.
|
|
796
|
+
*/
|
|
797
|
+
csvImportOptions?: Schema$CsvImportOptions;
|
|
798
|
+
/**
|
|
799
|
+
* Optional. Name of the database to which the import will be done. For import from SQL file, this is required only if the file does not specify a database. Note - Value provided should be the same as expected from `SELECT current_database();` and NOT as a resource reference.
|
|
800
|
+
*/
|
|
801
|
+
database?: string | null;
|
|
802
|
+
/**
|
|
803
|
+
* Required. The path to the file in Google Cloud Storage where the source file for import will be stored. The URI is in the form `gs://bucketName/fileName`.
|
|
804
|
+
*/
|
|
805
|
+
gcsUri?: string | null;
|
|
806
|
+
/**
|
|
807
|
+
* Options for importing data in SQL format.
|
|
808
|
+
*/
|
|
809
|
+
sqlImportOptions?: Schema$SqlImportOptions;
|
|
810
|
+
/**
|
|
811
|
+
* Optional. Database user to be used for importing the data. Note - Value provided should be the same as expected from `SELECT current_user;` and NOT as a resource reference.
|
|
812
|
+
*/
|
|
813
|
+
user?: string | null;
|
|
814
|
+
}
|
|
815
|
+
/**
|
|
816
|
+
* Response of import rpc.
|
|
817
|
+
*/
|
|
818
|
+
export interface Schema$ImportClusterResponse {
|
|
819
|
+
/**
|
|
820
|
+
* Required. Size of the object downloaded from Google Cloud Storage in bytes.
|
|
821
|
+
*/
|
|
822
|
+
bytesDownloaded?: string | null;
|
|
823
|
+
}
|
|
706
824
|
/**
|
|
707
825
|
* Message for triggering fault injection on an instance
|
|
708
826
|
*/
|
|
@@ -788,6 +906,10 @@ export namespace alloydb_v1 {
|
|
|
788
906
|
* Output only. List of available read-only VMs in this instance, including the standby for a PRIMARY instance.
|
|
789
907
|
*/
|
|
790
908
|
nodes?: Schema$Node[];
|
|
909
|
+
/**
|
|
910
|
+
* Configuration for observability.
|
|
911
|
+
*/
|
|
912
|
+
observabilityConfig?: Schema$ObservabilityInstanceConfig;
|
|
791
913
|
/**
|
|
792
914
|
* Output only. All outbound public IP addresses configured for the instance.
|
|
793
915
|
*/
|
|
@@ -849,6 +971,10 @@ export namespace alloydb_v1 {
|
|
|
849
971
|
* Optional. Enabling public ip for the instance.
|
|
850
972
|
*/
|
|
851
973
|
enablePublicIp?: boolean | null;
|
|
974
|
+
/**
|
|
975
|
+
* Output only. The resource link for the VPC network in which instance resources are created and from which they are accessible via Private IP. This will be the same value as the parent cluster's network. It is specified in the form: // `projects/{project_number\}/global/networks/{network_id\}`.
|
|
976
|
+
*/
|
|
977
|
+
network?: string | null;
|
|
852
978
|
}
|
|
853
979
|
/**
|
|
854
980
|
* Details regarding the upgrade of instaces associated with a cluster.
|
|
@@ -982,6 +1108,10 @@ export namespace alloydb_v1 {
|
|
|
982
1108
|
* The number of CPU's in the VM instance.
|
|
983
1109
|
*/
|
|
984
1110
|
cpuCount?: number | null;
|
|
1111
|
+
/**
|
|
1112
|
+
* Machine type of the VM instance. E.g. "n2-highmem-4", "n2-highmem-8", "c4a-highmem-4-lssd". cpu_count must match the number of vCPUs in the machine type.
|
|
1113
|
+
*/
|
|
1114
|
+
machineType?: string | null;
|
|
985
1115
|
}
|
|
986
1116
|
/**
|
|
987
1117
|
* MaintenanceSchedule stores the maintenance schedule generated from the MaintenanceUpdatePolicy, once a maintenance rollout is triggered, if MaintenanceWindow is set, and if there is no conflicting DenyPeriod. The schedule is cleared once the update takes place. This field cannot be manually changed; modify the MaintenanceUpdatePolicy instead.
|
|
@@ -996,6 +1126,10 @@ export namespace alloydb_v1 {
|
|
|
996
1126
|
* MaintenanceUpdatePolicy defines the policy for system updates.
|
|
997
1127
|
*/
|
|
998
1128
|
export interface Schema$MaintenanceUpdatePolicy {
|
|
1129
|
+
/**
|
|
1130
|
+
* Periods to deny maintenance. Currently limited to 1.
|
|
1131
|
+
*/
|
|
1132
|
+
denyMaintenancePeriods?: Schema$DenyMaintenancePeriod[];
|
|
999
1133
|
/**
|
|
1000
1134
|
* Preferred windows to perform maintenance. Currently limited to 1.
|
|
1001
1135
|
*/
|
|
@@ -1045,7 +1179,7 @@ export namespace alloydb_v1 {
|
|
|
1045
1179
|
network?: string | null;
|
|
1046
1180
|
}
|
|
1047
1181
|
/**
|
|
1048
|
-
* Details of a single node in the instance. Nodes in an AlloyDB instance are
|
|
1182
|
+
* Details of a single node in the instance. Nodes in an AlloyDB instance are ephemeral, they can change during update, failover, autohealing and resize operations.
|
|
1049
1183
|
*/
|
|
1050
1184
|
export interface Schema$Node {
|
|
1051
1185
|
/**
|
|
@@ -1065,6 +1199,43 @@ export namespace alloydb_v1 {
|
|
|
1065
1199
|
*/
|
|
1066
1200
|
zoneId?: string | null;
|
|
1067
1201
|
}
|
|
1202
|
+
/**
|
|
1203
|
+
* Observability Instance specific configuration.
|
|
1204
|
+
*/
|
|
1205
|
+
export interface Schema$ObservabilityInstanceConfig {
|
|
1206
|
+
/**
|
|
1207
|
+
* Observability feature status for an instance. This flag is turned "off" by default.
|
|
1208
|
+
*/
|
|
1209
|
+
enabled?: boolean | null;
|
|
1210
|
+
/**
|
|
1211
|
+
* Query string length. The default value is 10k.
|
|
1212
|
+
*/
|
|
1213
|
+
maxQueryStringLength?: number | null;
|
|
1214
|
+
/**
|
|
1215
|
+
* Preserve comments in query string for an instance. This flag is turned "off" by default.
|
|
1216
|
+
*/
|
|
1217
|
+
preserveComments?: boolean | null;
|
|
1218
|
+
/**
|
|
1219
|
+
* Number of query execution plans captured by Insights per minute for all queries combined. The default value is 200. Any integer between 0 to 200 is considered valid.
|
|
1220
|
+
*/
|
|
1221
|
+
queryPlansPerMinute?: number | null;
|
|
1222
|
+
/**
|
|
1223
|
+
* Record application tags for an instance. This flag is turned "off" by default.
|
|
1224
|
+
*/
|
|
1225
|
+
recordApplicationTags?: boolean | null;
|
|
1226
|
+
/**
|
|
1227
|
+
* Track actively running queries on the instance. If not set, this flag is "off" by default.
|
|
1228
|
+
*/
|
|
1229
|
+
trackActiveQueries?: boolean | null;
|
|
1230
|
+
/**
|
|
1231
|
+
* Track wait events during query execution for an instance. This flag is turned "on" by default but tracking is enabled only after observability enabled flag is also turned on.
|
|
1232
|
+
*/
|
|
1233
|
+
trackWaitEvents?: boolean | null;
|
|
1234
|
+
/**
|
|
1235
|
+
* Output only. Track wait event types during query execution for an instance. This flag is turned "on" by default but tracking is enabled only after observability enabled flag is also turned on. This is read-only flag and only modifiable by internal API.
|
|
1236
|
+
*/
|
|
1237
|
+
trackWaitEventTypes?: boolean | null;
|
|
1238
|
+
}
|
|
1068
1239
|
/**
|
|
1069
1240
|
* This resource represents a long-running operation that is the result of a network API call.
|
|
1070
1241
|
*/
|
|
@@ -1118,6 +1289,10 @@ export namespace alloydb_v1 {
|
|
|
1118
1289
|
* Output only. Server-defined resource path for the target of the operation.
|
|
1119
1290
|
*/
|
|
1120
1291
|
target?: string | null;
|
|
1292
|
+
/**
|
|
1293
|
+
* Output only. UpgradeClusterStatus related metadata.
|
|
1294
|
+
*/
|
|
1295
|
+
upgradeClusterStatus?: Schema$UpgradeClusterStatus;
|
|
1121
1296
|
/**
|
|
1122
1297
|
* Output only. Name of the verb executed by the operation.
|
|
1123
1298
|
*/
|
|
@@ -1149,6 +1324,31 @@ export namespace alloydb_v1 {
|
|
|
1149
1324
|
*/
|
|
1150
1325
|
validateOnly?: boolean | null;
|
|
1151
1326
|
}
|
|
1327
|
+
/**
|
|
1328
|
+
* Configuration for setting up PSC service automation. Consumer projects in the configs will be allowlisted automatically for the instance.
|
|
1329
|
+
*/
|
|
1330
|
+
export interface Schema$PscAutoConnectionConfig {
|
|
1331
|
+
/**
|
|
1332
|
+
* The consumer network for the PSC service automation, example: "projects/vpc-host-project/global/networks/default". The consumer network might be hosted a different project than the consumer project.
|
|
1333
|
+
*/
|
|
1334
|
+
consumerNetwork?: string | null;
|
|
1335
|
+
/**
|
|
1336
|
+
* Output only. The status of the service connection policy. Possible values: "STATE_UNSPECIFIED" - Default state, when Connection Map is created initially. "VALID" - Set when policy and map configuration is valid, and their matching can lead to allowing creation of PSC Connections subject to other constraints like connections limit. "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for this network and Service Class "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for this network and Service Class "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance project is not in AllowedGoogleProducersResourceHierarchyLevels of the matching ServiceConnectionPolicy.
|
|
1337
|
+
*/
|
|
1338
|
+
consumerNetworkStatus?: string | null;
|
|
1339
|
+
/**
|
|
1340
|
+
* The consumer project to which the PSC service automation endpoint will be created.
|
|
1341
|
+
*/
|
|
1342
|
+
consumerProject?: string | null;
|
|
1343
|
+
/**
|
|
1344
|
+
* Output only. The IP address of the PSC service automation endpoint.
|
|
1345
|
+
*/
|
|
1346
|
+
ipAddress?: string | null;
|
|
1347
|
+
/**
|
|
1348
|
+
* Output only. The status of the PSC service automation connection. Possible values: "STATE_UNSPECIFIED" - An invalid state as the default case. "ACTIVE" - The connection has been created successfully. "FAILED" - The connection is not functional since some resources on the connection fail to be created. "CREATING" - The connection is being created. "DELETING" - The connection is being deleted. "CREATE_REPAIRING" - The connection is being repaired to complete creation. "DELETE_REPAIRING" - The connection is being repaired to complete deletion.
|
|
1349
|
+
*/
|
|
1350
|
+
status?: string | null;
|
|
1351
|
+
}
|
|
1152
1352
|
/**
|
|
1153
1353
|
* PscConfig contains PSC related configuration at a cluster level.
|
|
1154
1354
|
*/
|
|
@@ -1157,6 +1357,10 @@ export namespace alloydb_v1 {
|
|
|
1157
1357
|
* Optional. Create an instance that allows connections from Private Service Connect endpoints to the instance.
|
|
1158
1358
|
*/
|
|
1159
1359
|
pscEnabled?: boolean | null;
|
|
1360
|
+
/**
|
|
1361
|
+
* Output only. The project number that needs to be allowlisted on the network attachment to enable outbound connectivity.
|
|
1362
|
+
*/
|
|
1363
|
+
serviceOwnedProjectNumber?: string | null;
|
|
1160
1364
|
}
|
|
1161
1365
|
/**
|
|
1162
1366
|
* PscInstanceConfig contains PSC related configuration at an instance level.
|
|
@@ -1166,15 +1370,32 @@ export namespace alloydb_v1 {
|
|
|
1166
1370
|
* Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.
|
|
1167
1371
|
*/
|
|
1168
1372
|
allowedConsumerProjects?: string[] | null;
|
|
1373
|
+
/**
|
|
1374
|
+
* Optional. Configurations for setting up PSC service automation.
|
|
1375
|
+
*/
|
|
1376
|
+
pscAutoConnections?: Schema$PscAutoConnectionConfig[];
|
|
1169
1377
|
/**
|
|
1170
1378
|
* Output only. The DNS name of the instance for PSC connectivity. Name convention: ...alloydb-psc.goog
|
|
1171
1379
|
*/
|
|
1172
1380
|
pscDnsName?: string | null;
|
|
1381
|
+
/**
|
|
1382
|
+
* Optional. Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Only primary instances can have PSC interface attached. Currently we only support 0 or 1 PSC interface.
|
|
1383
|
+
*/
|
|
1384
|
+
pscInterfaceConfigs?: Schema$PscInterfaceConfig[];
|
|
1173
1385
|
/**
|
|
1174
1386
|
* Output only. The service attachment created when Private Service Connect (PSC) is enabled for the instance. The name of the resource will be in the format of `projects//regions//serviceAttachments/`
|
|
1175
1387
|
*/
|
|
1176
1388
|
serviceAttachmentLink?: string | null;
|
|
1177
1389
|
}
|
|
1390
|
+
/**
|
|
1391
|
+
* Configuration for setting up a PSC interface to enable outbound connectivity.
|
|
1392
|
+
*/
|
|
1393
|
+
export interface Schema$PscInterfaceConfig {
|
|
1394
|
+
/**
|
|
1395
|
+
* The network attachment resource created in the consumer network to which the PSC interface will be linked. This is of the format: "projects/${CONSUMER_PROJECT\}/regions/${REGION\}/networkAttachments/${NETWORK_ATTACHMENT_NAME\}". The network attachment must be in the same region as the instance.
|
|
1396
|
+
*/
|
|
1397
|
+
networkAttachmentResource?: string | null;
|
|
1398
|
+
}
|
|
1178
1399
|
/**
|
|
1179
1400
|
* A backup's position in a quantity-based retention queue, of backups with the same source cluster and type, with length, retention, specified by the backup's retention policy. Once the position is greater than the retention, the backup is eligible to be garbage collected. Example: 5 backups from the same source cluster and type with a quantity-based retention of 3 and denoted by backup_id (position, retention). Safe: backup_5 (1, 3), backup_4, (2, 3), backup_3 (3, 3). Awaiting garbage collection: backup_2 (4, 3), backup_1 (5, 3)
|
|
1180
1401
|
*/
|
|
@@ -1227,6 +1448,15 @@ export namespace alloydb_v1 {
|
|
|
1227
1448
|
*/
|
|
1228
1449
|
nodeCount?: number | null;
|
|
1229
1450
|
}
|
|
1451
|
+
/**
|
|
1452
|
+
* Read pool instances upgrade specific status.
|
|
1453
|
+
*/
|
|
1454
|
+
export interface Schema$ReadPoolInstancesUpgradeStageStatus {
|
|
1455
|
+
/**
|
|
1456
|
+
* Read pool instances upgrade statistics.
|
|
1457
|
+
*/
|
|
1458
|
+
upgradeStats?: Schema$Stats;
|
|
1459
|
+
}
|
|
1230
1460
|
export interface Schema$RestartInstanceRequest {
|
|
1231
1461
|
/**
|
|
1232
1462
|
* Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to restart upon. Applicable only to read instances.
|
|
@@ -1242,7 +1472,7 @@ export namespace alloydb_v1 {
|
|
|
1242
1472
|
validateOnly?: boolean | null;
|
|
1243
1473
|
}
|
|
1244
1474
|
/**
|
|
1245
|
-
* Message for restoring a Cluster from a backup or another cluster at a given point in time.
|
|
1475
|
+
* Message for restoring a Cluster from a backup or another cluster at a given point in time. NEXT_ID: 11
|
|
1246
1476
|
*/
|
|
1247
1477
|
export interface Schema$RestoreClusterRequest {
|
|
1248
1478
|
/**
|
|
@@ -1270,6 +1500,23 @@ export namespace alloydb_v1 {
|
|
|
1270
1500
|
*/
|
|
1271
1501
|
validateOnly?: boolean | null;
|
|
1272
1502
|
}
|
|
1503
|
+
/**
|
|
1504
|
+
* Message for registering Restoring from CloudSQL resource.
|
|
1505
|
+
*/
|
|
1506
|
+
export interface Schema$RestoreFromCloudSQLRequest {
|
|
1507
|
+
/**
|
|
1508
|
+
* Cluster created from CloudSQL backup run.
|
|
1509
|
+
*/
|
|
1510
|
+
cloudsqlBackupRunSource?: Schema$CloudSQLBackupRunSource;
|
|
1511
|
+
/**
|
|
1512
|
+
* Required. The resource being created
|
|
1513
|
+
*/
|
|
1514
|
+
cluster?: Schema$Cluster;
|
|
1515
|
+
/**
|
|
1516
|
+
* Required. ID of the requesting object.
|
|
1517
|
+
*/
|
|
1518
|
+
clusterId?: string | null;
|
|
1519
|
+
}
|
|
1273
1520
|
/**
|
|
1274
1521
|
* Configuration information for the secondary cluster. This should be set if and only if the cluster is of type SECONDARY.
|
|
1275
1522
|
*/
|
|
@@ -1300,6 +1547,10 @@ export namespace alloydb_v1 {
|
|
|
1300
1547
|
*/
|
|
1301
1548
|
tables?: string[] | null;
|
|
1302
1549
|
}
|
|
1550
|
+
/**
|
|
1551
|
+
* Options for importing data in SQL format.
|
|
1552
|
+
*/
|
|
1553
|
+
export interface Schema$SqlImportOptions {}
|
|
1303
1554
|
/**
|
|
1304
1555
|
* SSL configuration.
|
|
1305
1556
|
*/
|
|
@@ -1330,6 +1581,44 @@ export namespace alloydb_v1 {
|
|
|
1330
1581
|
*/
|
|
1331
1582
|
status?: string | null;
|
|
1332
1583
|
}
|
|
1584
|
+
/**
|
|
1585
|
+
* Status of an upgrade stage.
|
|
1586
|
+
*/
|
|
1587
|
+
export interface Schema$StageStatus {
|
|
1588
|
+
/**
|
|
1589
|
+
* Read pool instances upgrade metadata.
|
|
1590
|
+
*/
|
|
1591
|
+
readPoolInstancesUpgrade?: Schema$ReadPoolInstancesUpgradeStageStatus;
|
|
1592
|
+
/**
|
|
1593
|
+
* Upgrade stage.
|
|
1594
|
+
*/
|
|
1595
|
+
stage?: string | null;
|
|
1596
|
+
/**
|
|
1597
|
+
* State of this stage.
|
|
1598
|
+
*/
|
|
1599
|
+
state?: string | null;
|
|
1600
|
+
}
|
|
1601
|
+
/**
|
|
1602
|
+
* Upgrade stats for read pool instances.
|
|
1603
|
+
*/
|
|
1604
|
+
export interface Schema$Stats {
|
|
1605
|
+
/**
|
|
1606
|
+
* Number of read pool instances which failed to upgrade.
|
|
1607
|
+
*/
|
|
1608
|
+
failed?: number | null;
|
|
1609
|
+
/**
|
|
1610
|
+
* Number of read pool instances for which upgrade has not started.
|
|
1611
|
+
*/
|
|
1612
|
+
notStarted?: number | null;
|
|
1613
|
+
/**
|
|
1614
|
+
* Number of read pool instances undergoing upgrade.
|
|
1615
|
+
*/
|
|
1616
|
+
ongoing?: number | null;
|
|
1617
|
+
/**
|
|
1618
|
+
* Number of read pool instances successfully upgraded.
|
|
1619
|
+
*/
|
|
1620
|
+
success?: number | null;
|
|
1621
|
+
}
|
|
1333
1622
|
/**
|
|
1334
1623
|
* 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).
|
|
1335
1624
|
*/
|
|
@@ -1527,7 +1816,7 @@ export namespace alloydb_v1 {
|
|
|
1527
1816
|
uniqueId?: string | null;
|
|
1528
1817
|
}
|
|
1529
1818
|
/**
|
|
1530
|
-
* Common model for database resource instance metadata. Next ID:
|
|
1819
|
+
* Common model for database resource instance metadata. Next ID: 25
|
|
1531
1820
|
*/
|
|
1532
1821
|
export interface Schema$StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata {
|
|
1533
1822
|
/**
|
|
@@ -1566,6 +1855,10 @@ export namespace alloydb_v1 {
|
|
|
1566
1855
|
* The state that the instance is expected to be in. For example, an instance state can transition to UNHEALTHY due to wrong patch update, while the expected state will remain at the HEALTHY.
|
|
1567
1856
|
*/
|
|
1568
1857
|
expectedState?: string | null;
|
|
1858
|
+
/**
|
|
1859
|
+
* GCBDR configuration for the resource.
|
|
1860
|
+
*/
|
|
1861
|
+
gcbdrConfiguration?: Schema$StorageDatabasecenterPartnerapiV1mainGCBDRConfiguration;
|
|
1569
1862
|
/**
|
|
1570
1863
|
* Required. Unique identifier for a Database resource
|
|
1571
1864
|
*/
|
|
@@ -1602,6 +1895,10 @@ export namespace alloydb_v1 {
|
|
|
1602
1895
|
* Required. Different from DatabaseResourceId.unique_id, a resource name can be reused over time. That is, after a resource named "ABC" is deleted, the name "ABC" can be used to to create a new resource within the same source. Resource name to follow CAIS resource_name format as noted here go/condor-common-datamodel
|
|
1603
1896
|
*/
|
|
1604
1897
|
resourceName?: string | null;
|
|
1898
|
+
/**
|
|
1899
|
+
* Optional. Suspension reason for the resource.
|
|
1900
|
+
*/
|
|
1901
|
+
suspensionReason?: string | null;
|
|
1605
1902
|
/**
|
|
1606
1903
|
* Optional. Tags associated with this resources.
|
|
1607
1904
|
*/
|
|
@@ -1665,6 +1962,15 @@ export namespace alloydb_v1 {
|
|
|
1665
1962
|
*/
|
|
1666
1963
|
type?: string | null;
|
|
1667
1964
|
}
|
|
1965
|
+
/**
|
|
1966
|
+
* GCBDR Configuration for the resource.
|
|
1967
|
+
*/
|
|
1968
|
+
export interface Schema$StorageDatabasecenterPartnerapiV1mainGCBDRConfiguration {
|
|
1969
|
+
/**
|
|
1970
|
+
* Whether the resource is managed by GCBDR.
|
|
1971
|
+
*/
|
|
1972
|
+
gcbdrManaged?: boolean | null;
|
|
1973
|
+
}
|
|
1668
1974
|
/**
|
|
1669
1975
|
* Metadata for individual internal resources in an instance. e.g. spanner instance can have multiple databases with unique configuration settings. Similarly bigtable can have multiple clusters within same bigtable instance.
|
|
1670
1976
|
*/
|
|
@@ -1677,6 +1983,10 @@ export namespace alloydb_v1 {
|
|
|
1677
1983
|
* Information about the last backup attempt for this database
|
|
1678
1984
|
*/
|
|
1679
1985
|
backupRun?: Schema$StorageDatabasecenterPartnerapiV1mainBackupRun;
|
|
1986
|
+
/**
|
|
1987
|
+
* Whether deletion protection is enabled for this internal resource.
|
|
1988
|
+
*/
|
|
1989
|
+
isDeletionProtectionEnabled?: boolean | null;
|
|
1680
1990
|
product?: Schema$StorageDatabasecenterProtoCommonProduct;
|
|
1681
1991
|
resourceId?: Schema$StorageDatabasecenterPartnerapiV1mainDatabaseResourceId;
|
|
1682
1992
|
/**
|
|
@@ -1689,11 +1999,11 @@ export namespace alloydb_v1 {
|
|
|
1689
1999
|
*/
|
|
1690
2000
|
export interface Schema$StorageDatabasecenterPartnerapiV1mainMachineConfiguration {
|
|
1691
2001
|
/**
|
|
1692
|
-
* The number of CPUs. Deprecated. Use vcpu_count instead. TODO(b/342344482
|
|
2002
|
+
* The number of CPUs. Deprecated. Use vcpu_count instead. TODO(b/342344482) add proto validations again after bug fix.
|
|
1693
2003
|
*/
|
|
1694
2004
|
cpuCount?: number | null;
|
|
1695
2005
|
/**
|
|
1696
|
-
* Memory size in bytes. TODO(b/342344482
|
|
2006
|
+
* Memory size in bytes. TODO(b/342344482) add proto validations again after bug fix.
|
|
1697
2007
|
*/
|
|
1698
2008
|
memorySizeInBytes?: string | null;
|
|
1699
2009
|
/**
|
|
@@ -1701,7 +2011,7 @@ export namespace alloydb_v1 {
|
|
|
1701
2011
|
*/
|
|
1702
2012
|
shardCount?: number | null;
|
|
1703
2013
|
/**
|
|
1704
|
-
* Optional. The number of vCPUs. TODO(b/342344482
|
|
2014
|
+
* Optional. The number of vCPUs. TODO(b/342344482) add proto validations again after bug fix.
|
|
1705
2015
|
*/
|
|
1706
2016
|
vcpuCount?: number | null;
|
|
1707
2017
|
}
|
|
@@ -1839,10 +2149,22 @@ export namespace alloydb_v1 {
|
|
|
1839
2149
|
* The name of the flag resource, following Google Cloud conventions, e.g.: * projects/{project\}/locations/{location\}/flags/{flag\} This field currently has no semantic meaning.
|
|
1840
2150
|
*/
|
|
1841
2151
|
name?: string | null;
|
|
2152
|
+
/**
|
|
2153
|
+
* The recommended value for an INTEGER flag.
|
|
2154
|
+
*/
|
|
2155
|
+
recommendedIntegerValue?: string | null;
|
|
2156
|
+
/**
|
|
2157
|
+
* The recommended value for a STRING flag.
|
|
2158
|
+
*/
|
|
2159
|
+
recommendedStringValue?: string | null;
|
|
1842
2160
|
/**
|
|
1843
2161
|
* Whether setting or updating this flag on an Instance requires a database restart. If a flag that requires database restart is set, the backend will automatically restart the database (making sure to satisfy any availability SLO's).
|
|
1844
2162
|
*/
|
|
1845
2163
|
requiresDbRestart?: boolean | null;
|
|
2164
|
+
/**
|
|
2165
|
+
* The scope of the flag.
|
|
2166
|
+
*/
|
|
2167
|
+
scope?: string | null;
|
|
1846
2168
|
/**
|
|
1847
2169
|
* Restriction on STRING type value.
|
|
1848
2170
|
*/
|
|
@@ -1934,6 +2256,31 @@ export namespace alloydb_v1 {
|
|
|
1934
2256
|
*/
|
|
1935
2257
|
status?: string | null;
|
|
1936
2258
|
}
|
|
2259
|
+
/**
|
|
2260
|
+
* Message for current status of the Major Version Upgrade operation.
|
|
2261
|
+
*/
|
|
2262
|
+
export interface Schema$UpgradeClusterStatus {
|
|
2263
|
+
/**
|
|
2264
|
+
* Whether the operation is cancellable.
|
|
2265
|
+
*/
|
|
2266
|
+
cancellable?: boolean | null;
|
|
2267
|
+
/**
|
|
2268
|
+
* Source database major version.
|
|
2269
|
+
*/
|
|
2270
|
+
sourceVersion?: string | null;
|
|
2271
|
+
/**
|
|
2272
|
+
* Status of all upgrade stages.
|
|
2273
|
+
*/
|
|
2274
|
+
stages?: Schema$StageStatus[];
|
|
2275
|
+
/**
|
|
2276
|
+
* Cluster Major Version Upgrade state.
|
|
2277
|
+
*/
|
|
2278
|
+
state?: string | null;
|
|
2279
|
+
/**
|
|
2280
|
+
* Target database major version.
|
|
2281
|
+
*/
|
|
2282
|
+
targetVersion?: string | null;
|
|
2283
|
+
}
|
|
1937
2284
|
/**
|
|
1938
2285
|
* Message describing User object.
|
|
1939
2286
|
*/
|
|
@@ -2211,6 +2558,10 @@ export namespace alloydb_v1 {
|
|
|
2211
2558
|
}
|
|
2212
2559
|
export interface Params$Resource$Projects$Locations$List
|
|
2213
2560
|
extends StandardParameters {
|
|
2561
|
+
/**
|
|
2562
|
+
* Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
|
|
2563
|
+
*/
|
|
2564
|
+
extraLocationTypes?: string[];
|
|
2214
2565
|
/**
|
|
2215
2566
|
* A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
|
|
2216
2567
|
*/
|
|
@@ -3216,6 +3567,91 @@ export namespace alloydb_v1 {
|
|
|
3216
3567
|
}
|
|
3217
3568
|
}
|
|
3218
3569
|
|
|
3570
|
+
/**
|
|
3571
|
+
* Imports data to the cluster. Imperative only.
|
|
3572
|
+
*
|
|
3573
|
+
* @param params - Parameters for request
|
|
3574
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3575
|
+
* @param callback - Optional callback that handles the response.
|
|
3576
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3577
|
+
*/
|
|
3578
|
+
import(
|
|
3579
|
+
params: Params$Resource$Projects$Locations$Clusters$Import,
|
|
3580
|
+
options: StreamMethodOptions
|
|
3581
|
+
): GaxiosPromise<Readable>;
|
|
3582
|
+
import(
|
|
3583
|
+
params?: Params$Resource$Projects$Locations$Clusters$Import,
|
|
3584
|
+
options?: MethodOptions
|
|
3585
|
+
): GaxiosPromise<Schema$Operation>;
|
|
3586
|
+
import(
|
|
3587
|
+
params: Params$Resource$Projects$Locations$Clusters$Import,
|
|
3588
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3589
|
+
callback: BodyResponseCallback<Readable>
|
|
3590
|
+
): void;
|
|
3591
|
+
import(
|
|
3592
|
+
params: Params$Resource$Projects$Locations$Clusters$Import,
|
|
3593
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
3594
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3595
|
+
): void;
|
|
3596
|
+
import(
|
|
3597
|
+
params: Params$Resource$Projects$Locations$Clusters$Import,
|
|
3598
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3599
|
+
): void;
|
|
3600
|
+
import(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3601
|
+
import(
|
|
3602
|
+
paramsOrCallback?:
|
|
3603
|
+
| Params$Resource$Projects$Locations$Clusters$Import
|
|
3604
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3605
|
+
| BodyResponseCallback<Readable>,
|
|
3606
|
+
optionsOrCallback?:
|
|
3607
|
+
| MethodOptions
|
|
3608
|
+
| StreamMethodOptions
|
|
3609
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3610
|
+
| BodyResponseCallback<Readable>,
|
|
3611
|
+
callback?:
|
|
3612
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3613
|
+
| BodyResponseCallback<Readable>
|
|
3614
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
3615
|
+
let params = (paramsOrCallback ||
|
|
3616
|
+
{}) as Params$Resource$Projects$Locations$Clusters$Import;
|
|
3617
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3618
|
+
|
|
3619
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3620
|
+
callback = paramsOrCallback;
|
|
3621
|
+
params = {} as Params$Resource$Projects$Locations$Clusters$Import;
|
|
3622
|
+
options = {};
|
|
3623
|
+
}
|
|
3624
|
+
|
|
3625
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3626
|
+
callback = optionsOrCallback;
|
|
3627
|
+
options = {};
|
|
3628
|
+
}
|
|
3629
|
+
|
|
3630
|
+
const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/';
|
|
3631
|
+
const parameters = {
|
|
3632
|
+
options: Object.assign(
|
|
3633
|
+
{
|
|
3634
|
+
url: (rootUrl + '/v1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'),
|
|
3635
|
+
method: 'POST',
|
|
3636
|
+
apiVersion: '',
|
|
3637
|
+
},
|
|
3638
|
+
options
|
|
3639
|
+
),
|
|
3640
|
+
params,
|
|
3641
|
+
requiredParams: ['name'],
|
|
3642
|
+
pathParams: ['name'],
|
|
3643
|
+
context: this.context,
|
|
3644
|
+
};
|
|
3645
|
+
if (callback) {
|
|
3646
|
+
createAPIRequest<Schema$Operation>(
|
|
3647
|
+
parameters,
|
|
3648
|
+
callback as BodyResponseCallback<unknown>
|
|
3649
|
+
);
|
|
3650
|
+
} else {
|
|
3651
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
3652
|
+
}
|
|
3653
|
+
}
|
|
3654
|
+
|
|
3219
3655
|
/**
|
|
3220
3656
|
* Lists Clusters in a given project and location.
|
|
3221
3657
|
*
|
|
@@ -3570,6 +4006,94 @@ export namespace alloydb_v1 {
|
|
|
3570
4006
|
}
|
|
3571
4007
|
}
|
|
3572
4008
|
|
|
4009
|
+
/**
|
|
4010
|
+
* Restores an AlloyDB cluster from a CloudSQL resource.
|
|
4011
|
+
*
|
|
4012
|
+
* @param params - Parameters for request
|
|
4013
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4014
|
+
* @param callback - Optional callback that handles the response.
|
|
4015
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4016
|
+
*/
|
|
4017
|
+
restoreFromCloudSQL(
|
|
4018
|
+
params: Params$Resource$Projects$Locations$Clusters$Restorefromcloudsql,
|
|
4019
|
+
options: StreamMethodOptions
|
|
4020
|
+
): GaxiosPromise<Readable>;
|
|
4021
|
+
restoreFromCloudSQL(
|
|
4022
|
+
params?: Params$Resource$Projects$Locations$Clusters$Restorefromcloudsql,
|
|
4023
|
+
options?: MethodOptions
|
|
4024
|
+
): GaxiosPromise<Schema$Operation>;
|
|
4025
|
+
restoreFromCloudSQL(
|
|
4026
|
+
params: Params$Resource$Projects$Locations$Clusters$Restorefromcloudsql,
|
|
4027
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4028
|
+
callback: BodyResponseCallback<Readable>
|
|
4029
|
+
): void;
|
|
4030
|
+
restoreFromCloudSQL(
|
|
4031
|
+
params: Params$Resource$Projects$Locations$Clusters$Restorefromcloudsql,
|
|
4032
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
4033
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
4034
|
+
): void;
|
|
4035
|
+
restoreFromCloudSQL(
|
|
4036
|
+
params: Params$Resource$Projects$Locations$Clusters$Restorefromcloudsql,
|
|
4037
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
4038
|
+
): void;
|
|
4039
|
+
restoreFromCloudSQL(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4040
|
+
restoreFromCloudSQL(
|
|
4041
|
+
paramsOrCallback?:
|
|
4042
|
+
| Params$Resource$Projects$Locations$Clusters$Restorefromcloudsql
|
|
4043
|
+
| BodyResponseCallback<Schema$Operation>
|
|
4044
|
+
| BodyResponseCallback<Readable>,
|
|
4045
|
+
optionsOrCallback?:
|
|
4046
|
+
| MethodOptions
|
|
4047
|
+
| StreamMethodOptions
|
|
4048
|
+
| BodyResponseCallback<Schema$Operation>
|
|
4049
|
+
| BodyResponseCallback<Readable>,
|
|
4050
|
+
callback?:
|
|
4051
|
+
| BodyResponseCallback<Schema$Operation>
|
|
4052
|
+
| BodyResponseCallback<Readable>
|
|
4053
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
4054
|
+
let params = (paramsOrCallback ||
|
|
4055
|
+
{}) as Params$Resource$Projects$Locations$Clusters$Restorefromcloudsql;
|
|
4056
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4057
|
+
|
|
4058
|
+
if (typeof paramsOrCallback === 'function') {
|
|
4059
|
+
callback = paramsOrCallback;
|
|
4060
|
+
params =
|
|
4061
|
+
{} as Params$Resource$Projects$Locations$Clusters$Restorefromcloudsql;
|
|
4062
|
+
options = {};
|
|
4063
|
+
}
|
|
4064
|
+
|
|
4065
|
+
if (typeof optionsOrCallback === 'function') {
|
|
4066
|
+
callback = optionsOrCallback;
|
|
4067
|
+
options = {};
|
|
4068
|
+
}
|
|
4069
|
+
|
|
4070
|
+
const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/';
|
|
4071
|
+
const parameters = {
|
|
4072
|
+
options: Object.assign(
|
|
4073
|
+
{
|
|
4074
|
+
url: (
|
|
4075
|
+
rootUrl + '/v1/{+parent}/clusters:restoreFromCloudSQL'
|
|
4076
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
4077
|
+
method: 'POST',
|
|
4078
|
+
apiVersion: '',
|
|
4079
|
+
},
|
|
4080
|
+
options
|
|
4081
|
+
),
|
|
4082
|
+
params,
|
|
4083
|
+
requiredParams: ['parent'],
|
|
4084
|
+
pathParams: ['parent'],
|
|
4085
|
+
context: this.context,
|
|
4086
|
+
};
|
|
4087
|
+
if (callback) {
|
|
4088
|
+
createAPIRequest<Schema$Operation>(
|
|
4089
|
+
parameters,
|
|
4090
|
+
callback as BodyResponseCallback<unknown>
|
|
4091
|
+
);
|
|
4092
|
+
} else {
|
|
4093
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
4094
|
+
}
|
|
4095
|
+
}
|
|
4096
|
+
|
|
3573
4097
|
/**
|
|
3574
4098
|
* Switches the roles of PRIMARY and SECONDARY clusters without any data loss. This promotes the SECONDARY cluster to PRIMARY and sets up the original PRIMARY cluster to replicate from this newly promoted cluster.
|
|
3575
4099
|
*
|
|
@@ -3841,6 +4365,18 @@ export namespace alloydb_v1 {
|
|
|
3841
4365
|
*/
|
|
3842
4366
|
view?: string;
|
|
3843
4367
|
}
|
|
4368
|
+
export interface Params$Resource$Projects$Locations$Clusters$Import
|
|
4369
|
+
extends StandardParameters {
|
|
4370
|
+
/**
|
|
4371
|
+
* Required. The resource name of the cluster.
|
|
4372
|
+
*/
|
|
4373
|
+
name?: string;
|
|
4374
|
+
|
|
4375
|
+
/**
|
|
4376
|
+
* Request body metadata
|
|
4377
|
+
*/
|
|
4378
|
+
requestBody?: Schema$ImportClusterRequest;
|
|
4379
|
+
}
|
|
3844
4380
|
export interface Params$Resource$Projects$Locations$Clusters$List
|
|
3845
4381
|
extends StandardParameters {
|
|
3846
4382
|
/**
|
|
@@ -3916,6 +4452,18 @@ export namespace alloydb_v1 {
|
|
|
3916
4452
|
*/
|
|
3917
4453
|
requestBody?: Schema$RestoreClusterRequest;
|
|
3918
4454
|
}
|
|
4455
|
+
export interface Params$Resource$Projects$Locations$Clusters$Restorefromcloudsql
|
|
4456
|
+
extends StandardParameters {
|
|
4457
|
+
/**
|
|
4458
|
+
* Required. The location of the new cluster. For the required format, see the comment on Cluster.name field.
|
|
4459
|
+
*/
|
|
4460
|
+
parent?: string;
|
|
4461
|
+
|
|
4462
|
+
/**
|
|
4463
|
+
* Request body metadata
|
|
4464
|
+
*/
|
|
4465
|
+
requestBody?: Schema$RestoreFromCloudSQLRequest;
|
|
4466
|
+
}
|
|
3919
4467
|
export interface Params$Resource$Projects$Locations$Clusters$Switchover
|
|
3920
4468
|
extends StandardParameters {
|
|
3921
4469
|
/**
|
|
@@ -6072,5 +6620,9 @@ export namespace alloydb_v1 {
|
|
|
6072
6620
|
* Required. The name of the parent resource. The required format is: * projects/{project\}/locations/{location\} Regardless of the parent specified here, as long it is contains a valid project and location, the service will return a static list of supported flags resources. Note that we do not yet support region-specific flags.
|
|
6073
6621
|
*/
|
|
6074
6622
|
parent?: string;
|
|
6623
|
+
/**
|
|
6624
|
+
* Optional. The scope for which supported flags are requested. If not specified, default is DATABASE.
|
|
6625
|
+
*/
|
|
6626
|
+
scope?: string;
|
|
6075
6627
|
}
|
|
6076
6628
|
}
|