CheckmarxPythonSDK 1.8.0__py3-none-any.whl → 1.8.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 (616) hide show
  1. CheckmarxPythonSDK/CxAccessControl/AccessControl.py +925 -2051
  2. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/AuthenticationProvider.py +19 -24
  3. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/Configuration.py +15 -9
  4. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/LDAPGroup.py +12 -14
  5. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/LDAPGroupAndRoleMappingDetail.py +11 -19
  6. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/LDAPRoleMapping.py +17 -21
  7. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/LDAPServer.py +69 -94
  8. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/LDAPTeamMapping.py +17 -23
  9. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/MyProfile.py +33 -42
  10. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/OIDCClient.py +67 -94
  11. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/Permission.py +15 -19
  12. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/Role.py +17 -21
  13. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/SAMLIdentityProvider.py +35 -45
  14. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/SAMLRoleMapping.py +18 -22
  15. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/SAMLServiceProvider.py +15 -20
  16. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/SAMLTeamMapping.py +18 -19
  17. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/SMTPSetting.py +22 -27
  18. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/ServiceProvider.py +12 -14
  19. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/SystemLocale.py +15 -19
  20. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/Team.py +15 -20
  21. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/User.py +47 -58
  22. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/WindowsDomain.py +13 -17
  23. CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/requests.py +146 -0
  24. CheckmarxPythonSDK/CxODataApiSDK/ProjectsODataAPI.py +123 -108
  25. CheckmarxPythonSDK/CxODataApiSDK/ResultsODataAPI.py +97 -81
  26. CheckmarxPythonSDK/CxODataApiSDK/ScansODataAPI.py +61 -48
  27. CheckmarxPythonSDK/CxODataApiSDK/Utilities.py +118 -50
  28. CheckmarxPythonSDK/CxODataApiSDK/config.py +21 -19
  29. CheckmarxPythonSDK/CxOne/CodeRepositoryProjectImportAPI.py +36 -52
  30. CheckmarxPythonSDK/CxOne/KeycloakAPI/AttackDetectionApi.py +19 -38
  31. CheckmarxPythonSDK/CxOne/KeycloakAPI/AuthenticationManagementApi.py +272 -441
  32. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientAttributeCertificateApi.py +44 -85
  33. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientInitialAccessApi.py +28 -38
  34. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientRegistrationPolicyApi.py +8 -15
  35. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientRoleMappingsApi.py +114 -161
  36. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientRolesApi.py +265 -423
  37. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientScopesApi.py +79 -123
  38. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientsApi.py +287 -503
  39. CheckmarxPythonSDK/CxOne/KeycloakAPI/ComponentApi.py +51 -85
  40. CheckmarxPythonSDK/CxOne/KeycloakAPI/GroupsApi.py +120 -185
  41. CheckmarxPythonSDK/CxOne/KeycloakAPI/IdentityProvidersApi.py +151 -209
  42. CheckmarxPythonSDK/CxOne/KeycloakAPI/KeyApi.py +7 -11
  43. CheckmarxPythonSDK/CxOne/KeycloakAPI/ProtocolMappersApi.py +211 -276
  44. CheckmarxPythonSDK/CxOne/KeycloakAPI/RealmsAdminApi.py +91 -138
  45. CheckmarxPythonSDK/CxOne/KeycloakAPI/RoleMapperApi.py +66 -136
  46. CheckmarxPythonSDK/CxOne/KeycloakAPI/RolesApi.py +173 -344
  47. CheckmarxPythonSDK/CxOne/KeycloakAPI/RolesByIdApi.py +59 -119
  48. CheckmarxPythonSDK/CxOne/KeycloakAPI/ScopeMappingsApi.py +165 -438
  49. CheckmarxPythonSDK/CxOne/KeycloakAPI/UsersApi.py +224 -356
  50. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/Access.py +4 -5
  51. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/AccessToken.py +57 -56
  52. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/AddressClaimSet.py +8 -9
  53. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/AdminEventRepresentation.py +14 -13
  54. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ApplicationRepresentation.py +67 -56
  55. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ApplicationRepresentationClaims.py +12 -13
  56. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/AuthDetailsRepresentation.py +6 -7
  57. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/AuthenticationExecutionExportRepresentation.py +10 -11
  58. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/AuthenticationExecutionInfoRepresentation.py +15 -16
  59. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/AuthenticationExecutionRepresentation.py +11 -12
  60. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/AuthenticationFlowRepresentation.py +22 -16
  61. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/AuthenticatorConfigInfoRepresentation.py +10 -10
  62. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/AuthenticatorConfigRepresentation.py +5 -6
  63. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/Authorization.py +6 -7
  64. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/CertificateRepresentation.py +6 -7
  65. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClaimRepresentation.py +12 -13
  66. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientInitialAccessCreatePresentation.py +4 -5
  67. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientInitialAccessPresentation.py +8 -9
  68. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientMappingsRepresentation.py +8 -9
  69. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientPoliciesRepresentation.py +7 -7
  70. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientPolicyConditionRepresentation.py +4 -5
  71. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientPolicyExecutorRepresentation.py +4 -5
  72. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientPolicyRepresentation.py +11 -11
  73. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientProfileRepresentation.py +9 -9
  74. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientProfilesRepresentation.py +15 -11
  75. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientRepresentation.py +62 -53
  76. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientScopeRepresentation.py +15 -12
  77. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientTemplateRepresentation.py +24 -21
  78. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ComponentExportRepresentation.py +8 -9
  79. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ComponentRepresentation.py +9 -10
  80. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ComponentTypeRepresentation.py +10 -10
  81. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/Composites.py +5 -6
  82. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ConfigPropertyRepresentation.py +11 -12
  83. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/Confirmation.py +4 -5
  84. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/CredentialRepresentation.py +20 -21
  85. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/DecisionStrategy.py +2 -3
  86. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/EnforcementMode.py +2 -3
  87. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/EventRepresentation.py +12 -13
  88. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/FederatedIdentityRepresentation.py +5 -6
  89. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/GlobalRequestResult.py +4 -5
  90. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/GroupRepresentation.py +13 -14
  91. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/IDToken.py +42 -43
  92. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/IdentityProviderMapperRepresentation.py +7 -8
  93. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/IdentityProviderMapperTypeRepresentation.py +11 -11
  94. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/IdentityProviderRepresentation.py +18 -19
  95. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/InstallationAdapterConfig.py +21 -17
  96. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/KeyMetadataRepresentation.py +14 -15
  97. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/KeyStoreConfig.py +8 -9
  98. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/KeyUse.py +2 -3
  99. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/KeysMetadataRepresentation.py +7 -8
  100. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/Logic.py +2 -3
  101. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ManagementPermissionReference.py +5 -6
  102. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/MappingsRepresentation.py +8 -8
  103. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/MethodConfig.py +12 -9
  104. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/OAuthClientRepresentation.py +67 -56
  105. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/PathCacheConfig.py +4 -5
  106. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/PathConfig.py +23 -19
  107. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/PathSegment.py +4 -5
  108. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/Permission.py +6 -7
  109. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/PolicyEnforcementMode.py +2 -3
  110. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/PolicyEnforcerConfig.py +28 -22
  111. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/PolicyRepresentation.py +32 -26
  112. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ProtocolMapperEvaluationRepresentation.py +8 -9
  113. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ProtocolMapperRepresentation.py +9 -10
  114. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/PublishedRealmRepresentation.py +7 -8
  115. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/RealmEventsConfigRepresentation.py +8 -9
  116. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/RealmRepresentation.py +280 -211
  117. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/RequiredActionProviderRepresentation.py +9 -10
  118. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ResourceOwnerRepresentation.py +4 -5
  119. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ResourceRepresentation.py +24 -23
  120. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ResourceRepresentationOwner.py +4 -5
  121. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ResourceServerRepresentation.py +35 -26
  122. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/RoleRepresentation.py +13 -14
  123. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/RolesRepresentation.py +8 -9
  124. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ScopeEnforcementMode.py +2 -3
  125. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ScopeMappingRepresentation.py +7 -8
  126. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ScopeRepresentation.py +6 -8
  127. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/SocialLinkRepresentation.py +5 -6
  128. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UPAttribute.py +22 -17
  129. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UPAttributePermissions.py +4 -5
  130. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UPAttributeRequired.py +4 -5
  131. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UPAttributeSelector.py +3 -4
  132. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UPConfig.py +10 -11
  133. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UPGroup.py +6 -7
  134. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UserConsentRepresentation.py +7 -8
  135. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UserFederationMapperRepresentation.py +7 -8
  136. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UserFederationProviderRepresentation.py +10 -11
  137. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UserProfileAttributeGroupMetadata.py +6 -7
  138. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UserProfileAttributeMetadata.py +10 -11
  139. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UserProfileMetadata.py +12 -11
  140. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UserRepresentation.py +58 -44
  141. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/UserSessionRepresentation.py +10 -11
  142. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/__init__.py +12 -4
  143. CheckmarxPythonSDK/CxOne/__init__.py +8 -7
  144. CheckmarxPythonSDK/CxOne/accessControlAPI.py +65 -110
  145. CheckmarxPythonSDK/CxOne/accessManagementAPI.py +670 -1104
  146. CheckmarxPythonSDK/CxOne/apisecAPI.py +309 -143
  147. CheckmarxPythonSDK/CxOne/applicationsAPI.py +132 -122
  148. CheckmarxPythonSDK/CxOne/auditTrailAPI.py +28 -26
  149. CheckmarxPythonSDK/CxOne/byorResultsHandlerAPI.py +23 -22
  150. CheckmarxPythonSDK/CxOne/byorResultsHandlerV2API.py +25 -22
  151. CheckmarxPythonSDK/CxOne/cloudInsightsServiceAPI.py +217 -124
  152. CheckmarxPythonSDK/CxOne/config.py +27 -24
  153. CheckmarxPythonSDK/CxOne/contributorsAPI.py +49 -31
  154. CheckmarxPythonSDK/CxOne/customStateAPI.py +33 -33
  155. CheckmarxPythonSDK/CxOne/dto/AccessToken.py +95 -192
  156. CheckmarxPythonSDK/CxOne/dto/AccessTokenAccess.py +12 -21
  157. CheckmarxPythonSDK/CxOne/dto/AccessTokenAuthorization.py +9 -16
  158. CheckmarxPythonSDK/CxOne/dto/AccessTokenCertConf.py +9 -17
  159. CheckmarxPythonSDK/CxOne/dto/AddAssignmentRoles.py +3 -18
  160. CheckmarxPythonSDK/CxOne/dto/AddressClaimSet.py +19 -36
  161. CheckmarxPythonSDK/CxOne/dto/ApiSecCounters.py +15 -15
  162. CheckmarxPythonSDK/CxOne/dto/Application.py +14 -16
  163. CheckmarxPythonSDK/CxOne/dto/ApplicationInput.py +0 -20
  164. CheckmarxPythonSDK/CxOne/dto/ApplicationsCollection.py +10 -10
  165. CheckmarxPythonSDK/CxOne/dto/Assignment.py +16 -17
  166. CheckmarxPythonSDK/CxOne/dto/AssignmentInput.py +10 -18
  167. CheckmarxPythonSDK/CxOne/dto/AssignmentsForResource.py +10 -9
  168. CheckmarxPythonSDK/CxOne/dto/AssignmentsWithBaseRoles.py +22 -23
  169. CheckmarxPythonSDK/CxOne/dto/AstIdWithName.py +14 -14
  170. CheckmarxPythonSDK/CxOne/dto/AstUser.py +18 -18
  171. CheckmarxPythonSDK/CxOne/dto/AsyncRequestResponse.py +3 -10
  172. CheckmarxPythonSDK/CxOne/dto/AuditEvent.py +11 -11
  173. CheckmarxPythonSDK/CxOne/dto/AuditEventLink.py +7 -7
  174. CheckmarxPythonSDK/CxOne/dto/AuditEvents.py +12 -12
  175. CheckmarxPythonSDK/CxOne/dto/AuditQuery.py +0 -6
  176. CheckmarxPythonSDK/CxOne/dto/AuthenticationExecutionExportRepresentation.py +21 -41
  177. CheckmarxPythonSDK/CxOne/dto/AuthenticationExecutionInfoRepresentation.py +33 -66
  178. CheckmarxPythonSDK/CxOne/dto/AuthenticationExecutionRepresentation.py +23 -45
  179. CheckmarxPythonSDK/CxOne/dto/AuthenticationFlowRepresentation.py +21 -41
  180. CheckmarxPythonSDK/CxOne/dto/AuthenticatorConfigInfoRepresentation.py +15 -28
  181. CheckmarxPythonSDK/CxOne/dto/AuthenticatorConfigRepresentation.py +13 -24
  182. CheckmarxPythonSDK/CxOne/dto/BaseRolesRequest.py +1 -6
  183. CheckmarxPythonSDK/CxOne/dto/BaseRolesResponse.py +7 -7
  184. CheckmarxPythonSDK/CxOne/dto/BflTree.py +10 -20
  185. CheckmarxPythonSDK/CxOne/dto/ByorJob.py +9 -9
  186. CheckmarxPythonSDK/CxOne/dto/ByorJobPatchRequest.py +0 -11
  187. CheckmarxPythonSDK/CxOne/dto/Category.py +7 -15
  188. CheckmarxPythonSDK/CxOne/dto/CategoryType.py +10 -21
  189. CheckmarxPythonSDK/CxOne/dto/CertificateRepresentation.py +15 -28
  190. CheckmarxPythonSDK/CxOne/dto/ChangeDetails.py +5 -16
  191. CheckmarxPythonSDK/CxOne/dto/Client.py +35 -32
  192. CheckmarxPythonSDK/CxOne/dto/ClientInitialAccessCreatePresentation.py +12 -21
  193. CheckmarxPythonSDK/CxOne/dto/ClientInitialAccessPresentation.py +19 -36
  194. CheckmarxPythonSDK/CxOne/dto/ClientMappingsRepresentation.py +13 -24
  195. CheckmarxPythonSDK/CxOne/dto/ClientPoliciesRepresentation.py +9 -16
  196. CheckmarxPythonSDK/CxOne/dto/ClientPolicyConditionRepresentation.py +12 -21
  197. CheckmarxPythonSDK/CxOne/dto/ClientPolicyExecutorRepresentation.py +12 -21
  198. CheckmarxPythonSDK/CxOne/dto/ClientPolicyRepresentation.py +17 -32
  199. CheckmarxPythonSDK/CxOne/dto/ClientProfileRepresentation.py +13 -24
  200. CheckmarxPythonSDK/CxOne/dto/ClientProfilesRepresentation.py +12 -21
  201. CheckmarxPythonSDK/CxOne/dto/ClientRepresentation.py +87 -171
  202. CheckmarxPythonSDK/CxOne/dto/ClientScopeEvaluateResourceProtocolMapperEvaluationRepresentation.py +21 -36
  203. CheckmarxPythonSDK/CxOne/dto/ClientScopeRepresentation.py +19 -36
  204. CheckmarxPythonSDK/CxOne/dto/ClientWithResource.py +19 -18
  205. CheckmarxPythonSDK/CxOne/dto/ClientsWithResourcesResponse.py +10 -10
  206. CheckmarxPythonSDK/CxOne/dto/CloudInsightAccount.py +8 -8
  207. CheckmarxPythonSDK/CxOne/dto/CloudInsightAccountLog.py +13 -13
  208. CheckmarxPythonSDK/CxOne/dto/CloudInsightContainer.py +11 -11
  209. CheckmarxPythonSDK/CxOne/dto/CloudInsightCreateEnrichAccount.py +1 -7
  210. CheckmarxPythonSDK/CxOne/dto/CloudInsightEnrichAccount.py +5 -5
  211. CheckmarxPythonSDK/CxOne/dto/CommentJSON.py +0 -10
  212. CheckmarxPythonSDK/CxOne/dto/CompilationResponse.py +0 -6
  213. CheckmarxPythonSDK/CxOne/dto/ComplianceSummary.py +1 -7
  214. CheckmarxPythonSDK/CxOne/dto/ComponentExportRepresentation.py +19 -36
  215. CheckmarxPythonSDK/CxOne/dto/ComponentRepresentation.py +21 -40
  216. CheckmarxPythonSDK/CxOne/dto/Composites.py +0 -8
  217. CheckmarxPythonSDK/CxOne/dto/ConfigPropertyRepresentation.py +21 -40
  218. CheckmarxPythonSDK/CxOne/dto/ContributorInsights.py +12 -12
  219. CheckmarxPythonSDK/CxOne/dto/ContributorScmInsights.py +6 -6
  220. CheckmarxPythonSDK/CxOne/dto/ContributorUnfamiliarProjects.py +4 -6
  221. CheckmarxPythonSDK/CxOne/dto/Contributors.py +6 -7
  222. CheckmarxPythonSDK/CxOne/dto/CreateRoleRequest.py +0 -7
  223. CheckmarxPythonSDK/CxOne/dto/CreatedApplication.py +13 -16
  224. CheckmarxPythonSDK/CxOne/dto/CredentialRepresentation.py +0 -45
  225. CheckmarxPythonSDK/CxOne/dto/Credentials.py +1 -7
  226. CheckmarxPythonSDK/CxOne/dto/CustomState.py +8 -8
  227. CheckmarxPythonSDK/CxOne/dto/DebugMessage.py +0 -8
  228. CheckmarxPythonSDK/CxOne/dto/DebugMessageResponse.py +6 -6
  229. CheckmarxPythonSDK/CxOne/dto/DefaultConfig.py +3 -17
  230. CheckmarxPythonSDK/CxOne/dto/DefaultConfigOut.py +16 -36
  231. CheckmarxPythonSDK/CxOne/dto/EffectivePermissionsForResourceResponse.py +9 -9
  232. CheckmarxPythonSDK/CxOne/dto/EngineData.py +15 -14
  233. CheckmarxPythonSDK/CxOne/dto/EngineMetrics.py +26 -38
  234. CheckmarxPythonSDK/CxOne/dto/EntitiesForExtendedResponse.py +11 -10
  235. CheckmarxPythonSDK/CxOne/dto/EntityRolesRequest.py +2 -6
  236. CheckmarxPythonSDK/CxOne/dto/Error.py +0 -8
  237. CheckmarxPythonSDK/CxOne/dto/ExecutionResponse.py +0 -8
  238. CheckmarxPythonSDK/CxOne/dto/FederatedIdentityRepresentation.py +0 -15
  239. CheckmarxPythonSDK/CxOne/dto/FileInfo.py +12 -12
  240. CheckmarxPythonSDK/CxOne/dto/Flag.py +12 -12
  241. CheckmarxPythonSDK/CxOne/dto/GPTMessage.py +3 -6
  242. CheckmarxPythonSDK/CxOne/dto/Git.py +3 -16
  243. CheckmarxPythonSDK/CxOne/dto/GlobalRequestResult.py +12 -21
  244. CheckmarxPythonSDK/CxOne/dto/Group.py +8 -8
  245. CheckmarxPythonSDK/CxOne/dto/GroupRepresentation.py +7 -7
  246. CheckmarxPythonSDK/CxOne/dto/GroupWithResource.py +27 -27
  247. CheckmarxPythonSDK/CxOne/dto/GroupsResponse.py +9 -9
  248. CheckmarxPythonSDK/CxOne/dto/GroupsWithResourcesResponse.py +8 -10
  249. CheckmarxPythonSDK/CxOne/dto/IDToken.py +83 -167
  250. CheckmarxPythonSDK/CxOne/dto/IdentityProviderMapperRepresentation.py +17 -33
  251. CheckmarxPythonSDK/CxOne/dto/IdentityProviderRepresentation.py +31 -62
  252. CheckmarxPythonSDK/CxOne/dto/ImportItem.py +10 -17
  253. CheckmarxPythonSDK/CxOne/dto/ImportItemWithLogs.py +13 -23
  254. CheckmarxPythonSDK/CxOne/dto/ImportRequest.py +4 -16
  255. CheckmarxPythonSDK/CxOne/dto/ImportResults.py +5 -12
  256. CheckmarxPythonSDK/CxOne/dto/InternalClient.py +7 -7
  257. CheckmarxPythonSDK/CxOne/dto/InternalGroup.py +6 -6
  258. CheckmarxPythonSDK/CxOne/dto/InternalUser.py +8 -8
  259. CheckmarxPythonSDK/CxOne/dto/JsonNode.py +51 -102
  260. CheckmarxPythonSDK/CxOne/dto/KeyStoreConfig.py +19 -37
  261. CheckmarxPythonSDK/CxOne/dto/KeysMetadataRepresentation.py +12 -21
  262. CheckmarxPythonSDK/CxOne/dto/KeysMetadataRepresentationKeyMetadataRepresentation.py +29 -49
  263. CheckmarxPythonSDK/CxOne/dto/KicsCounters.py +24 -41
  264. CheckmarxPythonSDK/CxOne/dto/KicsResult.py +40 -42
  265. CheckmarxPythonSDK/CxOne/dto/KicsResultCollection.py +7 -9
  266. CheckmarxPythonSDK/CxOne/dto/LanguageSummary.py +1 -7
  267. CheckmarxPythonSDK/CxOne/dto/LogItem.py +16 -26
  268. CheckmarxPythonSDK/CxOne/dto/ManagementPermissionReference.py +13 -33
  269. CheckmarxPythonSDK/CxOne/dto/MappingsRepresentation.py +12 -21
  270. CheckmarxPythonSDK/CxOne/dto/MemoryInfoRepresentation.py +21 -40
  271. CheckmarxPythonSDK/CxOne/dto/Metadata.py +12 -12
  272. CheckmarxPythonSDK/CxOne/dto/MethodInfo.py +22 -33
  273. CheckmarxPythonSDK/CxOne/dto/MethodParameter.py +8 -7
  274. CheckmarxPythonSDK/CxOne/dto/MultipleAssignmentInput.py +6 -15
  275. CheckmarxPythonSDK/CxOne/dto/MultivaluedHashMap.py +13 -24
  276. CheckmarxPythonSDK/CxOne/dto/PaginatedAccountLogsListResponse.py +12 -11
  277. CheckmarxPythonSDK/CxOne/dto/PaginatedAccountsListResponse.py +9 -11
  278. CheckmarxPythonSDK/CxOne/dto/PaginatedContainersListResponse.py +9 -11
  279. CheckmarxPythonSDK/CxOne/dto/PaginatedResourcesList.py +9 -11
  280. CheckmarxPythonSDK/CxOne/dto/PartialImportRepresentation.py +21 -40
  281. CheckmarxPythonSDK/CxOne/dto/PasswordPolicyTypeRepresentation.py +17 -33
  282. CheckmarxPythonSDK/CxOne/dto/Permission.py +9 -9
  283. CheckmarxPythonSDK/CxOne/dto/PlatformSummary.py +1 -7
  284. CheckmarxPythonSDK/CxOne/dto/PolicyRepresentation.py +33 -65
  285. CheckmarxPythonSDK/CxOne/dto/Predicate.py +0 -15
  286. CheckmarxPythonSDK/CxOne/dto/PredicateHistory.py +1 -12
  287. CheckmarxPythonSDK/CxOne/dto/PredicateWithCommentJSON.py +1 -17
  288. CheckmarxPythonSDK/CxOne/dto/PredicateWithCommentsJSON.py +2 -20
  289. CheckmarxPythonSDK/CxOne/dto/Preset.py +9 -18
  290. CheckmarxPythonSDK/CxOne/dto/PresetPaged.py +10 -18
  291. CheckmarxPythonSDK/CxOne/dto/PresetSummary.py +12 -23
  292. CheckmarxPythonSDK/CxOne/dto/ProfileInfoRepresentation.py +15 -28
  293. CheckmarxPythonSDK/CxOne/dto/Project.py +27 -32
  294. CheckmarxPythonSDK/CxOne/dto/ProjectCounter.py +7 -10
  295. CheckmarxPythonSDK/CxOne/dto/ProjectInput.py +5 -22
  296. CheckmarxPythonSDK/CxOne/dto/ProjectResponseCollection.py +10 -10
  297. CheckmarxPythonSDK/CxOne/dto/ProjectResponseModel.py +30 -30
  298. CheckmarxPythonSDK/CxOne/dto/ProjectSettings.py +6 -20
  299. CheckmarxPythonSDK/CxOne/dto/ProjectsCollection.py +5 -7
  300. CheckmarxPythonSDK/CxOne/dto/Property.py +3 -12
  301. CheckmarxPythonSDK/CxOne/dto/ProtocolMapperRepresentation.py +17 -32
  302. CheckmarxPythonSDK/CxOne/dto/ProtocolMappersRepresentation.py +10 -10
  303. CheckmarxPythonSDK/CxOne/dto/ProviderRepresentation.py +12 -21
  304. CheckmarxPythonSDK/CxOne/dto/Queries.py +13 -11
  305. CheckmarxPythonSDK/CxOne/dto/QueriesResponse.py +7 -14
  306. CheckmarxPythonSDK/CxOne/dto/QueriesTree.py +8 -10
  307. CheckmarxPythonSDK/CxOne/dto/Query.py +16 -15
  308. CheckmarxPythonSDK/CxOne/dto/QueryBuilderMessage.py +3 -6
  309. CheckmarxPythonSDK/CxOne/dto/QueryBuilderPrompt.py +0 -5
  310. CheckmarxPythonSDK/CxOne/dto/QueryDescription.py +22 -32
  311. CheckmarxPythonSDK/CxOne/dto/QueryDescriptionSampleCode.py +10 -17
  312. CheckmarxPythonSDK/CxOne/dto/QueryDetails.py +20 -32
  313. CheckmarxPythonSDK/CxOne/dto/QueryRequest.py +1 -10
  314. CheckmarxPythonSDK/CxOne/dto/QueryResponse.py +11 -11
  315. CheckmarxPythonSDK/CxOne/dto/QueryResult.py +6 -6
  316. CheckmarxPythonSDK/CxOne/dto/QuerySearch.py +8 -10
  317. CheckmarxPythonSDK/CxOne/dto/QuerySummary.py +1 -9
  318. CheckmarxPythonSDK/CxOne/dto/RealmEventsConfigRepresentation.py +19 -37
  319. CheckmarxPythonSDK/CxOne/dto/RealmRepresentation.py +303 -545
  320. CheckmarxPythonSDK/CxOne/dto/RequestStatus.py +7 -7
  321. CheckmarxPythonSDK/CxOne/dto/RequestStatusDetectLanguages.py +0 -7
  322. CheckmarxPythonSDK/CxOne/dto/RequestStatusNotReady.py +0 -7
  323. CheckmarxPythonSDK/CxOne/dto/RequiredActionProviderRepresentation.py +21 -40
  324. CheckmarxPythonSDK/CxOne/dto/Resource.py +15 -15
  325. CheckmarxPythonSDK/CxOne/dto/ResourceRepresentation.py +25 -49
  326. CheckmarxPythonSDK/CxOne/dto/ResourceServerRepresentation.py +25 -49
  327. CheckmarxPythonSDK/CxOne/dto/ResourcesResponse.py +12 -11
  328. CheckmarxPythonSDK/CxOne/dto/Result.py +36 -58
  329. CheckmarxPythonSDK/CxOne/dto/ResultNode.py +23 -36
  330. CheckmarxPythonSDK/CxOne/dto/ResultResponse.py +17 -34
  331. CheckmarxPythonSDK/CxOne/dto/ResultsResponse.py +7 -9
  332. CheckmarxPythonSDK/CxOne/dto/ResultsSummary.py +28 -35
  333. CheckmarxPythonSDK/CxOne/dto/ResultsSummaryTree.py +9 -11
  334. CheckmarxPythonSDK/CxOne/dto/Role.py +14 -14
  335. CheckmarxPythonSDK/CxOne/dto/RoleRepresentation.py +0 -30
  336. CheckmarxPythonSDK/CxOne/dto/RoleRepresentationComposites.py +0 -13
  337. CheckmarxPythonSDK/CxOne/dto/RoleWithDetails.py +17 -19
  338. CheckmarxPythonSDK/CxOne/dto/RolesRepresentation.py +12 -21
  339. CheckmarxPythonSDK/CxOne/dto/Rule.py +10 -13
  340. CheckmarxPythonSDK/CxOne/dto/RuleInput.py +1 -6
  341. CheckmarxPythonSDK/CxOne/dto/SCMImportInput.py +4 -15
  342. CheckmarxPythonSDK/CxOne/dto/SastCounters.py +18 -38
  343. CheckmarxPythonSDK/CxOne/dto/SastResult.py +27 -60
  344. CheckmarxPythonSDK/CxOne/dto/SastScan.py +20 -33
  345. CheckmarxPythonSDK/CxOne/dto/SastStatus.py +3 -6
  346. CheckmarxPythonSDK/CxOne/dto/ScaContainersCounters.py +20 -30
  347. CheckmarxPythonSDK/CxOne/dto/ScaCounters.py +20 -36
  348. CheckmarxPythonSDK/CxOne/dto/ScaPackageCounters.py +28 -45
  349. CheckmarxPythonSDK/CxOne/dto/Scan.py +43 -65
  350. CheckmarxPythonSDK/CxOne/dto/ScanConfig.py +1 -10
  351. CheckmarxPythonSDK/CxOne/dto/ScanEngineVersion.py +12 -20
  352. CheckmarxPythonSDK/CxOne/dto/ScanInfo.py +30 -48
  353. CheckmarxPythonSDK/CxOne/dto/ScanInfoCollection.py +12 -21
  354. CheckmarxPythonSDK/CxOne/dto/ScanInput.py +1 -11
  355. CheckmarxPythonSDK/CxOne/dto/ScanParameter.py +20 -49
  356. CheckmarxPythonSDK/CxOne/dto/Scanner.py +4 -12
  357. CheckmarxPythonSDK/CxOne/dto/ScansCollection.py +12 -21
  358. CheckmarxPythonSDK/CxOne/dto/Scm.py +6 -20
  359. CheckmarxPythonSDK/CxOne/dto/ScmOrganization.py +4 -10
  360. CheckmarxPythonSDK/CxOne/dto/ScmProject.py +10 -22
  361. CheckmarxPythonSDK/CxOne/dto/ScopeMappingRepresentation.py +15 -28
  362. CheckmarxPythonSDK/CxOne/dto/ScopePermissions.py +17 -33
  363. CheckmarxPythonSDK/CxOne/dto/ScopeRepresentation.py +19 -36
  364. CheckmarxPythonSDK/CxOne/dto/ServerInfoRepresentation.py +35 -70
  365. CheckmarxPythonSDK/CxOne/dto/Session.py +17 -13
  366. CheckmarxPythonSDK/CxOne/dto/SessionRequest.py +3 -15
  367. CheckmarxPythonSDK/CxOne/dto/SessionResponse.py +7 -7
  368. CheckmarxPythonSDK/CxOne/dto/Sessions.py +9 -11
  369. CheckmarxPythonSDK/CxOne/dto/SeverityCounter.py +9 -9
  370. CheckmarxPythonSDK/CxOne/dto/SeveritySummary.py +1 -7
  371. CheckmarxPythonSDK/CxOne/dto/SinkFileSummary.py +1 -7
  372. CheckmarxPythonSDK/CxOne/dto/SinkNodeSummary.py +1 -7
  373. CheckmarxPythonSDK/CxOne/dto/SocialLinkRepresentation.py +0 -15
  374. CheckmarxPythonSDK/CxOne/dto/SourceFileSummary.py +1 -7
  375. CheckmarxPythonSDK/CxOne/dto/SourceNodeSummary.py +1 -7
  376. CheckmarxPythonSDK/CxOne/dto/SourcesTree.py +0 -11
  377. CheckmarxPythonSDK/CxOne/dto/SpiInfoRepresentation.py +12 -21
  378. CheckmarxPythonSDK/CxOne/dto/StartEnrich.py +2 -6
  379. CheckmarxPythonSDK/CxOne/dto/StatusDetails.py +28 -22
  380. CheckmarxPythonSDK/CxOne/dto/StatusSummary.py +1 -7
  381. CheckmarxPythonSDK/CxOne/dto/StrEnum.py +1 -1
  382. CheckmarxPythonSDK/CxOne/dto/SubCheck.py +8 -8
  383. CheckmarxPythonSDK/CxOne/dto/SubsetScan.py +15 -14
  384. CheckmarxPythonSDK/CxOne/dto/SynchronizationResult.py +19 -36
  385. CheckmarxPythonSDK/CxOne/dto/SystemInfoRepresentation.py +43 -86
  386. CheckmarxPythonSDK/CxOne/dto/TaskInfo.py +10 -17
  387. CheckmarxPythonSDK/CxOne/dto/TestLdapConnectionRepresentation.py +25 -49
  388. CheckmarxPythonSDK/CxOne/dto/TotalCounters.py +9 -8
  389. CheckmarxPythonSDK/CxOne/dto/Tree.py +13 -23
  390. CheckmarxPythonSDK/CxOne/dto/TriageRequest.py +2 -19
  391. CheckmarxPythonSDK/CxOne/dto/TriageResponse.py +8 -16
  392. CheckmarxPythonSDK/CxOne/dto/Upload.py +5 -12
  393. CheckmarxPythonSDK/CxOne/dto/User.py +15 -15
  394. CheckmarxPythonSDK/CxOne/dto/UserConsentRepresentation.py +0 -19
  395. CheckmarxPythonSDK/CxOne/dto/UserFederationMapperRepresentation.py +0 -19
  396. CheckmarxPythonSDK/CxOne/dto/UserFederationProviderRepresentation.py +0 -25
  397. CheckmarxPythonSDK/CxOne/dto/UserProfileAttributeGroupMetadata.py +0 -17
  398. CheckmarxPythonSDK/CxOne/dto/UserProfileAttributeMetadata.py +0 -23
  399. CheckmarxPythonSDK/CxOne/dto/UserProfileMetadata.py +2 -16
  400. CheckmarxPythonSDK/CxOne/dto/UserRepresentation.py +5 -71
  401. CheckmarxPythonSDK/CxOne/dto/UserWithResource.py +24 -25
  402. CheckmarxPythonSDK/CxOne/dto/UsersWithResourcesResponse.py +8 -10
  403. CheckmarxPythonSDK/CxOne/dto/VersionsOut.py +10 -9
  404. CheckmarxPythonSDK/CxOne/dto/WebError.py +0 -8
  405. CheckmarxPythonSDK/CxOne/dto/WebHook.py +13 -14
  406. CheckmarxPythonSDK/CxOne/dto/WebHookConfig.py +13 -20
  407. CheckmarxPythonSDK/CxOne/dto/WebHookInput.py +4 -11
  408. CheckmarxPythonSDK/CxOne/dto/WebHooksCollection.py +9 -11
  409. CheckmarxPythonSDK/CxOne/dto/WorkspaceQuery.py +1 -7
  410. CheckmarxPythonSDK/CxOne/dto/__init__.py +182 -172
  411. CheckmarxPythonSDK/CxOne/flagsAPI.py +15 -30
  412. CheckmarxPythonSDK/CxOne/healthCheckServiceAPI.py +29 -37
  413. CheckmarxPythonSDK/CxOne/kicsResultsAPI.py +58 -60
  414. CheckmarxPythonSDK/CxOne/logsAPI.py +44 -0
  415. CheckmarxPythonSDK/CxOne/projectsAPI.py +305 -551
  416. CheckmarxPythonSDK/CxOne/projectsOverviewAPI.py +145 -110
  417. CheckmarxPythonSDK/CxOne/queryEditorAPI.py +323 -179
  418. CheckmarxPythonSDK/CxOne/repoManagerAPI.py +103 -77
  419. CheckmarxPythonSDK/CxOne/repoStoreServiceAPI.py +86 -67
  420. CheckmarxPythonSDK/CxOne/reportAPI.py +111 -93
  421. CheckmarxPythonSDK/CxOne/resultsSummaryAPI.py +49 -50
  422. CheckmarxPythonSDK/CxOne/sastBestFixLocationAPI.py +57 -50
  423. CheckmarxPythonSDK/CxOne/sastMigrationAPI.py +48 -46
  424. CheckmarxPythonSDK/CxOne/sastQueriesAPI.py +55 -62
  425. CheckmarxPythonSDK/CxOne/sastQueriesAuditAPI.py +192 -135
  426. CheckmarxPythonSDK/CxOne/sastQueriesAuditPresetsAPI.py +143 -145
  427. CheckmarxPythonSDK/CxOne/sastResourceManagementServiceAPI.py +41 -52
  428. CheckmarxPythonSDK/CxOne/sastResultsAPI.py +215 -171
  429. CheckmarxPythonSDK/CxOne/sastResultsPredicatesAPI.py +127 -32
  430. CheckmarxPythonSDK/CxOne/sastResultsSummaryAPI.py +156 -101
  431. CheckmarxPythonSDK/CxOne/sastScanMetadataServiceAPI.py +53 -49
  432. CheckmarxPythonSDK/CxOne/scanConfigurationAPI.py +175 -146
  433. CheckmarxPythonSDK/CxOne/scannersResultsAPI.py +52 -45
  434. CheckmarxPythonSDK/CxOne/scansAPI.py +317 -256
  435. CheckmarxPythonSDK/CxOne/uploadsAPI.py +23 -16
  436. CheckmarxPythonSDK/CxOne/versionsAPI.py +13 -10
  437. CheckmarxPythonSDK/CxOne/webhookAPI.py +73 -43
  438. CheckmarxPythonSDK/CxPortalSoapApiSDK/CxAuditWebService.py +94 -69
  439. CheckmarxPythonSDK/CxPortalSoapApiSDK/CxPortalWebService.py +578 -360
  440. CheckmarxPythonSDK/CxPortalSoapApiSDK/config.py +21 -19
  441. CheckmarxPythonSDK/CxPortalSoapApiSDK/sudsClient.py +116 -0
  442. CheckmarxPythonSDK/CxReporting/api.py +17 -10
  443. CheckmarxPythonSDK/CxReporting/config.py +4 -5
  444. CheckmarxPythonSDK/CxReporting/dto/CreateReportDTO.py +25 -16
  445. CheckmarxPythonSDK/CxReporting/dto/CreateReportResponseDTO.py +1 -3
  446. CheckmarxPythonSDK/CxReporting/dto/FilterDTO.py +3 -1
  447. CheckmarxPythonSDK/CxReporting/dto/ReportStatusDTO.py +1 -1
  448. CheckmarxPythonSDK/CxRestAPISDK/AccessControlAPI.py +1 -2
  449. CheckmarxPythonSDK/CxRestAPISDK/ConfigurationAPI.py +25 -20
  450. CheckmarxPythonSDK/CxRestAPISDK/CustomFieldsAPI.py +6 -9
  451. CheckmarxPythonSDK/CxRestAPISDK/CustomTasksAPI.py +23 -47
  452. CheckmarxPythonSDK/CxRestAPISDK/CxSastXML/dto/CxXMLResults.py +48 -102
  453. CheckmarxPythonSDK/CxRestAPISDK/CxSastXML/dto/Line.py +6 -18
  454. CheckmarxPythonSDK/CxRestAPISDK/CxSastXML/dto/Path.py +14 -30
  455. CheckmarxPythonSDK/CxRestAPISDK/CxSastXML/dto/PathNode.py +12 -51
  456. CheckmarxPythonSDK/CxRestAPISDK/CxSastXML/dto/Query.py +34 -69
  457. CheckmarxPythonSDK/CxRestAPISDK/CxSastXML/dto/Result.py +38 -78
  458. CheckmarxPythonSDK/CxRestAPISDK/CxSastXML/dto/Snippet.py +5 -13
  459. CheckmarxPythonSDK/CxRestAPISDK/CxSastXML/dto/__init__.py +7 -7
  460. CheckmarxPythonSDK/CxRestAPISDK/CxSastXML/xml_results.py +17 -63
  461. CheckmarxPythonSDK/CxRestAPISDK/DataRetentionAPI.py +42 -54
  462. CheckmarxPythonSDK/CxRestAPISDK/EnginesAPI.py +118 -115
  463. CheckmarxPythonSDK/CxRestAPISDK/GeneralAPI.py +115 -78
  464. CheckmarxPythonSDK/CxRestAPISDK/OsaAPI.py +119 -184
  465. CheckmarxPythonSDK/CxRestAPISDK/ProjectsAPI.py +419 -410
  466. CheckmarxPythonSDK/CxRestAPISDK/QueriesAPI.py +53 -14
  467. CheckmarxPythonSDK/CxRestAPISDK/ScansAPI.py +423 -575
  468. CheckmarxPythonSDK/CxRestAPISDK/TeamAPI.py +13 -17
  469. CheckmarxPythonSDK/CxRestAPISDK/__init__.py +4 -4
  470. CheckmarxPythonSDK/CxRestAPISDK/config.py +21 -19
  471. CheckmarxPythonSDK/CxRestAPISDK/osa/dto/CxOsaLibrary.py +60 -66
  472. CheckmarxPythonSDK/CxRestAPISDK/osa/dto/CxOsaLicense.py +29 -34
  473. CheckmarxPythonSDK/CxRestAPISDK/osa/dto/CxOsaLocation.py +12 -12
  474. CheckmarxPythonSDK/CxRestAPISDK/osa/dto/CxOsaMatchType.py +13 -14
  475. CheckmarxPythonSDK/CxRestAPISDK/osa/dto/CxOsaScanDetail.py +26 -27
  476. CheckmarxPythonSDK/CxRestAPISDK/osa/dto/CxOsaSeverity.py +11 -13
  477. CheckmarxPythonSDK/CxRestAPISDK/osa/dto/CxOsaState.py +13 -14
  478. CheckmarxPythonSDK/CxRestAPISDK/osa/dto/CxOsaSummaryReport.py +29 -42
  479. CheckmarxPythonSDK/CxRestAPISDK/osa/dto/CxOsaVulnerability.py +37 -43
  480. CheckmarxPythonSDK/CxRestAPISDK/osa/dto/CxOsaVulnerabilityComment.py +13 -15
  481. CheckmarxPythonSDK/CxRestAPISDK/osa/dto/CxOsaVulnerabilityState.py +13 -14
  482. CheckmarxPythonSDK/CxRestAPISDK/sast/configuration/dto/CxSASTConfig.py +9 -11
  483. CheckmarxPythonSDK/CxRestAPISDK/sast/configuration/dto/__init__.py +1 -1
  484. CheckmarxPythonSDK/CxRestAPISDK/sast/dataRetention/dto/CxDataRetentionRequestStatus.py +14 -15
  485. CheckmarxPythonSDK/CxRestAPISDK/sast/dataRetention/dto/CxDataRetentionRequestStatusStage.py +11 -12
  486. CheckmarxPythonSDK/CxRestAPISDK/sast/dataRetention/dto/CxDefineDataRetentionDateRangeRequest.py +2 -2
  487. CheckmarxPythonSDK/CxRestAPISDK/sast/dataRetention/dto/CxDefineDataRetentionNumberOfScansRequest.py +7 -4
  488. CheckmarxPythonSDK/CxRestAPISDK/sast/dataRetention/dto/CxDefineDataRetentionResponse.py +11 -12
  489. CheckmarxPythonSDK/CxRestAPISDK/sast/dataRetention/dto/__init__.py +3 -1
  490. CheckmarxPythonSDK/CxRestAPISDK/sast/engines/dto/CxEngineConfiguration.py +13 -14
  491. CheckmarxPythonSDK/CxRestAPISDK/sast/engines/dto/CxEngineDedication.py +21 -18
  492. CheckmarxPythonSDK/CxRestAPISDK/sast/engines/dto/CxEngineServer.py +40 -54
  493. CheckmarxPythonSDK/CxRestAPISDK/sast/engines/dto/CxEngineServerStatus.py +12 -12
  494. CheckmarxPythonSDK/CxRestAPISDK/sast/engines/dto/CxRegisterEngineRequestBody.py +1 -1
  495. CheckmarxPythonSDK/CxRestAPISDK/sast/general/dto/CxServerLicenseData.py +52 -46
  496. CheckmarxPythonSDK/CxRestAPISDK/sast/general/dto/CxSupportedLanguage.py +13 -7
  497. CheckmarxPythonSDK/CxRestAPISDK/sast/general/dto/CxTranslationInput.py +3 -5
  498. CheckmarxPythonSDK/CxRestAPISDK/sast/general/dto/CxUserPersistence.py +1 -3
  499. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/__init__.py +0 -1
  500. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxCreateProjectRequest.py +4 -4
  501. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxCreateProjectResponse.py +14 -11
  502. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxCredential.py +4 -1
  503. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxCustomRemoteSourceSettings.py +16 -16
  504. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxGitSettings.py +13 -8
  505. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxIssueTrackingSystem.py +15 -16
  506. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxIssueTrackingSystemDetail.py +18 -16
  507. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxIssueTrackingSystemField.py +27 -21
  508. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxIssueTrackingSystemFieldAllowedValue.py +11 -13
  509. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxIssueTrackingSystemJira.py +10 -8
  510. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxIssueTrackingSystemJiraField.py +1 -0
  511. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxIssueTrackingSystemType.py +19 -16
  512. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxLink.py +11 -13
  513. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxPerforceSettings.py +19 -20
  514. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxProject.py +48 -37
  515. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxProjectExcludeSettings.py +16 -17
  516. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxProjectQueueSetting.py +16 -18
  517. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxSVNSettings.py +23 -20
  518. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxSharedRemoteSourceSettingsRequest.py +7 -6
  519. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxSharedRemoteSourceSettingsResponse.py +13 -12
  520. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxSourceSettingsLink.py +13 -15
  521. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxTFSSettings.py +18 -19
  522. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxURI.py +8 -9
  523. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxUpdateProjectNameTeamIdRequest.py +5 -6
  524. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/CxUpdateProjectRequest.py +11 -7
  525. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/__init__.py +3 -51
  526. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/customFields/CxCustomField.py +18 -21
  527. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/customFields/__init__.py +0 -1
  528. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/customTasks/CxCustomTask.py +18 -18
  529. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/customTasks/__init__.py +0 -1
  530. CheckmarxPythonSDK/CxRestAPISDK/sast/projects/dto/presets/CxPreset.py +18 -18
  531. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxCreateNewScanResponse.py +11 -13
  532. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxDateAndTime.py +15 -16
  533. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxFinishedScanStatus.py +11 -12
  534. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxLanguageState.py +15 -17
  535. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxLanguageStatistic.py +33 -31
  536. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxPolicyFindingResponse.py +11 -12
  537. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxPolicyFindingsStatus.py +15 -16
  538. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxRegisterScanReportResponse.py +12 -14
  539. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxResultsStatistics.py +9 -11
  540. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxScanDetail.py +70 -66
  541. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxScanFailedGeneralQueries.py +13 -13
  542. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxScanFailedQueries.py +12 -12
  543. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxScanFileCountOfLanguage.py +10 -13
  544. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxScanParsedFiles.py +22 -12
  545. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxScanParsedFilesMetric.py +17 -17
  546. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxScanQueueDetail.py +49 -57
  547. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxScanReportStatus.py +19 -16
  548. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxScanReportXmlContent.py +15 -7
  549. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxScanResult.py +136 -97
  550. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxScanResultAttackVector.py +15 -14
  551. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxScanResultAttackVectorByBFL.py +25 -17
  552. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxScanResultLabelsFields.py +17 -9
  553. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxScanResultNode.py +30 -33
  554. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxScanResultsPage.py +13 -12
  555. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxScanStage.py +11 -13
  556. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxScanState.py +25 -26
  557. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxScanStatistics.py +57 -72
  558. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxScanSucceededGeneralQueries.py +11 -12
  559. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxScanType.py +11 -13
  560. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxSchedulingSettings.py +5 -4
  561. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxStatisticsResult.py +28 -4
  562. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxStatus.py +14 -15
  563. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/CxStatusDetail.py +11 -13
  564. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/__init__.py +3 -43
  565. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/scanSettings/CxCreateScanSettingsRequestBody.py +19 -5
  566. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/scanSettings/CxCreateScanSettingsResponse.py +11 -13
  567. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/scanSettings/CxEmailNotification.py +13 -14
  568. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/scanSettings/CxLanguage.py +11 -12
  569. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/scanSettings/CxPostScanActionConditions.py +14 -13
  570. CheckmarxPythonSDK/CxRestAPISDK/sast/scans/dto/scanSettings/CxScanSettings.py +25 -40
  571. CheckmarxPythonSDK/CxRestAPISDK/team/dto/CxTeam.py +16 -25
  572. CheckmarxPythonSDK/CxScaApiSDK/AccessControlAPI.py +3 -3
  573. CheckmarxPythonSDK/CxScaApiSDK/api.py +1036 -673
  574. CheckmarxPythonSDK/CxScaApiSDK/config.py +12 -15
  575. CheckmarxPythonSDK/__init__.py +2 -3
  576. CheckmarxPythonSDK/__version__.py +1 -1
  577. CheckmarxPythonSDK/api_client.py +103 -154
  578. CheckmarxPythonSDK/configuration.py +2 -2
  579. CheckmarxPythonSDK/external/sarif/dto/CxCategory.py +26 -14
  580. CheckmarxPythonSDK/external/sarif/dto/CxSarifCategory.py +6 -4
  581. CheckmarxPythonSDK/external/sarif/dto/SarifArtifactLocation.py +1 -3
  582. CheckmarxPythonSDK/external/sarif/dto/SarifDescription.py +1 -3
  583. CheckmarxPythonSDK/external/sarif/dto/SarifDriver.py +9 -7
  584. CheckmarxPythonSDK/external/sarif/dto/SarifDriverRule.py +21 -10
  585. CheckmarxPythonSDK/external/sarif/dto/SarifLocation.py +1 -3
  586. CheckmarxPythonSDK/external/sarif/dto/SarifMessage.py +1 -3
  587. CheckmarxPythonSDK/external/sarif/dto/SarifPhysicalLocation.py +7 -5
  588. CheckmarxPythonSDK/external/sarif/dto/SarifPhysicalLocationPropertyBag.py +6 -4
  589. CheckmarxPythonSDK/external/sarif/dto/SarifRegion.py +7 -5
  590. CheckmarxPythonSDK/external/sarif/dto/SarifResultPropertyBag.py +9 -7
  591. CheckmarxPythonSDK/external/sarif/dto/SarifResultsCollection.py +7 -5
  592. CheckmarxPythonSDK/external/sarif/dto/SarifRun.py +7 -5
  593. CheckmarxPythonSDK/external/sarif/dto/SarifScanResult.py +11 -9
  594. CheckmarxPythonSDK/external/sarif/dto/SarifTaxa.py +9 -7
  595. CheckmarxPythonSDK/external/sarif/dto/SarifTaxaPropertyBag.py +25 -13
  596. CheckmarxPythonSDK/external/sarif/dto/SarifTaxaRelationship.py +1 -3
  597. CheckmarxPythonSDK/external/sarif/dto/SarifTaxaRelationshipTarget.py +7 -5
  598. CheckmarxPythonSDK/external/sarif/dto/SarifTaxonomy.py +9 -7
  599. CheckmarxPythonSDK/external/sarif/dto/SarifTool.py +1 -3
  600. CheckmarxPythonSDK/external/sarif/dto/SarifToolComponent.py +7 -5
  601. CheckmarxPythonSDK/external/sarif/sast_xml_to_sarif.py +124 -65
  602. CheckmarxPythonSDK/external/sarif/stig_mapping.py +2 -2
  603. CheckmarxPythonSDK/logger_setup.py +10 -9
  604. CheckmarxPythonSDK/rate_limiter.py +33 -39
  605. CheckmarxPythonSDK/utilities/CxError.py +13 -6
  606. CheckmarxPythonSDK/utilities/compat.py +1 -0
  607. CheckmarxPythonSDK/utilities/configUtility.py +36 -12
  608. {checkmarxpythonsdk-1.8.0.dist-info → checkmarxpythonsdk-1.8.2.dist-info}/METADATA +29 -26
  609. checkmarxpythonsdk-1.8.2.dist-info/RECORD +648 -0
  610. {checkmarxpythonsdk-1.8.0.dist-info → checkmarxpythonsdk-1.8.2.dist-info}/WHEEL +1 -1
  611. CheckmarxPythonSDK/CxOne/dto/RichProject.py +0 -75
  612. CheckmarxPythonSDK/CxOne/utilities.py +0 -58
  613. CheckmarxPythonSDK/CxPortalSoapApiSDK/zeepClient.py +0 -60
  614. checkmarxpythonsdk-1.8.0.dist-info/RECORD +0 -648
  615. {checkmarxpythonsdk-1.8.0.dist-info/licenses → checkmarxpythonsdk-1.8.2.dist-info}/LICENSE +0 -0
  616. {checkmarxpythonsdk-1.8.0.dist-info → checkmarxpythonsdk-1.8.2.dist-info}/top_level.txt +0 -0
