This class represents a request on a TierConfig
Static methods
staticget(id:String):TierConfigRequest
Returns:
The TierConfigRequest with the given id, or null
if it was not found.
staticlist(filters:Query):Collection<TierConfigRequest>
Lists all TierConfigRequests that match the given filters. Supported filters are:
type
(=, in)status
(=, in)id
(=, in)configuration__id
(=, in)configuration__tier_level
(=, in)configuration__account__id
(=, in)configuration__product__id
(=, in)assignee__id
(=)unassigned
(bool)configuration__account__external_uid
(=)
Returns:
A Collection of TierConfigRequests.
Constructor
Variables
activation:Activation
Activation object. This is created only if TCR has ordering parameters and seen in inquiring state of the TCR.
params:Collection<Param>
List of parameter data objects as in Asset Object. Params can be modified only in Pending state.
Methods
approveByTemplate(id:String):Bool
Changes this
TierConfigRequest status to "approved", sending the id of a Template
to render on the portal.
When processing requests within a Flow
, you should use the Flow.approveByTemplate
method instead of this one, since it finishes the flow and logs the information.
fail(reason:String):Bool
inquire():Bool
Changes the status of this
TierConfigRequest to "inquiring".
When processing requests within a Flow
, you should use the Flow.inquire
method instead of this one, since it finishes the flow and logs the information.
pend():Bool
register():TierConfigRequest
Registers a new TierConfigRequest on Connect, based on the data of this
TierConfigRequest, which should have a value at least in the following fields:
- configuration.product.id
- configuration.connection.id (not required on preview)
- configuration.marketplace.id (only available for preview)
- configuration.account.id
- configuration.parentAccount.id (optional)
- configuration.parentAccount.externalUid (optional)
- configuration.tierLevel
- configuration.params (id and value of given params)
Returns:
The new TierConfigRequest, or null
if it couldn't be created.
update(params:Collection<Param>):TierConfigRequest
Updates the TierConfigRequest in the server with the data changed in this
model.
If no parameters are specified for updating, you should reassign your request with the
object returned by this method, so the next time you call update
on the object, the SDK
knows the fields that already got updated in a previous call, like this:
request = request.update(null);
Parameters:
params | A collection of parameters to update. If |
---|
Returns:
The TierConfigRequest returned from the server, which should contain
the same data as this
TierConfigRequest, or null
if the updating fails.