Constructor
# new ProductResource(client) → {ProductResource}
Creates a new instance of the ProductResource class.
Parameters:
Name | Type | Description |
---|---|---|
client |
ConnectClient | An instance of the ConnectClient class. |
An instance of the ProductResource class.
Extends
Members
Methods
# actions(id) → {ProductActionResource}
Returns an instance of the ProductActionResource for a Product.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the Product. |
An instance of the ProductActionResource for the product.
# configurations(id) → {ProductConfigurationResource}
Returns an instance of the ProductConfigurationResource for a ProductConfiguration.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the Product. |
An instance of the ProductConfigurationResource for the product.
# connections(id) → {ProductConnectionsResource}
Returns an instance of the ProductConnectionsResource for a Product.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the Product. |
An instance of the ProductParameterResource for the product.
# 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 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 getConnections(id) → {Array}
Returns the list of Connection objects configured for the Product.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the Product. |
The list of Connection objects.
# async getItems(id) → {Array}
Returns the list of ProductItem objects configured for the Product.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the Product. |
The list of ProductItem objects.
# async getParameters(id) → {Array}
Returns the list of Parameter objects configured for the Product.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the Product. |
- Deprecated:
- since version 20 and will be removed in version 22.
The list of Parameter objects.
# async getTemplates(id) → {Array}
Returns the list of Template objects configured for the Product.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the Product. |
The list of Template objects.
# parameters(id) → {ProductParameterResource}
Returns an instance of the ProductParameterResource for a Product.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the Product. |
An instance of the ProductParameterResource for the product.
# 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.
# usageRules(id) → {ProductUsageRuleResource}
Returns an instance of the ProductUsageRulesResource for a Product.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the Product. |
An instance of the ProductUsageRuleResource for the product.
# versions(id) → {ProductVersionResource}
Returns an instance of the ProductVersionResource for a Product.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the Product. |
An instance of the ProductVersionResource for the product.