- Resource: Unit
- UnitDependency
- MaintenanceSettings
- UnitState
- UnitCondition
- Status
- Type
- ManagementMode
- SystemManagedState
- Methods
Resource: Unit
A unit of deployment that has its lifecycle via a CRUD API using an actuation engine under the hood (e.g. based on Terraform, or a custom implementation provided by a service producer). A building block of a SaaS Tenant.
JSON representation |
---|
{ "name": string, "unitKind": string, "release": string, "tenant": string, "ongoingOperations": [ string ], "pendingOperations": [ string ], "scheduledOperations": [ string ], "dependents": [ { object ( |
Fields | |
---|---|
name |
Identifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/units/{unit}" |
unitKind |
Optional. Reference to the UnitKind this Unit belongs to. Immutable once set. |
release |
Optional. Output only. The current Release object for this Unit. |
tenant |
Optional. Reference to the Saas Tenant resource this unit belongs to. This for example informs the maintenance policies to use for scheduling future updates on a unit. (optional and immutable once created) |
ongoingOperations[] |
Optional. Output only. List of concurrent UnitOperations that are operating on this Unit. |
pendingOperations[] |
Optional. Output only. List of pending (wait to be executed) UnitOperations for this unit. |
scheduledOperations[] |
Optional. Output only. List of scheduled UnitOperations for this unit. |
dependents[] |
Optional. Output only. List of Units that depend on this unit. Unit can only be deprovisioned if this list is empty. Maximum 1000. |
dependencies[] |
Optional. Output only. Set of dependencies for this unit. Maximum 10. |
inputVariables[] |
Optional. Output only. Indicates the current input variables deployed by the unit |
outputVariables[] |
Optional. Output only. Set of key/value pairs corresponding to output variables from execution of actuation templates. The variables are declared in actuation configs (in Terraform for example) and the values are fetched and returned by the actuation engine upon completion of execution. |
maintenance |
Optional. Captures requested directives for performing future maintenance on the unit. This includes a request for the unit to skip maintenance for a period of time and remain pinned to its current release as well as controls for postponing maintenance scheduled in future. |
state |
Optional. Output only. Current lifecycle state of the resource (e.g. if it's being created or ready to use). |
conditions[] |
Optional. Output only. A set of conditions which indicate the various conditions this resource can have. |
managementMode |
Optional. Immutable. Indicates whether the Unit life cycle is controlled by the user or by the system. Immutable once created. |
systemManagedState |
Optional. Output only. Indicates the system managed state of the unit. |
systemCleanupAt |
Optional. Output only. If set, indicates the time when the system will start removing the unit. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
labels |
Optional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels. An object containing a list of |
annotations |
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 An object containing a list of |
uid |
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. |
etag |
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. |
createTime |
Output only. The timestamp when the resource was created. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
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. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
UnitDependency
Set of dependencies for this unit. Maximum 10.
JSON representation |
---|
{ "alias": string, "unit": string } |
Fields | |
---|---|
alias |
Output only. Alias for the name of the dependency. |
unit |
Output only. A reference to the Unit object. |
MaintenanceSettings
Captures requested directives for performing future maintenance on the unit. This includes a request for the unit to skip maintenance for a period of time and remain pinned to its current release as well as controls for postponing maintenance scheduled in future.
JSON representation |
---|
{ "pinnedUntilTime": string } |
Fields | |
---|---|
pinnedUntilTime |
Optional. If present, it fixes the release on the unit until the given time; i.e. changes to the release field will be rejected. Rollouts should and will also respect this by not requesting an upgrade in the first place. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
UnitState
UnitState annotates what is the current state of the unit itself.
Enums | |
---|---|
UNIT_STATE_UNSPECIFIED |
Unspecified state. |
UNIT_STATE_NOT_PROVISIONED |
Unit is not provisioned. |
UNIT_STATE_PROVISIONING |
Unit is being provisioned. |
UNIT_STATE_UPDATING |
Unit is being updated. This is typically when a unit is being upgraded to a new release or some of the input variables on the Unit is being changed. Certain kinds of updates may cause the Unit to become unusable while the update is in progress. |
UNIT_STATE_DEPROVISIONING |
Unit is being deleted. |
UNIT_STATE_READY |
Unit has been provisioned and is ready for use |
UNIT_STATE_ERROR |
Unit has error, when it is not ready and some error operation |
UnitCondition
UnitCondition describes the status of an Unit. UnitCondition is individual components that contribute to an overall state.
JSON representation |
---|
{ "status": enum ( |
Fields | |
---|---|
status |
Required. Status of the condition. |
type |
Required. Type of the condition. |
lastTransitionTime |
Required. Last time the condition transited from one status to another. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
message |
Required. Human readable message indicating details about the last transition. |
reason |
Required. Brief reason for the condition's last transition. |
Status
Enumeration of condition statuses.
Enums | |
---|---|
STATUS_UNSPECIFIED |
Condition status is unspecified. |
STATUS_UNKNOWN |
Condition is unknown. |
STATUS_TRUE |
Condition is true. |
STATUS_FALSE |
Condition is false. |
Type
Enumeration of condition types.
Enums | |
---|---|
TYPE_UNSPECIFIED |
Condition type is unspecified. |
TYPE_READY |
Condition type is ready. |
TYPE_UPDATING |
Condition type is updating. |
TYPE_PROVISIONED |
Condition type is provisioned. |
TYPE_OPERATION_ERROR |
Condition type is operationError. True when the last unit operation fails with a non-ignorable error. |
ManagementMode
ManagementMode describes who is responsible for the management of the unit.
Enums | |
---|---|
MANAGEMENT_MODE_UNSPECIFIED |
|
MANAGEMENT_MODE_USER |
Unit's lifecycle is managed by the user. |
MANAGEMENT_MODE_SYSTEM |
The system will decide when to deprovision and delete the unit. User still can deprovision or delete the unit manually. |
SystemManagedState
Enums | |
---|---|
SYSTEM_MANAGED_STATE_UNSPECIFIED |
|
SYSTEM_MANAGED_STATE_ACTIVE |
Unit has dependents attached. |
SYSTEM_MANAGED_STATE_INACTIVE |
Unit has no dependencies attached, but attachment is allowed. |
SYSTEM_MANAGED_STATE_DECOMMISSIONED |
Unit has no dependencies attached, and attachment is not allowed. |
Methods |
|
---|---|
|
Create a new unit. |
|
Delete a single unit. |
|
Retrieve a single unit. |
|
Retrieve a collection of units. |
|
Update a single unit. |