@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/build/v1.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ export declare namespace alloydb_v1 {
|
|
|
93
93
|
*/
|
|
94
94
|
enabled?: boolean | null;
|
|
95
95
|
/**
|
|
96
|
-
* 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
|
|
96
|
+
* 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.
|
|
97
97
|
*/
|
|
98
98
|
encryptionConfig?: Schema$EncryptionConfig;
|
|
99
99
|
/**
|
|
@@ -137,6 +137,10 @@ export declare namespace alloydb_v1 {
|
|
|
137
137
|
* Output only. The system-generated UID of the cluster which was used to create this resource.
|
|
138
138
|
*/
|
|
139
139
|
clusterUid?: string | null;
|
|
140
|
+
/**
|
|
141
|
+
* Output only. Timestamp when the resource finished being created.
|
|
142
|
+
*/
|
|
143
|
+
createCompletionTime?: string | null;
|
|
140
144
|
/**
|
|
141
145
|
* Output only. Create time stamp
|
|
142
146
|
*/
|
|
@@ -218,7 +222,7 @@ export declare namespace alloydb_v1 {
|
|
|
218
222
|
*/
|
|
219
223
|
uid?: string | null;
|
|
220
224
|
/**
|
|
221
|
-
* Output only. Update time stamp
|
|
225
|
+
* 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.
|
|
222
226
|
*/
|
|
223
227
|
updateTime?: string | null;
|
|
224
228
|
}
|
|
@@ -266,6 +270,23 @@ export declare namespace alloydb_v1 {
|
|
|
266
270
|
*/
|
|
267
271
|
exclusiveAction?: string | null;
|
|
268
272
|
}
|
|
273
|
+
/**
|
|
274
|
+
* The source CloudSQL backup resource.
|
|
275
|
+
*/
|
|
276
|
+
export interface Schema$CloudSQLBackupRunSource {
|
|
277
|
+
/**
|
|
278
|
+
* Required. The CloudSQL backup run ID.
|
|
279
|
+
*/
|
|
280
|
+
backupRunId?: string | null;
|
|
281
|
+
/**
|
|
282
|
+
* Required. The CloudSQL instance ID.
|
|
283
|
+
*/
|
|
284
|
+
instanceId?: string | null;
|
|
285
|
+
/**
|
|
286
|
+
* The project ID of the source CloudSQL instance. This should be the same as the AlloyDB cluster's project.
|
|
287
|
+
*/
|
|
288
|
+
project?: string | null;
|
|
289
|
+
}
|
|
269
290
|
/**
|
|
270
291
|
* 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.
|
|
271
292
|
*/
|
|
@@ -284,6 +305,10 @@ export declare namespace alloydb_v1 {
|
|
|
284
305
|
* Output only. Cluster created from backup.
|
|
285
306
|
*/
|
|
286
307
|
backupSource?: Schema$BackupSource;
|
|
308
|
+
/**
|
|
309
|
+
* Output only. Cluster created from CloudSQL snapshot.
|
|
310
|
+
*/
|
|
311
|
+
cloudsqlBackupRunSource?: Schema$CloudSQLBackupRunSource;
|
|
287
312
|
/**
|
|
288
313
|
* 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`
|
|
289
314
|
*/
|
|
@@ -465,7 +490,7 @@ export declare namespace alloydb_v1 {
|
|
|
465
490
|
*/
|
|
466
491
|
enabled?: boolean | null;
|
|
467
492
|
/**
|
|
468
|
-
* 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
|
|
493
|
+
* 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.
|
|
469
494
|
*/
|
|
470
495
|
encryptionConfig?: Schema$EncryptionConfig;
|
|
471
496
|
/**
|
|
@@ -528,6 +553,48 @@ export declare namespace alloydb_v1 {
|
|
|
528
553
|
*/
|
|
529
554
|
selectQuery?: string | null;
|
|
530
555
|
}
|
|
556
|
+
/**
|
|
557
|
+
* Options for importing data in CSV format.
|
|
558
|
+
*/
|
|
559
|
+
export interface Schema$CsvImportOptions {
|
|
560
|
+
/**
|
|
561
|
+
* Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
|
|
562
|
+
*/
|
|
563
|
+
columns?: string[] | null;
|
|
564
|
+
/**
|
|
565
|
+
* 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.
|
|
566
|
+
*/
|
|
567
|
+
escapeCharacter?: string | null;
|
|
568
|
+
/**
|
|
569
|
+
* 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.
|
|
570
|
+
*/
|
|
571
|
+
fieldDelimiter?: string | null;
|
|
572
|
+
/**
|
|
573
|
+
* 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.
|
|
574
|
+
*/
|
|
575
|
+
quoteCharacter?: string | null;
|
|
576
|
+
/**
|
|
577
|
+
* Required. The database table to import CSV file into.
|
|
578
|
+
*/
|
|
579
|
+
table?: string | null;
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* 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.
|
|
583
|
+
*/
|
|
584
|
+
export interface Schema$DenyMaintenancePeriod {
|
|
585
|
+
/**
|
|
586
|
+
* 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
|
|
587
|
+
*/
|
|
588
|
+
endDate?: Schema$GoogleTypeDate;
|
|
589
|
+
/**
|
|
590
|
+
* 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
|
|
591
|
+
*/
|
|
592
|
+
startDate?: Schema$GoogleTypeDate;
|
|
593
|
+
/**
|
|
594
|
+
* 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
|
|
595
|
+
*/
|
|
596
|
+
time?: Schema$GoogleTypeTimeOfDay;
|
|
597
|
+
}
|
|
531
598
|
/**
|
|
532
599
|
* 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); \}
|
|
533
600
|
*/
|
|
@@ -649,6 +716,23 @@ export declare namespace alloydb_v1 {
|
|
|
649
716
|
*/
|
|
650
717
|
name?: string | null;
|
|
651
718
|
}
|
|
719
|
+
/**
|
|
720
|
+
* 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
|
|
721
|
+
*/
|
|
722
|
+
export interface Schema$GoogleTypeDate {
|
|
723
|
+
/**
|
|
724
|
+
* 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.
|
|
725
|
+
*/
|
|
726
|
+
day?: number | null;
|
|
727
|
+
/**
|
|
728
|
+
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
|
|
729
|
+
*/
|
|
730
|
+
month?: number | null;
|
|
731
|
+
/**
|
|
732
|
+
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
|
|
733
|
+
*/
|
|
734
|
+
year?: number | null;
|
|
735
|
+
}
|
|
652
736
|
/**
|
|
653
737
|
* 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`.
|
|
654
738
|
*/
|
|
@@ -670,6 +754,40 @@ export declare namespace alloydb_v1 {
|
|
|
670
754
|
*/
|
|
671
755
|
seconds?: number | null;
|
|
672
756
|
}
|
|
757
|
+
/**
|
|
758
|
+
* Import cluster request.
|
|
759
|
+
*/
|
|
760
|
+
export interface Schema$ImportClusterRequest {
|
|
761
|
+
/**
|
|
762
|
+
* Options for importing data in CSV format.
|
|
763
|
+
*/
|
|
764
|
+
csvImportOptions?: Schema$CsvImportOptions;
|
|
765
|
+
/**
|
|
766
|
+
* 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.
|
|
767
|
+
*/
|
|
768
|
+
database?: string | null;
|
|
769
|
+
/**
|
|
770
|
+
* 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`.
|
|
771
|
+
*/
|
|
772
|
+
gcsUri?: string | null;
|
|
773
|
+
/**
|
|
774
|
+
* Options for importing data in SQL format.
|
|
775
|
+
*/
|
|
776
|
+
sqlImportOptions?: Schema$SqlImportOptions;
|
|
777
|
+
/**
|
|
778
|
+
* 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.
|
|
779
|
+
*/
|
|
780
|
+
user?: string | null;
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* Response of import rpc.
|
|
784
|
+
*/
|
|
785
|
+
export interface Schema$ImportClusterResponse {
|
|
786
|
+
/**
|
|
787
|
+
* Required. Size of the object downloaded from Google Cloud Storage in bytes.
|
|
788
|
+
*/
|
|
789
|
+
bytesDownloaded?: string | null;
|
|
790
|
+
}
|
|
673
791
|
/**
|
|
674
792
|
* Message for triggering fault injection on an instance
|
|
675
793
|
*/
|
|
@@ -761,6 +879,10 @@ export declare namespace alloydb_v1 {
|
|
|
761
879
|
* Output only. List of available read-only VMs in this instance, including the standby for a PRIMARY instance.
|
|
762
880
|
*/
|
|
763
881
|
nodes?: Schema$Node[];
|
|
882
|
+
/**
|
|
883
|
+
* Configuration for observability.
|
|
884
|
+
*/
|
|
885
|
+
observabilityConfig?: Schema$ObservabilityInstanceConfig;
|
|
764
886
|
/**
|
|
765
887
|
* Output only. All outbound public IP addresses configured for the instance.
|
|
766
888
|
*/
|
|
@@ -822,6 +944,10 @@ export declare namespace alloydb_v1 {
|
|
|
822
944
|
* Optional. Enabling public ip for the instance.
|
|
823
945
|
*/
|
|
824
946
|
enablePublicIp?: boolean | null;
|
|
947
|
+
/**
|
|
948
|
+
* 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\}`.
|
|
949
|
+
*/
|
|
950
|
+
network?: string | null;
|
|
825
951
|
}
|
|
826
952
|
/**
|
|
827
953
|
* Details regarding the upgrade of instaces associated with a cluster.
|
|
@@ -955,6 +1081,10 @@ export declare namespace alloydb_v1 {
|
|
|
955
1081
|
* The number of CPU's in the VM instance.
|
|
956
1082
|
*/
|
|
957
1083
|
cpuCount?: number | null;
|
|
1084
|
+
/**
|
|
1085
|
+
* 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.
|
|
1086
|
+
*/
|
|
1087
|
+
machineType?: string | null;
|
|
958
1088
|
}
|
|
959
1089
|
/**
|
|
960
1090
|
* 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.
|
|
@@ -969,6 +1099,10 @@ export declare namespace alloydb_v1 {
|
|
|
969
1099
|
* MaintenanceUpdatePolicy defines the policy for system updates.
|
|
970
1100
|
*/
|
|
971
1101
|
export interface Schema$MaintenanceUpdatePolicy {
|
|
1102
|
+
/**
|
|
1103
|
+
* Periods to deny maintenance. Currently limited to 1.
|
|
1104
|
+
*/
|
|
1105
|
+
denyMaintenancePeriods?: Schema$DenyMaintenancePeriod[];
|
|
972
1106
|
/**
|
|
973
1107
|
* Preferred windows to perform maintenance. Currently limited to 1.
|
|
974
1108
|
*/
|
|
@@ -1018,7 +1152,7 @@ export declare namespace alloydb_v1 {
|
|
|
1018
1152
|
network?: string | null;
|
|
1019
1153
|
}
|
|
1020
1154
|
/**
|
|
1021
|
-
* Details of a single node in the instance. Nodes in an AlloyDB instance are
|
|
1155
|
+
* 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.
|
|
1022
1156
|
*/
|
|
1023
1157
|
export interface Schema$Node {
|
|
1024
1158
|
/**
|
|
@@ -1038,6 +1172,43 @@ export declare namespace alloydb_v1 {
|
|
|
1038
1172
|
*/
|
|
1039
1173
|
zoneId?: string | null;
|
|
1040
1174
|
}
|
|
1175
|
+
/**
|
|
1176
|
+
* Observability Instance specific configuration.
|
|
1177
|
+
*/
|
|
1178
|
+
export interface Schema$ObservabilityInstanceConfig {
|
|
1179
|
+
/**
|
|
1180
|
+
* Observability feature status for an instance. This flag is turned "off" by default.
|
|
1181
|
+
*/
|
|
1182
|
+
enabled?: boolean | null;
|
|
1183
|
+
/**
|
|
1184
|
+
* Query string length. The default value is 10k.
|
|
1185
|
+
*/
|
|
1186
|
+
maxQueryStringLength?: number | null;
|
|
1187
|
+
/**
|
|
1188
|
+
* Preserve comments in query string for an instance. This flag is turned "off" by default.
|
|
1189
|
+
*/
|
|
1190
|
+
preserveComments?: boolean | null;
|
|
1191
|
+
/**
|
|
1192
|
+
* 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.
|
|
1193
|
+
*/
|
|
1194
|
+
queryPlansPerMinute?: number | null;
|
|
1195
|
+
/**
|
|
1196
|
+
* Record application tags for an instance. This flag is turned "off" by default.
|
|
1197
|
+
*/
|
|
1198
|
+
recordApplicationTags?: boolean | null;
|
|
1199
|
+
/**
|
|
1200
|
+
* Track actively running queries on the instance. If not set, this flag is "off" by default.
|
|
1201
|
+
*/
|
|
1202
|
+
trackActiveQueries?: boolean | null;
|
|
1203
|
+
/**
|
|
1204
|
+
* 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.
|
|
1205
|
+
*/
|
|
1206
|
+
trackWaitEvents?: boolean | null;
|
|
1207
|
+
/**
|
|
1208
|
+
* 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.
|
|
1209
|
+
*/
|
|
1210
|
+
trackWaitEventTypes?: boolean | null;
|
|
1211
|
+
}
|
|
1041
1212
|
/**
|
|
1042
1213
|
* This resource represents a long-running operation that is the result of a network API call.
|
|
1043
1214
|
*/
|
|
@@ -1095,6 +1266,10 @@ export declare namespace alloydb_v1 {
|
|
|
1095
1266
|
* Output only. Server-defined resource path for the target of the operation.
|
|
1096
1267
|
*/
|
|
1097
1268
|
target?: string | null;
|
|
1269
|
+
/**
|
|
1270
|
+
* Output only. UpgradeClusterStatus related metadata.
|
|
1271
|
+
*/
|
|
1272
|
+
upgradeClusterStatus?: Schema$UpgradeClusterStatus;
|
|
1098
1273
|
/**
|
|
1099
1274
|
* Output only. Name of the verb executed by the operation.
|
|
1100
1275
|
*/
|
|
@@ -1126,6 +1301,31 @@ export declare namespace alloydb_v1 {
|
|
|
1126
1301
|
*/
|
|
1127
1302
|
validateOnly?: boolean | null;
|
|
1128
1303
|
}
|
|
1304
|
+
/**
|
|
1305
|
+
* Configuration for setting up PSC service automation. Consumer projects in the configs will be allowlisted automatically for the instance.
|
|
1306
|
+
*/
|
|
1307
|
+
export interface Schema$PscAutoConnectionConfig {
|
|
1308
|
+
/**
|
|
1309
|
+
* 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.
|
|
1310
|
+
*/
|
|
1311
|
+
consumerNetwork?: string | null;
|
|
1312
|
+
/**
|
|
1313
|
+
* 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.
|
|
1314
|
+
*/
|
|
1315
|
+
consumerNetworkStatus?: string | null;
|
|
1316
|
+
/**
|
|
1317
|
+
* The consumer project to which the PSC service automation endpoint will be created.
|
|
1318
|
+
*/
|
|
1319
|
+
consumerProject?: string | null;
|
|
1320
|
+
/**
|
|
1321
|
+
* Output only. The IP address of the PSC service automation endpoint.
|
|
1322
|
+
*/
|
|
1323
|
+
ipAddress?: string | null;
|
|
1324
|
+
/**
|
|
1325
|
+
* 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.
|
|
1326
|
+
*/
|
|
1327
|
+
status?: string | null;
|
|
1328
|
+
}
|
|
1129
1329
|
/**
|
|
1130
1330
|
* PscConfig contains PSC related configuration at a cluster level.
|
|
1131
1331
|
*/
|
|
@@ -1134,6 +1334,10 @@ export declare namespace alloydb_v1 {
|
|
|
1134
1334
|
* Optional. Create an instance that allows connections from Private Service Connect endpoints to the instance.
|
|
1135
1335
|
*/
|
|
1136
1336
|
pscEnabled?: boolean | null;
|
|
1337
|
+
/**
|
|
1338
|
+
* Output only. The project number that needs to be allowlisted on the network attachment to enable outbound connectivity.
|
|
1339
|
+
*/
|
|
1340
|
+
serviceOwnedProjectNumber?: string | null;
|
|
1137
1341
|
}
|
|
1138
1342
|
/**
|
|
1139
1343
|
* PscInstanceConfig contains PSC related configuration at an instance level.
|
|
@@ -1143,15 +1347,32 @@ export declare namespace alloydb_v1 {
|
|
|
1143
1347
|
* Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.
|
|
1144
1348
|
*/
|
|
1145
1349
|
allowedConsumerProjects?: string[] | null;
|
|
1350
|
+
/**
|
|
1351
|
+
* Optional. Configurations for setting up PSC service automation.
|
|
1352
|
+
*/
|
|
1353
|
+
pscAutoConnections?: Schema$PscAutoConnectionConfig[];
|
|
1146
1354
|
/**
|
|
1147
1355
|
* Output only. The DNS name of the instance for PSC connectivity. Name convention: ...alloydb-psc.goog
|
|
1148
1356
|
*/
|
|
1149
1357
|
pscDnsName?: string | null;
|
|
1358
|
+
/**
|
|
1359
|
+
* 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.
|
|
1360
|
+
*/
|
|
1361
|
+
pscInterfaceConfigs?: Schema$PscInterfaceConfig[];
|
|
1150
1362
|
/**
|
|
1151
1363
|
* 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/`
|
|
1152
1364
|
*/
|
|
1153
1365
|
serviceAttachmentLink?: string | null;
|
|
1154
1366
|
}
|
|
1367
|
+
/**
|
|
1368
|
+
* Configuration for setting up a PSC interface to enable outbound connectivity.
|
|
1369
|
+
*/
|
|
1370
|
+
export interface Schema$PscInterfaceConfig {
|
|
1371
|
+
/**
|
|
1372
|
+
* 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.
|
|
1373
|
+
*/
|
|
1374
|
+
networkAttachmentResource?: string | null;
|
|
1375
|
+
}
|
|
1155
1376
|
/**
|
|
1156
1377
|
* 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)
|
|
1157
1378
|
*/
|
|
@@ -1204,6 +1425,15 @@ export declare namespace alloydb_v1 {
|
|
|
1204
1425
|
*/
|
|
1205
1426
|
nodeCount?: number | null;
|
|
1206
1427
|
}
|
|
1428
|
+
/**
|
|
1429
|
+
* Read pool instances upgrade specific status.
|
|
1430
|
+
*/
|
|
1431
|
+
export interface Schema$ReadPoolInstancesUpgradeStageStatus {
|
|
1432
|
+
/**
|
|
1433
|
+
* Read pool instances upgrade statistics.
|
|
1434
|
+
*/
|
|
1435
|
+
upgradeStats?: Schema$Stats;
|
|
1436
|
+
}
|
|
1207
1437
|
export interface Schema$RestartInstanceRequest {
|
|
1208
1438
|
/**
|
|
1209
1439
|
* Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to restart upon. Applicable only to read instances.
|
|
@@ -1219,7 +1449,7 @@ export declare namespace alloydb_v1 {
|
|
|
1219
1449
|
validateOnly?: boolean | null;
|
|
1220
1450
|
}
|
|
1221
1451
|
/**
|
|
1222
|
-
* Message for restoring a Cluster from a backup or another cluster at a given point in time.
|
|
1452
|
+
* Message for restoring a Cluster from a backup or another cluster at a given point in time. NEXT_ID: 11
|
|
1223
1453
|
*/
|
|
1224
1454
|
export interface Schema$RestoreClusterRequest {
|
|
1225
1455
|
/**
|
|
@@ -1247,6 +1477,23 @@ export declare namespace alloydb_v1 {
|
|
|
1247
1477
|
*/
|
|
1248
1478
|
validateOnly?: boolean | null;
|
|
1249
1479
|
}
|
|
1480
|
+
/**
|
|
1481
|
+
* Message for registering Restoring from CloudSQL resource.
|
|
1482
|
+
*/
|
|
1483
|
+
export interface Schema$RestoreFromCloudSQLRequest {
|
|
1484
|
+
/**
|
|
1485
|
+
* Cluster created from CloudSQL backup run.
|
|
1486
|
+
*/
|
|
1487
|
+
cloudsqlBackupRunSource?: Schema$CloudSQLBackupRunSource;
|
|
1488
|
+
/**
|
|
1489
|
+
* Required. The resource being created
|
|
1490
|
+
*/
|
|
1491
|
+
cluster?: Schema$Cluster;
|
|
1492
|
+
/**
|
|
1493
|
+
* Required. ID of the requesting object.
|
|
1494
|
+
*/
|
|
1495
|
+
clusterId?: string | null;
|
|
1496
|
+
}
|
|
1250
1497
|
/**
|
|
1251
1498
|
* Configuration information for the secondary cluster. This should be set if and only if the cluster is of type SECONDARY.
|
|
1252
1499
|
*/
|
|
@@ -1277,6 +1524,11 @@ export declare namespace alloydb_v1 {
|
|
|
1277
1524
|
*/
|
|
1278
1525
|
tables?: string[] | null;
|
|
1279
1526
|
}
|
|
1527
|
+
/**
|
|
1528
|
+
* Options for importing data in SQL format.
|
|
1529
|
+
*/
|
|
1530
|
+
export interface Schema$SqlImportOptions {
|
|
1531
|
+
}
|
|
1280
1532
|
/**
|
|
1281
1533
|
* SSL configuration.
|
|
1282
1534
|
*/
|
|
@@ -1307,6 +1559,44 @@ export declare namespace alloydb_v1 {
|
|
|
1307
1559
|
*/
|
|
1308
1560
|
status?: string | null;
|
|
1309
1561
|
}
|
|
1562
|
+
/**
|
|
1563
|
+
* Status of an upgrade stage.
|
|
1564
|
+
*/
|
|
1565
|
+
export interface Schema$StageStatus {
|
|
1566
|
+
/**
|
|
1567
|
+
* Read pool instances upgrade metadata.
|
|
1568
|
+
*/
|
|
1569
|
+
readPoolInstancesUpgrade?: Schema$ReadPoolInstancesUpgradeStageStatus;
|
|
1570
|
+
/**
|
|
1571
|
+
* Upgrade stage.
|
|
1572
|
+
*/
|
|
1573
|
+
stage?: string | null;
|
|
1574
|
+
/**
|
|
1575
|
+
* State of this stage.
|
|
1576
|
+
*/
|
|
1577
|
+
state?: string | null;
|
|
1578
|
+
}
|
|
1579
|
+
/**
|
|
1580
|
+
* Upgrade stats for read pool instances.
|
|
1581
|
+
*/
|
|
1582
|
+
export interface Schema$Stats {
|
|
1583
|
+
/**
|
|
1584
|
+
* Number of read pool instances which failed to upgrade.
|
|
1585
|
+
*/
|
|
1586
|
+
failed?: number | null;
|
|
1587
|
+
/**
|
|
1588
|
+
* Number of read pool instances for which upgrade has not started.
|
|
1589
|
+
*/
|
|
1590
|
+
notStarted?: number | null;
|
|
1591
|
+
/**
|
|
1592
|
+
* Number of read pool instances undergoing upgrade.
|
|
1593
|
+
*/
|
|
1594
|
+
ongoing?: number | null;
|
|
1595
|
+
/**
|
|
1596
|
+
* Number of read pool instances successfully upgraded.
|
|
1597
|
+
*/
|
|
1598
|
+
success?: number | null;
|
|
1599
|
+
}
|
|
1310
1600
|
/**
|
|
1311
1601
|
* 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).
|
|
1312
1602
|
*/
|
|
@@ -1508,7 +1798,7 @@ export declare namespace alloydb_v1 {
|
|
|
1508
1798
|
uniqueId?: string | null;
|
|
1509
1799
|
}
|
|
1510
1800
|
/**
|
|
1511
|
-
* Common model for database resource instance metadata. Next ID:
|
|
1801
|
+
* Common model for database resource instance metadata. Next ID: 25
|
|
1512
1802
|
*/
|
|
1513
1803
|
export interface Schema$StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata {
|
|
1514
1804
|
/**
|
|
@@ -1547,6 +1837,10 @@ export declare namespace alloydb_v1 {
|
|
|
1547
1837
|
* 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.
|
|
1548
1838
|
*/
|
|
1549
1839
|
expectedState?: string | null;
|
|
1840
|
+
/**
|
|
1841
|
+
* GCBDR configuration for the resource.
|
|
1842
|
+
*/
|
|
1843
|
+
gcbdrConfiguration?: Schema$StorageDatabasecenterPartnerapiV1mainGCBDRConfiguration;
|
|
1550
1844
|
/**
|
|
1551
1845
|
* Required. Unique identifier for a Database resource
|
|
1552
1846
|
*/
|
|
@@ -1583,6 +1877,10 @@ export declare namespace alloydb_v1 {
|
|
|
1583
1877
|
* 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
|
|
1584
1878
|
*/
|
|
1585
1879
|
resourceName?: string | null;
|
|
1880
|
+
/**
|
|
1881
|
+
* Optional. Suspension reason for the resource.
|
|
1882
|
+
*/
|
|
1883
|
+
suspensionReason?: string | null;
|
|
1586
1884
|
/**
|
|
1587
1885
|
* Optional. Tags associated with this resources.
|
|
1588
1886
|
*/
|
|
@@ -1648,6 +1946,15 @@ export declare namespace alloydb_v1 {
|
|
|
1648
1946
|
*/
|
|
1649
1947
|
type?: string | null;
|
|
1650
1948
|
}
|
|
1949
|
+
/**
|
|
1950
|
+
* GCBDR Configuration for the resource.
|
|
1951
|
+
*/
|
|
1952
|
+
export interface Schema$StorageDatabasecenterPartnerapiV1mainGCBDRConfiguration {
|
|
1953
|
+
/**
|
|
1954
|
+
* Whether the resource is managed by GCBDR.
|
|
1955
|
+
*/
|
|
1956
|
+
gcbdrManaged?: boolean | null;
|
|
1957
|
+
}
|
|
1651
1958
|
/**
|
|
1652
1959
|
* 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.
|
|
1653
1960
|
*/
|
|
@@ -1660,6 +1967,10 @@ export declare namespace alloydb_v1 {
|
|
|
1660
1967
|
* Information about the last backup attempt for this database
|
|
1661
1968
|
*/
|
|
1662
1969
|
backupRun?: Schema$StorageDatabasecenterPartnerapiV1mainBackupRun;
|
|
1970
|
+
/**
|
|
1971
|
+
* Whether deletion protection is enabled for this internal resource.
|
|
1972
|
+
*/
|
|
1973
|
+
isDeletionProtectionEnabled?: boolean | null;
|
|
1663
1974
|
product?: Schema$StorageDatabasecenterProtoCommonProduct;
|
|
1664
1975
|
resourceId?: Schema$StorageDatabasecenterPartnerapiV1mainDatabaseResourceId;
|
|
1665
1976
|
/**
|
|
@@ -1672,11 +1983,11 @@ export declare namespace alloydb_v1 {
|
|
|
1672
1983
|
*/
|
|
1673
1984
|
export interface Schema$StorageDatabasecenterPartnerapiV1mainMachineConfiguration {
|
|
1674
1985
|
/**
|
|
1675
|
-
* The number of CPUs. Deprecated. Use vcpu_count instead. TODO(b/342344482
|
|
1986
|
+
* The number of CPUs. Deprecated. Use vcpu_count instead. TODO(b/342344482) add proto validations again after bug fix.
|
|
1676
1987
|
*/
|
|
1677
1988
|
cpuCount?: number | null;
|
|
1678
1989
|
/**
|
|
1679
|
-
* Memory size in bytes. TODO(b/342344482
|
|
1990
|
+
* Memory size in bytes. TODO(b/342344482) add proto validations again after bug fix.
|
|
1680
1991
|
*/
|
|
1681
1992
|
memorySizeInBytes?: string | null;
|
|
1682
1993
|
/**
|
|
@@ -1684,7 +1995,7 @@ export declare namespace alloydb_v1 {
|
|
|
1684
1995
|
*/
|
|
1685
1996
|
shardCount?: number | null;
|
|
1686
1997
|
/**
|
|
1687
|
-
* Optional. The number of vCPUs. TODO(b/342344482
|
|
1998
|
+
* Optional. The number of vCPUs. TODO(b/342344482) add proto validations again after bug fix.
|
|
1688
1999
|
*/
|
|
1689
2000
|
vcpuCount?: number | null;
|
|
1690
2001
|
}
|
|
@@ -1826,10 +2137,22 @@ export declare namespace alloydb_v1 {
|
|
|
1826
2137
|
* 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.
|
|
1827
2138
|
*/
|
|
1828
2139
|
name?: string | null;
|
|
2140
|
+
/**
|
|
2141
|
+
* The recommended value for an INTEGER flag.
|
|
2142
|
+
*/
|
|
2143
|
+
recommendedIntegerValue?: string | null;
|
|
2144
|
+
/**
|
|
2145
|
+
* The recommended value for a STRING flag.
|
|
2146
|
+
*/
|
|
2147
|
+
recommendedStringValue?: string | null;
|
|
1829
2148
|
/**
|
|
1830
2149
|
* 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).
|
|
1831
2150
|
*/
|
|
1832
2151
|
requiresDbRestart?: boolean | null;
|
|
2152
|
+
/**
|
|
2153
|
+
* The scope of the flag.
|
|
2154
|
+
*/
|
|
2155
|
+
scope?: string | null;
|
|
1833
2156
|
/**
|
|
1834
2157
|
* Restriction on STRING type value.
|
|
1835
2158
|
*/
|
|
@@ -1921,6 +2244,31 @@ export declare namespace alloydb_v1 {
|
|
|
1921
2244
|
*/
|
|
1922
2245
|
status?: string | null;
|
|
1923
2246
|
}
|
|
2247
|
+
/**
|
|
2248
|
+
* Message for current status of the Major Version Upgrade operation.
|
|
2249
|
+
*/
|
|
2250
|
+
export interface Schema$UpgradeClusterStatus {
|
|
2251
|
+
/**
|
|
2252
|
+
* Whether the operation is cancellable.
|
|
2253
|
+
*/
|
|
2254
|
+
cancellable?: boolean | null;
|
|
2255
|
+
/**
|
|
2256
|
+
* Source database major version.
|
|
2257
|
+
*/
|
|
2258
|
+
sourceVersion?: string | null;
|
|
2259
|
+
/**
|
|
2260
|
+
* Status of all upgrade stages.
|
|
2261
|
+
*/
|
|
2262
|
+
stages?: Schema$StageStatus[];
|
|
2263
|
+
/**
|
|
2264
|
+
* Cluster Major Version Upgrade state.
|
|
2265
|
+
*/
|
|
2266
|
+
state?: string | null;
|
|
2267
|
+
/**
|
|
2268
|
+
* Target database major version.
|
|
2269
|
+
*/
|
|
2270
|
+
targetVersion?: string | null;
|
|
2271
|
+
}
|
|
1924
2272
|
/**
|
|
1925
2273
|
* Message describing User object.
|
|
1926
2274
|
*/
|
|
@@ -2020,6 +2368,10 @@ export declare namespace alloydb_v1 {
|
|
|
2020
2368
|
name?: string;
|
|
2021
2369
|
}
|
|
2022
2370
|
export interface Params$Resource$Projects$Locations$List extends StandardParameters {
|
|
2371
|
+
/**
|
|
2372
|
+
* Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
|
|
2373
|
+
*/
|
|
2374
|
+
extraLocationTypes?: string[];
|
|
2023
2375
|
/**
|
|
2024
2376
|
* 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).
|
|
2025
2377
|
*/
|
|
@@ -2280,6 +2632,20 @@ export declare namespace alloydb_v1 {
|
|
|
2280
2632
|
get(params: Params$Resource$Projects$Locations$Clusters$Get, options: MethodOptions | BodyResponseCallback<Schema$Cluster>, callback: BodyResponseCallback<Schema$Cluster>): void;
|
|
2281
2633
|
get(params: Params$Resource$Projects$Locations$Clusters$Get, callback: BodyResponseCallback<Schema$Cluster>): void;
|
|
2282
2634
|
get(callback: BodyResponseCallback<Schema$Cluster>): void;
|
|
2635
|
+
/**
|
|
2636
|
+
* Imports data to the cluster. Imperative only.
|
|
2637
|
+
*
|
|
2638
|
+
* @param params - Parameters for request
|
|
2639
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2640
|
+
* @param callback - Optional callback that handles the response.
|
|
2641
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2642
|
+
*/
|
|
2643
|
+
import(params: Params$Resource$Projects$Locations$Clusters$Import, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2644
|
+
import(params?: Params$Resource$Projects$Locations$Clusters$Import, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
|
2645
|
+
import(params: Params$Resource$Projects$Locations$Clusters$Import, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2646
|
+
import(params: Params$Resource$Projects$Locations$Clusters$Import, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2647
|
+
import(params: Params$Resource$Projects$Locations$Clusters$Import, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2648
|
+
import(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2283
2649
|
/**
|
|
2284
2650
|
* Lists Clusters in a given project and location.
|
|
2285
2651
|
*
|
|
@@ -2336,6 +2702,20 @@ export declare namespace alloydb_v1 {
|
|
|
2336
2702
|
restore(params: Params$Resource$Projects$Locations$Clusters$Restore, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2337
2703
|
restore(params: Params$Resource$Projects$Locations$Clusters$Restore, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2338
2704
|
restore(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2705
|
+
/**
|
|
2706
|
+
* Restores an AlloyDB cluster from a CloudSQL resource.
|
|
2707
|
+
*
|
|
2708
|
+
* @param params - Parameters for request
|
|
2709
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2710
|
+
* @param callback - Optional callback that handles the response.
|
|
2711
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2712
|
+
*/
|
|
2713
|
+
restoreFromCloudSQL(params: Params$Resource$Projects$Locations$Clusters$Restorefromcloudsql, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2714
|
+
restoreFromCloudSQL(params?: Params$Resource$Projects$Locations$Clusters$Restorefromcloudsql, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
|
2715
|
+
restoreFromCloudSQL(params: Params$Resource$Projects$Locations$Clusters$Restorefromcloudsql, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2716
|
+
restoreFromCloudSQL(params: Params$Resource$Projects$Locations$Clusters$Restorefromcloudsql, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2717
|
+
restoreFromCloudSQL(params: Params$Resource$Projects$Locations$Clusters$Restorefromcloudsql, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2718
|
+
restoreFromCloudSQL(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2339
2719
|
/**
|
|
2340
2720
|
* 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.
|
|
2341
2721
|
*
|
|
@@ -2451,6 +2831,16 @@ export declare namespace alloydb_v1 {
|
|
|
2451
2831
|
*/
|
|
2452
2832
|
view?: string;
|
|
2453
2833
|
}
|
|
2834
|
+
export interface Params$Resource$Projects$Locations$Clusters$Import extends StandardParameters {
|
|
2835
|
+
/**
|
|
2836
|
+
* Required. The resource name of the cluster.
|
|
2837
|
+
*/
|
|
2838
|
+
name?: string;
|
|
2839
|
+
/**
|
|
2840
|
+
* Request body metadata
|
|
2841
|
+
*/
|
|
2842
|
+
requestBody?: Schema$ImportClusterRequest;
|
|
2843
|
+
}
|
|
2454
2844
|
export interface Params$Resource$Projects$Locations$Clusters$List extends StandardParameters {
|
|
2455
2845
|
/**
|
|
2456
2846
|
* Optional. Filtering results
|
|
@@ -2519,6 +2909,16 @@ export declare namespace alloydb_v1 {
|
|
|
2519
2909
|
*/
|
|
2520
2910
|
requestBody?: Schema$RestoreClusterRequest;
|
|
2521
2911
|
}
|
|
2912
|
+
export interface Params$Resource$Projects$Locations$Clusters$Restorefromcloudsql extends StandardParameters {
|
|
2913
|
+
/**
|
|
2914
|
+
* Required. The location of the new cluster. For the required format, see the comment on Cluster.name field.
|
|
2915
|
+
*/
|
|
2916
|
+
parent?: string;
|
|
2917
|
+
/**
|
|
2918
|
+
* Request body metadata
|
|
2919
|
+
*/
|
|
2920
|
+
requestBody?: Schema$RestoreFromCloudSQLRequest;
|
|
2921
|
+
}
|
|
2522
2922
|
export interface Params$Resource$Projects$Locations$Clusters$Switchover extends StandardParameters {
|
|
2523
2923
|
/**
|
|
2524
2924
|
* Required. The name of the resource. For the required format, see the comment on the Cluster.name field
|
|
@@ -3138,6 +3538,10 @@ export declare namespace alloydb_v1 {
|
|
|
3138
3538
|
* 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.
|
|
3139
3539
|
*/
|
|
3140
3540
|
parent?: string;
|
|
3541
|
+
/**
|
|
3542
|
+
* Optional. The scope for which supported flags are requested. If not specified, default is DATABASE.
|
|
3543
|
+
*/
|
|
3544
|
+
scope?: string;
|
|
3141
3545
|
}
|
|
3142
3546
|
export {};
|
|
3143
3547
|
}
|