The Directory class exposes specialized methods to help
developers to access the directory (assets, tier configs, tier accounts).
Kind: global class
Category: Operations
ArrayArrayArrayobjectArrayobjectArrayobjectobjectobjectobjectCreates an instance of the Directory class.
Returns: Directory – An instance of the Directory class.
| Param | Type | Description |
|---|---|---|
| client | ConnectClient |
An instance of the ConnectClient class. |
ArrayReturns a list of Asset objects that match the provided
(optional) query.
Kind: instance method of Directory
Returns: Array – An array of Asset object optionally matching the provided query.
| Param | Type | Description |
|---|---|---|
| query | object |
The optional query to filter results. |
ArrayReturns a list of TierConfiguration objects that match the provided
(optional) query.
Kind: instance method of Directory
Returns: Array – An array of TierConfiguration object optionally
matching the provided query.
| Param | Type | Description |
|---|---|---|
| query | object |
The optional query to filter results. |
ArrayReturns a list of TierAccount objects that match the provided
(optional) query.
Kind: instance method of Directory
Returns: Array – An array of TierAccount object optionally matching the provided query.
| Param | Type | Description |
|---|---|---|
| query | object |
The optional query to filter results. |
objectRetrieve a TierAccount by its id.
Kind: instance method of Directory
Returns: object – The TierAccount object.
| Param | Type | Description |
|---|---|---|
| id | string |
The unique identifier of the TierAccount object. |
ArrayReturns a list of Asset objects based on the productId and
the Asset externalId.
Kind: instance method of Directory
Returns: Array – An array of Asset objects.
| Param | Type | Description |
|---|---|---|
| productId | string |
The unique id of the Product related to this Asset. |
| externalId | string |
The external identifier of the Asset. |
objectCreates a new TierAccountRequest
Kind: instance method of Directory
Returns: object – The created TierAccountRequest object.
| Param | Type | Description |
|---|---|---|
| request | object |
The TierAccountRequest object. |
ArrayReturns a list of TierAccountRequest objects that match the provided
filters.
Kind: instance method of Directory
Returns: Array – An array of TierAccountRequest objects
that match the provided filters.
| Param | Type | Description |
|---|---|---|
| query | object |
A RQL query. |
objectRetrieve the TierAccountRequest object identified by its id.
Kind: instance method of Directory
Returns: object – The TierAccountRequest object.
| Param | Type | Description |
|---|---|---|
| id | string |
The unique identifier of the TierAccountRequest object. |
objectAccept the TierAccountRequest object identified by its id.
Kind: instance method of Directory
Returns: object – The TierAccountRequest object.
| Param | Type | Description |
|---|---|---|
| id | string |
The unique identifier of the TierAccountRequest object. |
objectIgnore the TierAccountRequest object identified by its id.
Kind: instance method of Directory
Returns: object – The TierAccountRequest object.
| Param | Type | Description |
|---|---|---|
| id | string |
The unique identifier of the TierAccountRequest object. |
| reason | string |
The reason for which this request has been ignored. |
objectReturns the specified version of the TierAccount object identified by its id.
Kind: instance method of Directory
Returns: object – The TierAccount object.
| Param | Type | Description |
|---|---|---|
| id | string |
The unique identifier of the TierAccount object. |
| version | string |
The version to be retrieved. |