|
735 | 735 | "scopes": [
|
736 | 736 | "https://www.googleapis.com/auth/cloud-platform"
|
737 | 737 | ]
|
| 738 | + }, |
| 739 | + "upgrade": { |
| 740 | + "description": "Upgrades a single Cluster. Imperative only.", |
| 741 | + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:upgrade", |
| 742 | + "httpMethod": "PATCH", |
| 743 | + "id": "alloydb.projects.locations.clusters.upgrade", |
| 744 | + "parameterOrder": [ |
| 745 | + "name" |
| 746 | + ], |
| 747 | + "parameters": { |
| 748 | + "name": { |
| 749 | + "description": "Required. The resource name of the cluster.", |
| 750 | + "location": "path", |
| 751 | + "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$", |
| 752 | + "required": true, |
| 753 | + "type": "string" |
| 754 | + } |
| 755 | + }, |
| 756 | + "path": "v1/{+name}:upgrade", |
| 757 | + "request": { |
| 758 | + "$ref": "UpgradeClusterRequest" |
| 759 | + }, |
| 760 | + "response": { |
| 761 | + "$ref": "Operation" |
| 762 | + }, |
| 763 | + "scopes": [ |
| 764 | + "https://www.googleapis.com/auth/cloud-platform" |
| 765 | + ] |
738 | 766 | }
|
739 | 767 | },
|
740 | 768 | "resources": {
|
|
1489 | 1517 | }
|
1490 | 1518 | }
|
1491 | 1519 | },
|
1492 |
| - "revision": "20240823", |
| 1520 | + "revision": "20240828", |
1493 | 1521 | "rootUrl": "https://alloydb.googleapis.com/",
|
1494 | 1522 | "schemas": {
|
1495 | 1523 | "AuthorizedNetwork": {
|
|
2063 | 2091 | "description": "Upgrade status of the cluster.",
|
2064 | 2092 | "enum": [
|
2065 | 2093 | "STATUS_UNSPECIFIED",
|
| 2094 | + "NOT_STARTED", |
| 2095 | + "IN_PROGRESS", |
2066 | 2096 | "SUCCESS",
|
2067 | 2097 | "FAILED",
|
2068 | 2098 | "PARTIAL_SUCCESS"
|
2069 | 2099 | ],
|
2070 | 2100 | "enumDescriptions": [
|
2071 | 2101 | "Unspecified status.",
|
| 2102 | + "Not started.", |
| 2103 | + "In progress.", |
2072 | 2104 | "Operation succeeded.",
|
2073 | 2105 | "Operation failed.",
|
2074 | 2106 | "Operation partially succeeded."
|
|
2469 | 2501 | "readOnly": true,
|
2470 | 2502 | "type": "array"
|
2471 | 2503 | },
|
| 2504 | + "outboundPublicIpAddresses": { |
| 2505 | + "description": "Output only. All outbound public IP addresses configured for the instance.", |
| 2506 | + "items": { |
| 2507 | + "type": "string" |
| 2508 | + }, |
| 2509 | + "readOnly": true, |
| 2510 | + "type": "array" |
| 2511 | + }, |
2472 | 2512 | "pscInstanceConfig": {
|
2473 | 2513 | "$ref": "PscInstanceConfig",
|
2474 | 2514 | "description": "Optional. The configuration for Private Service Connect (PSC) for the instance."
|
|
2553 | 2593 | },
|
2554 | 2594 | "type": "array"
|
2555 | 2595 | },
|
| 2596 | + "enableOutboundPublicIp": { |
| 2597 | + "description": "Optional. Enabling an outbound public IP address to support a database server sending requests out into the internet.", |
| 2598 | + "type": "boolean" |
| 2599 | + }, |
2556 | 2600 | "enablePublicIp": {
|
2557 | 2601 | "description": "Optional. Enabling public ip for the instance.",
|
2558 | 2602 | "type": "boolean"
|
|
2588 | 2632 | "description": "Upgrade status of the instance.",
|
2589 | 2633 | "enum": [
|
2590 | 2634 | "STATUS_UNSPECIFIED",
|
| 2635 | + "NOT_STARTED", |
| 2636 | + "IN_PROGRESS", |
2591 | 2637 | "SUCCESS",
|
2592 | 2638 | "FAILED",
|
2593 | 2639 | "PARTIAL_SUCCESS"
|
2594 | 2640 | ],
|
2595 | 2641 | "enumDescriptions": [
|
2596 | 2642 | "Unspecified status.",
|
| 2643 | + "Not started.", |
| 2644 | + "In progress.", |
2597 | 2645 | "Operation succeeded.",
|
2598 | 2646 | "Operation failed.",
|
2599 | 2647 | "Operation partially succeeded."
|
|
3238 | 3286 | "STAGE_UNSPECIFIED",
|
3239 | 3287 | "ALLOYDB_PRECHECK",
|
3240 | 3288 | "PG_UPGRADE_CHECK",
|
| 3289 | + "PREPARE_FOR_UPGRADE", |
3241 | 3290 | "PRIMARY_INSTANCE_UPGRADE",
|
3242 |
| - "READ_POOL_UPGRADE" |
| 3291 | + "READ_POOL_INSTANCES_UPGRADE", |
| 3292 | + "ROLLBACK", |
| 3293 | + "CLEANUP" |
3243 | 3294 | ],
|
3244 | 3295 | "enumDescriptions": [
|
3245 | 3296 | "Unspecified stage.",
|
3246 |
| - "This stage is for the custom checks done before upgrade.", |
3247 |
| - "This stage is for `pg_upgrade --check` run before upgrade.", |
3248 |
| - "This stage is primary upgrade.", |
3249 |
| - "This stage is read pool upgrade." |
| 3297 | + "Pre-upgrade custom checks, not covered by pg_upgrade.", |
| 3298 | + "Pre-upgrade pg_upgrade checks.", |
| 3299 | + "Clone the original cluster.", |
| 3300 | + "Upgrade the primary instance(downtime).", |
| 3301 | + "This stage is read pool upgrade.", |
| 3302 | + "Rollback in case of critical failures.", |
| 3303 | + "Cleanup." |
3250 | 3304 | ],
|
3251 | 3305 | "type": "string"
|
3252 | 3306 | },
|
3253 | 3307 | "status": {
|
3254 | 3308 | "description": "Status of the stage.",
|
3255 | 3309 | "enum": [
|
3256 | 3310 | "STATUS_UNSPECIFIED",
|
| 3311 | + "NOT_STARTED", |
| 3312 | + "IN_PROGRESS", |
3257 | 3313 | "SUCCESS",
|
3258 | 3314 | "FAILED",
|
3259 | 3315 | "PARTIAL_SUCCESS"
|
3260 | 3316 | ],
|
3261 | 3317 | "enumDescriptions": [
|
3262 | 3318 | "Unspecified status.",
|
| 3319 | + "Not started.", |
| 3320 | + "In progress.", |
3263 | 3321 | "Operation succeeded.",
|
3264 | 3322 | "Operation failed.",
|
3265 | 3323 | "Operation partially succeeded."
|
|
4826 | 4884 | },
|
4827 | 4885 | "type": "object"
|
4828 | 4886 | },
|
| 4887 | + "UpgradeClusterRequest": { |
| 4888 | + "description": "Upgrades a cluster.", |
| 4889 | + "id": "UpgradeClusterRequest", |
| 4890 | + "properties": { |
| 4891 | + "etag": { |
| 4892 | + "description": "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.", |
| 4893 | + "type": "string" |
| 4894 | + }, |
| 4895 | + "requestId": { |
| 4896 | + "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).", |
| 4897 | + "type": "string" |
| 4898 | + }, |
| 4899 | + "validateOnly": { |
| 4900 | + "description": "Optional. If set, performs request validation (e.g. permission checks and any other type of validation), but does not actually execute the upgrade.", |
| 4901 | + "type": "boolean" |
| 4902 | + }, |
| 4903 | + "version": { |
| 4904 | + "description": "Required. The version the cluster is going to be upgraded to.", |
| 4905 | + "enum": [ |
| 4906 | + "DATABASE_VERSION_UNSPECIFIED", |
| 4907 | + "POSTGRES_13", |
| 4908 | + "POSTGRES_14", |
| 4909 | + "POSTGRES_15" |
| 4910 | + ], |
| 4911 | + "enumDeprecated": [ |
| 4912 | + false, |
| 4913 | + true, |
| 4914 | + false, |
| 4915 | + false |
| 4916 | + ], |
| 4917 | + "enumDescriptions": [ |
| 4918 | + "This is an unknown database version.", |
| 4919 | + "DEPRECATED - The database version is Postgres 13.", |
| 4920 | + "The database version is Postgres 14.", |
| 4921 | + "The database version is Postgres 15." |
| 4922 | + ], |
| 4923 | + "type": "string" |
| 4924 | + } |
| 4925 | + }, |
| 4926 | + "type": "object" |
| 4927 | + }, |
4829 | 4928 | "UpgradeClusterResponse": {
|
4830 | 4929 | "description": "UpgradeClusterResponse contains the response for upgrade cluster operation.",
|
4831 | 4930 | "id": "UpgradeClusterResponse",
|
|
4845 | 4944 | "description": "Status of upgrade operation.",
|
4846 | 4945 | "enum": [
|
4847 | 4946 | "STATUS_UNSPECIFIED",
|
| 4947 | + "NOT_STARTED", |
| 4948 | + "IN_PROGRESS", |
4848 | 4949 | "SUCCESS",
|
4849 | 4950 | "FAILED",
|
4850 | 4951 | "PARTIAL_SUCCESS"
|
4851 | 4952 | ],
|
4852 | 4953 | "enumDescriptions": [
|
4853 | 4954 | "Unspecified status.",
|
| 4955 | + "Not started.", |
| 4956 | + "In progress.", |
4854 | 4957 | "Operation succeeded.",
|
4855 | 4958 | "Operation failed.",
|
4856 | 4959 | "Operation partially succeeded."
|
|
0 commit comments