CheckmarxPythonSDK 1.6.0__py3-none-any.whl → 1.6.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. CheckmarxPythonSDK/CxOne/KeycloakAPI/AttackDetectionApi.py +65 -0
  2. CheckmarxPythonSDK/CxOne/KeycloakAPI/AuthenticationManagementApi.py +660 -0
  3. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientAttributeCertificateApi.py +130 -0
  4. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientInitialAccessApi.py +67 -0
  5. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientRegistrationPolicyApi.py +30 -0
  6. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientRoleMappingsApi.py +215 -0
  7. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientRolesApi.py +636 -0
  8. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientScopesApi.py +197 -0
  9. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientsApi.py +679 -0
  10. CheckmarxPythonSDK/CxOne/KeycloakAPI/ComponentApi.py +126 -0
  11. CheckmarxPythonSDK/CxOne/KeycloakAPI/GroupsApi.py +241 -0
  12. CheckmarxPythonSDK/CxOne/KeycloakAPI/IdentityProvidersApi.py +325 -0
  13. CheckmarxPythonSDK/CxOne/KeycloakAPI/KeyApi.py +29 -0
  14. CheckmarxPythonSDK/CxOne/KeycloakAPI/ProtocolMappersApi.py +434 -0
  15. CheckmarxPythonSDK/CxOne/KeycloakAPI/RealmsAdminApi.py +797 -0
  16. CheckmarxPythonSDK/CxOne/KeycloakAPI/RoleMapperApi.py +240 -0
  17. CheckmarxPythonSDK/CxOne/KeycloakAPI/RolesApi.py +587 -0
  18. CheckmarxPythonSDK/CxOne/KeycloakAPI/RolesByIdApi.py +207 -0
  19. CheckmarxPythonSDK/CxOne/KeycloakAPI/ScopeMappingsApi.py +662 -0
  20. CheckmarxPythonSDK/CxOne/KeycloakAPI/UsersApi.py +672 -0
  21. CheckmarxPythonSDK/CxOne/KeycloakAPI/__init__.py +20 -62
  22. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/Access.py +30 -0
  23. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/AccessToken.py +210 -191
  24. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/AddressClaimSet.py +42 -35
  25. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/AdminEventRepresentation.py +57 -0
  26. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ApplicationRepresentation.py +214 -0
  27. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ApplicationRepresentationClaims.py +62 -0
  28. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/AuthDetailsRepresentation.py +38 -0
  29. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/AuthenticationExecutionExportRepresentation.py +50 -40
  30. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/AuthenticationExecutionInfoRepresentation.py +70 -65
  31. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/AuthenticationExecutionRepresentation.py +54 -44
  32. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/AuthenticationFlowRepresentation.py +52 -40
  33. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/AuthenticatorConfigInfoRepresentation.py +39 -27
  34. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/AuthenticatorConfigRepresentation.py +30 -23
  35. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/Authorization.py +31 -0
  36. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/CertificateRepresentation.py +34 -27
  37. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClaimRepresentation.py +62 -0
  38. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientInitialAccessCreatePresentation.py +26 -19
  39. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientInitialAccessPresentation.py +42 -35
  40. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientMappingsRepresentation.py +35 -23
  41. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientPoliciesRepresentation.py +27 -15
  42. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientPolicyConditionRepresentation.py +26 -19
  43. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientPolicyExecutorRepresentation.py +26 -19
  44. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientPolicyRepresentation.py +43 -31
  45. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientProfileRepresentation.py +35 -23
  46. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientProfilesRepresentation.py +35 -19
  47. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientRepresentation.py +203 -170
  48. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientScopeRepresentation.py +47 -35
  49. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientTemplateRepresentation.py +87 -0
  50. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ComponentExportRepresentation.py +42 -35
  51. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ComponentRepresentation.py +46 -39
  52. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ComponentTypeRepresentation.py +43 -0
  53. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/Composites.py +34 -0
  54. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ConfigPropertyRepresentation.py +54 -39
  55. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/Confirmation.py +30 -0
  56. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/CredentialRepresentation.py +90 -48
  57. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/DecisionStrategy.py +22 -0
  58. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/EnforcementMode.py +22 -0
  59. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/EventRepresentation.py +58 -0
  60. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/FederatedIdentityRepresentation.py +30 -23
  61. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/GlobalRequestResult.py +26 -19
  62. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/GroupRepresentation.py +58 -43
  63. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/IDToken.py +173 -166
  64. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/IdentityProviderMapperRepresentation.py +38 -32
  65. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/IdentityProviderMapperTypeRepresentation.py +47 -0
  66. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/IdentityProviderRepresentation.py +78 -61
  67. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/InstallationAdapterConfig.py +73 -0
  68. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/KeyMetadataRepresentation.py +65 -0
  69. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/KeyStoreConfig.py +42 -36
  70. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/KeyUse.py +22 -0
  71. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/KeysMetadataRepresentation.py +31 -19
  72. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/Logic.py +22 -0
  73. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ManagementPermissionReference.py +28 -31
  74. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/MappingsRepresentation.py +31 -19
  75. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/MethodConfig.py +38 -0
  76. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/OAuthClientRepresentation.py +214 -0
  77. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/PathCacheConfig.py +30 -0
  78. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/PathConfig.py +74 -0
  79. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/PathSegment.py +30 -0
  80. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/Permission.py +34 -27
  81. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/PolicyEnforcementMode.py +22 -0
  82. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/PolicyEnforcerConfig.py +81 -0
  83. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/PolicyRepresentation.py +86 -64
  84. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ProtocolMapperEvaluationRepresentation.py +46 -0
  85. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ProtocolMapperRepresentation.py +46 -31
  86. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/PublishedRealmRepresentation.py +42 -0
  87. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/RealmEventsConfigRepresentation.py +42 -36
  88. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/RealmRepresentation.py +686 -544
  89. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/RequiredActionProviderRepresentation.py +46 -39
  90. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ResourceOwnerRepresentation.py +30 -0
  91. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ResourceRepresentation.py +78 -48
  92. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ResourceRepresentationOwner.py +30 -0
  93. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ResourceServerRepresentation.py +76 -48
  94. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/RoleRepresentation.py +57 -49
  95. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/RolesRepresentation.py +35 -19
  96. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ScopeEnforcementMode.py +22 -0
  97. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ScopeMappingRepresentation.py +38 -27
  98. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ScopeRepresentation.py +54 -35
  99. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/SocialLinkRepresentation.py +34 -0
  100. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UPAttribute.py +63 -0
  101. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UPAttributePermissions.py +30 -0
  102. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UPAttributeRequired.py +30 -0
  103. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UPAttributeSelector.py +26 -0
  104. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UPConfig.py +40 -0
  105. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UPGroup.py +38 -0
  106. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UserConsentRepresentation.py +38 -27
  107. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UserFederationMapperRepresentation.py +38 -32
  108. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UserFederationProviderRepresentation.py +50 -44
  109. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UserProfileAttributeGroupMetadata.py +38 -0
  110. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UserProfileAttributeMetadata.py +54 -0
  111. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UserProfileMetadata.py +40 -0
  112. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UserRepresentation.py +149 -106
  113. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UserSessionRepresentation.py +54 -0
  114. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/__init__.py +1 -92
  115. CheckmarxPythonSDK/CxOne/__init__.py +34 -4
  116. CheckmarxPythonSDK/CxOne/accessControlAPI.py +190 -0
  117. CheckmarxPythonSDK/CxOne/dto/AccessToken.py +195 -0
  118. CheckmarxPythonSDK/CxOne/dto/AddressClaimSet.py +39 -0
  119. CheckmarxPythonSDK/CxOne/dto/AstIdWithName.py +26 -0
  120. CheckmarxPythonSDK/CxOne/dto/AstUser.py +39 -0
  121. CheckmarxPythonSDK/CxOne/dto/AuthenticationExecutionExportRepresentation.py +44 -0
  122. CheckmarxPythonSDK/CxOne/dto/AuthenticationExecutionInfoRepresentation.py +69 -0
  123. CheckmarxPythonSDK/CxOne/dto/AuthenticationExecutionRepresentation.py +48 -0
  124. CheckmarxPythonSDK/CxOne/dto/AuthenticationFlowRepresentation.py +44 -0
  125. CheckmarxPythonSDK/CxOne/dto/AuthenticatorConfigInfoRepresentation.py +31 -0
  126. CheckmarxPythonSDK/CxOne/dto/AuthenticatorConfigRepresentation.py +27 -0
  127. CheckmarxPythonSDK/CxOne/dto/CertificateRepresentation.py +31 -0
  128. CheckmarxPythonSDK/CxOne/dto/ClientInitialAccessCreatePresentation.py +23 -0
  129. CheckmarxPythonSDK/CxOne/dto/ClientInitialAccessPresentation.py +39 -0
  130. CheckmarxPythonSDK/CxOne/dto/ClientMappingsRepresentation.py +27 -0
  131. CheckmarxPythonSDK/CxOne/dto/ClientPoliciesRepresentation.py +19 -0
  132. CheckmarxPythonSDK/CxOne/dto/ClientPolicyConditionRepresentation.py +23 -0
  133. CheckmarxPythonSDK/CxOne/dto/ClientPolicyExecutorRepresentation.py +23 -0
  134. CheckmarxPythonSDK/CxOne/dto/ClientPolicyRepresentation.py +35 -0
  135. CheckmarxPythonSDK/CxOne/dto/ClientProfileRepresentation.py +27 -0
  136. CheckmarxPythonSDK/CxOne/dto/ClientProfilesRepresentation.py +23 -0
  137. CheckmarxPythonSDK/CxOne/dto/ClientRepresentation.py +174 -0
  138. CheckmarxPythonSDK/CxOne/dto/ClientScopeRepresentation.py +39 -0
  139. CheckmarxPythonSDK/CxOne/dto/ComponentExportRepresentation.py +39 -0
  140. CheckmarxPythonSDK/CxOne/dto/ComponentRepresentation.py +43 -0
  141. CheckmarxPythonSDK/CxOne/dto/Composites.py +17 -0
  142. CheckmarxPythonSDK/CxOne/dto/ConfigPropertyRepresentation.py +43 -0
  143. CheckmarxPythonSDK/CxOne/dto/CredentialRepresentation.py +68 -0
  144. CheckmarxPythonSDK/CxOne/dto/FederatedIdentityRepresentation.py +23 -0
  145. CheckmarxPythonSDK/CxOne/dto/GlobalRequestResult.py +23 -0
  146. CheckmarxPythonSDK/CxOne/dto/IDToken.py +170 -0
  147. CheckmarxPythonSDK/CxOne/dto/IdentityProviderMapperRepresentation.py +36 -0
  148. CheckmarxPythonSDK/CxOne/dto/IdentityProviderRepresentation.py +65 -0
  149. CheckmarxPythonSDK/CxOne/dto/KeyStoreConfig.py +40 -0
  150. CheckmarxPythonSDK/CxOne/dto/KeysMetadataRepresentation.py +23 -0
  151. CheckmarxPythonSDK/CxOne/dto/ManagementPermissionReference.py +37 -0
  152. CheckmarxPythonSDK/CxOne/dto/MappingsRepresentation.py +23 -0
  153. CheckmarxPythonSDK/CxOne/dto/PolicyRepresentation.py +68 -0
  154. CheckmarxPythonSDK/CxOne/dto/ProtocolMapperRepresentation.py +35 -0
  155. CheckmarxPythonSDK/CxOne/dto/RealmEventsConfigRepresentation.py +40 -0
  156. CheckmarxPythonSDK/CxOne/dto/RealmRepresentation.py +548 -0
  157. CheckmarxPythonSDK/CxOne/dto/RequiredActionProviderRepresentation.py +43 -0
  158. CheckmarxPythonSDK/CxOne/dto/ResourceRepresentation.py +52 -0
  159. CheckmarxPythonSDK/CxOne/dto/ResourceServerRepresentation.py +52 -0
  160. CheckmarxPythonSDK/CxOne/dto/Role.py +8 -2
  161. CheckmarxPythonSDK/CxOne/dto/RoleRepresentation.py +45 -0
  162. CheckmarxPythonSDK/CxOne/dto/RoleRepresentationComposites.py +20 -0
  163. CheckmarxPythonSDK/CxOne/{KeycloakAPI/dto/RoleRepresentationComposites.py → dto/RolesRepresentation.py} +4 -4
  164. CheckmarxPythonSDK/CxOne/dto/Scanner.py +8 -8
  165. CheckmarxPythonSDK/CxOne/dto/ScopeMappingRepresentation.py +31 -0
  166. CheckmarxPythonSDK/CxOne/dto/ScopeRepresentation.py +39 -0
  167. CheckmarxPythonSDK/CxOne/dto/SocialLinkRepresentation.py +23 -0
  168. CheckmarxPythonSDK/CxOne/dto/UserConsentRepresentation.py +30 -0
  169. CheckmarxPythonSDK/CxOne/dto/UserFederationMapperRepresentation.py +29 -0
  170. CheckmarxPythonSDK/CxOne/dto/UserFederationProviderRepresentation.py +38 -0
  171. CheckmarxPythonSDK/CxOne/dto/UserProfileAttributeGroupMetadata.py +26 -0
  172. CheckmarxPythonSDK/CxOne/dto/UserProfileAttributeMetadata.py +35 -0
  173. CheckmarxPythonSDK/CxOne/dto/UserProfileMetadata.py +24 -0
  174. CheckmarxPythonSDK/CxOne/dto/UserRepresentation.py +104 -0
  175. CheckmarxPythonSDK/CxOne/dto/__init__.py +16 -0
  176. CheckmarxPythonSDK/CxOne/repoManagerAPI.py +3 -3
  177. CheckmarxPythonSDK/CxOne/uploadsAPI.py +1 -1
  178. CheckmarxPythonSDK/CxScaApiSDK/__init__.py +1 -0
  179. CheckmarxPythonSDK/CxScaApiSDK/api.py +29 -2
  180. CheckmarxPythonSDK/__version__.py +1 -1
  181. CheckmarxPythonSDK/api_client.py +27 -74
  182. {checkmarxpythonsdk-1.6.0.dist-info → checkmarxpythonsdk-1.6.2.dist-info}/METADATA +1 -1
  183. {checkmarxpythonsdk-1.6.0.dist-info → checkmarxpythonsdk-1.6.2.dist-info}/RECORD +205 -101
  184. CheckmarxPythonSDK/CxOne/AccessControlAPI/__init__.py +0 -6
  185. CheckmarxPythonSDK/CxOne/AccessControlAPI/api.py +0 -120
  186. CheckmarxPythonSDK/CxOne/AccessControlAPI/dto/AstIdWithName.py +0 -23
  187. CheckmarxPythonSDK/CxOne/AccessControlAPI/dto/AstUser.py +0 -47
  188. CheckmarxPythonSDK/CxOne/AccessControlAPI/dto/__init__.py +0 -2
  189. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientRoleMappingsAPI.py +0 -45
  190. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientsAPI.py +0 -364
  191. CheckmarxPythonSDK/CxOne/KeycloakAPI/GroupsAPI.py +0 -441
  192. CheckmarxPythonSDK/CxOne/KeycloakAPI/RoleMapperAPI.py +0 -26
  193. CheckmarxPythonSDK/CxOne/KeycloakAPI/RolesAPI.py +0 -247
  194. CheckmarxPythonSDK/CxOne/KeycloakAPI/RootAPI.py +0 -29
  195. CheckmarxPythonSDK/CxOne/KeycloakAPI/UsersAPI.py +0 -490
  196. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/Group.py +0 -32
  197. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/User.py +0 -54
  198. /CheckmarxPythonSDK/CxOne/KeycloakAPI/{url.py → api_url.py} +0 -0
  199. /CheckmarxPythonSDK/CxOne/{KeycloakAPI/dto → dto}/AccessTokenAccess.py +0 -0
  200. /CheckmarxPythonSDK/CxOne/{KeycloakAPI/dto → dto}/AccessTokenAuthorization.py +0 -0
  201. /CheckmarxPythonSDK/CxOne/{KeycloakAPI/dto → dto}/AccessTokenCertConf.py +0 -0
  202. /CheckmarxPythonSDK/CxOne/{KeycloakAPI/dto → dto}/ClientScopeEvaluateResourceProtocolMapperEvaluationRepresentation.py +0 -0
  203. /CheckmarxPythonSDK/CxOne/{KeycloakAPI/dto → dto}/JsonNode.py +0 -0
  204. /CheckmarxPythonSDK/CxOne/{KeycloakAPI/dto → dto}/KeysMetadataRepresentationKeyMetadataRepresentation.py +0 -0
  205. /CheckmarxPythonSDK/CxOne/{KeycloakAPI/dto → dto}/MemoryInfoRepresentation.py +0 -0
  206. /CheckmarxPythonSDK/CxOne/{KeycloakAPI/dto → dto}/MultivaluedHashMap.py +0 -0
  207. /CheckmarxPythonSDK/CxOne/{KeycloakAPI/dto → dto}/PartialImportRepresentation.py +0 -0
  208. /CheckmarxPythonSDK/CxOne/{KeycloakAPI/dto → dto}/PasswordPolicyTypeRepresentation.py +0 -0
  209. /CheckmarxPythonSDK/CxOne/{KeycloakAPI/dto → dto}/ProfileInfoRepresentation.py +0 -0
  210. /CheckmarxPythonSDK/CxOne/{KeycloakAPI/dto → dto}/ProviderRepresentation.py +0 -0
  211. /CheckmarxPythonSDK/CxOne/{KeycloakAPI/dto → dto}/ScopePermissions.py +0 -0
  212. /CheckmarxPythonSDK/CxOne/{KeycloakAPI/dto → dto}/ServerInfoRepresentation.py +0 -0
  213. /CheckmarxPythonSDK/CxOne/{KeycloakAPI/dto → dto}/SpiInfoRepresentation.py +0 -0
  214. /CheckmarxPythonSDK/CxOne/{KeycloakAPI/dto → dto}/SynchronizationResult.py +0 -0
  215. /CheckmarxPythonSDK/CxOne/{KeycloakAPI/dto → dto}/SystemInfoRepresentation.py +0 -0
  216. /CheckmarxPythonSDK/CxOne/{KeycloakAPI/dto → dto}/TestLdapConnectionRepresentation.py +0 -0
  217. {checkmarxpythonsdk-1.6.0.dist-info → checkmarxpythonsdk-1.6.2.dist-info}/WHEEL +0 -0
  218. {checkmarxpythonsdk-1.6.0.dist-info → checkmarxpythonsdk-1.6.2.dist-info}/licenses/LICENSE +0 -0
  219. {checkmarxpythonsdk-1.6.0.dist-info → checkmarxpythonsdk-1.6.2.dist-info}/top_level.txt +0 -0
