public class ObjectOperationsWithAccessTokenClient
extends MindsphereAPIClient
Modifier and Type | Class and Description |
---|---|
static class |
ObjectOperationsWithAccessTokenClient.ClientBuilder |
Constructor and Description |
---|
ObjectOperationsWithAccessTokenClient(ObjectOperationsWithAccessTokenClient.ClientBuilder builder) |
Modifier and Type | Method and Description |
---|---|
AccessTokenPermissionResource |
accessTokenPermissions(AccessTokenPermissionsRequest requestObject)
Allows to give write premission on folder/path
Allows users (tenant) to give write permission on folder/path.
|
static ObjectOperationsWithAccessTokenClient.ClientBuilder |
builder() |
void |
deleteAccessTokenPermissions(DeleteAccessTokenPermissionsRequest requestObject)
Delete write permission on folder for the given id
Delete write permission on folder for the given id This API can be accessed by tenant admin only
|
AccessTokens |
generateAccessToken(GenerateAccessTokenRequest requestObject)
Generate AWS STS token
Allows users to request temporary, limited-privilege AWS credentials to get read-only or write-only access on the URI returned in the response.
|
AccessTokenPermissionResource |
getAccessTokenPermissions(GetAccessTokenPermissionsRequest requestObject)
Details of the write folder request for the given id
Details of the write folder request for the given id This API can be accessed by tenant admin, to get details of the request including for subtenants.
|
AccessTokenPermissionResources |
listAccessTokenPermissions(ListAccessTokenPermissionsRequest requestObject)
List all folders having write premission
List all folders having write permission.
|
public ObjectOperationsWithAccessTokenClient(ObjectOperationsWithAccessTokenClient.ClientBuilder builder)
public static ObjectOperationsWithAccessTokenClient.ClientBuilder builder()
public AccessTokenPermissionResource accessTokenPermissions(AccessTokenPermissionsRequest requestObject) throws MindsphereException
201 - Created.
400 - Bad request. Possible errors: <br><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>accessNotAllowedForPath</td> <td>Access not allowed for given path {path}.</td> </tr> <tr> <td>pathHasInvalidCharacters</td> <td>Characters used for values of request body property paths[].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>pathTooLong</td> <td>Path must be no longer than 1024 characters.</td> </tr> <tr> <td>noSuchSubtenant</td> <td>Provided subtenant does not belong to tenant.</td> </tr> <tr> <td>invalidPermission</td> <td>Invalid input parameter permission {permission}.</td> </tr> <tr> <td>tooManyAccessTokenPermissions </td> <td>For Tenant/Subtenant access on more than {max} prefix is not allowed.</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 AccessTokenPermissionsRequest {Parameters are writePathPayload}MindsphereException
- if an error occurs while attempting to invoke the APIpublic void deleteAccessTokenPermissions(DeleteAccessTokenPermissionsRequest requestObject) throws MindsphereException
204 - deleted
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>subtenantNotAllowed</td> <td>Only tenants can address a subtenant's resource.</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>accessTokenPermissionsNotFound </td> <td>Access Token Permissions Not Found.</td> </tr> </table>
0 - Other error with any status code and response body format.
requestObject
- - Object of type DeleteAccessTokenPermissionsRequest {Parameters are id*}MindsphereException
- if an error occurs while attempting to invoke the APIpublic AccessTokens generateAccessToken(GenerateAccessTokenRequest requestObject) throws MindsphereException
200 - STS Token (temporary access token to access S3) and AWS S3 bucket Name
400 - Bad request. Possible errors: <br><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 must be no longer than 1024 characters.</td> </tr> <tr> <td>pathHasInvalidCharacters </td> <td>Characters used for values of request body property paths[].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> <tr> <td>invalidDurationSeconds</td> <td>Input parameter durationSeconds must be between {minDurationSeconds} and {maxDurationSeconds} seconds.</td> </tr> <tr> <td>invalidPermission</td> <td>Invalid input parameter permission {permission}.</td> </tr> <tr> <td>accessTokenNotEnabled</td> <td>Access token permission {permission} is not enabled for path {path}.</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 GenerateAccessTokenRequest {Parameters are stsPayload}MindsphereException
- if an error occurs while attempting to invoke the APIpublic AccessTokenPermissionResource getAccessTokenPermissions(GetAccessTokenPermissionsRequest 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>accessTokenPermissionsNotFound </td> <td>Access Token Permissions Not Found.</td> </tr> </table>
0 - Other error with any status code and response body format.
requestObject
- - Object of type GetAccessTokenPermissionsRequest {Parameters are id*}MindsphereException
- if an error occurs while attempting to invoke the APIpublic AccessTokenPermissionResources listAccessTokenPermissions(ListAccessTokenPermissionsRequest requestObject) throws MindsphereException
200 - OK
0 - Other error with any status code and response body format.
requestObject
- - Object of type ListAccessTokenPermissionsRequest {Parameters are page,size}MindsphereException
- if an error occurs while attempting to invoke the API