Skip to main content

releases

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

Overview

Namereleases
TypeResource
Idgoogle.saasservicemgmt.releases

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/releases/{release}"
annotationsobjectOptional. Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations
blueprintobjectOptional. Blueprints are OCI Images that contain all of the artifacts needed to provision a unit. (id: Blueprint)
createTimestring (google-datetime)Output only. The timestamp when the resource was created.
etagstringOutput only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource being written.
inputVariableDefaultsarrayOptional. Mapping of input variables to default values. Maximum 100
inputVariablesarrayOptional. Output only. List of input variables declared on the blueprint and can be present with their values on the unit spec
labelsobjectOptional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels.
outputVariablesarrayOptional. Output only. List of output variables declared on the blueprint and can be present with their values on the unit status
releaseRequirementsobjectOptional. Set of requirements to be fulfilled on the Unit when using this Release. (id: ReleaseRequirements)
uidstringOutput only. The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
unitKindstringRequired. Immutable. Reference to the UnitKind this Release corresponds to (required and immutable once created).
updateTimestring (google-datetime)Output only. The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, releasesIdRetrieve a single release.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByRetrieve a collection of releases.
createinsertprojectsId, locationsIdreleaseId, validateOnly, requestIdCreate a new release.
patchupdateprojectsId, locationsId, releasesIdvalidateOnly, requestId, updateMaskUpdate a single release.
deletedeleteprojectsId, locationsId, releasesIdetag, validateOnly, requestIdDelete a single release.

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
projectsIdstring
releasesIdstring
etagstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
releaseIdstring
requestIdstring
updateMaskstring (google-fieldmask)
validateOnlyboolean

SELECT examples

Retrieve a single release.

SELECT
name,
annotations,
blueprint,
createTime,
etag,
inputVariableDefaults,
inputVariables,
labels,
outputVariables,
releaseRequirements,
uid,
unitKind,
updateTime
FROM google.saasservicemgmt.releases
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND releasesId = '{{ releasesId }}' -- required;

INSERT examples

Create a new release.

INSERT INTO google.saasservicemgmt.releases (
data__name,
data__unitKind,
data__blueprint,
data__releaseRequirements,
data__inputVariableDefaults,
data__labels,
data__annotations,
projectsId,
locationsId,
releaseId,
validateOnly,
requestId
)
SELECT
'{{ name }}',
'{{ unitKind }}',
'{{ blueprint }}',
'{{ releaseRequirements }}',
'{{ inputVariableDefaults }}',
'{{ labels }}',
'{{ annotations }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ releaseId }}',
'{{ validateOnly }}',
'{{ requestId }}'
RETURNING
name,
annotations,
blueprint,
createTime,
etag,
inputVariableDefaults,
inputVariables,
labels,
outputVariables,
releaseRequirements,
uid,
unitKind,
updateTime
;

UPDATE examples

Update a single release.

UPDATE google.saasservicemgmt.releases
SET
data__name = '{{ name }}',
data__unitKind = '{{ unitKind }}',
data__blueprint = '{{ blueprint }}',
data__releaseRequirements = '{{ releaseRequirements }}',
data__inputVariableDefaults = '{{ inputVariableDefaults }}',
data__labels = '{{ labels }}',
data__annotations = '{{ annotations }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND releasesId = '{{ releasesId }}' --required
AND validateOnly = {{ validateOnly}}
AND requestId = '{{ requestId}}'
AND updateMask = '{{ updateMask}}'
RETURNING
name,
annotations,
blueprint,
createTime,
etag,
inputVariableDefaults,
inputVariables,
labels,
outputVariables,
releaseRequirements,
uid,
unitKind,
updateTime;

DELETE examples

Delete a single release.

DELETE FROM google.saasservicemgmt.releases
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND releasesId = '{{ releasesId }}' --required
AND etag = '{{ etag }}'
AND validateOnly = '{{ validateOnly }}'
AND requestId = '{{ requestId }}';