import { Service } from './Service'; import { FindUserByNameByRolesParams, FindUserByNameParams, GetPolicyListParams, GetUsersAndRolesParams, PolicyDc, RemovePolicyParams, SearchedUserDc, SetPoliciesPayload, UserOrRoleDc, WorkspaceLimitsDc } from './data-contracts'; /** * @title Spatial Processing Gateway API * @version 1.5.1.0 * @baseUrl /sp */ export declare class SecurityService extends Service { /** * @description This method requires superuser permission. * * @tags SecurityService * @name SetPolicies * @operationId SecurityServiceController_SetPolicies * @summary Adds the given policies to the server policy list. If a policy with the same type and user role already exists, it replaces the existing policy with the new one. * @request POST:/bulk/security/policies * @secure * @response `200` OK */ setPolicies(data: SetPoliciesPayload): Promise; /** * No description * * @tags SecurityService * @name FindUserByNameByRoles * @operationId SecurityServiceController_FindUserByNameByRoles * @summary Get users list with given roles list. * @request GET:/security/findUsersWithRoles * @secure * @response `200` OK */ findUserByNameByRoles(query: FindUserByNameByRolesParams): Promise; /** * No description * * @tags SecurityService * @name GetUsersAndRoles * @operationId SecurityServiceController_GetUsersAndRoles * @summary Get users and roles list by filter. * @request GET:/security/usersandroles * @secure * @response `200` OK */ getUsersAndRoles(query: GetUsersAndRolesParams): Promise; /** * No description * * @tags SecurityService * @name FindUserByName * @operationId SecurityServiceController_FindUserByName * @summary Returns the list of users found by username. * @request GET:/security/users * @secure * @response `200` OK */ findUserByName(query: FindUserByNameParams): Promise; /** * @description This method requires superuser permission. * * @tags SecurityService * @name GetPolicyList * @operationId SecurityServiceController_GetPolicyList * @summary Returns the list of server authorization policies of the given type. * @request GET:/security/policies * @secure * @response `200` OK */ getPolicyList(query: GetPolicyListParams): Promise; /** * @description This method requires superuser permission. * * @tags SecurityService * @name RemovePolicy * @operationId SecurityServiceController_RemovePolicy * @summary Removes the policy of the given type with the given role. If no such policy is found, nothing is done, and OK response is returned. * @request DELETE:/security/policies * @secure * @response `200` OK */ removePolicy(query: RemovePolicyParams): Promise; /** * @description This method requires superuser permission. * * @tags SecurityService * @name SetPolicy * @operationId SecurityServiceController_SetPolicy * @summary Adds the given policy to the server policy list. If a policy with the same type and user role already exists, it replaces the existing policy with the new one. * @request POST:/security/policies * @secure * @response `200` OK */ setPolicy(data: PolicyDc): Promise; /** * No description * * @tags SecurityService * @name CheckLimitsForUser * @operationId SecurityServiceController_CheckLimitsForUser * @summary Get limits of workspace. * @request GET:/security/limits/user * @secure * @response `200` OK */ checkLimitsForUser(): Promise; /** * No description * * @tags SecurityService * @name CheckLimitsForUser1 * @operationId SecurityServiceController_CheckLimitsForUser_1 * @summary Get limits of workspace. * @request GET:/security/limits/user/{userName} * @secure * @response `200` OK */ checkLimitsForUser1(userName: string): Promise; /** * No description * * @tags SecurityService * @name CheckLimitsForRole * @operationId SecurityServiceController_CheckLimitsForRole * @summary Get limits of workspace. * @request GET:/security/limits/role/{roleName} * @secure * @response `200` OK */ checkLimitsForRole(roleName: string | null): Promise; /** * No description * * @tags SecurityService * @name GetDefaultLimits * @operationId SecurityServiceController_GetDefaultLimits * @summary Get default limits of workspace. * @request GET:/security/limits/default * @secure * @response `200` OK */ getDefaultLimits(): Promise; }