Constructor
# new UsageChunkResource(client) → {UsageChunkResource}
Creates a new instance of the UsageChunkResource class.
Parameters:
Name | Type | Description |
---|---|---|
client |
ConnectClient | An instance of the ConnectClient class. |
An instance of the UsageFileResource class.
Extends
Members
Methods
# async close(id, externalBillingId, externalBillingNote) → {UsageChunkResource}
Close Chunk File.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the Usage File. |
externalBillingId |
string | Id of the billing to close chunk |
externalBillingNote |
string | Note of the billing to close chunk |
An instance of the UsageChunkResource.
# async create(obj) → {object}
Create a new resource.
Parameters:
Name | Type | Description |
---|---|---|
obj |
object | The resource to create. |
- Overrides:
The created resource.
# async delete(id)
Delete a resource.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the resource to delete. |
- Overrides:
# async download(id) → {UsageChunckResource}
Download Chunk File.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the Usage File. |
An instance of the UsageChunkResource
# async fetch(url, options)
Fetch the URL and returns a response.
Parameters:
Name | Type | Description |
---|---|---|
url |
string | the URL to fetch. |
options |
object | the request options. |
- Overrides:
# async get(id) → {object}
Retrieve a resource by its unique identifier.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the resource to retrieve. |
- Overrides:
The resource.
# async regenerate(id) → {UsageChunckResource}
Regenerate Chunk File.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the Usage File. |
An instance of the UsageChunkResource
# async search(filters) → {Array}
Search for a resource.
Parameters:
Name | Type | Description |
---|---|---|
filters |
object | The query to send to the server as a RQL object. |
- Overrides:
An array of resources that match the provided filters.
# async update(id, obj) → {object}
Update a resource.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the resource to update. |
obj |
object | The eventually partial resource to update. |
- Overrides:
The updated resource.