---
title: "PATCH /v1/projects/{projectsId}/locations/{locationsId}/privateClouds/{privateCloudsId}/upgrades/{upgradesId}"
method: PATCH
path: "/v1/projects/{projectsId}/locations/{locationsId}/privateClouds/{privateCloudsId}/upgrades/{upgradesId}"
tags: ["projects"]
---

# PATCH /v1/projects/{projectsId}/locations/{locationsId}/privateClouds/{privateCloudsId}/upgrades/{upgradesId}

`PATCH /v1/projects/{projectsId}/locations/{locationsId}/privateClouds/{privateCloudsId}/upgrades/{upgradesId}`

## Request

- Base URL: `https://vmwareengine.googleapis.com`
- URL: `https://vmwareengine.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/privateClouds/{privateCloudsId}/upgrades/{upgradesId}`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Update the private cloud `Upgrade` resource. Only `schedule` field can updated. The schedule can only be updated when the upgrade has not started and schedule edit window is open. Only fields specified in `update_mask` are considered.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `privateCloudsId` string, required
- `upgradesId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `requestId` string
- `updateMask` string, google-fieldmask

## Request body

- Upgrade: Describes Private cloud Upgrade.
  - `componentUpgrades` VmwareUpgradeComponent[]: Output only. Output Only. The list of component upgrades.
    - `componentType` 'VMWARE_COMPONENT_TYPE_UNSPECIFIED' | 'VCENTER' | 'ESXI' | 'NSXT_UC' | 'NSXT_EDGE' | 'NSXT_MGR' | 'HCX' | 'VSAN' | 'DVS' | 'NAMESERVER_VM' | 'KMS_VM' | 'WITNESS_VM' | 'NSXT' | 'CLUSTER' | 'VM_TOOLS': Output only. Type of component
    - `state` 'STATE_UNSPECIFIED' | 'RUNNING' | 'PAUSED' | 'SUCCEEDED' | 'FAILED' | 'NOT_STARTED' | 'NOT_APPLICABLE': Output only. Component's upgrade state.
  - `createTime` string, google-datetime: Output only. Output Only. Creation time of this resource.
  - `description` string: Output only. Output Only. The description of the upgrade. This is used to provide additional information about the private cloud upgrade, such as the upgrade's purpose, the changes included in the upgrade, or any other relevant information about the upgrade.
  - `endTime` string, google-datetime: Output only. Output Only. End time of the upgrade.
  - `estimatedDuration` string, google-duration: Output only. Output Only. The estimated total duration of the upgrade. This information can be used to plan or schedule upgrades to minimize disruptions. Please note that the estimated duration is only an estimate. The actual upgrade duration may vary.
  - `etag` string: The etag for the upgrade resource. If this is provided on update, it must match the server's etag.
  - `name` string: Output only. Identifier. The resource name of the private cloud `Upgrade`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/upgrades/my-upgrade`
  - `schedule` Schedule: Schedule for the upgrade.
    - `constraints` Constraints: Constraints to be applied while editing a schedule. These constraints ensure that `Upgrade` specific requirements are met.
      - `disallowedIntervals` WeeklyTimeInterval[]: Output only. Output Only. A list of intervals in which maintenance windows are not allowed. Any time window that overlaps with any of these intervals will be considered invalid.
        - `endDay` 'DAY_OF_WEEK_UNSPECIFIED' | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY': Output only. The day on which the interval ends. Can be same as start day.
        - `endTime` TimeOfDay: Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
          - `hours` integer: Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
          - `minutes` integer: Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
          - `nanos` integer: Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
          - `seconds` integer: Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
        - `startDay` 'DAY_OF_WEEK_UNSPECIFIED' | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY': Output only. The day on which the interval starts.
        - `startTime` TimeOfDay: Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
          - `hours` integer: Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
          - `minutes` integer: Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
          - `nanos` integer: Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
          - `seconds` integer: Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
      - `minHoursDay` integer: Output only. Minimum number of hours must be allotted for the upgrade activities for each selected day. This is a minimum; the upgrade schedule can allot more hours for the given day.
      - `minHoursWeek` integer: Output only. The minimum number of weekly hours must be allotted for the upgrade activities. This is just a minimum; the schedule can assign more weekly hours.
      - `rescheduleDateRange` Interval: Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.
        - `endTime` string, google-datetime: Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.
        - `startTime` string, google-datetime: Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.
    - `editWindow` Interval: Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.
      - `endTime` string, google-datetime: Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.
      - `startTime` string, google-datetime: Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.
    - `lastEditor` 'EDITOR_UNSPECIFIED' | 'SYSTEM' | 'USER': Output only. Output Only. Indicates who most recently edited the upgrade schedule. The value is updated whenever the upgrade is rescheduled.
    - `startTime` string, google-datetime: Required. The scheduled start time for the upgrade.
    - `weeklyWindows` TimeWindow[]: Required. Weekly time windows for upgrade activities. The server performs upgrade activities during these time windows to minimize disruptions.
      - `dayOfWeek` 'DAY_OF_WEEK_UNSPECIFIED' | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY': Required. Day of the week for this window.
      - `duration` string, google-duration: Required. The duration of the window. The max allowed duration for any window is 24 hours.
      - `startTime` TimeOfDay: Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
        - `hours` integer: Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
        - `minutes` integer: Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
        - `nanos` integer: Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
        - `seconds` integer: Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
  - `startVersion` string: Output only. Output Only. The start version
  - `state` 'STATE_UNSPECIFIED' | 'SCHEDULED' | 'ONGOING' | 'SUCCEEDED' | 'PAUSED' | 'FAILED' | 'CANCELLING' | 'CANCELLED' | 'RESCHEDULING': Output only. The current state of the upgrade.
  - `targetVersion` string: Output only. Output Only. The target version
  - `type` 'TYPE_UNSPECIFIED' | 'VSPHERE_UPGRADE' | 'VSPHERE_PATCH' | 'WORKAROUND' | 'FIRMWARE_UPGRADE' | 'SWITCH_UPGRADE' | 'OTHER' | 'INFRASTRUCTURE_UPGRADE': Output only. Output Only. The type of upgrade.
  - `uid` string: Output only. System-generated unique identifier for the resource.
  - `updateTime` string, google-datetime: Output only. Output Only. Last update time of this resource.
  - `version` string: Output only.

## Response `200`

Successful response

- Operation: This resource represents a long-running operation that is the result of a network API call.
  - `done` boolean: If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
  - `error` Status: 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).
    - `code` integer: The status code, which should be an enum value of google.rpc.Code.
    - `details` object[]: A list of messages that carry the error details. There is a common set of message types for APIs to use.
    - `message` string: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  - `metadata` object: Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
  - `name` string: The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
  - `response` object: The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.

---

[API](https://skmtc.dev/google/apis/vmwareengine.md) - [All operations](https://skmtc.dev/google/apis/vmwareengine/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/vmwareengine/revisions/fe35a276b8e1?raw)
