Class Iam
- java.lang.Object
-
- com.stackone.stackone_client_java.Iam
-
public class Iam extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
async
public AsyncIam async()
Switches to the async SDK.- Returns:
- The async SDK
-
listUsers
public IamListUsersRequestBuilder listUsers()
List Users- Returns:
- The call builder
-
listUsers
public IamListUsersResponse listUsers(IamListUsersRequest request)
List Users- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listUsers
public IamListUsersResponse listUsers(IamListUsersRequest request, java.util.Optional<Options> options)
List Users- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getUser
public IamGetUserRequestBuilder getUser()
Get User- Returns:
- The call builder
-
getUser
public IamGetUserResponse getUser(IamGetUserRequest request)
Get User- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getUser
public IamGetUserResponse getUser(IamGetUserRequest request, java.util.Optional<Options> options)
Get User- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
deleteUser
public IamDeleteUserRequestBuilder deleteUser()
Delete User- Returns:
- The call builder
-
deleteUser
public IamDeleteUserResponse deleteUser(java.lang.String xAccountId, java.lang.String id)
Delete User- Parameters:
xAccountId- The account identifierid-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
deleteUser
public IamDeleteUserResponse deleteUser(java.lang.String xAccountId, java.lang.String id, java.util.Optional<Options> options)
Delete User- Parameters:
xAccountId- The account identifierid-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
updateUser
public IamUpdateUserRequestBuilder updateUser()
Update User- Returns:
- The call builder
-
updateUser
public IamUpdateUserResponse updateUser(java.lang.String xAccountId, java.lang.String id, IamUpdateUserRequestDto iamUpdateUserRequestDto)
Update User- Parameters:
xAccountId- The account identifierid-iamUpdateUserRequestDto-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
updateUser
public IamUpdateUserResponse updateUser(java.lang.String xAccountId, java.lang.String id, IamUpdateUserRequestDto iamUpdateUserRequestDto, java.util.Optional<Options> options)
Update User- Parameters:
xAccountId- The account identifierid-iamUpdateUserRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listRoles
public IamListRolesRequestBuilder listRoles()
List Roles- Returns:
- The call builder
-
listRoles
public IamListRolesResponse listRoles(IamListRolesRequest request)
List Roles- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listRoles
public IamListRolesResponse listRoles(IamListRolesRequest request, java.util.Optional<Options> options)
List Roles- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getRole
public IamGetRoleRequestBuilder getRole()
Get Role- Returns:
- The call builder
-
getRole
public IamGetRoleResponse getRole(IamGetRoleRequest request)
Get Role- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getRole
public IamGetRoleResponse getRole(IamGetRoleRequest request, java.util.Optional<Options> options)
Get Role- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listGroups
public IamListGroupsRequestBuilder listGroups()
List Groups- Returns:
- The call builder
-
listGroups
public IamListGroupsResponse listGroups(IamListGroupsRequest request)
List Groups- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listGroups
public IamListGroupsResponse listGroups(IamListGroupsRequest request, java.util.Optional<Options> options)
List Groups- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getGroup
public IamGetGroupRequestBuilder getGroup()
Get Group- Returns:
- The call builder
-
getGroup
public IamGetGroupResponse getGroup(IamGetGroupRequest request)
Get Group- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getGroup
public IamGetGroupResponse getGroup(IamGetGroupRequest request, java.util.Optional<Options> options)
Get Group- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listPolicies
public IamListPoliciesRequestBuilder listPolicies()
List Policies- Returns:
- The call builder
-
listPolicies
public IamListPoliciesResponse listPolicies(IamListPoliciesRequest request)
List Policies- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listPolicies
public IamListPoliciesResponse listPolicies(IamListPoliciesRequest request, java.util.Optional<Options> options)
List Policies- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getPolicy
public IamGetPolicyRequestBuilder getPolicy()
Get Policy- Returns:
- The call builder
-
getPolicy
public IamGetPolicyResponse getPolicy(IamGetPolicyRequest request)
Get Policy- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getPolicy
public IamGetPolicyResponse getPolicy(IamGetPolicyRequest request, java.util.Optional<Options> options)
Get Policy- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
-