Skip to main content

upgrades

Creates, updates, deletes, gets or lists a upgrades resource.

Overview

Nameupgrades
TypeResource
Idgoogle.vmwareengine.upgrades

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput 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
componentUpgradesarrayOutput only. Output Only. The list of component upgrades.
createTimestring (google-datetime)Output only. Output Only. Creation time of this resource.
descriptionstringOutput 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.
endTimestring (google-datetime)Output only. Output Only. End time of the upgrade.
estimatedDurationstring (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.
etagstringThe etag for the upgrade resource. If this is provided on update, it must match the server's etag.
scheduleobjectSchedule details for the upgrade. (id: Schedule)
startVersionstringOutput only. Output Only. The start version
statestringOutput only. The current state of the upgrade.
targetVersionstringOutput only. Output Only. The target version
typestringOutput only. Output Only. The type of upgrade.
uidstringOutput only. System-generated unique identifier for the resource.
updateTimestring (google-datetime)Output only. Output Only. Last update time of this resource.
versionstringOutput only.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, privateCloudsId, upgradesIdRetrieves a private cloud Upgrade resource by its resource name.
listselectprojectsId, locationsId, privateCloudsIdpageSize, pageToken, filter, orderByLists past, ongoing and upcoming Upgrades for the given private cloud.
patchupdateprojectsId, locationsId, privateCloudsId, upgradesIdupdateMask, requestIdUpdate 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
privateCloudsIdstring
projectsIdstring
upgradesIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Retrieves a private cloud Upgrade resource by its resource name.

SELECT
name,
componentUpgrades,
createTime,
description,
endTime,
estimatedDuration,
etag,
schedule,
startVersion,
state,
targetVersion,
type,
uid,
updateTime,
version
FROM google.vmwareengine.upgrades
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND privateCloudsId = '{{ privateCloudsId }}' -- required
AND upgradesId = '{{ upgradesId }}' -- required;

UPDATE examples

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.

UPDATE google.vmwareengine.upgrades
SET
data__schedule = '{{ schedule }}',
data__etag = '{{ etag }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND privateCloudsId = '{{ privateCloudsId }}' --required
AND upgradesId = '{{ upgradesId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;