Reference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::InstanceSplit.
Holds a single instance split entry for the Worker. Allocations can be done to a specific Revision name, or pointing to the latest Ready Revision.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#percent
def percent() -> ::Integer
Returns
- (::Integer) — Specifies percent of the instance split to this Revision. This defaults to zero if unspecified.
#percent=
def percent=(value) -> ::Integer
Parameter
- value (::Integer) — Specifies percent of the instance split to this Revision. This defaults to zero if unspecified.
Returns
- (::Integer) — Specifies percent of the instance split to this Revision. This defaults to zero if unspecified.
#revision
def revision() -> ::String
Returns
- (::String) — Revision to which to assign this portion of instances, if split allocation is by revision.
#revision=
def revision=(value) -> ::String
Parameter
- value (::String) — Revision to which to assign this portion of instances, if split allocation is by revision.
Returns
- (::String) — Revision to which to assign this portion of instances, if split allocation is by revision.
#type
def type() -> ::Google::Cloud::Run::V2::InstanceSplitAllocationType
Returns
- (::Google::Cloud::Run::V2::InstanceSplitAllocationType) — The allocation type for this instance split.
#type=
def type=(value) -> ::Google::Cloud::Run::V2::InstanceSplitAllocationType
Parameter
- value (::Google::Cloud::Run::V2::InstanceSplitAllocationType) — The allocation type for this instance split.
Returns
- (::Google::Cloud::Run::V2::InstanceSplitAllocationType) — The allocation type for this instance split.