@googleapis/alloydb 7.0.0 → 10.0.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.
@@ -264,6 +264,23 @@ export declare namespace alloydb_v1alpha {
264
264
  */
265
265
  exclusiveAction?: string | null;
266
266
  }
267
+ /**
268
+ * The source CloudSQL backup resource.
269
+ */
270
+ export interface Schema$CloudSQLBackupRunSource {
271
+ /**
272
+ * Required. The CloudSQL backup run ID.
273
+ */
274
+ backupRunId?: string | null;
275
+ /**
276
+ * Required. The CloudSQL instance ID.
277
+ */
278
+ instanceId?: string | null;
279
+ /**
280
+ * The project ID of the source CloudSQL instance. This should be the same as the AlloyDB cluster's project.
281
+ */
282
+ project?: string | null;
283
+ }
267
284
  /**
268
285
  * 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.
269
286
  */
@@ -282,6 +299,10 @@ export declare namespace alloydb_v1alpha {
282
299
  * Output only. Cluster created from backup.
283
300
  */
284
301
  backupSource?: Schema$BackupSource;
302
+ /**
303
+ * Output only. Cluster created from CloudSQL snapshot.
304
+ */
305
+ cloudsqlBackupRunSource?: Schema$CloudSQLBackupRunSource;
285
306
  /**
286
307
  * 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`
287
308
  */
@@ -389,6 +410,14 @@ export declare namespace alloydb_v1alpha {
389
410
  * Output only. The current serving state of the cluster.
390
411
  */
391
412
  state?: string | null;
413
+ /**
414
+ * Optional. Subscription type of the cluster.
415
+ */
416
+ subscriptionType?: string | null;
417
+ /**
418
+ * Output only. Metadata for free trial clusters
419
+ */
420
+ trialMetadata?: Schema$TrialMetadata;
392
421
  /**
393
422
  * Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
394
423
  */
@@ -398,6 +427,35 @@ export declare namespace alloydb_v1alpha {
398
427
  */
399
428
  updateTime?: string | null;
400
429
  }
430
+ /**
431
+ * Upgrade details of a cluster. This cluster can be primary or secondary.
432
+ */
433
+ export interface Schema$ClusterUpgradeDetails {
434
+ /**
435
+ * Cluster type which can either be primary or secondary.
436
+ */
437
+ clusterType?: string | null;
438
+ /**
439
+ * Database version of the cluster after the upgrade operation. This will be the target version if the upgrade was successful otherwise it remains the same as that before the upgrade operation.
440
+ */
441
+ databaseVersion?: string | null;
442
+ /**
443
+ * Upgrade details of the instances directly associated with this cluster.
444
+ */
445
+ instanceUpgradeDetails?: Schema$InstanceUpgradeDetails[];
446
+ /**
447
+ * Normalized name of the cluster
448
+ */
449
+ name?: string | null;
450
+ /**
451
+ * Array containing stage info associated with this cluster.
452
+ */
453
+ stageInfo?: Schema$StageInfo[];
454
+ /**
455
+ * Upgrade status of the cluster.
456
+ */
457
+ upgradeStatus?: string | null;
458
+ }
401
459
  /**
402
460
  * ConnectionInfo singleton resource. https://google.aip.dev/156
403
461
  */
@@ -698,6 +756,10 @@ export declare namespace alloydb_v1alpha {
698
756
  * Configuration for observability.
699
757
  */
700
758
  observabilityConfig?: Schema$ObservabilityInstanceConfig;
759
+ /**
760
+ * Output only. All outbound public IP addresses configured for the instance.
761
+ */
762
+ outboundPublicIpAddresses?: string[] | null;
701
763
  /**
702
764
  * Optional. The configuration for Private Service Connect (PSC) for the instance.
703
765
  */
@@ -755,11 +817,32 @@ export declare namespace alloydb_v1alpha {
755
817
  * Optional. A list of external network authorized to access this instance.
756
818
  */
757
819
  authorizedExternalNetworks?: Schema$AuthorizedNetwork[];
820
+ /**
821
+ * Optional. Enabling an outbound public IP address to support a database server sending requests out into the internet.
822
+ */
823
+ enableOutboundPublicIp?: boolean | null;
758
824
  /**
759
825
  * Optional. Enabling public ip for the instance.
760
826
  */
761
827
  enablePublicIp?: boolean | null;
762
828
  }
829
+ /**
830
+ * Details regarding the upgrade of instaces associated with a cluster.
831
+ */
832
+ export interface Schema$InstanceUpgradeDetails {
833
+ /**
834
+ * Instance type.
835
+ */
836
+ instanceType?: string | null;
837
+ /**
838
+ * Normalized name of the instance.
839
+ */
840
+ name?: string | null;
841
+ /**
842
+ * Upgrade status of the instance.
843
+ */
844
+ upgradeStatus?: string | null;
845
+ }
763
846
  /**
764
847
  * Restrictions on INTEGER type values.
765
848
  */
@@ -963,7 +1046,7 @@ export declare namespace alloydb_v1alpha {
963
1046
  */
964
1047
  export interface Schema$ObservabilityInstanceConfig {
965
1048
  /**
966
- * Observability feature status for an instance. This is a read-only flag and modifiable only by producer API. This flag is turned "off" by default.
1049
+ * Observability feature status for an instance. This flag is turned "off" by default.
967
1050
  */
968
1051
  enabled?: boolean | null;
969
1052
  /**
@@ -975,7 +1058,7 @@ export declare namespace alloydb_v1alpha {
975
1058
  */
976
1059
  preserveComments?: boolean | null;
977
1060
  /**
978
- * Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 to 20 is considered valid.
1061
+ * 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.
979
1062
  */
980
1063
  queryPlansPerMinute?: number | null;
981
1064
  /**
@@ -986,6 +1069,10 @@ export declare namespace alloydb_v1alpha {
986
1069
  * Track actively running queries on the instance. If not set, this flag is "off" by default.
987
1070
  */
988
1071
  trackActiveQueries?: boolean | null;
1072
+ /**
1073
+ * Track client address for an instance. If not set, default value is "off".
1074
+ */
1075
+ trackClientAddress?: boolean | null;
989
1076
  /**
990
1077
  * 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.
991
1078
  */
@@ -1162,6 +1249,10 @@ export declare namespace alloydb_v1alpha {
1162
1249
  nodeCount?: number | null;
1163
1250
  }
1164
1251
  export interface Schema$RestartInstanceRequest {
1252
+ /**
1253
+ * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to restart upon. Only applicable for read instances.
1254
+ */
1255
+ nodeIds?: string[] | null;
1165
1256
  /**
1166
1257
  * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1167
1258
  */
@@ -1222,6 +1313,23 @@ export declare namespace alloydb_v1alpha {
1222
1313
  */
1223
1314
  sslMode?: string | null;
1224
1315
  }
1316
+ /**
1317
+ * Stage information for different stages in the upgrade process.
1318
+ */
1319
+ export interface Schema$StageInfo {
1320
+ /**
1321
+ * logs_url is the URL for the logs associated with a stage if that stage has logs. Right now, only three stages have logs: ALLOYDB_PRECHECK, PG_UPGRADE_CHECK, PRIMARY_INSTANCE_UPGRADE.
1322
+ */
1323
+ logsUrl?: string | null;
1324
+ /**
1325
+ * The stage.
1326
+ */
1327
+ stage?: string | null;
1328
+ /**
1329
+ * Status of the stage.
1330
+ */
1331
+ status?: string | null;
1332
+ }
1225
1333
  /**
1226
1334
  * 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).
1227
1335
  */
@@ -1308,29 +1416,13 @@ export declare namespace alloydb_v1alpha {
1308
1416
  version?: string | null;
1309
1417
  }
1310
1418
  /**
1311
- * Any custom metadata associated with the resource. i.e. A spanner instance can have multiple databases with its own unique metadata. Information for these individual databases can be captured in custom metadata data
1419
+ * Any custom metadata associated with the resource. e.g. A spanner instance can have multiple databases with its own unique metadata. Information for these individual databases can be captured in custom metadata data
1312
1420
  */
1313
1421
  export interface Schema$StorageDatabasecenterPartnerapiV1mainCustomMetadataData {
1314
- databaseMetadata?: Schema$StorageDatabasecenterPartnerapiV1mainDatabaseMetadata[];
1315
- }
1316
- /**
1317
- * Metadata for individual databases created in an instance. i.e. spanner instance can have multiple databases with unique configuration settings.
1318
- */
1319
- export interface Schema$StorageDatabasecenterPartnerapiV1mainDatabaseMetadata {
1320
1422
  /**
1321
- * Backup configuration for this database
1423
+ * Metadata for individual internal resources in an instance. e.g. spanner instance can have multiple databases with unique configuration.
1322
1424
  */
1323
- backupConfiguration?: Schema$StorageDatabasecenterPartnerapiV1mainBackupConfiguration;
1324
- /**
1325
- * Information about the last backup attempt for this database
1326
- */
1327
- backupRun?: Schema$StorageDatabasecenterPartnerapiV1mainBackupRun;
1328
- product?: Schema$StorageDatabasecenterProtoCommonProduct;
1329
- resourceId?: Schema$StorageDatabasecenterPartnerapiV1mainDatabaseResourceId;
1330
- /**
1331
- * Required. Database name. Resource name to follow CAIS resource_name format as noted here go/condor-common-datamodel
1332
- */
1333
- resourceName?: string | null;
1425
+ internalResourceMetadata?: Schema$StorageDatabasecenterPartnerapiV1mainInternalResourceMetadata[];
1334
1426
  }
1335
1427
  /**
1336
1428
  * DatabaseResourceFeed is the top level proto to be used to ingest different database resource level events into Condor platform.
@@ -1344,9 +1436,7 @@ export declare namespace alloydb_v1alpha {
1344
1436
  * Required. Type feed to be ingested into condor
1345
1437
  */
1346
1438
  feedType?: string | null;
1347
- /**
1348
- * More feed data would be added in subsequent CLs
1349
- */
1439
+ observabilityMetricData?: Schema$StorageDatabasecenterPartnerapiV1mainObservabilityMetricData;
1350
1440
  recommendationSignalData?: Schema$StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData;
1351
1441
  resourceHealthSignalData?: Schema$StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData;
1352
1442
  /**
@@ -1405,6 +1495,10 @@ export declare namespace alloydb_v1alpha {
1405
1495
  * Required. Unique identifier for the signal. This is an unique id which would be mainatined by partner to identify a signal.
1406
1496
  */
1407
1497
  signalId?: string | null;
1498
+ /**
1499
+ * The severity of the signal, such as if it's a HIGH or LOW severity.
1500
+ */
1501
+ signalSeverity?: string | null;
1408
1502
  /**
1409
1503
  * Required. Type of signal, for example, `AVAILABLE_IN_MULTIPLE_ZONES`, `LOGGING_MOST_ERRORS`, etc.
1410
1504
  */
@@ -1424,7 +1518,7 @@ export declare namespace alloydb_v1alpha {
1424
1518
  */
1425
1519
  providerDescription?: string | null;
1426
1520
  /**
1427
- * Required. The type of resource this ID is identifying. Ex redis.googleapis.com/Instance, redis.googleapis.com/Cluster, alloydb.googleapis.com/Cluster, alloydb.googleapis.com/Instance, spanner.googleapis.com/Instance REQUIRED Please refer go/condor-common-datamodel
1521
+ * Required. The type of resource this ID is identifying. Ex redis.googleapis.com/Instance, redis.googleapis.com/Cluster, alloydb.googleapis.com/Cluster, alloydb.googleapis.com/Instance, spanner.googleapis.com/Instance, spanner.googleapis.com/Database, firestore.googleapis.com/Database, sqladmin.googleapis.com/Instance, bigtableadmin.googleapis.com/Cluster, bigtableadmin.googleapis.com/Instance REQUIRED Please refer go/condor-common-datamodel
1428
1522
  */
1429
1523
  resourceType?: string | null;
1430
1524
  /**
@@ -1480,6 +1574,10 @@ export declare namespace alloydb_v1alpha {
1480
1574
  * The resource location. REQUIRED
1481
1575
  */
1482
1576
  location?: string | null;
1577
+ /**
1578
+ * Machine configuration for this resource.
1579
+ */
1580
+ machineConfiguration?: Schema$StorageDatabasecenterPartnerapiV1mainMachineConfiguration;
1483
1581
  /**
1484
1582
  * Identifier for this resource's immediate parent/primary resource if the current resource is a replica or derived form of another Database resource. Else it would be NULL. REQUIRED if the immediate parent exists when first time resource is getting ingested, otherwise optional.
1485
1583
  */
@@ -1500,12 +1598,6 @@ export declare namespace alloydb_v1alpha {
1500
1598
  * The time at which the resource was updated and recorded at partner service.
1501
1599
  */
1502
1600
  updationTime?: string | null;
1503
- /**
1504
- * User-provided labels, represented as a dictionary where each label is a single key value pair.
1505
- */
1506
- userLabels?: {
1507
- [key: string]: string;
1508
- } | null;
1509
1601
  /**
1510
1602
  * User-provided labels associated with the resource
1511
1603
  */
@@ -1563,6 +1655,60 @@ export declare namespace alloydb_v1alpha {
1563
1655
  */
1564
1656
  type?: string | null;
1565
1657
  }
1658
+ /**
1659
+ * 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.
1660
+ */
1661
+ export interface Schema$StorageDatabasecenterPartnerapiV1mainInternalResourceMetadata {
1662
+ /**
1663
+ * Backup configuration for this database
1664
+ */
1665
+ backupConfiguration?: Schema$StorageDatabasecenterPartnerapiV1mainBackupConfiguration;
1666
+ /**
1667
+ * Information about the last backup attempt for this database
1668
+ */
1669
+ backupRun?: Schema$StorageDatabasecenterPartnerapiV1mainBackupRun;
1670
+ product?: Schema$StorageDatabasecenterProtoCommonProduct;
1671
+ resourceId?: Schema$StorageDatabasecenterPartnerapiV1mainDatabaseResourceId;
1672
+ /**
1673
+ * Required. internal resource name for spanner this will be database name e.g."spanner.googleapis.com/projects/123/abc/instances/inst1/databases/db1"
1674
+ */
1675
+ resourceName?: string | null;
1676
+ }
1677
+ /**
1678
+ * MachineConfiguration describes the configuration of a machine specific to Database Resource.
1679
+ */
1680
+ export interface Schema$StorageDatabasecenterPartnerapiV1mainMachineConfiguration {
1681
+ /**
1682
+ * The number of CPUs. TODO(b/342344482, b/342346271) add proto validations again after bug fix.
1683
+ */
1684
+ cpuCount?: number | null;
1685
+ /**
1686
+ * Memory size in bytes. TODO(b/342344482, b/342346271) add proto validations again after bug fix.
1687
+ */
1688
+ memorySizeInBytes?: string | null;
1689
+ }
1690
+ export interface Schema$StorageDatabasecenterPartnerapiV1mainObservabilityMetricData {
1691
+ /**
1692
+ * Required. Type of aggregation performed on the metric.
1693
+ */
1694
+ aggregationType?: string | null;
1695
+ /**
1696
+ * Required. Type of metric like CPU, Memory, etc.
1697
+ */
1698
+ metricType?: string | null;
1699
+ /**
1700
+ * Required. The time the metric value was observed.
1701
+ */
1702
+ observationTime?: string | null;
1703
+ /**
1704
+ * Required. Database resource name associated with the signal. Resource name to follow CAIS resource_name format as noted here go/condor-common-datamodel
1705
+ */
1706
+ resourceName?: string | null;
1707
+ /**
1708
+ * Required. Value of the metric type.
1709
+ */
1710
+ value?: Schema$StorageDatabasecenterProtoCommonTypedValue;
1711
+ }
1566
1712
  /**
1567
1713
  * An error that occurred during a backup creation operation.
1568
1714
  */
@@ -1610,6 +1756,27 @@ export declare namespace alloydb_v1alpha {
1610
1756
  */
1611
1757
  version?: string | null;
1612
1758
  }
1759
+ /**
1760
+ * TypedValue represents the value of a metric type. It can either be a double, an int64, a string or a bool.
1761
+ */
1762
+ export interface Schema$StorageDatabasecenterProtoCommonTypedValue {
1763
+ /**
1764
+ * For boolean value
1765
+ */
1766
+ boolValue?: boolean | null;
1767
+ /**
1768
+ * For double value
1769
+ */
1770
+ doubleValue?: number | null;
1771
+ /**
1772
+ * For integer value
1773
+ */
1774
+ int64Value?: string | null;
1775
+ /**
1776
+ * For string value
1777
+ */
1778
+ stringValue?: string | null;
1779
+ }
1613
1780
  /**
1614
1781
  * Restrictions on STRING type values
1615
1782
  */
@@ -1653,6 +1820,19 @@ export declare namespace alloydb_v1alpha {
1653
1820
  supportedDbVersions?: string[] | null;
1654
1821
  valueType?: string | null;
1655
1822
  }
1823
+ /**
1824
+ * Message for switching over to a cluster
1825
+ */
1826
+ export interface Schema$SwitchoverClusterRequest {
1827
+ /**
1828
+ * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1829
+ */
1830
+ requestId?: string | null;
1831
+ /**
1832
+ * Optional. If set, performs request validation (e.g. permission checks and any other type of validation), but do not actually execute the delete.
1833
+ */
1834
+ validateOnly?: boolean | null;
1835
+ }
1656
1836
  /**
1657
1837
  * A time based retention policy specifies that all backups within a certain time period should be retained.
1658
1838
  */
@@ -1662,6 +1842,27 @@ export declare namespace alloydb_v1alpha {
1662
1842
  */
1663
1843
  retentionPeriod?: string | null;
1664
1844
  }
1845
+ /**
1846
+ * Contains information and all metadata related to TRIAL clusters.
1847
+ */
1848
+ export interface Schema$TrialMetadata {
1849
+ /**
1850
+ * End time of the trial cluster.
1851
+ */
1852
+ endTime?: string | null;
1853
+ /**
1854
+ * grace end time of the cluster.
1855
+ */
1856
+ graceEndTime?: string | null;
1857
+ /**
1858
+ * start time of the trial cluster.
1859
+ */
1860
+ startTime?: string | null;
1861
+ /**
1862
+ * Upgrade time of trial cluster to Standard cluster.
1863
+ */
1864
+ upgradeTime?: string | null;
1865
+ }
1665
1866
  /**
1666
1867
  * Policy to be used while updating the instance.
1667
1868
  */
@@ -1671,6 +1872,44 @@ export declare namespace alloydb_v1alpha {
1671
1872
  */
1672
1873
  mode?: string | null;
1673
1874
  }
1875
+ /**
1876
+ * Upgrades a cluster.
1877
+ */
1878
+ export interface Schema$UpgradeClusterRequest {
1879
+ /**
1880
+ * Optional. The current etag of the Cluster. If an etag is provided and does not match the current etag of the Cluster, upgrade will be blocked and an ABORTED error will be returned.
1881
+ */
1882
+ etag?: string | null;
1883
+ /**
1884
+ * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1885
+ */
1886
+ requestId?: string | null;
1887
+ /**
1888
+ * Optional. If set, performs request validation (e.g. permission checks and any other type of validation), but does not actually execute the upgrade.
1889
+ */
1890
+ validateOnly?: boolean | null;
1891
+ /**
1892
+ * Required. The version the cluster is going to be upgraded to.
1893
+ */
1894
+ version?: string | null;
1895
+ }
1896
+ /**
1897
+ * UpgradeClusterResponse contains the response for upgrade cluster operation.
1898
+ */
1899
+ export interface Schema$UpgradeClusterResponse {
1900
+ /**
1901
+ * Array of upgrade details for the current cluster and all the secondary clusters associated with this cluster.
1902
+ */
1903
+ clusterUpgradeDetails?: Schema$ClusterUpgradeDetails[];
1904
+ /**
1905
+ * A user friendly message summarising the upgrade operation details and the next steps for the user if there is any.
1906
+ */
1907
+ message?: string | null;
1908
+ /**
1909
+ * Status of upgrade operation.
1910
+ */
1911
+ status?: string | null;
1912
+ }
1674
1913
  /**
1675
1914
  * Message describing User object.
1676
1915
  */
@@ -2068,6 +2307,34 @@ export declare namespace alloydb_v1alpha {
2068
2307
  restore(params: Params$Resource$Projects$Locations$Clusters$Restore, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
2069
2308
  restore(params: Params$Resource$Projects$Locations$Clusters$Restore, callback: BodyResponseCallback<Schema$Operation>): void;
2070
2309
  restore(callback: BodyResponseCallback<Schema$Operation>): void;
2310
+ /**
2311
+ * Switches the role of PRIMARY and SECONDARY cluster without any data loss. This promotes the SECONDARY cluster to PRIMARY and sets up original PRIMARY cluster to replicate from this newly promoted cluster.
2312
+ *
2313
+ * @param params - Parameters for request
2314
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2315
+ * @param callback - Optional callback that handles the response.
2316
+ * @returns A promise if used with async/await, or void if used with a callback.
2317
+ */
2318
+ switchover(params: Params$Resource$Projects$Locations$Clusters$Switchover, options: StreamMethodOptions): GaxiosPromise<Readable>;
2319
+ switchover(params?: Params$Resource$Projects$Locations$Clusters$Switchover, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
2320
+ switchover(params: Params$Resource$Projects$Locations$Clusters$Switchover, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2321
+ switchover(params: Params$Resource$Projects$Locations$Clusters$Switchover, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
2322
+ switchover(params: Params$Resource$Projects$Locations$Clusters$Switchover, callback: BodyResponseCallback<Schema$Operation>): void;
2323
+ switchover(callback: BodyResponseCallback<Schema$Operation>): void;
2324
+ /**
2325
+ * Upgrades a single Cluster. Imperative only.
2326
+ *
2327
+ * @param params - Parameters for request
2328
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2329
+ * @param callback - Optional callback that handles the response.
2330
+ * @returns A promise if used with async/await, or void if used with a callback.
2331
+ */
2332
+ upgrade(params: Params$Resource$Projects$Locations$Clusters$Upgrade, options: StreamMethodOptions): GaxiosPromise<Readable>;
2333
+ upgrade(params?: Params$Resource$Projects$Locations$Clusters$Upgrade, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
2334
+ upgrade(params: Params$Resource$Projects$Locations$Clusters$Upgrade, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2335
+ upgrade(params: Params$Resource$Projects$Locations$Clusters$Upgrade, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
2336
+ upgrade(params: Params$Resource$Projects$Locations$Clusters$Upgrade, callback: BodyResponseCallback<Schema$Operation>): void;
2337
+ upgrade(callback: BodyResponseCallback<Schema$Operation>): void;
2071
2338
  }
2072
2339
  export interface Params$Resource$Projects$Locations$Clusters$Create extends StandardParameters {
2073
2340
  /**
@@ -2213,6 +2480,26 @@ export declare namespace alloydb_v1alpha {
2213
2480
  */
2214
2481
  requestBody?: Schema$RestoreClusterRequest;
2215
2482
  }
2483
+ export interface Params$Resource$Projects$Locations$Clusters$Switchover extends StandardParameters {
2484
+ /**
2485
+ * Required. The name of the resource. For the required format, see the comment on the Cluster.name field
2486
+ */
2487
+ name?: string;
2488
+ /**
2489
+ * Request body metadata
2490
+ */
2491
+ requestBody?: Schema$SwitchoverClusterRequest;
2492
+ }
2493
+ export interface Params$Resource$Projects$Locations$Clusters$Upgrade extends StandardParameters {
2494
+ /**
2495
+ * Required. The resource name of the cluster.
2496
+ */
2497
+ name?: string;
2498
+ /**
2499
+ * Request body metadata
2500
+ */
2501
+ requestBody?: Schema$UpgradeClusterRequest;
2502
+ }
2216
2503
  export class Resource$Projects$Locations$Clusters$Instances {
2217
2504
  context: APIRequestContext;
2218
2505
  constructor(context: APIRequestContext);
package/build/v1alpha.js CHANGED
@@ -553,6 +553,70 @@ var alloydb_v1alpha;
553
553
  return (0, googleapis_common_1.createAPIRequest)(parameters);
554
554
  }
555
555
  }
556
+ switchover(paramsOrCallback, optionsOrCallback, callback) {
557
+ let params = (paramsOrCallback ||
558
+ {});
559
+ let options = (optionsOrCallback || {});
560
+ if (typeof paramsOrCallback === 'function') {
561
+ callback = paramsOrCallback;
562
+ params = {};
563
+ options = {};
564
+ }
565
+ if (typeof optionsOrCallback === 'function') {
566
+ callback = optionsOrCallback;
567
+ options = {};
568
+ }
569
+ const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/';
570
+ const parameters = {
571
+ options: Object.assign({
572
+ url: (rootUrl + '/v1alpha/{+name}:switchover').replace(/([^:]\/)\/+/g, '$1'),
573
+ method: 'POST',
574
+ apiVersion: '',
575
+ }, options),
576
+ params,
577
+ requiredParams: ['name'],
578
+ pathParams: ['name'],
579
+ context: this.context,
580
+ };
581
+ if (callback) {
582
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
583
+ }
584
+ else {
585
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
586
+ }
587
+ }
588
+ upgrade(paramsOrCallback, optionsOrCallback, callback) {
589
+ let params = (paramsOrCallback ||
590
+ {});
591
+ let options = (optionsOrCallback || {});
592
+ if (typeof paramsOrCallback === 'function') {
593
+ callback = paramsOrCallback;
594
+ params = {};
595
+ options = {};
596
+ }
597
+ if (typeof optionsOrCallback === 'function') {
598
+ callback = optionsOrCallback;
599
+ options = {};
600
+ }
601
+ const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/';
602
+ const parameters = {
603
+ options: Object.assign({
604
+ url: (rootUrl + '/v1alpha/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'),
605
+ method: 'PATCH',
606
+ apiVersion: '',
607
+ }, options),
608
+ params,
609
+ requiredParams: ['name'],
610
+ pathParams: ['name'],
611
+ context: this.context,
612
+ };
613
+ if (callback) {
614
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
615
+ }
616
+ else {
617
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
618
+ }
619
+ }
556
620
  }
557
621
  alloydb_v1alpha.Resource$Projects$Locations$Clusters = Resource$Projects$Locations$Clusters;
558
622
  class Resource$Projects$Locations$Clusters$Instances {