- Resource: Rollout
- RolloutState
- RolloutStats
- Aggregate
- RolloutControl
- RunRolloutActionParams
- RolloutAction
- Methods
Resource: Rollout
Represents a single rollout execution and its results
JSON representation |
---|
{ "name": string, "release": string, "startTime": string, "endTime": string, "state": enum ( |
Fields | |
---|---|
name |
Identifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/rollout/{rolloutId}" |
release |
Optional. Immutable. Name of the Release that gets rolled out to target Units. Required if no other type of release is specified. |
startTime |
Optional. Output only. The time when the rollout started executing. Will be empty if the rollout hasn't started yet. 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: |
endTime |
Optional. Output only. The time when the rollout finished execution (regardless of success, failure, or cancellation). Will be empty if the rollout hasn't finished yet. Once set, the rollout is in terminal state and all the results are final. 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: |
state |
Output only. Current state of the rollout. |
stateMessage |
Output only. Human readable message indicating details about the last state transition. |
stateTransitionTime |
Optional. Output only. The time when the rollout transitioned into its current state. 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: |
rootRollout |
Optional. Output only. The root rollout that this rollout is stemming from. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/rollouts/{rolloutId}" |
parentRollout |
Optional. Output only. The direct parent rollout that this rollout is stemming from. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/rollouts/{rolloutId}" |
rolloutOrchestrationStrategy |
Optional. The strategy used for executing this Rollout. This strategy will override whatever strategy is specified in the RolloutType. If not specified on creation, the strategy from RolloutType will be used. There are two supported values strategies which are used to control - "Google.Cloud.Simple.AllAtOnce" - "Google.Cloud.Simple.OneLocationAtATime" A rollout with one of these simple strategies will rollout across all locations defined in the targeted UnitKind's Saas Locations. |
unitFilter |
Optional. CEL(https://github.com/google/cel-spec) formatted filter string against Unit. The filter will be applied to determine the eligible unit population. This filter can only reduce, but not expand the scope of the rollout. If not provided, the unitFilter from the RolloutType will be used. |
rolloutKind |
Optional. Immutable. Name of the RolloutKind this rollout is stemming from and adhering to. |
stats |
Optional. Output only. Details about the progress of the rollout. |
control |
Optional. Requested change to the execution of this rollout. Default RolloutControl.action is ROLLOUT_ACTION_RUN meaning the rollout will be executed to completion while progressing through all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING -> FAILED). Requests can only be made when the Rollout is in a non-terminal state. |
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: |
RolloutState
The current state of the rollout.
Enums | |
---|---|
ROLLOUT_STATE_UNSPECIFIED |
Unspecified state. |
ROLLOUT_STATE_RUNNING |
Rollout is in progress. |
ROLLOUT_STATE_PAUSED |
Rollout has been paused. |
ROLLOUT_STATE_SUCCEEDED |
Rollout completed successfully. |
ROLLOUT_STATE_FAILED |
Rollout has failed. |
ROLLOUT_STATE_CANCELLED |
Rollout has been canceled. |
ROLLOUT_STATE_WAITING |
Rollout is waiting for some condition to be met before starting. |
ROLLOUT_STATE_CANCELLING |
Rollout is being canceled. |
ROLLOUT_STATE_RESUMING |
Rollout is being resumed. |
ROLLOUT_STATE_PAUSING |
Rollout is being paused. |
RolloutStats
RolloutStats contains information about the progress of a rollout.
JSON representation |
---|
{
"operationsByState": [
{
object ( |
Fields | |
---|---|
operationsByState[] |
Output only. A breakdown of the progress of operations triggered by the rollout. Provides a count of Operations by their state. This can be used to determine the number of units which have been updated, or are scheduled to be updated. There will be at most one entry per group. Possible values for operation groups are: - "SCHEDULED" - "PENDING" - "RUNNING" - "SUCCEEDED" - "FAILED" - "CANCELLED" |
Aggregate
Represents the aggregation of a set of population of like records by a certain group. For example, a collection of unit counts can be aggregated and grouped by their state.
JSON representation |
---|
{ "group": string, "count": integer } |
Fields | |
---|---|
group |
Required. Group by which to aggregate. |
count |
Required. Number of records in the group. |
RolloutControl
RolloutControl provides a way to request a change to the execution of a Rollout by pausing or canceling it.
JSON representation |
---|
{ "action": enum ( |
Fields | |
---|---|
action |
Required. Action to be performed on the Rollout. The default behavior is to run the rollout until it naturally reaches a terminal state. |
Union field action_params . Setting for the action. The setting must match the action e.g.: action=RUN may only set run_params or omit all parameters. It is an error to set a setting that is not applicable to the action. action_params can be only one of the following: |
|
runParams |
Optional. Parameters for the RUN action. It is an error to specify this if the RolloutAction is not set to RUN. By default, the rollout will retry failed operations when resumed. |
RunRolloutActionParams
Parameters for the RUN action controlling the behavior of the rollout when it is resumed from a PAUSED state.
JSON representation |
---|
{ "retryFailedOperations": boolean } |
Fields | |
---|---|
retryFailedOperations |
Required. If true, the rollout will retry failed operations when resumed. This is applicable only the current state of the Rollout is PAUSED and the requested action is RUN. |
RolloutAction
RolloutAction indicates the action to be performed on the Rollout.
Enums | |
---|---|
ROLLOUT_ACTION_UNSPECIFIED |
Unspecified action, will be treated as RUN by default. |
ROLLOUT_ACTION_RUN |
Run the Rollout until it naturally reaches a terminal state. A rollout requested to run will progress through all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING -> FAILED). If retriable errors are encountered during the rollout, the rollout will paused by default and can be resumed by re-requesting this RUN action. |
ROLLOUT_ACTION_PAUSE |
Pause the Rollout until it is resumed (i.e. RUN is requested). |
ROLLOUT_ACTION_CANCEL |
Cancel the Rollout permanently. |
Methods |
|
---|---|
|
Create a new rollout. |
|
Delete a single rollout. |
|
Retrieve a single rollout. |
|
Retrieve a collection of rollouts. |
|
Update a single rollout. |