unit_operations
Creates, updates, deletes, gets or lists an unit_operations resource.
Overview
| Name | unit_operations |
| Type | Resource |
| Id | google.saasservicemgmt.unit_operations |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/unitOperations/{unitOperation}" |
annotations | object | Optional. 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 |
cancel | boolean | Optional. When true, attempt to cancel the operation. Cancellation may fail if the operation is already executing. (Optional) |
conditions | array | Optional. Output only. A set of conditions which indicate the various conditions this resource can have. |
createTime | string (google-datetime) | Output only. The timestamp when the resource was created. |
deleteTime | string (google-datetime) | Output only. The timestamp when the resource was marked for deletion (deletion is an asynchronous operation). |
deprovision | object | Optional. Deprovision operation. (id: Deprovision) |
engineState | string | Optional. Output only. The engine state for on-going deployment engine operation(s). This field is opaque for external usage. |
errorCategory | string | Optional. Output only. UnitOperationErrorCategory describe the error category. (UNIT_OPERATION_ERROR_CATEGORY_UNSPECIFIED, NOT_APPLICABLE, FATAL, RETRIABLE, IGNORABLE, STANDARD) |
etag | string | Output 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. |
flagUpdate | object | Optional. Flag update operation. (id: FlagUpdate) |
labels | object | Optional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels. |
parentUnitOperation | string | Optional. Reference to parent resource: UnitOperation. If an operation needs to create other operations as part of its workflow, each of the child operations should have this field set to the parent. This can be used for tracing. (Optional) |
provision | object | Optional. Provision operation. (id: Provision) |
rollout | string | Optional. Specifies which rollout created this Unit Operation. This cannot be modified and is used for filtering purposes only. If a dependent unit and unit operation are created as part of another unit operation, they will use the same rolloutId. |
schedule | object | Optional. When to schedule this operation. (id: Schedule) |
state | string | Optional. Output only. UnitOperationState describes the current state of the unit operation. (UNIT_OPERATION_STATE_UNKNOWN, UNIT_OPERATION_STATE_PENDING, UNIT_OPERATION_STATE_SCHEDULED, UNIT_OPERATION_STATE_RUNNING, UNIT_OPERATION_STATE_SUCCEEDED, UNIT_OPERATION_STATE_FAILED, UNIT_OPERATION_STATE_CANCELLED) |
uid | string | Output 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. |
unit | string | Required. Immutable. The Unit a given UnitOperation will act upon. |
updateTime | string (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. |
upgrade | object | Optional. Upgrade operation. (id: Upgrade) |
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/unitOperations/{unitOperation}" |
annotations | object | Optional. 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 |
cancel | boolean | Optional. When true, attempt to cancel the operation. Cancellation may fail if the operation is already executing. (Optional) |
conditions | array | Optional. Output only. A set of conditions which indicate the various conditions this resource can have. |
createTime | string (google-datetime) | Output only. The timestamp when the resource was created. |
deleteTime | string (google-datetime) | Output only. The timestamp when the resource was marked for deletion (deletion is an asynchronous operation). |
deprovision | object | Optional. Deprovision operation. (id: Deprovision) |
engineState | string | Optional. Output only. The engine state for on-going deployment engine operation(s). This field is opaque for external usage. |
errorCategory | string | Optional. Output only. UnitOperationErrorCategory describe the error category. (UNIT_OPERATION_ERROR_CATEGORY_UNSPECIFIED, NOT_APPLICABLE, FATAL, RETRIABLE, IGNORABLE, STANDARD) |
etag | string | Output 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. |
flagUpdate | object | Optional. Flag update operation. (id: FlagUpdate) |
labels | object | Optional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels. |
parentUnitOperation | string | Optional. Reference to parent resource: UnitOperation. If an operation needs to create other operations as part of its workflow, each of the child operations should have this field set to the parent. This can be used for tracing. (Optional) |
provision | object | Optional. Provision operation. (id: Provision) |
rollout | string | Optional. Specifies which rollout created this Unit Operation. This cannot be modified and is used for filtering purposes only. If a dependent unit and unit operation are created as part of another unit operation, they will use the same rolloutId. |
schedule | object | Optional. When to schedule this operation. (id: Schedule) |
state | string | Optional. Output only. UnitOperationState describes the current state of the unit operation. (UNIT_OPERATION_STATE_UNKNOWN, UNIT_OPERATION_STATE_PENDING, UNIT_OPERATION_STATE_SCHEDULED, UNIT_OPERATION_STATE_RUNNING, UNIT_OPERATION_STATE_SUCCEEDED, UNIT_OPERATION_STATE_FAILED, UNIT_OPERATION_STATE_CANCELLED) |
uid | string | Output 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. |
unit | string | Required. Immutable. The Unit a given UnitOperation will act upon. |
updateTime | string (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. |
upgrade | object | Optional. Upgrade operation. (id: Upgrade) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, unitOperationsId | Retrieve a single unit operation. | |
list | select | projectsId, locationsId | pageToken, pageSize, orderBy, filter | Retrieve a collection of unit operations. |
create | insert | projectsId, locationsId | unitOperationId, validateOnly, requestId | Create a new unit operation. |
patch | update | projectsId, locationsId, unitOperationsId | updateMask, validateOnly, requestId | Update a single unit operation. |
delete | delete | projectsId, locationsId, unitOperationsId | etag, validateOnly, requestId | Delete a single unit operation. |
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.
| Name | Datatype | Description |
|---|---|---|
locationsId | string | |
projectsId | string | |
unitOperationsId | string | |
etag | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
requestId | string | |
unitOperationId | string | |
updateMask | string (google-fieldmask) | |
validateOnly | boolean |
SELECT examples
- get
- list
Retrieve a single unit operation.
SELECT
name,
annotations,
cancel,
conditions,
createTime,
deleteTime,
deprovision,
engineState,
errorCategory,
etag,
flagUpdate,
labels,
parentUnitOperation,
provision,
rollout,
schedule,
state,
uid,
unit,
updateTime,
upgrade
FROM google.saasservicemgmt.unit_operations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND unitOperationsId = '{{ unitOperationsId }}' -- required
;
Retrieve a collection of unit operations.
SELECT
name,
annotations,
cancel,
conditions,
createTime,
deleteTime,
deprovision,
engineState,
errorCategory,
etag,
flagUpdate,
labels,
parentUnitOperation,
provision,
rollout,
schedule,
state,
uid,
unit,
updateTime,
upgrade
FROM google.saasservicemgmt.unit_operations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageToken = '{{ pageToken }}'
AND pageSize = '{{ pageSize }}'
AND orderBy = '{{ orderBy }}'
AND filter = '{{ filter }}'
;
INSERT examples
- create
- Manifest
Create a new unit operation.
INSERT INTO google.saasservicemgmt.unit_operations (
data__annotations,
data__rollout,
data__cancel,
data__parentUnitOperation,
data__schedule,
data__deprovision,
data__labels,
data__name,
data__provision,
data__upgrade,
data__unit,
data__flagUpdate,
projectsId,
locationsId,
unitOperationId,
validateOnly,
requestId
)
SELECT
'{{ annotations }}',
'{{ rollout }}',
{{ cancel }},
'{{ parentUnitOperation }}',
'{{ schedule }}',
'{{ deprovision }}',
'{{ labels }}',
'{{ name }}',
'{{ provision }}',
'{{ upgrade }}',
'{{ unit }}',
'{{ flagUpdate }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ unitOperationId }}',
'{{ validateOnly }}',
'{{ requestId }}'
RETURNING
name,
annotations,
cancel,
conditions,
createTime,
deleteTime,
deprovision,
engineState,
errorCategory,
etag,
flagUpdate,
labels,
parentUnitOperation,
provision,
rollout,
schedule,
state,
uid,
unit,
updateTime,
upgrade
;
# Description fields are for documentation purposes
- name: unit_operations
props:
- name: projectsId
value: "{{ projectsId }}"
description: Required parameter for the unit_operations resource.
- name: locationsId
value: "{{ locationsId }}"
description: Required parameter for the unit_operations resource.
- name: annotations
value: "{{ annotations }}"
description: |
Optional. 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
- name: rollout
value: "{{ rollout }}"
description: |
Optional. Specifies which rollout created this Unit Operation. This cannot be modified and is used for filtering purposes only. If a dependent unit and unit operation are created as part of another unit operation, they will use the same rolloutId.
- name: cancel
value: {{ cancel }}
description: |
Optional. When true, attempt to cancel the operation. Cancellation may fail if the operation is already executing. (Optional)
- name: parentUnitOperation
value: "{{ parentUnitOperation }}"
description: |
Optional. Reference to parent resource: UnitOperation. If an operation needs to create other operations as part of its workflow, each of the child operations should have this field set to the parent. This can be used for tracing. (Optional)
- name: schedule
description: |
Optional. When to schedule this operation.
value:
startTime: "{{ startTime }}"
- name: deprovision
value: "{{ deprovision }}"
description: |
Optional. Deprovision operation.
- name: labels
value: "{{ labels }}"
description: |
Optional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels.
- name: name
value: "{{ name }}"
description: |
Identifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/unitOperations/{unitOperation}"
- name: provision
description: |
Optional. Provision operation.
value:
release: "{{ release }}"
inputVariables:
- variable: "{{ variable }}"
type: "{{ type }}"
value: "{{ value }}"
- name: upgrade
description: |
Optional. Upgrade operation.
value:
inputVariables:
- variable: "{{ variable }}"
type: "{{ type }}"
value: "{{ value }}"
release: "{{ release }}"
- name: unit
value: "{{ unit }}"
description: |
Required. Immutable. The Unit a given UnitOperation will act upon.
- name: flagUpdate
description: |
Optional. Flag update operation.
value:
flagRelease: "{{ flagRelease }}"
- name: unitOperationId
value: "{{ unitOperationId }}"
- name: validateOnly
value: {{ validateOnly }}
- name: requestId
value: "{{ requestId }}"
UPDATE examples
- patch
Update a single unit operation.
UPDATE google.saasservicemgmt.unit_operations
SET
data__annotations = '{{ annotations }}',
data__rollout = '{{ rollout }}',
data__cancel = {{ cancel }},
data__parentUnitOperation = '{{ parentUnitOperation }}',
data__schedule = '{{ schedule }}',
data__deprovision = '{{ deprovision }}',
data__labels = '{{ labels }}',
data__name = '{{ name }}',
data__provision = '{{ provision }}',
data__upgrade = '{{ upgrade }}',
data__unit = '{{ unit }}',
data__flagUpdate = '{{ flagUpdate }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND unitOperationsId = '{{ unitOperationsId }}' --required
AND updateMask = '{{ updateMask}}'
AND validateOnly = {{ validateOnly}}
AND requestId = '{{ requestId}}'
RETURNING
name,
annotations,
cancel,
conditions,
createTime,
deleteTime,
deprovision,
engineState,
errorCategory,
etag,
flagUpdate,
labels,
parentUnitOperation,
provision,
rollout,
schedule,
state,
uid,
unit,
updateTime,
upgrade;
DELETE examples
- delete
Delete a single unit operation.
DELETE FROM google.saasservicemgmt.unit_operations
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND unitOperationsId = '{{ unitOperationsId }}' --required
AND etag = '{{ etag }}'
AND validateOnly = '{{ validateOnly }}'
AND requestId = '{{ requestId }}'
;