class documentation
class Availability(pb_classes.Message): (source)
Constructor: ResourceAdviceStatus.Availability(initial_message, data_state, available, limit, ...)
Shows the available resources.
| Class | |
Shows if data could be trusted. |
| Method | __dir__ |
Undocumented |
| Method | __init__ |
Create a wrapper around a protobuf message instance. |
| Method | available |
Undocumented |
| Method | data |
Undocumented |
| Method | effective |
Undocumented |
| Method | limit |
Undocumented |
| Constant | __PB2 |
Undocumented |
| Constant | __PY |
Undocumented |
| Class Variable | __mask |
Undocumented |
| Property | available |
Current units that can be allocated immediately (clipped by quota). |
| Property | data |
Reflects relevance of the data. |
| Property | effective |
The timestamp of the actual infrastructure measurement. |
| Property | limit |
The user's maximum quota limit for this resource type. |
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, *, data_state: ResourceAdviceStatus.Availability.DataState | resource_advice_pb2.ResourceAdviceStatus.Availability.DataState | None | unset.UnsetType = unset.Unset, available: builtins.int | None | unset.UnsetType = unset.Unset, limit: builtins.int | None | unset.UnsetType = unset.Unset, effective_at: timestamp_pb2.Timestamp | datetime.datetime | None | unset.UnsetType = unset.Unset):
(source)
¶
Create a wrapper around a protobuf message instance.
| Raises | |
AttributeError | If the wrapper is missing required class metadata. |
@data_state.setter
def data_state(self, value:
def data_state(self, value:
ResourceAdviceStatus.Availability.DataState | resource_advice_pb2.ResourceAdviceStatus.Availability.DataState | None):
(source)
¶
Undocumented
@effective_at.setter
def effective_at(self, value:
def effective_at(self, value:
timestamp_pb2.Timestamp | datetime.datetime | None):
(source)
¶
Undocumented
Undocumented
| Value |
|
Undocumented
| Value |
|