flywheel.models.legacy_usage_report
LegacyUsageReport
Bases: object
file_mbs property writable
Gets the file_mbs of this LegacyUsageReport.
File storage usage, in megabytes
Returns:
| Type | Description |
|---|---|
float | The file_mbs of this LegacyUsageReport |
gear_execution_count property writable
Gets the gear_execution_count of this LegacyUsageReport.
The number of gears executed
Returns:
| Type | Description |
|---|---|
int | The gear_execution_count of this LegacyUsageReport |
month property writable
Gets the month of this LegacyUsageReport.
The month portion of the entry date
Returns:
| Type | Description |
|---|---|
str | The month of this LegacyUsageReport |
project property writable
Gets the project of this LegacyUsageReport.
Returns:
| Type | Description |
|---|---|
LegacysUsageProjectEntry | The project of this LegacyUsageReport |
session_count property writable
Gets the session_count of this LegacyUsageReport.
The number of sessions created
Returns:
| Type | Description |
|---|---|
int | The session_count of this LegacyUsageReport |
year property writable
Gets the year of this LegacyUsageReport.
The year portion of the entry date
Returns:
| Type | Description |
|---|---|
str | The year of this LegacyUsageReport |
__contains__(key)
Checks if the given value is a key in this object
__eq__(other)
Returns true if both objects are equal
__getitem__(key)
Returns the value of key
__init__(gear_execution_count=0, file_mbs=0, session_count=0, year=None, month=None, project=None)
LegacyUsageReport - a model defined in Swagger
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
gear_execution_count | (int, optional) | The number of gears executed, defaults to 0 | 0 |
file_mbs | (float, optional) | File storage usage, in megabytes, defaults to 0 | 0 |
session_count | (int, optional) | The number of sessions created, defaults to 0 | 0 |
year | (str, optional) | The year portion of the entry date, defaults to None | None |
month | (str, optional) | The month portion of the entry date, defaults to None | None |
project | (LegacysUsageProjectEntry, optional) | , defaults to None | None |
__ne__(other)
Returns true if both objects are not equal
__repr__()
For print and pprint
__setitem__(key, value)
Sets the value of key
get(key, default=None)
Get the value of the provided json property, or default
items()
Returns the list of json property to value mapping
keys()
Returns the list of json properties in the object
positional_to_model(value) staticmethod
Converts a positional argument to a model value
return_value()
Unwraps return value from model
to_dict()
Returns the model properties as a dict
to_str()
Returns the string representation of the model
values()
Returns the list of values in the object