@@ -1,247 +0,0 @@
1
- from CheckmarxPythonSDK.api_client import ApiClient
2
- from CheckmarxPythonSDK.CxOne.config import construct_configuration
3
- import json
4
- from ...utilities.compat import CREATED, NO_CONTENT
5
- from typing import List
6
- from ..utilities import get_url_param, type_check
7
- from .url import api_url
8
- from .dto import RoleRepresentation
9
-
10
-
11
- class RolesAPI(object):
12
-
13
- def __init__(self, api_client: ApiClient = None):
14
- if api_client is None:
15
- configuration = construct_configuration()
16
- api_client = ApiClient(configuration=configuration)
17
- self.api_client = api_client
18
-
19
- def get_all_roles_for_the_client(
20
- self,
21
- realm: str,
22
- client_id: str,
23
- brief_representation: bool = False,
24
- first: int = None,
25
- max: int = None,
26
- search: bool = None
27
- ) -> dict:
28
- """
29
-
30
- Args:
31
- realm (str):
32
- client_id (str):
33
- brief_representation (bool):
34
- first (int):
35
- max (int):
36
- search (bool):
37
-
38
- Returns:
39
- dict
40
- """
41
- type_check(realm, str)
42
- type_check(client_id, str)
43
- type_check(brief_representation, bool)
44
- type_check(first, int)
45
- type_check(max, int)
46
- relative_url = api_url + f"/{realm}/clients/{client_id}/roles"
47
- params = {"briefRepresentation": brief_representation, "first": first, "max": max, "search": search}
48
- response = self.api_client.get_request(relative_url=relative_url, json=params, is_iam=True)
49
- response = response.json()
50
- return response
51
-
52
- def create_role_for_the_client(self, realm: str, client_id: str, role_name: str, description: str = None) -> bool:
53
- """
54
-
55
- Args:
56
- realm (str):
57
- client_id (str):
58
- role_name (str):
59
- description (str):
60
-
61
- Returns:
62
- bool
63
- """
64
- is_successful = False
65
- type_check(realm, str)
66
- type_check(client_id, str)
67
- type_check(role_name, str)
68
- relative_url = api_url + f"/{realm}/clients/{client_id}/roles"
69
- data = json.dumps({
70
- "name": role_name,
71
- "description": description,
72
- "composite": True,
73
- "clientRole": True,
74
- "attributes": {
75
- "category": ["Composite role"],
76
- "type": ["Role"],
77
- }
78
- })
79
- response = self.api_client.post_request(relative_url=relative_url, data=data, is_iam=True)
80
- return response.status_code == CREATED
81
-
82
- def delete_role_by_name(self, realm: str, client_id: str, role_name: str) -> bool:
83
- is_successful = False
84
- type_check(realm, str)
85
- type_check(client_id, str)
86
- type_check(role_name, str)
87
- relative_url = api_url + f"/{realm}/clients/{client_id}/roles/{role_name}"
88
- response = self.api_client.delete_request(relative_url=relative_url, is_iam=True)
89
- return response.status_code == NO_CONTENT
90
-
91
- def get_role_by_name(self, realm: str, client_id: str, role_name: str) -> dict:
92
- """
93
-
94
- Args:
95
- realm:
96
- client_id:
97
- role_name:
98
-
99
- Returns:
100
- dict
101
- example
102
- {
103
- "id": "35334ef1-989c-4c08-aaf9-3c4e2c4e6e9e",
104
- "name": "test111111111",
105
- "composite": false,
106
- "clientRole": true,
107
- "containerId": "d3b60524-13a1-431a-a703-1d6d3d09f512",
108
- "attributes": {
109
- "creator": [
110
- "happy_yang"
111
- ],
112
- "lastUpdate": [
113
- "1737608480336"
114
- ]
115
- }
116
- }
117
- """
118
- type_check(realm, str)
119
- type_check(client_id, str)
120
- type_check(role_name, str)
121
- relative_url = api_url + f"/{realm}/clients/{client_id}/roles/{role_name}"
122
- response = self.api_client.get_request(relative_url=relative_url, is_iam=True)
123
- response = response.json()
124
- return response
125
-
126
- def update_role_by_id(self, realm: str, role_id: str, role_representation: RoleRepresentation) -> bool:
127
- """
128
-
129
- Args:
130
- realm (str):
131
- role_id (str):
132
- role_representation (RoleRepresentation):
133
- {"attributes": {"type": ["Role"], "category": ["Composite role"], "creator": ["happy_yang"],
134
- "lastUpdate": ["1737608480336"]}, "clientRole": true, "composite": true,
135
- "containerId": "d3b60524-13a1-431a-a703-1d6d3d09f512", "id": "35334ef1-989c-4c08-aaf9-3c4e2c4e6e9e",
136
- "name": "test111111111"}
137
- Returns:
138
- bool
139
- """
140
- is_successful = False
141
- relative_url = api_url + f"/{realm}/roles-by-id/{role_id}"
142
- data = json.dumps(role_representation.to_dict())
143
- response = self.api_client.put_request(relative_url=relative_url, data=data, is_iam=True)
144
- return response.status_code == NO_CONTENT
145
-
146
- def get_roles_children(self, realm: str, role_id: str) -> dict:
147
- """
148
- Get role’s children Returns a set of role’s children provided the role is a composite.
149
- Args:
150
- realm:
151
- role_id:
152
-
153
- Returns:
154
- dict
155
- """
156
- relative_url = api_url + f"/{realm}/roles-by-id/{role_id}/composites"
157
- response = self.api_client.get_request(relative_url=relative_url, is_iam=True)
158
- response = response.json()
159
- return response
160
-
161
- def get_roles_children_iam(self, realm: str, role_id: str) -> dict:
162
- """
163
-
164
- Args:
165
- realm:
166
- role_id:
167
-
168
- Returns:
169
-
170
- """
171
- relative_url = api_url + f"/{realm}/roles-by-id/{role_id}/composites/realm"
172
- response = self.api_client.get_request(relative_url=relative_url, is_iam=True)
173
- response = response.json()
174
- return response
175
-
176
- def add_children_to_a_composite_role(self, realm: str, role_id: str, children: List[RoleRepresentation]) -> bool:
177
- """
178
-
179
- Args:
180
- realm (str):
181
- role_id (str):
182
- children (str): [{"clientRole": true, "composite": true,
183
- "containerId": "d3b60524-13a1-431a-a703-1d6d3d09f512",
184
- "description": "Scan, manage results, manage projects",
185
- "id": "260f1dba-9ac4-451d-bd9f-4f2249e0ae7d",
186
- "name": "ast-scanner"}]
187
-
188
- Returns:
189
- bool
190
- """
191
- relative_url = api_url + f"/{realm}/roles-by-id/{role_id}/composites"
192
- data = json.dumps([role_representation.to_dict() for role_representation in children])
193
- response = self.api_client.post_request(relative_url=relative_url, data=data, is_iam=True)
194
- return response.status_code == NO_CONTENT
195
-
196
- def get_all_roles_for_the_realm(self, realm: str) -> dict:
197
- type_check(realm, str)
198
- relative_url = api_url + f"/{realm}/roles"
199
- response = self.api_client.get_request(relative_url=relative_url, is_iam=True)
200
- response = response.json()
201
- return response
202
-
203
-
204
- def get_all_roles_for_the_client(
205
- realm: str,
206
- client_id: str,
207
- brief_representation: bool = False,
208
- first: int = None,
209
- max: int = None,
210
- search: bool = None
211
- ) -> dict:
212
- return RolesAPI().get_all_roles_for_the_client(
213
- realm=realm, client_id=client_id, brief_representation=brief_representation, first=first, max=max, search=search
214
- )
215
-
216
-
217
- def create_role_for_the_client(realm: str, client_id: str, role_name: str, description: str = None) -> bool:
218
- return RolesAPI().create_role_for_the_client(realm=realm, client_id=client_id, role_name=role_name,
219
- description=description)
220
-
221
-
222
- def delete_role_by_name(realm: str, client_id: str, role_name: str) -> bool:
223
- return RolesAPI().delete_role_by_name(realm=realm, client_id=client_id, role_name=role_name)
224
-
225
-
226
- def get_role_by_name(realm: str, client_id: str, role_name: str) -> dict:
227
- return RolesAPI().get_role_by_name(realm=realm, client_id=client_id, role_name=role_name)
228
-
229
-
230
- def update_role_by_id(realm: str, role_id: str, role_representation: RoleRepresentation) -> bool:
231
- return RolesAPI().update_role_by_id(realm=realm, role_id=role_id, role_representation=role_representation)
232
-
233
-
234
- def get_roles_children(realm: str, role_id: str) -> dict:
235
- return RolesAPI().get_roles_children(realm=realm, role_id=role_id)
236
-
237
-
238
- def get_roles_children_iam(realm: str, role_id: str) -> dict:
239
- return RolesAPI().get_roles_children_iam(realm=realm, role_id=role_id)
240
-
241
-
242
- def add_children_to_a_composite_role(realm: str, role_id: str, children: List[RoleRepresentation]) -> bool:
243
- return RolesAPI().add_children_to_a_composite_role(realm=realm, role_id=role_id, children=children)
244
-
245
-
246
- def get_all_roles_for_the_realm(realm: str) -> dict:
247
- return RolesAPI().get_all_roles_for_the_realm(realm=realm)
@@ -1,29 +0,0 @@
1
- from CheckmarxPythonSDK.api_client import ApiClient
2
- from CheckmarxPythonSDK.CxOne.config import construct_configuration
3
- from .url import api_url
4
- from .dto import RealmRepresentation, construct_realm_representation
5
- from typing import List
6
-
7
-
8
- class RootAPI(object):
9
-
10
- def __init__(self, api_client: ApiClient = None):
11
- if api_client is None:
12
- configuration = construct_configuration()
13
- api_client = ApiClient(configuration=configuration)
14
- self.api_client = api_client
15
-
16
- def get_realms(self) -> List[RealmRepresentation]:
17
- """
18
-
19
- Returns:
20
- list of RealmRepresentation
21
- """
22
- relative_url = api_url
23
- response = self.api_client.get_request(relative_url=relative_url, is_iam=True)
24
- realms = response.json()
25
- return [construct_realm_representation(realm) for realm in realms]
26
-
27
-
28
- def get_realms() -> List[RealmRepresentation]:
29
- return RootAPI().get_realms()