UsagesResource class

The usages endpoints with client already applied.

Constructors

UsagesResource(ExsitedClient client)
Bind the resource to a client; normally reached via client.usages.
const

Properties

client → ExsitedClient
The client every call below is made through.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createUsage(Object payload, {bool? raiseOnError, String? responseFormat}) → Future<ApiResponse<Usages>>
POST /api/{api_version}/usages
deleteUsage(Object usageId, {bool? raiseOnError, String? responseFormat}) → Future<ApiResponse<Object?>>
DELETE /api/{api_version}/usages/{usage_id}
getUsage(Object usageId, {Map<String, Object?>? queryParams, bool? raiseOnError, String? responseFormat}) → Future<ApiResponse<Usage>>
GET /api/{api_version}/usages/{usage_id}
getUsages({Map<String, Object?>? queryParams, bool? raiseOnError, String? responseFormat}) → Future<ApiResponse<UsageList>>
GET /api/{api_version}/usages
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replaceUsage(Object usageId, Object payload, {bool? raiseOnError, String? responseFormat}) → Future<ApiResponse<UsageUpdated>>
PUT /api/{api_version}/usages/{usage_id}
toString() → String
A string representation of this object.
inherited
updateUsage(Object usageId, Object payload, {bool? raiseOnError, String? responseFormat}) → Future<ApiResponse<UsageUpdated>>
PATCH /api/{api_version}/usages/{usage_id}

Operators

operator ==(Object other) → bool
The equality operator.
inherited