Class GroupsApi


  • public class GroupsApi
    extends Object
    GroupsApi class.
    • Constructor Detail

      • GroupsApi

        public GroupsApi()
        GroupsApi.
      • GroupsApi

        public GroupsApi​(ApiClient apiClient)
        GroupsApi.
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
        getApiClient Method.
        Returns:
        ApiClient
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
        setApiClient Method.
      • createGroups

        public GroupInformation createGroups​(String accountId,
                                             GroupInformation groupInformation)
                                      throws ApiException
        Creates one or more groups for the account.. Creates one or more groups for the account. Groups can be used to help manage users by associating users with a group. You can associate a group with a Permission Profile, which sets the user permissions for users in that group without having to set the `userSettings` property for each user. You are not required to set Permission Profiles for a group, but it makes it easier to manage user permissions for a large number of users. You can also use groups with template sharing to limit user access to templates.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        groupInformation - (optional)
        Returns:
        GroupInformation
        Throws:
        ApiException - if fails to make API call
      • createGroupsWithHttpInfo

        public ApiResponse<GroupInformation> createGroupsWithHttpInfo​(String accountId,
                                                                      GroupInformation groupInformation)
                                                               throws ApiException
        Creates one or more groups for the account. Creates one or more groups for the account. Groups can be used to help manage users by associating users with a group. You can associate a group with a Permission Profile, which sets the user permissions for users in that group without having to set the `userSettings` property for each user. You are not required to set Permission Profiles for a group, but it makes it easier to manage user permissions for a large number of users. You can also use groups with template sharing to limit user access to templates.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        groupInformation - (optional)
        Returns:
        GroupInformation
        Throws:
        ApiException - if fails to make API call
      • deleteBrands

        public GroupBrands deleteBrands​(String accountId,
                                        String groupId,
                                        BrandsRequest brandsRequest)
                                 throws ApiException
        Deletes brand information from the requested group.. Deletes brand information from the requested group.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        groupId - The ID of the group being accessed. (required)
        brandsRequest - (optional)
        Returns:
        GroupBrands
        Throws:
        ApiException - if fails to make API call
      • deleteBrandsWithHttpInfo

        public ApiResponse<GroupBrands> deleteBrandsWithHttpInfo​(String accountId,
                                                                 String groupId,
                                                                 BrandsRequest brandsRequest)
                                                          throws ApiException
        Deletes brand information from the requested group. Deletes brand information from the requested group.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        groupId - The ID of the group being accessed. (required)
        brandsRequest - (optional)
        Returns:
        GroupBrands
        Throws:
        ApiException - if fails to make API call
      • deleteGroupUsers

        public UsersResponse deleteGroupUsers​(String accountId,
                                              String groupId,
                                              UserInfoList userInfoList)
                                       throws ApiException
        Deletes one or more users from a gro. Deletes one or more users from a group.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        groupId - The ID of the group being accessed. (required)
        userInfoList - (optional)
        Returns:
        UsersResponse
        Throws:
        ApiException - if fails to make API call
      • deleteGroupUsersWithHttpInfo

        public ApiResponse<UsersResponse> deleteGroupUsersWithHttpInfo​(String accountId,
                                                                       String groupId,
                                                                       UserInfoList userInfoList)
                                                                throws ApiException
        Deletes one or more users from a gro Deletes one or more users from a group.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        groupId - The ID of the group being accessed. (required)
        userInfoList - (optional)
        Returns:
        UsersResponse
        Throws:
        ApiException - if fails to make API call
      • deleteGroups

        public GroupInformation deleteGroups​(String accountId,
                                             GroupInformation groupInformation)
                                      throws ApiException
        Deletes an existing user group.. Deletes an existing user group.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        groupInformation - (optional)
        Returns:
        GroupInformation
        Throws:
        ApiException - if fails to make API call
      • deleteGroupsWithHttpInfo

        public ApiResponse<GroupInformation> deleteGroupsWithHttpInfo​(String accountId,
                                                                      GroupInformation groupInformation)
                                                               throws ApiException
        Deletes an existing user group. Deletes an existing user group.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        groupInformation - (optional)
        Returns:
        GroupInformation
        Throws:
        ApiException - if fails to make API call
      • getBrands

        public GroupBrands getBrands​(String accountId,
                                     String groupId)
                              throws ApiException
        Gets group brand ID Information. . Retrieves information about the brands associated with the requested group.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        groupId - The ID of the group being accessed. (required)
        Returns:
        GroupBrands
        Throws:
        ApiException - if fails to make API call
      • getBrandsWithHttpInfo

        public ApiResponse<GroupBrands> getBrandsWithHttpInfo​(String accountId,
                                                              String groupId)
                                                       throws ApiException
        Gets group brand ID Information. Retrieves information about the brands associated with the requested group.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        groupId - The ID of the group being accessed. (required)
        Returns:
        GroupBrands
        Throws:
        ApiException - if fails to make API call
      • listGroupUsers

        public UsersResponse listGroupUsers​(String accountId,
                                            String groupId)
                                     throws ApiException
        Gets a list of users in a group.. Retrieves a list of users in a group.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        groupId - The ID of the group being accessed. (required)
        Returns:
        UsersResponse
        Throws:
        ApiException
      • listGroupUsers

        public UsersResponse listGroupUsers​(String accountId,
                                            String groupId,
                                            GroupsApi.ListGroupUsersOptions options)
                                     throws ApiException
        Gets a list of users in a group.. Retrieves a list of users in a group.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        groupId - The ID of the group being accessed. (required)
        options - for modifying the method behavior.
        Returns:
        UsersResponse
        Throws:
        ApiException - if fails to make API call
      • listGroupUsersWithHttpInfo

        public ApiResponse<UsersResponse> listGroupUsersWithHttpInfo​(String accountId,
                                                                     String groupId,
                                                                     GroupsApi.ListGroupUsersOptions options)
                                                              throws ApiException
        Gets a list of users in a group. Retrieves a list of users in a group.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        groupId - The ID of the group being accessed. (required)
        options - for modifying the method behavior.
        Returns:
        UsersResponse
        Throws:
        ApiException - if fails to make API call
      • listGroups

        public GroupInformation listGroups​(String accountId)
                                    throws ApiException
        Gets information about groups associated with the account.. Retrieves information about groups associated with the account.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        Returns:
        GroupInformation
        Throws:
        ApiException
      • listGroups

        public GroupInformation listGroups​(String accountId,
                                           GroupsApi.ListGroupsOptions options)
                                    throws ApiException
        Gets information about groups associated with the account.. Retrieves information about groups associated with the account.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        options - for modifying the method behavior.
        Returns:
        GroupInformation
        Throws:
        ApiException - if fails to make API call
      • listGroupsWithHttpInfo

        public ApiResponse<GroupInformation> listGroupsWithHttpInfo​(String accountId,
                                                                    GroupsApi.ListGroupsOptions options)
                                                             throws ApiException
        Gets information about groups associated with the account. Retrieves information about groups associated with the account.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        options - for modifying the method behavior.
        Returns:
        GroupInformation
        Throws:
        ApiException - if fails to make API call
      • updateBrands

        public GroupBrands updateBrands​(String accountId,
                                        String groupId,
                                        BrandsRequest brandsRequest)
                                 throws ApiException
        Adds group brand ID information to a group.. Adds group brand ID information to a group.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        groupId - The ID of the group being accessed. (required)
        brandsRequest - (optional)
        Returns:
        GroupBrands
        Throws:
        ApiException - if fails to make API call
      • updateBrandsWithHttpInfo

        public ApiResponse<GroupBrands> updateBrandsWithHttpInfo​(String accountId,
                                                                 String groupId,
                                                                 BrandsRequest brandsRequest)
                                                          throws ApiException
        Adds group brand ID information to a group. Adds group brand ID information to a group.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        groupId - The ID of the group being accessed. (required)
        brandsRequest - (optional)
        Returns:
        GroupBrands
        Throws:
        ApiException - if fails to make API call
      • updateGroupUsers

        public UsersResponse updateGroupUsers​(String accountId,
                                              String groupId,
                                              UserInfoList userInfoList)
                                       throws ApiException
        Adds one or more users to an existing group.. Adds one or more users to an existing group.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        groupId - The ID of the group being accessed. (required)
        userInfoList - (optional)
        Returns:
        UsersResponse
        Throws:
        ApiException - if fails to make API call
      • updateGroupUsersWithHttpInfo

        public ApiResponse<UsersResponse> updateGroupUsersWithHttpInfo​(String accountId,
                                                                       String groupId,
                                                                       UserInfoList userInfoList)
                                                                throws ApiException
        Adds one or more users to an existing group. Adds one or more users to an existing group.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        groupId - The ID of the group being accessed. (required)
        userInfoList - (optional)
        Returns:
        UsersResponse
        Throws:
        ApiException - if fails to make API call
      • updateGroups

        public GroupInformation updateGroups​(String accountId,
                                             GroupInformation groupInformation)
                                      throws ApiException
        Updates the group information for a group.. Updates the group name and modifies, or sets, the permission profile for the group.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        groupInformation - (optional)
        Returns:
        GroupInformation
        Throws:
        ApiException - if fails to make API call
      • updateGroupsWithHttpInfo

        public ApiResponse<GroupInformation> updateGroupsWithHttpInfo​(String accountId,
                                                                      GroupInformation groupInformation)
                                                               throws ApiException
        Updates the group information for a group. Updates the group name and modifies, or sets, the permission profile for the group.
        Parameters:
        accountId - The external account number (int) or account ID Guid. (required)
        groupInformation - (optional)
        Returns:
        GroupInformation
        Throws:
        ApiException - if fails to make API call