Reference documentation and code samples for the Kubernetes Engine V1 API class Google::Cloud::Container::V1::NodePool::PlacementPolicy.
PlacementPolicy defines the placement policy used by the node pool.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#policy_name
def policy_name() -> ::String
Returns
- (::String) — If set, refers to the name of a custom resource policy supplied by the user. The resource policy must be in the same project and region as the node pool. If not found, InvalidArgument error is returned.
#policy_name=
def policy_name=(value) -> ::String
Parameter
- value (::String) — If set, refers to the name of a custom resource policy supplied by the user. The resource policy must be in the same project and region as the node pool. If not found, InvalidArgument error is returned.
Returns
- (::String) — If set, refers to the name of a custom resource policy supplied by the user. The resource policy must be in the same project and region as the node pool. If not found, InvalidArgument error is returned.
#type
def type() -> ::Google::Cloud::Container::V1::NodePool::PlacementPolicy::Type
Returns
- (::Google::Cloud::Container::V1::NodePool::PlacementPolicy::Type) — The type of placement.
#type=
def type=(value) -> ::Google::Cloud::Container::V1::NodePool::PlacementPolicy::Type
Parameter
- value (::Google::Cloud::Container::V1::NodePool::PlacementPolicy::Type) — The type of placement.
Returns
- (::Google::Cloud::Container::V1::NodePool::PlacementPolicy::Type) — The type of placement.