public class ObjectOperationsClient
extends MindsphereAPIClient
Modifier and Type | Class and Description |
---|---|
static class |
ObjectOperationsClient.ClientBuilder |
Constructor and Description |
---|
ObjectOperationsClient(ObjectOperationsClient.ClientBuilder builder) |
Modifier and Type | Method and Description |
---|---|
static ObjectOperationsClient.ClientBuilder |
builder() |
DeleteObjectsJobResponse |
createDeleteObjectsJob(CreateDeleteObjectsJobRequest requestObject)
Delete multiple objects in bulk.
|
void |
deleteObject(DeleteObjectRequest requestObject)
delete an object.
|
DeleteObjectsJobList |
getAllDeleteObjectsJob(GetAllDeleteObjectsJobRequest requestObject)
Fetch details of all the Delete Objects Jobs.
|
DeleteObjectsJobResponse |
getDeleteObjectsJob(GetDeleteObjectsJobRequest requestObject)
Fetch status and details of Delete Objects Job.
|
DeleteObjectsJobErrorDetailsResponse |
getDeleteObjectsJobErrors(GetDeleteObjectsJobErrorsRequest requestObject)
Fetch errors of Delete Objects Job.
|
ObjectListResponse |
queryObjects(QueryObjectsRequest requestObject)
Query objects.
|
public ObjectOperationsClient(ObjectOperationsClient.ClientBuilder builder)
public static ObjectOperationsClient.ClientBuilder builder()
public DeleteObjectsJobResponse createDeleteObjectsJob(CreateDeleteObjectsJobRequest requestObject) throws MindsphereException
202 - Accepted
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>pathTooLong</td> <td>Path '{path}' must be no longer than 1024 characters.</td> </tr> <tr> <td>pathInvalid</td> <td>Provided path '{path}' is invalid.</td> </tr> <tr> <td>pathDuplicate</td> <td>Provided path '{path}' is duplicate.</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>
0 - Other error with any status code and response body format.
requestObject
- - Object of type CreateDeleteObjectsJobRequest {Parameters are DeleteObjectsJob*}MindsphereException
- if an error occurs while attempting to invoke the APIpublic void deleteObject(DeleteObjectRequest requestObject) throws MindsphereException
204 - deleted
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>parameterPathTooLong</td> <td>Parameter complete path, which is, the default path {defaultpath} and input path must be no longer than 1024 characters.</td> </tr> <tr> <td>parameterPathInvalid</td> <td>Provided parameter path is invalid.</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>
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>objectNotFoundError</td> <td>Object not found.</td> </tr> </table>
0 - Other error with any status code and response body format.
requestObject
- - Object of type DeleteObjectRequest {Parameters are path*,subtenantId}MindsphereException
- if an error occurs while attempting to invoke the APIpublic DeleteObjectsJobList getAllDeleteObjectsJob(GetAllDeleteObjectsJobRequest requestObject) throws MindsphereException
200 - List of Delete Objects Jobs.
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> <tr> <td>invalidPageSize</td> <td>Page size cannot exceed {maxPageSize}.</td> </tr> <tr> <td>invalidStatus</td> <td>Provided job status is not valid.</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 GetAllDeleteObjectsJobRequest {Parameters are page,size,filter}MindsphereException
- if an error occurs while attempting to invoke the APIpublic DeleteObjectsJobResponse getDeleteObjectsJob(GetDeleteObjectsJobRequest requestObject) throws MindsphereException
200 - List of folders and objects.
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>
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>jobNotFound</td> <td>Requested job not found.</td> </tr> </table>
0 - Other error with any status code and response body format.
requestObject
- - Object of type GetDeleteObjectsJobRequest {Parameters are id*}MindsphereException
- if an error occurs while attempting to invoke the APIpublic DeleteObjectsJobErrorDetailsResponse getDeleteObjectsJobErrors(GetDeleteObjectsJobErrorsRequest requestObject) throws MindsphereException
200 - Status of Delete Objects Job and list of objects for which delete failed..
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> <tr> <td>invalidJobStatus</td> <td>Provided Job doesn't have status as COMPLETED_WITH_ERRORS.</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>
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>jobNotFound</td> <td>Requested job not found.</td> </tr> </table>
0 - Other error with any status code and response body format.
requestObject
- - Object of type GetDeleteObjectsJobErrorsRequest {Parameters are id*}MindsphereException
- if an error occurs while attempting to invoke the APIpublic ObjectListResponse queryObjects(QueryObjectsRequest requestObject) throws MindsphereException
200 - List of folders and objects.
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>parameterPathTooLong</td> <td>Parameter complete path, which is, the default path {defaultpath} and input path must be no longer than 1024 characters.</td> </tr> <tr> <td>parameterPathInvalid</td> <td>Provided parameter path is invalid.</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>
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>pathNotFound</td> <td>Requested path not found.</td> </tr> </table>
0 - Other error with any status code and response body format.
requestObject
- - Object of type QueryObjectsRequest {Parameters are path,subtenantId,pageToken}MindsphereException
- if an error occurs while attempting to invoke the API