public class ObjectEventSubscriptionOperationsClient
extends MindsphereAPIClient
Modifier and Type | Class and Description |
---|---|
static class |
ObjectEventSubscriptionOperationsClient.ClientBuilder |
Constructor and Description |
---|
ObjectEventSubscriptionOperationsClient(ObjectEventSubscriptionOperationsClient.ClientBuilder builder) |
Modifier and Type | Method and Description |
---|---|
static ObjectEventSubscriptionOperationsClient.ClientBuilder |
builder() |
SubscriptionResponse |
createObjectEventSubscription(CreateObjectEventSubscriptionRequest requestObject)
Create object event subscription.
|
void |
deleteObjectEventSubscription(DeleteObjectEventSubscriptionRequest requestObject)
Delete object event subscription by id.
|
SubscriptionResponse |
patchObjectEventSubscription(PatchObjectEventSubscriptionRequest requestObject)
Update object event subscription by id.
|
SubscriptionListResource |
queryObjectEventSubscriptions(QueryObjectEventSubscriptionsRequest requestObject)
List event subscriptions for the tenant or subtenant.
|
SubscriptionResponse |
retrieveObjectEventSubscription(RetrieveObjectEventSubscriptionRequest requestObject)
Read object event subscription by id.
|
public ObjectEventSubscriptionOperationsClient(ObjectEventSubscriptionOperationsClient.ClientBuilder builder)
public static ObjectEventSubscriptionOperationsClient.ClientBuilder builder()
public SubscriptionResponse createObjectEventSubscription(CreateObjectEventSubscriptionRequest requestObject) throws MindsphereException
201 - created
400 - Bad request. Possible errors: <br> <table> <colgroup> <col span=\"1\" style=\"width: 30%;\"> <col span=\"1\" style=\"width: 70%;\"> </colgroup> <tr> <th align=\"left\">Code Suffix</th> <th align=\"left\">Message (parametrized)</th> </tr> <tr> <td>destinationSyntaxIncorrect</td> <td>Destination syntax is not correct.</td> </tr> <tr> <td>maxLimitReached</td> <td>Maximum limit, 15 reached for subscriptions for the tenant/subtenant.</td> </tr> <tr> <td>pathLengthExceedError</td> <td>Path in request body property, must not be more than 500 characters long.</td> </tr> <tr> <td>pathHasInvalidCharacters</td> <td>Characters used for values of request body property path must be in the character set '[a-zA-Z0-9.!*'() _-/=]'.Spaces are not allowed at beginning or at end. Also, consecutive spaces are not allowed.</td> </tr> <tr> <td>noSuchSubtenant</td> <td>Provided subtenant does not belong to tenant.</td> </tr> </table>
403 - Forbidden. Possible errors: <br> <table> <colgroup> <col span=\"1\" style=\"width: 30%;\"> <col span=\"1\" style=\"width: 70%;\"> </colgroup> <tr> <th align=\"left\">Code Suffix</th> <th align=\"left\">Message (parametrized)</th> </tr> <tr> <td>subtenantIdNotAllowed</td> <td>Only tenants can address a subtenant's resource using subtenantId.</td> </tr> </table>
409 - Conflict. Possible errors: <br> <table> <colgroup> <col span=\"1\" style=\"width: 30%;\"> <col span=\"1\" style=\"width: 70%;\"> </colgroup> <tr> <th align=\"left\">Code Suffix</th> <th align=\"left\">Message (parametrized)</th> </tr> <tr> <td>destinationConflict</td> <td>Existing subscription with id {id} found for same destination with exact or partial path match.</td> </tr> </table>
0 - Other error with any status code and response body format.
requestObject
- - Object of type CreateObjectEventSubscriptionRequest {Parameters are subscription*}MindsphereException
- if an error occurs while attempting to invoke the APIpublic void deleteObjectEventSubscription(DeleteObjectEventSubscriptionRequest requestObject) throws MindsphereException
204 - deleted
404 - Not Found. Possible errors: <br> <table> <colgroup> <col span=\"1\" style=\"width: 30%;\"> <col span=\"1\" style=\"width: 70%;\"> </colgroup> <tr> <th align=\"left\">Code Suffix</th> <th align=\"left\">Message (parametrized)</th> </tr> <tr> <td>subscriptionNotFound</td> <td>Subscription Not Found.</td> </tr> </table>
409 - Conflict. Possible errors: <br> <table> <colgroup> <col span=\"1\" style=\"width: 30%;\"> <col span=\"1\" style=\"width: 70%;\"> </colgroup> <tr> <th align=\"left\">Code Suffix</th> <th align=\"left\">Message (parametrized)</th> </tr> <tr> <td>subsriptionConflict</td> <td>Subscription record changed in the background.</td> </tr> </table>
0 - Other error with any status code and response body format.
requestObject
- - Object of type DeleteObjectEventSubscriptionRequest {Parameters are id*,If-Match*}MindsphereException
- if an error occurs while attempting to invoke the APIpublic SubscriptionResponse patchObjectEventSubscription(PatchObjectEventSubscriptionRequest requestObject) throws MindsphereException
200 - OK
400 - Bad request. Possible errors: <br> <table> <colgroup> <col span=\"1\" style=\"width: 30%;\"> <col span=\"1\" style=\"width: 70%;\"> </colgroup> <tr> <th align=\"left\">Code Suffix</th> <th align=\"left\">Message (parametrized)</th> </tr> <tr> <td>destinationSyntaxIncorrect</td> <td>Destination syntax is not correct.</td> </tr> <tr> <td>pathLengthExceedError</td> <td>Path in request body property, must not be more than 500 characters long.</td> </tr> <tr> <td>pathHasInvalidCharacters</td> <td>Characters used for values of request body property path must be in the character set '[a-zA-Z0-9.!*'() _-/=]'.Spaces are not allowed at beginning or at end. Also, consecutive spaces are not allowed.</td> </tr> </table>
404 - Not Found. Possible errors: <br> <table> <colgroup> <col span=\"1\" style=\"width: 30%;\"> <col span=\"1\" style=\"width: 70%;\"> </colgroup> <tr> <th align=\"left\">Code Suffix</th> <th align=\"left\">Message (parametrized)</th> </tr> <tr> <td>subscriptionNotFound</td> <td>Subscription Not Found.</td> </tr> </table>
409 - Conflict. Possible errors: <br> <table> <colgroup> <col span=\"1\" style=\"width: 30%;\"> <col span=\"1\" style=\"width: 70%;\"> </colgroup> <tr> <th align=\"left\">Code Suffix</th> <th align=\"left\">Message (parametrized)</th> </tr> <tr> <td>destinationConflict</td> <td>Existing subscription with id {id} found for same destination with exact or partial path match.</td> </tr> <tr> <td>subscriptionUpdated</td> <td>A different subscription version is available.</td> </tr> </table>
0 - Other error with any status code and response body format.
requestObject
- - Object of type PatchObjectEventSubscriptionRequest {Parameters are id*,If-Match*,subscription*}MindsphereException
- if an error occurs while attempting to invoke the APIpublic SubscriptionListResource queryObjectEventSubscriptions(QueryObjectEventSubscriptionsRequest requestObject) throws MindsphereException
200 - OK
400 - Bad request. Possible errors: <br> <table> <colgroup> <col span=\"1\" style=\"width: 30%;\"> <col span=\"1\" style=\"width: 70%;\"> </colgroup> <tr> <th align=\"left\">Code Suffix</th> <th align=\"left\">Message (parametrized)</th> </tr> <tr> <td>noSuchSubtenant</td> <td>Provided subtenant does not belong to tenant.</td> </tr> </table>
403 - Forbidden. Possible errors: <br> <table> <colgroup> <col span=\"1\" style=\"width: 30%;\"> <col span=\"1\" style=\"width: 70%;\"> </colgroup> <tr> <th align=\"left\">Code Suffix</th> <th align=\"left\">Message (parametrized)</th> </tr> <tr> <td>subtenantIdNotAllowed</td> <td>Only tenants can address a subtenant's resource using subtenantId.</td> </tr> </table>
0 - Other error with any status code and response body format.
requestObject
- - Object of type QueryObjectEventSubscriptionsRequest {Parameters are page,size,filter}MindsphereException
- if an error occurs while attempting to invoke the APIpublic SubscriptionResponse retrieveObjectEventSubscription(RetrieveObjectEventSubscriptionRequest requestObject) throws MindsphereException
200 - OK
404 - Not Found. Possible errors: <br> <table> <colgroup> <col span=\"1\" style=\"width: 30%;\"> <col span=\"1\" style=\"width: 70%;\"> </colgroup> <tr> <th align=\"left\">Code Suffix</th> <th align=\"left\">Message (parametrized)</th> </tr> <tr> <td>subscriptionNotFound</td> <td>Subscription Not Found.</td> </tr> </table>
0 - Other error with any status code and response body format.
requestObject
- - Object of type RetrieveObjectEventSubscriptionRequest {Parameters are id*}MindsphereException
- if an error occurs while attempting to invoke the API