class documentation
class DiskStatus(pb_classes.Message): (source)
Constructor: DiskStatus(initial_message, state, state_description, read_write_attachment, ...)
Undocumented
| Class | |
No class docstring; 1/1 property, 0/1 class variable, 0/2 constant, 0/3 method documented |
| Class | |
Undocumented |
| Class | |
No class docstring; 2/8 constants documented |
| Method | __dir__ |
Undocumented |
| Method | __init__ |
Create a wrapper around a protobuf message instance. |
| Method | block |
Undocumented |
| Method | lock |
Undocumented |
| Method | read |
Undocumented |
| Method | read |
Undocumented |
| Method | reconciling |
Undocumented |
| Method | size |
Undocumented |
| Method | source |
Undocumented |
| Method | source |
Undocumented |
| Method | state |
Undocumented |
| Method | state |
Undocumented |
| Constant | __PB2 |
Undocumented |
| Constant | __PY |
Undocumented |
| Class Variable | __mask |
Undocumented |
| Property | block |
Undocumented |
| Property | lock |
Indicates resources that prevent the disk from being attached as read-write. |
| Property | read |
Undocumented |
| Property | read |
Current read-write owner (instance ID). May refer to an instance in any state, including stopped (this semantics is preserved for backward compatibility). Reassigned on disk detach, instance deletion, or ownership transfer... |
| Property | reconciling |
Indicates whether there is an ongoing operation |
| Property | size |
Undocumented |
| Property | source |
Undocumented |
| Property | source |
Undocumented |
| Property | state |
Undocumented |
| Property | state |
Undocumented |
Inherited from Message:
| Class Method | get |
Return the protobuf descriptor for this message class. |
| Class Method | is |
Return True if the field contains credentials. |
| Class Method | is |
Return True if the field is marked as sensitive. |
| Method | __repr__ |
Return a human-readable representation of the message, sanitizing sensitive fields. |
| Method | check |
Check explicit presence for a field in the protobuf message. |
| Method | get |
Build a reset mask for a full update of this message. |
| Method | get |
Return the tracked reset mask. |
| Method | is |
Return True if a field equals its default value. |
| Method | set |
Replace the tracked reset mask. |
| Method | which |
Return the set field name for a given oneof. |
| Instance Variable | __PB2 |
Protobuf message class associated with this wrapper. |
| Instance Variable | __pb2 |
Underlying protobuf message instance. |
| Method | _clear |
Clear a field and record it in the reset mask. |
| Method | _get |
Return a field value with optional wrapping and presence handling. |
| Method | _set |
Set a field value and update the reset mask. |
| Class Variable | __credentials |
Undocumented |
| Class Variable | __default |
Undocumented |
| Class Variable | __sensitive |
Undocumented |
| Instance Variable | __recorded |
Mask tracking fields cleared or set to default. |
def __init__(self, initial_message:
message_1.Message | None = None, *, state: DiskStatus.State | disk_pb2.DiskStatus.State | None | unset.UnsetType = unset.Unset, state_description: builtins.str | None | unset.UnsetType = unset.Unset, read_write_attachment: builtins.str | None | unset.UnsetType = unset.Unset, read_only_attachments: abc.Iterable[ builtins.str] | None | unset.UnsetType = unset.Unset, source_image_id: builtins.str | None | unset.UnsetType = unset.Unset, size_bytes: builtins.int | None | unset.UnsetType = unset.Unset, reconciling: builtins.bool | None | unset.UnsetType = unset.Unset, block_size_bytes: builtins.int | None | unset.UnsetType = unset.Unset, source_image_cpu_architecture: DiskStatus.SourceImageCPUArchitecture | disk_pb2.DiskStatus.SourceImageCPUArchitecture | None | unset.UnsetType = unset.Unset, lock_state: DiskStatus.LockState | disk_pb2.DiskStatus.LockState | None | unset.UnsetType = unset.Unset):
(source)
¶
Create a wrapper around a protobuf message instance.
| Raises | |
AttributeError | If the wrapper is missing required class metadata. |
@lock_state.setter
def lock_state(self, value:
def lock_state(self, value:
DiskStatus.LockState | disk_pb2.DiskStatus.LockState | None):
(source)
¶
Undocumented
@read_only_attachments.setter
def read_only_attachments(self, value:
def read_only_attachments(self, value:
abc.Iterable[ builtins.str] | None):
(source)
¶
Undocumented
@read_write_attachment.setter
def read_write_attachment(self, value:
def read_write_attachment(self, value:
builtins.str | None):
(source)
¶
Undocumented
@source_image_cpu_architecture.setter
def source_image_cpu_architecture(self, value:
def source_image_cpu_architecture(self, value:
DiskStatus.SourceImageCPUArchitecture | disk_pb2.DiskStatus.SourceImageCPUArchitecture | None):
(source)
¶
Undocumented
@state.setter
def state(self, value:
def state(self, value:
DiskStatus.State | disk_pb2.DiskStatus.State | None):
(source)
¶
Undocumented
Undocumented
| Value |
|
Undocumented
| Value |
|
Current read-write owner (instance ID). May refer to an instance in any state, including stopped (this semantics is preserved for backward compatibility). Reassigned on disk detach, instance deletion, or ownership transfer. Ownership transfer occurs when this disk is explicitly attached to another instance or when a VM with this disk attached starts while the current owner is stopped.
@builtins.property
source_image_cpu_architecture:
source_image_cpu_architecture:
DiskStatus.SourceImageCPUArchitecture =
(source)
¶
Undocumented