class documentation
class QuotaAllowanceStatus(pb_classes.Message): (source)
Constructor: QuotaAllowanceStatus(initial_message, state, usage, service, ...)
Undocumented
| Class | |
No class docstring; 4/6 constants documented |
| Class | |
No class docstring; 4/6 constants documented |
| Method | __dir__ |
Undocumented |
| Method | __init__ |
Create a wrapper around a protobuf message instance. |
| Method | description |
Undocumented |
| Method | service |
Undocumented |
| Method | service |
Undocumented |
| Method | state |
Undocumented |
| Method | unit |
Undocumented |
| Method | usage |
Undocumented |
| Method | usage |
Undocumented |
| Method | usage |
Undocumented |
| Constant | __PB2 |
Undocumented |
| Constant | __PY |
Undocumented |
| Class Variable | __mask |
Undocumented |
| Property | description |
Human-readable description of the quota. Example: "Total RAM across VMs". |
| Property | service |
Service in which the quota is allocated. Example: "mk8s". |
| Property | service |
Human-readable name of the service managing the quota. Example: "Managed Kubernetes®". |
| Property | state |
Current state of the quota. |
| Property | unit |
Quota unit. Example: "byte". |
| Property | usage |
Current quota usage. |
| Property | usage |
Current quota usage as a percentage. Values range from 0.0 to 1.0, representing 0% to 100%. Values can exceed 1.0 if usage exceeds the limit. Example: "0.12". |
| Property | usage |
Current state of the quota usage. |
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: QuotaAllowanceStatus.State | quota_allowance_pb2.QuotaAllowanceStatus.State | None | unset.UnsetType = unset.Unset, usage: builtins.int | None | unset.UnsetType = unset.Unset, service: builtins.str | None | unset.UnsetType = unset.Unset, description: builtins.str | None | unset.UnsetType = unset.Unset, service_description: builtins.str | None | unset.UnsetType = unset.Unset, unit: builtins.str | None | unset.UnsetType = unset.Unset, usage_percentage: builtins.str | None | unset.UnsetType = unset.Unset, usage_state: QuotaAllowanceStatus.UsageState | quota_allowance_pb2.QuotaAllowanceStatus.UsageState | None | unset.UnsetType = unset.Unset):
(source)
¶
Create a wrapper around a protobuf message instance.
| Raises | |
AttributeError | If the wrapper is missing required class metadata. |
@state.setter
def state(self, value:
def state(self, value:
QuotaAllowanceStatus.State | quota_allowance_pb2.QuotaAllowanceStatus.State | None):
(source)
¶
Undocumented
@usage_state.setter
def usage_state(self, value:
def usage_state(self, value:
QuotaAllowanceStatus.UsageState | quota_allowance_pb2.QuotaAllowanceStatus.UsageState | None):
(source)
¶
Undocumented
Undocumented
| Value |
|
Undocumented
| Value |
|
Current quota usage as a percentage. Values range from 0.0 to 1.0, representing 0% to 100%. Values can exceed 1.0 if usage exceeds the limit. Example: "0.12".