Skip to content

Commit

Permalink
feat(all): auto-regenerate discovery clients (#2652)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Jun 24, 2024
1 parent 695484b commit 10c47f3
Show file tree
Hide file tree
Showing 18 changed files with 1,552 additions and 478 deletions.
45 changes: 44 additions & 1 deletion alloydb/v1/alloydb-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,34 @@
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"switchover": {
"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.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:switchover",
"httpMethod": "POST",
"id": "alloydb.projects.locations.clusters.switchover",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The name of the resource. For the required format, see the comment on the Cluster.name field",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:switchover",
"request": {
"$ref": "SwitchoverClusterRequest"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
},
"resources": {
Expand Down Expand Up @@ -1461,7 +1489,7 @@
}
}
},
"revision": "20240605",
"revision": "20240612",
"rootUrl": "https://alloydb.googleapis.com/",
"schemas": {
"AuthorizedNetwork": {
Expand Down Expand Up @@ -4522,6 +4550,21 @@
},
"type": "object"
},
"SwitchoverClusterRequest": {
"description": "Message for switching over to a cluster",
"id": "SwitchoverClusterRequest",
"properties": {
"requestId": {
"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).",
"type": "string"
},
"validateOnly": {
"description": "Optional. If set, performs request validation (e.g. permission checks and any other type of validation), but do not actually execute the delete.",
"type": "boolean"
}
},
"type": "object"
},
"TimeBasedRetention": {
"description": "A time based retention policy specifies that all backups within a certain time period should be retained.",
"id": "TimeBasedRetention",
Expand Down
140 changes: 140 additions & 0 deletions alloydb/v1/alloydb-gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 44 additions & 1 deletion alloydb/v1alpha/alloydb-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,34 @@
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"switchover": {
"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.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:switchover",
"httpMethod": "POST",
"id": "alloydb.projects.locations.clusters.switchover",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The name of the resource. For the required format, see the comment on the Cluster.name field",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1alpha/{+name}:switchover",
"request": {
"$ref": "SwitchoverClusterRequest"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
},
"resources": {
Expand Down Expand Up @@ -1461,7 +1489,7 @@
}
}
},
"revision": "20240605",
"revision": "20240612",
"rootUrl": "https://alloydb.googleapis.com/",
"schemas": {
"AuthorizedNetwork": {
Expand Down Expand Up @@ -4664,6 +4692,21 @@
},
"type": "object"
},
"SwitchoverClusterRequest": {
"description": "Message for switching over to a cluster",
"id": "SwitchoverClusterRequest",
"properties": {
"requestId": {
"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).",
"type": "string"
},
"validateOnly": {
"description": "Optional. If set, performs request validation (e.g. permission checks and any other type of validation), but do not actually execute the delete.",
"type": "boolean"
}
},
"type": "object"
},
"TimeBasedRetention": {
"description": "A time based retention policy specifies that all backups within a certain time period should be retained.",
"id": "TimeBasedRetention",
Expand Down
Loading

0 comments on commit 10c47f3

Please sign in to comment.