class documentation
class PreemptibleSpec(pb_classes.Message): (source)
Constructor: PreemptibleSpec(initial_message, on_preemption, priority)
Undocumented
| Class | |
Undocumented |
| Method | __dir__ |
Undocumented |
| Method | __init__ |
Undocumented |
| Method | on |
Undocumented |
| Method | priority |
Undocumented |
| Constant | __PB2 |
Undocumented |
| Constant | __PY |
Undocumented |
| Class Variable | __mask |
Undocumented |
| Property | on |
Specifies what happens when the VM is preempted. The only supported value is STOP: Compute stops the VM without deleting or restarting it. |
| Property | priority |
The value can range from 1 to 5, where 5 indicates the highest priority. Affects the order in which Compute tries to preempt VMs, but does not guarantee the exact order. |
Inherited from Message:
| Class Method | get |
Undocumented |
| Class Method | is |
Undocumented |
| Class Method | is |
Undocumented |
| Method | __repr__ |
Undocumented |
| Method | check |
Undocumented |
| Method | get |
Undocumented |
| Method | get |
Undocumented |
| Method | is |
Undocumented |
| Method | set |
Undocumented |
| Method | which |
Undocumented |
| Class Variable | __PB2 |
Undocumented |
| Instance Variable | __pb2 |
Undocumented |
| Method | _clear |
Undocumented |
| Method | _get |
Undocumented |
| Method | _set |
Undocumented |
| Class Variable | __credentials |
Undocumented |
| Class Variable | __default |
Undocumented |
| Class Variable | __sensitive |
Undocumented |
| Instance Variable | __recorded |
Undocumented |
def __init__(self, initial_message:
message_1.Message | None = None, *, on_preemption: PreemptibleSpec.PreemptionPolicy | instance_pb2.PreemptibleSpec.PreemptionPolicy | None | unset.UnsetType = unset.Unset, priority: builtins.int | None | unset.UnsetType = unset.Unset):
(source)
¶
Undocumented
@on_preemption.setter
def on_preemption(self, value:
def on_preemption(self, value:
PreemptibleSpec.PreemptionPolicy | instance_pb2.PreemptibleSpec.PreemptionPolicy | None):
(source)
¶
Undocumented
Undocumented
| Value |
|
Undocumented
| Value |
|