@googleapis/alloydb 8.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
  */
@@ -768,6 +826,23 @@ export declare namespace alloydb_v1alpha {
768
826
  */
769
827
  enablePublicIp?: boolean | null;
770
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
+ }
771
846
  /**
772
847
  * Restrictions on INTEGER type values.
773
848
  */
@@ -971,7 +1046,7 @@ export declare namespace alloydb_v1alpha {
971
1046
  */
972
1047
  export interface Schema$ObservabilityInstanceConfig {
973
1048
  /**
974
- * 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.
975
1050
  */
976
1051
  enabled?: boolean | null;
977
1052
  /**
@@ -983,7 +1058,7 @@ export declare namespace alloydb_v1alpha {
983
1058
  */
984
1059
  preserveComments?: boolean | null;
985
1060
  /**
986
- * 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.
987
1062
  */
988
1063
  queryPlansPerMinute?: number | null;
989
1064
  /**
@@ -994,6 +1069,10 @@ export declare namespace alloydb_v1alpha {
994
1069
  * Track actively running queries on the instance. If not set, this flag is "off" by default.
995
1070
  */
996
1071
  trackActiveQueries?: boolean | null;
1072
+ /**
1073
+ * Track client address for an instance. If not set, default value is "off".
1074
+ */
1075
+ trackClientAddress?: boolean | null;
997
1076
  /**
998
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.
999
1078
  */
@@ -1170,6 +1249,10 @@ export declare namespace alloydb_v1alpha {
1170
1249
  nodeCount?: number | null;
1171
1250
  }
1172
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;
1173
1256
  /**
1174
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).
1175
1258
  */
@@ -1230,6 +1313,23 @@ export declare namespace alloydb_v1alpha {
1230
1313
  */
1231
1314
  sslMode?: string | null;
1232
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
+ }
1233
1333
  /**
1234
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).
1235
1335
  */
@@ -1316,29 +1416,13 @@ export declare namespace alloydb_v1alpha {
1316
1416
  version?: string | null;
1317
1417
  }
1318
1418
  /**
1319
- * 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
1320
1420
  */
1321
1421
  export interface Schema$StorageDatabasecenterPartnerapiV1mainCustomMetadataData {
1322
- databaseMetadata?: Schema$StorageDatabasecenterPartnerapiV1mainDatabaseMetadata[];
1323
- }
1324
- /**
1325
- * Metadata for individual databases created in an instance. i.e. spanner instance can have multiple databases with unique configuration settings.
1326
- */
1327
- export interface Schema$StorageDatabasecenterPartnerapiV1mainDatabaseMetadata {
1328
- /**
1329
- * Backup configuration for this database
1330
- */
1331
- backupConfiguration?: Schema$StorageDatabasecenterPartnerapiV1mainBackupConfiguration;
1332
- /**
1333
- * Information about the last backup attempt for this database
1334
- */
1335
- backupRun?: Schema$StorageDatabasecenterPartnerapiV1mainBackupRun;
1336
- product?: Schema$StorageDatabasecenterProtoCommonProduct;
1337
- resourceId?: Schema$StorageDatabasecenterPartnerapiV1mainDatabaseResourceId;
1338
1422
  /**
1339
- * Required. Database name. Resource name to follow CAIS resource_name format as noted here go/condor-common-datamodel
1423
+ * Metadata for individual internal resources in an instance. e.g. spanner instance can have multiple databases with unique configuration.
1340
1424
  */
1341
- resourceName?: string | null;
1425
+ internalResourceMetadata?: Schema$StorageDatabasecenterPartnerapiV1mainInternalResourceMetadata[];
1342
1426
  }
1343
1427
  /**
1344
1428
  * DatabaseResourceFeed is the top level proto to be used to ingest different database resource level events into Condor platform.
@@ -1352,9 +1436,6 @@ export declare namespace alloydb_v1alpha {
1352
1436
  * Required. Type feed to be ingested into condor
1353
1437
  */
1354
1438
  feedType?: string | null;
1355
- /**
1356
- * More feed data would be added in subsequent CLs
1357
- */
1358
1439
  observabilityMetricData?: Schema$StorageDatabasecenterPartnerapiV1mainObservabilityMetricData;
1359
1440
  recommendationSignalData?: Schema$StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData;
1360
1441
  resourceHealthSignalData?: Schema$StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData;
@@ -1414,6 +1495,10 @@ export declare namespace alloydb_v1alpha {
1414
1495
  * Required. Unique identifier for the signal. This is an unique id which would be mainatined by partner to identify a signal.
1415
1496
  */
1416
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;
1417
1502
  /**
1418
1503
  * Required. Type of signal, for example, `AVAILABLE_IN_MULTIPLE_ZONES`, `LOGGING_MOST_ERRORS`, etc.
1419
1504
  */
@@ -1433,7 +1518,7 @@ export declare namespace alloydb_v1alpha {
1433
1518
  */
1434
1519
  providerDescription?: string | null;
1435
1520
  /**
1436
- * 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
1437
1522
  */
1438
1523
  resourceType?: string | null;
1439
1524
  /**
@@ -1513,12 +1598,6 @@ export declare namespace alloydb_v1alpha {
1513
1598
  * The time at which the resource was updated and recorded at partner service.
1514
1599
  */
1515
1600
  updationTime?: string | null;
1516
- /**
1517
- * User-provided labels, represented as a dictionary where each label is a single key value pair.
1518
- */
1519
- userLabels?: {
1520
- [key: string]: string;
1521
- } | null;
1522
1601
  /**
1523
1602
  * User-provided labels associated with the resource
1524
1603
  */
@@ -1576,28 +1655,51 @@ export declare namespace alloydb_v1alpha {
1576
1655
  */
1577
1656
  type?: string | null;
1578
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
+ }
1579
1677
  /**
1580
1678
  * MachineConfiguration describes the configuration of a machine specific to Database Resource.
1581
1679
  */
1582
1680
  export interface Schema$StorageDatabasecenterPartnerapiV1mainMachineConfiguration {
1583
1681
  /**
1584
- * The number of CPUs.
1682
+ * The number of CPUs. TODO(b/342344482, b/342346271) add proto validations again after bug fix.
1585
1683
  */
1586
1684
  cpuCount?: number | null;
1587
1685
  /**
1588
- * Memory size in bytes.
1686
+ * Memory size in bytes. TODO(b/342344482, b/342346271) add proto validations again after bug fix.
1589
1687
  */
1590
1688
  memorySizeInBytes?: string | null;
1591
1689
  }
1592
1690
  export interface Schema$StorageDatabasecenterPartnerapiV1mainObservabilityMetricData {
1593
1691
  /**
1594
- * Required. The timestamp of the metric value.
1692
+ * Required. Type of aggregation performed on the metric.
1595
1693
  */
1596
- metricTimestamp?: string | null;
1694
+ aggregationType?: string | null;
1597
1695
  /**
1598
1696
  * Required. Type of metric like CPU, Memory, etc.
1599
1697
  */
1600
1698
  metricType?: string | null;
1699
+ /**
1700
+ * Required. The time the metric value was observed.
1701
+ */
1702
+ observationTime?: string | null;
1601
1703
  /**
1602
1704
  * Required. Database resource name associated with the signal. Resource name to follow CAIS resource_name format as noted here go/condor-common-datamodel
1603
1705
  */
@@ -1605,7 +1707,7 @@ export declare namespace alloydb_v1alpha {
1605
1707
  /**
1606
1708
  * Required. Value of the metric type.
1607
1709
  */
1608
- value?: number | null;
1710
+ value?: Schema$StorageDatabasecenterProtoCommonTypedValue;
1609
1711
  }
1610
1712
  /**
1611
1713
  * An error that occurred during a backup creation operation.
@@ -1654,6 +1756,27 @@ export declare namespace alloydb_v1alpha {
1654
1756
  */
1655
1757
  version?: string | null;
1656
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
+ }
1657
1780
  /**
1658
1781
  * Restrictions on STRING type values
1659
1782
  */
@@ -1697,6 +1820,19 @@ export declare namespace alloydb_v1alpha {
1697
1820
  supportedDbVersions?: string[] | null;
1698
1821
  valueType?: string | null;
1699
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
+ }
1700
1836
  /**
1701
1837
  * A time based retention policy specifies that all backups within a certain time period should be retained.
1702
1838
  */
@@ -1706,6 +1842,27 @@ export declare namespace alloydb_v1alpha {
1706
1842
  */
1707
1843
  retentionPeriod?: string | null;
1708
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
+ }
1709
1866
  /**
1710
1867
  * Policy to be used while updating the instance.
1711
1868
  */
@@ -1715,6 +1872,44 @@ export declare namespace alloydb_v1alpha {
1715
1872
  */
1716
1873
  mode?: string | null;
1717
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
+ }
1718
1913
  /**
1719
1914
  * Message describing User object.
1720
1915
  */
@@ -2112,6 +2307,34 @@ export declare namespace alloydb_v1alpha {
2112
2307
  restore(params: Params$Resource$Projects$Locations$Clusters$Restore, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
2113
2308
  restore(params: Params$Resource$Projects$Locations$Clusters$Restore, callback: BodyResponseCallback<Schema$Operation>): void;
2114
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;
2115
2338
  }
2116
2339
  export interface Params$Resource$Projects$Locations$Clusters$Create extends StandardParameters {
2117
2340
  /**
@@ -2257,6 +2480,26 @@ export declare namespace alloydb_v1alpha {
2257
2480
  */
2258
2481
  requestBody?: Schema$RestoreClusterRequest;
2259
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
+ }
2260
2503
  export class Resource$Projects$Locations$Clusters$Instances {
2261
2504
  context: APIRequestContext;
2262
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 {