Reference documentation and code samples for the SaaS Runtime V1BETA1 API class Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.
UnitOperation encapsulates the intent of changing/interacting with the service component represented by the specific Unit. Multiple UnitOperations can be created (requested) and scheduled in the future, however only one will be allowed to execute at a time (that can change in the future for non-mutating operations).
UnitOperations allow different actors interacting with the same unit to focus only on the change they have requested.
This is a base object that contains the common fields in all unit operations. Next: 19
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#annotations
def annotations() -> ::Google::Protobuf::Map{::String => ::String}
-
(::Google::Protobuf::Map{::String => ::String}) — 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
#annotations=
def annotations=(value) -> ::Google::Protobuf::Map{::String => ::String}
-
value (::Google::Protobuf::Map{::String => ::String}) — 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
-
(::Google::Protobuf::Map{::String => ::String}) — 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
def cancel() -> ::Boolean
- (::Boolean) — Optional. When true, attempt to cancel the operation. Cancellation may fail if the operation is already executing. (Optional)
#cancel=
def cancel=(value) -> ::Boolean
- value (::Boolean) — Optional. When true, attempt to cancel the operation. Cancellation may fail if the operation is already executing. (Optional)
- (::Boolean) — Optional. When true, attempt to cancel the operation. Cancellation may fail if the operation is already executing. (Optional)
#conditions
def conditions() -> ::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperationCondition>
- (::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperationCondition>) — Optional. Output only. A set of conditions which indicate the various conditions this resource can have.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The timestamp when the resource was created.
#deprovision
def deprovision() -> ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Deprovision
-
(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Deprovision) — Note: The following fields are mutually exclusive:
deprovision
,provision
,upgrade
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#deprovision=
def deprovision=(value) -> ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Deprovision
-
value (::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Deprovision) — Note: The following fields are mutually exclusive:
deprovision
,provision
,upgrade
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Deprovision) — Note: The following fields are mutually exclusive:
deprovision
,provision
,upgrade
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#engine_state
def engine_state() -> ::String
- (::String) — Optional. Output only. The engine state for on-going deployment engine operation(s). This field is opaque for external usage.
#error_category
def error_category() -> ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperationErrorCategory
- (::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperationErrorCategory) — Optional. Output only. UnitOperationErrorCategory describe the error category.
#etag
def etag() -> ::String
- (::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.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — Optional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — Optional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels.
- (::Google::Protobuf::Map{::String => ::String}) — Optional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels.
#name
def name() -> ::String
-
(::String) — Identifier. The resource name (full URI of the resource) following the
standard naming scheme:
"projects/{project}/locations/{location}/unitOperations/{unitOperation}"
#name=
def name=(value) -> ::String
-
value (::String) — Identifier. The resource name (full URI of the resource) following the
standard naming scheme:
"projects/{project}/locations/{location}/unitOperations/{unitOperation}"
-
(::String) — Identifier. The resource name (full URI of the resource) following the
standard naming scheme:
"projects/{project}/locations/{location}/unitOperations/{unitOperation}"
#parent_unit_operation
def parent_unit_operation() -> ::String
- (::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)
#parent_unit_operation=
def parent_unit_operation=(value) -> ::String
- value (::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)
- (::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
def provision() -> ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Provision
-
(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Provision) — Note: The following fields are mutually exclusive:
provision
,upgrade
,deprovision
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#provision=
def provision=(value) -> ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Provision
-
value (::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Provision) — Note: The following fields are mutually exclusive:
provision
,upgrade
,deprovision
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Provision) — Note: The following fields are mutually exclusive:
provision
,upgrade
,deprovision
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#rollout
def rollout() -> ::String
- (::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.
#rollout=
def rollout=(value) -> ::String
- value (::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.
- (::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
def schedule() -> ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Schedule
- (::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Schedule) — Optional. When to schedule this operation.
#schedule=
def schedule=(value) -> ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Schedule
- value (::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Schedule) — Optional. When to schedule this operation.
- (::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Schedule) — Optional. When to schedule this operation.
#state
def state() -> ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation::UnitOperationState
- (::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation::UnitOperationState) — Optional. Output only. UnitOperationState describes the current state of the unit operation.
#uid
def uid() -> ::String
- (::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
def unit() -> ::String
- (::String) — Required. Immutable. The Unit a given UnitOperation will act upon.
#unit=
def unit=(value) -> ::String
- value (::String) — Required. Immutable. The Unit a given UnitOperation will act upon.
- (::String) — Required. Immutable. The Unit a given UnitOperation will act upon.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — 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
def upgrade() -> ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Upgrade
-
(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Upgrade) — Note: The following fields are mutually exclusive:
upgrade
,provision
,deprovision
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#upgrade=
def upgrade=(value) -> ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Upgrade
-
value (::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Upgrade) — Note: The following fields are mutually exclusive:
upgrade
,provision
,deprovision
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Upgrade) — Note: The following fields are mutually exclusive:
upgrade
,provision
,deprovision
. If a field in that set is populated, all other fields in the set will automatically be cleared.