@@ -1,28 +1,23 @@
1
- # encoding: utf-8
1
+ from dataclasses import dataclass
2
+ from typing import Optional
2
3
 
3
4
 
4
- class AuthenticationProvider(object):
5
+ @dataclass
6
+ class AuthenticationProvider:
7
+ id: Optional[int] = None
8
+ name: Optional[str] = None
9
+ provider_id: Optional[int] = None
10
+ provider_type: Optional[str] = None
11
+ is_external: Optional[bool] = None
12
+ active: Optional[bool] = None
5
13
 
6
- def __init__(self, authentication_provider_id, name, provider_id, provider_type, is_external, active):
7
- """
8
-
9
- Args:
10
- authentication_provider_id (int):
11
- name (str):
12
- provider_id (int):
13
- provider_type (str):
14
- is_external (bool):
15
- active (bool):
16
- """
17
- self.id = authentication_provider_id
18
- self.name = name
19
- self.provider_id = provider_id
20
- self.provider_type = provider_type
21
- self.is_external = is_external
22
- self.active = active
23
-
24
- def __str__(self):
25
- return """AuthenticationProvider(id={}, name={}, provider_id={},
26
- provider_type={}, is_external={}, active={})""".format(
27
- self.id, self.name, self.provider_id, self.provider_type, self.is_external, self.active
14
+ @classmethod
15
+ def from_dict(cls, item: dict) -> "AuthenticationProvider":
16
+ return cls(
17
+ id=item.get("id"),
18
+ name=item.get("name"),
19
+ provider_id=item.get("providerId"),
20
+ provider_type=item.get("providerType"),
21
+ is_external=item.get("isExternal"),
22
+ active=item.get("active"),
28
23
  )
@@ -1,11 +1,17 @@
1
- class Configuration(object):
2
- def __init__(self, registration_link, is_assign_all_roles_by_manage_users_enabled, is_multitenancy_mode):
3
- self.registration_link = registration_link
4
- self.is_assign_all_roles_by_manage_users_enabled = is_assign_all_roles_by_manage_users_enabled
5
- self.is_multitenancy_mode = is_multitenancy_mode
1
+ from dataclasses import dataclass
2
+ from typing import Optional
6
3
 
7
- def __str__(self):
8
- return """Configuration(registration_link={},
9
- is_assign_all_roles_by_manage_users_enabled={}, is_multitenancy_mode={})""".format(
10
- self.registration_link, self.is_assign_all_roles_by_manage_users_enabled, self.is_multitenancy_mode
4
+
5
+ @dataclass
6
+ class Configuration:
7
+ registration_link: Optional[str] = None
8
+ is_assign_all_roles_by_manage_users_enabled: Optional[bool] = None
9
+ is_multitenancy_mode: Optional[bool] = None
10
+
11
+ @classmethod
12
+ def from_dict(cls, item: dict) -> "Configuration":
13
+ return cls(
14
+ registration_link=item.get("registrationLink"),
15
+ is_assign_all_roles_by_manage_users_enabled=item.get("isAssignAllRolesByManageUsersEnabled"),
16
+ is_multitenancy_mode=item.get("isMultitenancyMode"),
11
17
  )
@@ -1,17 +1,15 @@
1
- # encoding: utf-8
1
+ from dataclasses import dataclass
2
+ from typing import Optional
2
3
 
3
4
 
4
- class LDAPGroup(object):
5
+ @dataclass
6
+ class LDAPGroup:
7
+ name: Optional[str] = None
8
+ dn: Optional[str] = None
5
9
 
6
- def __init__(self, name, dn):
7
- """
8
-
9
- Args:
10
- name (str):
11
- dn (str):
12
- """
13
- self.name = name
14
- self.dn = dn
15
-
16
- def __str__(self):
17
- return """LDAPGroup(name={}, dn={})""".format(self.name, self.dn)
10
+ @classmethod
11
+ def from_dict(cls, item: dict) -> "LDAPGroup":
12
+ return cls(
13
+ name=item.get("name"),
14
+ dn=item.get("dn"),
15
+ )
@@ -1,24 +1,16 @@
1
- class LDAPGroupAndRoleMappingDetail(object):
2
- def __init__(self, role_id, ldap_group_dn, ldap_group_display_name):
3
- """
1
+ from dataclasses import dataclass
2
+ from typing import Optional
4
3
 
5
- Args:
6
- role_id (int):
7
- ldap_group_dn (str):
8
- ldap_group_display_name (str):
9
- """
10
- self.role_id = role_id
11
- self.ldap_group_dn = ldap_group_dn
12
- self.ldap_group_display_name = ldap_group_display_name
13
4
 
14
- def get_dict(self):
5
+ @dataclass
6
+ class LDAPGroupAndRoleMappingDetail:
7
+ role_id: Optional[int] = None
8
+ ldap_group_dn: Optional[str] = None
9
+ ldap_group_display_name: Optional[str] = None
10
+
11
+ def to_dict(self) -> dict:
15
12
  return {
16
13
  "roleId": self.role_id,
17
14
  "ldapGroupDn": self.ldap_group_dn,
18
- "ldapGroupDisplayName": self.ldap_group_display_name
19
- }
20
-
21
- def __str__(self):
22
- return """LDAPGroupAndRoleMappingDetail(role_id={}, ldap_group_dn={}, ldap_group_display_name={})""".format(
23
- self.role_id, self.ldap_group_dn, self.ldap_group_display_name
24
- )
15
+ "ldapGroupDisplayName": self.ldap_group_display_name,
16
+ }
@@ -1,25 +1,21 @@
1
- # encoding: utf-8
1
+ from dataclasses import dataclass
2
+ from typing import Optional
2
3
 
3
4
 
4
- class LDAPRoleMapping(object):
5
- def __init__(self, ldap_role_mapping_id, ldap_server_id, role_id, ldap_group_dn, ldap_group_display_name):
6
- """
5
+ @dataclass
6
+ class LDAPRoleMapping:
7
+ id: Optional[int] = None
8
+ ldap_server_id: Optional[int] = None
9
+ role_id: Optional[int] = None
10
+ ldap_group_dn: Optional[str] = None
11
+ ldap_group_display_name: Optional[str] = None
7
12
 
8
- Args:
9
- ldap_role_mapping_id (int):
10
- ldap_server_id (int):
11
- role_id (int):
12
- ldap_group_dn (str):
13
- ldap_group_display_name (str):
14
- """
15
- self.id = ldap_role_mapping_id,
16
- self.ldap_server_id = ldap_server_id,
17
- self.role_id = role_id,
18
- self.ldap_group_dn = ldap_group_dn,
19
- self.ldap_group_display_name = ldap_group_display_name
20
-
21
- def __str__(self):
22
- return """LDAPRoleMapping(id={}, ldap_server_id={}, role_id={}, ldap_group_dn={},
23
- ldap_group_display_name={})""".format(
24
- self.id, self.ldap_server_id, self.role_id, self.ldap_group_dn, self.ldap_group_display_name
13
+ @classmethod
14
+ def from_dict(cls, item: dict) -> "LDAPRoleMapping":
15
+ return cls(
16
+ id=item.get("id"),
17
+ ldap_server_id=item.get("ldapServerId"),
18
+ role_id=item.get("roleId"),
19
+ ldap_group_dn=item.get("ldapGroupDn"),
20
+ ldap_group_display_name=item.get("ldapGroupDisplayName"),
25
21
  )
@@ -1,98 +1,73 @@
1
- # encoding: utf-8
1
+ from dataclasses import dataclass
2
+ from typing import Optional
2
3
 
3
4
 
4
- class LDAPServer(object):
5
+ @dataclass
6
+ class LDAPServer:
7
+ id: Optional[int] = None
8
+ active: Optional[bool] = None
9
+ name: Optional[str] = None
10
+ host: Optional[str] = None
11
+ port: Optional[int] = None
12
+ username: Optional[str] = None
13
+ use_ssl: Optional[bool] = None
14
+ verify_ssl_certificate: Optional[bool] = None
15
+ ldap_directory_type: Optional[str] = None
16
+ sso_enabled: Optional[bool] = None
17
+ mapped_domain_id: Optional[int] = None
18
+ based_dn: Optional[str] = None
19
+ additional_user_dn: Optional[str] = None
20
+ user_object_filter: Optional[str] = None
21
+ user_object_class: Optional[str] = None
22
+ username_attribute: Optional[str] = None
23
+ first_name_attribute: Optional[str] = None
24
+ last_name_attribute: Optional[str] = None
25
+ email_attribute: Optional[str] = None
26
+ synchronization_enabled: Optional[bool] = None
27
+ default_team_id: Optional[int] = None
28
+ default_role_id: Optional[int] = None
29
+ update_team_and_role_upon_login_enabled: Optional[bool] = None
30
+ periodical_synchronization_enabled: Optional[bool] = None
31
+ advanced_team_and_role_mapping_enabled: Optional[bool] = None
32
+ additional_group_dn: Optional[str] = None
33
+ group_object_class: Optional[str] = None
34
+ group_object_filter: Optional[str] = None
35
+ group_name_attribute: Optional[str] = None
36
+ group_members_attribute: Optional[str] = None
37
+ user_membership_attribute: Optional[str] = None
5
38
 
6
- def __init__(self, ldap_server_id, active, name, host, port, username, use_ssl, verify_ssl_certificate,
7
- ldap_directory_type, sso_enabled, mapped_domain_id, based_dn, additional_user_dn, user_object_filter,
8
- user_object_class, username_attribute, first_name_attribute, last_name_attribute, email_attribute,
9
- synchronization_enabled, default_team_id, default_role_id, update_team_and_role_upon_login_enabled,
10
- periodical_synchronization_enabled, advanced_team_and_role_mapping_enabled, additional_group_dn,
11
- group_object_class, group_object_filter, group_name_attribute, group_members_attribute,
12
- user_membership_attribute):
13
- """
14
-
15
- Args:
16
- ldap_server_id (int):
17
- active (bool) :
18
- name (str):
19
- host (str):
20
- port (int):
21
- username (str):
22
- use_ssl (bool):
23
- verify_ssl_certificate (bool):
24
- ldap_directory_type (str):
25
- sso_enabled (bool):
26
- mapped_domain_id (int):
27
- based_dn (str):
28
- additional_user_dn (str):
29
- user_object_filter (str):
30
- user_object_class (str):
31
- username_attribute (str):
32
- first_name_attribute (str):
33
- last_name_attribute (str):
34
- email_attribute (str):
35
- synchronization_enabled (bool):
36
- default_team_id (int):
37
- default_role_id (int):
38
- update_team_and_role_upon_login_enabled (bool):
39
- periodical_synchronization_enabled (bool):
40
- advanced_team_and_role_mapping_enabled (bool):
41
- additional_group_dn (str):
42
- group_object_class (str):
43
- group_object_filter (str):
44
- group_name_attribute (str):
45
- group_members_attribute (str):
46
- user_membership_attribute (str):
47
- """
48
- self.id = ldap_server_id
49
- self.active = active
50
- self.name = name
51
- self.host = host
52
- self.port = port
53
- self.username = username
54
- self.use_ssl = use_ssl
55
- self.verify_ssl_certificate = verify_ssl_certificate
56
- self.ldap_directory_type = ldap_directory_type
57
- self.sso_enabled = sso_enabled
58
- self.mapped_domain_id = mapped_domain_id
59
- self.based_dn = based_dn
60
- self.additional_user_dn = additional_user_dn
61
- self.user_object_filter = user_object_filter
62
- self.user_object_class = user_object_class
63
- self.username_attribute = username_attribute
64
- self.first_name_attribute = first_name_attribute
65
- self.last_name_attribute = last_name_attribute
66
- self.email_attribute = email_attribute
67
- self.synchronization_enabled = synchronization_enabled
68
- self.default_team_id = default_team_id
69
- self.default_role_id = default_role_id
70
- self.update_team_and_role_upon_login_enabled = update_team_and_role_upon_login_enabled
71
- self.periodical_synchronization_enabled = periodical_synchronization_enabled
72
- self.advanced_team_and_role_mapping_enabled = advanced_team_and_role_mapping_enabled
73
- self.additional_group_dn = additional_group_dn
74
- self.group_object_class = group_object_class
75
- self.group_object_filter = group_object_filter
76
- self.group_name_attribute = group_name_attribute
77
- self.group_members_attribute = group_members_attribute
78
- self.user_membership_attribute = user_membership_attribute
79
-
80
- def __str__(self):
81
- return """LDAPServer(id={}, active={}, name={}, host={}, port={}, username={}, use_ssl={},
82
- verify_ssl_certificate={}, ldap_directory_type={}, sso_enabled={}, mapped_domain_id={}, based_dn={},
83
- additional_user_dn={}, user_object_filter={}, user_object_class={}, username_attribute={},
84
- first_name_attribute={}, last_name_attribute={}, email_attribute={}, synchronization_enabled={},
85
- default_team_id={}, default_role_id={}, update_team_and_role_upon_login_enabled={},
86
- periodical_synchronization_enabled={}, advanced_team_and_role_mapping_enabled={}, additional_group_dn={},
87
- group_object_class={}, group_object_filter={}, group_name_attribute={}, group_members_attribute={},
88
- user_membership_attribute={})""".format(
89
- self.id, self.active, self.name, self.host, self.port, self.username, self.use_ssl,
90
- self.verify_ssl_certificate, self.ldap_directory_type, self.sso_enabled, self.mapped_domain_id,
91
- self.based_dn, self.additional_user_dn, self.user_object_filter,
92
- self.user_object_class, self.username_attribute, self.first_name_attribute, self.last_name_attribute,
93
- self.email_attribute, self.synchronization_enabled, self.default_team_id, self.default_role_id,
94
- self.update_team_and_role_upon_login_enabled, self.periodical_synchronization_enabled,
95
- self.advanced_team_and_role_mapping_enabled, self.additional_group_dn,
96
- self.group_object_class, self.group_object_filter, self.group_name_attribute, self.group_members_attribute,
97
- self.user_membership_attribute
39
+ @classmethod
40
+ def from_dict(cls, item: dict) -> "LDAPServer":
41
+ return cls(
42
+ id=item.get("id"),
43
+ active=item.get("active"),
44
+ name=item.get("name"),
45
+ host=item.get("host"),
46
+ port=item.get("port"),
47
+ username=item.get("username"),
48
+ use_ssl=item.get("useSsl"),
49
+ verify_ssl_certificate=item.get("verifySslCertificate"),
50
+ ldap_directory_type=item.get("ldapDirectoryType"),
51
+ sso_enabled=item.get("ssoEnabled"),
52
+ mapped_domain_id=item.get("mappedDomainId"),
53
+ based_dn=item.get("baseDn"),
54
+ additional_user_dn=item.get("additionalUserDn"),
55
+ user_object_filter=item.get("userObjectFilter"),
56
+ user_object_class=item.get("userObjectClass"),
57
+ username_attribute=item.get("usernameAttribute"),
58
+ first_name_attribute=item.get("firstNameAttribute"),
59
+ last_name_attribute=item.get("lastNameAttribute"),
60
+ email_attribute=item.get("emailAttribute"),
61
+ synchronization_enabled=item.get("synchronizationEnabled"),
62
+ default_team_id=item.get("defaultTeamId"),
63
+ default_role_id=item.get("defaultRoleId"),
64
+ update_team_and_role_upon_login_enabled=item.get("updateTeamAndRoleUponLoginEnabled"),
65
+ periodical_synchronization_enabled=item.get("periodicalSynchronizationEnabled"),
66
+ advanced_team_and_role_mapping_enabled=item.get("advancedTeamAndRoleMappingEnabled"),
67
+ additional_group_dn=item.get("additionalGroupDn"),
68
+ group_object_class=item.get("groupObjectClass"),
69
+ group_object_filter=item.get("groupObjectFilter"),
70
+ group_name_attribute=item.get("groupNameAttribute"),
71
+ group_members_attribute=item.get("groupMembersAttribute"),
72
+ user_membership_attribute=item.get("userMembershipAttribute"),
98
73
  )
@@ -1,27 +1,21 @@
1
- # encoding: utf-8
1
+ from dataclasses import dataclass
2
+ from typing import Optional
2
3
 
3
4
 
4
- class LDAPTeamMapping(object):
5
+ @dataclass
6
+ class LDAPTeamMapping:
7
+ id: Optional[int] = None
8
+ ldap_server_id: Optional[int] = None
9
+ team_id: Optional[int] = None
10
+ ldap_group_dn: Optional[str] = None
11
+ ldap_group_display_name: Optional[str] = None
5
12
 
6
- def __init__(self, ldap_team_mapping_id=None, ldap_server_id=None, team_id=None, ldap_group_dn=None,
7
- ldap_group_display_name=None):
8
- """
9
-
10
- Args:
11
- ldap_team_mapping_id (int):
12
- ldap_server_id (int):
13
- team_id (int):
14
- ldap_group_dn (str):
15
- ldap_group_display_name (str):
16
- """
17
- self.id = ldap_team_mapping_id
18
- self.ldap_server_id = ldap_server_id
19
- self.team_id = team_id
20
- self.ldap_group_dn = ldap_group_dn
21
- self.ldap_group_display_name = ldap_group_display_name
22
-
23
- def __str__(self):
24
- return """LDAPTeamMapping(id={}, ldap_server_id={}, team_id={}, ldap_group_dn={},
25
- ldap_group_display_name={})""".format(
26
- self.id, self.ldap_server_id, self.team_id, self.ldap_group_dn, self.ldap_group_display_name
13
+ @classmethod
14
+ def from_dict(cls, item: dict) -> "LDAPTeamMapping":
15
+ return cls(
16
+ id=item.get("id"),
17
+ ldap_server_id=item.get("ldapServerId"),
18
+ team_id=item.get("teamId"),
19
+ ldap_group_dn=item.get("ldapGroupDn"),
20
+ ldap_group_display_name=item.get("ldapGroupDisplayName"),
27
21
  )
@@ -1,46 +1,37 @@
1
- # encoding: utf-8
1
+ from dataclasses import dataclass
2
+ from typing import Optional
2
3
 
3
4
 
4
- class MyProfile(object):
5
+ @dataclass
6
+ class MyProfile:
7
+ id: Optional[int] = None
8
+ username: Optional[str] = None
9
+ first_name: Optional[str] = None
10
+ last_name: Optional[str] = None
11
+ email: Optional[str] = None
12
+ phone_number: Optional[str] = None
13
+ cellphone_number: Optional[str] = None
14
+ job_title: Optional[str] = None
15
+ other: Optional[str] = None
16
+ country: Optional[str] = None
17
+ locale_id: Optional[int] = None
18
+ teams: Optional[list] = None
19
+ authentication_provider_id: Optional[int] = None
5
20
 
6
- def __init__(self, profile_id, username, first_name, last_name, email, phone_number, cellphone_number, job_title,
7
- other, country, locale_id, teams, authentication_provider_id):
8
- """
9
-
10
- Args:
11
- profile_id (int):
12
- username (str):
13
- first_name (str):
14
- last_name (str):
15
- email (str):
16
- phone_number (str):
17
- cellphone_number (str):
18
- job_title (str):
19
- other (str):
20
- country (str):
21
- locale_id (int):
22
- teams (str):
23
- authentication_provider_id (int):
24
- """
25
- self.id = profile_id
26
- self.username = username
27
- self.first_name = first_name
28
- self.last_name = last_name
29
- self.email = email
30
- self.phone_number = phone_number
31
- self.cellphone_number = cellphone_number
32
- self.job_title = job_title
33
- self.other = other
34
- self.country = country
35
- self.locale_id = locale_id
36
- self.teams = teams
37
- self.authentication_provider_id = authentication_provider_id
38
-
39
- def __str__(self):
40
- return """MyProfile(id={}, username={}, first_name={}, last_name={}, email={}, phone_number={},
41
- cellphone_number={}, job_title={}, other={}, country={}, locale_id={}, teams={},
42
- authentication_provider_id={})""".format(
43
- self.id, self.username, self.first_name, self.last_name, self.email, self.phone_number,
44
- self.cellphone_number, self.job_title, self.other, self.country, self.locale_id, self.teams,
45
- self.authentication_provider_id
21
+ @classmethod
22
+ def from_dict(cls, item: dict) -> "MyProfile":
23
+ return cls(
24
+ id=item.get("id"),
25
+ username=item.get("userName"),
26
+ first_name=item.get("firstName"),
27
+ last_name=item.get("lastName"),
28
+ email=item.get("email"),
29
+ phone_number=item.get("phoneNumber"),
30
+ cellphone_number=item.get("cellPhoneNumber"),
31
+ job_title=item.get("jobTitle"),
32
+ other=item.get("other"),
33
+ country=item.get("country"),
34
+ locale_id=item.get("localeId"),
35
+ teams=item.get("teams"),
36
+ authentication_provider_id=item.get("authenticationProviderId"),
46
37
  )
@@ -1,98 +1,71 @@
1
- # encoding: utf-8
1
+ from dataclasses import dataclass
2
+ from typing import List, Optional
2
3
 
3
4
 
4
- class OIDCClient(object):
5
+ @dataclass
6
+ class OIDCClient:
7
+ id: Optional[int] = None
8
+ update_access_token_claims_on_refresh: Optional[bool] = None
9
+ access_token_type: Optional[int] = None
10
+ include_jwt_id: Optional[bool] = None
11
+ always_include_user_claims_in_id_token: Optional[bool] = None
12
+ client_id: Optional[str] = None
13
+ client_name: Optional[str] = None
14
+ allow_offline_access: Optional[bool] = None
15
+ client_secrets: Optional[List[str]] = None
16
+ allow_grant_types: Optional[List[str]] = None
17
+ allowed_scopes: Optional[List[str]] = None
18
+ enabled: Optional[bool] = None
19
+ require_client_secret: Optional[bool] = None
20
+ redirect_uris: Optional[List[str]] = None
21
+ post_logout_redirect_uris: Optional[List[str]] = None
22
+ front_channel_logout_uri: Optional[str] = None
23
+ front_channel_logout_session_required: Optional[bool] = None
24
+ back_channel_logout_uri: Optional[str] = None
25
+ back_channel_logout_session_required: Optional[bool] = None
26
+ identity_token_life_time: Optional[int] = None
27
+ access_token_life_time: Optional[int] = None
28
+ authorization_code_life_time: Optional[int] = None
29
+ absolute_refresh_token_life_time: Optional[int] = None
30
+ sliding_refresh_token_life_time: Optional[int] = None
31
+ refresh_token_usage: Optional[int] = None
32
+ refresh_token_expiration: Optional[int] = None
33
+ allowed_cors_origins: Optional[List[str]] = None
34
+ allowed_access_tokens_via_browser: Optional[bool] = None
35
+ claims: Optional[List[str]] = None
36
+ client_claims_prefix: Optional[str] = None
5
37
 
6
- def __init__(self, oidc_client_id, update_access_token_claims_on_refresh, access_token_type, include_jwt_id,
7
- always_include_user_claims_in_id_token, client_id, client_name, allow_offline_access,
8
- client_secrets, allow_grant_types, allowed_scopes, enabled, require_client_secret, redirect_uris,
9
- post_logout_redrect_uris, front_channel_logout_uri, front_channel_logout_session_required,
10
- back_channel_logout_uri, back_channel_logout_session_required, identity_token_life_time,
11
- access_token_life_time, authorization_code_life_time, absolute_refresh_token_life_time,
12
- sliding_refresh_token_life_time, refresh_token_usage, refresh_token_expiration, allowed_cors_origins,
13
- allowed_access_tokens_via_browser, claims, client_claims_prefix):
14
- """
15
-
16
- Args:
17
- oidc_client_id (int):
18
- update_access_token_claims_on_refresh (bool):
19
- access_token_type (int):
20
- include_jwt_id (bool):
21
- always_include_user_claims_in_id_token (bool):
22
- client_id (str):
23
- client_name (str):
24
- allow_offline_access (bool):
25
- client_secrets (list[str]):
26
- allow_grant_types (list[str]):
27
- allowed_scopes (list[str]):
28
- enabled (bool):
29
- require_client_secret (bool):
30
- redirect_uris (list):
31
- post_logout_redrect_uris (list):
32
- front_channel_logout_uri (str):
33
- front_channel_logout_session_required (bool):
34
- back_channel_logout_uri (str):
35
- back_channel_logout_session_required (bool):
36
- identity_token_life_time (int):
37
- access_token_life_time (int):
38
- authorization_code_life_time (int):
39
- absolute_refresh_token_life_time (int):
40
- sliding_refresh_token_life_time (int):
41
- refresh_token_usage (int):
42
- refresh_token_expiration (int):
43
- allowed_cors_origins (list):
44
- allowed_access_tokens_via_browser (bool):
45
- claims (list):
46
- client_claims_prefix (str):
47
- """
48
- self.oidc_client_id = oidc_client_id
49
- self.update_access_token_claims_on_refresh = update_access_token_claims_on_refresh
50
- self.access_token_type = access_token_type
51
- self.include_jwt_id = include_jwt_id
52
- self.always_include_user_claims_in_id_token = always_include_user_claims_in_id_token
53
- self.client_id = client_id
54
- self.client_name = client_name
55
- self.allow_offline_access = allow_offline_access
56
- self.client_secrets = client_secrets
57
- self.allow_grant_types = allow_grant_types
58
- self.allowed_scopes = allowed_scopes
59
- self.enabled = enabled
60
- self.require_client_secret = require_client_secret
61
- self.redirect_uris = redirect_uris
62
- self.post_logout_redrect_uris = post_logout_redrect_uris
63
- self.front_channel_logout_uri = front_channel_logout_uri
64
- self.front_channel_logout_session_required = front_channel_logout_session_required
65
- self.back_channel_logout_uri = back_channel_logout_uri
66
- self.back_channel_logout_session_required = back_channel_logout_session_required
67
- self.identity_token_life_time = identity_token_life_time
68
- self.access_token_life_time = access_token_life_time
69
- self.authorization_code_life_time = authorization_code_life_time
70
- self.absolute_refresh_token_life_time = absolute_refresh_token_life_time
71
- self.sliding_refresh_token_life_time = sliding_refresh_token_life_time
72
- self.refresh_token_usage = refresh_token_usage
73
- self.refresh_token_expiration = refresh_token_expiration
74
- self.allowed_cors_origins = allowed_cors_origins
75
- self.allowed_access_tokens_via_browser = allowed_access_tokens_via_browser
76
- self.claims = claims
77
- self.client_claims_prefix = client_claims_prefix
78
-
79
- def __str__(self):
80
- return """OIDCClient(oidc_client_id={}, update_access_token_claims_on_refresh={}, access_token_type={},
81
- include_jwt_id={}, always_include_user_claims_in_id_token={}, client_id={}, client_name={},
82
- allow_offline_access={}, client_secrets={}, allow_grant_types={}, allowed_scopes={}, enabled={},
83
- require_client_secret={}, redirect_uris={}, post_logout_redrect_uris={}, front_channel_logout_uri={},
84
- front_channel_logout_session_required={}, back_channel_logout_uri={}, back_channel_logout_session_required={},
85
- identity_token_life_time={}, access_token_life_time={}, authorization_code_life_time={},
86
- absolute_refresh_token_life_time={}, sliding_refresh_token_life_time={}, refresh_token_usage={},
87
- refresh_token_expiration={}, allowed_cors_origins={}, allowed_access_tokens_via_browser={}, claims={},
88
- client_claims_prefix={})""".format(
89
- self.oidc_client_id, self.update_access_token_claims_on_refresh, self.access_token_type,
90
- self.include_jwt_id, self.always_include_user_claims_in_id_token, self.client_id, self.client_name,
91
- self.allow_offline_access, self.client_secrets, self.allow_grant_types, self.allowed_scopes, self.enabled,
92
- self.require_client_secret, self.redirect_uris, self.post_logout_redrect_uris,
93
- self.front_channel_logout_uri, self.front_channel_logout_session_required, self.back_channel_logout_uri,
94
- self.back_channel_logout_session_required, self.identity_token_life_time,
95
- self.access_token_life_time, self.authorization_code_life_time, self.absolute_refresh_token_life_time,
96
- self.sliding_refresh_token_life_time, self.refresh_token_usage, self.refresh_token_expiration,
97
- self.allowed_cors_origins, self.allowed_access_tokens_via_browser, self.claims, self.client_claims_prefix
38
+ @classmethod
39
+ def from_dict(cls, item: dict) -> "OIDCClient":
40
+ return cls(
41
+ id=item.get("id"),
42
+ update_access_token_claims_on_refresh=item.get("updateAccessTokenClaimsOnRefresh"),
43
+ access_token_type=item.get("accessTokenType"),
44
+ include_jwt_id=item.get("includeJwtId"),
45
+ always_include_user_claims_in_id_token=item.get("alwaysIncludeUserClaimsInIdToken"),
46
+ client_id=item.get("clientId"),
47
+ client_name=item.get("clientName"),
48
+ allow_offline_access=item.get("allowOfflineAccess"),
49
+ client_secrets=item.get("clientSecrets"),
50
+ allow_grant_types=item.get("allowedGrantTypes"),
51
+ allowed_scopes=item.get("allowedScopes"),
52
+ enabled=item.get("enabled"),
53
+ require_client_secret=item.get("requireClientSecret"),
54
+ redirect_uris=item.get("redirectUris"),
55
+ post_logout_redirect_uris=item.get("postLogoutRedirectUris"),
56
+ front_channel_logout_uri=item.get("frontChannelLogoutUri"),
57
+ front_channel_logout_session_required=item.get("frontChannelLogoutSessionRequired"),
58
+ back_channel_logout_uri=item.get("backChannelLogoutUri"),
59
+ back_channel_logout_session_required=item.get("backChannelLogoutSessionRequired"),
60
+ identity_token_life_time=item.get("identityTokenLifetime"),
61
+ access_token_life_time=item.get("accessTokenLifetime"),
62
+ authorization_code_life_time=item.get("authorizationCodeLifetime"),
63
+ absolute_refresh_token_life_time=item.get("absoluteRefreshTokenLifetime"),
64
+ sliding_refresh_token_life_time=item.get("slidingRefreshTokenLifetime"),
65
+ refresh_token_usage=item.get("refreshTokenUsage"),
66
+ refresh_token_expiration=item.get("refreshTokenExpiration"),
67
+ allowed_cors_origins=item.get("allowedCorsOrigins"),
68
+ allowed_access_tokens_via_browser=item.get("allowAccessTokensViaBrowser"),
69
+ claims=item.get("claims"),
70
+ client_claims_prefix=item.get("clientClaimsPrefix"),
98
71
  )