Quota
in package
implements
ModelInterface, ArrayAccess, JsonSerializable
Quota Class Doc Comment
Tags
Table of Contents
Interfaces
- ModelInterface
- ArrayAccess
- JsonSerializable
Constants
- DISCRIMINATOR = null
Methods
- __construct() : mixed
- Constructor
- __toString() : string
- Gets the string presentation of the object
- attributeMap() : array<string, string>
- Array of attributes where the key is the local name, and the value is the original name
- getDeleted() : int|null
- Gets deleted
- getModelName() : string
- The original name of the model.
- getRemaining() : int|null
- Gets remaining
- getState() : string|null
- Gets state
- getters() : array<string, string>
- Array of attributes to getter functions (for serialization of requests)
- getTotal() : int|null
- Gets total
- getUsed() : int|null
- Gets used
- isNullable() : bool
- Checks if a property is nullable
- isNullableSetToNull() : bool
- Checks if a nullable property is set to null.
- jsonSerialize() : mixed
- Serializes the object to a value that can be serialized natively by json_encode().
- listInvalidProperties() : array<string|int, string>
- Show all the invalid properties with reasons.
- offsetExists() : bool
- Returns true if offset exists. False otherwise.
- offsetGet() : mixed|null
- Gets offset.
- offsetSet() : void
- Sets value based on offset.
- offsetUnset() : void
- Unsets offset.
- openAPIFormats() : array<string, string>
- Array of property to format mappings. Used for (de)serialization
- openAPITypes() : array<string, string>
- Array of property to type mappings. Used for (de)serialization
- setDeleted() : $this
- Sets deleted
- setRemaining() : $this
- Sets remaining
- setState() : $this
- Sets state
- setters() : array<string, string>
- Array of attributes to setter functions (for deserialization of responses)
- setTotal() : $this
- Sets total
- setUsed() : $this
- Sets used
- toHeaderValue() : string
- Gets a header-safe presentation of the object
- valid() : bool
- Validate all the properties in the model return true if all passed
Constants
DISCRIMINATOR
public
mixed
DISCRIMINATOR
= null
Methods
__construct()
Constructor
public
__construct([array<string|int, mixed> $data = null ]) : mixed
Parameters
- $data : array<string|int, mixed> = null
-
Associated array of property values initializing the model
__toString()
Gets the string presentation of the object
public
__toString() : string
Return values
stringattributeMap()
Array of attributes where the key is the local name, and the value is the original name
public
static attributeMap() : array<string, string>
Return values
array<string, string>getDeleted()
Gets deleted
public
getDeleted() : int|null
Return values
int|nullgetModelName()
The original name of the model.
public
getModelName() : string
Return values
stringgetRemaining()
Gets remaining
public
getRemaining() : int|null
Return values
int|nullgetState()
Gets state
public
getState() : string|null
Return values
string|nullgetters()
Array of attributes to getter functions (for serialization of requests)
public
static getters() : array<string, string>
Return values
array<string, string>getTotal()
Gets total
public
getTotal() : int|null
Return values
int|nullgetUsed()
Gets used
public
getUsed() : int|null
Return values
int|nullisNullable()
Checks if a property is nullable
public
static isNullable(string $property) : bool
Parameters
- $property : string
Return values
boolisNullableSetToNull()
Checks if a nullable property is set to null.
public
isNullableSetToNull(string $property) : bool
Parameters
- $property : string
Return values
booljsonSerialize()
Serializes the object to a value that can be serialized natively by json_encode().
public
jsonSerialize() : mixed
Tags
Attributes
- #[ReturnTypeWillChange]
Return values
mixed —Returns data which can be serialized by json_encode(), which is a value of any type other than a resource.
listInvalidProperties()
Show all the invalid properties with reasons.
public
listInvalidProperties() : array<string|int, string>
Return values
array<string|int, string> —invalid properties with reasons
offsetExists()
Returns true if offset exists. False otherwise.
public
offsetExists(int $offset) : bool
Parameters
- $offset : int
-
Offset
Return values
booloffsetGet()
Gets offset.
public
offsetGet(int $offset) : mixed|null
Parameters
- $offset : int
-
Offset
Attributes
- #[ReturnTypeWillChange]
Return values
mixed|nulloffsetSet()
Sets value based on offset.
public
offsetSet(int|null $offset, mixed $value) : void
Parameters
- $offset : int|null
-
Offset
- $value : mixed
-
Value to be set
offsetUnset()
Unsets offset.
public
offsetUnset(int $offset) : void
Parameters
- $offset : int
-
Offset
openAPIFormats()
Array of property to format mappings. Used for (de)serialization
public
static openAPIFormats() : array<string, string>
Return values
array<string, string>openAPITypes()
Array of property to type mappings. Used for (de)serialization
public
static openAPITypes() : array<string, string>
Return values
array<string, string>setDeleted()
Sets deleted
public
setDeleted(int|null $deleted) : $this
Parameters
- $deleted : int|null
-
Total space consumed by files in the recycle bin, in bytes. Read-only.
Return values
$thissetRemaining()
Sets remaining
public
setRemaining(int|null $remaining) : $this
Parameters
- $remaining : int|null
-
Total space remaining before reaching the quota limit, in bytes. Read-only.
Return values
$thissetState()
Sets state
public
setState(string|null $state) : $this
Parameters
- $state : string|null
-
Enumeration value that indicates the state of the storage space. Either "normal", "nearing", "critical" or "exceeded". Read-only.
Return values
$thissetters()
Array of attributes to setter functions (for deserialization of responses)
public
static setters() : array<string, string>
Return values
array<string, string>setTotal()
Sets total
public
setTotal(int|null $total) : $this
Parameters
- $total : int|null
-
Total allowed storage space, in bytes. Read-only.
Return values
$thissetUsed()
Sets used
public
setUsed(int|null $used) : $this
Parameters
- $used : int|null
-
Total space used, in bytes. Read-only.
Return values
$thistoHeaderValue()
Gets a header-safe presentation of the object
public
toHeaderValue() : string
Return values
stringvalid()
Validate all the properties in the model return true if all passed
public
valid() : bool
Return values
bool —True if all properties are valid