|
707 | 707 | "scopes": [ |
708 | 708 | "https://www.googleapis.com/auth/cloud-platform" |
709 | 709 | ] |
| 710 | + }, |
| 711 | + "switchover": { |
| 712 | + "description": "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.", |
| 713 | + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:switchover", |
| 714 | + "httpMethod": "POST", |
| 715 | + "id": "alloydb.projects.locations.clusters.switchover", |
| 716 | + "parameterOrder": [ |
| 717 | + "name" |
| 718 | + ], |
| 719 | + "parameters": { |
| 720 | + "name": { |
| 721 | + "description": "Required. The name of the resource. For the required format, see the comment on the Cluster.name field", |
| 722 | + "location": "path", |
| 723 | + "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$", |
| 724 | + "required": true, |
| 725 | + "type": "string" |
| 726 | + } |
| 727 | + }, |
| 728 | + "path": "v1alpha/{+name}:switchover", |
| 729 | + "request": { |
| 730 | + "$ref": "SwitchoverClusterRequest" |
| 731 | + }, |
| 732 | + "response": { |
| 733 | + "$ref": "Operation" |
| 734 | + }, |
| 735 | + "scopes": [ |
| 736 | + "https://www.googleapis.com/auth/cloud-platform" |
| 737 | + ] |
710 | 738 | } |
711 | 739 | }, |
712 | 740 | "resources": { |
|
1461 | 1489 | } |
1462 | 1490 | } |
1463 | 1491 | }, |
1464 | | - "revision": "20240605", |
| 1492 | + "revision": "20240612", |
1465 | 1493 | "rootUrl": "https://alloydb.googleapis.com/", |
1466 | 1494 | "schemas": { |
1467 | 1495 | "AuthorizedNetwork": { |
|
4664 | 4692 | }, |
4665 | 4693 | "type": "object" |
4666 | 4694 | }, |
| 4695 | + "SwitchoverClusterRequest": { |
| 4696 | + "description": "Message for switching over to a cluster", |
| 4697 | + "id": "SwitchoverClusterRequest", |
| 4698 | + "properties": { |
| 4699 | + "requestId": { |
| 4700 | + "description": "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).", |
| 4701 | + "type": "string" |
| 4702 | + }, |
| 4703 | + "validateOnly": { |
| 4704 | + "description": "Optional. If set, performs request validation (e.g. permission checks and any other type of validation), but do not actually execute the delete.", |
| 4705 | + "type": "boolean" |
| 4706 | + } |
| 4707 | + }, |
| 4708 | + "type": "object" |
| 4709 | + }, |
4667 | 4710 | "TimeBasedRetention": { |
4668 | 4711 | "description": "A time based retention policy specifies that all backups within a certain time period should be retained.", |
4669 | 4712 | "id": "TimeBasedRetention", |
|
0 commit comments